git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/branches/data-access/species-products-discovery/3.0@165667 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
73a87bbf48
commit
0c4ce7260a
|
@ -48,7 +48,7 @@ public class Executor {
|
||||||
|
|
||||||
private static Logger logger = LoggerFactory.getLogger(Executor.class);
|
private static Logger logger = LoggerFactory.getLogger(Executor.class);
|
||||||
|
|
||||||
|
private static final String ID_SEPARATOR = "_";
|
||||||
|
|
||||||
AppInitializer initializer = (AppInitializer)ApplicationManagerProvider.get(AppInitializer.class);
|
AppInitializer initializer = (AppInitializer)ApplicationManagerProvider.get(AppInitializer.class);
|
||||||
|
|
||||||
|
@ -216,7 +216,7 @@ public class Executor {
|
||||||
|
|
||||||
private static String extractNode(String key) throws IdNotValidException{
|
private static String extractNode(String key) throws IdNotValidException{
|
||||||
logger.trace("id arrived is {}", key );
|
logger.trace("id arrived is {}", key );
|
||||||
String[] splitted = key.split("_");
|
String[] splitted = key.split(ID_SEPARATOR);
|
||||||
if (splitted.length==2)
|
if (splitted.length==2)
|
||||||
return splitted[0];
|
return splitted[0];
|
||||||
else throw new IdNotValidException();
|
else throw new IdNotValidException();
|
||||||
|
@ -224,7 +224,7 @@ public class Executor {
|
||||||
|
|
||||||
private static String extractId(String key) throws IdNotValidException{
|
private static String extractId(String key) throws IdNotValidException{
|
||||||
logger.trace("id arrived is {}", key );
|
logger.trace("id arrived is {}", key );
|
||||||
String[] splitted = key.split("_");
|
String[] splitted = key.split(ID_SEPARATOR);
|
||||||
if (splitted.length==2)
|
if (splitted.length==2)
|
||||||
return splitted[1];
|
return splitted[1];
|
||||||
else throw new IdNotValidException();
|
else throw new IdNotValidException();
|
||||||
|
@ -233,7 +233,7 @@ public class Executor {
|
||||||
private String createKey(String id){
|
private String createKey(String id){
|
||||||
logger.trace("id arrived is {}", id );
|
logger.trace("id arrived is {}", id );
|
||||||
String node = cxt.container().profile(HostingNode.class).id();
|
String node = cxt.container().profile(HostingNode.class).id();
|
||||||
return node+"_"+id;
|
return node+ID_SEPARATOR+id;
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
private Executor remoteJobCall(String riId) throws InvalidIdentifierException{
|
private Executor remoteJobCall(String riId) throws InvalidIdentifierException{
|
||||||
|
|
Reference in New Issue