public abstract class AbstractRemoteParameter extends AbstractParameter implements RemoteParameter
RemoteParameter. This class takes care
of proper binding of the parameter to the registry and diverts the
remoteGet() method to the Parameter.get() method. Provides also a static
method for binding non-subclasses of abstract remote parameter to the
registry.PropertyResources.Load, PropertyResources.URLResource| Modifier and Type | Field and Description |
|---|---|
protected static boolean |
DEFBIND
The default auto-binding as a
RemoteParameter. |
static String |
KEY_BIND
The key in the Map for auto-binding of the trigger.
|
private List<RmiListener> |
stubs
A list of registered rmi listners.
|
KEY_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_MAPSEPARATORCONFIG, KEY_CLASSKEY_URLRESOURCES, KEY_URLUSECONFIG, KEY_URLUSECURRENT, KEY_URLUSEHOME| Modifier | Constructor and Description |
|---|---|
protected |
AbstractRemoteParameter(Map<String,String> prop)
Constructs a new remote parameter.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addRmiListener(RmiListener ear)
Adds a listener for notification on exit.
|
boolean |
bindToRegistry()
Binds to registry.
|
void |
exit()
Unbinds from registry, if bound.
|
void |
init()
Binds this trigger to the registry.
|
boolean |
isValid()
Returns true.
|
Object |
remoteGet()
The remote edge of this trigger.
|
void |
removeRmiListener(RmiListener ear)
Removes a listener.
|
protected double |
rescanned(String key,
String old,
String newval)
If the bind property changed, we deregister from our current binding and
re-instantiate a new binding thread.
|
boolean |
unbindFromRegistry()
Unbinds from registry.
|
createParameter, 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, waitdefaultBoolean, 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_BIND
protected static final boolean DEFBIND
RemoteParameter.private List<RmiListener> stubs
public void init()
throws InitException
init in interface Initializableinit in class AbstractParameterInitExceptionpublic void exit()
exit in interface ExitCleaningexit in class AbstractParameterprotected double rescanned(String key, String old, String newval)
rescanned in class AbstractParameterpublic boolean bindToRegistry()
throws RemoteException
bindToRegistry in interface RmiCasterRemoteExceptionpublic boolean unbindFromRegistry()
throws RemoteException
unbindFromRegistry in interface RmiCasterRemoteExceptionpublic Object remoteGet() throws RemoteException
remoteGet in interface RemoteParameterRemoteExceptionpublic void addRmiListener(RmiListener ear) throws RemoteException
addRmiListener in interface RemoteParameterRemoteExceptionpublic void removeRmiListener(RmiListener ear) throws RemoteException
removeRmiListener in interface RemoteParameterRemoteExceptionpublic boolean isValid()
throws RemoteException
isValid in interface RmiCasterRemoteException