public class TcpUdpSshPingResourceStore
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private org.jboss.netty.channel.ChannelFactory |
channelFactory |
private org.jboss.netty.channel.socket.DatagramChannelFactory |
datagramChannelFactory |
private static TcpUdpSshPingResourceStore |
instance
The singleton instance.
|
private java.util.concurrent.ExecutorService |
threadPoolForSshPing |
private org.jboss.netty.util.HashedWheelTimer |
timer |
Modifier | Constructor and Description |
---|---|
private |
TcpUdpSshPingResourceStore()
Instantiates a new http client store.
|
Modifier and Type | Method and Description |
---|---|
org.jboss.netty.channel.ChannelFactory |
getChannelFactory() |
org.jboss.netty.channel.socket.DatagramChannelFactory |
getDatagramChannelFactory() |
static TcpUdpSshPingResourceStore |
getInstance() |
java.util.concurrent.ExecutorService |
getThreadPoolForSshPing() |
org.jboss.netty.util.HashedWheelTimer |
getTimer() |
void |
init()
Initialize; cached threadpool is safe as it is releasing resources automatically if idle
|
void |
reinit()
close and clean up the http client, then create the new ones.
|
void |
setChannelFactory(org.jboss.netty.channel.ChannelFactory channelFactory) |
void |
setDatagramChannelFactory(org.jboss.netty.channel.socket.DatagramChannelFactory datagramChannelFactory) |
void |
setThreadPoolForSshPing(java.util.concurrent.ExecutorService threadPoolForSshPing) |
void |
setTimer(org.jboss.netty.util.HashedWheelTimer timer) |
void |
shutdown() |
private static final TcpUdpSshPingResourceStore instance
private org.jboss.netty.channel.ChannelFactory channelFactory
private org.jboss.netty.channel.socket.DatagramChannelFactory datagramChannelFactory
private org.jboss.netty.util.HashedWheelTimer timer
private java.util.concurrent.ExecutorService threadPoolForSshPing
private TcpUdpSshPingResourceStore()
public static TcpUdpSshPingResourceStore getInstance()
public void shutdown()
public void init()
public void reinit()
public org.jboss.netty.channel.ChannelFactory getChannelFactory()
public void setChannelFactory(org.jboss.netty.channel.ChannelFactory channelFactory)
public org.jboss.netty.util.HashedWheelTimer getTimer()
public void setTimer(org.jboss.netty.util.HashedWheelTimer timer)
public java.util.concurrent.ExecutorService getThreadPoolForSshPing()
public void setThreadPoolForSshPing(java.util.concurrent.ExecutorService threadPoolForSshPing)
public org.jboss.netty.channel.socket.DatagramChannelFactory getDatagramChannelFactory()
public void setDatagramChannelFactory(org.jboss.netty.channel.socket.DatagramChannelFactory datagramChannelFactory)