org.jboss.remoting.transport.socket
Interface SocketServerInvokerMBean

All Superinterfaces:
ServerInvokerMBean
All Known Implementing Classes:
SocketServerInvoker

public interface SocketServerInvokerMBean
extends ServerInvokerMBean

MBean interface.


Method Summary
 int getBacklog()
           
 String getClientConnectAddress()
           
 int getCurrentClientPoolSize()
           
 int getCurrentThreadPoolSize()
           
 int getMaxPoolSize()
          Setter for max pool size.
 int getNumAcceptThreads()
          Getter for property numAcceptThreads
 String getServerBindAddress()
           
 int getServerBindPort()
          Getter for property serverBindPort.
 int getSocketTimeout()
          Getter for property timeout
 void setBacklog(int backlog)
           
 void setClientConnectAddress(String clientConnectAddress)
          This method should only be called by the service controller when this invoker is specified within the Connector configuration of a service xml.
 void setMaxPoolSize(int maxPoolSize)
          The number of server threads for processing client.
 void setNumAcceptThreads(int size)
          Setter for property numAcceptThreads
 void setServerBindAddress(String serverBindAddress)
           
 void setServerBindPort(int serverBindPort)
          Setter for property serverBindPort.
 void setSocketTimeout(int time)
          Setter for property timeout
 void start()
          Starts the invoker.
 void stop()
          Stops the invoker.
 
Methods inherited from interface org.jboss.remoting.ServerInvokerMBean
destroy, getConfiguration, getDataType, isStarted, isTransportBiDirectional, setConfigration
 

Method Detail

start

public void start()
           throws IOException
Starts the invoker.

Specified by:
start in interface ServerInvokerMBean
Throws:
IOException

stop

public void stop()
Stops the invoker.

Specified by:
stop in interface ServerInvokerMBean

getSocketTimeout

public int getSocketTimeout()
Getter for property timeout

Returns:
Value of property timeout

setSocketTimeout

public void setSocketTimeout(int time)
Setter for property timeout

Parameters:
time - New value of property timeout

getCurrentThreadPoolSize

public int getCurrentThreadPoolSize()

getCurrentClientPoolSize

public int getCurrentClientPoolSize()

getClientConnectAddress

public String getClientConnectAddress()

setClientConnectAddress

public void setClientConnectAddress(String clientConnectAddress)
This method should only be called by the service controller when this invoker is specified within the Connector configuration of a service xml. Calling this directly will have no effect, as will be used in building the locator uri that is published for detection and this happens when the invoker is first created and started (after that, no one will be aware of a change).


getNumAcceptThreads

public int getNumAcceptThreads()
Getter for property numAcceptThreads

Returns:
The number of threads that exist for accepting client connections

setNumAcceptThreads

public void setNumAcceptThreads(int size)
Setter for property numAcceptThreads

Parameters:
size - The number of threads that exist for accepting client connections

getMaxPoolSize

public int getMaxPoolSize()
Setter for max pool size. The number of server threads for processing client. The default is 300.

Returns:

setMaxPoolSize

public void setMaxPoolSize(int maxPoolSize)
The number of server threads for processing client. The default is 300.

Parameters:
maxPoolSize -

getServerBindAddress

public String getServerBindAddress()

setServerBindAddress

public void setServerBindAddress(String serverBindAddress)

getServerBindPort

public int getServerBindPort()
Getter for property serverBindPort.

Returns:
Value of property serverBindPort.

setServerBindPort

public void setServerBindPort(int serverBindPort)
Setter for property serverBindPort.

Parameters:
serverBindPort - New value of property serverBindPort.

getBacklog

public int getBacklog()

setBacklog

public void setBacklog(int backlog)


Copyright © 2004 JBoss Inc. All Rights Reserved.