fixed puvlisher APIs
This commit is contained in:
parent
17524f42bb
commit
373a25afa5
|
@ -160,7 +160,7 @@ public abstract class GCoreResourceMapper<GR extends org.gcube.common.resources.
|
||||||
} catch (AvailableInAnotherContextException e) {
|
} catch (AvailableInAnotherContextException 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.addResourceToCurrentContext(r);
|
resourceRegistryPublisher.addResourceToCurrentContext(r, false);
|
||||||
try {
|
try {
|
||||||
Thread.sleep(100);
|
Thread.sleep(100);
|
||||||
} catch (Exception ee) {
|
} catch (Exception ee) {
|
||||||
|
|
|
@ -51,7 +51,7 @@ public class GenericResourceExporter extends GCoreResourceMapper<GenericResource
|
||||||
} catch(NotFoundException e) {
|
} catch(NotFoundException e) {
|
||||||
readFromIS = false;
|
readFromIS = false;
|
||||||
} catch(AvailableInAnotherContextException e) {
|
} catch(AvailableInAnotherContextException e) {
|
||||||
resourceRegistryPublisher.addResourceToCurrentContext(Configuration.NAME, uuid);
|
resourceRegistryPublisher.addResourceToCurrentContext(Configuration.NAME, uuid, false);
|
||||||
Thread.sleep(100);
|
Thread.sleep(100);
|
||||||
readFromIS = true;
|
readFromIS = true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -83,7 +83,7 @@ public class ServiceEndpointExporter extends GCoreResourceMapper<ServiceEndpoint
|
||||||
} catch(NotFoundException e) {
|
} catch(NotFoundException e) {
|
||||||
readFromIS = false;
|
readFromIS = false;
|
||||||
} catch(AvailableInAnotherContextException e) {
|
} catch(AvailableInAnotherContextException e) {
|
||||||
resourceRegistryPublisher.addResourceToCurrentContext(EService.NAME, uuid);
|
resourceRegistryPublisher.addResourceToCurrentContext(EService.NAME, uuid, false);
|
||||||
Thread.sleep(100);
|
Thread.sleep(100);
|
||||||
readFromIS = true;
|
readFromIS = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue