You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by me...@apache.org on 2007/01/07 13:45:06 UTC
svn commit: r493710 -
/incubator/tuscany/java/sca/runtime/standalone/jmx-host/src/main/java/org/apache/tuscany/runtime/standalone/jmx/info/JmxRuntimeInfoImpl.java
Author: meerajk
Date: Sun Jan 7 04:45:06 2007
New Revision: 493710
URL: http://svn.apache.org/viewvc?view=rev&rev=493710
Log:
Use the profile name as the management domain for the runtime.
Modified:
incubator/tuscany/java/sca/runtime/standalone/jmx-host/src/main/java/org/apache/tuscany/runtime/standalone/jmx/info/JmxRuntimeInfoImpl.java
Modified: incubator/tuscany/java/sca/runtime/standalone/jmx-host/src/main/java/org/apache/tuscany/runtime/standalone/jmx/info/JmxRuntimeInfoImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/runtime/standalone/jmx-host/src/main/java/org/apache/tuscany/runtime/standalone/jmx/info/JmxRuntimeInfoImpl.java?view=diff&rev=493710&r1=493709&r2=493710
==============================================================================
--- incubator/tuscany/java/sca/runtime/standalone/jmx-host/src/main/java/org/apache/tuscany/runtime/standalone/jmx/info/JmxRuntimeInfoImpl.java (original)
+++ incubator/tuscany/java/sca/runtime/standalone/jmx-host/src/main/java/org/apache/tuscany/runtime/standalone/jmx/info/JmxRuntimeInfoImpl.java Sun Jan 7 04:45:06 2007
@@ -19,7 +19,6 @@
package org.apache.tuscany.runtime.standalone.jmx.info;
import java.io.File;
-import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Properties;
@@ -43,11 +42,6 @@
private final MBeanServer mBeanServer;
/**
- * Management domain.
- */
- private final String managementDomain;
-
- /**
* Initializes the runtime info instance.
*
* @param profileName the runtime's profile name
@@ -63,11 +57,9 @@
final File profileDirectory,
final boolean online,
final Properties properties,
- final MBeanServer mBeanServer,
- final String managementDomain) {
+ final MBeanServer mBeanServer) {
super(profileName, installDirectory, profileDirectory, null, online, properties);
this.mBeanServer = mBeanServer;
- this.managementDomain = managementDomain;
}
/**
@@ -77,13 +69,11 @@
* @param installDirectory directory containing the standalone installation
* @param online true if this runtime should consider itself online
* @param mBeanServer mbean server.
- * @param managementDomain management domain for the runtime.
*/
- public static JmxRuntimeInfoImpl newInstance(String profileName,
- File installDirectory,
- boolean online,
- final MBeanServer mBeanServer,
- final String managementDomain)
+ public static JmxRuntimeInfoImpl newInstance(final String profileName,
+ final File installDirectory,
+ final boolean online,
+ final MBeanServer mBeanServer)
throws JmxException {
// TODO This logic should move to super class's constructor
@@ -95,7 +85,7 @@
File propFile = new File(profileDirectory, "etc/runtime.properties");
Properties props = DirectoryHelper.loadProperties(propFile, System.getProperties());
- return new JmxRuntimeInfoImpl(profileName, installDirectory, profileDirectory, online, props, mBeanServer, managementDomain);
+ return new JmxRuntimeInfoImpl(profileName, installDirectory, profileDirectory, online, props, mBeanServer);
} catch (IOException ex) {
throw new JmxHostException(ex);
}
@@ -115,7 +105,7 @@
* @return Default domain used by the host.
*/
public final String getManagementDomain() {
- return managementDomain;
+ return getProfileName();
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org