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.
Modifiers | Name | Description |
---|---|---|
class |
DynamicClassLoader.DynamicClassLoaderUserObject |
User interface to obtain the TX and RX filters from the service once it has been started. |
Type | Name and description |
---|---|
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. |
Default service name.
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. The filter returned is safe to use if there is no TX filter at the sending end.
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. If there is a TX filter at the sending end, there must be a RX filter at the receiving end.
An alternative RX filter that does not support dynamic class loading but will properly unmarshal objects wrapped up by a TX filter.
Returns the service user object.
Initializes the dynamic loader service.
Returns true iff the service is running.
Starts the dynamic loader service by spawning ClassManager
and JFTP
processes.
Stops the dynamic loader service.