stella.rmi
Interface RmiDataDepositing

All Superinterfaces:
Remote, RmiCaster
All Known Implementing Classes:
SensorRepository

public interface RmiDataDepositing
extends RmiCaster

An interface to allow late-commers to register to a repository. The RmiDataCollecting instance calls the addRmiDataCollector(stella.rmi.RmiDataCollecting) method as it goes online. Deregistering at the RmiDataCollecting instance as it goes offline is nice, but not necessary, as the RmiDataCollecting instance will remove it from its data collector list anyhow if the remote instance is not valid any more.


Field Summary
static String NAMING_EXTENSION
          An optional binding name extension.
 
Method Summary
 boolean addRmiDataCollector(RmiDataCollecting latecommer)
          Add an RmiDataCollecting instance to this rmi-enabled data depositing instance, normally a repositroy.
 boolean removeRmiDataCollector(RmiDataCollecting latecommer)
          Removes an RmiDataCollecting instance from data delivering.
 
Methods inherited from interface util.rmi.RmiCaster
bindToRegistry, isValid, unbindFromRegistry
 

Field Detail

NAMING_EXTENSION

static final String NAMING_EXTENSION
An optional binding name extension.

See Also:
Constant Field Values
Method Detail

addRmiDataCollector

boolean addRmiDataCollector(RmiDataCollecting latecommer)
                            throws RemoteException
Add an RmiDataCollecting instance to this rmi-enabled data depositing instance, normally a repositroy.

Returns:
True on success.
Throws:
RemoteException

removeRmiDataCollector

boolean removeRmiDataCollector(RmiDataCollecting latecommer)
                               throws RemoteException
Removes an RmiDataCollecting instance from data delivering.

Throws:
RemoteException