|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sapia.ubik.net.SocketServer
org.sapia.ubik.rmi.server.transport.socket.SocketRmiServer
public class SocketRmiServer
A standard socket server that listens on a given port for
incoming RMICommand instances.
| Field Summary |
|---|
| Fields inherited from class org.sapia.ubik.net.SocketServer |
|---|
_fac |
| Constructor Summary | |
|---|---|
protected |
SocketRmiServer(int maxThreads,
java.net.ServerSocket server,
long resetInterval)
Creates a new SocketRmiServer instance |
protected |
SocketRmiServer(SocketConnectionFactory fac,
ThreadPool tp,
java.net.ServerSocket server)
Creates a new SocketRmiServer instance. |
|
SocketRmiServer(java.lang.String bindAddr,
int port,
int maxThreads,
long resetInterval)
|
|
SocketRmiServer(java.lang.String bindAddr,
int port,
int maxThreads,
long resetInterval,
UbikServerSocketFactory factory)
|
protected |
SocketRmiServer(ThreadPool tp,
java.net.ServerSocket server,
long resetInterval)
Creates a new SocketRmiServer instance |
| Method Summary | |
|---|---|
MBeanContainer |
createMBean()
Internally creates a MBean and its ObjectName, that are
returned in a MBeanContainer. |
double |
getRequestDurationSeconds()
|
double |
getRequestsPerSecond()
|
ServerAddress |
getServerAddress()
Returns this instance's address. |
int |
getThreadCount()
|
protected boolean |
handleError(java.lang.Throwable t)
|
void |
start()
Starts this server - this method should not block infinitely. |
| Methods inherited from class org.sapia.ubik.net.SocketServer |
|---|
close, disableStats, enableStats, getAddress, getPort, getRequestDurationStat, getRequestsPerSecondStat, notifyStarted, run, waitStarted |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.sapia.ubik.rmi.server.Server |
|---|
close |
| Methods inherited from interface org.sapia.ubik.rmi.server.transport.socket.SocketRmiServerMBean |
|---|
disableStats, enableStats, getAddress, getPort |
| Constructor Detail |
|---|
public SocketRmiServer(java.lang.String bindAddr,
int port,
int maxThreads,
long resetInterval)
throws java.io.IOException
java.io.IOException
public SocketRmiServer(java.lang.String bindAddr,
int port,
int maxThreads,
long resetInterval,
UbikServerSocketFactory factory)
throws java.io.IOException
java.io.IOException
protected SocketRmiServer(ThreadPool tp,
java.net.ServerSocket server,
long resetInterval)
throws java.io.IOException
tp - server -
java.io.IOException
protected SocketRmiServer(int maxThreads,
java.net.ServerSocket server,
long resetInterval)
throws java.io.IOException
tp - server -
java.io.IOException
protected SocketRmiServer(SocketConnectionFactory fac,
ThreadPool tp,
java.net.ServerSocket server)
throws java.io.IOException
fac - tp - server -
java.io.IOException| Method Detail |
|---|
public ServerAddress getServerAddress()
ServerServerAddress.
getServerAddress in interface ServerServer.getServerAddress()()
public void start()
throws java.rmi.RemoteException
Server
start in interface Serverjava.rmi.RemoteException - if a problem occurs while starting up.Server.start()public int getThreadCount()
getThreadCount in interface SocketRmiServerMBeangetThreadCount in class SocketServerpublic double getRequestDurationSeconds()
getRequestDurationSeconds in interface SocketRmiServerMBeanpublic double getRequestsPerSecond()
getRequestsPerSecond in interface SocketRmiServerMBean
public MBeanContainer createMBean()
throws java.lang.Exception
MBeanFactoryObjectName, that are
returned in a MBeanContainer.
createMBean in interface MBeanFactoryMBeanContainer
java.lang.Exception - if a problem occurs while creating the MBean or its
object name.protected boolean handleError(java.lang.Throwable t)
handleError in class SocketServerSocketServer.handleError(Throwable)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||