org.apache.avalon.phoenix.components.manager
Class Target

java.lang.Object
  |
  +--org.apache.avalon.phoenix.components.manager.Target

public class Target
extends Object

It reprensents a managed object in the managegement space. It is a container for zero or more management topics and zero or more management lists.

Version:
$$
Author:
robertsh

Constructor Summary
Target(String name, Object managedResource)
          Creates new Target
 
Method Summary
 void addTopic(javax.management.modelmbean.ModelMBeanInfo topic)
          Topics are a set of attributes and operations relevant to a particular aspect of an object.
 Object getManagedResource()
          Returns the object managed by the target
 String getName()
          Returns the name of the Target
 javax.management.modelmbean.ModelMBeanInfo getTopic(String name)
          Gets a topic for this Target
 Set getTopicNames()
          Returns the Set of topics for this Target
 void removeTopic(String name)
          Removes a topic for this target
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Target

public Target(String name,
              Object managedResource)
Creates new Target
Parameters:
name - the name for the target
managedResource - the object that this managedResource represents in the management hierarchy
Method Detail

getName

public String getName()
Returns the name of the Target
Returns:
the name

getManagedResource

public Object getManagedResource()
Returns the object managed by the target
Returns:
the managed object

addTopic

public void addTopic(javax.management.modelmbean.ModelMBeanInfo topic)
Topics are a set of attributes and operations relevant to a particular aspect of an object. A Target must typically have at least one topic in order to be manageable.
Parameters:
topic -  

removeTopic

public void removeTopic(String name)
Removes a topic for this target
Parameters:
name - the name of the topic to remove

getTopic

public javax.management.modelmbean.ModelMBeanInfo getTopic(String name)
Gets a topic for this Target
Parameters:
name - the name of the topic
Returns:
the topic of that name

getTopicNames

public Set getTopicNames()
Returns the Set of topics for this Target
Returns:
the Set of topic names


Copyright © 2001 Apache Jakarta Project. All Rights Reserved.