public class LocatorFactoryBean extends AbstractFactoryBeanSupport<org.apache.geode.distributed.Locator> implements InitializingBean
FactoryBean
used to configure, bootstrap and initialize an Apache Geode Locator
using the LocatorLauncher
class.Properties
,
Locator
,
LocatorLauncher
,
FactoryBean
,
InitializingBean
,
LocatorConfigurer
,
AbstractFactoryBeanSupport
,
GemfireBeanFactoryLocator
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_LOG_LEVEL |
static int |
DEFAULT_PORT |
static String |
LOG_LEVEL_PROPERTY |
DEFAULT_SINGLETON
OBJECT_TYPE_ATTRIBUTE
Constructor and Description |
---|
LocatorFactoryBean() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
protected void |
applyLocatorConfigurers() |
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) |
Optional<String> |
getBindAddress() |
LocatorConfigurer |
getCompositeLocatorConfigurer() |
Properties |
getGemFireProperties() |
Optional<String> |
getHostnameForClients() |
org.apache.geode.distributed.Locator |
getLocator() |
org.apache.geode.distributed.LocatorLauncher |
getLocatorLauncher() |
Optional<String> |
getLocators() |
String |
getLogLevel() |
Optional<String> |
getName() |
org.apache.geode.distributed.Locator |
getObject() |
Class<?> |
getObjectType() |
Integer |
getPort() |
void |
init() |
protected void |
initializeBeanFactoryLocator() |
boolean |
isUseBeanFactoryLocator() |
boolean |
isUseClusterConfigurationService() |
protected org.apache.geode.distributed.LocatorLauncher.Builder |
newLocatorLauncherBuilder() |
protected org.apache.geode.distributed.LocatorLauncher.Builder |
postProcess(org.apache.geode.distributed.LocatorLauncher.Builder locatorBuilder) |
protected org.apache.geode.distributed.LocatorLauncher |
postProcess(org.apache.geode.distributed.LocatorLauncher locatorLauncher) |
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 |
setName(String name) |
void |
setPort(Integer port) |
void |
setUseBeanFactoryLocator(boolean useBeanFactoryLocator) |
void |
setUseClusterConfigurationService(boolean useClusterConfigurationService) |
getBeanClassLoader, getBeanFactory, getBeanName, getLogger, getOptionalLogger, isDebugLoggingEnabled, isErrorLoggingEnabled, isInfoLoggingEnabled, isSingleton, isWarnLoggingEnabled, logDebug, logDebug, logError, logError, logInfo, logInfo, logWarning, logWarning, newLogger, setBeanClassLoader, setBeanFactory, setBeanName
public static final int DEFAULT_PORT
public static final String DEFAULT_LOG_LEVEL
public static final String LOG_LEVEL_PROPERTY
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface InitializingBean
Exception
protected void applyLocatorConfigurers()
protected void applyLocatorConfigurers(LocatorConfigurer... locatorConfigurers)
protected void applyLocatorConfigurers(Iterable<LocatorConfigurer> locatorConfigurers)
public void init()
protected org.apache.geode.distributed.LocatorLauncher.Builder configureGemfireProperties(org.apache.geode.distributed.LocatorLauncher.Builder locatorBuilder)
protected void initializeBeanFactoryLocator()
@NonNull protected org.apache.geode.distributed.LocatorLauncher.Builder newLocatorLauncherBuilder()
protected org.apache.geode.distributed.LocatorLauncher.Builder postProcess(org.apache.geode.distributed.LocatorLauncher.Builder locatorBuilder)
protected org.apache.geode.distributed.LocatorLauncher postProcess(org.apache.geode.distributed.LocatorLauncher locatorLauncher)
@Nullable public org.apache.geode.distributed.Locator getLocator()
@Nullable public org.apache.geode.distributed.LocatorLauncher getLocatorLauncher()
@NonNull public org.apache.geode.distributed.Locator getObject() throws Exception
getObject
in interface FactoryBean<org.apache.geode.distributed.Locator>
Exception
@NonNull public Class<?> getObjectType()
getObjectType
in interface FactoryBean<org.apache.geode.distributed.Locator>
@NonNull public LocatorConfigurer getCompositeLocatorConfigurer()
public void setGemFireProperties(@Nullable Properties gemfireProperties)
@NonNull public Properties getGemFireProperties()
public void setLocatorConfigurers(LocatorConfigurer... locatorConfigurers)
public void setLocatorConfigurers(List<LocatorConfigurer> locatorConfigurers)
public void setUseBeanFactoryLocator(boolean useBeanFactoryLocator)
public boolean isUseBeanFactoryLocator()
public void setUseClusterConfigurationService(boolean useClusterConfigurationService)
public boolean isUseClusterConfigurationService()
Copyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.