axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r390426 - in /webservices/axis2/trunk/archive/java/scratch/Axis_Management_module/management/src/org/apache/axis2/management: core/utils/ interfaces/jmx/
Date Fri, 31 Mar 2006 14:20:33 GMT
Author: dims
Date: Fri Mar 31 06:20:30 2006
New Revision: 390426

URL: http://svn.apache.org/viewcvs?rev=390426&view=rev
Log:
patch from Chathura Ekanayake <cce.axis@gmail.com>

Added:
    webservices/axis2/trunk/archive/java/scratch/Axis_Management_module/management/src/org/apache/axis2/management/core/utils/JMXUtil.java
    webservices/axis2/trunk/archive/java/scratch/Axis_Management_module/management/src/org/apache/axis2/management/interfaces/jmx/
    webservices/axis2/trunk/archive/java/scratch/Axis_Management_module/management/src/org/apache/axis2/management/interfaces/jmx/AbstractManagementInterface.java
    webservices/axis2/trunk/archive/java/scratch/Axis_Management_module/management/src/org/apache/axis2/management/interfaces/jmx/AxisGlobalsMBean.java
    webservices/axis2/trunk/archive/java/scratch/Axis_Management_module/management/src/org/apache/axis2/management/interfaces/jmx/AxisModulesMBean.java
    webservices/axis2/trunk/archive/java/scratch/Axis_Management_module/management/src/org/apache/axis2/management/interfaces/jmx/AxisOperationStatsMBean.java
    webservices/axis2/trunk/archive/java/scratch/Axis_Management_module/management/src/org/apache/axis2/management/interfaces/jmx/AxisOperationsMBean.java
    webservices/axis2/trunk/archive/java/scratch/Axis_Management_module/management/src/org/apache/axis2/management/interfaces/jmx/AxisServiceGroupsMBean.java
    webservices/axis2/trunk/archive/java/scratch/Axis_Management_module/management/src/org/apache/axis2/management/interfaces/jmx/AxisServiceStatsMBean.java
    webservices/axis2/trunk/archive/java/scratch/Axis_Management_module/management/src/org/apache/axis2/management/interfaces/jmx/AxisServicesMBean.java
    webservices/axis2/trunk/archive/java/scratch/Axis_Management_module/management/src/org/apache/axis2/management/interfaces/jmx/AxisTransportsMBean.java
    webservices/axis2/trunk/archive/java/scratch/Axis_Management_module/management/src/org/apache/axis2/management/interfaces/jmx/DynamicStatsManagerMBean.java

Added: webservices/axis2/trunk/archive/java/scratch/Axis_Management_module/management/src/org/apache/axis2/management/core/utils/JMXUtil.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Axis_Management_module/management/src/org/apache/axis2/management/core/utils/JMXUtil.java?rev=390426&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Axis_Management_module/management/src/org/apache/axis2/management/core/utils/JMXUtil.java
(added)
+++ webservices/axis2/trunk/archive/java/scratch/Axis_Management_module/management/src/org/apache/axis2/management/core/utils/JMXUtil.java
Fri Mar 31 06:20:30 2006
@@ -0,0 +1,106 @@
+package org.apache.axis2.management.core.utils;
+
+import org.apache.axis2.engine.AxisConfiguration;
+import org.apache.axis2.description.Parameter;
+import org.apache.axis2.AxisFault;
+
+import java.rmi.registry.LocateRegistry;
+import java.util.Map;
+
+import java.lang.reflect.Method;
+import java.lang.reflect.Constructor;
+import java.lang.reflect.InvocationTargetException;
+
+
+/**
+ * JMXManager manages everything related to registering and publishing MBeans. It is not
aware about
+ * the MBeans it is going to publish. Instead it provides a set of methods to register and
publish any
+ * object as an MBean. Currently only JMXAdmin uses this to publish MBeans. But this can
be used by any module
+ * to publish objects for management. This is a singleton class and the users should use
the "getJMXManager"
+ * factory method to obtain an instance of this.
+ *
+ */
+public class JMXUtil {
+
+	private Object registry = null;
+	private Method registerComponent = null;
+
+	
+	public JMXUtil() throws AxisFault{
+
+		try{
+			System.out.println("Initializing MBeanServer...");
+			initModeler();
+
+		}catch(Exception e){
+			throw AxisFault.makeFault(e);
+		}
+
+	}
+
+
+	/**
+	 * This method initializes the modeler registry. An MBeanServer is created if it was not
alrady
+	 * created.
+	 *
+	 * @throws AxisFault
+     */
+	public boolean initModeler() throws Exception{
+
+		Class registryClass = null;
+		
+		try {
+			registryClass = Class.forName("org.apache.commons.modeler.Registry");
+		} catch (ClassNotFoundException e) {
+			System.out.println("Couldn't find Apache commons.modeler package.\nJMX support is not
activated.");
+			registry = null;
+			throw new Exception("Couldn't find Apache commons.modeler package.");
+		}
+
+		try {
+			Class[] getRegistryArgs = new Class[]{Object.class, Object.class,};
+			Method getRegistry = registryClass.getMethod("getRegistry", getRegistryArgs);
+			Object[] getRegistryOptions = new Object[]{null, null};
+			registry = getRegistry.invoke(null, getRegistryOptions);
+
+			Class[] registerComponentArgs = new Class[]{Object.class, String.class, String.class};
+			registerComponent = registryClass.getMethod("registerComponent", registerComponentArgs);
+
+		} catch (IllegalAccessException e) {
+			throw e;
+		} catch (IllegalArgumentException e) {
+			throw e;
+		} catch (InvocationTargetException e) {
+			throw e;
+		} catch (NoSuchMethodException e) {
+			throw e;
+		}
+
+		return true;
+	}
+
+
+	/**
+	 * This method is used to register MBeans. It registers any object provided to it as an
MBean.
+	 * All public fields and methods of the object will be exposed for management.
+	 *
+	 * @param mbean
+	 * @param mbeanName
+	 * @throws AxisFault
+     */
+	public boolean registerMBean(Object mbean, String mbeanName, String context) throws Exception{
+
+			if (registry != null) {
+				Object args[] = new Object[]{mbean, mbeanName, context};
+				try {
+					registerComponent.invoke(registry, args);
+				} catch (Exception e) {
+					throw new Exception("Couldn't register MBean.");
+				} 
+				
+				return true;
+			} else {
+				return false;
+			}
+	}
+}
\ No newline at end of file

Added: webservices/axis2/trunk/archive/java/scratch/Axis_Management_module/management/src/org/apache/axis2/management/interfaces/jmx/AbstractManagementInterface.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Axis_Management_module/management/src/org/apache/axis2/management/interfaces/jmx/AbstractManagementInterface.java?rev=390426&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Axis_Management_module/management/src/org/apache/axis2/management/interfaces/jmx/AbstractManagementInterface.java
(added)
+++ webservices/axis2/trunk/archive/java/scratch/Axis_Management_module/management/src/org/apache/axis2/management/interfaces/jmx/AbstractManagementInterface.java
Fri Mar 31 06:20:30 2006
@@ -0,0 +1,59 @@
+
+package org.apache.axis2.management.interfaces.jmx;
+
+import org.apache.axis2.management.core.managers.GlobalManager;
+import org.apache.axis2.management.core.managers.ModuleManager;
+import org.apache.axis2.management.core.managers.TransportManager;
+import org.apache.axis2.management.core.managers.ServiceGroupManager;
+import org.apache.axis2.management.core.managers.ServiceManager;
+import org.apache.axis2.management.core.managers.OperationManager;
+import org.apache.axis2.management.core.managers.DynamicStatsManager;
+
+import org.apache.axis2.context.MessageContext;
+import org.apache.axis2.context.ConfigurationContext;
+
+public class AbstractManagementInterface {
+	
+	private ConfigurationContext configContext = null;
+
+	
+	public void init(ConfigurationContext configContext) {
+		this.configContext = configContext;
+	}
+	
+	
+	public GlobalManager getGlobalManager() {
+		return (GlobalManager)configContext.getProperty("global_manager");
+	}
+	
+	
+	public ModuleManager getModuleManager() {
+		return (ModuleManager)configContext.getProperty("module_manager");
+	}
+	
+	
+	public TransportManager getTransportManager() {
+		return (TransportManager)configContext.getProperty("transport_manager");
+	}
+	
+	
+	public ServiceGroupManager getServiceGroupManager() {
+		return (ServiceGroupManager)configContext.getProperty("servicegroup_manager");
+	}
+	
+	
+	public ServiceManager getServiceManager() {
+		return (ServiceManager)configContext.getProperty("service_manager");
+	}
+	
+	
+	public OperationManager getOperationManager() {
+		return (OperationManager)configContext.getProperty("operation_manager");
+	}
+	
+	
+	public DynamicStatsManager getDynamicStatsManager() {
+		return (DynamicStatsManager)configContext.getProperty("dynamic_stats");
+	}
+	
+}
\ No newline at end of file

Added: webservices/axis2/trunk/archive/java/scratch/Axis_Management_module/management/src/org/apache/axis2/management/interfaces/jmx/AxisGlobalsMBean.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Axis_Management_module/management/src/org/apache/axis2/management/interfaces/jmx/AxisGlobalsMBean.java?rev=390426&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Axis_Management_module/management/src/org/apache/axis2/management/interfaces/jmx/AxisGlobalsMBean.java
(added)
+++ webservices/axis2/trunk/archive/java/scratch/Axis_Management_module/management/src/org/apache/axis2/management/interfaces/jmx/AxisGlobalsMBean.java
Fri Mar 31 06:20:30 2006
@@ -0,0 +1,111 @@
+
+package org.apache.axis2.management.interfaces.jmx;
+
+//import org.apache.axis2.management.interfaces.AbstractManagemetInterface;
+
+import org.apache.axis2.AxisFault;
+import org.apache.axis2.context.ConfigurationContext;
+import org.apache.axis2.engine.AxisConfiguration;
+
+
+public class AxisGlobalsMBean extends AbstractManagementInterface {
+
+
+	public boolean isGlobalParameter(String paramName) {
+		return getGlobalManager().isGlobalParameter(paramName);
+	}
+
+
+	public String[] getGlobalParameters(){
+		return getGlobalManager().getGlobalParameters();
+	}
+
+
+	public String addGlobalParameter(String name, String value) {
+		return getGlobalManager().addGlobalParameter(name, value);
+	}
+
+
+	public String editGlobalParameter(String name, String value) {
+		return getGlobalManager().editGlobalParameter(name, value);
+	}
+	
+	
+	// Services
+	
+	public String[] getServices() {
+		return getGlobalManager().getServices();
+	}
+
+	
+	public String[] getFaultyServices() {
+		return getGlobalManager().getFaultyServices();
+	}
+
+
+	public boolean isServiceAvailable(String serviceName) {
+		return getGlobalManager().isServiceAvailable(serviceName);
+	}
+
+
+	public String removeService(String serviceName) {
+		return getGlobalManager().removeService(serviceName);
+	}
+	
+	
+	// ServiceGroups
+	
+	public String[] getServiceGroups() {
+		return getGlobalManager().getServiceGroups();
+	}
+	
+	
+	// Modules
+	
+	public boolean isModuleAvailable(String moduleName) {
+		return getGlobalManager().isModuleAvailable(moduleName);
+	}
+
+
+	public String[] getModules() {
+		return getGlobalManager().getModules();
+	}
+
+
+	public String[] getFaultyModules() {
+		return getGlobalManager().getFaultyModules();
+	}
+
+
+	public String[] getGloballyEngagedModules() {
+		return getGlobalManager().getGloballyEngagedModules();
+	}
+	
+	
+	public String engageModuleGlobally(String moduleName) {
+		return getGlobalManager().engageModuleGlobally(moduleName);
+	}
+
+	
+	// Transports
+	
+	public String[] getTransportIns(){
+		return getGlobalManager().getTransportIns();
+	}
+
+
+	public String[] getTransportOuts(){
+		return getGlobalManager().getTransportOuts();
+	}
+
+
+	public boolean isTransportInAvailable(String transportInName) {
+		return getGlobalManager().isTransportInAvailable(transportInName);
+	}
+
+
+	public boolean isTransportOutAvailable(String transportOutName) {
+		return getGlobalManager().isTransportOutAvailable(transportOutName);
+	}
+
+}
\ No newline at end of file

Added: webservices/axis2/trunk/archive/java/scratch/Axis_Management_module/management/src/org/apache/axis2/management/interfaces/jmx/AxisModulesMBean.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Axis_Management_module/management/src/org/apache/axis2/management/interfaces/jmx/AxisModulesMBean.java?rev=390426&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Axis_Management_module/management/src/org/apache/axis2/management/interfaces/jmx/AxisModulesMBean.java
(added)
+++ webservices/axis2/trunk/archive/java/scratch/Axis_Management_module/management/src/org/apache/axis2/management/interfaces/jmx/AxisModulesMBean.java
Fri Mar 31 06:20:30 2006
@@ -0,0 +1,42 @@
+
+package org.apache.axis2.management.interfaces.jmx;
+
+
+public class AxisModulesMBean extends AbstractManagementInterface {
+
+	
+	public boolean isEngagedGlobally(String moduleName) {
+		return getModuleManager().isEngagedGlobally(moduleName);
+	}
+	
+	
+	public String[] getEngagedServices(String moduleName) {
+		return getModuleManager().getEngagedServices(moduleName);
+	}
+	
+	
+	public String[] getEngagedOperations(String moduleName) {
+		return getModuleManager().getEngagedOperations(moduleName);
+	}	
+
+
+	public String[] getModuleParameters(String moduleName) {
+		return getModuleManager().getModuleParameters(moduleName);
+	}
+
+
+	public boolean isModuleParameter(String moduleName, String paramName) {
+		return getModuleManager().isModuleParameter(moduleName, paramName);
+	}
+
+
+	public void addModuleParameter(String moduleName, String name, String value) {
+		getModuleManager().addModuleParameter(moduleName, name, value);
+	}
+
+
+	public String editModuleParameter(String moduleName, String parameterName, String value)
{
+		return getModuleManager().editModuleParameter(moduleName, parameterName, value);
+	}
+
+}
\ No newline at end of file

Added: webservices/axis2/trunk/archive/java/scratch/Axis_Management_module/management/src/org/apache/axis2/management/interfaces/jmx/AxisOperationStatsMBean.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Axis_Management_module/management/src/org/apache/axis2/management/interfaces/jmx/AxisOperationStatsMBean.java?rev=390426&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Axis_Management_module/management/src/org/apache/axis2/management/interfaces/jmx/AxisOperationStatsMBean.java
(added)
+++ webservices/axis2/trunk/archive/java/scratch/Axis_Management_module/management/src/org/apache/axis2/management/interfaces/jmx/AxisOperationStatsMBean.java
Fri Mar 31 06:20:30 2006
@@ -0,0 +1,67 @@
+
+package org.apache.axis2.management.interfaces.jmx;
+
+import org.apache.axis2.management.core.utils.ServiceStats;
+import org.apache.axis2.management.core.utils.OperationStats;
+
+import org.apache.axis2.AxisFault;
+
+
+public class AxisOperationStatsMBean extends AbstractManagementInterface {
+	
+	
+	public int getInMessages(String serviceName, String operationName) throws AxisFault {
+		ServiceStats serviceStats = getDynamicStatsManager().getMonitoredService(serviceName);
+		OperationStats operationStats = serviceStats.getMonitoredOperation(operationName);
+		return operationStats.getInMessages();
+	}
+	
+
+	public void clearInMessages(String serviceName, String operationName) throws AxisFault {
+		ServiceStats serviceStats = getDynamicStatsManager().getMonitoredService(serviceName);
+		OperationStats operationStats = serviceStats.getMonitoredOperation(operationName);
+		operationStats.clearInMessages();
+	}
+	
+	
+	public int getOutMessages(String serviceName, String operationName) throws AxisFault {
+		ServiceStats serviceStats = getDynamicStatsManager().getMonitoredService(serviceName);
+		OperationStats operationStats = serviceStats.getMonitoredOperation(operationName);
+		return operationStats.getOutMessages();
+	}
+	
+
+	public void clearOutMessages(String serviceName, String operationName) throws AxisFault
{
+		ServiceStats serviceStats = getDynamicStatsManager().getMonitoredService(serviceName);
+		OperationStats operationStats = serviceStats.getMonitoredOperation(operationName);
+		operationStats.clearOutMessages();
+	}
+	
+	
+	public int getFaultInMessages(String serviceName, String operationName) throws AxisFault
{
+		ServiceStats serviceStats = getDynamicStatsManager().getMonitoredService(serviceName);
+		OperationStats operationStats = serviceStats.getMonitoredOperation(operationName);
+		return operationStats.getFaultInMessages();
+	}
+	
+
+	public void clearFaultInMessages(String serviceName, String operationName) throws AxisFault
{
+		ServiceStats serviceStats = getDynamicStatsManager().getMonitoredService(serviceName);
+		OperationStats operationStats = serviceStats.getMonitoredOperation(operationName);
+		operationStats.clearFaultInMessages();
+	}
+	
+	
+	public int getFaultOutMessages(String serviceName, String operationName) throws AxisFault
{
+		ServiceStats serviceStats = getDynamicStatsManager().getMonitoredService(serviceName);
+		OperationStats operationStats = serviceStats.getMonitoredOperation(operationName);
+		return operationStats.getFaultOutMessages();
+	}
+	
+
+	public void clearFaultOutMessages(String serviceName, String operationName) throws AxisFault
{
+		ServiceStats serviceStats = getDynamicStatsManager().getMonitoredService(serviceName);
+		OperationStats operationStats = serviceStats.getMonitoredOperation(operationName);
+		operationStats.clearFaultOutMessages();
+	}
+}
\ No newline at end of file

Added: webservices/axis2/trunk/archive/java/scratch/Axis_Management_module/management/src/org/apache/axis2/management/interfaces/jmx/AxisOperationsMBean.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Axis_Management_module/management/src/org/apache/axis2/management/interfaces/jmx/AxisOperationsMBean.java?rev=390426&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Axis_Management_module/management/src/org/apache/axis2/management/interfaces/jmx/AxisOperationsMBean.java
(added)
+++ webservices/axis2/trunk/archive/java/scratch/Axis_Management_module/management/src/org/apache/axis2/management/interfaces/jmx/AxisOperationsMBean.java
Fri Mar 31 06:20:30 2006
@@ -0,0 +1,42 @@
+
+package org.apache.axis2.management.interfaces.jmx;
+
+
+public class AxisOperationsMBean extends AbstractManagementInterface {
+	
+
+	public String[] getOperationParameters(String serviceName, String operationName){
+		return getOperationManager().getOperationParameters(serviceName, operationName);
+	}
+
+
+	public boolean isOperationParameter(String serviceName, String operationName, String paramName)
{
+		return getOperationManager().isOperationParameter(serviceName, operationName, paramName);
+	}
+
+
+	public void addOperationParameter(String serviceName, String operationName, String name,
String value) {
+		getOperationManager().addOperationParameter(serviceName, operationName, name, value);
+	}
+
+
+	public String editOperationParameter(String serviceName, String operationName, String parameterName,
String value) {
+		return getOperationManager().editOperationParameter(serviceName, operationName, parameterName,
value);
+	}
+
+	
+	// Modules
+	
+	public String[] getOperationEngagedModules(String serviceName, String opName) {
+		return getOperationManager().getOperationEngagedModules(serviceName, opName);
+	}
+	
+	
+	public String engageModuleToOperation(String moduleName, String serviceName, String operationName)
{
+		return getOperationManager().engageModuleToOperation(moduleName, serviceName, operationName);
+	}
+
+}
+
+
+	
\ No newline at end of file

Added: webservices/axis2/trunk/archive/java/scratch/Axis_Management_module/management/src/org/apache/axis2/management/interfaces/jmx/AxisServiceGroupsMBean.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Axis_Management_module/management/src/org/apache/axis2/management/interfaces/jmx/AxisServiceGroupsMBean.java?rev=390426&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Axis_Management_module/management/src/org/apache/axis2/management/interfaces/jmx/AxisServiceGroupsMBean.java
(added)
+++ webservices/axis2/trunk/archive/java/scratch/Axis_Management_module/management/src/org/apache/axis2/management/interfaces/jmx/AxisServiceGroupsMBean.java
Fri Mar 31 06:20:30 2006
@@ -0,0 +1,23 @@
+
+package org.apache.axis2.management.interfaces.jmx;
+
+
+public class AxisServiceGroupsMBean extends AbstractManagementInterface {
+	
+	
+	public String[] getServices(String serviceGroupName) {
+		return getServiceGroupManager().getServices(serviceGroupName);
+	}
+
+	
+	// Modules
+	
+	public String[] getServiceGroupEngagedModules(String serviceGroupName) {
+		return getServiceGroupManager().getServiceGroupEngagedModules(serviceGroupName);
+	}
+	
+	
+	public String engageModuleToServiceGroup(String moduleName, String serviceGroupName) {
+		return getServiceGroupManager().engageModuleToServiceGroup(moduleName, serviceGroupName);
+	}
+}
\ No newline at end of file

Added: webservices/axis2/trunk/archive/java/scratch/Axis_Management_module/management/src/org/apache/axis2/management/interfaces/jmx/AxisServiceStatsMBean.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Axis_Management_module/management/src/org/apache/axis2/management/interfaces/jmx/AxisServiceStatsMBean.java?rev=390426&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Axis_Management_module/management/src/org/apache/axis2/management/interfaces/jmx/AxisServiceStatsMBean.java
(added)
+++ webservices/axis2/trunk/archive/java/scratch/Axis_Management_module/management/src/org/apache/axis2/management/interfaces/jmx/AxisServiceStatsMBean.java
Fri Mar 31 06:20:30 2006
@@ -0,0 +1,64 @@
+
+package org.apache.axis2.management.interfaces.jmx;
+
+import org.apache.axis2.management.core.utils.ServiceStats;
+
+import org.apache.axis2.AxisFault;
+
+
+public class AxisServiceStatsMBean extends AbstractManagementInterface {
+	
+	
+	public int getInMessages(String serviceName) throws AxisFault {		
+		ServiceStats serviceStats = getDynamicStatsManager().getMonitoredService(serviceName);
+		return serviceStats.getInMessages();
+	}
+	
+
+	public void clearInMessages(String serviceName) throws AxisFault {
+		ServiceStats serviceStats = getDynamicStatsManager().getMonitoredService(serviceName);
+		serviceStats.clearInMessages();
+	}
+	
+	
+	public int getOutMessages(String serviceName) throws AxisFault {
+		ServiceStats serviceStats = getDynamicStatsManager().getMonitoredService(serviceName);
+		return serviceStats.getOutMessages();
+	}
+	
+
+	public void clearOutMessages(String serviceName) throws AxisFault {
+		ServiceStats serviceStats = getDynamicStatsManager().getMonitoredService(serviceName);
+		serviceStats.clearOutMessages();
+	}
+	
+	
+	public int getFaultInMessages(String serviceName) throws AxisFault {
+		ServiceStats serviceStats = getDynamicStatsManager().getMonitoredService(serviceName);
+		return serviceStats.getFaultInMessages();
+	}
+	
+
+	public void clearFaultInMessages(String serviceName) throws AxisFault {
+		ServiceStats serviceStats = getDynamicStatsManager().getMonitoredService(serviceName);
+		serviceStats.clearFaultInMessages();
+	}
+	
+	
+	public int getFaultOutMessages(String serviceName) throws AxisFault {
+		ServiceStats serviceStats = getDynamicStatsManager().getMonitoredService(serviceName);
+		return serviceStats.getFaultOutMessages();
+	}
+	
+
+	public void clearFaultOutMessages(String serviceName) throws AxisFault {
+		ServiceStats serviceStats = getDynamicStatsManager().getMonitoredService(serviceName);
+		serviceStats.clearFaultOutMessages();
+	}
+	
+	
+	public void setOperationToMonitor(String serviceName, String operationName) throws AxisFault
{
+		ServiceStats serviceStats = getDynamicStatsManager().getMonitoredService(serviceName);
+		serviceStats.setOperationToMonitor(operationName);
+	}
+}
\ No newline at end of file

Added: webservices/axis2/trunk/archive/java/scratch/Axis_Management_module/management/src/org/apache/axis2/management/interfaces/jmx/AxisServicesMBean.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Axis_Management_module/management/src/org/apache/axis2/management/interfaces/jmx/AxisServicesMBean.java?rev=390426&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Axis_Management_module/management/src/org/apache/axis2/management/interfaces/jmx/AxisServicesMBean.java
(added)
+++ webservices/axis2/trunk/archive/java/scratch/Axis_Management_module/management/src/org/apache/axis2/management/interfaces/jmx/AxisServicesMBean.java
Fri Mar 31 06:20:30 2006
@@ -0,0 +1,51 @@
+
+package org.apache.axis2.management.interfaces.jmx;
+
+
+public class AxisServicesMBean extends AbstractManagementInterface {
+
+
+	public String[] getServiceParameters(String serviceName) {
+		return getServiceManager().getServiceParameters(serviceName);
+	}
+
+
+	public boolean isServiceParameter(String serviceName, String paramName) {
+		return getServiceManager().isServiceParameter(serviceName, paramName);
+	}
+
+
+	public void addServiceParameter(String serviceName, String name, String value) {
+		getServiceManager().addServiceParameter(serviceName, name, value);
+	}
+
+
+	public String editServiceParameter(String serviceName, String parameterName, String value)
{
+		return getServiceManager().editServiceParameter(serviceName, parameterName, value);
+	}
+	
+	
+	// Operations
+	
+	public String[] getOperations(String serviceName) {
+		return getServiceManager().getOperations(serviceName);
+	}
+	
+	
+	public boolean isOperationAvailable(String serviceName, String operationName) {
+		return getServiceManager().isOperationAvailable(serviceName, operationName);
+	}
+	
+	
+	// Modules
+	
+	public String[] getServiceEngagedModules(String serviceName) {
+		return getServiceManager().getServiceEngagedModules(serviceName);
+	}
+	
+	
+	public String engageModuleToService(String moduleName, String serviceName) {
+		return getServiceManager().engageModuleToService(moduleName, serviceName);
+	}
+
+}
\ No newline at end of file

Added: webservices/axis2/trunk/archive/java/scratch/Axis_Management_module/management/src/org/apache/axis2/management/interfaces/jmx/AxisTransportsMBean.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Axis_Management_module/management/src/org/apache/axis2/management/interfaces/jmx/AxisTransportsMBean.java?rev=390426&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Axis_Management_module/management/src/org/apache/axis2/management/interfaces/jmx/AxisTransportsMBean.java
(added)
+++ webservices/axis2/trunk/archive/java/scratch/Axis_Management_module/management/src/org/apache/axis2/management/interfaces/jmx/AxisTransportsMBean.java
Fri Mar 31 06:20:30 2006
@@ -0,0 +1,48 @@
+
+package org.apache.axis2.management.interfaces.jmx;
+
+
+public class AxisTransportsMBean extends AbstractManagementInterface {
+
+
+	public String[] getTransportInParameters(String transportInName) {
+		return getTransportManager().getTransportInParameters(transportInName);
+	}
+
+
+	public boolean isTransportInParameter(String transportInName, String paramName) {
+		return getTransportManager().isTransportInParameter(transportInName, paramName);
+	}
+
+
+	public void addTransportInParameter(String transportInName, String name, String value) {
+		getTransportManager().addTransportInParameter(transportInName, name, value);
+	}
+
+
+	public String editTransportInParameter(String transportInName, String parameterName, String
value) {
+		return getTransportManager().editTransportInParameter(transportInName, parameterName, value);
+	}
+
+
+	public String[] getTransportOutParameters(String transportOutName) {
+		return getTransportManager().getTransportOutParameters(transportOutName);
+	}
+
+
+	public boolean isTransportOutParameter(String transportOutName, String paramName) {
+		return getTransportManager().isTransportOutParameter(transportOutName, paramName);
+	}
+
+
+	public void addTransportOutParameter(String transportOutName, String name, String value)
{
+		getTransportManager().addTransportOutParameter(transportOutName, name, value);
+	}
+
+
+	public String editTransportOutParameter(String transportOutName, String parameterName, String
value) {
+		return getTransportManager().editTransportOutParameter(transportOutName, parameterName,
value);
+	}
+
+
+}
\ No newline at end of file

Added: webservices/axis2/trunk/archive/java/scratch/Axis_Management_module/management/src/org/apache/axis2/management/interfaces/jmx/DynamicStatsManagerMBean.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Axis_Management_module/management/src/org/apache/axis2/management/interfaces/jmx/DynamicStatsManagerMBean.java?rev=390426&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Axis_Management_module/management/src/org/apache/axis2/management/interfaces/jmx/DynamicStatsManagerMBean.java
(added)
+++ webservices/axis2/trunk/archive/java/scratch/Axis_Management_module/management/src/org/apache/axis2/management/interfaces/jmx/DynamicStatsManagerMBean.java
Fri Mar 31 06:20:30 2006
@@ -0,0 +1,62 @@
+
+package org.apache.axis2.management.interfaces.jmx;
+
+public class DynamicStatsManagerMBean extends AbstractManagementInterface {
+
+
+	public int getInMessages() {
+		return getDynamicStatsManager().getInMessages();
+	}
+	
+
+	public void clearInMessages() {
+		getDynamicStatsManager().clearInMessages();
+	}
+	
+	
+	public int getOutMessages() {
+		return getDynamicStatsManager().getOutMessages();
+	}
+	
+
+	public void clearOutMessages() {
+		getDynamicStatsManager().clearOutMessages();
+	}
+	
+	
+	public int getFaultInMessages() {
+		return getDynamicStatsManager().getFaultInMessages();
+	}
+	
+
+	public void clearFaultInMessages() {
+		getDynamicStatsManager().clearFaultInMessages();
+	}
+	
+	
+	public int getFaultOutMessages() {
+		return getDynamicStatsManager().getFaultOutMessages();
+	}
+	
+
+	public void clearFaultOutMessages() {
+		getDynamicStatsManager().clearFaultOutMessages();
+	}
+	
+	
+	/*
+	public HashMap getMonitoredServices() {
+		return serviceStatsMap;
+	}
+	*/
+
+
+	public void setServiceToMonitor(String serviceName) {
+		getDynamicStatsManager().setServiceToMonitor(serviceName);	
+	}
+	
+	
+	public boolean isServiceMonitoring(String serviceName) {
+		return getDynamicStatsManager().isServiceMonitoring(serviceName);
+	}
+}
\ No newline at end of file



Mime
View raw message