--- /dev/null
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<launchConfiguration type="org.eclipse.m2e.Maven2LaunchConfigurationType">\r
+<booleanAttribute key="M2_DEBUG_OUTPUT" value="false"/>\r
+<stringAttribute key="M2_GOALS" value="deploy:exec"/>\r
+<booleanAttribute key="M2_NON_RECURSIVE" value="false"/>\r
+<booleanAttribute key="M2_OFFLINE" value="true"/>\r
+<stringAttribute key="M2_PROFILES" value=""/>\r
+<listAttribute key="M2_PROPERTIES"/>\r
+<stringAttribute key="M2_RUNTIME" value="EMBEDDED"/>\r
+<booleanAttribute key="M2_SKIP_TESTS" value="false"/>\r
+<intAttribute key="M2_THREADS" value="1"/>\r
+<booleanAttribute key="M2_UPDATE_SNAPSHOTS" value="false"/>\r
+<stringAttribute key="M2_USER_SETTINGS" value=""/>\r
+<booleanAttribute key="M2_WORKSPACE_RESOLUTION" value="false"/>\r
+<listAttribute key="org.eclipse.debug.ui.favoriteGroups">\r
+<listEntry value="org.eclipse.debug.ui.launchGroup.run"/>\r
+</listAttribute>\r
+<stringAttribute key="org.eclipse.jdt.launching.WORKING_DIRECTORY" value="${workspace_loc}/-product"/>\r
+</launchConfiguration>\r
\r
<build>\r
<plugins>\r
- <plugin>\r
- <groupId>org.codehaus.mojo</groupId>\r
- <artifactId>exec-maven-plugin</artifactId>\r
- <version>1.5.0</version>\r
- <executions>\r
- <execution>\r
- <id>remote-deploy</id>\r
- <phase>deploy</phase>\r
- <goals>\r
- <goal>exec</goal>\r
- </goals>\r
- <configuration>\r
- <workingDirectory>${project.build.directory}</workingDirectory>\r
- <executable>winscp.com</executable>\r
- <arguments>\r
- <argument>/command</argument>\r
- <argument>"open ${remote.address} -hostkey=""${remote.hostkey}"""</argument>\r
- <argument>"lcd ${local.location}"</argument>\r
- <argument>"cd ${remote.location}"</argument>\r
- <argument>"synchronize remote -filemask=*.jar|*/"</argument>\r
- <argument>"exit"</argument>\r
- </arguments>\r
- </configuration>\r
- </execution>\r
- </executions>\r
- </plugin>\r
<plugin>\r
<groupId>org.eclipse.tycho</groupId>\r
<artifactId>tycho-packaging-plugin</artifactId>\r
-/target/\r
+\Q/target/\E.*\r
</resources>\r
</configuration>\r
</execution>\r
+ <execution>\r
+ <id>copy-resources-1-lnx</id>\r
+ <phase>install</phase>\r
+ <goals>\r
+ <goal>copy-resources</goal>\r
+ </goals>\r
+ <configuration>\r
+ <outputDirectory>${project.build.directory}/products/MediaCube/linux/gtk/x86_64/configuration</outputDirectory>\r
+ <resources>\r
+ <resource>\r
+ <directory>${basedir}/../-configuration</directory>\r
+ <includes>\r
+ <include>log4j2.xml</include>\r
+ <include>scheduledjobs.json</include>\r
+ </includes>\r
+ </resource>\r
+ </resources>\r
+ </configuration>\r
+ </execution>\r
<execution>\r
<id>copy-resources-2</id>\r
<phase>install</phase>\r
</resources>\r
</configuration>\r
</execution>\r
+ <execution>\r
+ <id>copy-resources-2-lnx</id>\r
+ <phase>install</phase>\r
+ <goals>\r
+ <goal>copy-resources</goal>\r
+ </goals>\r
+ <configuration>\r
+ <outputDirectory>${project.build.directory}/products/MediaCube/linux/gtk/x86_64/configuration/executors</outputDirectory>\r
+ <resources>\r
+ <resource>\r
+ <directory>${basedir}/../user.jobengine.executors/config</directory>\r
+ </resource>\r
+ </resources>\r
+ </configuration>\r
+ </execution>\r
<execution>\r
<id>copy-resources-3</id>\r
<phase>install</phase>\r
</resources>\r
</configuration>\r
</execution>\r
+ <execution>\r
+ <id>copy-resources-3-lnx</id>\r
+ <phase>install</phase>\r
+ <goals>\r
+ <goal>copy-resources</goal>\r
+ </goals>\r
+ <configuration>\r
+ <outputDirectory>${project.build.directory}/products/MediaCube/linux/gtk/x86_64/configuration/executors</outputDirectory>\r
+ <resources>\r
+ <resource>\r
+ <directory>${basedir}/../user.jobengine.executors/bin/user/jobengine/server/steps</directory>\r
+ </resource>\r
+ </resources>\r
+ </configuration>\r
+ </execution>\r
<execution>\r
<id>copy-resources-4</id>\r
<phase>install</phase>\r
</resources>\r
</configuration>\r
</execution>\r
+ <execution>\r
+ <id>copy-resources-4-lnx</id>\r
+ <phase>install</phase>\r
+ <goals>\r
+ <goal>copy-resources</goal>\r
+ </goals>\r
+ <configuration>\r
+ <outputDirectory>${project.build.directory}/products/MediaCube/linux/gtk/x86_64/configuration/templates</outputDirectory>\r
+ <resources>\r
+ <resource>\r
+ <directory>${basedir}/../-configuration/jobtemplates</directory>\r
+ </resource>\r
+ </resources>\r
+ </configuration>\r
+ </execution>\r
<execution>\r
<id>copy-resources-5</id>\r
<phase>install</phase>\r
</resources>\r
</configuration>\r
</execution>\r
+ <execution>\r
+ <id>copy-resources-5-lnx</id>\r
+ <phase>install</phase>\r
+ <goals>\r
+ <goal>copy-resources</goal>\r
+ </goals>\r
+ <configuration>\r
+ <outputDirectory>${project.build.directory}/products/MediaCube/linux/gtk/x86_64/configuration/jetty/etc</outputDirectory>\r
+ <resources>\r
+ <resource>\r
+ <directory>${basedir}/../-configuration/jetty/etc</directory>\r
+ </resource>\r
+ </resources>\r
+ </configuration>\r
+ </execution>\r
</executions>\r
</plugin>\r
<plugin>\r
<goal>exec</goal>\r
</goals>\r
<configuration>\r
- <workingDirectory>${project.build.directory}/products/MediaCube/win32/win32/x86_64/</workingDirectory>\r
- <executable>WinSCP.com</executable>\r
+ <workingDirectory>${project.build.directory}</workingDirectory>\r
+ <executable>winscp.com</executable>\r
<arguments>\r
<argument>/command</argument>\r
<argument>"open ${remote.address} -hostkey=""${remote.hostkey}"""</argument>\r
+ <argument>"lcd ${local.location}"</argument>\r
+ <argument>"cd ${remote.location}"</argument>\r
+ <argument>"synchronize remote"</argument>\r
+ <argument>"call chmod +x mediacube"</argument>\r
<argument>"exit"</argument>\r
</arguments>\r
</configuration>\r
</plugins>\r
</build>\r
<properties>\r
- <remote.address>10.10.1.26</remote.address>\r
+ <remote.address>scp://root:password@10.10.1.26</remote.address>\r
<remote.hostkey>ssh-ed25519 256 ea:ab:67:70:79:63:2f:6a:34:81:48:e2:b9:dd:ca:d4</remote.hostkey>\r
- </properties> \r
+ <local.location>${project.build.directory}/products/MediaCube/linux/gtk/x86_64</local.location>\r
+ <remote.location>/opt/mediacube</remote.location>\r
+ </properties>\r
</project> \r
-/target/\r
+\Q/target/\E.*\r
-/target/\r
+\Q/target/\E.*\r
-package user.jobengine.server.steps;\r
+package obsolate;\r
\r
import org.apache.logging.log4j.LogManager;\r
import org.apache.logging.log4j.Logger;\r
import user.commons.remotestore.ProgressEvent;\r
import user.jobengine.server.IJobEngine;\r
import user.jobengine.server.IJobRuntime;\r
+import user.jobengine.server.steps.JobStep;\r
+import user.jobengine.server.steps.StepEntry;\r
\r
public class NexioDataMinerStep extends JobStep {\r
private static final Logger logger = LogManager.getLogger();\r
-package user.jobengine.server.steps;\r
+package obsolate;\r
\r
import java.sql.Timestamp;\r
import java.util.Date;\r
import user.jobengine.server.IJobEngine;\r
import user.jobengine.server.IJobRuntime;\r
import user.jobengine.server.JobEngineException;\r
+import user.jobengine.server.steps.JobStep;\r
+import user.jobengine.server.steps.StepEntry;\r
\r
public class SetArchivedStep extends JobStep {\r
private static final Logger logger = LogManager.getLogger();\r
-package user.jobengine.server.steps;\r
+package obsolate;\r
\r
import org.apache.logging.log4j.LogManager;\r
import org.apache.logging.log4j.Logger;\r
import user.jobengine.db.Store;\r
import user.jobengine.server.IJobEngine;\r
import user.jobengine.server.IJobRuntime;\r
+import user.jobengine.server.steps.JobStep;\r
+import user.jobengine.server.steps.StepEntry;\r
\r
public class TSMBackupStep_orig extends JobStep {\r
// @StepEntry\r
-package user.jobengine.server.steps;\r
+package obsolate;\r
\r
import user.jobengine.server.IJobEngine;\r
import user.jobengine.server.IJobRuntime;\r
+import user.jobengine.server.steps.JobStep;\r
+import user.jobengine.server.steps.StepEntry;\r
\r
public class TemplateStep extends JobStep {\r
\r
-package user.jobengine.server.steps;\r
+package obsolate;\r
\r
import java.util.ArrayList;\r
import java.util.Date;\r
import user.jobengine.server.IJobEngine;\r
import user.jobengine.server.IJobRuntime;\r
import user.jobengine.server.JobEngineException;\r
+import user.jobengine.server.steps.JobStep;\r
+import user.jobengine.server.steps.StepEntry;\r
\r
public class TranscodeStep extends JobStep {\r
private static final Logger logger = LogManager.getLogger();\r
-/target/\r
+\Q/target/\E.*\r
-/target/\r
/user/jobengine/db/.*\r
+\Q/target/\E.*\r
-/target/\r
+\Q/target/\E.*\r
-/target/\r
+\Q/target/\E.*\r
<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
<launchConfiguration type="org.eclipse.m2e.Maven2LaunchConfigurationType">\r
-<booleanAttribute key="M2_DEBUG_OUTPUT" value="false"/>\r
+<booleanAttribute key="M2_DEBUG_OUTPUT" value="true"/>\r
<stringAttribute key="M2_GOALS" value="clean deploy"/>\r
<booleanAttribute key="M2_NON_RECURSIVE" value="false"/>\r
<booleanAttribute key="M2_OFFLINE" value="true"/>\r
</plugin>\r
</plugins>\r
</build>\r
- <properties>\r
- <remote.address>scp://root:password@10.10.1.26</remote.address>\r
- <remote.hostkey>ssh-ed25519 256 ea:ab:67:70:79:63:2f:6a:34:81:48:e2:b9:dd:ca:d4</remote.hostkey>\r
- <local.location>${project.build.directory}</local.location>\r
- <remote.location>/opt/mediacube/plugins</remote.location>\r
- </properties>\r
</project>
\ No newline at end of file
import org.eclipse.jetty.websocket.api.Session;
import org.eclipse.jetty.websocket.servlet.WebSocketServlet;
import org.eclipse.jetty.websocket.servlet.WebSocketServletFactory;
-import org.osgi.framework.BundleContext;
-import org.osgi.framework.FrameworkUtil;
-import org.osgi.framework.ServiceRegistration;
import com.ibm.nosql.json.api.BasicDBObject;
private static final String CREATE = "create";
private static final Logger logger = LogManager.getLogger();
private static NexioWSServlet instance;
- private Set<Session> sessions = new ConcurrentHashSet<>();
- //private NexioAPIServletMessagePool messagePool;
- private NexioClipEventDispatcher dispatcher = null;
-
+
public static NexioWSServlet getInstance() {
return instance;
}
+ private Set<Session> sessions = new ConcurrentHashSet<>();
+
+ //private NexioAPIServletMessagePool messagePool;
+ private NexioClipEventDispatcher dispatcher = null;
+
public NexioWSServlet() {
logger.info("NexioAPIServlet created");
// messagePool = new NexioAPIServletMessagePool(3, sessions);
this.dispatcher = new NexioClipEventDispatcher();
this.dispatcher.setNexioChangeListener(this);
logger.info("NexioWSServlet has been initialized.");
-/*
- BundleContext bundleContext = FrameworkUtil.getBundle(this.getClass()).getBundleContext();
- if (bundleContext != null) {
- ServiceRegistration<INexioChangeListener> registerService = bundleContext
- .registerService(INexioChangeListener.class, this, null);
-
- logger.info("{} successfully registered", INexioChangeListener.class.getSimpleName());
- }
-*/
+ /*
+ BundleContext bundleContext = FrameworkUtil.getBundle(this.getClass()).getBundleContext();
+ if (bundleContext != null) {
+ ServiceRegistration<INexioChangeListener> registerService = bundleContext
+ .registerService(INexioChangeListener.class, this, null);
+
+ logger.info("{} successfully registered", INexioChangeListener.class.getSimpleName());
+ }
+ */
}
- @Override
- public void destroy() {
- super.destroy();
- // messagePool.shutdownNow();
+ public void addSession(Session session) {
+ sessions.add(session);
}
@Override
factory.register(NexioWSSocket.class);
}
- public void addSession(Session session) {
- sessions.add(session);
- }
-
- public void removeSession(Session session) {
- if (sessions.contains(session))
- sessions.remove(session);
+ @Override
+ public void destroy() {
+ super.destroy();
+ // messagePool.shutdownNow();
}
@Override
try {
NexioWSSocket.asyncSendResponse(session, message);
} catch (Exception e) {
- // TODO remove closed
+ // TODO remove closed
logger.error(e);
}
}
}
+ public void removeSession(Session session) {
+ if (sessions.contains(session))
+ sessions.remove(session);
+ }
+
}
-/target/\r
+\Q/target/\E.*\r