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:
Luca Frosini 2018-06-13 14:44:54 +00:00
parent d5798bc71e
commit 51a35ab03a
4 changed files with 4 additions and 4 deletions

View File

@ -2,7 +2,7 @@
<!DOCTYPE xml> <!DOCTYPE xml>
<ReleaseNotes> <ReleaseNotes>
<Changeset component="org.gcube.information-system.is-exporter-se-plugin.1-3-0" date="${buildDate}"> <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>
<Changeset component="org.gcube.information-system.is-exporter-se-plugin.1-2-0" date="2017-12-20"> <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> <Change>Creating uber-jar instead of jar-with-dependencies and using new make-servicearchive directive #10159</Change>

View File

@ -137,7 +137,7 @@ public abstract class GCoreResourceMapper<GR extends org.gcube.common.resources.
} catch (ResourceAvailableInAnotherContextException e) { } catch (ResourceAvailableInAnotherContextException e) {
// This code should never be reached because this should be fixed in // This code should never be reached because this should be fixed in
// map function // map function
resourceRegistryPublisher.addResourceToContext(uuid); resourceRegistryPublisher.addResourceToCurrentContext(r);
try { try {
Thread.sleep(100); Thread.sleep(100);
} catch (Exception ee) { } catch (Exception ee) {

View File

@ -49,7 +49,7 @@ public class GenericResourceExporter extends GCoreResourceMapper<GenericResource
}catch (ResourceNotFoundException e) { }catch (ResourceNotFoundException e) {
readFromIS = false; readFromIS = false;
} catch (ResourceAvailableInAnotherContextException e) { } catch (ResourceAvailableInAnotherContextException e) {
resourceRegistryPublisher.addResourceToContext(uuid); resourceRegistryPublisher.addResourceToCurrentContext(Configuration.NAME, uuid);
Thread.sleep(100); Thread.sleep(100);
readFromIS = true; readFromIS = true;
} }

View File

@ -92,7 +92,7 @@ public class ServiceEndpointExporter extends GCoreResourceMapper<ServiceEndpoint
}catch (ResourceNotFoundException e) { }catch (ResourceNotFoundException e) {
readFromIS = false; readFromIS = false;
}catch (ResourceAvailableInAnotherContextException e) { }catch (ResourceAvailableInAnotherContextException e) {
resourceRegistryPublisher.addResourceToContext(uuid); resourceRegistryPublisher.addResourceToCurrentContext(EService.NAME, uuid);
Thread.sleep(100); Thread.sleep(100);
readFromIS = true; readFromIS = true;
} }