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 2006/12/31 21:23:50 UTC
svn commit: r491474 - in
/incubator/tuscany/java/sca/kernel/core/src/main/java/org/apache/tuscany/core/services/management/jmx/runtime:
./ JmxRuntimeInfo.java JmxRuntimeInfoImpl.java
Author: meerajk
Date: Sun Dec 31 12:23:49 2006
New Revision: 491474
URL: http://svn.apache.org/viewvc?view=rev&rev=491474
Log:
Added Jms runtime info. Maybe, the whole management.jmx should
move to an extension module rather than core.
Added:
incubator/tuscany/java/sca/kernel/core/src/main/java/org/apache/tuscany/core/services/management/jmx/runtime/
incubator/tuscany/java/sca/kernel/core/src/main/java/org/apache/tuscany/core/services/management/jmx/runtime/JmxRuntimeInfo.java (with props)
incubator/tuscany/java/sca/kernel/core/src/main/java/org/apache/tuscany/core/services/management/jmx/runtime/JmxRuntimeInfoImpl.java (with props)
Added: incubator/tuscany/java/sca/kernel/core/src/main/java/org/apache/tuscany/core/services/management/jmx/runtime/JmxRuntimeInfo.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/kernel/core/src/main/java/org/apache/tuscany/core/services/management/jmx/runtime/JmxRuntimeInfo.java?view=auto&rev=491474
==============================================================================
--- incubator/tuscany/java/sca/kernel/core/src/main/java/org/apache/tuscany/core/services/management/jmx/runtime/JmxRuntimeInfo.java (added)
+++ incubator/tuscany/java/sca/kernel/core/src/main/java/org/apache/tuscany/core/services/management/jmx/runtime/JmxRuntimeInfo.java Sun Dec 31 12:23:49 2006
@@ -0,0 +1,39 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.tuscany.core.services.management.jmx.runtime;
+
+import javax.management.MBeanServer;
+
+import org.apache.tuscany.host.RuntimeInfo;
+
+/**
+ * Runtime info that gives access to the underlying JMX MBean server.
+ *
+ * @version $Revision$ $Date$
+ *
+ */
+public interface JmxRuntimeInfo extends RuntimeInfo {
+
+ /**
+ * Returns a reference to the mbean server used by the host.
+ * @return A reference to the host mbean server.
+ */
+ MBeanServer getMBeanServer();
+
+}
Propchange: incubator/tuscany/java/sca/kernel/core/src/main/java/org/apache/tuscany/core/services/management/jmx/runtime/JmxRuntimeInfo.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/tuscany/java/sca/kernel/core/src/main/java/org/apache/tuscany/core/services/management/jmx/runtime/JmxRuntimeInfo.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added: incubator/tuscany/java/sca/kernel/core/src/main/java/org/apache/tuscany/core/services/management/jmx/runtime/JmxRuntimeInfoImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/kernel/core/src/main/java/org/apache/tuscany/core/services/management/jmx/runtime/JmxRuntimeInfoImpl.java?view=auto&rev=491474
==============================================================================
--- incubator/tuscany/java/sca/kernel/core/src/main/java/org/apache/tuscany/core/services/management/jmx/runtime/JmxRuntimeInfoImpl.java (added)
+++ incubator/tuscany/java/sca/kernel/core/src/main/java/org/apache/tuscany/core/services/management/jmx/runtime/JmxRuntimeInfoImpl.java Sun Dec 31 12:23:49 2006
@@ -0,0 +1,62 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.tuscany.core.services.management.jmx.runtime;
+
+import java.io.File;
+import java.net.URL;
+
+import javax.management.MBeanServer;
+
+import org.apache.tuscany.core.services.management.jmx.runtime.JmxRuntimeInfo;
+import org.apache.tuscany.host.AbstractRuntimeInfo;
+
+/**
+ * Implementation for the <code>JmxRuntimeInfo</code> interface.
+ *
+ * @version $Revision$ $Date$
+ */
+public class JmxRuntimeInfoImpl extends AbstractRuntimeInfo implements JmxRuntimeInfo {
+
+ /**
+ * MBean server reference.
+ */
+ private final MBeanServer mBeanServer;
+
+ /**
+ * Initializes the runtime info instance.
+ *
+ * @param applicationRootDirectory Application root directory.
+ * @param baseUrl Base Url.
+ * @param installDirectory Install directory.
+ * @param online Onlne indicator.
+ * @param mBeanServer MBean server.
+ */
+ public JmxRuntimeInfoImpl(File applicationRootDirectory, URL baseUrl, File installDirectory, boolean online, MBeanServer mBeanServer) {
+ super(applicationRootDirectory, baseUrl, installDirectory, online);
+ this.mBeanServer = mBeanServer;
+ }
+
+ /**
+ * @see org.apache.tuscany.core.services.management.jmx.runtime.JmxRuntimeInfo#getMBeanServer()
+ */
+ public final MBeanServer getMBeanServer() {
+ return mBeanServer;
+ }
+
+}
Propchange: incubator/tuscany/java/sca/kernel/core/src/main/java/org/apache/tuscany/core/services/management/jmx/runtime/JmxRuntimeInfoImpl.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/tuscany/java/sca/kernel/core/src/main/java/org/apache/tuscany/core/services/management/jmx/runtime/JmxRuntimeInfoImpl.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org