jrun.servlet.network
Interface NetworkServiceMBean

All Superinterfaces:
java.io.Serializable, Service, ServiceMBean, ThreadPoolServiceMBean
All Known Subinterfaces:
JRunProxyServiceMBean, SSL, SSLServiceMBean, WebServiceMBean
All Known Implementing Classes:
NetworkService

public interface NetworkServiceMBean
extends ThreadPoolServiceMBean

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

setBindAddress

public void setBindAddress(java.lang.String addr)
Sets the bind address for the service. The default is "*".
Parameters:
addr - The bind address

getBindAddress

public java.lang.String getBindAddress()
Gets the bind address for the service
Returns:
The bind address

setPort

public void setPort(int port)
Sets the port that this service will bind to
Parameters:
port - The port number

getPort

public int getPort()
Gets the port that this service will bind to
Returns:
The port number

getAvailablePort

public int getAvailablePort(int startPort,
                            int portCount)
Gets first unused port
Parameters:
startPort - The port number to start scan
portCount - The number of ports to check for availability

setBacklog

public void setBacklog(int backlog)
Sets the server socket backlog. The default is 1000.
Parameters:
backlog - The backlog

getBacklog

public int getBacklog()
Gets the server socket backlog
Returns:
The backlog

setTimeout

public void setTimeout(int seconds)
Sets the socket read timeout
Parameters:
seconds - The read timeout in seconds

getTimeout

public int getTimeout()
Gets the socket read timeout
Returns:
The read timeout in seconds

setInterface

public void setInterface(java.lang.String iface)
Sets the accepted interface pattern. The default is 127.0.0.1
Parameters:
iface - The interface

getInterface

public java.lang.String getInterface()
Gets the accepted interface pattern
Returns:
The interface

setSocketFactoryName

public void setSocketFactoryName(java.lang.String className)
Sets the socket factory class for this endpoint.
Parameters:
className - The server socket factory class name

getSocketFactoryName

public java.lang.String getSocketFactoryName()
Gets the socket factory class for this endpoint.
Returns:
The server socket factory class name


Copyright � 2002 Macromedia Corporation. All Rights Reserved.