public class NodeProviderInDb extends java.lang.Object implements NodeProvider, ReadOnlyStatus.IsAware
Node objects which is responsible for persisting and
populating such entities.
Used by Blitz's ome.services.blitz.fire.Ring.| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
uuid
UUID for this cluster node.
|
| Constructor and Description |
|---|
NodeProviderInDb(java.lang.String uuid,
Executor executor) |
| Modifier and Type | Method and Description |
|---|---|
Node |
addManager(java.lang.String managerUuid,
java.lang.String proxyString)
Adds a manager node.
|
int |
closeSessionsForManager(java.lang.String managerUuid)
Assumes that the given manager is no longer available and so will not
attempt to call cache.removeSession() since that requires the session to
be in memory.
|
Node |
getManagerByUuid(java.lang.String managerUuid,
ServiceFactory sf)
Retrieves a given manager node.
|
long |
getManagerIdByUuid(java.lang.String managerUuid,
SqlAction sql)
Retrieves a given manager node ID.
|
java.util.Set<java.lang.String> |
getManagerList(boolean onlyActive) |
boolean |
isReadOnly(ReadOnlyStatus readOnly) |
Principal |
principal()
Retrieves the current active principal.
|
void |
setManagerDown(java.lang.String managerUuid)
Sets a given manager node as down.
|
public final java.lang.String uuid
public NodeProviderInDb(java.lang.String uuid,
Executor executor)
public Principal principal()
NodeProviderprincipal in interface NodeProviderpublic long getManagerIdByUuid(java.lang.String managerUuid,
SqlAction sql)
NodeProvidergetManagerIdByUuid in interface NodeProvidermanagerUuid - manager node UUID to retrievesql - active SQL context which can be used to make queriespublic Node getManagerByUuid(java.lang.String managerUuid, ServiceFactory sf)
NodeProvidergetManagerByUuid in interface NodeProvidermanagerUuid - manager node UUID to retrievesf - current session's service factorypublic java.util.Set<java.lang.String> getManagerList(boolean onlyActive)
getManagerList in interface NodeProviderpublic int closeSessionsForManager(java.lang.String managerUuid)
closeSessionsForManager in interface NodeProvidermanagerUuid - manager node UUID to close sessions forpublic void setManagerDown(java.lang.String managerUuid)
NodeProvidersetManagerDown in interface NodeProvidermanagerUuid - manager node UUID to set as downpublic Node addManager(java.lang.String managerUuid, java.lang.String proxyString)
NodeProvideraddManager in interface NodeProvidermanagerUuid - manager node UUID to addproxyString - manager node proxy connection stringpublic boolean isReadOnly(ReadOnlyStatus readOnly)
isReadOnly in interface ReadOnlyStatus.IsAwarereadOnly - a read-only status, typically the current one
Version: 5.4.10-ice35-b105
Copyright © 2019 The University of Dundee & Open Microscopy Environment. All Rights Reserved.