NetKernel APIs


org.ten60.netkernel.layer1.nkf.impl
Class NKFTransportImpl

java.lang.Object
  extended byorg.ten60.netkernel.layer1.nkf.impl.NKFTransportImpl
All Implemented Interfaces:
ITransport, IURComponent

public abstract class NKFTransportImpl
extends Object
implements ITransport

Base class for developing NetKernel Transports on the NKF API


Constructor Summary
NKFTransportImpl()
           
 
Method Summary
 void destroy()
          Low-level transport stop, performs NKF-speocific shutdown
protected  INKFConvenienceHelper getContext()
          Get an INKFConvenienceHelper context object through which to interact with the Kernel.
 void initialise(Container aContainer, ModuleDefinition aRequestorContext)
          Low-level transport start, performs NKF-speocific inititialisation
 void setContext(IRequestorContext aRequestorContext)
          Change the context of this transport, used in hot restart
protected abstract  void startTransport()
          Called when the transport is started by the Kernel
protected abstract  void stopTransport()
          Called when the transport is stopped by the Kernel
 
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.transport.ITransport
getDescription
 

Constructor Detail

NKFTransportImpl

public NKFTransportImpl()
Method Detail

setContext

public final void setContext(IRequestorContext aRequestorContext)
Description copied from interface: ITransport
Change the context of this transport, used in hot restart

Specified by:
setContext in interface ITransport

initialise

public final void initialise(Container aContainer,
                             ModuleDefinition aRequestorContext)
                      throws NetKernelException
Low-level transport start, performs NKF-speocific inititialisation

Specified by:
initialise in interface IURComponent
Parameters:
aContainer -
aRequestorContext -
Throws:
NetKernelException

startTransport

protected abstract void startTransport()
                                throws Exception
Called when the transport is started by the Kernel

Throws:
Exception

destroy

public final void destroy()
                   throws NetKernelException
Low-level transport stop, performs NKF-speocific shutdown

Specified by:
destroy in interface IURComponent
Throws:
NetKernelException

stopTransport

protected abstract void stopTransport()
                               throws Exception
Called when the transport is stopped by the Kernel

Throws:
Exception

getContext

protected final INKFConvenienceHelper getContext()
Get an INKFConvenienceHelper context object through which to interact with the Kernel.


NetKernel APIs


Copyright © 2002-2004 1060 Research Ltd. All Rights Reserved.