Refs #11949: Port is-exporter-se-plugin to resource-regsitry v2 apis
Task-Url: https://support.d4science.org/issues/11949 git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/is-exporter-se-plugin@169158 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
d5798bc71e
commit
51a35ab03a
|
@ -2,7 +2,7 @@
|
|||
<!DOCTYPE xml>
|
||||
<ReleaseNotes>
|
||||
<Changeset component="org.gcube.information-system.is-exporter-se-plugin.1-3-0" date="${buildDate}">
|
||||
<Change></Change>
|
||||
<Change>Using resource-regsitry v2 apis #11949</Change>
|
||||
</Changeset>
|
||||
<Changeset component="org.gcube.information-system.is-exporter-se-plugin.1-2-0" date="2017-12-20">
|
||||
<Change>Creating uber-jar instead of jar-with-dependencies and using new make-servicearchive directive #10159</Change>
|
||||
|
|
|
@ -137,7 +137,7 @@ public abstract class GCoreResourceMapper<GR extends org.gcube.common.resources.
|
|||
} catch (ResourceAvailableInAnotherContextException e) {
|
||||
// This code should never be reached because this should be fixed in
|
||||
// map function
|
||||
resourceRegistryPublisher.addResourceToContext(uuid);
|
||||
resourceRegistryPublisher.addResourceToCurrentContext(r);
|
||||
try {
|
||||
Thread.sleep(100);
|
||||
} catch (Exception ee) {
|
||||
|
|
|
@ -49,7 +49,7 @@ public class GenericResourceExporter extends GCoreResourceMapper<GenericResource
|
|||
}catch (ResourceNotFoundException e) {
|
||||
readFromIS = false;
|
||||
} catch (ResourceAvailableInAnotherContextException e) {
|
||||
resourceRegistryPublisher.addResourceToContext(uuid);
|
||||
resourceRegistryPublisher.addResourceToCurrentContext(Configuration.NAME, uuid);
|
||||
Thread.sleep(100);
|
||||
readFromIS = true;
|
||||
}
|
||||
|
|
|
@ -92,7 +92,7 @@ public class ServiceEndpointExporter extends GCoreResourceMapper<ServiceEndpoint
|
|||
}catch (ResourceNotFoundException e) {
|
||||
readFromIS = false;
|
||||
}catch (ResourceAvailableInAnotherContextException e) {
|
||||
resourceRegistryPublisher.addResourceToContext(uuid);
|
||||
resourceRegistryPublisher.addResourceToCurrentContext(EService.NAME, uuid);
|
||||
Thread.sleep(100);
|
||||
readFromIS = true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue