|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Base service interface for developing network services.
| Fields inherited from interface jrunx.kernel.Service |
INITIALIZED, STARTED, STARTING, STOPPED, STOPPING, UNINITIALIZED |
| Method Summary | |
int |
getAvailablePort(int startPort,
int portCount)
Gets first unused port |
int |
getBacklog()
Gets the server socket backlog |
java.lang.String |
getBindAddress()
Gets the bind address for the service |
java.lang.String |
getInterface()
Gets the accepted interface pattern |
int |
getPort()
Gets the port that this service will bind to |
java.lang.String |
getSocketFactoryName()
Gets the socket factory class for this endpoint. |
int |
getTimeout()
Gets the socket read timeout |
void |
setBacklog(int backlog)
Sets the server socket backlog. |
void |
setBindAddress(java.lang.String addr)
Sets the bind address for the service. |
void |
setInterface(java.lang.String iface)
Sets the accepted interface pattern. |
void |
setPort(int port)
Sets the port that this service will bind to |
void |
setSocketFactoryName(java.lang.String className)
Sets the socket factory class for this endpoint. |
void |
setTimeout(int seconds)
Sets the socket read timeout |
| Methods inherited from interface jrunx.scheduler.ThreadPoolServiceMBean |
getActiveHandlerThreads, getMaxHandlerThreads, getMinHandlerThreads, getThreadWaitTimeout, setActiveHandlerThreads, setMaxHandlerThreads, setMinHandlerThreads, setThreadWaitTimeout |
| Methods inherited from interface jrunx.kernel.ServiceMBean |
bind, getBindToJNDI, getDeactivated, getDomainName, getJRunService, getLogger, getName, getParentService, getServerName, requestServer, setBindToJNDI, setDeactivated, setDomainName, setName, setParentService, unbind |
| Methods inherited from interface jrunx.kernel.Service |
destroy, getStatus, init, start, stop, updateStatus |
| Method Detail |
public void setBindAddress(java.lang.String addr)
addr - The bind addresspublic java.lang.String getBindAddress()
public void setPort(int port)
port - The port numberpublic int getPort()
public int getAvailablePort(int startPort,
int portCount)
startPort - The port number to start scanportCount - The number of ports to check for availabilitypublic void setBacklog(int backlog)
backlog - The backlogpublic int getBacklog()
public void setTimeout(int seconds)
seconds - The read timeout in secondspublic int getTimeout()
public void setInterface(java.lang.String iface)
iface - The interfacepublic java.lang.String getInterface()
public void setSocketFactoryName(java.lang.String className)
className - The server socket factory class namepublic java.lang.String getSocketFactoryName()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||