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/06 13:44:11 UTC
svn commit: r493458 - in
/incubator/tuscany/java/sca/runtime/standalone/server.start/src/main/java/org/apache/tuscany/standalone/server:
TuscanyServer.java TuscanyServerMBean.java
Author: meerajk
Date: Sat Jan 6 04:44:11 2007
New Revision: 493458
URL: http://svn.apache.org/viewvc?view=rev&rev=493458
Log:
Moved JMX management service from core to jmx-host.
Modified:
incubator/tuscany/java/sca/runtime/standalone/server.start/src/main/java/org/apache/tuscany/standalone/server/TuscanyServer.java
incubator/tuscany/java/sca/runtime/standalone/server.start/src/main/java/org/apache/tuscany/standalone/server/TuscanyServerMBean.java
Modified: incubator/tuscany/java/sca/runtime/standalone/server.start/src/main/java/org/apache/tuscany/standalone/server/TuscanyServer.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/runtime/standalone/server.start/src/main/java/org/apache/tuscany/standalone/server/TuscanyServer.java?view=diff&rev=493458&r1=493457&r2=493458
==============================================================================
--- incubator/tuscany/java/sca/runtime/standalone/server.start/src/main/java/org/apache/tuscany/standalone/server/TuscanyServer.java (original)
+++ incubator/tuscany/java/sca/runtime/standalone/server.start/src/main/java/org/apache/tuscany/standalone/server/TuscanyServer.java Sat Jan 6 04:44:11 2007
@@ -27,12 +27,12 @@
import java.util.concurrent.ConcurrentHashMap;
import javax.management.MBeanServer;
-import org.apache.tuscany.core.services.management.jmx.runtime.JmxRuntimeInfoImpl;
import org.apache.tuscany.host.RuntimeInfo;
import org.apache.tuscany.host.runtime.InitializationException;
import org.apache.tuscany.host.runtime.ShutdownException;
import org.apache.tuscany.host.runtime.TuscanyRuntime;
import org.apache.tuscany.runtime.standalone.DirectoryHelper;
+import org.apache.tuscany.runtime.standalone.jmx.info.JmxRuntimeInfoImpl;
import org.apache.tuscany.standalone.server.management.jmx.Agent;
import org.apache.tuscany.standalone.server.management.jmx.RmiAgent;
@@ -104,14 +104,14 @@
agent = RmiAgent.getInstance();
}
- public final void startRuntime(final String bootPath, final boolean online, final String managementDomain) {
+ public final void startRuntime(final String profileName, final boolean online, final String managementDomain) {
try {
- final File bootDirectory = DirectoryHelper.getBootDirectory(installDirectory, bootPath);
+ final File bootDirectory = DirectoryHelper.getBootDirectory(installDirectory, profileName);
- final MBeanServer mBeanServer = agent.getMBeanServer();
- final RuntimeInfo runtimeInfo = new JmxRuntimeInfoImpl(baseUrl, installDirectory, online, mBeanServer, managementDomain);
+ final MBeanServer mBeanServer = agent.getMBeanServer();
+ final RuntimeInfo runtimeInfo = JmxRuntimeInfoImpl.newInstance(profileName, installDirectory, online, mBeanServer, managementDomain);
final ClassLoader hostClassLoader = ClassLoader.getSystemClassLoader();
final ClassLoader bootClassLoader = DirectoryHelper.createClassLoader(hostClassLoader, bootDirectory);
@@ -132,7 +132,7 @@
runtime.setRuntimeInfo(runtimeInfo);
runtime.initialize();
- bootedRuntimes.put(bootPath, runtime);
+ bootedRuntimes.put(profileName, runtime);
} catch (InitializationException ex) {
ex.printStackTrace();
Modified: incubator/tuscany/java/sca/runtime/standalone/server.start/src/main/java/org/apache/tuscany/standalone/server/TuscanyServerMBean.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/runtime/standalone/server.start/src/main/java/org/apache/tuscany/standalone/server/TuscanyServerMBean.java?view=diff&rev=493458&r1=493457&r2=493458
==============================================================================
--- incubator/tuscany/java/sca/runtime/standalone/server.start/src/main/java/org/apache/tuscany/standalone/server/TuscanyServerMBean.java (original)
+++ incubator/tuscany/java/sca/runtime/standalone/server.start/src/main/java/org/apache/tuscany/standalone/server/TuscanyServerMBean.java Sat Jan 6 04:44:11 2007
@@ -29,11 +29,11 @@
/**
* Starts a runtime specified by the bootpath.
*
- * @param bootPath Bootpath for the runtime.
+ * @param profileName Profile for the runtime.
* @param online Whether the runtime will resolve dependencies on the fly.
* @param managementDomain Management domain for the runtime.
*/
- public void startRuntime(String bootPath, boolean online, String managementDomain);
+ public void startRuntime(String profileName, boolean online, String managementDomain);
/**
* Shuts down a runtime specified by the bootpath.
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org