|
CSP for Java (JCSP) 1.1-rc4 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jcsp.net.dynamic.DynamicClassLoader
public class DynamicClassLoader
A service implementation for supporting dynamic class transfer at a node. When started, JFTP server
and ClassMananger
processes will be spawned and send/receive filters created. To support
dynamic class loading over a given channel, plug the TX filter into the sending end and the RX filter
into the receiving end. The channel can then be used normally.
Nested Class Summary | |
---|---|
class |
DynamicClassLoader.DynamicClassLoaderUserObject
User interface to obtain the TX and RX filters from the service once it has been started. |
Field Summary | |
---|---|
static String |
name
Default service name. |
Constructor Summary | |
---|---|
DynamicClassLoader()
|
Method Summary | |
---|---|
Filter |
getChannelRxFilter()
Returns the RX filter to be used at the receiving end of a channel if dynamic class loading is to be supported over that channel. |
Filter |
getChannelTxFilter()
Returns the TX filter to be used at the sending end of a channel if dynamic class loading is to be supported over that channel. |
static Filter |
getNonDynamicClassLoadingRxFilter()
An alternative RX filter that does not support dynamic class loading but will properly unmarshal objects wrapped up by a TX filter. |
ServiceUserObject |
getUserObject()
Returns the service user object. |
boolean |
init(ServiceSettings settings)
Initializes the dynamic loader service. |
boolean |
isRunning()
Returns true iff the service is running. |
boolean |
start()
Starts the dynamic loader service by spawning ClassManager and JFTP
processes. |
boolean |
stop()
Stops the dynamic loader service. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String name
Constructor Detail |
---|
public DynamicClassLoader()
Method Detail |
---|
public boolean start()
ClassManager
and JFTP
processes.
start
in interface Service
public boolean stop()
stop
in interface Service
true
iff the service has successfully stopped.public boolean init(ServiceSettings settings)
init
in interface Service
settings
- The settings used by the service.
true
iff the service has been initialized.public boolean isRunning()
isRunning
in interface Service
true
iff the service is currently running.public ServiceUserObject getUserObject() throws SecurityException
getUserObject
in interface Service
ServiceUserObject
.
SecurityException
- if the calling Thread does not have
access to the object.public Filter getChannelTxFilter()
public Filter getChannelRxFilter()
public static Filter getNonDynamicClassLoadingRxFilter()
|
CSP for Java (JCSP) 1.1-rc4 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |