org.jboss.cache.loader.tcp
Class TcpCacheServer

java.lang.Object
  extended by org.jboss.cache.loader.tcp.TcpCacheServer
All Implemented Interfaces:
TcpCacheServerMBean

public class TcpCacheServer
extends Object
implements TcpCacheServerMBean

TCP-IP based CacheServer, setCache TcpDelegatingCacheLoader with host and port of this server

Version:
$Id: TcpCacheServer.java 6120 2008-06-30 11:58:59Z manik.surtani@jboss.com $
Author:
Bela Ban, Brian Stansberry

Constructor Summary
TcpCacheServer()
           
 
Method Summary
 void create()
           
 void destroy()
           
 String getBindAddress()
           
 Cache getCache()
           
 String getConfig()
           
 String getConnections()
           
 int getPort()
           
static void main(String[] args)
           
 void setBindAddress(String bind_addr)
           
 void setCache(CacheSPI cache)
           
 void setCacheJmxWrapper(CacheJmxWrapperMBean wrapper)
          Allows injection of the CacheSPI via a CacheJmxWrapperMBean.
 void setConfig(String config)
           
 void setPort(int port)
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TcpCacheServer

public TcpCacheServer()
Method Detail

getBindAddress

public String getBindAddress()
Specified by:
getBindAddress in interface TcpCacheServerMBean

setBindAddress

public void setBindAddress(String bind_addr)
                    throws UnknownHostException
Specified by:
setBindAddress in interface TcpCacheServerMBean
Throws:
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 String getConfig()
Specified by:
getConfig in interface TcpCacheServerMBean

setConfig

public void setConfig(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 Exception
Specified by:
start in interface TcpCacheServerMBean
Throws:
Exception

stop

public void stop()
Specified by:
stop in interface TcpCacheServerMBean

getConnections

public 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(String[] args)
                 throws Exception
Throws:
Exception


Copyright © 2009 JBoss, a division of Red Hat. All Rights Reserved.