public class ZKServerFactoryBean extends Object implements org.springframework.beans.factory.FactoryBean<org.apache.zookeeper.server.ZooKeeperServer>, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
| Modifier and Type | Field and Description |
|---|---|
protected int |
tickTime |
| Constructor and Description |
|---|
ZKServerFactoryBean() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
void |
destroy() |
InetSocketAddress |
getClientPortAddress() |
org.apache.zookeeper.server.NIOServerCnxnFactory |
getConnectionFactory() |
File |
getDataDir() |
File |
getDataLogDir() |
int |
getMaxClientConnections() |
int |
getMaxSessionTimeout() |
int |
getMinSessionTimeout() |
org.apache.zookeeper.server.ZooKeeperServer |
getObject() |
Class<org.apache.zookeeper.server.ZooKeeperServer> |
getObjectType() |
int |
getPort() |
int |
getTickTime() |
protected File |
getZKOutputDir() |
org.apache.zookeeper.server.ZooKeeperServer |
getZooKeeperServer() |
boolean |
isPurge() |
boolean |
isSingleton() |
void |
setClientPortAddress(InetSocketAddress clientPortAddress) |
void |
setConnectionFactory(org.apache.zookeeper.server.NIOServerCnxnFactory connectionFactory) |
void |
setDataDir(File dataDir) |
void |
setDataLogDir(File dataLogDir) |
void |
setMaxClientConnections(int maxClientConnections) |
void |
setMaxSessionTimeout(int maxSessionTimeout) |
void |
setMinSessionTimeout(int minSessionTimeout) |
void |
setPort(int port) |
void |
setPurge(boolean purge) |
void |
setTickTime(int tickTime) |
void |
setZooKeeperServer(org.apache.zookeeper.server.ZooKeeperServer zooKeeperServer) |
protected void |
shutdown() |
public org.apache.zookeeper.server.ZooKeeperServer getObject()
throws Exception
getObject in interface org.springframework.beans.factory.FactoryBean<org.apache.zookeeper.server.ZooKeeperServer>Exceptionpublic Class<org.apache.zookeeper.server.ZooKeeperServer> getObjectType()
getObjectType in interface org.springframework.beans.factory.FactoryBean<org.apache.zookeeper.server.ZooKeeperServer>public boolean isSingleton()
isSingleton in interface org.springframework.beans.factory.FactoryBean<org.apache.zookeeper.server.ZooKeeperServer>public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionpublic void destroy()
throws Exception
destroy in interface org.springframework.beans.factory.DisposableBeanExceptionprotected void shutdown()
public org.apache.zookeeper.server.ZooKeeperServer getZooKeeperServer()
public org.apache.zookeeper.server.NIOServerCnxnFactory getConnectionFactory()
public File getDataLogDir()
public File getDataDir()
public int getTickTime()
public int getMinSessionTimeout()
public int getMaxSessionTimeout()
public int getPort()
public InetSocketAddress getClientPortAddress()
public int getMaxClientConnections()
public void setPort(int port)
public void setClientPortAddress(InetSocketAddress clientPortAddress)
public void setConnectionFactory(org.apache.zookeeper.server.NIOServerCnxnFactory connectionFactory)
public void setDataDir(File dataDir)
public void setDataLogDir(File dataLogDir)
public void setMaxClientConnections(int maxClientConnections)
public void setMaxSessionTimeout(int maxSessionTimeout)
public void setMinSessionTimeout(int minSessionTimeout)
public void setTickTime(int tickTime)
public void setZooKeeperServer(org.apache.zookeeper.server.ZooKeeperServer zooKeeperServer)
public boolean isPurge()
public void setPurge(boolean purge)
protected File getZKOutputDir()
Copyright © 2011–2014 Red Hat. All rights reserved.