|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.remoting.AbstractInvoker
org.jboss.remoting.ServerInvoker
org.jboss.remoting.transport.socket.SocketServerInvoker
SocketServerInvoker is the server-side of a SOCKET based transport
Field Summary | |
protected Thread[] |
acceptThreads
|
protected int |
backlog
|
protected String |
clientConnectAddress
The internet address client will use to connect to the sever. |
protected int |
clientConnectPort
The port a client will use to connect to the sever. |
protected LRUPool |
clientpool
|
protected int |
maxPoolSize
|
protected int |
numAcceptThreads
|
protected boolean |
running
|
protected String |
serverBindAddress
The internet address to bind to by default. |
protected int |
serverBindPort
The server port to bind to. |
protected ServerSocket |
serverSocket
|
protected LinkedList |
threadpool
|
protected int |
timeout
|
protected boolean |
trace
The logging trace level flag |
Fields inherited from class org.jboss.remoting.ServerInvoker |
callbackHandlers, handlers, MAX_NUM_ONEWAY_THREADS |
Fields inherited from class org.jboss.remoting.AbstractInvoker |
classbyteloader, localServerLocator, locator, log |
Constructor Summary | |
SocketServerInvoker(InvokerLocator locator)
|
|
SocketServerInvoker(InvokerLocator locator,
Map configuration)
|
Method Summary | |
protected void |
finalize()
|
InetAddress |
getAddress()
|
int |
getBacklog()
|
String |
getClientConnectAddress()
|
int |
getCurrentClientPoolSize()
|
int |
getCurrentThreadPoolSize()
|
protected String |
getDefaultDataType()
Each implementation of the remote client invoker should have a default data type that is uses in the case it is not specified in the invoker locator uri. |
int |
getMaxPoolSize()
Setter for max pool size. |
int |
getNumAcceptThreads()
Getter for property numAcceptThreads |
int |
getPort()
|
String |
getServerBindAddress()
|
int |
getServerBindPort()
Getter for property serverBindPort. |
int |
getSocketTimeout()
Getter for property timeout |
boolean |
isTransportBiDirectional()
returns true if the transport is bi-directional in nature, for example, SOAP in unidirectional and SOCKETs are bi-directional (unless behind a firewall for example). |
void |
run()
|
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 |
protected void |
setup()
|
void |
start()
Starts the invoker. |
void |
stop()
Stops the invoker. |
Methods inherited from class org.jboss.remoting.ServerInvoker |
addInvocationHandler, destroy, getConfiguration, getDataType, getInvocationHandler, getInvocationHandlers, getMBeanObjectName, getMBeanServer, getSupportedSubsystems, hasInvocationHandler, invoke, invoke, isStarted, postProcess, preProcess, removeInvocationHandler, setConfigration, setMBeanServer |
Methods inherited from class org.jboss.remoting.AbstractInvoker |
getClassLoader, getClientLocator, getLocator, setClassLoader, setClientLocator |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jboss.remoting.ServerInvokerMBean |
destroy, getConfiguration, getDataType, isStarted, setConfigration |
Field Detail |
protected ServerSocket serverSocket
protected boolean running
protected int backlog
protected Thread[] acceptThreads
protected int numAcceptThreads
protected int maxPoolSize
protected LRUPool clientpool
protected LinkedList threadpool
protected int timeout
protected boolean trace
protected int clientConnectPort
protected String clientConnectAddress
protected String serverBindAddress
protected int serverBindPort
Constructor Detail |
public SocketServerInvoker(InvokerLocator locator)
public SocketServerInvoker(InvokerLocator locator, Map configuration)
Method Detail |
public InetAddress getAddress()
public int getPort()
protected void setup() throws Exception
Exception
protected void finalize() throws Throwable
Throwable
public void start() throws IOException
start
in interface SocketServerInvokerMBean
start
in class ServerInvoker
IOException
public void stop()
stop
in interface SocketServerInvokerMBean
stop
in class ServerInvoker
public int getSocketTimeout()
getSocketTimeout
in interface SocketServerInvokerMBean
public void setSocketTimeout(int time)
setSocketTimeout
in interface SocketServerInvokerMBean
time
- New value of property timeoutpublic int getCurrentThreadPoolSize()
getCurrentThreadPoolSize
in interface SocketServerInvokerMBean
public int getCurrentClientPoolSize()
getCurrentClientPoolSize
in interface SocketServerInvokerMBean
public String getClientConnectAddress()
getClientConnectAddress
in interface SocketServerInvokerMBean
public void setClientConnectAddress(String clientConnectAddress)
setClientConnectAddress
in interface SocketServerInvokerMBean
public int getNumAcceptThreads()
getNumAcceptThreads
in interface SocketServerInvokerMBean
public void setNumAcceptThreads(int size)
setNumAcceptThreads
in interface SocketServerInvokerMBean
size
- The number of threads that exist for accepting client connectionspublic int getMaxPoolSize()
getMaxPoolSize
in interface SocketServerInvokerMBean
public void setMaxPoolSize(int maxPoolSize)
setMaxPoolSize
in interface SocketServerInvokerMBean
maxPoolSize
- public String getServerBindAddress()
getServerBindAddress
in interface SocketServerInvokerMBean
public void setServerBindAddress(String serverBindAddress)
setServerBindAddress
in interface SocketServerInvokerMBean
public int getServerBindPort()
getServerBindPort
in interface SocketServerInvokerMBean
public void setServerBindPort(int serverBindPort)
setServerBindPort
in interface SocketServerInvokerMBean
serverBindPort
- New value of property serverBindPort.public int getBacklog()
getBacklog
in interface SocketServerInvokerMBean
public void setBacklog(int backlog)
setBacklog
in interface SocketServerInvokerMBean
public void run()
run
in interface Runnable
public boolean isTransportBiDirectional()
isTransportBiDirectional
in interface ServerInvokerMBean
protected String getDefaultDataType()
getDefaultDataType
in class ServerInvoker
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |