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/09 00:17:42 UTC
svn commit: r494240 - in
/incubator/tuscany/java/sca/kernel/host-api/src/main/java/org/apache/tuscany/host:
management/ management/ManagementService.java runtime/TuscanyRuntime.java
Author: meerajk
Date: Mon Jan 8 15:17:41 2007
New Revision: 494240
URL: http://svn.apache.org/viewvc?view=rev&rev=494240
Log:
Move management service from spi to host-api.
Added:
incubator/tuscany/java/sca/kernel/host-api/src/main/java/org/apache/tuscany/host/management/
incubator/tuscany/java/sca/kernel/host-api/src/main/java/org/apache/tuscany/host/management/ManagementService.java (with props)
Modified:
incubator/tuscany/java/sca/kernel/host-api/src/main/java/org/apache/tuscany/host/runtime/TuscanyRuntime.java
Added: incubator/tuscany/java/sca/kernel/host-api/src/main/java/org/apache/tuscany/host/management/ManagementService.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/kernel/host-api/src/main/java/org/apache/tuscany/host/management/ManagementService.java?view=auto&rev=494240
==============================================================================
--- incubator/tuscany/java/sca/kernel/host-api/src/main/java/org/apache/tuscany/host/management/ManagementService.java (added)
+++ incubator/tuscany/java/sca/kernel/host-api/src/main/java/org/apache/tuscany/host/management/ManagementService.java Mon Jan 8 15:17:41 2007
@@ -0,0 +1,35 @@
+/*
+ * 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.host.management;
+
+/**
+ *
+ * @version $Revision$ $Date$
+ */
+public interface ManagementService<T> {
+
+ /**
+ * Registers the object for management.
+ *
+ * @param name Name under which the object is registered.
+ * @param managedObject Managed object to be registered.
+ */
+ void registerComponent(String name, T managedObject);
+
+}
Propchange: incubator/tuscany/java/sca/kernel/host-api/src/main/java/org/apache/tuscany/host/management/ManagementService.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/tuscany/java/sca/kernel/host-api/src/main/java/org/apache/tuscany/host/management/ManagementService.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Modified: incubator/tuscany/java/sca/kernel/host-api/src/main/java/org/apache/tuscany/host/runtime/TuscanyRuntime.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/kernel/host-api/src/main/java/org/apache/tuscany/host/runtime/TuscanyRuntime.java?view=diff&rev=494240&r1=494239&r2=494240
==============================================================================
--- incubator/tuscany/java/sca/kernel/host-api/src/main/java/org/apache/tuscany/host/runtime/TuscanyRuntime.java (original)
+++ incubator/tuscany/java/sca/kernel/host-api/src/main/java/org/apache/tuscany/host/runtime/TuscanyRuntime.java Mon Jan 8 15:17:41 2007
@@ -24,6 +24,7 @@
import org.apache.tuscany.host.MonitorFactory;
import org.apache.tuscany.host.RuntimeInfo;
+import org.apache.tuscany.host.management.ManagementService;
/**
* @version $Rev$ $Date$
@@ -92,6 +93,20 @@
* @return the default MonitorFactory for this runtime
*/
MonitorFactory createDefaultMonitorFactory();
+
+ /**
+ * Sets the ManagementService that this runtime should use.
+ *
+ * @param managementService the ManagementService that this runtime should use
+ */
+ void setManagementService(ManagementService<?> managementService);
+
+ /**
+ * Returns the ManagementService that this runtime is using.
+ *
+ * @return the ManagementService that this runtime is using
+ */
+ ManagementService<?> getManagementService();
/**
* Initialize a runtime.
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org