|
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
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,
String aId)
|
protected void |
processRequest()
|
protected void |
processRequest(RequestState aState,
boolean aNewThread)
|
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(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 IURSynchRequestee
aRequest
- the request being made
NetKernelException
- thrown if the request was unsuccessful for any reasonpublic void requestAsync(URRequest aRequest)
IURRequestee
requestAsync
in interface IURRequestee
aRequest
- the request being madepublic void start(Container aContainer) throws NetKernelException
ComponentImpl
start
in interface IComponent
start
in class ComponentImpl
NetKernelException
public void stop()
ComponentImpl
stop
in interface IComponent
stop
in class ComponentImpl
public void releaseBreakpointedState(RequestState aState)
protected void processRequest()
protected void processRequest(RequestState aState, boolean aNewThread)
public void receiveAsyncResult(URResult aResult)
IURRequestor
receiveAsyncResult
in interface IURRequestor
aResult
- the result of a previous requestpublic void receiveAsyncException(URResult aResult)
IURRequestor
receiveAsyncException
in interface IURRequestor
aResult
- the exception result of a previous requestpublic void write(OutputStream aStream) throws IOException
ComponentImpl
write
in interface IAspectBinaryStream
write
in class ComponentImpl
IOException
public int killSession(long aSession, String aId) throws InterruptedException
InterruptedException
public void doPeriodicHouseKeeping()
ComponentImpl
doPeriodicHouseKeeping
in interface IComponent
doPeriodicHouseKeeping
in class ComponentImpl
|
NetKernel APIs |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |