Trying to fix handlers
This commit is contained in:
parent
07fe3ed96e
commit
7077f0ffb8
|
@ -105,9 +105,6 @@ public class EServiceHandler extends ApplicationLifecycleHandler {
|
||||||
Set<UUID> startContextsUUID = new HashSet<>();
|
Set<UUID> startContextsUUID = new HashSet<>();
|
||||||
ContextCache contextCache = ContextCache.getInstance();
|
ContextCache contextCache = ContextCache.getInstance();
|
||||||
for (String token : startTokens) {
|
for (String token : startTokens) {
|
||||||
String contextFullName = ContextUtility.getContextName(token);
|
|
||||||
UUID contextUUID = contextCache.getUUIDByFullName(contextFullName);
|
|
||||||
startContextsUUID.add(contextUUID);
|
|
||||||
try {
|
try {
|
||||||
if (create) {
|
if (create) {
|
||||||
ContextUtility.setContextFromToken(token);
|
ContextUtility.setContextFromToken(token);
|
||||||
|
@ -124,6 +121,9 @@ public class EServiceHandler extends ApplicationLifecycleHandler {
|
||||||
logger.error("Unable to add {} with UUID {} to current context ({})", EService.NAME, uuid,
|
logger.error("Unable to add {} with UUID {} to current context ({})", EService.NAME, uuid,
|
||||||
ContextUtility.getContextName(token), e);
|
ContextUtility.getContextName(token), e);
|
||||||
}
|
}
|
||||||
|
String contextFullName = ContextUtility.getContextName(token);
|
||||||
|
UUID contextUUID = contextCache.getUUIDByFullName(contextFullName);
|
||||||
|
startContextsUUID.add(contextUUID);
|
||||||
}
|
}
|
||||||
|
|
||||||
Set<UUID> resourceContextsUUID = eServiceManager.getContextsUUID().keySet();
|
Set<UUID> resourceContextsUUID = eServiceManager.getContextsUUID().keySet();
|
||||||
|
|
|
@ -69,6 +69,7 @@ public class HostingNodeHandler extends ContainerHandler {
|
||||||
|
|
||||||
public HostingNodeHandler() {
|
public HostingNodeHandler() {
|
||||||
super();
|
super();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -105,9 +106,6 @@ public class HostingNodeHandler extends ContainerHandler {
|
||||||
Set<UUID> startContextsUUID = new HashSet<>();
|
Set<UUID> startContextsUUID = new HashSet<>();
|
||||||
ContextCache contextCache = ContextCache.getInstance();
|
ContextCache contextCache = ContextCache.getInstance();
|
||||||
for (String token : startTokens) {
|
for (String token : startTokens) {
|
||||||
String contextFullName = ContextUtility.getContextName(token);
|
|
||||||
UUID contextUUID = contextCache.getUUIDByFullName(contextFullName);
|
|
||||||
startContextsUUID.add(contextUUID);
|
|
||||||
try {
|
try {
|
||||||
if (create) {
|
if (create) {
|
||||||
ContextUtility.setContextFromToken(token);
|
ContextUtility.setContextFromToken(token);
|
||||||
|
@ -126,6 +124,9 @@ public class HostingNodeHandler extends ContainerHandler {
|
||||||
logger.error("Unable to add {} with UUID {} to current context ({})", HostingNode.NAME, uuid,
|
logger.error("Unable to add {} with UUID {} to current context ({})", HostingNode.NAME, uuid,
|
||||||
ContextUtility.getContextName(token), e);
|
ContextUtility.getContextName(token), e);
|
||||||
}
|
}
|
||||||
|
String contextFullName = ContextUtility.getContextName(token);
|
||||||
|
UUID contextUUID = contextCache.getUUIDByFullName(contextFullName);
|
||||||
|
startContextsUUID.add(contextUUID);
|
||||||
}
|
}
|
||||||
|
|
||||||
Set<UUID> resourceContextsUUID = hostingNodeManager.getContextsUUID().keySet();
|
Set<UUID> resourceContextsUUID = hostingNodeManager.getContextsUUID().keySet();
|
||||||
|
|
Loading…
Reference in New Issue