donaldp 01/04/24 20:17:04
Modified: src/java/org/apache/avalon/atlantis SystemManager.java
Log:
Added javadoc and methods to interface to reflect basic management capabilities.
Revision Changes Path
1.3 +36 -0
jakarta-avalon-phoenix/src/java/org/apache/avalon/atlantis/SystemManager.java
Index: SystemManager.java
===================================================================
RCS file:
/home/cvs/jakarta-avalon-phoenix/src/java/org/apache/avalon/atlantis/SystemManager.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- SystemManager.java 2001/04/24 10:01:24 1.2
+++ SystemManager.java 2001/04/25 03:17:04 1.3
@@ -23,4 +23,40 @@
public interface SystemManager
extends Component, Initializable, Startable, Stoppable, Disposable
{
+ /**
+ * Register an object for management.
+ * The object is exported through some management scheme
+ * (typically JMX) and the management is restricted
+ * to the interfaces passed in as a parameter to method.
+ *
+ * @param name the name to register object under
+ * @param object the object
+ * @param interfaces the interfaces to register the component under
+ * @exception Exception if an error occurs. An error could occur if the object
doesn't
+ * implement the interfaces, the interfaces parameter contain
non-instance
+ * classes, the name is already registered etc.
+ */
+ void register( String name, Object object, Class[] interfaces )
+ throws Exception;
+
+ /**
+ * Register an object for management.
+ * The object is exported through some management scheme
+ * (typically JMX).
+ *
+ * @param name the name to register object under
+ * @param object the object
+ * @exception Exception if an error occurs such as name being already
registered.
+ */
+ void register( String name, Object object )
+ throws Exception;
+
+ /**
+ * Unregister named object.
+ *
+ * @param name the name of object to unregister
+ * @exception Exception if an error occurs such as when no such object
registered.
+ */
+ void unregister( String name )
+ throws Exception;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]