User: schaefera
Date: 02/03/10 20:31:32
Added: src/main/javax/management/j2ee BoundaryStatistic.java
BoundedRangeStatistic.java CountStatistic.java
EJBStats.java EntityBeanStats.java
JCAConnectionPoolStats.java JCAConnectionStats.java
JCAStats.java JDBCConnectionPoolStats.java
JDBCConnectionStats.java JDBCStats.java
JMSConnectionStats.java JMSConsumerStats.java
JMSEndpointStats.java JMSProducerStats.java
JMSSessionStats.java JMSStats.java JTAStats.java
JVMStats.java JavaMailStats.java
ListenerRegistration.java Management.java
ManagementHome.java MessageDrivenBeanStats.java
RangeStatistic.java ServletStats.java
SessionBeanStats.java StatefulSessionBeanStats.java
StatelessSessionBeanStats.java Statistic.java
Stats.java TimeStatistic.java URLStats.java
package.html
Log:
Moved the JSR-77 code to the new "management" module. It contains the
specification implementation for MEJB and the JBoss implementation.
It does not contain references to JBoss server.
The only workaround there is that MEJB needs to use the JMX RemoteMBean-
Server which is not available in JBossMX right now. Therefore I added
this to a JAR achive under tools/lib.
Revision Changes Path
1.1
jboss-management/src/main/javax/management/j2ee/BoundaryStatistic.java
Index: BoundaryStatistic.java
===================================================================
package javax.management.j2ee;
/**
* Represents a standard measurements of the upper and lower
* limits of the value of an attribute
*
* @author <a href="mailto:[EMAIL PROTECTED]">Marc Fleury</a>
* @author <a href="mailto:[EMAIL PROTECTED]">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 BoundaryStatistic
extends Statistic
{
// Constants -----------------------------------------------------
// Public --------------------------------------------------------
/**
* @return The lower limit of the value of this attribute
**/
public long getLowerBound();
/**
* @return The upper limit of the value of this attribute
**/
public long getUpperBound();
// Package protected ---------------------------------------------
// Protected -----------------------------------------------------
// Static inner classes -------------------------------------------------
}
1.1
jboss-management/src/main/javax/management/j2ee/BoundedRangeStatistic.java
Index: BoundedRangeStatistic.java
===================================================================
package javax.management.j2ee;
/**
* Represents a standard measurements of an attribute where its
* value range between fixed limits.
*
* @author <a href="mailto:[EMAIL PROTECTED]">Marc Fleury</a>
* @author <a href="mailto:[EMAIL PROTECTED]">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 BoundedRangeStatistic
extends BoundaryStatistic, RangeStatistic
{
// Constants -----------------------------------------------------
// Public --------------------------------------------------------
// Package protected ---------------------------------------------
// Protected -----------------------------------------------------
// Static inner classes -------------------------------------------------
}
1.1
jboss-management/src/main/javax/management/j2ee/CountStatistic.java
Index: CountStatistic.java
===================================================================
package javax.management.j2ee;
/**
* Represents a standard Count Measurement
*
* @author <a href="mailto:[EMAIL PROTECTED]">Marc Fleury</a>
* @author <a href="mailto:[EMAIL PROTECTED]">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 CountStatistic
extends Statistic
{
// Constants -----------------------------------------------------
// Public --------------------------------------------------------
/**
* @return The Count since the last reset
**/
public long getCount();
// Package protected ---------------------------------------------
// Protected -----------------------------------------------------
// Static inner classes -------------------------------------------------
}
1.1 jboss-management/src/main/javax/management/j2ee/EJBStats.java
Index: EJBStats.java
===================================================================
package javax.management.j2ee;
/**
* Specifies statistics provided by all EJB component types.
*
* @author <a href="mailto:[EMAIL PROTECTED]">Marc Fleury</a>
* @author <a href="mailto:[EMAIL PROTECTED]">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 EJBStats
extends Stats
{
// Constants -----------------------------------------------------
// Public --------------------------------------------------------
/**
* @return Returns the number of times the beans create method was called
**/
public CountStatistic getCreateCount();
/**
* @return Returns the number of times the beans remove method was called
**/
public CountStatistic getRemoveCount();
// Package protected ---------------------------------------------
// Protected -----------------------------------------------------
// Static inner classes -------------------------------------------------
}
1.1
jboss-management/src/main/javax/management/j2ee/EntityBeanStats.java
Index: EntityBeanStats.java
===================================================================
package javax.management.j2ee;
/**
* Specifies statistics provided by entity beans
*
* @author <a href="mailto:[EMAIL PROTECTED]">Marc Fleury</a>
* @author <a href="mailto:[EMAIL PROTECTED]">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 EntityBeanStats
extends EJBStats
{
// Constants -----------------------------------------------------
// Public --------------------------------------------------------
/**
* @return Returns the number of bean instances in the ready state
**/
public RangeStatistic getReadyCount();
/**
* @return Returns the number of bean instances in the pooled state
**/
public RangeStatistic getPooledCount();
// Package protected ---------------------------------------------
// Protected -----------------------------------------------------
// Static inner classes -------------------------------------------------
}
1.1
jboss-management/src/main/javax/management/j2ee/JCAConnectionPoolStats.java
Index: JCAConnectionPoolStats.java
===================================================================
package javax.management.j2ee;
/**
* Represents the statistics provided by a JCA connection pool
*
* @author <a href="mailto:[EMAIL PROTECTED]">Marc Fleury</a>
* @author <a href="mailto:[EMAIL PROTECTED]">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 JCAConnectionPoolStats
extends JCAConnectionStats
{
// Constants -----------------------------------------------------
// Public --------------------------------------------------------
/**
* @return The number of connections closed
**/
public CountStatistic getCloseCount();
/**
* @return The number of connections created
**/
public CountStatistic getCreateCount();
/**
* @return The number of free connections in the pool
**/
public BoundedRangeStatistic getFreePoolSize();
/**
* @return The size of the connection pool
**/
public BoundedRangeStatistic getPoolSize();
/**
* @return The number of threats waiting for a connection
**/
public RangeStatistic getWaitingThreadCount();
// Package protected ---------------------------------------------
// Protected -----------------------------------------------------
// Static inner classes -------------------------------------------------
}
1.1
jboss-management/src/main/javax/management/j2ee/JCAConnectionStats.java
Index: JCAConnectionStats.java
===================================================================
package javax.management.j2ee;
import javax.management.ObjectName;
/**
* Represents the statistics provided by a JCA connection
*
* @author <a href="mailto:[EMAIL PROTECTED]">Marc Fleury</a>
* @author <a href="mailto:[EMAIL PROTECTED]">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 JCAConnectionStats
extends Stats
{
// Constants -----------------------------------------------------
// Public --------------------------------------------------------
/**
* @return Object Name of the Connection Factory
**/
ObjectName getConnectionFactory();
/**
* @return object Name of the Managed Connection Factory
**/
Object getManagedConnectionFactory();
/**
* @return The time spent waiting for a conection to be available
**/
public TimeStatistic getWaitTime();
/**
* @return The time spent using a connection
**/
public TimeStatistic getUseTime();
// Package protected ---------------------------------------------
// Protected -----------------------------------------------------
// Static inner classes -------------------------------------------------
}
1.1 jboss-management/src/main/javax/management/j2ee/JCAStats.java
Index: JCAStats.java
===================================================================
package javax.management.j2ee;
/**
* Represents the statistics provided by a JCA resource.
*
* @author <a href="mailto:[EMAIL PROTECTED]">Marc Fleury</a>
* @author <a href="mailto:[EMAIL PROTECTED]">Andreas Schaefer</a>
* @version $Revision: 1.1 $
*
* <p><b>Revisions:</b>
*
* <p><b>20020307 Andreas Schaefer:</b>
* <ul>
* <li> Creation
* </ul>
**/
public interface JCAStats
extends Stats
{
// Constants -----------------------------------------------------
// Public --------------------------------------------------------
/**
* @return The list of JCAConnectionStats that provide statistics about the
nonpooled
* connections associated with the referencing JCA resource statistics.
**/
public JCAConnectionStats[] getConnections();
/**
* @return The list of JCAConnectionPoolStats that provide statistics about the
* connection pools associated with the referencing JCA resource
statistics.
**/
public JCAConnectionPoolStats[] getConnectionPools();
// Package protected ---------------------------------------------
// Protected -----------------------------------------------------
// Static inner classes -------------------------------------------------
}
1.1
jboss-management/src/main/javax/management/j2ee/JDBCConnectionPoolStats.java
Index: JDBCConnectionPoolStats.java
===================================================================
package javax.management.j2ee;
/**
* Represents the statistics provided by a JDBC connection pool
*
* @author <a href="mailto:[EMAIL PROTECTED]">Marc Fleury</a>
* @author <a href="mailto:[EMAIL PROTECTED]">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 JDBCConnectionPoolStats
extends JDBCConnectionStats
{
// Constants -----------------------------------------------------
// Public --------------------------------------------------------
/**
* @return The number of connections closed
**/
public CountStatistic getCloseCount();
/**
* @return The number of connections created
**/
public CountStatistic getCreateCount();
/**
* @return The number of free connections in the pool
**/
public BoundedRangeStatistic getFreePoolSize();
/**
* @return The size of the connection pool
**/
public BoundedRangeStatistic getPoolSize();
/**
* @return The number of threats waiting for a connection
**/
public RangeStatistic getWaitingThreadCount();
// Package protected ---------------------------------------------
// Protected -----------------------------------------------------
// Static inner classes -------------------------------------------------
}
1.1
jboss-management/src/main/javax/management/j2ee/JDBCConnectionStats.java
Index: JDBCConnectionStats.java
===================================================================
package javax.management.j2ee;
import javax.management.ObjectName;
/**
* Represents the statistics provided by a JDBC connection
*
* @author <a href="mailto:[EMAIL PROTECTED]">Marc Fleury</a>
* @author <a href="mailto:[EMAIL PROTECTED]">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 JDBCConnectionStats
extends Stats
{
// Constants -----------------------------------------------------
// Public --------------------------------------------------------
/**
* @return The name of the managed object that identifies the JDBC data source
* for this connection.
**/
public ObjectName getJdbcDataSource();
/**
* @return The time spent waiting for a conection to be available
**/
public TimeStatistic getWaitTime();
/**
* @return The time spent using a connection
**/
public TimeStatistic getUseTime();
// Package protected ---------------------------------------------
// Protected -----------------------------------------------------
// Static inner classes -------------------------------------------------
}
1.1 jboss-management/src/main/javax/management/j2ee/JDBCStats.java
Index: JDBCStats.java
===================================================================
package javax.management.j2ee;
/**
* Represents the statistics provided by a JDBC resource.
*
* @author <a href="mailto:[EMAIL PROTECTED]">Marc Fleury</a>
* @author <a href="mailto:[EMAIL PROTECTED]">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 JDBCStats
extends Stats
{
// Constants -----------------------------------------------------
// Public --------------------------------------------------------
/**
* @return The list of JDBCConnectionStats that provide statistics about the
nonpooled
* connections associated with the referencing JDBC resource statistics.
**/
public JDBCConnectionStats[] getConnections();
/**
* @return The list of JDBCConnectionPoolStats that provide statistics about the
* connection pools associated with the referencing JDBC resource
statistics.
**/
public JDBCConnectionPoolStats[] getConnectionPools();
// Package protected ---------------------------------------------
// Protected -----------------------------------------------------
// Static inner classes -------------------------------------------------
}
1.1
jboss-management/src/main/javax/management/j2ee/JMSConnectionStats.java
Index: JMSConnectionStats.java
===================================================================
package javax.management.j2ee;
/**
* Represents the statistics provided by a JMS Connection.
*
* @author <a href="mailto:[EMAIL PROTECTED]">Marc Fleury</a>
* @author <a href="mailto:[EMAIL PROTECTED]">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 JMSConnectionStats
extends Stats
{
// Constants -----------------------------------------------------
// Public --------------------------------------------------------
/**
* @return The list of JMSSessionStats that provide statistics about the sessions
* associated with the referencing JMSConnectionStats.
**/
public JMSSessionStats[] getSessions();
/**
* @return The transactional state of this JMS connection. If true, indicates that
* this JMS connection is transactional.
**/
public boolean isTransactional();
// Package protected ---------------------------------------------
// Protected -----------------------------------------------------
// Static inner classes -------------------------------------------------
}
1.1
jboss-management/src/main/javax/management/j2ee/JMSConsumerStats.java
Index: JMSConsumerStats.java
===================================================================
package javax.management.j2ee;
/**
* Represents a statistics provided by a JMS message consumer
*
* @author <a href="mailto:[EMAIL PROTECTED]">Marc Fleury</a>
* @author <a href="mailto:[EMAIL PROTECTED]">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 JMSConsumerStats
extends JMSEndpointStats
{
// Constants -----------------------------------------------------
// Public --------------------------------------------------------
/**
* @return The string that encapsulates the identity of a message origin
**/
public String getOrigin();
// Package protected ---------------------------------------------
// Protected -----------------------------------------------------
// Static inner classes -------------------------------------------------
}
1.1
jboss-management/src/main/javax/management/j2ee/JMSEndpointStats.java
Index: JMSEndpointStats.java
===================================================================
package javax.management.j2ee;
/**
* Represents a statistics provided by a JMS message producer or a
* JMS message consumer
*
* @author <a href="mailto:[EMAIL PROTECTED]">Marc Fleury</a>
* @author <a href="mailto:[EMAIL PROTECTED]">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 JMSEndpointStats
extends Stats
{
// Constants -----------------------------------------------------
// Public --------------------------------------------------------
/**
* @return The number of messages sent or received
**/
public CountStatistic getMessageCount();
/**
* @return The number of pending messages
**/
public CountStatistic getPendingMessageCount();
/**
* @return The number of messages that expired before delivery
**/
public CountStatistic getExpiredMessageCount();
/**
* @return The time spent by a message before being delivered
**/
public TimeStatistic getMessageWaitTime();
// Package protected ---------------------------------------------
// Protected -----------------------------------------------------
// Static inner classes -------------------------------------------------
}
1.1
jboss-management/src/main/javax/management/j2ee/JMSProducerStats.java
Index: JMSProducerStats.java
===================================================================
package javax.management.j2ee;
/**
* Represents a statistics provided by a JMS message producer
*
* @author <a href="mailto:[EMAIL PROTECTED]">Marc Fleury</a>
* @author <a href="mailto:[EMAIL PROTECTED]">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 JMSProducerStats
extends JMSEndpointStats
{
// Constants -----------------------------------------------------
// Public --------------------------------------------------------
/**
* @return The string that encapsulates the identity of a message destination
**/
public String getDestination();
// Package protected ---------------------------------------------
// Protected -----------------------------------------------------
// Static inner classes -------------------------------------------------
}
1.1
jboss-management/src/main/javax/management/j2ee/JMSSessionStats.java
Index: JMSSessionStats.java
===================================================================
package javax.management.j2ee;
/**
* Represents the statistics provided by a JMS Session
*
* @author <a href="mailto:[EMAIL PROTECTED]">Marc Fleury</a>
* @author <a href="mailto:[EMAIL PROTECTED]">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 JMSSessionStats
extends Stats
{
// Constants -----------------------------------------------------
// Public --------------------------------------------------------
/**
* @return The list of JMSProducerStats that provide statistics about the message
* producers associated with the referencing JMS session statistics
**/
public JMSProducerStats[] getProducers();
/**
* @return The list of JMSConsumerStats that provide statistics about the message
* consumers associated with the referencing JMS session statistics.
**/
public JMSConsumerStats[] getConsumers();
/**
* @return The number of messages exchanged
**/
public CountStatistic getMessageCount();
/**
* @return The number of pending messages
**/
public CountStatistic getPendingMessageCount();
/**
* @return The number of expired messages
**/
public CountStatistic getExpiredMessageCount();
/**
* @return The time spent by a message before being delivered
**/
public TimeStatistic getMessageWaitTime();
/**
* @return The number of durable subscriptions
**/
public CountStatistic getDurableSubscriptionCount();
// Package protected ---------------------------------------------
// Protected -----------------------------------------------------
// Static inner classes -------------------------------------------------
}
1.1 jboss-management/src/main/javax/management/j2ee/JMSStats.java
Index: JMSStats.java
===================================================================
package javax.management.j2ee;
/**
* Represents the statistics provided by a JMS resource.
*
* @author <a href="mailto:[EMAIL PROTECTED]">Marc Fleury</a>
* @author <a href="mailto:[EMAIL PROTECTED]">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 JMSStats
extends Stats
{
// Constants -----------------------------------------------------
// Public --------------------------------------------------------
/**
* @return The list of JMSConnectionStats that provide statistics about the
* connections associated with the referencing JMS resource.
**/
public JMSConnectionStats[] getConnections();
// Package protected ---------------------------------------------
// Protected -----------------------------------------------------
// Static inner classes -------------------------------------------------
}
1.1 jboss-management/src/main/javax/management/j2ee/JTAStats.java
Index: JTAStats.java
===================================================================
package javax.management.j2ee;
/**
* Represents the statistics provided by a JTA resource
*
* @author <a href="mailto:[EMAIL PROTECTED]">Marc Fleury</a>
* @author <a href="mailto:[EMAIL PROTECTED]">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 JTAStats
extends Stats
{
// Constants -----------------------------------------------------
// Public --------------------------------------------------------
/**
* @return The number of active transactions
**/
public CountStatistic getActiveCount();
/**
* @return The number of committed transactions
**/
public CountStatistic getCommitedCount();
/**
* @return The number of rolled-back transactions
**/
public CountStatistic getRolledbackCount();
// Package protected ---------------------------------------------
// Protected -----------------------------------------------------
// Static inner classes -------------------------------------------------
}
1.1 jboss-management/src/main/javax/management/j2ee/JVMStats.java
Index: JVMStats.java
===================================================================
package javax.management.j2ee;
/**
* Represents the statistics provided by a Java VM
*
* @author <a href="mailto:[EMAIL PROTECTED]">Marc Fleury</a>
* @author <a href="mailto:[EMAIL PROTECTED]">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 JVMStats
extends Stats
{
// Constants -----------------------------------------------------
// Public --------------------------------------------------------
/**
* @return The amount of time this JVM has been running
**/
public CountStatistic getUpTime();
/**
* @return The size of the JVM's heap
**/
public BoundedRangeStatistic[] getHeapSizes();
// Package protected ---------------------------------------------
// Protected -----------------------------------------------------
// Static inner classes -------------------------------------------------
}
1.1
jboss-management/src/main/javax/management/j2ee/JavaMailStats.java
Index: JavaMailStats.java
===================================================================
package javax.management.j2ee;
/**
* Represents the statistics provided by a JavaMail resource
*
* @author <a href="mailto:[EMAIL PROTECTED]">Marc Fleury</a>
* @author <a href="mailto:[EMAIL PROTECTED]">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 JavaMailStats
extends Stats
{
// Constants -----------------------------------------------------
// Public --------------------------------------------------------
/**
* @return The number of mail messages sent
**/
public CountStatistic getSentMailCount();
// Package protected ---------------------------------------------
// Protected -----------------------------------------------------
// Static inner classes -------------------------------------------------
}
1.1
jboss-management/src/main/javax/management/j2ee/ListenerRegistration.java
Index: 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:[EMAIL PROTECTED]">Marc Fleury</a>
* @author <a href="mailto:[EMAIL PROTECTED]">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;
}
1.1 jboss-management/src/main/javax/management/j2ee/Management.java
Index: 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.ReflectionException;
/**
* Remote Interface of the Management EJB
*
* @author <a href="mailto:[EMAIL PROTECTED]">Marc Fleury</a>
* @author <a href="mailto:[EMAIL PROTECTED]">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 )
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 -------------------------------------------------
}
1.1
jboss-management/src/main/javax/management/j2ee/ManagementHome.java
Index: 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:[EMAIL PROTECTED]">Marc Fleury</a>
* @author <a href="mailto:[EMAIL PROTECTED]">Andreas Schaefer</a>
**/
public interface ManagementHome
extends EJBHome
{
// -------------------------------------------------------------------------
// Methods
// -------------------------------------------------------------------------
public Management create()
throws
CreateException,
RemoteException;
}
1.1
jboss-management/src/main/javax/management/j2ee/MessageDrivenBeanStats.java
Index: MessageDrivenBeanStats.java
===================================================================
package javax.management.j2ee;
/**
* Represents a deployed Connector (RAR) Module
*
* @author <a href="mailto:[EMAIL PROTECTED]">Marc Fleury</a>
* @author <a href="mailto:[EMAIL PROTECTED]">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>
**/
/**
* Represents the statistics provide by a message driven
* bean
*
* @author <a href="mailto:[EMAIL PROTECTED]">Marc Fleury</a>
* @author <a href="mailto:[EMAIL PROTECTED]">Andreas Schaefer</a>
**/
public interface MessageDrivenBeanStats
extends EJBStats
{
// Constants -----------------------------------------------------
// Public --------------------------------------------------------
/**
* @return The number of messages received
**/
public CountStatistic getMessageCount();
// Package protected ---------------------------------------------
// Protected -----------------------------------------------------
// Static inner classes -------------------------------------------------
}
1.1
jboss-management/src/main/javax/management/j2ee/RangeStatistic.java
Index: RangeStatistic.java
===================================================================
package javax.management.j2ee;
/**
* Represents a standard measurements of the lowest and highest
* value an attribute has held as well as its current value
*
* @author <a href="mailto:[EMAIL PROTECTED]">Marc Fleury</a>
* @author <a href="mailto:[EMAIL PROTECTED]">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 RangeStatistic
extends Statistic
{
// Constants -----------------------------------------------------
// Public --------------------------------------------------------
/**
* @return The lowest value this attribute has held since the beginning of
* the measurements
**/
public long getLowWaterMark();
/**
* @return The highest value this attribute has held since the beginning of
* the measurements
**/
public long getHighWaterMark();
/**
* @return The current value of the attribute
**/
public long getCurrent();
// Package protected ---------------------------------------------
// Protected -----------------------------------------------------
// Static inner classes -------------------------------------------------
}
1.1
jboss-management/src/main/javax/management/j2ee/ServletStats.java
Index: ServletStats.java
===================================================================
package javax.management.j2ee;
/**
* Represents the statistics provided by a Servlet or JSP
*
* @author <a href="mailto:[EMAIL PROTECTED]">Marc Fleury</a>
* @author <a href="mailto:[EMAIL PROTECTED]">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 ServletStats
extends Stats
{
// Constants -----------------------------------------------------
// Public --------------------------------------------------------
/**
* @return The execution times for the servlets service methods
**/
public TimeStatistic getServiceTime();
// Package protected ---------------------------------------------
// Protected -----------------------------------------------------
// Static inner classes -------------------------------------------------
}
1.1
jboss-management/src/main/javax/management/j2ee/SessionBeanStats.java
Index: SessionBeanStats.java
===================================================================
package javax.management.j2ee;
/**
* Represents the statistics provided by session beans
* of both stateful and stateless types
*
* @author <a href="mailto:[EMAIL PROTECTED]">Marc Fleury</a>
* @author <a href="mailto:[EMAIL PROTECTED]">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 SessionBeanStats
extends EJBStats
{
// Constants -----------------------------------------------------
// Public --------------------------------------------------------
/**
* @return The number of beans in the method-ready state
**/
public RangeStatistic getMethodReadyCount();
// Package protected ---------------------------------------------
// Protected -----------------------------------------------------
// Static inner classes -------------------------------------------------
}
1.1
jboss-management/src/main/javax/management/j2ee/StatefulSessionBeanStats.java
Index: StatefulSessionBeanStats.java
===================================================================
package javax.management.j2ee;
/**
* Represents the statistics provided by a stateful session bean
*
* @author <a href="mailto:[EMAIL PROTECTED]">Marc Fleury</a>
* @author <a href="mailto:[EMAIL PROTECTED]">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 StatefulSessionBeanStats
extends SessionBeanStats
{
// Constants -----------------------------------------------------
// Public --------------------------------------------------------
/**
* @return The number of beans that are in the passivated state
**/
public RangeStatistic getPassiveCount();
// Package protected ---------------------------------------------
// Protected -----------------------------------------------------
// Static inner classes -------------------------------------------------
}
1.1
jboss-management/src/main/javax/management/j2ee/StatelessSessionBeanStats.java
Index: StatelessSessionBeanStats.java
===================================================================
package javax.management.j2ee;
/**
* Represents the statistics provided by stateless session beans
*
* @author <a href="mailto:[EMAIL PROTECTED]">Marc Fleury</a>
* @author <a href="mailto:[EMAIL PROTECTED]">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 StatelessSessionBeanStats
extends SessionBeanStats
{
// Constants -----------------------------------------------------
// Public --------------------------------------------------------
// Package protected ---------------------------------------------
// Protected -----------------------------------------------------
// Static inner classes -------------------------------------------------
}
1.1 jboss-management/src/main/javax/management/j2ee/Statistic.java
Index: Statistic.java
===================================================================
package javax.management.j2ee;
/**
* Base Model for a Statistic Information.
*
* @author <a href="mailto:[EMAIL PROTECTED]">Marc Fleury</a>
* @author <a href="mailto:[EMAIL PROTECTED]">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 Statistic
{
// Constants -----------------------------------------------------
// Public --------------------------------------------------------
/**
* @return Name of the Statistics
**/
public String getName();
/**
* @return Unit of Measurement. For TimeStatistics valid values are "HOUR",
* "MINUTE", "SECOND", "MILLISECOND", "MICROSECOND", "NANOSECOND"
**/
public String getUnit();
/**
* @return A human-readable description
**/
public String getDescription();
/**
* @return The time the first measurment was taken represented as a long, whose
* value is the number of milliseconds since January 1, 1970, 00:00:00.
**/
public long getStartTime();
/**
* @return The time the most recent measurment was taken represented as a long,
* whose value is the number of milliseconds since January 1, 1970,
00:00:00.
**/
public long getLastSampleTime();
// Package protected ---------------------------------------------
// Protected -----------------------------------------------------
// Static inner classes -------------------------------------------------
}
1.1 jboss-management/src/main/javax/management/j2ee/Stats.java
Index: Stats.java
===================================================================
package javax.management.j2ee;
/**
* Represents specific performance data attributes for each
* of the specific managed object types.
*
* @author <a href="mailto:[EMAIL PROTECTED]">Marc Fleury</a>
* @author <a href="mailto:[EMAIL PROTECTED]">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 Stats
{
// Constants -----------------------------------------------------
// Public --------------------------------------------------------
/**
* @return The list of names of attributes for the specific Stats submodel
* that this object supports. Attributes named in the list match
* the attributes that will return a Statistics object of the
* appropriate type.
**/
public String[] getStatisticNames();
/**
* @return The list of Statistics objects supported by this Stats object
**/
public Statistic[] getStatistics();
/**
* Delivers a Statistic by its given name
*
* @param pName Name of the Statistic to look up.
*
* @return A Statistic if the given name is found otherwise null
**/
public Statistic getStatistic( String pName );
// Package protected ---------------------------------------------
// Protected -----------------------------------------------------
// Static inner classes -------------------------------------------------
}
1.1
jboss-management/src/main/javax/management/j2ee/TimeStatistic.java
Index: TimeStatistic.java
===================================================================
package javax.management.j2ee;
/**
* Represents a standard Time Measurements
*
* @author <a href="mailto:[EMAIL PROTECTED]">Marc Fleury</a>
* @author <a href="mailto:[EMAIL PROTECTED]">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 TimeStatistic
extends Statistic
{
// Constants -----------------------------------------------------
public static final String HOUR = "HOUR";
public static final String MINUTE = "MINUTE";
public static final String SECOND = "SECOND";
public static final String MILLISECOND = "MILLISECOND";
public static final String MICROSECOND = "MICROSECOND";
public static final String NANOSECOND = "NANOSECOND";
// Public --------------------------------------------------------
/**
* @return The number of times a time measurements was added
**/
public long getCount();
/**
* @return The minimum time added since start of the measurements
**/
public long getMinTime();
/**
* @return The maximum time added since start of the measurements
**/
public long getMaxTime();
/**
* @return The sum of all the time added to the measurements since
* it started
**/
public long getTotalTime();
// Package protected ---------------------------------------------
// Protected -----------------------------------------------------
// Static inner classes -------------------------------------------------
}
1.1 jboss-management/src/main/javax/management/j2ee/URLStats.java
Index: URLStats.java
===================================================================
package javax.management.j2ee;
/**
* Represents the statistics provided by a URL resource
*
* @author <a href="mailto:[EMAIL PROTECTED]">Marc Fleury</a>
* @author <a href="mailto:[EMAIL PROTECTED]">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 URLStats
extends Stats
{
// Constants -----------------------------------------------------
// Public --------------------------------------------------------
// Package protected ---------------------------------------------
// Protected -----------------------------------------------------
// Static inner classes -------------------------------------------------
}
1.1 jboss-management/src/main/javax/management/j2ee/package.html
Index: package.html
===================================================================
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<!--
JBoss, the OpenSource J2EE webOS
This library is free software; you can redistribute it and/or modify it
under the terms of the GNU Lesser General Public License as published
by the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This library is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
-->
<!-- $Id: package.html,v 1.1 2002/03/11 04:31:31 schaefera Exp $ -->
</head>
<body bgcolor="white">
<p><em>JSR-77 Specification</em>.
<h2>Package Specification</h2>
<ul>
<li>
The JSR-77 implementations is composed of two different sets of
interfaces.
<ol>
<li>
Interfaces showing the JSR-77 model implemented by interfaces.
There are (at least for the client) no real implementation. The
client will work on the JSR-77 server like a JMX client does. The
difference is that there are only basic data types attributes (int,
float etc. as well as Strings), JMX ObjectNames which refer to
another JSR-77 instance) and statistics interfaces.
Also note that J2EEManagementEvents are sent as JMX Notifications.
</li>
<li>
Statistics interfaces which must be implemented by a JSR-77 vendor
because they are sent to the client and the client has to
understand
them. Statistics are all classes named <b>*Stats</b> or
<b>*Statistic</b>.
Note that Stats contains statistic information wrapped into
Statistics
interfaces. Therefore Statistic interfaces represent a statistic
value
(Count, Boundary etc.) whereas Stats contains Statistics intefaces
to
show the statistic information for a specific J2EE components.
</li>
</ol>
</li>
</ul>
<h2>Related Documentation</h2>
<ul>
<li><a href="javascript: alert('not available')">Not Available</a>
</ul>
<h2>Package Status</h2>
<ul>
<li><font color="green"><b>UNDER CONSTRUCTION</b></font>
</ul>
<!-- Put @see and @since tags down here. -->
</body>
</html>
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development