Skip to content

Commit

Permalink
FISH-1280 Jakarta EE9: jakarta.management.j2ee-api removed
Browse files Browse the repository at this point in the history
  • Loading branch information
jGauravGupta committed Apr 8, 2021
1 parent f20153b commit ca05371
Show file tree
Hide file tree
Showing 95 changed files with 1,149 additions and 155 deletions.
5 changes: 0 additions & 5 deletions api/payara-bom/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -449,11 +449,6 @@
<artifactId>jakarta.json-api</artifactId>
<version>${jsonp.version}</version>
</dependency>
<dependency>
<groupId>jakarta.management.j2ee</groupId>
<artifactId>jakarta.management.j2ee-api</artifactId>
<version>${jakarta.management.j2ee-api.version}</version>
</dependency>
<dependency>
<groupId>jakarta.xml.ws</groupId>
<artifactId>jakarta.xml.ws-api</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,6 @@
jakarta.ejb-api.jar
jakarta.enterprise.deploy-api.jar
jakarta.mail.jar
jakarta.management.j2ee-api.jar
jakarta.persistence.jar
jakarta.resource-api.jar
jakarta.security.auth.message-api.jar
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,6 @@
jakarta.ejb-api.jar
jakarta.enterprise.deploy-api.jar
jakarta.mail.jar
jakarta.management.j2ee-api.jar
jakarta.persistence.jar
jakarta.resource-api.jar
jakarta.security.auth.message-api.jar
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,6 @@
jakarta.ejb-api.jar
jakarta.enterprise.deploy-api.jar
jakarta.mail.jar
jakarta.management.j2ee-api.jar
jakarta.persistence.jar
jakarta.resource-api.jar
jakarta.security.auth.message-api.jar
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,6 @@
jakarta.ejb-api.jar
jakarta.enterprise.deploy-api.jar
jakarta.mail.jar
jakarta.management.j2ee-api.jar
jakarta.persistence.jar
jakarta.resource-api.jar
jakarta.security.auth.message-api.jar
Expand Down
4 changes: 0 additions & 4 deletions appserver/admin/runtime/jsr77/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,6 @@
<description>JSR77 Model Classes</description>

<dependencies>
<dependency>
<groupId>jakarta.management.j2ee</groupId>
<artifactId>jakarta.management.j2ee-api</artifactId>
</dependency>
<dependency>
<groupId>org.glassfish.deployment</groupId>
<artifactId>dol</artifactId>
Expand Down
4 changes: 0 additions & 4 deletions appserver/common/amx-javaee/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,6 @@
</properties>

<dependencies>
<dependency>
<groupId>jakarta.management.j2ee</groupId>
<artifactId>jakarta.management.j2ee-api</artifactId>
</dependency>
<dependency>
<groupId>fish.payara.server.internal.common</groupId>
<artifactId>amx-core</artifactId>
Expand Down
4 changes: 0 additions & 4 deletions appserver/common/stats77/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,5 @@
<artifactId>internal-api</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>jakarta.management.j2ee</groupId>
<artifactId>jakarta.management.j2ee-api</artifactId>
</dependency>
</dependencies>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public interface MonitoringLevelListener {
* is guaranteed that it will be unchanged by monitoring framework.
*/
public void changeLevel(MonitoringLevel from, MonitoringLevel to,
javax.management.j2ee.statistics.Stats handback);
org.glassfish.j2ee.statistics.Stats handback);

/**
* Method to convey the change in monitoring level. The configuration
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

package com.sun.enterprise.admin.monitor.registry;

import javax.management.j2ee.statistics.*;
import org.glassfish.j2ee.statistics.*;
import com.sun.enterprise.admin.monitor.stats.*;

/**
Expand Down Expand Up @@ -71,7 +71,7 @@ public interface MonitoringRegistry {

/**
* Registers the Stats implementation for EntityBeanStats
* @param entityBeanStats implementation of javax.management.j2ee.statistics.EntityBeanStats
* @param entityBeanStats implementation of org.glassfish.j2ee.statistics.EntityBeanStats
* @param entityBeanName
* @param moduleName
* @param applicationName passing a null here would
Expand Down Expand Up @@ -102,7 +102,7 @@ public void unregisterEntityBeanStats(String entityBeanName, String moduleName,
/**
* Registers the Stats implementation for StatelessSessionBeanStats
* @param statelessSessionBeanStats implementation of
* javax.management.j2ee.statistics.StatelessSessionBeanStats
* org.glassfish.j2ee.statistics.StatelessSessionBeanStats
* @param statelessSessionBeanName
* @param moduleName
* @param applicationName passing a null here would
Expand Down Expand Up @@ -135,7 +135,7 @@ public void unregisterStatelessSessionBeanStats(String statelessSessionBeanName,
/**
* Registers the Stats implementation for StatefulSessionBeanStats
* @param statefulSessionBeanStats implementation of from
* javax.management.j2ee.statistics.StatefulSessionBeanStats
* org.glassfish.j2ee.statistics.StatefulSessionBeanStats
* @param statefulSessionBeanName
* @param moduleName
* @param applicationName passing a null here would
Expand Down Expand Up @@ -167,7 +167,7 @@ public void unregisterStatefulSessionBeanStats(String statefulSessionBeanName,
/**
* Registers the Stats implementation for MessageDrivenBeanStats
* @param messageDrivenBeanStats implementation of
* javax.management.j2ee.statistics.MessageDrivenBeanStats
* org.glassfish.j2ee.statistics.MessageDrivenBeanStats
* @param messageDrivenBeanName
* @param moduleName
* @param applicationName passing a null here would
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

package com.sun.enterprise.admin.monitor.registry;

import javax.management.j2ee.statistics.Stats;
import org.glassfish.j2ee.statistics.Stats;
import javax.management.ObjectName;
import java.util.Collection;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

package com.sun.enterprise.admin.monitor.stats;

import javax.management.j2ee.statistics.RangeStatistic;
import org.glassfish.j2ee.statistics.RangeStatistic;

/** An interface that Specifies standard measurements of the lowest and highest values an attribute has held
* as well as its current value. Extending RangeStatistic, it also provides the average value.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

package com.sun.enterprise.admin.monitor.stats;

import javax.management.j2ee.statistics.BoundaryStatistic;
import org.glassfish.j2ee.statistics.BoundaryStatistic;

/** An implementation of a BoundaryStatistic. All instances of this class are
* immutable. Provides all the necessary accessors for properties.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

package com.sun.enterprise.admin.monitor.stats;

import javax.management.j2ee.statistics.BoundedRangeStatistic;
import org.glassfish.j2ee.statistics.BoundedRangeStatistic;
import com.sun.enterprise.util.i18n.StringManager;

/** An implementation of a BoundedRangeStatistic. All instances of this class are
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@

package com.sun.enterprise.admin.monitor.stats;

import javax.management.j2ee.statistics.Stats;
import javax.management.j2ee.statistics.RangeStatistic;
import javax.management.j2ee.statistics.CountStatistic;
import org.glassfish.j2ee.statistics.Stats;
import org.glassfish.j2ee.statistics.RangeStatistic;
import org.glassfish.j2ee.statistics.CountStatistic;

/**
* A Stats interface to represent the statistical data exposed by a Connection
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

package com.sun.enterprise.admin.monitor.stats;

import javax.management.j2ee.statistics.CountStatistic;
import org.glassfish.j2ee.statistics.CountStatistic;

/**
* A Stats interface to represent the statistical data about
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@

package com.sun.enterprise.admin.monitor.stats;

import javax.management.j2ee.statistics.RangeStatistic;
import javax.management.j2ee.statistics.CountStatistic;
import javax.management.j2ee.statistics.Stats;
import org.glassfish.j2ee.statistics.RangeStatistic;
import org.glassfish.j2ee.statistics.CountStatistic;
import org.glassfish.j2ee.statistics.Stats;

/**
* A Stats interface to represent the statistical data about
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

package com.sun.enterprise.admin.monitor.stats;

import javax.management.j2ee.statistics.CountStatistic;
import org.glassfish.j2ee.statistics.CountStatistic;
import com.sun.enterprise.util.i18n.StringManager;

/** An implementation of a CountStatistic. All instances of this class are
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@
// Portions Copyright [2019] Payara Foundation and/or affiliates

package com.sun.enterprise.admin.monitor.stats;
import javax.management.j2ee.statistics.Stats;
import javax.management.j2ee.statistics.CountStatistic;
import javax.management.j2ee.statistics.BoundedRangeStatistic;
import org.glassfish.j2ee.statistics.Stats;
import org.glassfish.j2ee.statistics.CountStatistic;
import org.glassfish.j2ee.statistics.BoundedRangeStatistic;

/**
* A Stats interface to represent the statistics exposed by the Enterprise Bean Cache.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@
// Portions Copyright [2019] Payara Foundation and/or affiliates

package com.sun.enterprise.admin.monitor.stats;
import javax.management.j2ee.statistics.Stats;
import javax.management.j2ee.statistics.CountStatistic;
import javax.management.j2ee.statistics.TimeStatistic;
import org.glassfish.j2ee.statistics.Stats;
import org.glassfish.j2ee.statistics.CountStatistic;
import org.glassfish.j2ee.statistics.TimeStatistic;

/** A Stats interface to represent the statistical data exposed by an EJB Business Method.
* These are based on the statistics exposed in S1AS7.0.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@

package com.sun.enterprise.admin.monitor.stats;

import javax.management.j2ee.statistics.Stats;
import javax.management.j2ee.statistics.CountStatistic;
import javax.management.j2ee.statistics.BoundedRangeStatistic;
import org.glassfish.j2ee.statistics.Stats;
import org.glassfish.j2ee.statistics.CountStatistic;
import org.glassfish.j2ee.statistics.BoundedRangeStatistic;

/** A Stats interface to represent the statistical data exposed by an EJB Bean Pool.
* These are based on the statistics exposed in S1AS7.0.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@

import java.util.List;
import java.util.Map;
import javax.management.j2ee.statistics.JTAStats;
import org.glassfish.j2ee.statistics.JTAStats;

/** Defines additional Sun ONE Application Server specific statistic to transaction service.
* @author <a href="mailto:[email protected]">Kedar Mhaswade</a>
Expand All @@ -55,7 +55,7 @@ public interface GFJTAStats extends JTAStats {
/** Returns the IDs of the transactions that are currently active, as a StrignStatistic.
* An active transaction is same as an in-flight transaction. Every such transaction can be rolled back after
* freezing the transaction service.
* @see javax.management.j2ee.statistics.JTAStats#getActiveCount
* @see org.glassfish.j2ee.statistics.JTAStats#getActiveCount
* @return a comma separated String of IDs
*/
public StringStatistic getActiveIds();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@
import java.util.Map;
import java.util.ArrayList;
import java.util.HashMap;
import javax.management.j2ee.statistics.Stats;
import javax.management.j2ee.statistics.Statistic;
import org.glassfish.j2ee.statistics.Stats;
import org.glassfish.j2ee.statistics.Statistic;

/** Provides for generic implementation of any Stats interface. This class facilitates
* composition over inheritance for all the classes that implement their
* specific Stats interfaces. None of them has to implement the methods defined
* by the {@link javax.management.j2ee.statistics.Stats} interface. This class
* by the {@link org.glassfish.j2ee.statistics.Stats} interface. This class
* implements the same interface and does that job. All that implementing classes
* have to do is implement the specific accessing methods in their Stats interfaces
* and delegate the rest to this class. <b> This class invokes all these methods in
Expand Down Expand Up @@ -158,7 +158,7 @@ private boolean implementsInterface(Class c, Object o) {
}

private boolean extendsStatsInterface(Class i) {
final Class statsInterface = javax.management.j2ee.statistics.Stats.class;
final Class statsInterface = org.glassfish.j2ee.statistics.Stats.class;
return ( statsInterface.isAssignableFrom(i) );
}

Expand Down Expand Up @@ -209,7 +209,7 @@ private String[] methods2Statistics(Method[] methods) {
}

private boolean isStatsInterfaceMethod(String name) {
final Method[] methods = javax.management.j2ee.statistics.Stats.class.getMethods();
final Method[] methods = org.glassfish.j2ee.statistics.Stats.class.getMethods();
boolean isInterfaceMethod = false;
for (int i = 0 ; i < methods.length ; i++) {
if (methods[i].getName().equals(name)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,12 @@
* only if the new code is made subject to such option by the copyright
* holder.
*/
// Portions Copyright [2019] Payara Foundation and/or affiliates
// Portions Copyright [2019-2021] Payara Foundation and/or affiliates

package com.sun.enterprise.admin.monitor.stats;

import javax.management.j2ee.statistics.CountStatistic;
import org.glassfish.j2ee.statistics.CountStatistic;
import org.glassfish.j2ee.statistics.TimeStatistic;
import com.sun.enterprise.admin.monitor.stats.AverageRangeStatistic;

/**
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@

package com.sun.enterprise.admin.monitor.stats;

import javax.management.j2ee.statistics.Stats;
import javax.management.j2ee.statistics.CountStatistic;
import org.glassfish.j2ee.statistics.Stats;
import org.glassfish.j2ee.statistics.CountStatistic;

/**
* A Stats interface to represent the statistical data exposed by an
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@

package com.sun.enterprise.admin.monitor.stats;

import javax.management.j2ee.statistics.Stats;
import javax.management.j2ee.statistics.CountStatistic;
import org.glassfish.j2ee.statistics.Stats;
import org.glassfish.j2ee.statistics.CountStatistic;

/**
* A Stats interface, to expose the monitoring information
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@

package com.sun.enterprise.admin.monitor.stats;

import javax.management.j2ee.statistics.Stats;
import javax.management.j2ee.statistics.CountStatistic;
import org.glassfish.j2ee.statistics.Stats;
import org.glassfish.j2ee.statistics.CountStatistic;

/**
* A Stats interface, to expose the monitoring information
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@

package com.sun.enterprise.admin.monitor.stats;

import javax.management.j2ee.statistics.Stats;
import javax.management.j2ee.statistics.CountStatistic;
import org.glassfish.j2ee.statistics.Stats;
import org.glassfish.j2ee.statistics.CountStatistic;

/**
* A Stats interface, to expose the monitoring information
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@

package com.sun.enterprise.admin.monitor.stats;

import javax.management.j2ee.statistics.Stats;
import javax.management.j2ee.statistics.CountStatistic;
import org.glassfish.j2ee.statistics.Stats;
import org.glassfish.j2ee.statistics.CountStatistic;

/**
* A Stats interface, to expose the monitoring information
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@

package com.sun.enterprise.admin.monitor.stats;

import javax.management.j2ee.statistics.Stats;
import javax.management.j2ee.statistics.CountStatistic;
import org.glassfish.j2ee.statistics.Stats;
import org.glassfish.j2ee.statistics.CountStatistic;

/**
* A Stats interface, to expose information
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
// Portions Copyright [2019] Payara Foundation and/or affiliates

package com.sun.enterprise.admin.monitor.stats;
import javax.management.j2ee.statistics.Stats;
import javax.management.j2ee.statistics.CountStatistic;
import org.glassfish.j2ee.statistics.Stats;
import org.glassfish.j2ee.statistics.CountStatistic;

/**
* A Stats interface to expose information about the JVM Runtime
Expand Down
Loading

0 comments on commit ca05371

Please sign in to comment.