donaldp 01/04/24 22:27:00
Modified: src/java/org/apache/phoenix/engine/facilities
ApplicationManager.java
Log:
Add in methods to register/unregister Blocks for management.
Revision Changes Path
1.2 +28 -1
jakarta-avalon-phoenix/src/java/org/apache/phoenix/engine/facilities/ApplicationManager.java
Index: ApplicationManager.java
===================================================================
RCS file:
/home/cvs/jakarta-avalon-phoenix/src/java/org/apache/phoenix/engine/facilities/ApplicationManager.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- ApplicationManager.java 2001/04/24 05:42:42 1.1
+++ ApplicationManager.java 2001/04/25 05:27:00 1.2
@@ -8,9 +8,11 @@
package org.apache.phoenix.engine.facilities;
import org.apache.avalon.atlantis.Facility;
+import org.apache.avalon.atlantis.ManagerException;
+import org.apache.phoenix.Block;
/**
- * This facility is responsible for managing a particular application.
+ * This facility is responsible for managing a particular application.
*
* @author <a href="[EMAIL PROTECTED]">Leo Simons</a>
* @author <a href="mailto:[EMAIL PROTECTED]">Peter Donald</a>
@@ -18,4 +20,29 @@
public interface ApplicationManager
extends Facility
{
+ /**
+ * Register a block for management.
+ * The block 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 block under
+ * @param block the block
+ * @param interfaces the interfaces to register the component under
+ * @exception ManagerException if an error occurs. An error could occur if the
block doesn't
+ * implement the interfaces, the interfaces parameter contain
non-instance
+ * classes, the name is already registered etc.
+ * @exception IllegalArgumentException if block or interfaces is null
+ */
+ void register( String name, Block block, Class[] interfaces )
+ throws ManagerException, IllegalArgumentException;
+
+ /**
+ * Unregister named block.
+ *
+ * @param name the name of block to unregister
+ * @exception ManagerException if an error occurs such as when no such block
registered.
+ */
+ void unregister( String name )
+ throws ManagerException;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]