util.rmi
Class RmiPropertyContainer
java.lang.Object
util.PropertyContainer
util.PropertyResources
util.PropertyBundles
util.rmi.RmiPropertyContainer
- All Implemented Interfaces:
- Cloneable, Remote, Initializable, LocalizedSupplying, PropertySupplying, ResourceSupplying, RmiPropertyBearing
- Direct Known Subclasses:
- AbstractRmiCaster, AbstractRmiListener
public class RmiPropertyContainer
- extends PropertyBundles
- implements RmiPropertyBearing
A base implementation of the RmiPropertyBearing interface. It
extends the functionality of PropertyBundles in a way that the
properties can be querried and set from remote JAVA VM's. This
implementation simply redirects all remote methods to its local
counterparts.
|
Field Summary |
private static int |
DEFEXPORTPORT
The port at which unicast should export. |
static String |
KEY_EXPORTPORT
For unicast exports, the port at which we should export. |
| 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, reload, removeProperty, rescanned, setObject, setProperties, setProperty, stringProperties, toString |
| 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 |
KEY_EXPORTPORT
public static final String KEY_EXPORTPORT
- For unicast exports, the port at which we should export.
- See Also:
- Constant Field Values
DEFEXPORTPORT
private static final int DEFEXPORTPORT
- The port at which unicast should export. Zero means anonymous port.
- See Also:
- Constant Field Values
RmiPropertyContainer
protected RmiPropertyContainer(Map<String,String> props)
- Constructs a new property container. The method is protected to avoid
improper use. If the argument is null an empty Map
object is created as this object's properties.
getRemoteProperties
public Map<String,Object> getRemoteProperties()
throws RemoteException
- Returns the entire properties of this object as a map.
Calls
PropertyContainer.getProperties().
- Specified by:
getRemoteProperties in interface RmiPropertyBearing
- Throws:
RemoteException
getRemoteProperty
public String getRemoteProperty(String key)
throws RemoteException
- Returns a special property of this property container. Calls
PropertyContainer.getProperty(java.lang.String).
- Specified by:
getRemoteProperty in interface RmiPropertyBearing
- Parameters:
key - The key for the Map object.
- Returns:
- The value of the
PropertyContainer.getProperty(java.lang.String) call.
- Throws:
RemoteException
setRemoteProperty
public String setRemoteProperty(String key,
String val)
throws RemoteException
- Sets a special property of this property container. Calls
PropertyContainer.setProperty(java.lang.String, java.lang.String).
- Specified by:
setRemoteProperty in interface RmiPropertyBearing
- Parameters:
key - The key for this Property.value - The value of this Property.
- Throws:
RemoteException
containsRemoteProperty
public boolean containsRemoteProperty(String key)
throws RemoteException
- Tests if this property container contains a certain property.
Calls
PropertyContainer.has(java.lang.String).
- Specified by:
containsRemoteProperty in interface RmiPropertyBearing
- Throws:
RemoteException