|
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
public class 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 java.lang.String |
EX_SERVICE_UNAVAILABLE
service overload exception |
static java.lang.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(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
public static final java.lang.String INTERNAL_TRANSPORT
public static final java.lang.String EX_SERVICE_UNAVAILABLE
| Constructor Detail |
|---|
public TransportManager()
| Method Detail |
|---|
public ITransport getInternalTransport()
public void start(Container aContainer)
throws NetKernelException
start in interface IComponentstart in class ComponentImplaContainer - the container we will execute inside
NetKernelException - thrown if we encounter any error during startuppublic void refresh(PairList aTransports)
public void holdRequests()
public void rejectRequests()
public void acceptRequests()
public void stop()
throws NetKernelException
stop in interface IComponentstop in class ComponentImplNetKernelException - thrown if we encounter any error during startup
public IURRepresentation handleRequest(URRequest aRequest,
ITransport aTransport)
aRequest - the request to executeaTransportId - the transport making this request
public IURRepresentation innerHandleRequest(URRequest aRequest,
ITransport aTransport)
throws java.lang.InterruptedException
java.lang.InterruptedException
public NetKernelException handleAsyncRequest(URRequest aRequest,
ITransport aTransport)
aRequest - the request to executeaTransportId - the transport making this request
public void receiveAsyncResult(URResult aResult)
receiveAsyncResult in interface IURRequestoraResult - the result of a previous requestpublic void receiveAsyncException(URResult aResult)
receiveAsyncException in interface IURRequestoraResult - the exception result of a previous requestpublic void join()
public void doPeriodicHouseKeeping()
ComponentImpl
doPeriodicHouseKeeping in interface IComponentdoPeriodicHouseKeeping in class ComponentImpl
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
|
NetKernel APIs |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||