public class ClusterConfigSection extends ConfigSection
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SectionName |
Constructor and Description |
---|
ClusterConfigSection(ServerConfiguration config)
Class constructor
|
Modifier and Type | Method and Description |
---|---|
void |
closeConfig()
Close the configuration section, perform any cleanup
|
java.lang.String |
getConfigFile()
Return the Hazelcast config file path
|
com.hazelcast.core.HazelcastInstance |
getHazelcastInstance()
Return the Hazelcast instance, or create it
|
boolean |
isExternalHazlecast()
Check if the Hazelcast instance being used is from an external source
|
void |
setConfigFile(java.lang.String path)
Set the Hazelcast configuration file path
|
void |
setHazelcastInstance(com.hazelcast.core.HazelcastInstance hazelcast)
Set an external Hazelcast instance to be used
|
fireConfigurationChange, getSectionName, getServerConfiguration, isUpdated, setUpdated
public static final java.lang.String SectionName
public ClusterConfigSection(ServerConfiguration config)
config
- ServerConfigurationpublic java.lang.String getConfigFile()
public void setConfigFile(java.lang.String path)
configPath
- Stringpublic com.hazelcast.core.HazelcastInstance getHazelcastInstance() throws java.io.FileNotFoundException
java.io.FileNotFoundException
public final boolean isExternalHazlecast()
public final void setHazelcastInstance(com.hazelcast.core.HazelcastInstance hazelcast)
- public void closeConfig()
closeConfig
in class ConfigSection
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.