summaryrefslogtreecommitdiffstats
path: root/sandbox/sebastien/java/sca-node/modules/domain/src/main/java/org/apache/tuscany/sca/domain/management
diff options
context:
space:
mode:
Diffstat (limited to 'sandbox/sebastien/java/sca-node/modules/domain/src/main/java/org/apache/tuscany/sca/domain/management')
-rw-r--r--sandbox/sebastien/java/sca-node/modules/domain/src/main/java/org/apache/tuscany/sca/domain/management/ContributionInfo.java67
-rw-r--r--sandbox/sebastien/java/sca-node/modules/domain/src/main/java/org/apache/tuscany/sca/domain/management/DomainInfo.java66
-rw-r--r--sandbox/sebastien/java/sca-node/modules/domain/src/main/java/org/apache/tuscany/sca/domain/management/NodeInfo.java66
-rw-r--r--sandbox/sebastien/java/sca-node/modules/domain/src/main/java/org/apache/tuscany/sca/domain/management/SCADomainManagerInitService.java56
-rw-r--r--sandbox/sebastien/java/sca-node/modules/domain/src/main/java/org/apache/tuscany/sca/domain/management/SCADomainManagerService.java47
5 files changed, 302 insertions, 0 deletions
diff --git a/sandbox/sebastien/java/sca-node/modules/domain/src/main/java/org/apache/tuscany/sca/domain/management/ContributionInfo.java b/sandbox/sebastien/java/sca-node/modules/domain/src/main/java/org/apache/tuscany/sca/domain/management/ContributionInfo.java
new file mode 100644
index 0000000000..99abbf4052
--- /dev/null
+++ b/sandbox/sebastien/java/sca-node/modules/domain/src/main/java/org/apache/tuscany/sca/domain/management/ContributionInfo.java
@@ -0,0 +1,67 @@
+/*
+ * 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.sca.domain.management;
+
+import java.net.URL;
+import java.util.List;
+
+import javax.xml.namespace.QName;
+
+
+/**
+ * A collection of info for a contribution
+ *
+ * @version $Rev: 552343 $ $Date: 2007-09-07 12:41:52 +0100 (Fri, 07 Sep 2007) $
+ */
+public interface ContributionInfo {
+
+
+ /**
+ * Retrieve the contribution URI
+ *
+ * @return contribution URI
+ */
+ String getContributionURI();
+
+ /**
+ * Set the contribution URI
+ *
+ * @param contributionURI
+ */
+ void setContributionURI(String contributionURI);
+
+ /**
+ * Retrieve the contribution URL
+ *
+ * @return contribution URL
+ */
+ URL getContributionURL();
+
+ /**
+ * Set the contribution URL
+ *
+ * @param contributionURL
+ */
+ void setContributionURL(URL contributionURL);
+
+ List<QName> getComposites();
+ List<QName> getDeployableComposites();
+
+}
diff --git a/sandbox/sebastien/java/sca-node/modules/domain/src/main/java/org/apache/tuscany/sca/domain/management/DomainInfo.java b/sandbox/sebastien/java/sca-node/modules/domain/src/main/java/org/apache/tuscany/sca/domain/management/DomainInfo.java
new file mode 100644
index 0000000000..0294b90276
--- /dev/null
+++ b/sandbox/sebastien/java/sca-node/modules/domain/src/main/java/org/apache/tuscany/sca/domain/management/DomainInfo.java
@@ -0,0 +1,66 @@
+/*
+ * 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.sca.domain.management;
+
+import java.util.List;
+
+import javax.xml.namespace.QName;
+
+
+/**
+ * A data transport object for the management interface
+ *
+ * @version $Rev: 552343 $ $Date: 2007-09-07 12:41:52 +0100 (Fri, 07 Sep 2007) $
+ */
+public interface DomainInfo {
+
+ /**
+ * Retrieve the domain URI
+ *
+ * @return domain URI
+ */
+ String getDomainURI();
+
+ /**
+ * Set the domain URI
+ *
+ * @param domainURI
+ */
+ void setDomainURI(String domainURI);
+
+ /**
+ * Retrieve the domain URL
+ *
+ * @return domain URL
+ */
+ String getDomainURL();
+
+ /**
+ * Set the domain URL
+ *
+ * @param domainURL
+ */
+ void setDomainURL(String domainURL);
+
+ List<String> getNodes();
+ List<String> getContributions();
+ List<QName> getDeployedComposites();
+
+}
diff --git a/sandbox/sebastien/java/sca-node/modules/domain/src/main/java/org/apache/tuscany/sca/domain/management/NodeInfo.java b/sandbox/sebastien/java/sca-node/modules/domain/src/main/java/org/apache/tuscany/sca/domain/management/NodeInfo.java
new file mode 100644
index 0000000000..f7c6fe8730
--- /dev/null
+++ b/sandbox/sebastien/java/sca-node/modules/domain/src/main/java/org/apache/tuscany/sca/domain/management/NodeInfo.java
@@ -0,0 +1,66 @@
+/*
+ * 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.sca.domain.management;
+
+import java.util.List;
+
+import javax.xml.namespace.QName;
+
+
+/**
+ * A collection of info for a registered node
+ *
+ * @version $Rev: 552343 $ $Date: 2007-09-07 12:41:52 +0100 (Fri, 07 Sep 2007) $
+ */
+public interface NodeInfo {
+
+ /**
+ * Retrieve the node URI
+ *
+ * @return node URI
+ */
+ String getNodeURI();
+
+ /**
+ * Set the node URI
+ *
+ * @param nodeURI
+ */
+ void setNodeURI(String nodeURI);
+
+ /**
+ * Retrieve the node URL
+ *
+ * @return node URL
+ */
+ String getNodeURL();
+
+ /**
+ * Set the node URL
+ *
+ * @param nodeURL
+ */
+ void setNodeURL(String nodeURL);
+
+ List<String> getContributions();
+ List<QName> getDeployedComposites();
+ List<String> getServices();
+
+}
diff --git a/sandbox/sebastien/java/sca-node/modules/domain/src/main/java/org/apache/tuscany/sca/domain/management/SCADomainManagerInitService.java b/sandbox/sebastien/java/sca-node/modules/domain/src/main/java/org/apache/tuscany/sca/domain/management/SCADomainManagerInitService.java
new file mode 100644
index 0000000000..1975ebe5a5
--- /dev/null
+++ b/sandbox/sebastien/java/sca-node/modules/domain/src/main/java/org/apache/tuscany/sca/domain/management/SCADomainManagerInitService.java
@@ -0,0 +1,56 @@
+/*
+ * 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.sca.domain.management;
+
+import org.apache.tuscany.sca.domain.SCADomain;
+import org.apache.tuscany.sca.domain.spi.SCADomainEventService;
+import org.apache.tuscany.sca.domain.spi.SCADomainSPI;
+
+
+
+/**
+ * Connects the domain to the domain manager service
+ *
+ * @version $Rev: 552343 $ $Date: 2007-09-11 18:45:36 +0100 (Tue, 11 Sep 2007) $
+ */
+public interface SCADomainManagerInitService {
+
+ /**
+ * Set the domain object
+ *
+ * @param domain
+ */
+ void setDomain(SCADomain domain);
+
+ /**
+ * Set the domain SPI object
+ *
+ * @param domain
+ */
+ void setDomainSPI(SCADomainSPI domainSPI);
+
+ /**
+ * Set the domain event object
+ *
+ * @param domain
+ */
+ void setDomainEventService(SCADomainEventService domainEventService);
+
+}
diff --git a/sandbox/sebastien/java/sca-node/modules/domain/src/main/java/org/apache/tuscany/sca/domain/management/SCADomainManagerService.java b/sandbox/sebastien/java/sca-node/modules/domain/src/main/java/org/apache/tuscany/sca/domain/management/SCADomainManagerService.java
new file mode 100644
index 0000000000..b15b8f3f4c
--- /dev/null
+++ b/sandbox/sebastien/java/sca-node/modules/domain/src/main/java/org/apache/tuscany/sca/domain/management/SCADomainManagerService.java
@@ -0,0 +1,47 @@
+/*
+ * 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.sca.domain.management;
+
+import org.osoa.sca.annotations.Remotable;
+
+
+
+/**
+ * Connects the domain management operations
+ *
+ * @version $Rev: 552343 $ $Date: 2007-09-11 18:45:36 +0100 (Tue, 11 Sep 2007) $
+ */
+@Remotable
+public interface SCADomainManagerService {
+
+ /**
+ * Return description of the domain
+ *
+ */
+ DomainInfo getDomainDescription();
+
+ /**
+ * Return description of the node
+ *
+ * @param nodeURI
+ */
+ NodeInfo getNodeDescription(String nodeURI);
+
+}