Package org.springframework.data.gemfire
Class LocatorFactoryBean
java.lang.Object
org.springframework.data.gemfire.support.AbstractFactoryBeanSupport<org.apache.geode.distributed.Locator>
org.springframework.data.gemfire.LocatorFactoryBean
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.beans.factory.BeanClassLoaderAware
,org.springframework.beans.factory.BeanFactoryAware
,org.springframework.beans.factory.BeanNameAware
,org.springframework.beans.factory.FactoryBean<org.apache.geode.distributed.Locator>
,org.springframework.beans.factory.InitializingBean
public class LocatorFactoryBean
extends AbstractFactoryBeanSupport<org.apache.geode.distributed.Locator>
implements org.springframework.beans.factory.InitializingBean
Spring
FactoryBean
used to configure, bootstrap and initialize an Apache Geode Locator
using the LocatorLauncher
class.- Since:
- 2.2.0
- See Also:
-
Properties
Locator
LocatorLauncher
FactoryBean
InitializingBean
LocatorConfigurer
AbstractFactoryBeanSupport
GemfireBeanFactoryLocator
-
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 org.apache.geode.distributed.LocatorLauncher.Builder
configureGemfireProperties
(org.apache.geode.distributed.LocatorLauncher.Builder locatorBuilder) org.apache.geode.distributed.Locator
org.apache.geode.distributed.LocatorLauncher
getName()
org.apache.geode.distributed.Locator
Class<?>
getPort()
void
init()
protected void
boolean
boolean
protected org.apache.geode.distributed.LocatorLauncher.Builder
protected org.apache.geode.distributed.LocatorLauncher
postProcess
(org.apache.geode.distributed.LocatorLauncher locatorLauncher) protected org.apache.geode.distributed.LocatorLauncher.Builder
postProcess
(org.apache.geode.distributed.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 interfaceorg.springframework.beans.factory.InitializingBean
- Throws:
Exception
-
applyLocatorConfigurers
protected void applyLocatorConfigurers() -
applyLocatorConfigurers
-
applyLocatorConfigurers
-
init
public void init() -
configureGemfireProperties
protected org.apache.geode.distributed.LocatorLauncher.Builder configureGemfireProperties(org.apache.geode.distributed.LocatorLauncher.Builder locatorBuilder) -
initializeBeanFactoryLocator
protected void initializeBeanFactoryLocator() -
newLocatorLauncherBuilder
@NonNull protected org.apache.geode.distributed.LocatorLauncher.Builder newLocatorLauncherBuilder() -
postProcess
protected org.apache.geode.distributed.LocatorLauncher.Builder postProcess(org.apache.geode.distributed.LocatorLauncher.Builder locatorBuilder) -
postProcess
protected org.apache.geode.distributed.LocatorLauncher postProcess(org.apache.geode.distributed.LocatorLauncher locatorLauncher) -
getLocator
@Nullable public org.apache.geode.distributed.Locator getLocator() -
getLocatorLauncher
@Nullable public org.apache.geode.distributed.LocatorLauncher getLocatorLauncher() -
getObject
- Specified by:
getObject
in interfaceorg.springframework.beans.factory.FactoryBean<org.apache.geode.distributed.Locator>
- Throws:
Exception
-
getObjectType
- Specified by:
getObjectType
in interfaceorg.springframework.beans.factory.FactoryBean<org.apache.geode.distributed.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()
-