|
||||||||||
PREV CLASS (src) NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.remoting.AbstractInvoker (src)
org.jboss.remoting.ServerInvoker (src)
org.jboss.remoting.transport.socket.SocketServerInvoker
SocketServerInvoker is the server-side of a SOCKET based transport
Field Summary | |
protected java.lang.Thread[] |
acceptThreads
|
protected int |
backlog
|
protected java.lang.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 (src) |
clientpool
|
protected int |
maxPoolSize
|
protected int |
numAcceptThreads
|
protected boolean |
running
|
protected java.lang.String |
serverBindAddress
The internet address to bind to by default. |
protected int |
serverBindPort
The server port to bind to. |
protected java.net.ServerSocket |
serverSocket
|
protected java.util.LinkedList |
threadpool
|
protected int |
timeout
|
protected boolean |
trace
The logging trace level flag |
Fields inherited from class org.jboss.remoting.ServerInvoker (src) |
callbackHandlers, handlers, MAX_NUM_ONEWAY_THREADS |
Fields inherited from class org.jboss.remoting.AbstractInvoker (src) |
classbyteloader, localServerLocator, locator, log |
Constructor Summary | |
SocketServerInvoker(InvokerLocator (src) locator)
|
|
SocketServerInvoker(InvokerLocator (src) locator,
java.util.Map configuration)
|
Method Summary | |
protected void |
finalize()
|
java.net.InetAddress |
getAddress()
|
int |
getBacklog()
|
java.lang.String |
getClientConnectAddress()
|
int |
getCurrentClientPoolSize()
|
int |
getCurrentThreadPoolSize()
|
protected java.lang.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. |
java.lang.String |
getMBeanObjectName()
Returns the String for the object name to be used for the invoker. |
int |
getNumAcceptThreads()
Getter for property numAcceptThreads |
int |
getPort()
|
java.lang.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(java.lang.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(java.lang.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 (src) |
addInvocationHandler, destroy, getConfiguration, getDataType, getInvocationHandler, getInvocationHandlers, getMBeanServer, getSupportedSubsystems, hasInvocationHandler, invoke, invoke, isStarted, postProcess, preProcess, removeInvocationHandler, setConfigration, setMBeanServer |
Methods inherited from class org.jboss.remoting.AbstractInvoker (src) |
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 (src) |
destroy, getConfiguration, getDataType, isStarted, setConfigration |
Field Detail |
protected java.net.ServerSocket serverSocket
protected boolean running
protected int backlog
protected java.lang.Thread[] acceptThreads
protected int numAcceptThreads
protected int maxPoolSize
protected LRUPool (src) clientpool
protected java.util.LinkedList threadpool
protected int timeout
protected boolean trace
protected int clientConnectPort
protected java.lang.String clientConnectAddress
protected java.lang.String serverBindAddress
protected int serverBindPort
Constructor Detail |
public SocketServerInvoker(InvokerLocator (src) locator)
public SocketServerInvoker(InvokerLocator (src) locator, java.util.Map configuration)
Method Detail |
public java.net.InetAddress getAddress()
public int getPort()
protected void setup() throws java.lang.Exception
java.lang.Exception
protected void finalize() throws java.lang.Throwable
java.lang.Throwable
public void start() throws java.io.IOException
start
in interface SocketServerInvokerMBean (src)
start
in class ServerInvoker (src)
java.io.IOException
public void stop()
stop
in interface SocketServerInvokerMBean (src)
stop
in class ServerInvoker (src)
public java.lang.String getMBeanObjectName()
ServerInvoker (src)
getMBeanObjectName
in class ServerInvoker (src)
public int getSocketTimeout()
getSocketTimeout
in interface SocketServerInvokerMBean (src)
public void setSocketTimeout(int time)
setSocketTimeout
in interface SocketServerInvokerMBean (src)
time
- New value of property timeoutpublic int getCurrentThreadPoolSize()
getCurrentThreadPoolSize
in interface SocketServerInvokerMBean (src)
public int getCurrentClientPoolSize()
getCurrentClientPoolSize
in interface SocketServerInvokerMBean (src)
public java.lang.String getClientConnectAddress()
getClientConnectAddress
in interface SocketServerInvokerMBean (src)
public void setClientConnectAddress(java.lang.String clientConnectAddress)
setClientConnectAddress
in interface SocketServerInvokerMBean (src)
public int getNumAcceptThreads()
getNumAcceptThreads
in interface SocketServerInvokerMBean (src)
public void setNumAcceptThreads(int size)
setNumAcceptThreads
in interface SocketServerInvokerMBean (src)
size
- The number of threads that exist for accepting client connectionspublic int getMaxPoolSize()
getMaxPoolSize
in interface SocketServerInvokerMBean (src)
public void setMaxPoolSize(int maxPoolSize)
setMaxPoolSize
in interface SocketServerInvokerMBean (src)
maxPoolSize
- public java.lang.String getServerBindAddress()
getServerBindAddress
in interface SocketServerInvokerMBean (src)
public void setServerBindAddress(java.lang.String serverBindAddress)
setServerBindAddress
in interface SocketServerInvokerMBean (src)
public int getServerBindPort()
getServerBindPort
in interface SocketServerInvokerMBean (src)
public void setServerBindPort(int serverBindPort)
setServerBindPort
in interface SocketServerInvokerMBean (src)
serverBindPort
- New value of property serverBindPort.public int getBacklog()
getBacklog
in interface SocketServerInvokerMBean (src)
public void setBacklog(int backlog)
setBacklog
in interface SocketServerInvokerMBean (src)
public void run()
run
in interface java.lang.Runnable
public boolean isTransportBiDirectional()
isTransportBiDirectional
in interface ServerInvokerMBean (src)
protected java.lang.String getDefaultDataType()
getDefaultDataType
in class ServerInvoker (src)
|
||||||||||
PREV CLASS (src) NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |