All Packages Class Hierarchy This Package Previous Next Index
Interface com.sun.jaw.reference.client.mo.ManagedObject
- public interface ManagedObject
This interface defines a high-level view of a managed object for
a client or manager.
-
connect(AdaptorMO)
- Connect the C-bean to the adaptor.
-
deleteObject()
- Deletes the managed object.
-
disconnect()
- Disconnect the C-bean from the adaptor.
-
getAdaptorMO()
- Get access to the
AdaptorMO
which has created the current instance.
-
getGroupOper()
- Returns the GroupOper property.
-
getObjectName()
- Returns the
object name
of the object.
-
modifyObject(boolean)
- Modifies one or several properties.
-
readAll()
- Reads all the properties of the object.
-
readObject(boolean)
- Reads one or several properties.
-
setGroupOper(Boolean)
- Sets the GroupOper property.
getObjectName
public abstract ObjectName getObjectName()
- Returns the
object name
of the object.
getGroupOper
public abstract Boolean getGroupOper()
- Returns the GroupOper property.
The property indicates if the calls to other getters/setters
should be grouped or not.
- See Also:
- readObject, modifyObject
setGroupOper
public abstract void setGroupOper(Boolean group)
- Sets the GroupOper property.
- Parameters:
- group - The new property value.
modifyObject
public abstract void modifyObject(boolean perform) throws InstanceNotFoundException, IllegalAccessException, InvocationTargetException
- Modifies one or several properties.
The method allows you to group several modifications in one call to
the agent. To use it, first you need to set the
"GroupOper" property
to true, then you need to call the different setting methods of your
object. Once this is done, calling the
modifyObject method
will perform all the previously requested set operations (till the last
call to modifyObject).
- Parameters:
- perform - Indicates whether or not to perform the operation.
- Throws: InstanceNotFoundException
- The specified object does not exist.
- Throws: IllegalAccessException
- Access denied.
- Throws: InvocationTargetException
- The exception contains the real exception
emitted by the method of the remote m-bean.
readObject
public abstract void readObject(boolean perform) throws InstanceNotFoundException
- Reads one or several properties.
The method allows you to group several read operations in one call to
the agent. To use it, first you need to set the
"GroupOper" property
to true, then you need to call the different getters of your
object. Once this is done, calling the
readObject method
will perform all the previously requested set operations (till the last
call to readObject).
- Parameters:
- perform - Indicates whether or not to perform the operation.
- Throws: InstanceNotFoundException
- The specified object does not exist.
readAll
public abstract void readAll() throws InstanceNotFoundException
- Reads all the properties of the object.
Then by setting the "GroupOper" to false,
you can get the read values by calling the different getters of your
managed object.
- Throws: InstanceNotFoundException
- The specified object does not exist.
deleteObject
public abstract void deleteObject() throws InstanceNotFoundException, InvocationTargetException
- Deletes the managed object.
The object is deleted from the remote agent. The local C-bean is
removed from the adaptor through which it was received/created.
- Throws: InstanceNotFoundException
- The specified object does not exist.
- Throws: InvocationTargetException
- The exception contains the real exception
emitted by the method of the remote m-bean.
connect
public abstract void connect(AdaptorMO anAdaptor)
- Connect the C-bean to the adaptor.
If a C-bean with the same object name is already known by the
adaptor, then the connection will fail.
- Parameters:
- anAdaptor - Adaptor to which the C-bean needs to be
connected.
disconnect
public abstract void disconnect()
- Disconnect the C-bean from the adaptor.
getAdaptorMO
public abstract AdaptorMO getAdaptorMO()
- Get access to the
AdaptorMO
which has created the current instance.
The method returns
null if the object is not connected.
- Returns:
- the AdaptorMO
All Packages Class Hierarchy This Package Previous Next Index