public class ClusterPlatform extends TwoPhasePlatform<JDBCDataSource>
TwoPhasePlatform used for bootstrapping a cluster node. It
allows for changing the URI of the global registry used for changing the
server node in the cluster.initialServiceCls, initialServiceType, TEST_SINGLETONconfMgr| Constructor and Description |
|---|
ClusterPlatform()
Creates a new
ClusterPlatform. |
ClusterPlatform(Configuration conf)
Creates a new
ClusterPlatform. |
ClusterPlatform(Configuration conf,
ConfigurationPropertyProvider provider)
Creates a new
ClusterPlatform. |
ClusterPlatform(ConfigurationPropertyProvider provider)
Creates a new
ClusterPlatform. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getClusterName()
Gets the name of the cluster the node of this platform is part of.
|
protected GlobalRegistry |
globalRegistryChanged(SessionToken session,
java.net.URI globRegUri)
Notifies the bootstrap registry that the URI of the global registry has
changed to the designated URI.
|
continueBootstrap, createBootstrapRegistry, startBootstrap, terminateToInitialServicebootstrap, bootstrap, createConfigurationManager, getBootstrapRegistry, getClientService, getRegistry, getRootConfiguration, terminate, terminateSafelypublic ClusterPlatform()
throws AbortServiceException
ClusterPlatform.AbortServiceException - If the platform has already been bootstrapped
or the initialisation or starting of the registry fails, an
AbortServiceException will be thrown.AristaFlowPlatform.AristaFlowPlatform()public ClusterPlatform(ConfigurationPropertyProvider provider) throws AbortServiceException
ClusterPlatform.provider - The provider for the global properties including the
configuration directories to load additional configurations for
the root configuration from. This must not be null.AbortServiceException - If the platform has already been bootstrapped
or the initialisation or starting of the registry fails, an
AbortServiceException will be thrown.AristaFlowPlatform.AristaFlowPlatform(ConfigurationPropertyProvider)public ClusterPlatform(Configuration conf) throws AbortServiceException
ClusterPlatform.conf - The configuration provided when bootstrapping. This may either
be a complete root configuration (without additional configuration
directories), a delta configuration complementing or overriding
the configurations from the configuration directories or even
null. If this is null, only
configurations from the configuration directories will be used but
this requires a valid rootConfFileName.AbortServiceException - If the platform has already been bootstrapped
or the initialisation or starting of the registry fails, an
AbortServiceException will be thrown.AristaFlowPlatform.AristaFlowPlatform(Configuration)public ClusterPlatform(Configuration conf, ConfigurationPropertyProvider provider) throws AbortServiceException
ClusterPlatform.conf - The configuration provided when bootstrapping. This may either
be a complete root configuration (without additional configuration
directories), a delta configuration complementing or overriding
the configurations from the configuration directories or even
null. If this is null, only
configurations from the configuration directories will be used but
this requires a valid rootConfFileName.provider - The provider for the global properties including the
configuration directories to load additional configurations for
the root configuration from. This must not be null.AbortServiceException - If the platform has already been bootstrapped
or the initialisation or starting of the registry fails, an
AbortServiceException will be thrown.AristaFlowPlatform.AristaFlowPlatform(Configuration,
ConfigurationPropertyProvider)public java.lang.String getClusterName()
protected GlobalRegistry globalRegistryChanged(SessionToken session, java.net.URI globRegUri) throws ServiceNotKnownException
TwoPhasePlatformglobalRegistryChanged in class TwoPhasePlatform<JDBCDataSource>session - The session which is used to check for access rights on this
method.globRegUri - The new URI of the global registry.ServiceNotKnownException - If the default instance of the global
registry cannot be retrieved with the new URI, a
ServiceNotKnownException will be thrown.