|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectrcf.core.concurrent.events.AbstractEventSource
rcf.core.concurrent.schedule.AbstractTask
rcf.core.framework.Framework.Default
public static class Framework.Default
TODO: Javadoc
TODO: Unit tests, Code review, Javadoc review, Seal/Finalize TODO: equals, hashCode, toString
| Nested Class Summary | |
|---|---|
protected class |
Framework.Default.RuntimeShutdownHook
TODO: Javadoc |
protected class |
Framework.Default.ServiceTaskEventSink
TODO: Javadoc |
| Nested classes/interfaces inherited from interface rcf.core.framework.Framework |
|---|
Framework.Default |
| Nested classes/interfaces inherited from interface rcf.core.concurrent.schedule.Task |
|---|
Task.State |
| Field Summary | |
|---|---|
protected ThreadLocalReference<Application> |
applications
TODO: Javadoc |
protected Application |
bootApplication
TODO: Javadoc |
protected Framework.Default.RuntimeShutdownHook |
hook
TODO: Javadoc |
protected rcf.core.util.collection.Collection<Service> |
services
TODO: Javadoc |
| Fields inherited from class rcf.core.concurrent.schedule.AbstractTask |
|---|
taskEventTypes |
| Fields inherited from class rcf.core.concurrent.events.AbstractEventSource |
|---|
syndicate |
| Constructor Summary | |
|---|---|
Framework.Default(Application _bootApplication)
TODO: Javadoc |
|
| Method Summary | |
|---|---|
Application |
application()
TODO: Javadoc The application running in the current thread. |
rcf.core.util.map.single.ImmutableSMapCollection<Application,Thread> |
applications()
TODO: Javadoc Collection of applications, and the threads running them. |
void |
collectGarbage()
TODO: Javadoc Suggest to the java runtime that now would be a good time to collection garbage. |
void |
commit()
TODO: Javadoc Fully commit. |
long |
freeMemory()
TODO: Javadoc |
String |
getSummary()
TODO: Javadoc |
Version |
getVersion()
TODO: Javadoc |
void |
interrupt()
TODO: Javadoc Stop running VERY quickly, something has happened that requires an immediate cessation of computation. |
int |
numProcessors()
TODO: Javadoc |
void |
run()
TODO: Javadoc Starts the task running. |
void |
run(Service service)
TODO: Javadoc |
rcf.core.util.collection.ImmutableCollection<Service> |
services()
TODO: Javadoc Collection of running services. |
| Methods inherited from class rcf.core.concurrent.schedule.AbstractTask |
|---|
events, syndicate, taskEventTypes, taskState, taskState |
| Methods inherited from class rcf.core.concurrent.events.AbstractEventSource |
|---|
createdSyndicate, destroyedSyndicate, getSequenceNumber, incSequenceNumber, isSyndicated |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface rcf.core.concurrent.schedule.Task |
|---|
taskState |
| Methods inherited from interface rcf.core.concurrent.events.EventSource |
|---|
events, getSequenceNumber, incSequenceNumber, isSyndicated, syndicate |
| Field Detail |
|---|
protected final Application bootApplication
protected final ThreadLocalReference<Application> applications
protected final rcf.core.util.collection.Collection<Service> services
protected Framework.Default.RuntimeShutdownHook hook
| Constructor Detail |
|---|
public Framework.Default(Application _bootApplication)
_bootApplication - | Method Detail |
|---|
public Application application()
Framework
application in interface Frameworkpublic rcf.core.util.map.single.ImmutableSMapCollection<Application,Thread> applications()
Framework
applications in interface Frameworkpublic void collectGarbage()
Framework
collectGarbage in interface Frameworkpublic void commit()
ConcurrentRunnableTaskTask.State.Committing and then Task.State.Committed.
If the commit takes too long (stays in Task.State.Committing), the ConcurrentRunnableTask.interrupt() method may be
used to force an immediate cessation of activity.
commit in interface ConcurrentRunnableTaskpublic long freeMemory()
Framework
freeMemory in interface Frameworkpublic String getSummary()
Service
getSummary in interface Servicepublic Version getVersion()
Service
getVersion in interface Servicepublic void interrupt()
ConcurrentRunnableTaskTask.State.Interrupting and then Task.State.Interrupted
interrupt in interface ConcurrentRunnableTaskinterrupt in interface InterruptibleTaskInterruptibleTask.interrupt()public int numProcessors()
Framework
numProcessors in interface Frameworkpublic void run()
ConcurrentRunnableTask
run in interface Runnablerun in interface ConcurrentRunnableTaskrun in interface RunnableTaskRunnableTask.run()public void run(Service service)
Runner
run in interface Runner<Service>public rcf.core.util.collection.ImmutableCollection<Service> services()
Framework
services in interface Framework
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||