|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The AdaptorServerRmi
class defines the remote
method invocation (RMI) interface to be used by the RMI implementation of
AdaptorClient class.
Method Summary | |
ObjectName |
addListener(ObjectName mo,
java.lang.String listen,
java.lang.String receiver)
Allows a listener for a managed object to be added. |
void |
addObject(java.lang.Object object,
ObjectName logicalName)
Adds a named object under the control of the remote CMF. |
void |
deleteMO(ObjectName name)
Deletes an instance of a managed object in the remote object server. |
java.lang.String |
getDomain()
Returns the name of the domain controlled by the managed object server. |
java.lang.Object |
getIndexedValue(ObjectName name,
java.lang.String property,
int pos)
Allows the value of a specific indexed property within a managed object to be obtained. |
java.util.Vector |
getObject(ObjectName name,
QueryExp query)
Gets handles on managed objects controlled by the remote managed object server. |
java.lang.Object |
getValue(ObjectName name,
java.lang.String property)
Allows the value of a specific property within a managed object to be obtained. |
PropertyList |
getValues(ObjectName name,
java.util.Vector propertyIdList)
Allows the values of several properties within a managed object to be obtained. |
java.lang.Object |
invokePerform(ObjectName objName,
java.lang.String pfName,
java.lang.Object[] params,
java.lang.String[] signature)
Allows any method to be applied to a remote object. |
java.util.Vector |
newDBMO(java.lang.String impl,
ObjectName name,
ModificationList list)
Creates a persistent instance of a managed object in the remote object server. |
java.util.Vector |
newDBMO(java.lang.String impl,
ObjectName name,
ModificationList list,
ObjectName aLoader)
Creates a persistent instance of a managed object in the remote object server. |
java.util.Vector |
newMO(java.lang.String impl,
ObjectName name,
ModificationList list)
Creates an instance of a managed object in the remote object server. |
java.util.Vector |
newMO(java.lang.String impl,
ObjectName name,
ModificationList list,
ObjectName aLoader)
Creates an instance of a managed object in the remote object server. |
void |
newObj(java.lang.String className)
Allows a Java object of a particular class to be instantiated in a remote managed object server. |
void |
newObj(java.lang.String className,
ObjectName aLoader)
Allows a Java object of a particular class to be instantiated in a remote managed object server. |
void |
removeListener(ObjectName ref)
Allows a listener for a managed object to be removed. |
java.lang.Object |
SetIndexedValue(ObjectName name,
java.lang.String id,
java.lang.Object value,
java.lang.String op,
int pos)
Sets the value of a specific indexed property of a managed object. |
java.lang.Object |
SetValue(ObjectName name,
java.lang.String id,
java.lang.Object value,
java.lang.String op)
Sets the value of a specific property of a managed object. |
PropertyList |
setValues(ObjectName name,
ModificationList modif)
Sets the value of several properties within a managed object. |
Method Detail |
public java.util.Vector getObject(ObjectName name, QueryExp query) throws java.rmi.RemoteException, InstanceNotFoundException, ServiceNotFoundException
name
- The name of the object to be retrieved.query
- The query to be applied for selecting managed objects.public java.lang.Object getValue(ObjectName name, java.lang.String property) throws java.rmi.RemoteException, InstanceNotFoundException, PropertyNotFoundException, java.lang.reflect.InvocationTargetException, ServiceNotFoundException
name
- The name of the managed object from within which
the property is to be retrieved.property
- The name of the property to be retrieved.public java.lang.Object getIndexedValue(ObjectName name, java.lang.String property, int pos) throws java.rmi.RemoteException, InstanceNotFoundException, PropertyNotFoundException, java.lang.reflect.InvocationTargetException, ServiceNotFoundException
name
- The name of the object from within which
the property is to be retrieved.property
- The name of the property to be retrieved.pos
- The position in the index of the value to
be retrieved.public PropertyList getValues(ObjectName name, java.util.Vector propertyIdList) throws InstanceNotFoundException, java.rmi.RemoteException, ServiceNotFoundException
name
- The names of the objects from within which
the properties are to be retrieved.propertyIdList
- A list of the properties to be retrieved.public java.lang.Object SetValue(ObjectName name, java.lang.String id, java.lang.Object value, java.lang.String op) throws InstanceNotFoundException, java.rmi.RemoteException, java.lang.reflect.InvocationTargetException, java.lang.IllegalAccessException, ServiceNotFoundException, PropertyNotFoundException, InvalidPropertyValueException, java.lang.InstantiationException, java.lang.ClassNotFoundException
The value must support the Serializable interface.
name
- The name of the object within which
the property is to be set.id
- The property to be set.value
- The value that the property is to be set to.op
- The Java class name of the operator to be applied
to the property. The class must implement the
OperatorSrvIf
interface.public java.lang.Object SetIndexedValue(ObjectName name, java.lang.String id, java.lang.Object value, java.lang.String op, int pos) throws InstanceNotFoundException, java.rmi.RemoteException, java.lang.reflect.InvocationTargetException, java.lang.IllegalAccessException, ServiceNotFoundException, PropertyNotFoundException, InvalidPropertyValueException, java.lang.InstantiationException, java.lang.ClassNotFoundException
The value must support the Serializable interface.
name
- The name of the object within which
the property is to be set.id
- The property to be set.value
- The value that the property is to be set to.op
- The Java class name of the operator to be applied
to the property. The class must implement the
OperatorSrvIf
interface.pos
- The position in the index of the value to
be set.public PropertyList setValues(ObjectName name, ModificationList modif) throws InstanceNotFoundException, java.rmi.RemoteException, java.lang.reflect.InvocationTargetException, ServiceNotFoundException
The value must support the Serializable interface.
name
- The name of the object within which
the properties are to be set.modif
- A list of the properties to be set and
the values to which they are to be set.public java.lang.String getDomain() throws java.rmi.RemoteException
public void newObj(java.lang.String className) throws java.rmi.RemoteException, java.lang.IllegalAccessException, java.lang.InstantiationException, java.lang.ClassNotFoundException, ServiceNotFoundException, java.lang.reflect.InvocationTargetException
className
- The Java class name of the object to be
created.public java.util.Vector newMO(java.lang.String impl, ObjectName name, ModificationList list) throws java.rmi.RemoteException, java.lang.IllegalAccessException, java.lang.ClassNotFoundException, ServiceNotFoundException, InstanceAlreadyExistException, java.lang.InstantiationException, java.lang.reflect.InvocationTargetException
impl
- The name of the Java implementation to be used
on the server.name
- The name of the managed object to be created.list
- The list of initial values of the properties of
the new managed object.public java.util.Vector newDBMO(java.lang.String impl, ObjectName name, ModificationList list) throws java.rmi.RemoteException, java.lang.IllegalAccessException, java.lang.ClassNotFoundException, ServiceNotFoundException, InstanceAlreadyExistException, java.lang.InstantiationException, java.lang.reflect.InvocationTargetException
impl
- The name of the Java implementation to be used
on the server.name
- The name of the managed object to be created.list
- The list of initial values of the properties of
the new managed object.public void newObj(java.lang.String className, ObjectName aLoader) throws java.rmi.RemoteException, java.lang.IllegalAccessException, java.lang.InstantiationException, java.lang.ClassNotFoundException, ServiceNotFoundException, java.lang.reflect.InvocationTargetException
className
- The Java class name of the object to be
created.aLoader
- The name of a class loader to be used.public java.util.Vector newMO(java.lang.String impl, ObjectName name, ModificationList list, ObjectName aLoader) throws java.rmi.RemoteException, java.lang.IllegalAccessException, java.lang.ClassNotFoundException, ServiceNotFoundException, InstanceAlreadyExistException, java.lang.InstantiationException, java.lang.reflect.InvocationTargetException
impl
- The name of the Java implementation to be used
on the server.name
- The name of the managed object to be created.list
- The list of initial values of the properties of
the new managed object.aLoader
- The name of a class loader to be used.public java.util.Vector newDBMO(java.lang.String impl, ObjectName name, ModificationList list, ObjectName aLoader) throws java.rmi.RemoteException, java.lang.IllegalAccessException, java.lang.ClassNotFoundException, ServiceNotFoundException, InstanceAlreadyExistException, java.lang.InstantiationException, java.lang.reflect.InvocationTargetException
impl
- The name of the Java implementation to be used
on the server.name
- The name of the managed object to be created.list
- The list of initial values of the properties of
the new managed object.aLoader
- The name of a class loader to be used.public void deleteMO(ObjectName name) throws java.rmi.RemoteException, ServiceNotFoundException, InstanceNotFoundException, java.lang.reflect.InvocationTargetException
name
- The name of the managed object to be deleted.public ObjectName addListener(ObjectName mo, java.lang.String listen, java.lang.String receiver) throws InstanceNotFoundException, java.rmi.RemoteException, java.lang.IllegalAccessException, ServiceNotFoundException, java.lang.ClassNotFoundException, java.lang.InstantiationException
mo
- The managed object to be listened to.listen
- The listener to be created in the agent.receiver
- The name of the receiver to be called for
forwarding the event.public void removeListener(ObjectName ref) throws java.rmi.RemoteException
ref
- The object name of the listener to be removed.public java.lang.Object invokePerform(ObjectName objName, java.lang.String pfName, java.lang.Object[] params, java.lang.String[] signature) throws InstanceNotFoundException, java.rmi.RemoteException, java.lang.reflect.InvocationTargetException, ServiceNotFoundException, java.lang.NoSuchMethodException, java.lang.IllegalAccessException
objName
- The name of the remote object.pfName
- The name of the method to be applied.params
- An array containing the parameters
to be passed to the method.signature
- The signature of the method to be called.public void addObject(java.lang.Object object, ObjectName logicalName) throws ServiceNotFoundException, InstanceAlreadyExistException, java.rmi.RemoteException
Use this method with care, because it moves an instance remotely. All methods of this instance are executed locally on the remote agent.
object
- The object to be added to the remote repository.logicalName
- The logical name of the object.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |