Package org.apache.activeio.xnet
Class StandardServiceStack
java.lang.Object
org.apache.activeio.xnet.StandardServiceStack
-
Constructor Summary
ConstructorsConstructorDescriptionStandardServiceStack
(String name, int port, String host, IPAddressPermission[] allowHosts, String[] logOnSuccess, String[] logOnFailure, Executor executor, ServerService server) -
Method Summary
Modifier and TypeMethodDescriptionvoid
doFail()
void
doStart()
void
doStop()
getHost()
String[]
String[]
getName()
int
getPort()
int
void
setAllowHosts
(IPAddressPermission[] allowHosts) void
setSoTimeout
(int timeout)
-
Constructor Details
-
StandardServiceStack
public StandardServiceStack(String name, int port, String host, IPAddressPermission[] allowHosts, String[] logOnSuccess, String[] logOnFailure, Executor executor, ServerService server) throws UnknownHostException - Throws:
UnknownHostException
-
-
Method Details
-
getName
-
getAddress
-
getFullAddress
-
getHost
-
getPort
public int getPort() -
getSoTimeout
- Throws:
IOException
-
setSoTimeout
- Throws:
SocketException
-
getLogOnSuccess
-
getLogOnFailure
-
getAllowHosts
-
setAllowHosts
-
doStart
- Throws:
Exception
-
doStop
- Throws:
Exception
-
doFail
public void doFail()
-