|
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.transport.TransportManager
Transport Manager system component manages the startup and shutdown of all registered transports. It passes requests from transports through the throttle and into the scheduler
Field Summary | |
static String |
EX_SERVICE_UNAVAILABLE
service overload exception |
static String |
INTERNAL_TRANSPORT
identifier for internal transport that Contain implements and exhibits as an API for JMX and Embedded request making |
static URIdentifier |
URI
our URI |
Fields inherited from class com.ten60.netkernel.urii.representation.SimpleRepresentationImpl |
mMeta |
Constructor Summary | |
TransportManager()
Creates a new instance of TransportManager |
Method Summary | |
void |
acceptRequests()
|
void |
doPeriodicHouseKeeping()
doPeriodicHouseKeeping method implemented with null body |
ITransport |
getInternalTransport()
|
NetKernelException |
handleAsyncRequest(URRequest aRequest,
ITransport aTransport)
Called from a Transport this method processes an asynchronous request |
IURRepresentation |
handleRequest(URRequest aRequest,
ITransport aTransport)
Called from a Transport this method processes a synchronous request |
void |
holdRequests()
All new requests will be held until a start() |
IURRepresentation |
innerHandleRequest(URRequest aRequest,
ITransport aTransport)
Separate method so that Container can call init process without worry of being blocked whilst all else is kept at bay |
void |
join()
Wait for all unblocked requests to be completed It will poll every quarter of a second and requires a clear period of half a second before declaring all-clear |
void |
receiveAsyncException(URResult aResult)
We get told when synchronous requests complete |
void |
receiveAsyncResult(URResult aResult)
We get told when synchronous requests complete |
void |
refresh(PairList aTransports)
Loads current transport configuration from module manager and starts/stops what has changed |
void |
rejectRequests()
All new requests will be rejected |
void |
start(Container aContainer)
Start the transport manager. |
void |
stop()
Stops all the transports |
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
public static final String INTERNAL_TRANSPORT
public static final String EX_SERVICE_UNAVAILABLE
Constructor Detail |
public TransportManager()
Method Detail |
public ITransport getInternalTransport()
public void start(Container aContainer) throws NetKernelException
start
in interface IComponent
start
in class ComponentImpl
NetKernelException
public void refresh(PairList aTransports)
public void holdRequests()
public void rejectRequests()
public void acceptRequests()
public void stop() throws NetKernelException
stop
in interface IComponent
stop
in class ComponentImpl
NetKernelException
public IURRepresentation handleRequest(URRequest aRequest, ITransport aTransport)
aRequest
- the request to execute
public IURRepresentation innerHandleRequest(URRequest aRequest, ITransport aTransport) throws InterruptedException
InterruptedException
public NetKernelException handleAsyncRequest(URRequest aRequest, ITransport aTransport)
aRequest
- the request to execute
public void receiveAsyncResult(URResult aResult)
receiveAsyncResult
in interface IURRequestor
aResult
- the result of a previous requestpublic void receiveAsyncException(URResult aResult)
receiveAsyncException
in interface IURRequestor
aResult
- the exception result of a previous requestpublic void join()
public void doPeriodicHouseKeeping()
ComponentImpl
doPeriodicHouseKeeping
in interface IComponent
doPeriodicHouseKeeping
in class ComponentImpl
public void write(OutputStream aStream) throws IOException
ComponentImpl
write
in interface IAspectBinaryStream
write
in class ComponentImpl
IOException
|
NetKernel APIs |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |