stella.rmi
Class GenericMaster.Standalone
java.lang.Object
util.PropertyContainer
util.PropertyResources
util.PropertyBundles
util.rmi.RmiPropertyContainer
util.rmi.AbstractRmiListener
stella.rmi.AbstractRmiCasterAndListener
stella.rmi.ReceiverTorso
stella.rmi.GenericMaster
stella.rmi.GenericMaster.Standalone
- All Implemented Interfaces:
- Cloneable, Remote, EventListener, Caster, ErrorSending, ErrorCaster, Alive, ListenerControlling, RmiAcknowledgeCaster, RmiCommandListener, RmiDoneCaster, RmiErrorCaster, RmiParameterClustering, ExitCleaning, Initializable, LocalizedSupplying, PropertySupplying, ResourceSupplying, RmiCaster, RmiEventListener, RmiListener, RmiPropertyBearing, TriggerableReload, StepInitializable
- Enclosing class:
- GenericMaster
public static class GenericMaster.Standalone
- extends GenericMaster
Standalone class that does not respond to commands, but provides a set of
global variables and switches. As this class is also capable of
generating drivers and assigning them to switches, this class can be used
as an intermittant agent for providing switches or variables to other
processes via RMI.
| Fields inherited from class stella.rmi.GenericMaster |
DEFUNIQUE, KEY_ABORTTIME, KEY_AUTOMATIC, KEY_COMMTIME, KEY_COMMUNICATOR, KEY_DRIVERS, KEY_HISTORYDB, KEY_INITTIME, KEY_NODB, KEY_OBSERVEDB, KEY_OVERRULEAUTO, KEY_PARKTIME, KEY_PERMISSIONDB, KEY_PROPOSALDB, KEY_QUITTIME, KEY_REAUTO, KEY_RESETTIME, KEY_SET, KEY_SHUTDOWNDELAY, KEY_STATUSTIME, KEY_TARGETDB, KEY_TASKDB, KEY_UNIQUE, KEY_USERDB, lastabort, lastinit, lastpark, lastreset, telescope |
| Methods inherited from class stella.rmi.GenericMaster |
abortMaster, addErrorListener, addRmiErrorListener, automatic, createCommunicator, exit, external, formatWithGlobals, getAcknowledgeNumber, getAllDrivers, getCompletionTime, getDriver, getHistorySql, getLastError, getObserveSql, getParameterByKey, getParameterByName, getParameterCluster, getParameterValueByKey, getParameterValueByName, getPermissionSql, getProposalSql, getStatus, getTargetSql, getTaskSql, getUnique, getUserSql, initialize, initStep, isAlive, isAuto, isManual, isPassive, manual, park, processCommand, quit, quitMaster, reload, rescanned, reset, restartAllDrivers, restartNamedDriver, revert, rmiAddParameter, rmiCommand, rmiGet, rmiGetAllParameterNames, rmiRemoveParameter, rmiSet, setLastError, setParameterValueByKey, setParameterValueByName, setPassive, shutdown, zeroAllOmc |
| Methods inherited from class stella.rmi.ReceiverTorso |
addRmiAcknowledgeListener, addRmiDoneListener, bindDefault, containsRemoteProperty, deregisterAtCaster, equals, getRemoteProperties, getRemoteProperty, hashCode, notifyAcknowledgeListener, notifyDoneListener, registerAtCaster, removeRmiAcknowledgeListener, removeRmiDoneListener, sendAllPrematureDone, sendPrematureDone, setRemoteProperty, toString, unbindDefault |
| Methods inherited from class stella.rmi.AbstractRmiCasterAndListener |
bindToRegistry, getBindName, isValid, notifyErrorListener, removeErrorListener, removeRmiErrorListener, sendError, sendError, sendError, sendStatus, sendStatus, sendStatus, unbindFromRegistry |
| Methods inherited from class util.rmi.AbstractRmiListener |
allBound, blockBinding, blockBinding, disconnect, getIP, getListenerName, isConnected, listenerName, releaseBinding, releaseBinding, startBinding, startBinding |
| Methods inherited from class util.PropertyResources |
createFrom, createFrom, createFrom, getApplet, getAsResources, getLocalClassLoader, getPropertiesToKey, getPropertiesToKey, getResource, getResourceAsStream, getResourceFromKey, getResources, init, keyCreate, keyCreate, reload, setApplet |
| Methods inherited from class util.PropertyContainer |
augment, augment, augment, defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsEnums, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, isNew, parseObject, removeProperty, setObject, setProperties, setProperty, stringProperties |
| Methods inherited from interface util.PropertySupplying |
defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, parseObject, removeProperty, setObject, setProperty, stringProperties |
GenericMaster.Standalone
public GenericMaster.Standalone(Map<String,String> prop)
throws RemoteException
- Creates a remote object and exports it to the registry.
- Throws:
RemoteException
statusMaster
public Object statusMaster()
- Returns all values served in a single String.
- Specified by:
statusMaster in class GenericMaster
- Returns:
- A string or an
ErrorEvent.
accepts
public boolean accepts(CommandEvent ce)
throws RemoteException
- Returns false;
- Throws:
RemoteException
resetMaster
protected boolean resetMaster()
- Does nothing.
- Specified by:
resetMaster in class GenericMaster
parkMaster
protected boolean parkMaster()
- Does nothing.
- Specified by:
parkMaster in class GenericMaster
initializeMaster
protected boolean initializeMaster()
- Does nothing.
- Specified by:
initializeMaster in class GenericMaster
main
public static void main(String[] arg)
throws RemoteException
- Constructs a new standalone master. The single argument supplied are
the properties file.
- Throws:
RemoteException