Remove runtime packages
authorMathieu Baudier <mbaudier@argeo.org>
Mon, 25 Feb 2013 17:19:36 +0000 (17:19 +0000)
committerMathieu Baudier <mbaudier@argeo.org>
Mon, 25 Feb 2013 17:19:36 +0000 (17:19 +0000)
git-svn-id: https://svn.argeo.org/slc/trunk@6086 4cfe0d0a-d680-48aa-b62c-e0a02a3f76cc

17 files changed:
demo/log4j.properties
modules/org.argeo.slc.agent.jcr/META-INF/spring/jcr-osgi.xml
modules/org.argeo.slc.agent/META-INF/spring/osgi.xml
plugins/org.argeo.slc.client.ui/META-INF/spring/osgi.xml
plugins/org.argeo.slc.client.ui/src/main/java/org/argeo/slc/client/ui/controllers/ProcessController.java
runtime/org.argeo.slc.core/src/main/java/org/argeo/slc/core/execution/DefaultAgent.java
runtime/org.argeo.slc.core/src/main/java/org/argeo/slc/core/execution/DefaultAgentFactory.java
runtime/org.argeo.slc.core/src/main/java/org/argeo/slc/core/runtime/SimpleAgentFactory.java [deleted file]
runtime/org.argeo.slc.launcher/log4j.properties
runtime/org.argeo.slc.launcher/pom.xml
runtime/org.argeo.slc.launcher/src/main/java/org/argeo/slc/cli/SlcMain.java
runtime/org.argeo.slc.specs/src/main/java/org/argeo/slc/execution/SlcAgent.java [new file with mode: 0644]
runtime/org.argeo.slc.specs/src/main/java/org/argeo/slc/execution/SlcAgentDescriptor.java [new file with mode: 0644]
runtime/org.argeo.slc.specs/src/main/java/org/argeo/slc/execution/SlcAgentFactory.java [new file with mode: 0644]
runtime/org.argeo.slc.specs/src/main/java/org/argeo/slc/runtime/SlcAgent.java [deleted file]
runtime/org.argeo.slc.specs/src/main/java/org/argeo/slc/runtime/SlcAgentDescriptor.java [deleted file]
runtime/org.argeo.slc.specs/src/main/java/org/argeo/slc/runtime/SlcAgentFactory.java [deleted file]

index bdb2d65751fc5b417f0dc6a41d77e82beaa4b0c6..0b091606c7f279e24c0c4b884235e89d442a4278 100644 (file)
@@ -23,7 +23,8 @@ log4j.appender.console=org.apache.log4j.ConsoleAppender
 log4j.appender.console.layout=org.apache.log4j.PatternLayout
 log4j.appender.console.layout.ConversionPattern=%d{yyyyMMdd HH:mm:ss} %-5p %m [%t] %c%n
 
-# development appender (slow!)
+# development appender
 log4j.appender.development=org.apache.log4j.ConsoleAppender
 log4j.appender.development.layout=org.apache.log4j.PatternLayout
-log4j.appender.development.layout.ConversionPattern=%d{HH:mm:ss} [%16.16t] %5p %m (%F:%L) %c%n
+#log4j.appender.development.layout.ConversionPattern=%d{HH:mm:ss,SSS} [%16.16t] %5p %m (%F:%L) %c%n
+log4j.appender.development.layout.ConversionPattern=%d{HH:mm:ss,SSS} %5p %m [%16.16t] %c%n
index f96930793355f36df8e1793ef4127fc5a3f1ff78..52deee9a9eb74cd234053a9b544e12b7356a4f56 100644 (file)
@@ -24,7 +24,7 @@
        \r
        <service interface="org.argeo.slc.execution.ExecutionModulesListener"\r
                ref="executionModulesListener" />\r
-       <service ref="agent" interface="org.argeo.slc.runtime.SlcAgent" />\r
+       <service ref="agent" interface="org.argeo.slc.execution.SlcAgent" />\r
 \r
        <service ref="fileSystemManager" interface="org.apache.commons.vfs.FileSystemManager" />\r
 </beans:beans>
\ No newline at end of file
index 1756f89edc46d1e580bb03dfb17a049d6b5e4536..c1b33f300ea5dc66388727a1c9b1f808b6da7c42 100644 (file)
@@ -36,7 +36,7 @@
        <list id="slcExecutionListeners" interface="org.argeo.slc.process.SlcExecutionNotifier"\r
                cardinality="0..N" />\r
 \r
-       <list id="agents" interface="org.argeo.slc.runtime.SlcAgent"\r
+       <list id="agents" interface="org.argeo.slc.execution.SlcAgent"\r
                cardinality="0..N">\r
                <listener ref="vmAgentFactory" bind-method="register"\r
                        unbind-method="unregister" />\r
@@ -45,7 +45,7 @@
        <!-- SERVICES -->\r
        <service ref="modulesManager" interface="org.argeo.slc.execution.ExecutionModulesManager" />\r
 \r
-       <service ref="vmAgentFactory" interface="org.argeo.slc.runtime.SlcAgentFactory">\r
+       <service ref="vmAgentFactory" interface="org.argeo.slc.execution.SlcAgentFactory">\r
                <service-properties>\r
                        <beans:entry key="argeo.slc.jcr.path" value="/slc:system/slc:agents/slc:vm" />\r
                </service-properties>\r
index 69087dbb9be6da72f2278961174a3e82dfcd736a..6397bb637a18d3ac05cf674429626b357d5abf46 100644 (file)
@@ -14,7 +14,7 @@
        <reference id="repository" interface="javax.jcr.Repository"\r
                filter="(argeo.jcr.repository.alias=slc)" />\r
 \r
-       <list id="agentFactories" interface="org.argeo.slc.runtime.SlcAgentFactory">\r
+       <list id="agentFactories" interface="org.argeo.slc.execution.SlcAgentFactory">\r
                <listener ref="processController" bind-method="register"\r
                        unbind-method="unregister" />\r
        </list>\r
index 342284f5a65a40dba369fefe424541c25b309ee2..4cb7c9bda7130fa7966917a27542f6255e0b0bad 100644 (file)
@@ -27,12 +27,12 @@ import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
 import org.argeo.slc.SlcException;
 import org.argeo.slc.execution.ExecutionProcess;
+import org.argeo.slc.execution.SlcAgent;
+import org.argeo.slc.execution.SlcAgentFactory;
 import org.argeo.slc.jcr.SlcJcrConstants;
 import org.argeo.slc.jcr.SlcJcrUtils;
 import org.argeo.slc.jcr.SlcNames;
 import org.argeo.slc.jcr.execution.JcrExecutionProcess;
-import org.argeo.slc.runtime.SlcAgent;
-import org.argeo.slc.runtime.SlcAgentFactory;
 
 /**
  * We use a separate class (not in UI components) so that it can be a singleton
index e69b1cf7af749771d7fa4aaab10dc47479db24a2..e892b1d14dea025c0a49433d5ce47cce9838e0d6 100644 (file)
@@ -31,9 +31,9 @@ import org.argeo.slc.execution.ExecutionModulesManager;
 import org.argeo.slc.execution.ExecutionProcess;
 import org.argeo.slc.execution.ExecutionProcessNotifier;
 import org.argeo.slc.execution.ExecutionStep;
+import org.argeo.slc.execution.SlcAgent;
+import org.argeo.slc.execution.SlcAgentDescriptor;
 import org.argeo.slc.process.SlcExecution;
-import org.argeo.slc.runtime.SlcAgent;
-import org.argeo.slc.runtime.SlcAgentDescriptor;
 
 /** Implements the base methods of an SLC agent. */
 @SuppressWarnings("deprecation")
@@ -64,6 +64,20 @@ public class DefaultAgent implements SlcAgent, ExecutionProcessNotifier {
                                + agentDescriptor.getUuid());
                modulesManager.registerProcessNotifier(this,
                                new HashMap<String, String>());
+
+               // final String module = System
+               // .getProperty(ExecutionModulesManager.UNIQUE_LAUNCH_MODULE_PROPERTY);
+               // final String flow = System
+               // .getProperty(ExecutionModulesManager.UNIQUE_LAUNCH_FLOW_PROPERTY);
+               // if (module != null) {
+               // // launch a flow and stops
+               // new Thread("Unique Flow") {
+               // @Override
+               // public void run() {
+               // executeFlowAndExit(module, null, flow);
+               // }
+               // }.start();
+               // }
        }
 
        /** Clean up (needs to be called by overriding method) */
@@ -80,6 +94,13 @@ public class DefaultAgent implements SlcAgent, ExecutionProcessNotifier {
                return UUID.randomUUID().toString();
        }
 
+       /*
+        * UNIQUE FLOW
+        */
+       // protected void executeFlowAndExit(final String module,
+       // final String version, final String flow) {
+       // }
+
        /*
         * SLC AGENT
         */
index e80db134619a75773db2373f04d66d8b51bc2d2a..1564fde8088bc55ebf642c02ff2fd29f82b8309b 100644 (file)
@@ -21,8 +21,8 @@ import java.util.Map;
 
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
-import org.argeo.slc.runtime.SlcAgent;
-import org.argeo.slc.runtime.SlcAgentFactory;
+import org.argeo.slc.execution.SlcAgent;
+import org.argeo.slc.execution.SlcAgentFactory;
 
 /** Register agents (typically via OSGi listeners) */
 public class DefaultAgentFactory implements SlcAgentFactory {
diff --git a/runtime/org.argeo.slc.core/src/main/java/org/argeo/slc/core/runtime/SimpleAgentFactory.java b/runtime/org.argeo.slc.core/src/main/java/org/argeo/slc/core/runtime/SimpleAgentFactory.java
deleted file mode 100644 (file)
index dee2077..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed 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.argeo.slc.core.runtime;
-
-import java.util.List;
-
-import org.argeo.slc.runtime.SlcAgent;
-import org.argeo.slc.runtime.SlcAgentFactory;
-
-/** @deprecated old prototype, should be removed */
-public class SimpleAgentFactory implements SlcAgentFactory {
-       private List<SlcAgent> agents;
-
-       public SlcAgent getAgent(String uuid) {
-               for (SlcAgent agent : agents)
-                       if (agent.getAgentUuid().equals(uuid))
-                               return agent;
-               return null;
-       }
-
-       public void pingAll(List<String> activeAgentIds) {
-               // do nothing
-       }
-
-       public void setAgents(List<SlcAgent> agents) {
-               this.agents = agents;
-       }
-
-}
index d034a2afba8af0f79e066e19de012d368603c372..0b091606c7f279e24c0c4b884235e89d442a4278 100644 (file)
@@ -7,6 +7,9 @@ log4j.logger.org.argeo.jackrabbit.remote.ExtendedDispatcherServlet=ERROR
 log4j.logger.org.springframework.web.servlet.PageNotFound=ERROR
 log4j.logger.org.argeo.server.webextender.TomcatDeployer=WARN
 
+#log4j.logger.org.apache=DEBUG
+#log4j.logger.org.springframework.security=DEBUG
+
 log4j.logger.org.apache.coyote=INFO
 log4j.logger.org.apache.catalina.core.ContainerBase=INFO
 log4j.logger.org.apache.directory.server=ERROR
@@ -20,7 +23,8 @@ log4j.appender.console=org.apache.log4j.ConsoleAppender
 log4j.appender.console.layout=org.apache.log4j.PatternLayout
 log4j.appender.console.layout.ConversionPattern=%d{yyyyMMdd HH:mm:ss} %-5p %m [%t] %c%n
 
-# development appender (slow!)
+# development appender
 log4j.appender.development=org.apache.log4j.ConsoleAppender
 log4j.appender.development.layout=org.apache.log4j.PatternLayout
-log4j.appender.development.layout.ConversionPattern=%d{HH:mm:ss} [%16.16t] %5p %m (%F:%L) %c%n
+#log4j.appender.development.layout.ConversionPattern=%d{HH:mm:ss,SSS} [%16.16t] %5p %m (%F:%L) %c%n
+log4j.appender.development.layout.ConversionPattern=%d{HH:mm:ss,SSS} %5p %m [%16.16t] %c%n
index 3302cab8a4fde48a9eb0f2e48e2a57d7822b15b8..4bae3c3f367e663133568c19bcdffb523d3c6918 100644 (file)
@@ -1,5 +1,6 @@
 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
        <modelVersion>4.0.0</modelVersion>
        <parent>
                <groupId>org.argeo.slc</groupId>
@@ -74,8 +75,6 @@
                        <artifactId>org.argeo.slc.support.osgi</artifactId>
                        <version>1.1.12-SNAPSHOT</version>
                </dependency>
-
-               <!-- SLC Agent Modules -->
                <dependency>
                        <groupId>org.argeo.slc</groupId>
                        <artifactId>org.argeo.slc.agent</artifactId>
                        <version>${version.argeo-commons}</version>
                </dependency>
 
-               <!-- Logging -->
-               <dependency>
-                       <groupId>org.argeo.commons.base</groupId>
-                       <artifactId>org.argeo.dep.log4j</artifactId>
-                       <version>${version.argeo-commons}</version>
-                       <type>pom</type>
-               </dependency>
-
                <!-- Spring OSGi -->
                <dependency>
                        <groupId>org.argeo.tp</groupId>
                        <groupId>org.argeo.tp</groupId>
                        <artifactId>org.apache.commons.cli</artifactId>
                </dependency>
+
+               <!-- Logging -->
+               <dependency>
+                       <groupId>org.argeo.commons.base</groupId>
+                       <artifactId>org.argeo.dep.log4j</artifactId>
+                       <version>${version.argeo-commons}</version>
+                       <type>pom</type>
+               </dependency>
        </dependencies>
 </project>
\ No newline at end of file
index 15cfcb2185173b0954d2c861da9be57dd6c4b8b4..c7a7263311ffdabe28eb32ae2610ca7ad9c96d1e 100644 (file)
@@ -20,6 +20,7 @@ import java.io.FileInputStream;
 import java.util.ArrayList;
 import java.util.List;
 import java.util.Properties;
+import java.util.UUID;
 
 import org.apache.commons.cli.CommandLine;
 import org.apache.commons.cli.CommandLineParser;
@@ -52,22 +53,23 @@ public class SlcMain implements Runnable {
 
        // private static String bundlesToInstall = "/usr/share/osgi;in=*.jar";
        private String bundlesToInstall = System.getProperty("user.home")
-                       + "/dev/src/slc/runtime/org.argeo.slc.launcher/target/dependency;in=*.jar,"
+                       + "/dev/src/slc/dep/org.argeo.slc.dep.minimal/target/dependency;in=*.jar,"
                        + System.getProperty("user.home")
                        + "/dev/src/slc/demo/modules;in=*;ex=pom.xml;ex=.svn";
 
-       // private static String bundlesToStart =
-       // "org.springframework.osgi.extender,"
-       // + "org.argeo.node.repofactory.jackrabbit,"
-       // + "org.argeo.node.repo.jackrabbit," + "org.argeo.security.dao.os,"
-       // + "org.argeo.slc.node.jackrabbit," + "org.argeo.slc.agent,"
-       // + "org.argeo.slc.agent.jcr";
        private final List<String> bundlesToStart = new ArrayList<String>();
 
        public SlcMain(String[] args) {
                this.args = args;
+               // bundlesToStart.add("org.springframework.osgi.extender");
+               // bundlesToStart.add("org.argeo.slc.agent");
+
                bundlesToStart.add("org.springframework.osgi.extender");
+               bundlesToStart.add("org.argeo.node.repo.jackrabbit");
+               bundlesToStart.add("org.argeo.security.dao.os");
+               bundlesToStart.add("org.argeo.slc.node.jackrabbit");
                bundlesToStart.add("org.argeo.slc.agent");
+               bundlesToStart.add("org.argeo.slc.agent.jcr");
        }
 
        @SuppressWarnings("unchecked")
@@ -105,9 +107,13 @@ public class SlcMain implements Runnable {
 
                        String executionDir = System.getProperty("user.dir");
                        File slcDir = new File(executionDir, "target/.slc");
-                       File dataDir = new File(slcDir, "data");
+                       File tempDir = new File(System.getProperty("java.io.tmpdir"));
+
+                       File dataDir = new File(tempDir, "slc-data-"
+                                       + UUID.randomUUID().toString());
                        if (!dataDir.exists())
                                dataDir.mkdirs();
+
                        File confDir = new File(slcDir, "conf");
                        if (!confDir.exists())
                                confDir.mkdirs();
@@ -135,7 +141,8 @@ public class SlcMain implements Runnable {
                        System.setProperty(UNIQUE_LAUNCH_MODULE_PROPERTY, module);
                        System.setProperty(UNIQUE_LAUNCH_FLOW_PROPERTY, flow);
                        System.setProperty("log4j.configuration", "file:./log4j.properties");
-
+                       System.setProperty("argeo.node.repo.configuration",
+                                       "osgibundle:repository-memory.xml");
                        // start runtime
                        osgiBoot.startBundles(bundlesToStart);
 
diff --git a/runtime/org.argeo.slc.specs/src/main/java/org/argeo/slc/execution/SlcAgent.java b/runtime/org.argeo.slc.specs/src/main/java/org/argeo/slc/execution/SlcAgent.java
new file mode 100644 (file)
index 0000000..9b8acb7
--- /dev/null
@@ -0,0 +1,39 @@
+/*
+ * Copyright (C) 2007-2012 Argeo GmbH
+ *
+ * Licensed 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.argeo.slc.execution;
+
+import java.util.List;
+
+
+/** A local agent, able to run SLC Execution locally. */
+public interface SlcAgent {
+       /** Agent unique identifier */
+       public String getAgentUuid();
+
+       /** Execute / take part to this process */
+       public void process(ExecutionProcess process);
+
+       /** Kills this process */
+       public void kill(ExecutionProcess process);
+
+       public ExecutionModuleDescriptor getExecutionModuleDescriptor(
+                       String moduleName, String version);
+
+       public List<ExecutionModuleDescriptor> listExecutionModuleDescriptors();
+
+       /** @return true if still alive. */
+       public boolean ping();
+}
diff --git a/runtime/org.argeo.slc.specs/src/main/java/org/argeo/slc/execution/SlcAgentDescriptor.java b/runtime/org.argeo.slc.specs/src/main/java/org/argeo/slc/execution/SlcAgentDescriptor.java
new file mode 100644 (file)
index 0000000..2ab20df
--- /dev/null
@@ -0,0 +1,68 @@
+/*
+ * Copyright (C) 2007-2012 Argeo GmbH
+ *
+ * Licensed 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.argeo.slc.execution;
+
+import java.io.Serializable;
+import java.util.ArrayList;
+import java.util.List;
+
+
+public class SlcAgentDescriptor implements Cloneable, Serializable {
+       private static final long serialVersionUID = 1L;
+       private String uuid;
+       private String host;
+       private List<ExecutionModuleDescriptor> moduleDescriptors = new ArrayList<ExecutionModuleDescriptor>();
+
+       public SlcAgentDescriptor() {
+
+       }
+
+       public SlcAgentDescriptor(SlcAgentDescriptor template) {
+               uuid = template.uuid;
+               host = template.host;
+               moduleDescriptors.addAll(template.moduleDescriptors);
+       }
+
+       public String getUuid() {
+               return uuid;
+       }
+
+       public void setUuid(String uuid) {
+               this.uuid = uuid;
+       }
+
+       public String getHost() {
+               return host;
+       }
+
+       public void setHost(String host) {
+               this.host = host;
+       }
+
+       public List<ExecutionModuleDescriptor> getModuleDescriptors() {
+               return moduleDescriptors;
+       }
+
+       public void setModuleDescriptors(
+                       List<ExecutionModuleDescriptor> modulesDescriptors) {
+               this.moduleDescriptors = modulesDescriptors;
+       }
+
+       @Override
+       public String toString() {
+               return host + " #" + uuid;
+       }
+}
diff --git a/runtime/org.argeo.slc.specs/src/main/java/org/argeo/slc/execution/SlcAgentFactory.java b/runtime/org.argeo.slc.specs/src/main/java/org/argeo/slc/execution/SlcAgentFactory.java
new file mode 100644 (file)
index 0000000..979f41f
--- /dev/null
@@ -0,0 +1,24 @@
+/*
+ * Copyright (C) 2007-2012 Argeo GmbH
+ *
+ * Licensed 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.argeo.slc.execution;
+
+import java.util.List;
+
+public interface SlcAgentFactory {
+       public SlcAgent getAgent(String uuid);
+
+       public void pingAll(List<String> activeAgentIds);
+}
diff --git a/runtime/org.argeo.slc.specs/src/main/java/org/argeo/slc/runtime/SlcAgent.java b/runtime/org.argeo.slc.specs/src/main/java/org/argeo/slc/runtime/SlcAgent.java
deleted file mode 100644 (file)
index 29ca588..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed 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.argeo.slc.runtime;
-
-import java.util.List;
-
-import org.argeo.slc.execution.ExecutionModuleDescriptor;
-import org.argeo.slc.execution.ExecutionProcess;
-
-/** A local agent, able to run SLC Execution locally. */
-public interface SlcAgent {
-       /** Agent unique identifier */
-       public String getAgentUuid();
-
-       /** Execute / take part to this process */
-       public void process(ExecutionProcess process);
-
-       /** Kills this process */
-       public void kill(ExecutionProcess process);
-
-       public ExecutionModuleDescriptor getExecutionModuleDescriptor(
-                       String moduleName, String version);
-
-       public List<ExecutionModuleDescriptor> listExecutionModuleDescriptors();
-
-       /** @return true if still alive. */
-       public boolean ping();
-}
diff --git a/runtime/org.argeo.slc.specs/src/main/java/org/argeo/slc/runtime/SlcAgentDescriptor.java b/runtime/org.argeo.slc.specs/src/main/java/org/argeo/slc/runtime/SlcAgentDescriptor.java
deleted file mode 100644 (file)
index a6732cf..0000000
+++ /dev/null
@@ -1,69 +0,0 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed 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.argeo.slc.runtime;
-
-import java.io.Serializable;
-import java.util.ArrayList;
-import java.util.List;
-
-import org.argeo.slc.execution.ExecutionModuleDescriptor;
-
-public class SlcAgentDescriptor implements Cloneable, Serializable {
-       private static final long serialVersionUID = 1L;
-       private String uuid;
-       private String host;
-       private List<ExecutionModuleDescriptor> moduleDescriptors = new ArrayList<ExecutionModuleDescriptor>();
-
-       public SlcAgentDescriptor() {
-
-       }
-
-       public SlcAgentDescriptor(SlcAgentDescriptor template) {
-               uuid = template.uuid;
-               host = template.host;
-               moduleDescriptors.addAll(template.moduleDescriptors);
-       }
-
-       public String getUuid() {
-               return uuid;
-       }
-
-       public void setUuid(String uuid) {
-               this.uuid = uuid;
-       }
-
-       public String getHost() {
-               return host;
-       }
-
-       public void setHost(String host) {
-               this.host = host;
-       }
-
-       public List<ExecutionModuleDescriptor> getModuleDescriptors() {
-               return moduleDescriptors;
-       }
-
-       public void setModuleDescriptors(
-                       List<ExecutionModuleDescriptor> modulesDescriptors) {
-               this.moduleDescriptors = modulesDescriptors;
-       }
-
-       @Override
-       public String toString() {
-               return host + " #" + uuid;
-       }
-}
diff --git a/runtime/org.argeo.slc.specs/src/main/java/org/argeo/slc/runtime/SlcAgentFactory.java b/runtime/org.argeo.slc.specs/src/main/java/org/argeo/slc/runtime/SlcAgentFactory.java
deleted file mode 100644 (file)
index 34e0171..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-/*
- * Copyright (C) 2007-2012 Argeo GmbH
- *
- * Licensed 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.argeo.slc.runtime;
-
-import java.util.List;
-
-public interface SlcAgentFactory {
-       public SlcAgent getAgent(String uuid);
-
-       public void pingAll(List<String> activeAgentIds);
-}