public class SwitchSsh extends AbstractRemoteParameter implements RemoteSwitch
| Modifier and Type | Class and Description |
|---|---|
static class |
SwitchSsh.Plain
|
static class |
SwitchSsh.Try |
PropertyResources.Load, PropertyResources.URLResource| Modifier and Type | Field and Description |
|---|---|
private String |
bind |
private String |
classpath |
private String |
host |
private String |
ljava |
DEFBIND, KEY_BINDKEY_FORMAT, KEY_NAME, KEY_PRESERVE, UNKNOWNKEY_NOINITONCREATE, POSTFIX_ALPHABET, POSTFIX_BYTES, POSTFIX_DIR, POSTFIX_EXT, POSTFIX_FILE, POSTFIX_LIST, POSTFIX_MODTIME, POSTFIX_URLKEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATORNAMING_EXTENSIONCONFIG, KEY_CLASSKEY_URLRESOURCES, KEY_URLUSECONFIG, KEY_URLUSECURRENT, KEY_URLUSEHOME| Constructor and Description |
|---|
SwitchSsh(String rmi,
String local,
Map<String,String> info) |
SwitchSsh(String rmi,
String local,
String java,
String cp,
Map<String,String> info) |
| Modifier and Type | Method and Description |
|---|---|
private String |
execute(String command) |
Object |
get()
Returns the value of this parameter as an object.
|
static void |
main(String[] arg) |
Object |
remoteGet()
The remote edge of this trigger.
|
Boolean |
remoteGetTrigger()
Retrieves the trigger value as a boolean.
|
boolean |
remoteIsTrue()
Retrieves the trigger value as a primitive boolean.
|
Date |
remoteToggleTime()
Retrieves the trigger toggle time using RMI.
|
Object |
set(Object val)
Sets the value of this parameter.
|
boolean |
switchOff()
The remote switching is diverted to the servers
switchOn(long). |
boolean |
switchOn(long maxtime)
The remote switching is diverted to the servers
switchOn(long). |
addRmiListener, bindToRegistry, exit, init, isValid, removeRmiListener, rescanned, unbindFromRegistrycreateParameter, delivers, getFormatted, getFormatted, getName, getPreserveFile, getString, getString, overrideDefaultName, register, setName, toStringclone, 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, stringPropertiesequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddRmiListener, removeRmiListenerbindToRegistry, isValid, unbindFromRegistrydefaultBoolean, 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, stringPropertiesprivate final String host
private final String bind
private final String ljava
private final String classpath
public SwitchSsh(String rmi, String local, Map<String,String> info) throws RemoteException
RemoteExceptionpublic SwitchSsh(String rmi, String local, String java, String cp, Map<String,String> info) throws RemoteException
RemoteExceptionpublic Object get()
Parameterpublic Object set(Object val) throws UnsupportedOperationException
Parameterset in interface ParameterUnsupportedOperationException - If this parameter is read-only.private String execute(String command) throws RemoteException
RemoteExceptionpublic Object remoteGet() throws RemoteException
AbstractRemoteParameterremoteGet in interface RemoteParameterremoteGet in class AbstractRemoteParameterRemoteExceptionpublic Boolean remoteGetTrigger() throws RemoteException
RemoteTriggerremoteGetTrigger in interface RemoteTriggerRemoteExceptionpublic boolean remoteIsTrue()
throws RemoteException
RemoteTriggerremoteIsTrue in interface RemoteTriggerRemoteExceptionpublic Date remoteToggleTime() throws RemoteException
RemoteTriggerremoteToggleTime in interface RemoteTriggerRemoteExceptionpublic boolean switchOn(long maxtime)
throws RemoteException
switchOn(long).switchOn in interface RemoteSwitchmaxtime - The maximum illumination time, in ms. Zero for unlimitied.RemoteExceptionpublic boolean switchOff()
throws RemoteException
switchOn(long).switchOff in interface RemoteSwitchRemoteExceptionpublic static void main(String[] arg) throws RemoteException, InitException
RemoteExceptionInitException