org.activeio.xnet
Class StandardServiceStack

java.lang.Object
  extended byorg.activeio.xnet.StandardServiceStack
All Implemented Interfaces:
org.apache.geronimo.gbean.GBeanLifecycle

public class StandardServiceStack
extends Object
implements org.apache.geronimo.gbean.GBeanLifecycle


Constructor Summary
StandardServiceStack(String name, int port, String host, IPAddressPermission[] allowHosts, String[] logOnSuccess, String[] logOnFailure, Executor executor, ServerService server)
           
 
Method Summary
 void doFail()
           
 void doStart()
           
 void doStop()
           
 InetAddress getAddress()
           
 IPAddressPermission[] getAllowHosts()
           
 InetSocketAddress getFullAddress()
           
 String getHost()
           
 String[] getLogOnFailure()
           
 String[] getLogOnSuccess()
           
 String getName()
           
 int getPort()
           
 int getSoTimeout()
           
 void setAllowHosts(IPAddressPermission[] allowHosts)
           
 void setSoTimeout(int timeout)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StandardServiceStack

public StandardServiceStack(String name,
                            int port,
                            String host,
                            IPAddressPermission[] allowHosts,
                            String[] logOnSuccess,
                            String[] logOnFailure,
                            Executor executor,
                            ServerService server)
                     throws UnknownHostException
Method Detail

getName

public String getName()

getAddress

public InetAddress getAddress()

getFullAddress

public InetSocketAddress getFullAddress()

getHost

public String getHost()

getPort

public int getPort()

getSoTimeout

public int getSoTimeout()
                 throws IOException
Throws:
IOException

setSoTimeout

public void setSoTimeout(int timeout)
                  throws SocketException
Throws:
SocketException

getLogOnSuccess

public String[] getLogOnSuccess()

getLogOnFailure

public String[] getLogOnFailure()

getAllowHosts

public IPAddressPermission[] getAllowHosts()

setAllowHosts

public void setAllowHosts(IPAddressPermission[] allowHosts)

doStart

public void doStart()
             throws Exception
Specified by:
doStart in interface org.apache.geronimo.gbean.GBeanLifecycle
Throws:
Exception

doStop

public void doStop()
            throws Exception
Specified by:
doStop in interface org.apache.geronimo.gbean.GBeanLifecycle
Throws:
Exception

doFail

public void doFail()
Specified by:
doFail in interface org.apache.geronimo.gbean.GBeanLifecycle


Copyright © -2007 The ActiveIO Project. All Rights Reserved.