geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject cvs commit: incubator-geronimo/specs/jsr77/src/test/javax/management/j2ee ListenerRegistrationTest.java
Date Thu, 14 Aug 2003 16:13:45 GMT
jdillon     2003/08/14 09:13:45

  Added:       specs/jsr77 LICENSE.txt project.xml
               specs/jsr77/src/java/javax/management/j2ee
                        ListenerRegistration.java Management.java
                        ManagementHome.java
               specs/jsr77/src/java/javax/management/j2ee/statistics
                        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
                        MessageDrivenBeanStats.java RangeStatistic.java
                        ServletStats.java SessionBeanStats.java
                        StatefulSessionBeanStats.java
                        StatelessSessionBeanStats.java Statistic.java
                        Stats.java TimeStatistic.java URLStats.java
               specs/jsr77/src/test/javax/management/j2ee
                        ListenerRegistrationTest.java
  Log:
   o Moved JSR-77 sources from core
  
  Revision  Changes    Path
  1.1                  incubator-geronimo/specs/jsr77/LICENSE.txt
  
  Index: LICENSE.txt
  ===================================================================
  /* ====================================================================
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 2003 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution,
   *    if any, must include the following acknowledgment:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowledgment may appear in the software itself,
   *    if and wherever such third-party acknowledgments normally appear.
   *
   * 4. The names "Apache" and "Apache Software Foundation" and
   *    "Apache Geronimo" must not be used to endorse or promote products
   *    derived from this software without prior written permission. For
   *    written permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache",
   *    "Apache Geronimo", nor may "Apache" appear in their name, without
   *    prior written permission of the Apache Software Foundation.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   * ====================================================================
   */
  
  //
  // This source code implements specifications defined by the Java
  // Community Process. In order to remain compliant with the specification
  // DO NOT add / change / or delete method signatures!
  //
  
  
  
  
  1.1                  incubator-geronimo/specs/jsr77/project.xml
  
  Index: project.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  
  <!-- $Id: project.xml,v 1.1 2003/08/14 16:13:44 jdillon Exp $ -->
  
  <project>
    <pomVersion>3</pomVersion>
    <extend>${basedir}/../../etc/project.xml</extend>
    
    <name>Geronimo :: JSR 77 Specification</name>
    <groupId>geronimo-spec</groupId>
    <id>geronimo-spec-jsr77</id>
    <shortDescription>J2EE Application Management Specification</shortDescription>
    <description></description>
    <siteDirectory></siteDirectory>
    <distributionDirectory></distributionDirectory>
    
    <package>javax.management.j2ee</package>
    <currentVersion>DEV</currentVersion>
  
  </project>
  
  
  
  1.1                  incubator-geronimo/specs/jsr77/src/java/javax/management/j2ee/ListenerRegistration.java
  
  Index: ListenerRegistration.java
  ===================================================================
  package javax.management.j2ee;
  
  import javax.management.*;
  import java.io.Serializable;
  import java.rmi.RemoteException;
  
  /**
   *
   *
   *
   * @version $Revision: 1.1 $
   */
  public class ListenerRegistration implements Serializable {
      public void addNotificationListener(ObjectName name, NotificationListener listener,
NotificationFilter filter, Object handback) throws InstanceNotFoundException, RemoteException
{
          /*@todo implement*/
      }
  
      public void removeNotificationListener(ObjectName name, NotificationListener listener)
throws InstanceNotFoundException, ListenerNotFoundException, RemoteException {
          /*@todo implement*/
      }
  }
  
  
  1.1                  incubator-geronimo/specs/jsr77/src/java/javax/management/j2ee/Management.java
  
  Index: Management.java
  ===================================================================
  package javax.management.j2ee;
  
  import javax.ejb.EJBObject;
  import javax.management.*;
  import java.rmi.RemoteException;
  import java.util.Set;
  
  /**
   *
   *
   *
   * @version $Revision: 1.1 $
   */
  public interface Management extends EJBObject {
      public Object getAttribute(ObjectName name, String attribute) throws MBeanException,
AttributeNotFoundException, InstanceNotFoundException, ReflectionException, RemoteException;
  
      public AttributeList getAttributes(ObjectName name, String[] attributes) throws InstanceNotFoundException,
ReflectionException, RemoteException;
  
      public String getDefaultDomain() throws RemoteException;
  
      public Integer getMBeanCount() throws RemoteException;
  
      public MBeanInfo getMBeanInfo(ObjectName name) throws IntrospectionException, InstanceNotFoundException,
ReflectionException, RemoteException;
  
      public Object invoke(ObjectName name, String operationName, Object[] params, String[]
signature) throws InstanceNotFoundException, MBeanException, ReflectionException, RemoteException;
  
      public boolean isRegistered(ObjectName name) throws RemoteException;
  
      public Set quertyNames(ObjectName name, QueryExp query) throws RemoteException;
  
      public void setAttribute(ObjectName name, Attribute attribute) throws InstanceNotFoundException,
AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException,
RemoteException;
  
      public AttributeList setAttributes(ObjectName name, AttributeList attributes) throws
InstanceNotFoundException, ReflectionException, RemoteException;
  
      public ListenerRegistration getListenerRegistration() throws RemoteException;
  }
  
  
  1.1                  incubator-geronimo/specs/jsr77/src/java/javax/management/j2ee/ManagementHome.java
  
  Index: ManagementHome.java
  ===================================================================
  package javax.management.j2ee;
  
  import javax.ejb.EJBHome;
  import javax.ejb.CreateException;
  import java.rmi.RemoteException;
  
  /**
   *
   *
   *
   * @version $Revision: 1.1 $
   */
  public interface ManagementHome extends EJBHome {
      public Management create() throws CreateException, RemoteException;
  }
  
  
  1.1                  incubator-geronimo/specs/jsr77/src/java/javax/management/j2ee/statistics/BoundaryStatistic.java
  
  Index: BoundaryStatistic.java
  ===================================================================
  package javax.management.j2ee.statistics;
  
  /**
   *
   *
   *
   * @version $Revision: 1.1 $
   */
  public interface BoundaryStatistic extends Statistic {
      public long getUpperBound();
  
      public long getLowerBound();
  }
  
  
  
  1.1                  incubator-geronimo/specs/jsr77/src/java/javax/management/j2ee/statistics/BoundedRangeStatistic.java
  
  Index: BoundedRangeStatistic.java
  ===================================================================
  package javax.management.j2ee.statistics;
  
  /**
   *
   *
   *
   * @version $Revision: 1.1 $
   */
  public interface BoundedRangeStatistic extends BoundaryStatistic, RangeStatistic {
  }
  
  
  
  1.1                  incubator-geronimo/specs/jsr77/src/java/javax/management/j2ee/statistics/CountStatistic.java
  
  Index: CountStatistic.java
  ===================================================================
  package javax.management.j2ee.statistics;
  
  /**
   *
   *
   *
   * @version $Revision: 1.1 $
   */
  public interface CountStatistic extends Statistic {
      public long getCount();
  }
  
  
  1.1                  incubator-geronimo/specs/jsr77/src/java/javax/management/j2ee/statistics/EJBStats.java
  
  Index: EJBStats.java
  ===================================================================
  package javax.management.j2ee.statistics;
  
  /**
   *
   *
   *
   * @version $Revision: 1.1 $
   */
  public interface EJBStats extends Stats {
      public CountStatistic getCreateCount();
  
      public CountStatistic getRemoveCount();
  }
  
  
  1.1                  incubator-geronimo/specs/jsr77/src/java/javax/management/j2ee/statistics/EntityBeanStats.java
  
  Index: EntityBeanStats.java
  ===================================================================
  package javax.management.j2ee.statistics;
  
  /**
   *
   *
   *
   * @version $Revision: 1.1 $
   */
  public interface EntityBeanStats extends EJBStats {
      public RangeStatistic getReadyCount();
  
      public RangeStatistic getPooledCount();
  }
  
  
  1.1                  incubator-geronimo/specs/jsr77/src/java/javax/management/j2ee/statistics/JCAConnectionPoolStats.java
  
  Index: JCAConnectionPoolStats.java
  ===================================================================
  package javax.management.j2ee.statistics;
  
  /**
   *
   *
   *
   * @version $Revision: 1.1 $
   */
  public interface JCAConnectionPoolStats extends JCAConnectionStats {
      public CountStatistic getCloseCount();
  
      public CountStatistic getCreateCount();
  
      public BoundedRangeStatistic getFreePoolSize();
  
      public BoundedRangeStatistic getPoolSize();
  
      public RangeStatistic getWaitingThreadCount();
  }
  
  
  1.1                  incubator-geronimo/specs/jsr77/src/java/javax/management/j2ee/statistics/JCAConnectionStats.java
  
  Index: JCAConnectionStats.java
  ===================================================================
  package javax.management.j2ee.statistics;
  
  /**
   *
   *
   *
   * @version $Revision: 1.1 $
   */
  public interface JCAConnectionStats extends Stats {
      public String getConnectionFactory();
  
      public String getManagedConnectionFactory();
  
      public TimeStatistic getWaitTime();
  
      public TimeStatistic getUseTime();
  }
  
  
  1.1                  incubator-geronimo/specs/jsr77/src/java/javax/management/j2ee/statistics/JCAStats.java
  
  Index: JCAStats.java
  ===================================================================
  package javax.management.j2ee.statistics;
  
  /**
   *
   *
   *
   * @version $Revision: 1.1 $
   */
  public interface JCAStats extends Stats {
      public JCAConnectionStats[] getConnections();
  
      public JCAConnectionPoolStats[] getConnectionPools();
  }
  
  
  1.1                  incubator-geronimo/specs/jsr77/src/java/javax/management/j2ee/statistics/JDBCConnectionPoolStats.java
  
  Index: JDBCConnectionPoolStats.java
  ===================================================================
  package javax.management.j2ee.statistics;
  
  /**
   *
   *
   *
   * @version $Revision: 1.1 $
   */
  public interface JDBCConnectionPoolStats extends JDBCConnectionStats {
      public CountStatistic getCreateCount();
  
      public CountStatistic getCloseCount();
  
      public BoundedRangeStatistic getPoolSize();
  
      public BoundedRangeStatistic getFreePoolSize();
  
      public RangeStatistic getWaitingThreadCount();
  }
  
  
  1.1                  incubator-geronimo/specs/jsr77/src/java/javax/management/j2ee/statistics/JDBCConnectionStats.java
  
  Index: JDBCConnectionStats.java
  ===================================================================
  package javax.management.j2ee.statistics;
  
  /**
   *
   *
   *
   * @version $Revision: 1.1 $
   */
  public interface JDBCConnectionStats extends Stats {
      public String getJdbcDataSource();
  
      public TimeStatistic getWaitTime();
  
      public TimeStatistic getUseTime();
  }
  
  
  1.1                  incubator-geronimo/specs/jsr77/src/java/javax/management/j2ee/statistics/JDBCStats.java
  
  Index: JDBCStats.java
  ===================================================================
  package javax.management.j2ee.statistics;
  
  /**
   *
   *
   *
   * @version $Revision: 1.1 $
   */
  public interface JDBCStats extends Stats {
      public JDBCConnectionStats[] getConnections();
  
      public JDBCConnectionPoolStats[] getConnectionPools();
  }
  
  
  1.1                  incubator-geronimo/specs/jsr77/src/java/javax/management/j2ee/statistics/JMSConnectionStats.java
  
  Index: JMSConnectionStats.java
  ===================================================================
  package javax.management.j2ee.statistics;
  
  /**
   *
   *
   *
   * @version $Revision: 1.1 $
   */
  public interface JMSConnectionStats extends Stats {
      public JMSSessionStats[] getSessions();
  
      public boolean isTransactional();
  }
  
  
  1.1                  incubator-geronimo/specs/jsr77/src/java/javax/management/j2ee/statistics/JMSConsumerStats.java
  
  Index: JMSConsumerStats.java
  ===================================================================
  package javax.management.j2ee.statistics;
  
  /**
   *
   *
   *
   * @version $Revision: 1.1 $
   */
  public interface JMSConsumerStats extends JMSEndpointStats {
      public String getOrigin();
  }
  
  
  1.1                  incubator-geronimo/specs/jsr77/src/java/javax/management/j2ee/statistics/JMSEndpointStats.java
  
  Index: JMSEndpointStats.java
  ===================================================================
  package javax.management.j2ee.statistics;
  
  /**
   *
   *
   *
   * @version $Revision: 1.1 $
   */
  public interface JMSEndpointStats extends Stats {
      public CountStatistic getMessageCount();
  
      public CountStatistic getPendingMessageCount();
  
      public CountStatistic getExpiredMessageCount();
  
      public TimeStatistic getMessageWaitTime();
  }
  
  
  1.1                  incubator-geronimo/specs/jsr77/src/java/javax/management/j2ee/statistics/JMSProducerStats.java
  
  Index: JMSProducerStats.java
  ===================================================================
  package javax.management.j2ee.statistics;
  
  /**
   *
   *
   *
   * @version $Revision: 1.1 $
   */
  public interface JMSProducerStats extends JMSEndpointStats {
      public String getDestination();
  }
  
  
  
  1.1                  incubator-geronimo/specs/jsr77/src/java/javax/management/j2ee/statistics/JMSSessionStats.java
  
  Index: JMSSessionStats.java
  ===================================================================
  package javax.management.j2ee.statistics;
  
  /**
   *
   *
   *
   * @version $Revision: 1.1 $
   */
  public interface JMSSessionStats extends Stats {
      public JMSProducerStats[] getProducers();
  
      public JMSConsumerStats[] getConsumers();
  
      public CountStatistic getMessageCount();
  
      public CountStatistic getPendingMessageCount();
  
      public CountStatistic getExpiredMessageCount();
  
      public TimeStatistic getMessageWaitTime();
  
      public CountStatistic getDurableSubscriptionCount();
  }
  
  
  1.1                  incubator-geronimo/specs/jsr77/src/java/javax/management/j2ee/statistics/JMSStats.java
  
  Index: JMSStats.java
  ===================================================================
  package javax.management.j2ee.statistics;
  
  /**
   *
   *
   *
   * @version $Revision: 1.1 $
   */
  public interface JMSStats extends Stats {
      public JMSConnectionStats[] getConnections();
  }
  
  
  1.1                  incubator-geronimo/specs/jsr77/src/java/javax/management/j2ee/statistics/JTAStats.java
  
  Index: JTAStats.java
  ===================================================================
  package javax.management.j2ee.statistics;
  
  /**
   *
   *
   *
   * @version $Revision: 1.1 $
   */
  public interface JTAStats extends Stats {
      public CountStatistic getActiveCount();
  
      public CountStatistic getCommittedCount();
  
      public CountStatistic getRolledbackCount();
  }
  
  
  1.1                  incubator-geronimo/specs/jsr77/src/java/javax/management/j2ee/statistics/JVMStats.java
  
  Index: JVMStats.java
  ===================================================================
  package javax.management.j2ee.statistics;
  
  /**
   *
   *
   *
   * @version $Revision: 1.1 $
   */
  public interface JVMStats extends Stats {
      public CountStatistic getUpTime();
  
      public BoundedRangeStatistic getHeapSize();
  }
  
  
  1.1                  incubator-geronimo/specs/jsr77/src/java/javax/management/j2ee/statistics/JavaMailStats.java
  
  Index: JavaMailStats.java
  ===================================================================
  package javax.management.j2ee.statistics;
  
  /**
   *
   *
   *
   * @version $Revision: 1.1 $
   */
  public interface JavaMailStats {
      public CountStatistic getSentMailCount();
  }
  
  
  1.1                  incubator-geronimo/specs/jsr77/src/java/javax/management/j2ee/statistics/MessageDrivenBeanStats.java
  
  Index: MessageDrivenBeanStats.java
  ===================================================================
  package javax.management.j2ee.statistics;
  
  /**
   *
   *
   *
   * @version $Revision: 1.1 $
   */
  public interface MessageDrivenBeanStats extends EJBStats {
      public CountStatistic getMessageCount();
  }
  
  
  
  1.1                  incubator-geronimo/specs/jsr77/src/java/javax/management/j2ee/statistics/RangeStatistic.java
  
  Index: RangeStatistic.java
  ===================================================================
  package javax.management.j2ee.statistics;
  
  /**
   *
   *
   *
   * @version $Revision: 1.1 $
   */
  public interface RangeStatistic extends Statistic {
      public long getHighWaterMark();
  
      public long getLowWaterMark();
  
      public long getCurrent();
  }
  
  
  1.1                  incubator-geronimo/specs/jsr77/src/java/javax/management/j2ee/statistics/ServletStats.java
  
  Index: ServletStats.java
  ===================================================================
  package javax.management.j2ee.statistics;
  
  /**
   *
   *
   *
   * @version $Revision: 1.1 $
   */
  public interface ServletStats extends Stats {
      public TimeStatistic getServiceTime();
  }
  
  
  1.1                  incubator-geronimo/specs/jsr77/src/java/javax/management/j2ee/statistics/SessionBeanStats.java
  
  Index: SessionBeanStats.java
  ===================================================================
  package javax.management.j2ee.statistics;
  
  /**
   *
   *
   *
   * @version $Revision: 1.1 $
   */
  public interface SessionBeanStats {
      public RangeStatistic getMethodReadyCount();
  }
  
  
  1.1                  incubator-geronimo/specs/jsr77/src/java/javax/management/j2ee/statistics/StatefulSessionBeanStats.java
  
  Index: StatefulSessionBeanStats.java
  ===================================================================
  package javax.management.j2ee.statistics;
  
  /**
   *
   *
   *
   * @version $Revision: 1.1 $
   */
  public interface StatefulSessionBeanStats extends SessionBeanStats {
      public RangeStatistic getPassiveCount();
  }
  
  
  1.1                  incubator-geronimo/specs/jsr77/src/java/javax/management/j2ee/statistics/StatelessSessionBeanStats.java
  
  Index: StatelessSessionBeanStats.java
  ===================================================================
  package javax.management.j2ee.statistics;
  
  /**
   *
   *
   *
   * @version $Revision: 1.1 $
   */
  public interface StatelessSessionBeanStats extends SessionBeanStats {
  }
  
  
  
  1.1                  incubator-geronimo/specs/jsr77/src/java/javax/management/j2ee/statistics/Statistic.java
  
  Index: Statistic.java
  ===================================================================
  package javax.management.j2ee.statistics;
  
  /**
   *
   *
   *
   * @version $Revision: 1.1 $
   */
  public interface Statistic {
      public String getName();
  
      public String getUnit();
  
      public String getDescription();
  
      public long getStartTime();
  
      public long getLastSampleTime();
  }
  
  
  1.1                  incubator-geronimo/specs/jsr77/src/java/javax/management/j2ee/statistics/Stats.java
  
  Index: Stats.java
  ===================================================================
  package javax.management.j2ee.statistics;
  
  /**
   *
   *
   *
   * @version $Revision: 1.1 $
   */
  public interface Stats {
      public Statistic getStatistic(String statisticName);
  
      public String[] getStatisticNames();
  
      public Statistic[] getStatistics();
  }
  
  
  1.1                  incubator-geronimo/specs/jsr77/src/java/javax/management/j2ee/statistics/TimeStatistic.java
  
  Index: TimeStatistic.java
  ===================================================================
  package javax.management.j2ee.statistics;
  
  /**
   *
   *
   *
   * @version $Revision: 1.1 $
   */
  public interface TimeStatistic extends Statistic {
      public long getCount();
  
      public long getMaxTime();
  
      public long getMinTime();
  
      public long getTotalTime();
  }
  
  
  1.1                  incubator-geronimo/specs/jsr77/src/java/javax/management/j2ee/statistics/URLStats.java
  
  Index: URLStats.java
  ===================================================================
  package javax.management.j2ee.statistics;
  
  /**
   *
   *
   *
   * @version $Revision: 1.1 $
   */
  public interface URLStats extends Stats {
  }
  
  
  
  1.1                  incubator-geronimo/specs/jsr77/src/test/javax/management/j2ee/ListenerRegistrationTest.java
  
  Index: ListenerRegistrationTest.java
  ===================================================================
  package javax.management.j2ee;
  
  import junit.framework.TestCase;
  
  public class ListenerRegistrationTest extends TestCase {
      public void testAddNotificationListener() {
          /*@todo implement*/
  
      }
  
      public void testRemoveNotificationListener() {
          /*@todo implement*/
      }
  }
  
  

Mime
View raw message