Package org.springframework.data.gemfire
Class LocatorFactoryBean
java.lang.Object
org.springframework.data.gemfire.support.AbstractFactoryBeanSupport<Locator>
org.springframework.data.gemfire.LocatorFactoryBean
- All Implemented Interfaces:
Aware
,BeanClassLoaderAware
,BeanFactoryAware
,BeanNameAware
,FactoryBean<Locator>
,InitializingBean
public class LocatorFactoryBean
extends AbstractFactoryBeanSupport<Locator>
implements InitializingBean
Spring
FactoryBean
used to configure, bootstrap and initialize an Apache Geode Locator
using the LocatorLauncher
class.- Since:
- 2.2.0
- Author:
- John Blum
- See Also:
-
Field Summary
Fields inherited from class org.springframework.data.gemfire.support.AbstractFactoryBeanSupport
DEFAULT_SINGLETON
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
protected void
protected void
applyLocatorConfigurers
(Iterable<LocatorConfigurer> locatorConfigurers) protected void
applyLocatorConfigurers
(LocatorConfigurer... locatorConfigurers) protected LocatorLauncher.Builder
configureGemfireProperties
(LocatorLauncher.Builder locatorBuilder) getName()
Class<?>
getPort()
void
init()
protected void
boolean
boolean
protected LocatorLauncher.Builder
protected LocatorLauncher
postProcess
(LocatorLauncher locatorLauncher) protected LocatorLauncher.Builder
postProcess
(LocatorLauncher.Builder locatorBuilder) void
setBindAddress
(String bindAddress) void
setGemFireProperties
(Properties gemfireProperties) void
setHostnameForClients
(String hostnameForClients) void
setLocatorConfigurers
(List<LocatorConfigurer> locatorConfigurers) void
setLocatorConfigurers
(LocatorConfigurer... locatorConfigurers) void
setLocators
(String locators) void
setLogLevel
(String logLevel) void
void
void
setUseBeanFactoryLocator
(boolean useBeanFactoryLocator) void
setUseClusterConfigurationService
(boolean useClusterConfigurationService) Methods inherited from class org.springframework.data.gemfire.support.AbstractFactoryBeanSupport
getBeanClassLoader, getBeanFactory, getBeanName, getLogger, getOptionalLogger, isDebugLoggingEnabled, isErrorLoggingEnabled, isInfoLoggingEnabled, isSingleton, isWarnLoggingEnabled, logDebug, logDebug, logError, logError, logInfo, logInfo, logWarning, logWarning, newLogger, setBeanClassLoader, setBeanFactory, setBeanName
-
Field Details
-
DEFAULT_PORT
public static final int DEFAULT_PORT- See Also:
-
DEFAULT_LOG_LEVEL
-
LOG_LEVEL_PROPERTY
-
-
Constructor Details
-
LocatorFactoryBean
public LocatorFactoryBean()
-
-
Method Details
-
afterPropertiesSet
- Specified by:
afterPropertiesSet
in interfaceInitializingBean
- Throws:
Exception
-
applyLocatorConfigurers
protected void applyLocatorConfigurers() -
applyLocatorConfigurers
-
applyLocatorConfigurers
-
init
public void init() -
configureGemfireProperties
protected LocatorLauncher.Builder configureGemfireProperties(LocatorLauncher.Builder locatorBuilder) -
initializeBeanFactoryLocator
protected void initializeBeanFactoryLocator() -
newLocatorLauncherBuilder
-
postProcess
-
postProcess
-
getLocator
-
getLocatorLauncher
-
getObject
- Specified by:
getObject
in interfaceFactoryBean<Locator>
- Throws:
Exception
-
getObjectType
- Specified by:
getObjectType
in interfaceFactoryBean<Locator>
-
setBindAddress
-
getBindAddress
-
getCompositeLocatorConfigurer
-
setGemFireProperties
-
getGemFireProperties
-
setHostnameForClients
-
getHostnameForClients
-
setLocatorConfigurers
-
setLocatorConfigurers
-
setLocators
-
getLocators
-
setLogLevel
-
getLogLevel
-
setName
-
getName
-
setPort
-
getPort
-
setUseBeanFactoryLocator
public void setUseBeanFactoryLocator(boolean useBeanFactoryLocator) -
isUseBeanFactoryLocator
public boolean isUseBeanFactoryLocator() -
setUseClusterConfigurationService
public void setUseClusterConfigurationService(boolean useClusterConfigurationService) -
isUseClusterConfigurationService
public boolean isUseClusterConfigurationService()
-