clean code

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/content-management/storage-manager-trigger@100617 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
roberto.cirillo 2014-10-10 16:01:11 +00:00
parent 7aeb636052
commit 5ba9d3ce48
2 changed files with 7 additions and 7 deletions

View File

@ -19,7 +19,7 @@ public class ValidationUtils {
scope=scopeBean.enclosingScope().toString();
Set<String> scopeSet=new ServiceMapScannerMediator().getScopeKeySet();
for(String scopeItem : scopeSet){
System.out.println("scope scanned: "+scopeItem);
logger.debug("scope scanned: "+scopeItem);
if(scope.equals(scopeItem))
return true;
}
@ -39,9 +39,9 @@ public class ValidationUtils {
Set<String> scopeSet=new ServiceMapScannerMediator().getScopeKeySet();
for(String scopeItem : scopeSet){
//retrieve all Vo scopes
System.out.println("scope scanned: "+scopeItem);
logger.debug("scope scanned: "+scopeItem);
if(scopeItem.contains(scope) && (new ScopeBean(scopeItem).is(Type.VO))){
logger.info("found vo scope: "+scopeItem);
logger.debug("found vo scope: "+scopeItem);
vos.add(scopeItem);
}
}

View File

@ -179,13 +179,13 @@ public class Configuration {
ArrayList<String> hosts= new ArrayList<String>();
for(String currentScope:scopes){
String host=getHosts("DataTransformation", "DataTransformationService", currentScope);
System.out.println("host found: "+host+ " in scope: "+currentScope);
logger.debug("host found: "+host+ " in scope: "+currentScope);
if(host!=null)
hosts.add(host);
}
for(String host : hosts){
System.out.println("DTS host: "+host);
logger.debug("DTS host: "+host);
}
return hosts;
}
@ -212,9 +212,9 @@ public class Configuration {
if(host.contains("//")){
int begin=host.indexOf("//");
host=host.substring(begin+2);
System.out.println("phase#1 "+ host );
logger.debug("phase#1 "+ host );
String [] uris=host.split(":");
System.out.println("phase#2 "+uris[0]);
logger.debug("phase#2 "+uris[0]);
host=uris[0];
}
}