tested and working

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/admin/resource-sweeper@82031 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Massimiliano Assante 2013-09-26 10:38:59 +00:00
parent 65c81d7fa9
commit f11f5c64c6
1 changed files with 4 additions and 2 deletions

View File

@ -154,9 +154,11 @@ public class Sweeper {
break; break;
case APPLY_GHN_MOVE_TO_UNREACHABLE: case APPLY_GHN_MOVE_TO_UNREACHABLE:
GHNManager ghnManager = new GHNManager(resID); GHNManager ghnManager = new GHNManager(resID);
HostingNode res = (HostingNode)ghnManager.getResource(queryScope); HostingNode res = (HostingNode) ghnManager.getResource(queryScope);
_log.trace("*** Setting HostingNode " + resID + " status to unreachable");
res.profile().description().status("unreachable"); res.profile().description().status("unreachable");
ghnManager.getRegistryPublisher().update(res); HostingNode hn = ghnManager.getRegistryPublisher().update(res);
_log.trace("*** getRegistryPublisher returned " + hn.toString());
break; break;
case APPLY_RI_DELETE: case APPLY_RI_DELETE:
RunningInstanceManager riManager = new RunningInstanceManager(resID); RunningInstanceManager riManager = new RunningInstanceManager(resID);