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/05 01:05:22 UTC
svn commit: r492824 -
/incubator/tuscany/java/sca/kernel/spi/src/main/java/org/apache/tuscany/spi/services/management/ManagementService.java
Author: meerajk
Date: Thu Jan 4 16:05:21 2007
New Revision: 492824
URL: http://svn.apache.org/viewvc?view=rev&rev=492824
Log:
Added RuntimeInfo as part of the ManagementService abstraction.
Modified:
incubator/tuscany/java/sca/kernel/spi/src/main/java/org/apache/tuscany/spi/services/management/ManagementService.java
Modified: incubator/tuscany/java/sca/kernel/spi/src/main/java/org/apache/tuscany/spi/services/management/ManagementService.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/kernel/spi/src/main/java/org/apache/tuscany/spi/services/management/ManagementService.java?view=diff&rev=492824&r1=492823&r2=492824
==============================================================================
--- incubator/tuscany/java/sca/kernel/spi/src/main/java/org/apache/tuscany/spi/services/management/ManagementService.java (original)
+++ incubator/tuscany/java/sca/kernel/spi/src/main/java/org/apache/tuscany/spi/services/management/ManagementService.java Thu Jan 4 16:05:21 2007
@@ -18,6 +18,7 @@
*/
package org.apache.tuscany.spi.services.management;
+import org.apache.tuscany.host.RuntimeInfo;
import org.apache.tuscany.spi.component.Component;
/**
@@ -28,7 +29,7 @@
* @version $Revision$ $Date$
*
*/
-public interface ManagementService {
+public interface ManagementService<R extends RuntimeInfo> {
/**
* Registers a component for management.
@@ -37,5 +38,11 @@
* @param component Component to be registered.
*/
void registerComponent(String name, Component component);
+
+ /**
+ * Sets the runtime info used by the management service.
+ * @param runtimeInfo Runtime info for the management service.
+ */
+ void setRuntimeIno(R runtimeInfo);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org
Re: svn commit: r492824 - /incubator/tuscany/java/sca/kernel/spi/src/main/java/org/apache/tuscany/spi/services/management/ManagementService.java
Posted by Jeremy Boynes <jb...@apache.org>.
I don't think the RuntimeInfo is part of the service interface here -
it's more relevant to the implementation of the service than the
client interface. I'll try and think of an alternative.
--
Jeremy
On Jan 4, 2007, at 4:05 PM, meerajk@apache.org wrote:
> Author: meerajk
> Date: Thu Jan 4 16:05:21 2007
> New Revision: 492824
>
> URL: http://svn.apache.org/viewvc?view=rev&rev=492824
> Log:
> Added RuntimeInfo as part of the ManagementService abstraction.
>
> Modified:
> incubator/tuscany/java/sca/kernel/spi/src/main/java/org/apache/
> tuscany/spi/services/management/ManagementService.java
>
> Modified: incubator/tuscany/java/sca/kernel/spi/src/main/java/org/
> apache/tuscany/spi/services/management/ManagementService.java
> URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/kernel/
> spi/src/main/java/org/apache/tuscany/spi/services/management/
> ManagementService.java?view=diff&rev=492824&r1=492823&r2=492824
> ======================================================================
> ========
> --- incubator/tuscany/java/sca/kernel/spi/src/main/java/org/apache/
> tuscany/spi/services/management/ManagementService.java (original)
> +++ incubator/tuscany/java/sca/kernel/spi/src/main/java/org/apache/
> tuscany/spi/services/management/ManagementService.java Thu Jan 4
> 16:05:21 2007
> @@ -18,6 +18,7 @@
> */
> package org.apache.tuscany.spi.services.management;
>
> +import org.apache.tuscany.host.RuntimeInfo;
> import org.apache.tuscany.spi.component.Component;
>
> /**
> @@ -28,7 +29,7 @@
> * @version $Revision$ $Date$
> *
> */
> -public interface ManagementService {
> +public interface ManagementService<R extends RuntimeInfo> {
>
> /**
> * Registers a component for management.
> @@ -37,5 +38,11 @@
> * @param component Component to be registered.
> */
> void registerComponent(String name, Component component);
> +
> + /**
> + * Sets the runtime info used by the management service.
> + * @param runtimeInfo Runtime info for the management service.
> + */
> + void setRuntimeIno(R runtimeInfo);
>
> }
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
> For additional commands, e-mail: tuscany-commits-help@ws.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org