org.jboss.cache.loader.tcp
Class TcpCacheServer
java.lang.Object
org.jboss.cache.loader.tcp.TcpCacheServer
- All Implemented Interfaces:
- TcpCacheServerMBean
public class TcpCacheServer
- extends java.lang.Object
- implements TcpCacheServerMBean
TCP-IP based CacheServer, setCache TcpDelegatingCacheLoader with host and port of this server
- Version:
- $Id: TcpCacheServer.java,v 1.30 2007/07/17 17:22:13 msurtani Exp $
- Author:
- Bela Ban, Brian Stansberry
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TcpCacheServer
public TcpCacheServer()
getBindAddress
public java.lang.String getBindAddress()
- Specified by:
getBindAddress
in interface TcpCacheServerMBean
setBindAddress
public void setBindAddress(java.lang.String bind_addr)
throws java.net.UnknownHostException
- Specified by:
setBindAddress
in interface TcpCacheServerMBean
- Throws:
java.net.UnknownHostException
getPort
public int getPort()
- Specified by:
getPort
in interface TcpCacheServerMBean
setPort
public void setPort(int port)
- Specified by:
setPort
in interface TcpCacheServerMBean
getConfig
public java.lang.String getConfig()
- Specified by:
getConfig
in interface TcpCacheServerMBean
setConfig
public void setConfig(java.lang.String config)
- Specified by:
setConfig
in interface TcpCacheServerMBean
getCache
public Cache getCache()
- Specified by:
getCache
in interface TcpCacheServerMBean
setCache
public void setCache(CacheSPI cache)
setCacheJmxWrapper
public void setCacheJmxWrapper(CacheJmxWrapperMBean wrapper)
- Description copied from interface:
TcpCacheServerMBean
- Allows
injection of the CacheSPI
via
a CacheJmxWrapperMBean
.
- Specified by:
setCacheJmxWrapper
in interface TcpCacheServerMBean
start
public void start()
throws java.lang.Exception
- Specified by:
start
in interface TcpCacheServerMBean
- Throws:
java.lang.Exception
stop
public void stop()
- Specified by:
stop
in interface TcpCacheServerMBean
getConnections
public java.lang.String getConnections()
- Specified by:
getConnections
in interface TcpCacheServerMBean
create
public void create()
- Specified by:
create
in interface TcpCacheServerMBean
destroy
public void destroy()
- Specified by:
destroy
in interface TcpCacheServerMBean
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- Throws:
java.lang.Exception