Interface Registry
-
- All Superinterfaces:
ModelViewerProvider
,NameResolution
,ServiceAccess
- All Known Implementing Classes:
RegistryWrapper
public interface Registry extends ServiceAccess
This interface provides components and services initialised and started by the registry framework with access to other services and components. Such a registry is provided in the constructor of a service.- Author:
- Ulrich Kreher
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getClusterName()
Gets the name of the cluster this registry and the using service belong to.AtomicLong
getGlobalSequence(String seqName)
Gets the sequence of the designated name.String
getInstanceName()
Gets the hierarchical instance name of the service using this registry.SerialisablePair<String,String>
getRelease()
Gets the release of the bootstrap registry, that is, the build version and the build date.SecurityManager
getSecurityManager()
Gets the security manager of the system.String
getUniqueNodeName()
Gets the unique name of the node this registry and the using service belong to.boolean
isEarlyService()
Gets whether the service using this registry is an early service and thus uses the local security manager first.boolean
registryActive()
Gets whether the underlying registry is active, that is, it has signalled its start and is not being shut down.-
Methods inherited from interface de.aristaflow.adept2.model.common.ModelViewerProvider
getModelViewerClass
-
Methods inherited from interface de.aristaflow.adept2.base.service.NameResolution
getComponentType, getFormattedSignature, getHierarchicalInstanceName, getNames, getSimpleInstanceName
-
Methods inherited from interface de.aristaflow.adept2.base.service.ServiceAccess
getConfiguredPlugin, getConfiguredPlugin, getConfiguredPlugins, getConfiguredPluginTypes, getInterfaceForComponentType, getModelFactory, getService, getService, getServiceOfType
-
-
-
-
Method Detail
-
getSecurityManager
SecurityManager getSecurityManager()
Gets the security manager of the system. This allows for authenticating users.- Returns:
- The security manager of the system for authenticating users.
-
isEarlyService
boolean isEarlyService()
Gets whether the service using this registry is an early service and thus uses the local security manager first. This means, that the service will have to re-authenticate after the global security manager has been set which in turn means changing the session factory while running.- Returns:
- Whether the service using this registry is an early service and thus uses the local security manager first.
-
registryActive
boolean registryActive()
Gets whether the underlying registry is active, that is, it has signalled its start and is not being shut down.- Returns:
- Whether the underlying registry is active, that is, it has signalled its start and is not being shut down.
-
getClusterName
String getClusterName()
Gets the name of the cluster this registry and the using service belong to. Use this name for identification purpose across clusters.- Returns:
- The name of the cluster this registry and the using service belong to.
-
getUniqueNodeName
String getUniqueNodeName()
Gets the unique name of the node this registry and the using service belong to. Use this name for identification across started platforms.- Returns:
- The unique name of the node this registry and the using service belong to.
-
getRelease
SerialisablePair<String,String> getRelease()
Gets the release of the bootstrap registry, that is, the build version and the build date.- Returns:
- The build version and the build date of the bootstrap registry.
-
getInstanceName
String getInstanceName()
Gets the hierarchical instance name of the service using this registry. Do not use this name for accessing the registry. If you need to do this, you are doing something wrong. Use this name for identification purpose like logging of the service.- Returns:
- The hierarchical instance name of the service using this registry for identification purpose like logging.
-
getGlobalSequence
AtomicLong getGlobalSequence(String seqName)
Gets the sequence of the designated name. This sequence is platform-wide (i. e. bound to the running BPM platform/JVM) and may be shared among several service instances and even service types.- Parameters:
seqName
- The name of the platform-wide sequence. This name is arbitrary but should be shared among the services that share the sequence.- Returns:
- An atomic long representing the designated sequence.
-
-