|
NetKernel APIs |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ten60.netkernel.urii.representation.SimpleRepresentationImpl
com.ten60.netkernel.container.ComponentImpl
com.ten60.netkernel.scheduler.Scheduler
public final class Scheduler
The Scheduler system component. Responsible for taking a request from a transport or accessor and mapping it to an accessor and then executing that accessor.
| Field Summary | |
|---|---|
static URIdentifier |
URI
|
| Fields inherited from class com.ten60.netkernel.urii.representation.SimpleRepresentationImpl |
|---|
mMeta |
| Constructor Summary | |
|---|---|
Scheduler()
Creates a new instance of Scheduler |
|
| Method Summary | |
|---|---|
void |
doPeriodicHouseKeeping()
doPeriodicHouseKeeping method implemented with null body |
Debugger |
getDebugger()
|
RequestState |
getPendingStateFor(URRequest aRequest)
|
int |
killSession(long aSession,
java.lang.String aId)
|
protected void |
processRequest()
|
protected void |
processRequest(RequestState aState)
|
void |
receiveAsyncException(URResult aResult)
A callback when execution of a previous request has failed |
void |
receiveAsyncResult(URResult aResult)
A callback when a result to a previous request is available |
void |
releaseBreakpointedState(RequestState aState)
|
void |
requestAsync(URRequest aRequest)
Make an asynchronous request |
URResult |
requestSynch(URRequest aRequest)
make a synchronous request |
void |
start(Container aContainer)
start method implemented with null body |
void |
stop()
stop method implemented with null body |
void |
write(java.io.OutputStream aStream)
write method implemented with null body |
| Methods inherited from class com.ten60.netkernel.container.ComponentImpl |
|---|
getEncoding, getURI |
| Methods inherited from class com.ten60.netkernel.urii.representation.SimpleRepresentationImpl |
|---|
getAspect, getAspects, getMeta, hasAspect |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.ten60.netkernel.urii.IURRepresentation |
|---|
getAspect, getAspects, getMeta, hasAspect |
| Field Detail |
|---|
public static final URIdentifier URI
| Constructor Detail |
|---|
public Scheduler()
| Method Detail |
|---|
public Debugger getDebugger()
public RequestState getPendingStateFor(URRequest aRequest)
public URResult requestSynch(URRequest aRequest)
throws NetKernelException
IURSynchRequestee
requestSynch in interface IURSynchRequesteeaRequest - the request being made
NetKernelException - thrown if the request was unsuccessful for any reasonpublic void requestAsync(URRequest aRequest)
IURRequestee
requestAsync in interface IURRequesteeaRequest - the request being made
public void start(Container aContainer)
throws NetKernelException
ComponentImpl
start in interface IComponentstart in class ComponentImplaContainer - the container we will execute inside
NetKernelException - thrown if we encounter any error during startuppublic void stop()
ComponentImpl
stop in interface IComponentstop in class ComponentImplpublic void releaseBreakpointedState(RequestState aState)
protected void processRequest()
protected void processRequest(RequestState aState)
public void receiveAsyncResult(URResult aResult)
IURRequestor
receiveAsyncResult in interface IURRequestoraResult - the result of a previous requestpublic void receiveAsyncException(URResult aResult)
IURRequestor
receiveAsyncException in interface IURRequestoraResult - the exception result of a previous request
public void write(java.io.OutputStream aStream)
throws java.io.IOException
ComponentImpl
write in interface IAspectBinaryStreamwrite in class ComponentImplaStream - the output stream
java.io.IOException - thrown if we fail to write
public int killSession(long aSession,
java.lang.String aId)
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void doPeriodicHouseKeeping()
ComponentImpl
doPeriodicHouseKeeping in interface IComponentdoPeriodicHouseKeeping in class ComponentImpl
|
NetKernel APIs |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||