-
- All Known Implementing Classes:
AppClusterPropertiesConfiguration
public interface AppClusterConfigurationThe configuration for one AppCluster manager.- Author:
- AO Industries, Inc.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddConfigurationListener(AppClusterConfigurationListener listener)Will be called when the configuration has changed in any way.StringgetDisplay()Set<? extends NodeConfiguration>getNodeConfigurations()Gets the set of nodes for the cluster.Set<? extends ResourceConfiguration<?,?>>getResourceConfigurations()Gets the set of resources for the cluster.booleanisEnabled()voidremoveConfigurationListener(AppClusterConfigurationListener listener)Removes listener of configuration changes.voidstart()Called as the AppCluster starts, before any configuration values are accessed or listeners are added.voidstop()Called as the AppCluster stops, after all configuration values have been accessed and all listeners have been removed.
-
-
-
Method Detail
-
start
void start() throws AppClusterConfigurationExceptionCalled as the AppCluster starts, before any configuration values are accessed or listeners are added.- Throws:
AppClusterConfigurationException
-
stop
void stop()
Called as the AppCluster stops, after all configuration values have been accessed and all listeners have been removed.
-
addConfigurationListener
void addConfigurationListener(AppClusterConfigurationListener listener)
Will be called when the configuration has changed in any way.
-
removeConfigurationListener
void removeConfigurationListener(AppClusterConfigurationListener listener)
Removes listener of configuration changes.
-
isEnabled
boolean isEnabled() throws AppClusterConfigurationException- Throws:
AppClusterConfigurationException- See Also:
AppCluster.isEnabled()
-
getDisplay
String getDisplay() throws AppClusterConfigurationException
- Throws:
AppClusterConfigurationException- See Also:
AppCluster.getDisplay()
-
getNodeConfigurations
Set<? extends NodeConfiguration> getNodeConfigurations() throws AppClusterConfigurationException
Gets the set of nodes for the cluster.- Throws:
AppClusterConfigurationException
-
getResourceConfigurations
Set<? extends ResourceConfiguration<?,?>> getResourceConfigurations() throws AppClusterConfigurationException
Gets the set of resources for the cluster.- Throws:
AppClusterConfigurationException
-
-