com.sun.jaw.reference.client.mo
Interface ManagedObject

All Known Subinterfaces:
AdaptorServerImplMO, AdaptorServerImplMO, AdaptorServerImplMO, AdaptorServerImplMO, AdaptorServerImplMO, AdaptorServerImplMO, AdaptorServerImplMO, CounterMonitorMO, DiscoveryClientMO, DiscoveryMonitorMO, DiscoveryResponderMO, EventHandlerIfMO, FrameworkMO, GaugeMonitorMO, LauncherSrvMO, MetaDataSrvMO, MLetCacheVersionSrvMO, MLetClassLoaderMO, MLetSrvMO, MonitorMO, NetClassLoaderMO, PersistentPropertySrvMO, RelationSrvMO, RemoteAgentMO, ThreadAllocatorSrvMO

public abstract interface ManagedObject

This interface defines a high-level view of a managed object for a client or manager.


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

Method Detail

getObjectName

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

getGroupOper

public java.lang.Boolean getGroupOper()
Returns the GroupOper property. The property indicates if the calls to other getters/setters should be grouped or not.
See Also:
readObject(boolean), modifyObject(boolean)

setGroupOper

public void setGroupOper(java.lang.Boolean group)
Sets the GroupOper property.
Parameters:
group - The new property value.

modifyObject

public void modifyObject(boolean perform)
                  throws InstanceNotFoundException,
                         java.lang.IllegalAccessException,
                         java.lang.reflect.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.
java.lang.IllegalAccessException - Access denied.
java.lang.reflect.InvocationTargetException - The exception contains the real exception emitted by the method of the remote m-bean.

readObject

public 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 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 void deleteObject()
                  throws InstanceNotFoundException,
                         java.lang.reflect.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.
java.lang.reflect.InvocationTargetException - The exception contains the real exception emitted by the method of the remote m-bean.

connect

public 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 void disconnect()
Disconnect the C-bean from the adaptor.

getAdaptorMO

public 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