All Packages Class Hierarchy This Package Previous Next Index
Interface com.sun.jaw.impl.adaptor.rmi.AdaptorServerRmi
- public interface AdaptorServerRmi
- extends Remote
The AdaptorServerRmi class defines the remote
method invocation (RMI) interface to be used by the RMI implementation of
AdaptorClient class.
-
addListener(ObjectName, String, String)
- Allows a listener for a managed object to be added.
-
addObject(Object, ObjectName)
- Adds a named object under the control of the remote CMF.
-
deleteMO(ObjectName)
- Deletes an instance of a managed object in the remote object server.
-
getDomain()
- Returns the name of the domain controlled by the managed object server.
-
getIndexedValue(ObjectName, String, int)
- Allows the value of a specific indexed property within a managed object to be
obtained.
-
getObject(ObjectName, QueryExp)
- Gets handles on managed objects controlled by the remote managed object
server.
-
getValue(ObjectName, String)
- Allows the value of a specific property within a managed object to be
obtained.
-
getValues(ObjectName, Vector)
- Allows the values of several properties within a managed object to be
obtained.
-
invokePerform(ObjectName, String, Object[], String[])
- Allows any method to be applied to a remote object.
-
newDBMO(String, ObjectName, ModificationList)
- Creates a persistent instance of a managed object in the remote object
server.
-
newDBMO(String, ObjectName, ModificationList, ObjectName)
- Creates a persistent instance of a managed object in the remote object
server.
-
newMO(String, ObjectName, ModificationList)
- Creates an instance of a managed object in the remote object server.
-
newMO(String, ObjectName, ModificationList, ObjectName)
- Creates an instance of a managed object in the remote object server.
-
newObj(String)
- Allows a Java object of a particular class to be instantiated in a
remote managed object server.
-
newObj(String, ObjectName)
- Allows a Java object of a particular class to be instantiated in a
remote managed object server.
-
removeListener(ObjectName)
- Allows a listener for a managed object to be removed.
-
SetIndexedValue(ObjectName, String, Object, String, int)
- Sets the value of a specific indexed property of a managed object.
-
SetValue(ObjectName, String, Object, String)
- Sets the value of a specific property of a managed object.
-
setValues(ObjectName, ModificationList)
- Sets the value of several properties within a managed object.
getObject
public abstract Vector getObject(ObjectName name,
QueryExp query) throws RemoteException, InstanceNotFoundException, ServiceNotFoundException
- Gets handles on managed objects controlled by the remote managed object
server. The method enables any of the following things to be obtained:
- All the managed objects.
- A subset specified through a query.
- A specific instance.
When the class name and the instance name are empty, it means that all the
objects are to be selected (and filtered if a query is specified).
- Parameters:
- name - The name of the object to be retrieved.
- query - The query to be applied for selecting managed objects.
- Returns:
- A list containing the selected managed objects.
- Throws: RemoteException
- See java.rmi.RemoteException.
- Throws: InstanceNotFoundException
- The m-bean does not exist in the repository.
- Throws: ServiceNotFoundException
- The requested service is not supported.
getValue
public abstract Object getValue(ObjectName name,
String property) throws RemoteException, InstanceNotFoundException, PropertyNotFoundException, InvocationTargetException, ServiceNotFoundException
- Allows the value of a specific property within a managed object to be
obtained.
- Parameters:
- 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.
- Returns:
- The value of the retrieved property.
- Throws: RemoteException
- See java.rmi.RemoteException.
- Throws: InstanceNotFoundException
- The m-bean does not exist in the repository.
- Throws: PropertyNotFoundException
- The specified property is not defined for the object.
- Throws: InvocationTargetException
- It is a checked exception that wraps an exception thrown by an invoked method or constructor.
- Throws: ServiceNotFoundException
- The requested service is not supported.
getIndexedValue
public abstract Object getIndexedValue(ObjectName name,
String property,
int pos) throws RemoteException, InstanceNotFoundException, PropertyNotFoundException, InvocationTargetException, ServiceNotFoundException
- Allows the value of a specific indexed property within a managed object to be
obtained.
- Parameters:
- 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.
- Returns:
- The value of the retrieved property.
- Throws: RemoteException
- See java.rmi.RemoteException.
- Throws: InstanceNotFoundException
- The m-bean does not exist in the repository.
- Throws: PropertyNotFoundException
- The specified property is not defined for the object.
- Throws: InvocationTargetException
- It is a checked exception that wraps an exception thrown by an invoked method or constructor.
- Throws: ServiceNotFoundException
- The requested service is not supported.
getValues
public abstract PropertyList getValues(ObjectName name,
Vector propertyIdList) throws InstanceNotFoundException, RemoteException, ServiceNotFoundException
- Allows the values of several properties within a managed object to be
obtained.
- Parameters:
- name - The names of the objects from within which
the properties are to be retrieved.
- propertyIdList - A list of the properties to be retrieved.
- Returns:
- The values of the retrieved properties.
- Throws: InstanceNotFoundException
- The m-bean does not exist in the repository.
- Throws: RemoteException
- See java.rmi.RemoteException.
- Throws: ServiceNotFoundException
- The requested service is not supported.
SetValue
public abstract Object SetValue(ObjectName name,
String id,
Object value,
String op) throws InstanceNotFoundException, RemoteException, InvocationTargetException, IllegalAccessException, ServiceNotFoundException, PropertyNotFoundException, InvalidPropertyValueException, InstantiationException, ClassNotFoundException
- Sets the value of a specific property of a managed object.
The value must support the Serializable interface.
- Parameters:
- 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.
- Returns:
- The value that the property has been set to.
- Throws: InstanceNotFoundException
- The m-bean does not exist in the repository.
- Throws: RemoteException
- See java.rmi.RemoteException.
- Throws: InvocationTargetException
- It is a checked exception that wraps an exception thrown by an invoked method or constructor.
- Throws: IllegalAccessException
- The method has tried to access a class that is not public and in another package.
- Throws: ServiceNotFoundException
- The requested service is not supported.
- Throws: PropertyNotFoundException
- The specified property is not defined for the object.
- Throws: InvalidPropertyValueException
- The value specified for a property is invalid.
- Throws: InstantiationException
- A new instance of the specified class could not be created.
- Throws: ClassNotFoundException
- The specified class could not be found.
SetIndexedValue
public abstract Object SetIndexedValue(ObjectName name,
String id,
Object value,
String op,
int pos) throws InstanceNotFoundException, RemoteException, InvocationTargetException, IllegalAccessException, ServiceNotFoundException, PropertyNotFoundException, InvalidPropertyValueException, InstantiationException, ClassNotFoundException
- Sets the value of a specific indexed property of a managed object.
The value must support the Serializable interface.
- Parameters:
- 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.
- Returns:
- The value that the property has been set to.
- Throws: InstanceNotFoundException
- The m-bean does not exist in the repository.
- Throws: RemoteException
- See java.rmi.RemoteException.
- Throws: InvocationTargetException
- It is a checked exception that wraps an exception thrown by an invoked method or constructor.
- Throws: IllegalAccessException
- The method has tried to access a class that is not public and in another package.
- Throws: ServiceNotFoundException
- The requested service is not supported.
- Throws: PropertyNotFoundException
- The specified property is not defined for the object.
- Throws: InvalidPropertyValueException
- The value specified for a property is invalid.
- Throws: InstantiationException
- A new instance of the specified class could not be created.
- Throws: ClassNotFoundException
- The specified class could not be found.
setValues
public abstract PropertyList setValues(ObjectName name,
ModificationList modif) throws InstanceNotFoundException, RemoteException, InvocationTargetException, ServiceNotFoundException
- Sets the value of several properties within a managed object.
The value must support the Serializable interface.
- Parameters:
- 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.
- Returns:
- The values of the properties that were set.
- Throws: InstanceNotFoundException
- The m-bean does not exist in the repository.
- Throws: RemoteException
- See java.rmi.RemoteException.
- Throws: InvocationTargetException
- It is a checked exception that wraps an exception thrown by an invoked method or constructor.
- Throws: ServiceNotFoundException
- The requested service is not supported.
getDomain
public abstract String getDomain() throws RemoteException
- Returns the name of the domain controlled by the managed object server.
- Throws: RemoteException
- See java.rmi.RemoteException.
newObj
public abstract void newObj(String className) throws RemoteException, IllegalAccessException, InstantiationException, ClassNotFoundException, ServiceNotFoundException, InvocationTargetException
- Allows a Java object of a particular class to be instantiated in a
remote managed object server.
- Parameters:
- className - The Java class name of the object to be
created.
- Throws: RemoteException
- See java.rmi.RemoteException.
- Throws: IllegalAccessException
- The method has tried to access a class that is not public and in another package.
- Throws: InstantiationException
- A new instance of the specified class could not be created.
- Throws: ClassNotFoundException
- The specified class could not be found.
- Throws: ServiceNotFoundException
- The requested service is not supported.
- Throws: InvocationTargetException
- It is a checked exception that wraps an exception thrown by an invoked method or constructor.
newMO
public abstract Vector newMO(String impl,
ObjectName name,
ModificationList list) throws RemoteException, IllegalAccessException, ClassNotFoundException, ServiceNotFoundException, InstanceAlreadyExistException, InstantiationException, InvocationTargetException
- Creates an instance of a managed object in the remote object server.
When calling the method, you can optionally provide the class name of
the Java implementation to be used for instantiating the new object.
- Parameters:
- 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.
- Returns:
- The newly created managed object.
- Throws: RemoteException
- See java.rmi.RemoteException.
- Throws: IllegalAccessException
- The method has tried to access a class that is not public and in another package.
- Throws: ClassNotFoundException
- The specified class could not be found.
- Throws: ServiceNotFoundException
- The requested service is not supported.
- Throws: InstanceAlreadyExistException
- The m-bean is already registered in the repository.
- Throws: InstantiationException
- A new instance of the specified class could not be created.
- Throws: InvocationTargetException
- It is a checked exception that wraps an exception thrown by an invoked method or constructor.
newDBMO
public abstract Vector newDBMO(String impl,
ObjectName name,
ModificationList list) throws RemoteException, IllegalAccessException, ClassNotFoundException, ServiceNotFoundException, InstanceAlreadyExistException, InstantiationException, InvocationTargetException
- Creates a persistent instance of a managed object in the remote object
server. When calling the method, you can optionally provide the class name of
the Java implementation to be used for instantiating the new object.
- Parameters:
- 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.
- Returns:
- The newly created managed object.
- Throws: RemoteException
- See java.rmi.RemoteException.
- Throws: IllegalAccessException
- The method has tried to access a class that is not public and in another package.
- Throws: ClassNotFoundException
- The specified class could not be found.
- Throws: ServiceNotFoundException
- The requested service is not supported.
- Throws: InstanceAlreadyExistException
- The m-bean is already registered in the repository.
- Throws: InstantiationException
- A new instance of the specified class could not be created.
- Throws: InvocationTargetException
- It is a checked exception that wraps an exception thrown by an invoked method or constructor.
newObj
public abstract void newObj(String className,
ObjectName aLoader) throws RemoteException, IllegalAccessException, InstantiationException, ClassNotFoundException, ServiceNotFoundException, InvocationTargetException
- Allows a Java object of a particular class to be instantiated in a
remote managed object server.
- Parameters:
- className - The Java class name of the object to be
created.
- aLoader - The name of a class loader to be used.
- Throws: RemoteException
- See java.rmi.RemoteException.
- Throws: IllegalAccessException
- The method has tried to access a class that is not public and in another package.
- Throws: InstantiationException
- A new instance of the specified class could not be created.
- Throws: ClassNotFoundException
- The specified class could not be found.
- Throws: ServiceNotFoundException
- The requested service is not supported.
- Throws: InvocationTargetException
- It is a checked exception that wraps an exception thrown by an invoked method or constructor.
newMO
public abstract Vector newMO(String impl,
ObjectName name,
ModificationList list,
ObjectName aLoader) throws RemoteException, IllegalAccessException, ClassNotFoundException, ServiceNotFoundException, InstanceAlreadyExistException, InstantiationException, InvocationTargetException
- Creates an instance of a managed object in the remote object server.
When calling the method, you can optionally provide the class name of
the Java implementation to be used for instantiating the new object.
- Parameters:
- 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.
- Returns:
- The newly created managed object.
- Throws: RemoteException
- See java.rmi.RemoteException.
- Throws: IllegalAccessException
- The method has tried to access a class that is not public and in another package.
- Throws: ClassNotFoundException
- The specified class could not be found.
- Throws: ServiceNotFoundException
- The requested service is not supported.
- Throws: InstanceAlreadyExistException
- The m-bean is already registered in the repository.
- Throws: InstantiationException
- A new instance of the specified class could not be created.
- Throws: InvocationTargetException
- It is a checked exception that wraps an exception thrown by an invoked method or constructor.
newDBMO
public abstract Vector newDBMO(String impl,
ObjectName name,
ModificationList list,
ObjectName aLoader) throws RemoteException, IllegalAccessException, ClassNotFoundException, ServiceNotFoundException, InstanceAlreadyExistException, InstantiationException, InvocationTargetException
- Creates a persistent instance of a managed object in the remote object
server. When calling the method, you can optionally provide the class
name of the Java implementation to be used for instantiating the new
object.
- Parameters:
- 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.
- Returns:
- The newly created managed object.
- Throws: RemoteException
- See java.rmi.RemoteException.
- Throws: IllegalAccessException
- The method has tried to access a class that is not public and in another package.
- Throws: ClassNotFoundException
- The specified class could not be found.
- Throws: ServiceNotFoundException
- The requested service is not supported.
- Throws: InstanceAlreadyExistException
- The m-bean is already registered in the repository.
- Throws: InstantiationException
- A new instance of the specified class could not be created.
- Throws: InvocationTargetException
- It is a checked exception that wraps an exception thrown by an invoked method or constructor.
deleteMO
public abstract void deleteMO(ObjectName name) throws RemoteException, ServiceNotFoundException, InstanceNotFoundException, InvocationTargetException
- Deletes an instance of a managed object in the remote object server.
- Parameters:
- name - The name of the managed object to be deleted.
- Throws: RemoteException
- See java.rmi.RemoteException.
- Throws: ServiceNotFoundException
- The requested service is not supported.
- Throws: InstanceNotFoundException
- The m-bean does not exist in the repository.
- Throws: InvocationTargetException
- It is a checked exception that wraps an exception thrown by an invoked method or constructor.
addListener
public abstract ObjectName addListener(ObjectName mo,
String listen,
String receiver) throws InstanceNotFoundException, RemoteException, IllegalAccessException, ServiceNotFoundException, ClassNotFoundException, InstantiationException
- Allows a listener for a managed object to be added. Transparently to
the caller, the adaptor creates and registers a listener for the object
within the managed object server. The managed object to be listened to
is specified by the mo parameter.
When the remote object fires an event by calling a method
of the remote listener, the corresponding method in the local listener
is called.
- Parameters:
- 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.
- Returns:
- A reference to the created listener.
- Throws: InstanceNotFoundException
- The m-bean does not exist in the repository.
- Throws: RemoteException
- See java.rmi.RemoteException.
- Throws: IllegalAccessException
- The method has tried to access a class that is not public and in another package.
- Throws: ServiceNotFoundException
- The requested service is not supported.
- Throws: ClassNotFoundException
- The specified class could not be found.
- Throws: InstantiationException
- A new instance of the specified class could not be created.
removeListener
public abstract void removeListener(ObjectName ref) throws RemoteException
- Allows a listener for a managed object to be removed.
- Parameters:
- ref - The object name of the listener to be removed.
- Throws: RemoteException
- See java.rmi.RemoteException.
invokePerform
public abstract Object invokePerform(ObjectName objName,
String pfName,
Object params[],
String signature[]) throws InstanceNotFoundException, RemoteException, InvocationTargetException, ServiceNotFoundException, NoSuchMethodException, IllegalAccessException
- Allows any method to be applied to a remote object.
- Parameters:
- 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.
- Returns:
- The value of the method applied.
- Throws: IllegalAccessException
- The method has tried to access a class that is not public and in another package.
- Throws: InstanceNotFoundException
- The object does not exist in the repository.
- Throws: NoSuchMethodException
- The method specified is not defined.
- Throws: ServiceNotFoundException
- The requested service is not supported.
- Throws: RemoteException
- See java.rmi.RemoteException.
- Throws: InvocationTargetException
- It is a checked exception that wraps an exception thrown by an invoked method or constructor.
addObject
public abstract void addObject(Object object,
ObjectName logicalName) throws ServiceNotFoundException, InstanceAlreadyExistException, RemoteException
- Adds a named object under the control of the remote CMF.
Use this method with care, because it moves an instance
remotely. All methods of this instance are executed locally on
the remote agent.
- Parameters:
- object - The object to be added to the remote repository.
- logicalName - The logical name of the object.
- Throws: InstanceAlreadyExistException
- The managed object is already registered in the repository.
- Throws: ServiceNotFoundException
- The requested service is not supported.
- Throws: RemoteException
- See java.rmi.RemoteException.
All Packages Class Hierarchy This Package Previous Next Index