[Ejtools-cvs] CVS: thirdparty/sun/jsr77/src/main/javax/management/j2ee AppClientModule.java,NONE,1.1
Brought to you by:
letiemble
Update of /cvsroot/ejtools/thirdparty/sun/jsr77/src/main/javax/management/j2ee In directory usw-pr-cvs1:/tmp/cvs-serv31212/sun/jsr77/src/main/javax/management/j2ee Added Files: AppClientModule.java EJB.java EJBModule.java EJBStats.java EntityBean.java EntityBeanStats.java EventProvider.java J2EEApplication.java J2EEDeployedObject.java J2EEDomain.java J2EEManagedObject.java J2EEModule.java J2EEResource.java J2EEServer.java JCAConnectionFactory.java JCAConnectionPoolStats.java JCAConnectionStats.java JCAManagedConnectionFactory.java JCAResource.java JCAStats.java JDBCConnectionPoolStats.java JDBCConnectionStats.java JDBCDataSource.java JDBCDriver.java JDBCResource.java JDBCStats.java JMSConnectionStats.java JMSConsumerStats.java JMSEndpointStats.java JMSProducerStats.java JMSResource.java JMSSessionStats.java JMSStats.java JNDIResource.java JTAResource.java JTAStats.java JVM.java JVMStats.java JavaMailResource.java JavaMailStats.java ListenerRegistration.java Management.java ManagementHome.java MessageDrivenBean.java MessageDrivenBeanStats.java RMI_IIOPResource.java ResourceAdapter.java ResourceAdapterModule.java Servlet.java ServletStats.java SessionBean.java SessionBeanStats.java StateManageable.java StatefulSessionBean.java StatefulSessionBeanStats.java StatelessSessionBean.java StatelessSessionBeanStats.java StatisticsProvider.java Stats.java URLResource.java URLStats.java WebModule.java Log Message: Initial Import --- NEW FILE: AppClientModule.java --- package javax.management.j2ee; /** * Description of the Interface * * @author letiembl * @created 13 mars 2002 */ public interface AppClientModule extends J2EEModule { } --- NEW FILE: EJB.java --- package javax.management.j2ee; /** * Description of the Interface * * @author letiembl * @created 13 mars 2002 */ public interface EJB extends J2EEManagedObject { } --- NEW FILE: EJBModule.java --- package javax.management.j2ee; import javax.management.ObjectName; /** * Description of the Interface * * @author letiembl * @created 13 mars 2002 */ public interface EJBModule extends J2EEModule { /** * Getter for the ejb attribute * * @param i Description of Parameter * @return The value of ejb attribute */ public ObjectName getEjb(int i); /** * Getter for the ejbs attribute * * @return The value of ejbs attribute */ public ObjectName[] getEjbs(); } --- NEW FILE: EJBStats.java --- package javax.management.j2ee; import javax.management.j2ee.statistics.CountStatistic; /** * Description of the Interface * * @author letiembl * @created 13 mars 2002 */ public interface EJBStats extends Stats { /** * Getter for the createCount attribute * * @return The value of createCount attribute */ public CountStatistic getCreateCount(); /** * Getter for the removeCount attribute * * @return The value of removeCount attribute */ public CountStatistic getRemoveCount(); } --- NEW FILE: EntityBean.java --- package javax.management.j2ee; /** * Description of the Interface * * @author letiembl * @created 13 mars 2002 */ public interface EntityBean extends EJB { } --- NEW FILE: EntityBeanStats.java --- package javax.management.j2ee; import javax.management.j2ee.statistics.RangeStatistic; /** * Description of the Interface * * @author letiembl * @created 13 mars 2002 */ public interface EntityBeanStats extends EJBStats { /** * Getter for the readyCount attribute * * @return The value of readyCount attribute */ public RangeStatistic getReadyCount(); /** * Getter for the pooledCount attribute * * @return The value of pooledCount attribute */ public RangeStatistic getPooledCount(); } --- NEW FILE: EventProvider.java --- package javax.management.j2ee; /** * Description of the Interface * * @author letiembl * @created 13 mars 2002 */ public interface EventProvider { /** * Getter for the type attribute * * @param i Description of Parameter * @return The value of type attribute */ public String getEventType(int i); /** * Getter for the types attribute * * @return The value of types attribute */ public String[] getEventTypes(); } --- NEW FILE: J2EEApplication.java --- package javax.management.j2ee; import javax.management.ObjectName; /** * Description of the Interface * * @author letiembl * @created 13 mars 2002 */ public interface J2EEApplication extends J2EEDeployedObject { /** * Getter for the module attribute * * @param i Description of Parameter * @return The value of module attribute */ public ObjectName getModule(int i); /** * Getter for the modules attribute * * @return The value of modules attribute */ public ObjectName[] getModules(); } --- NEW FILE: J2EEDeployedObject.java --- package javax.management.j2ee; import javax.management.ObjectName; /** * Description of the Interface * * @author letiembl * @created 13 mars 2002 */ public interface J2EEDeployedObject extends J2EEManagedObject { /** * Getter for the deploymentDescriptor attribute * * @return The value of deploymentDescriptor attribute */ public String getDeploymentDescriptor(); /** * Getter for the server1 attribute * * @return The value of server1 attribute */ public ObjectName getServer(); } --- NEW FILE: J2EEDomain.java --- package javax.management.j2ee; import javax.management.ObjectName; /** * Description of the Interface * * @author letiembl * @created 13 mars 2002 */ public interface J2EEDomain extends J2EEManagedObject { /** * Getter for the server attribute * * @param i Description of Parameter * @return The value of server attribute */ public ObjectName getServer(int i); /** * Getter for the servers attribute * * @return The value of servers attribute */ public ObjectName[] getServers(); } --- NEW FILE: J2EEManagedObject.java --- package javax.management.j2ee; /** * Description of the Interface * * @author letiembl * @created 13 mars 2002 */ public interface J2EEManagedObject { /** * Getter for the name attribute * * @return The value of name attribute */ public String getObjectName(); /** * Getter for the eventProvider attribute * * @return The value of eventProvider attribute */ public boolean isEventProvider(); /** * Getter for the stateManageable attribute * * @return The value of stateManageable attribute */ public boolean isStateManageable(); /** * Getter for the statisticsProvider attribute * * @return The value of statisticsProvider attribute */ public boolean isStatisticsProvider(); } --- NEW FILE: J2EEModule.java --- package javax.management.j2ee; import javax.management.ObjectName; /** * Description of the Interface * * @author letiembl * @created 13 mars 2002 */ public interface J2EEModule extends J2EEDeployedObject { /** * Getter for the javaVM attribute * * @param i Description of Parameter * @return The value of javaVM attribute */ public ObjectName getJavaVM(int i); /** * Getter for the javaVMs attribute * * @return The value of javaVMs attribute */ public ObjectName[] getJavaVMs(); } --- NEW FILE: J2EEResource.java --- package javax.management.j2ee; /** * Description of the Interface * * @author letiembl * @created 13 mars 2002 */ public interface J2EEResource extends J2EEManagedObject { } --- NEW FILE: J2EEServer.java --- package javax.management.j2ee; import javax.management.ObjectName; /** * Description of the Interface * * @author letiembl * @created 13 mars 2002 */ public interface J2EEServer extends J2EEManagedObject { /** * Getter for the deployedObject attribute * * @param i Description of Parameter * @return The value of deployedObject attribute */ public ObjectName getDeployedObject(int i); /** * Getter for the deployedObjects attribute * * @return The value of deployedObjects attribute */ public ObjectName[] getDeployedObjects(); /** * Getter for the javaVM attribute * * @param i Description of Parameter * @return The value of javaVM attribute */ public ObjectName getJavaVM(int i); /** * Getter for the javaVMs attribute * * @return The value of javaVMs attribute */ public ObjectName[] getJavaVMs(); /** * Getter for the node attribute * * @param i Description of Parameter * @return The value of node attribute */ public ObjectName getNode(int i); /** * Getter for the nodes attribute * * @return The value of nodes attribute */ public ObjectName[] getNodes(); /** * Getter for the resource attribute * * @param i Description of Parameter * @return The value of resource attribute */ public ObjectName getResource(int i); /** * Getter for the resources attribute * * @return The value of resources attribute */ public ObjectName[] getResources(); /** * Getter for the serverVendor attribute * * @return The value of serverVendor attribute */ public String getServerVendor(); /** * Getter for the serverVersion attribute * * @return The value of serverVersion attribute */ public String getServerVersion(); } --- NEW FILE: JCAConnectionFactory.java --- package javax.management.j2ee; import javax.management.ObjectName; /** * Description of the Interface * * @author laurent * @created 10 mars 2002 */ public interface JCAConnectionFactory extends J2EEManagedObject { /** * Getter for the managedConnectionFactory attribute * * @return The value */ public ObjectName getManagedConnectionFactory(); } --- NEW FILE: JCAConnectionPoolStats.java --- package javax.management.j2ee; import javax.management.j2ee.statistics.BoundedRangeStatistic; import javax.management.j2ee.statistics.CountStatistic; import javax.management.j2ee.statistics.RangeStatistic; /** * Description of the Interface * * @author letiembl * @created 13 mars 2002 */ public interface JCAConnectionPoolStats extends JCAConnectionStats { /** * Getter for the closeCount attribute * * @return The value of closeCount attribute */ public CountStatistic getCloseCount(); /** * Getter for the createCount attribute * * @return The value of createCount attribute */ public CountStatistic getCreateCount(); /** * Getter for the freePoolSize attribute * * @return The value of freePoolSize attribute */ public BoundedRangeStatistic getFreePoolSize(); /** * Getter for the poolSize attribute * * @return The value of poolSize attribute */ public BoundedRangeStatistic getPoolSize(); /** * Getter for the waitingThreadCount attribute * * @return The value of waitingThreadCount attribute */ public RangeStatistic getWaitingThreadCount(); } --- NEW FILE: JCAConnectionStats.java --- package javax.management.j2ee; import javax.management.ObjectName; import javax.management.j2ee.statistics.TimeStatistic; /** * Description of the Interface * * @author letiembl * @created 13 mars 2002 */ public interface JCAConnectionStats extends Stats { /** * Getter for the connectionFactory attribute * * @return The value of connectionFactory attribute */ public ObjectName getConnectionFactory(); /** * Getter for the managedConnectionFactory attribute * * @return The value of managedConnectionFactory attribute */ public Object getManagedConnectionFactory(); /** * Getter for the waitTime attribute * * @return The value of waitTime attribute */ public TimeStatistic getWaitTime(); /** * Getter for the useTime attribute * * @return The value of useTime attribute */ public TimeStatistic getUseTime(); } --- NEW FILE: JCAManagedConnectionFactory.java --- package javax.management.j2ee; /** * Description of the Interface * * @author laurent * @created 10 mars 2002 */ public interface JCAManagedConnectionFactory extends J2EEManagedObject { } --- NEW FILE: JCAResource.java --- package javax.management.j2ee; import javax.management.ObjectName; /** * Description of the Interface * * @author letiembl * @created 13 mars 2002 */ public interface JCAResource extends J2EEResource { /** * Getter for the connectionFactory attribute * * @param i Description of Parameter * @return The value */ public ObjectName getConnectionFactory(int i); /** * Getter for the connectionFactories attribute * * @return The value */ public ObjectName[] getConnectionFactories(); } --- NEW FILE: JCAStats.java --- package javax.management.j2ee; /** * Description of the Interface * * @author letiembl * @created 13 mars 2002 */ public interface JCAStats extends Stats { /** * Getter for the connections attribute * * @return The value of connections attribute */ public JCAConnectionStats[] getConnections(); /** * Getter for the connectionPools attribute * * @return The value of connectionPools attribute */ public JCAConnectionPoolStats[] getConnectionPools(); } --- NEW FILE: JDBCConnectionPoolStats.java --- package javax.management.j2ee; import javax.management.j2ee.statistics.BoundedRangeStatistic; import javax.management.j2ee.statistics.CountStatistic; import javax.management.j2ee.statistics.RangeStatistic; /** * Description of the Interface * * @author letiembl * @created 13 mars 2002 */ public interface JDBCConnectionPoolStats extends JDBCConnectionStats { /** * Getter for the closeCount attribute * * @return The value of closeCount attribute */ public CountStatistic getCloseCount(); /** * Getter for the createCount attribute * * @return The value of createCount attribute */ public CountStatistic getCreateCount(); /** * Getter for the freePoolSize attribute * * @return The value of freePoolSize attribute */ public BoundedRangeStatistic getFreePoolSize(); /** * Getter for the poolSize attribute * * @return The value of poolSize attribute */ public BoundedRangeStatistic getPoolSize(); /** * Getter for the waitingThreadCount attribute * * @return The value of waitingThreadCount attribute */ public RangeStatistic getWaitingThreadCount(); } --- NEW FILE: JDBCConnectionStats.java --- package javax.management.j2ee; import javax.management.ObjectName; import javax.management.j2ee.statistics.TimeStatistic; /** * Description of the Interface * * @author letiembl * @created 13 mars 2002 */ public interface JDBCConnectionStats extends Stats { /** * Getter for the jdbcDataSource attribute * * @return The value of jdbcDataSource attribute */ public ObjectName getJdbcDataSource(); /** * Getter for the waitTime attribute * * @return The value of waitTime attribute */ public TimeStatistic getWaitTime(); /** * Getter for the useTime attribute * * @return The value of useTime attribute */ public TimeStatistic getUseTime(); } --- NEW FILE: JDBCDataSource.java --- package javax.management.j2ee; import javax.management.ObjectName; /** * Description of the Interface * * @author letiembl * @created 13 mars 2002 */ public interface JDBCDataSource extends J2EEManagedObject { /** * Getter for the jdbcDriver attribute * * @return The value of jdbcDriver attribute */ public ObjectName getJdbcDriver(); } --- NEW FILE: JDBCDriver.java --- package javax.management.j2ee; /** * Description of the Interface * * @author laurent * @created 10 mars 2002 */ public interface JDBCDriver extends J2EEManagedObject { } --- NEW FILE: JDBCResource.java --- package javax.management.j2ee; import javax.management.ObjectName; /** * Description of the Interface * * @author letiembl * @created 13 mars 2002 */ public interface JDBCResource extends J2EEResource { /** * Getter for the jdbcDataSource attribute * * @param i Description of Parameter * @return The value of jdbcDataSource attribute */ public ObjectName getJdbcDataSource(int i); /** * Getter for the jdbcDataSources attribute * * @return The value of jdbcDataSources attribute */ public ObjectName[] getJdbcDataSources(); } --- NEW FILE: JDBCStats.java --- package javax.management.j2ee; /** * Description of the Interface * * @author letiembl * @created 13 mars 2002 */ public interface JDBCStats extends Stats { /** * Getter for the connections attribute * * @return The value of connections attribute */ public JDBCConnectionStats[] getConnections(); /** * Getter for the connectionPools attribute * * @return The value of connectionPools attribute */ public JDBCConnectionPoolStats[] getConnectionPools(); } --- NEW FILE: JMSConnectionStats.java --- package javax.management.j2ee; /** * Description of the Interface * * @author letiembl * @created 13 mars 2002 */ public interface JMSConnectionStats extends Stats { /** * Getter for the sessions attribute * * @return The value of sessions attribute */ public JMSSessionStats[] getSessions(); /** * Getter for the transactional attribute * * @return The value of transactional attribute */ public boolean isTransactional(); } --- NEW FILE: JMSConsumerStats.java --- package javax.management.j2ee; /** * Description of the Interface * * @author letiembl * @created 13 mars 2002 */ public interface JMSConsumerStats extends JMSEndpointStats { /** * Getter for the origin attribute * * @return The value of origin attribute */ public String getOrigin(); } --- NEW FILE: JMSEndpointStats.java --- package javax.management.j2ee; import javax.management.j2ee.statistics.CountStatistic; import javax.management.j2ee.statistics.TimeStatistic; /** * Description of the Interface * * @author letiembl * @created 13 mars 2002 */ public interface JMSEndpointStats extends Stats { /** * Getter for the messageCount attribute * * @return The value of messageCount attribute */ public CountStatistic getMessageCount(); /** * Getter for the pendingMessageCount attribute * * @return The value of pendingMessageCount attribute */ public CountStatistic getPendingMessageCount(); /** * Getter for the expiredMessageCount attribute * * @return The value of expiredMessageCount attribute */ public CountStatistic getExpiredMessageCount(); /** * Getter for the messageWaitTime attribute * * @return The value of messageWaitTime attribute */ public TimeStatistic getMessageWaitTime(); } --- NEW FILE: JMSProducerStats.java --- package javax.management.j2ee; /** * Description of the Interface * * @author letiembl * @created 13 mars 2002 */ public interface JMSProducerStats extends JMSEndpointStats { /** * Getter for the destination attribute * * @return The value of destination attribute */ public String getDestination(); } --- NEW FILE: JMSResource.java --- package javax.management.j2ee; /** * Description of the Interface * * @author letiembl * @created 13 mars 2002 */ public interface JMSResource extends J2EEResource { } --- NEW FILE: JMSSessionStats.java --- package javax.management.j2ee; import javax.management.j2ee.statistics.CountStatistic; import javax.management.j2ee.statistics.TimeStatistic; /** * Description of the Interface * * @author letiembl * @created 13 mars 2002 */ public interface JMSSessionStats extends Stats { /** * Getter for the producers attribute * * @return The value of producers attribute */ public JMSProducerStats[] getProducers(); /** * Getter for the consumers attribute * * @return The value of consumers attribute */ public JMSConsumerStats[] getConsumers(); /** * Getter for the messageCount attribute * * @return The value of messageCount attribute */ public CountStatistic getMessageCount(); /** * Getter for the pendingMessageCount attribute * * @return The value of pendingMessageCount attribute */ public CountStatistic getPendingMessageCount(); /** * Getter for the expiredMessageCount attribute * * @return The value of expiredMessageCount attribute */ public CountStatistic getExpiredMessageCount(); /** * Getter for the messageWaitTime attribute * * @return The value of messageWaitTime attribute */ public TimeStatistic getMessageWaitTime(); /** * Getter for the durableSubscriptionCount attribute * * @return The value of durableSubscriptionCount attribute */ public CountStatistic getDurableSubscriptionCount(); } --- NEW FILE: JMSStats.java --- package javax.management.j2ee; /** * Description of the Interface * * @author letiembl * @created 13 mars 2002 */ public interface JMSStats extends Stats { /** * Getter for the connections attribute * * @return The value of connections attribute */ public JMSConnectionStats[] getConnections(); } --- NEW FILE: JNDIResource.java --- package javax.management.j2ee; /** * Description of the Interface * * @author laurent * @created 10 mars 2002 */ public interface JNDIResource extends J2EEResource { } --- NEW FILE: JTAResource.java --- package javax.management.j2ee; /** * Description of the Interface * * @author laurent * @created 10 mars 2002 */ public interface JTAResource extends J2EEResource { } --- NEW FILE: JTAStats.java --- package javax.management.j2ee; import javax.management.j2ee.statistics.CountStatistic; /** * Description of the Interface * * @author letiembl * @created 13 mars 2002 */ public interface JTAStats extends Stats { /** * Getter for the activeCount attribute * * @return The value of activeCount attribute */ public CountStatistic getActiveCount(); /** * Getter for the commitedCount attribute * * @return The value of commitedCount attribute */ public CountStatistic getCommitedCount(); /** * Getter for the rolledbackCount attribute * * @return The value of rolledbackCount attribute */ public CountStatistic getRolledbackCount(); } --- NEW FILE: JVM.java --- package javax.management.j2ee; import javax.management.ObjectName; /** * Description of the Interface * * @author laurent * @created 10 mars 2002 */ public interface JVM extends J2EEManagedObject { /** * Getter for the javaVendor attribute * * @return The value */ public String getJavaVendor(); /** * Getter for the javaVersion attribute * * @return The value */ public String getJavaVersion(); /** * Getter for the node attribute * * @return The value */ public String getNode(); } --- NEW FILE: JVMStats.java --- package javax.management.j2ee; import javax.management.j2ee.statistics.BoundedRangeStatistic; import javax.management.j2ee.statistics.CountStatistic; /** * Description of the Interface * * @author letiembl * @created 13 mars 2002 */ public interface JVMStats extends Stats { /** * Getter for the upTime attribute * * @return The value of upTime attribute */ public CountStatistic getUpTime(); /** * Getter for the heapSizes attribute * * @return The value of heapSizes attribute */ public BoundedRangeStatistic[] getHeapSizes(); } --- NEW FILE: JavaMailResource.java --- package javax.management.j2ee; /** * Description of the Interface * * @author letiembl * @created 13 mars 2002 */ public interface JavaMailResource extends J2EEResource { } --- NEW FILE: JavaMailStats.java --- package javax.management.j2ee; import javax.management.j2ee.statistics.CountStatistic; /** * Description of the Interface * * @author letiembl * @created 13 mars 2002 */ public interface JavaMailStats extends Stats { /** * Getter for the sentMailCount attribute * * @return The value of sentMailCount attribute */ public CountStatistic getSentMailCount(); } --- NEW FILE: ListenerRegistration.java --- package javax.management.j2ee; import java.io.Serializable; import java.rmi.RemoteException; import javax.management.InstanceNotFoundException; import javax.management.ListenerNotFoundException; import javax.management.NotificationFilter; import javax.management.NotificationListener; import javax.management.ObjectName; /** * Interface how a client can add its local listener on the * remote Management EJB. * * @author <a href="mailto:mar...@jb...">Marc Fleury</a> * @author <a href="mailto:an...@jb...">Andreas Schaefer</a> **/ public interface ListenerRegistration extends Serializable { // ------------------------------------------------------------------------- // Methods // ------------------------------------------------------------------------- /** * Adds a new local (client-side) listener on the Management EJB (server-side) * to listen for Notifications. If the call is local (in the same JVM) then * it can optimize the call to local. * * @param pName Object Name of the Managed Object we want to listen for notifications * @param pListener Local (client-side) Notification Listener to finally receive the * notifications * @param pFilter Notification Filter to reduce the notifications to what the client * expects * @param pHandback Handback object sent back to the client on every Notifications * delivered based on this registration **/ public void addNotificationListener( ObjectName pName, NotificationListener pListener, NotificationFilter pFilter, Object pHandback ) throws InstanceNotFoundException, RemoteException; /** * Removes the notification listener from the Management EJB (server-side) * based on the given local (client-side) listener. * * @param pName Object Name of the Managed Object the Listener was added to listen for * @param pListener Local (client-side) Notification Listener used to add the * notification listener **/ public void removeNotificationListener( ObjectName pName, NotificationListener pListener ) throws InstanceNotFoundException, ListenerNotFoundException, RemoteException; } --- NEW FILE: Management.java --- package javax.management.j2ee; import java.rmi.RemoteException; import java.util.Set; import javax.ejb.EJBObject; import javax.management.Attribute; import javax.management.AttributeList; import javax.management.AttributeNotFoundException; import javax.management.InstanceNotFoundException; import javax.management.IntrospectionException; import javax.management.InvalidAttributeValueException; import javax.management.MBeanException; import javax.management.MBeanInfo; import javax.management.ObjectName; import javax.management.QueryExp; import javax.management.ReflectionException; /** * Remote Interface of the Management EJB * * @author <a href="mailto:ma...@jb...">Marc Fleury</a> * @author <a href="mailto:an...@jb...">Andreas Schaefer</a> * @version $Revision: 1.1 $ * * <p><b>Revisions:</b> * * <p><b>200112009 Andreas Schaefer:</b> * <ul> * <li> Adjustment to the new JBoss guide lines and also adjustments * to the latest JSR-77 specification * </ul> **/ public interface Management extends EJBObject { // Constants ----------------------------------------------------- // Public -------------------------------------------------------- /** * Gets the value of a specific attribute of a named managed object. The * managed object is identified by its object name * * @param pName Object Name of the managed object from which the attribute * is to be retrieved * @param pAttribute Name of the Attribute to be retrieved which is case * sensitive * @return Value of the specified attribute * @throws AttributeNotFound Specified attribute is not accessible in the * managed object * @throws ManagedObjectException Wraps an exception thrown by the manged * object's getter * @throws InstanceNotFoundException Specified managed object is not registered * in the MEJB * @throws ReflectionException Wraps a exception thrown when trying to * the setter (??) * @throws RuntimeOperationsException Wraps an IllegalArgumentException * when the given object name is null or the * given attribute is null **/ public Object getAttribute( ObjectName pName, String pAttribute ) throws MBeanException, AttributeNotFoundException, InstanceNotFoundException, ReflectionException, RemoteException; /** * Gets the values of the specified attributes of a named managed object. The * managed object is identified by its object name * * @param pName Object Name of the managed object from which the attribute * is to be retrieved * @param pAttributes Names of the Attribute to be retrieved which is case * sensitive * @return List of retrieved attributes * @throws InstanceNotFoundException Specified managed object is not registered * in the MEJB * @throws ReflectionException Wraps a exception thrown when trying to * the setter (??) * @throws RuntimeOperationsException Wraps an IllegalArgumentException * when the given object name is null or the * given attribute is null **/ public AttributeList getAttributes( ObjectName pName, String[] pAttributes ) throws InstanceNotFoundException, ReflectionException, RemoteException; /** * @return Domain Name of this MEJB **/ public String getDefaultDomain() throws RemoteException; /** * @returns the number of managed objects registered in the MEJB **/ public Integer getMBeanCount() throws RemoteException; /** * Returns the MBean info about the requested Managed Object * * @param pName Object Name of the Managed Object * * @return MBeanInfo instance of the requested Managed Object **/ public MBeanInfo getMBeanInfo( ObjectName pName ) throws IntrospectionException, InstanceNotFoundException, ReflectionException, RemoteException; public ListenerRegistration getListenerRegistry() throws RemoteException; /** * Invokes an operation on the specified managed object * * @param pName Object Name of the managed object on which the method is to * be invoked * @param pOperationName Name of the Operation to be invoked * @param pParams List of parameters to be set as parameter when the operation * is invoked * @param pSignature List of types of the parameter list of the operation. The * class objects will be loaded using the same class loader as * the one used for loading the managed object on which the * operation was invoked * @return The object returned by the operation, which represents the result of * invoking the operation on the managed object specified. * @throws InstanceNotFoundException Managed Object could not be found in the MEJB * by specifed object name * @throws ManageObjectException Wraps an excepton thrown by the managed object's * invoked method * @throws ReflectionException Wraps an Exception thrown while trying to invoke * the method **/ public Object invoke( ObjectName pName, String pOperationName, Object[] pParams, String[] pSignature ) throws InstanceNotFoundException, MBeanException, ReflectionException, RemoteException; /** * Checks whether an managed object, identified by its object name, is already * registered with the MEJB * * @param pName Object Name of the managed object to be checked * @return True if the managed object is already registerred is the MEJB * @throws RuntimeOperationsException Wraps a IllegalArgumentException if the * given object name is null **/ public boolean isRegistered( ObjectName pName ) throws RemoteException; /** * Gets the names of managed object controlled by the MEJB. This method enables * any of the following to be obtained: the names of all managed objects, the name * of a set of managed objects specified by pattern matching on the ObjectName, * a specific managed object (equivalent to testing whether an amanged object is * registered). When the object name is null or no domain and key properties are * specified, all objects are selected. It returns the set of ObjectNames for * the managed objects selected. * * @param pName Object Name pattern identifying the managed objects to be retrieved. * If null or no domain and key properties are specified, all the * managed objects registered will be retrieved. * @return Set of ObjectNames for the managed objects selected. If no managed * object satisfied the query, an emtpy list is returned **/ public Set queryNames( ObjectName pName, QueryExp query ) throws RemoteException; /** * Sets the value of a specific attribute of a named managed object. The managed * object is identified by its object name * * @param pName Object Name of the managed object from which the attribute * is to be retrieved * @param pAttribute Identification of the attribute to be set and the value it * is to be set to * @return Attribute with the value it was set to * @throws AttributeNotFoundException Specified attribute is not accessible in the * managed object * @throws InstanceNotFoundException Managed Object could not be found in the MEJB * by specifed object name * @throws InvalidAttributeValueException Given value for the attribute is not valid * @throws ReflectionException Wraps a exception thrown when trying to * the setter * @throws RuntimeOperationsException Wraps an IllegalArgumentException * when the given object name is null or the * given attribute is null **/ public void setAttribute( ObjectName pName, Attribute pAttribute ) throws AttributeNotFoundException, InstanceNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException, RemoteException; /** * Sets the values of the specified attributes of a named managed object. The managed * object is identified by its object name * * @param pName Object Name of the managed object from which the attribute * is to be retrieved * @param pAttributes Identification of the attributes to be set and the values they * are to be set to * @return Attributes with the values they were set to * @throws InstanceNotFoundException Managed Object could not be found in the MEJB * by specifed object name * @throws ReflectionException Wraps a exception thrown when trying to * the setter * @throws RuntimeOperationsException Wraps an IllegalArgumentException * when the given object name is null or the given * list of attributes is null **/ public AttributeList setAttributes( ObjectName pName, AttributeList pAttributes ) throws InstanceNotFoundException, ReflectionException, RemoteException; // Package protected --------------------------------------------- // Protected ----------------------------------------------------- // Static inner classes ------------------------------------------------- } --- NEW FILE: ManagementHome.java --- package javax.management.j2ee; import java.rmi.RemoteException; import javax.ejb.CreateException; import javax.ejb.EJBHome; /** * Home Interface of the Management EJB * * @author <a href="mailto:mar...@jb...">Marc Fleury</a> * @author <a href="mailto:an...@jb...">Andreas Schaefer</a> **/ public interface ManagementHome extends EJBHome { // ------------------------------------------------------------------------- // Methods // ------------------------------------------------------------------------- public Management create() throws CreateException, RemoteException; } --- NEW FILE: MessageDrivenBean.java --- package javax.management.j2ee; /** * Description of the Interface * * @author letiembl * @created 13 mars 2002 */ public interface MessageDrivenBean extends EJB { } --- NEW FILE: MessageDrivenBeanStats.java --- package javax.management.j2ee; import javax.management.j2ee.statistics.CountStatistic; /** * Description of the Interface * * @author letiembl * @created 13 mars 2002 */ public interface MessageDrivenBeanStats extends EJBStats { /** * Getter for the messageCount attribute * * @return The value of messageCount attribute */ public CountStatistic getMessageCount(); } --- NEW FILE: RMI_IIOPResource.java --- package javax.management.j2ee; /** * Description of the Interface * * @author laurent * @created 10 mars 2002 */ public interface RMI_IIOPResource extends J2EEResource { } --- NEW FILE: ResourceAdapter.java --- package javax.management.j2ee; /** * Description of the Interface * * @author letiembl * @created 13 mars 2002 */ public interface ResourceAdapter extends J2EEManagedObject { } --- NEW FILE: ResourceAdapterModule.java --- package javax.management.j2ee; import javax.management.ObjectName; /** * Description of the Interface * * @author letiembl * @created 13 mars 2002 */ public interface ResourceAdapterModule extends J2EEModule { /** * Description of the Method * * @param i Description of Parameter * @return Description of the Returned Value */ public ObjectName ResourceAdapter(int i); /** * Getter for the resourceAdapters attribute * * @return The value of resourceAdapters attribute */ public ObjectName[] getResourceAdapters(); } --- NEW FILE: Servlet.java --- package javax.management.j2ee; /** * Description of the Interface * * @author letiembl * @created 13 mars 2002 */ public interface Servlet extends J2EEManagedObject { } --- NEW FILE: ServletStats.java --- package javax.management.j2ee; import javax.management.j2ee.statistics.TimeStatistic; /** * Description of the Interface * * @author letiembl * @created 13 mars 2002 */ public interface ServletStats extends Stats { /** * Getter for the serviceTime attribute * * @return The value of serviceTime attribute */ public TimeStatistic getServiceTime(); } --- NEW FILE: SessionBean.java --- package javax.management.j2ee; /** * Description of the Interface * * @author letiembl * @created 13 mars 2002 */ public interface SessionBean extends EJB { } --- NEW FILE: SessionBeanStats.java --- package javax.management.j2ee; import javax.management.j2ee.statistics.RangeStatistic; /** * Description of the Interface * * @author letiembl * @created 13 mars 2002 */ public interface SessionBeanStats extends EJBStats { /** * Getter for the methodReadyCount attribute * * @return The value of methodReadyCount attribute */ public RangeStatistic getMethodReadyCount(); } --- NEW FILE: StateManageable.java --- package javax.management.j2ee; /** * Description of the Interface * * @author letiembl * @created 13 mars 2002 */ public interface StateManageable extends EventProvider { /** Description of the Field */ public final static int STOPPED = 0; /** Description of the Field */ public final static int STOPPING = 1; /** Description of the Field */ public final static int STARTING = 2; /** Description of the Field */ public final static int RUNNING = 3; /** Description of the Field */ public final static int FAILED = 4; /** * Getter for the startTime attribute * * @return The value of startTime attribute */ public long getStartTime(); /** * Getter for the state attribute * * @return The value of state attribute */ public int getState(); /** Description of the Method */ public void start(); /** Description of the Method */ public void startRecursive(); /** Description of the Method */ public void stop(); } --- NEW FILE: StatefulSessionBean.java --- package javax.management.j2ee; /** * Description of the Interface * * @author letiembl * @created 13 mars 2002 */ public interface StatefulSessionBean extends SessionBean { } --- NEW FILE: StatefulSessionBeanStats.java --- package javax.management.j2ee; import javax.management.j2ee.statistics.RangeStatistic; /** * Description of the Interface * * @author letiembl * @created 13 mars 2002 */ public interface StatefulSessionBeanStats extends SessionBeanStats { /** * Getter for the passiveCount attribute * * @return The value of passiveCount attribute */ public RangeStatistic getPassiveCount(); } --- NEW FILE: StatelessSessionBean.java --- package javax.management.j2ee; /** * Description of the Interface * * @author letiembl * @created 13 mars 2002 */ public interface StatelessSessionBean extends SessionBean { } --- NEW FILE: StatelessSessionBeanStats.java --- package javax.management.j2ee; /** * Description of the Interface * * @author letiembl * @created 13 mars 2002 */ public interface StatelessSessionBeanStats extends SessionBeanStats { } --- NEW FILE: StatisticsProvider.java --- package javax.management.j2ee; /** * Description of the Interface * * @author letiembl * @created 13 mars 2002 */ public interface StatisticsProvider { /** * Getter for the stats attribute * * @return The value of stats attribute */ public abstract Stats getStats(); } --- NEW FILE: Stats.java --- package javax.management.j2ee; import javax.management.j2ee.statistics.Statistic; /** * The Stats interface and its subinterfaces specify performance data accessors * for each of the specific managed object types. The data required by the * interfaces is commonly available on all platform implementations. Managed * objects that support statistics are permitted to provide support for a * subset of the accessors in the Stats interfaces. Managed objects indicate * which of the specified accessors return valid data by including only the * names of the supported statistics in the statisticNames list. The data * provided by a supported statistic must be exactly as specified by the * corresponding Stats interface. The Stats interfaces may be extended to * provide vendor specific performance statistics. Vendor specific perfomance * statistics must implement or extend one of the standard Statistics * interfaces. * * @author letiembl * @created 13 mars 2002 */ public interface Stats { /** * Returns a list of the names of the attributes from the specific Stats * interface that this object supports. Attributes named in the list must * correspond to the names of operations in the Stats interface that will * return Statistics object of the appropriate type which contains valid * data. Each operation in a Stats interface is an accessor which follows * the pattern getAttributeName. The AttributeName portion of the operation * name is the value that is returned as the name in the StatisticNames * list. * * @return The value of statisticNames attribute */ public String[] getStatisticNames(); /** * Returns a list of all the Statistic objects supported by this Stats * object. * * @return The value of statistics attribute */ public Statistic[] getStatistics(); /** * Returns a list of all the Statistic objects supported by this Stats * object. * * @param pName Description of Parameter * @return The value of statistic attribute */ public Statistic getStatistic(String pName); } --- NEW FILE: URLResource.java --- package javax.management.j2ee; /** * Description of the Interface * * @author letiembl * @created 13 mars 2002 */ public interface URLResource extends J2EEResource { } --- NEW FILE: URLStats.java --- package javax.management.j2ee; /** * Description of the Interface * * @author letiembl * @created 13 mars 2002 */ public interface URLStats extends Stats { } --- NEW FILE: WebModule.java --- package javax.management.j2ee; import javax.management.ObjectName; /** * Description of the Interface * * @author letiembl * @created 13 mars 2002 */ public interface WebModule extends J2EEModule { /** * Getter for the servlet attribute * * @param i Description of Parameter * @return The value of servlet attribute */ public ObjectName getServlet(int i); /** * Getter for the servlets attribute * * @return The value of servlets attribute */ public ObjectName[] getServlets(); } |