net.sf.cindy.session.jmx
Class JmxSessionAcceptor

java.lang.Object
  extended by javax.management.StandardMBean
      extended by net.sf.cindy.session.jmx.JmxSessionAcceptor
All Implemented Interfaces:
javax.management.DynamicMBean, SessionAcceptorMBean

public class JmxSessionAcceptor
extends javax.management.StandardMBean
implements SessionAcceptorMBean

SessionAcceptor which support jmx.

Version:
$id$
Author:
Roger Chen

Constructor Summary
JmxSessionAcceptor(SessionAcceptor acceptor)
           
 
Method Summary
 void close()
           
 int getAcceptedCount()
           
 int getBacklog()
           
 java.net.SocketAddress getListenAddress()
           
 int getListenPort()
           
 java.lang.String getSessionType()
           
 boolean isReuseAddress()
           
 boolean isStarted()
           
 void setBacklog(int backlog)
           
 void setListenAddress(java.net.SocketAddress address)
           
 void setListenPort(int port)
           
 void setReuseAddress(boolean b)
           
 void start()
           
 
Methods inherited from class javax.management.StandardMBean
cacheMBeanInfo, getAttribute, getAttributes, getCachedMBeanInfo, getClassName, getConstructors, getDescription, getDescription, getDescription, getDescription, getDescription, getDescription, getDescription, getImpact, getImplementation, getImplementationClass, getMBeanInfo, getMBeanInterface, getParameterName, getParameterName, invoke, setAttribute, setAttributes, setImplementation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JmxSessionAcceptor

public JmxSessionAcceptor(SessionAcceptor acceptor)
                   throws javax.management.NotCompliantMBeanException
Throws:
javax.management.NotCompliantMBeanException
Method Detail

getSessionType

public java.lang.String getSessionType()
Specified by:
getSessionType in interface SessionAcceptorMBean

close

public void close()
Specified by:
close in interface SessionAcceptorMBean

getListenAddress

public java.net.SocketAddress getListenAddress()
Specified by:
getListenAddress in interface SessionAcceptorMBean

getListenPort

public int getListenPort()
Specified by:
getListenPort in interface SessionAcceptorMBean

isStarted

public boolean isStarted()
Specified by:
isStarted in interface SessionAcceptorMBean

setListenAddress

public void setListenAddress(java.net.SocketAddress address)
Specified by:
setListenAddress in interface SessionAcceptorMBean

setListenPort

public void setListenPort(int port)
Specified by:
setListenPort in interface SessionAcceptorMBean

start

public void start()
           throws java.io.IOException
Specified by:
start in interface SessionAcceptorMBean
Throws:
java.io.IOException

getBacklog

public int getBacklog()
Specified by:
getBacklog in interface SessionAcceptorMBean

isReuseAddress

public boolean isReuseAddress()
Specified by:
isReuseAddress in interface SessionAcceptorMBean

setBacklog

public void setBacklog(int backlog)
Specified by:
setBacklog in interface SessionAcceptorMBean

setReuseAddress

public void setReuseAddress(boolean b)
Specified by:
setReuseAddress in interface SessionAcceptorMBean

getAcceptedCount

public int getAcceptedCount()
Specified by:
getAcceptedCount in interface SessionAcceptorMBean