Refs #11950: Port resource-regsitry-handlers to resource-regsitry v2 apis
Task-Url: https://support.d4science.org/issues/11950 git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/Common/resource-registry-handlers@169159 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
28670a485b
commit
deb12019c7
|
@ -2,7 +2,7 @@
|
|||
<!DOCTYPE xml>
|
||||
<ReleaseNotes>
|
||||
<Changeset component="org.gcube.common.resource-registry-handlers.1-2-0" date="${buildDate}">
|
||||
<Change></Change>
|
||||
<Change>Using resource-regsitry v2 apis #11950</Change>
|
||||
</Changeset>
|
||||
<Changeset component="org.gcube.common.resource-registry-handlers.1-1-0" date="2017-12-20">
|
||||
<Change>Creating uber-jar instead of jar-with-dependencies and using new make-servicearchive directive #10166</Change>
|
||||
|
|
|
@ -385,7 +385,7 @@ public class EServiceManager extends ApplicationLifecycleHandler {
|
|||
|
||||
private void addToContext(ResourceRegistryPublisher resourceRegistryPublisher) throws ResourceRegistryException {
|
||||
HostingNode hostingNode = applicationContext.container().properties().lookup(Constants.HOSTING_NODE_PROPERTY).value(HostingNode.class);
|
||||
resourceRegistryPublisher.addResourceToContext(hostingNode);
|
||||
resourceRegistryPublisher.addResourceToCurrentContext(hostingNode);
|
||||
logger.info("{} successfully added to current context ({})",
|
||||
hostingNode, getCurrentContextName());
|
||||
shareHostingNode(hostingNode);
|
||||
|
@ -393,7 +393,7 @@ public class EServiceManager extends ApplicationLifecycleHandler {
|
|||
|
||||
private void removeFromContext(ResourceRegistryPublisher resourceRegistryPublisher) throws ResourceRegistryException {
|
||||
HostingNode hostingNode = applicationContext.container().properties().lookup(Constants.HOSTING_NODE_PROPERTY).value(HostingNode.class);
|
||||
resourceRegistryPublisher.removeResourceFromContext(hostingNode);
|
||||
resourceRegistryPublisher.removeResourceFromCurrentContext(hostingNode);
|
||||
logger.info("{} successfully removed from current context ({})", hostingNode, getCurrentContextName());
|
||||
shareHostingNode(hostingNode);
|
||||
}
|
||||
|
|
|
@ -347,7 +347,7 @@ public class HostingNodeManager extends ContainerHandler {
|
|||
ResourceRegistryPublisher resourceRegistryPublisher =
|
||||
ResourceRegistryPublisherFactory.create();
|
||||
removed = resourceRegistryPublisher.
|
||||
removeResourceFromContext(hostingNode);
|
||||
removeResourceFromCurrentContext(hostingNode);
|
||||
|
||||
if (removed) {
|
||||
logger.info(
|
||||
|
@ -382,7 +382,7 @@ public class HostingNodeManager extends ContainerHandler {
|
|||
ResourceRegistryPublisher resourceRegistryPublisher = ResourceRegistryPublisherFactory
|
||||
.create();
|
||||
boolean added = resourceRegistryPublisher
|
||||
.addResourceToContext(hostingNode);
|
||||
.addResourceToCurrentContext(hostingNode);
|
||||
|
||||
if (added) {
|
||||
logger.info("{} successfully added to current context ({})",
|
||||
|
|
Loading…
Reference in New Issue