|
|||||||||||
| 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 SocketServerInvokerMBeanstart in class ServerInvokerIOExceptionpublic void stop()
stop in interface SocketServerInvokerMBeanstop in class ServerInvokerpublic int getSocketTimeout()
getSocketTimeout in interface SocketServerInvokerMBeanpublic void setSocketTimeout(int time)
setSocketTimeout in interface SocketServerInvokerMBeantime - New value of property timeoutpublic int getCurrentThreadPoolSize()
getCurrentThreadPoolSize in interface SocketServerInvokerMBeanpublic int getCurrentClientPoolSize()
getCurrentClientPoolSize in interface SocketServerInvokerMBeanpublic String getClientConnectAddress()
getClientConnectAddress in interface SocketServerInvokerMBeanpublic void setClientConnectAddress(String clientConnectAddress)
setClientConnectAddress in interface SocketServerInvokerMBeanpublic int getNumAcceptThreads()
getNumAcceptThreads in interface SocketServerInvokerMBeanpublic void setNumAcceptThreads(int size)
setNumAcceptThreads in interface SocketServerInvokerMBeansize - The number of threads that exist for accepting client connectionspublic int getMaxPoolSize()
getMaxPoolSize in interface SocketServerInvokerMBeanpublic void setMaxPoolSize(int maxPoolSize)
setMaxPoolSize in interface SocketServerInvokerMBeanmaxPoolSize - public String getServerBindAddress()
getServerBindAddress in interface SocketServerInvokerMBeanpublic void setServerBindAddress(String serverBindAddress)
setServerBindAddress in interface SocketServerInvokerMBeanpublic int getServerBindPort()
getServerBindPort in interface SocketServerInvokerMBeanpublic void setServerBindPort(int serverBindPort)
setServerBindPort in interface SocketServerInvokerMBeanserverBindPort - New value of property serverBindPort.public int getBacklog()
getBacklog in interface SocketServerInvokerMBeanpublic void setBacklog(int backlog)
setBacklog in interface SocketServerInvokerMBeanpublic void run()
run in interface Runnablepublic boolean isTransportBiDirectional()
isTransportBiDirectional in interface ServerInvokerMBeanprotected String getDefaultDataType()
getDefaultDataType in class ServerInvoker
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||