public class TargetChangeListener extends MessageListener
| Modifier and Type | Class and Description |
|---|---|
private static class |
TargetChangeListener.GridThread
This thread updates the target log file and calls various other
things.
|
static class |
TargetChangeListener.Run
The standalone version reads the first command line argument and
uses it as the error/status caster.
|
static class |
TargetChangeListener.Ssh
Tests the sending of the ssh-command.
|
PropertyResources.Load, PropertyResources.URLResource| Modifier and Type | Field and Description |
|---|---|
private Class |
action
The error class we react on.
|
private static String |
DEFSSHCOMMAND
Default ssh-script to execute.
|
private static String |
DEFSSHSCRIPT
Default ssh-script to execute.
|
private static String |
DEFSSHUSER
Default ssh-script to execute.
|
private static String |
DEFTARGETCLASS
Default error to listen to.
|
static String |
KEY_SSHCOMMAND
The key to the ssh-command .
|
static String |
KEY_SSHSCRIPT
The key to the skript to execute.
|
static String |
KEY_SSHUSER
The key to the ssh-user login, no password required.
|
static String |
KEY_TARGETCLASS
The key to the status indicating the target change.
|
KEY_ACKNOWLEDGE, KEY_BIND, KEY_BINDNAME, KEY_COMMAND, KEY_DATA, KEY_DONE, KEY_ERROR, KEY_SERIAL, KEY_WEATHERKEY_ALIVE, KEY_EXPORTPORT, KEY_INIT, KEY_LISTENERNAME, KEY_RETRY, KEY_RETRYSLEEP, KEY_SHUTDOWNDELAYKEY_NOINITONCREATE, POSTFIX_ALPHABET, POSTFIX_BYTES, POSTFIX_DIR, POSTFIX_EXT, POSTFIX_FILE, POSTFIX_LIST, POSTFIX_MODTIME, POSTFIX_URLKEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATORKEY_URLRESOURCES, KEY_URLUSECONFIG, KEY_URLUSECURRENT, KEY_URLUSEHOMECONFIG, KEY_CLASS| Constructor and Description |
|---|
TargetChangeListener(Map prop)
Constructs a new target change listener.
|
| Modifier and Type | Method and Description |
|---|---|
void |
init()
On init, we issue a binding request to the target name.
|
void |
rmiErrorOccured(ErrorEvent ee)
The receiving edge of the error listener.
|
accepts, deregisterAtCaster, exit, registerAtCaster, rmiCommand, rmiDataAvailable, rmiGotAcknowledge, rmiGotDone, rmiSerial, rmiWeatherChangedallBound, blockBinding, blockBinding, disconnect, getIP, getListenerName, isConnected, listenerName, releaseBinding, releaseBinding, rescanned, startBinding, startBindingcontainsRemoteProperty, getRemoteProperties, getRemoteProperty, setRemotePropertyclone, createFrom, createFrom, createFrom, createInstance, getApplet, getAsResources, getLocate, getPropertiesToKey, getPropertiesToKey, getResource, getResourceAsStream, getResourceFromKey, getResources, hasLocalURLs, initProperties, keyCreate, keyCreate, reload, setAppletaugment, augment, 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, parseObject, reload, removeProperty, requires, setObject, setProperties, setProperty, stringProperties, toStringequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetListenerNamedisconnect, isConnecteddefaultBoolean, 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, stringPropertiespublic static final String KEY_TARGETCLASS
public static final String KEY_SSHCOMMAND
public static final String KEY_SSHUSER
public static final String KEY_SSHSCRIPT
private static final String DEFTARGETCLASS
private static final String DEFSSHCOMMAND
private static final String DEFSSHUSER
private static final String DEFSSHSCRIPT
private Class action
public TargetChangeListener(Map prop) throws RemoteException
RemoteExceptionpublic void init()
init in interface Initializableinit in class MessageListenerpublic void rmiErrorOccured(ErrorEvent ee) throws RemoteException
rmiErrorOccured in interface RmiErrorListenerrmiErrorOccured in class MessageListenerRemoteException