Author: jim.ma
Date: 2015-03-16 05:56:49 -0400 (Mon, 16 Mar 2015)
New Revision: 19571
Modified:
common/branches/management/src/main/java/org/jboss/ws/common/deployment/AbstractDefaultEndpoint.java
common/branches/management/src/main/java/org/jboss/ws/common/deployment/DefaultDeployment.java
common/branches/management/src/main/java/org/jboss/ws/common/deployment/DefaultService.java
common/branches/management/src/main/java/org/jboss/ws/common/management/AbstractServerConfig.java
common/branches/management/src/test/java/org/jboss/test/ws/common/management/DefaultEndpointRegistryTestCase.java
Log:
[JBWS-3880]:Add more apis to RuntimeConfig interface
Modified:
common/branches/management/src/main/java/org/jboss/ws/common/deployment/AbstractDefaultEndpoint.java
===================================================================
---
common/branches/management/src/main/java/org/jboss/ws/common/deployment/AbstractDefaultEndpoint.java 2015-03-16
09:56:14 UTC (rev 19570)
+++
common/branches/management/src/main/java/org/jboss/ws/common/deployment/AbstractDefaultEndpoint.java 2015-03-16
09:56:49 UTC (rev 19571)
@@ -22,9 +22,11 @@
package org.jboss.ws.common.deployment;
import java.util.HashMap;
+import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
+import java.util.Set;
import java.util.concurrent.CopyOnWriteArrayList;
import javax.management.MalformedObjectNameException;
@@ -41,6 +43,7 @@
import org.jboss.wsf.spi.deployment.EndpointType;
import org.jboss.wsf.spi.deployment.InstanceProvider;
import org.jboss.wsf.spi.deployment.LifecycleHandler;
+import org.jboss.wsf.spi.deployment.RuntimeConfig;
import org.jboss.wsf.spi.deployment.Service;
import org.jboss.wsf.spi.deployment.WSFDeploymentException;
import org.jboss.wsf.spi.invocation.InvocationHandler;
@@ -60,6 +63,7 @@
*/
public class AbstractDefaultEndpoint extends AbstractExtensible
{
+ private static final Set<String> RUNTIME_CONFIG_FLAGS = new
HashSet<String>();
protected volatile Service service;
protected volatile ObjectName name;
protected volatile String shortName;
@@ -78,6 +82,9 @@
protected volatile InstanceProvider instanceProvider;
protected volatile EndpointConfig endpointConfig;
protected Map<String, String> configsMap = new HashMap<String,
String>(64);
+ static {
+ RUNTIME_CONFIG_FLAGS.add(RuntimeConfig.STATISTICS_ENABLED);
+ }
AbstractDefaultEndpoint(String targetBean)
{
@@ -368,4 +375,10 @@
configsMap.putAll(this.getRuntimeProperties());
return configsMap;
}
+
+ @Override
+ public Set<String> getRuntimeConfigFlags()
+ {
+ return RUNTIME_CONFIG_FLAGS;
+ }
}
Modified:
common/branches/management/src/main/java/org/jboss/ws/common/deployment/DefaultDeployment.java
===================================================================
---
common/branches/management/src/main/java/org/jboss/ws/common/deployment/DefaultDeployment.java 2015-03-16
09:56:14 UTC (rev 19570)
+++
common/branches/management/src/main/java/org/jboss/ws/common/deployment/DefaultDeployment.java 2015-03-16
09:56:49 UTC (rev 19571)
@@ -21,8 +21,12 @@
*/
package org.jboss.ws.common.deployment;
+import java.util.HashSet;
+import java.util.Set;
+
import org.jboss.wsf.spi.deployment.AbstractExtensible;
import org.jboss.wsf.spi.deployment.Deployment;
+import org.jboss.wsf.spi.deployment.RuntimeConfig;
import org.jboss.wsf.spi.deployment.Service;
/**
@@ -34,14 +38,17 @@
* @since 20-Apr-2007
*/
public class DefaultDeployment extends AbstractExtensible implements Deployment
-{
+{
+ private static final Set<String> RUNTIME_CONFIG_FLAGS = new
HashSet<String>();
// The name for this deployment
private final String simpleName;
// A deployment has one service
private final Service service;
// The runtime class loader
private final ClassLoader classLoader;
-
+ static {
+ RUNTIME_CONFIG_FLAGS.add(RuntimeConfig.STATISTICS_ENABLED);
+ }
DefaultDeployment(String name, ClassLoader classLoader)
{
super(12, 4);
@@ -64,4 +71,10 @@
{
return service;
}
+
+ @Override
+ public Set<String> getRuntimeConfigFlags()
+ {
+ return RUNTIME_CONFIG_FLAGS;
+ }
}
Modified:
common/branches/management/src/main/java/org/jboss/ws/common/deployment/DefaultService.java
===================================================================
---
common/branches/management/src/main/java/org/jboss/ws/common/deployment/DefaultService.java 2015-03-16
09:56:14 UTC (rev 19570)
+++
common/branches/management/src/main/java/org/jboss/ws/common/deployment/DefaultService.java 2015-03-16
09:56:49 UTC (rev 19571)
@@ -30,6 +30,7 @@
import java.util.Collections;
import java.util.LinkedList;
import java.util.List;
+import java.util.Set;
/**
@@ -125,4 +126,10 @@
this.virtualHost = virtualHost;
}
+ @Override
+ public Set<String> getRuntimeConfigFlags()
+ {
+ return dep.getRuntimeConfigFlags();
+ }
+
}
Modified:
common/branches/management/src/main/java/org/jboss/ws/common/management/AbstractServerConfig.java
===================================================================
---
common/branches/management/src/main/java/org/jboss/ws/common/management/AbstractServerConfig.java 2015-03-16
09:56:14 UTC (rev 19570)
+++
common/branches/management/src/main/java/org/jboss/ws/common/management/AbstractServerConfig.java 2015-03-16
09:56:49 UTC (rev 19571)
@@ -29,6 +29,8 @@
import java.security.AccessController;
import java.security.Permission;
import java.security.PrivilegedAction;
+import java.util.HashSet;
+import java.util.Set;
import javax.management.MBeanServer;
@@ -37,6 +39,7 @@
import org.jboss.wsf.spi.WSFException;
import org.jboss.wsf.spi.classloading.ClassLoaderProvider;
import org.jboss.wsf.spi.deployment.AbstractExtensible;
+import org.jboss.wsf.spi.deployment.RuntimeConfig;
import org.jboss.wsf.spi.management.CommonConfigStore;
import org.jboss.wsf.spi.management.ServerConfig;
import org.jboss.wsf.spi.management.StackConfig;
@@ -63,6 +66,7 @@
*/
public abstract class AbstractServerConfig extends AbstractExtensible implements
AbstractServerConfigMBean, ServerConfig
{
+ private static final Set<String> RUNTIME_CONFIG_FLAGS = new
HashSet<String>();
private static final RuntimePermission LOOKUP_SERVER_INTEGRATION_SERVER_CONFIG = new
RuntimePermission("org.jboss.ws.LOOKUP_SERVER_INTEGRATION_SERVER_CONFIG");
// The MBeanServer
@@ -103,6 +107,9 @@
// The server integration classloader' ServerConfig instance reference
private static volatile ServerConfig serverConfig;
+ static {
+ RUNTIME_CONFIG_FLAGS.add(RuntimeConfig.STATISTICS_ENABLED);
+ }
public MBeanServer getMbeanServer()
{
return mbeanServer;
@@ -451,4 +458,9 @@
public interface UpdateCallbackHandler {
public void onBeforeUpdate();
}
+ @Override
+ public Set<String> getRuntimeConfigFlags()
+ {
+ return RUNTIME_CONFIG_FLAGS;
+ }
}
Modified:
common/branches/management/src/test/java/org/jboss/test/ws/common/management/DefaultEndpointRegistryTestCase.java
===================================================================
---
common/branches/management/src/test/java/org/jboss/test/ws/common/management/DefaultEndpointRegistryTestCase.java 2015-03-16
09:56:14 UTC (rev 19570)
+++
common/branches/management/src/test/java/org/jboss/test/ws/common/management/DefaultEndpointRegistryTestCase.java 2015-03-16
09:56:49 UTC (rev 19571)
@@ -441,6 +441,13 @@
// TODO Auto-generated method stub
return null;
}
+
+ @Override
+ public Set<String> getRuntimeConfigFlags()
+ {
+ // TODO Auto-generated method stub
+ return null;
+ }
};
}
}
Show replies by date