public class LocatorFactoryBean extends AbstractFactoryBeanSupport<org.apache.geode.distributed.Locator> implements InitializingBean
FactoryBean
used to configure and initialize (bootstrap) an Apache Geode or Pivotal GemFire
Locator
using the LocatorLauncher
class.Properties
,
Locator
,
LocatorLauncher
,
FactoryBean
,
InitializingBean
,
LocatorConfigurer
,
AbstractFactoryBeanSupport
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(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() |
String |
getLogLevel() |
Optional<String> |
getName() |
org.apache.geode.distributed.Locator |
getObject() |
Class<?> |
getObjectType() |
Integer |
getPort() |
void |
init() |
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 |
setLogLevel(String logLevel) |
void |
setName(String name) |
void |
setPort(Integer port) |
getBeanClassLoader, getBeanFactory, getBeanName, getLog, isSingleton, logDebug, logDebug, logError, logError, logInfo, logInfo, logWarning, logWarning, newLog, 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(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 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)
public org.apache.geode.distributed.Locator getLocator()
public org.apache.geode.distributed.LocatorLauncher getLocatorLauncher()
@Nullable public org.apache.geode.distributed.Locator getObject() throws Exception
getObject
in interface FactoryBean<org.apache.geode.distributed.Locator>
Exception
@Nullable public Class<?> getObjectType()
getObjectType
in interface FactoryBean<org.apache.geode.distributed.Locator>
public void setBindAddress(String bindAddress)
public LocatorConfigurer getCompositeLocatorConfigurer()
public void setGemFireProperties(Properties gemfireProperties)
public Properties getGemFireProperties()
public void setHostnameForClients(String hostnameForClients)
public void setLocatorConfigurers(LocatorConfigurer... locatorConfigurers)
public void setLocatorConfigurers(List<LocatorConfigurer> locatorConfigurers)
public void setLogLevel(String logLevel)
public String getLogLevel()
public void setName(String name)
public void setPort(Integer port)
public Integer getPort()
Copyright © 2011–2019 Pivotal Software, Inc.. All rights reserved.