refs #2032: Create IS Sweeper as SmartExecutor Plugin
https://support.d4science.org/issues/2032 git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/is-sweeper-se-plugin@122414 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
496a092007
commit
d383924669
11
pom.xml
11
pom.xml
|
@ -39,6 +39,11 @@
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.gcube.resources</groupId>
|
||||||
|
<artifactId>registry-publisher</artifactId>
|
||||||
|
<scope>provided</scope>
|
||||||
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.gcube.vremanagement</groupId>
|
<groupId>org.gcube.vremanagement</groupId>
|
||||||
<artifactId>smart-executor-api</artifactId>
|
<artifactId>smart-executor-api</artifactId>
|
||||||
|
@ -51,11 +56,6 @@
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<!-- Test dependencies -->
|
<!-- Test dependencies -->
|
||||||
<dependency>
|
|
||||||
<groupId>org.gcube.resources</groupId>
|
|
||||||
<artifactId>registry-publisher</artifactId>
|
|
||||||
<scope>test</scope>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.gcube.core</groupId>
|
<groupId>org.gcube.core</groupId>
|
||||||
<artifactId>common-encryption</artifactId>
|
<artifactId>common-encryption</artifactId>
|
||||||
|
@ -84,6 +84,7 @@
|
||||||
<version>1.0.13</version>
|
<version>1.0.13</version>
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package org.gcube.vremanagement.smartexecutor.sweeper;
|
package org.gcube.informationsystem.sweeper;
|
||||||
|
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
|
@ -9,14 +9,14 @@ import org.slf4j.LoggerFactory;
|
||||||
/**
|
/**
|
||||||
* @author Luca Frosini (ISTI - CNR) http://www.lucafrosini.com/
|
* @author Luca Frosini (ISTI - CNR) http://www.lucafrosini.com/
|
||||||
*/
|
*/
|
||||||
public class ScheduledTaskSweeperPlugin extends Plugin<ScheduledTaskSweeperPluginDeclaration> {
|
public class ISSweeperPlugin extends Plugin<ISSweeperPluginDeclaration> {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Logger
|
* Logger
|
||||||
*/
|
*/
|
||||||
private static Logger logger = LoggerFactory.getLogger(ScheduledTaskSweeperPlugin.class);
|
private static Logger logger = LoggerFactory.getLogger(ISSweeperPlugin.class);
|
||||||
|
|
||||||
public ScheduledTaskSweeperPlugin(ScheduledTaskSweeperPluginDeclaration pluginDeclaration) {
|
public ISSweeperPlugin(ISSweeperPluginDeclaration pluginDeclaration) {
|
||||||
super(pluginDeclaration);
|
super(pluginDeclaration);
|
||||||
logger.debug("contructor");
|
logger.debug("contructor");
|
||||||
}
|
}
|
||||||
|
@ -24,9 +24,9 @@ public class ScheduledTaskSweeperPlugin extends Plugin<ScheduledTaskSweeperPlugi
|
||||||
/**{@inheritDoc}*/
|
/**{@inheritDoc}*/
|
||||||
@Override
|
@Override
|
||||||
public void launch(Map<String, Object> inputs) throws Exception {
|
public void launch(Map<String, Object> inputs) throws Exception {
|
||||||
logger.debug("Launching {} execution", ScheduledTaskSweeperPluginDeclaration.NAME);
|
logger.debug("Launching {} execution", ISSweeperPluginDeclaration.NAME);
|
||||||
// No inputs needed
|
// No inputs needed
|
||||||
logger.debug("{} execution finished", ScheduledTaskSweeperPluginDeclaration.NAME);
|
logger.debug("{} execution finished", ISSweeperPluginDeclaration.NAME);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**{@inheritDoc}*/
|
/**{@inheritDoc}*/
|
|
@ -1,7 +1,7 @@
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
package org.gcube.vremanagement.smartexecutor.sweeper;
|
package org.gcube.informationsystem.sweeper;
|
||||||
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
@ -17,12 +17,12 @@ import org.slf4j.LoggerFactory;
|
||||||
* SmartExecutor Persistence and with IS t find orphaned Running Instances
|
* SmartExecutor Persistence and with IS t find orphaned Running Instances
|
||||||
* @author Luca Frosini (ISTI - CNR) http://www.lucafrosini.com/
|
* @author Luca Frosini (ISTI - CNR) http://www.lucafrosini.com/
|
||||||
*/
|
*/
|
||||||
public class ScheduledTaskSweeperPluginDeclaration implements PluginDeclaration {
|
public class ISSweeperPluginDeclaration implements PluginDeclaration {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Logger
|
* Logger
|
||||||
*/
|
*/
|
||||||
private static Logger logger = LoggerFactory.getLogger(ScheduledTaskSweeperPlugin.class);
|
private static Logger logger = LoggerFactory.getLogger(ISSweeperPlugin.class);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Plugin name used by the Executor to retrieve this class
|
* Plugin name used by the Executor to retrieve this class
|
||||||
|
@ -38,7 +38,7 @@ public class ScheduledTaskSweeperPluginDeclaration implements PluginDeclaration
|
||||||
/**{@inheritDoc}*/
|
/**{@inheritDoc}*/
|
||||||
@Override
|
@Override
|
||||||
public void init() {
|
public void init() {
|
||||||
logger.debug(String.format("%s initialized", ScheduledTaskSweeperPlugin.class.getSimpleName()));
|
logger.debug(String.format("%s initialized", ISSweeperPlugin.class.getSimpleName()));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**{@inheritDoc}*/
|
/**{@inheritDoc}*/
|
||||||
|
@ -70,7 +70,7 @@ public class ScheduledTaskSweeperPluginDeclaration implements PluginDeclaration
|
||||||
/**{@inheritDoc}*/
|
/**{@inheritDoc}*/
|
||||||
@Override
|
@Override
|
||||||
public Class<? extends Plugin<? extends PluginDeclaration>> getPluginImplementation() {
|
public Class<? extends Plugin<? extends PluginDeclaration>> getPluginImplementation() {
|
||||||
return ScheduledTaskSweeperPlugin.class;
|
return ISSweeperPlugin.class;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue