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.


Method Index

 o connect(AdaptorMO)
Connect the C-bean to the adaptor.
 o deleteObject()
Deletes the managed object.
 o disconnect()
Disconnect the C-bean from the adaptor.
 o getAdaptorMO()
Get access to the AdaptorMO which has created the current instance.
 o getGroupOper()
Returns the GroupOper property.
 o getObjectName()
Returns the object name of the object.
 o modifyObject(boolean)
Modifies one or several properties.
 o readAll()
Reads all the properties of the object.
 o readObject(boolean)
Reads one or several properties.
 o setGroupOper(Boolean)
Sets the GroupOper property.

Methods

 o getObjectName
 public abstract ObjectName getObjectName()
Returns the object name of the object.

 o 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
 o setGroupOper
 public abstract void setGroupOper(Boolean group)
Sets the GroupOper property.

Parameters:
group - The new property value.
 o 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.
 o 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.
 o 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.
 o 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.
 o 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.
 o disconnect
 public abstract void disconnect()
Disconnect the C-bean from the adaptor.

 o 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