|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
ittp.Parameters
This class allows to define the different using's parameters of the server. It use RMI.
Field Summary | |
static int |
CONNECTION_MAX
Number maximal of connection allowed |
static int |
DEFAULT_CONNECTION
default value for the number of connection |
static int |
DEFAULT_TIMEOUT
default value for the time out |
static java.lang.String |
SHUT_DOWN
shut down state |
static java.lang.String |
START
start state |
static java.lang.String |
STOP
stop state |
static int |
TIMEOUT_MAX
timout maximal allowed |
Fields inherited from class java.rmi.server.RemoteObject |
ref |
Constructor Summary | |
Parameters()
Constructor of this class |
Method Summary | |
java.lang.String |
getBaseDir()
|
int |
getConnectionMax()
|
int |
getNumberOfActiveConection()
|
int |
getNumberOfConnect()
|
int |
getNumberOfError()
|
int |
getNumberOfOctet()
|
int |
getNumberOfRequest()
|
int |
getPort()
|
java.lang.String |
getServerState()
|
int |
getTimeOut()
|
boolean |
isAllowedHeader(java.lang.String id)
|
boolean |
isAllowedMethod(int request)
|
void |
recordConnect()
|
void |
recordError()
|
void |
recordOctet(long octet)
|
void |
recordRequest()
|
void |
resetRecord()
|
void |
setAllowedHeader(java.lang.String id,
boolean value)
|
void |
setAllowedMethod(int request,
boolean value)
|
void |
setBaseDir(java.lang.String baseDir)
|
int |
setConnectionMax(int connectionMax)
|
void |
setPort(int p)
|
void |
setServerState(java.lang.String state)
|
int |
setTimeOut(int timeOut)
|
Methods inherited from class java.rmi.server.UnicastRemoteObject |
clone, exportObject, exportObject, exportObject, unexportObject |
Methods inherited from class java.rmi.server.RemoteServer |
getClientHost, getLog, setLog |
Methods inherited from class java.rmi.server.RemoteObject |
equals, getRef, hashCode, toString, toStub |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int CONNECTION_MAX
public static final int TIMEOUT_MAX
public static final int DEFAULT_CONNECTION
public static final int DEFAULT_TIMEOUT
public static final java.lang.String START
public static final java.lang.String STOP
public static final java.lang.String SHUT_DOWN
Constructor Detail |
public Parameters() throws java.rmi.RemoteException
java.rmi.RemoteException
- when the ServerSocket cannot be opened.Method Detail |
public boolean isAllowedMethod(int request) throws java.rmi.RemoteException
isAllowedMethod
in interface RemoteControl
java.rmi.RemoteException
public boolean isAllowedHeader(java.lang.String id) throws java.rmi.RemoteException
isAllowedHeader
in interface RemoteControl
java.rmi.RemoteException
public java.lang.String getServerState() throws java.rmi.RemoteException
getServerState
in interface RemoteControl
java.rmi.RemoteException
public void setPort(int p) throws java.rmi.RemoteException
setPort
in interface RemoteControl
java.rmi.RemoteException
public void setBaseDir(java.lang.String baseDir) throws java.rmi.RemoteException
setBaseDir
in interface RemoteControl
java.rmi.RemoteException
public int getPort() throws java.rmi.RemoteException
getPort
in interface RemoteControl
java.rmi.RemoteException
public java.lang.String getBaseDir() throws java.rmi.RemoteException
getBaseDir
in interface RemoteControl
java.rmi.RemoteException
public int getNumberOfRequest() throws java.rmi.RemoteException
getNumberOfRequest
in interface RemoteControl
java.rmi.RemoteException
public int getNumberOfError() throws java.rmi.RemoteException
getNumberOfError
in interface RemoteControl
java.rmi.RemoteException
public int getNumberOfOctet() throws java.rmi.RemoteException
getNumberOfOctet
in interface RemoteControl
java.rmi.RemoteException
public int getNumberOfConnect() throws java.rmi.RemoteException
getNumberOfConnect
in interface RemoteControl
java.rmi.RemoteException
public int getTimeOut() throws java.rmi.RemoteException
getTimeOut
in interface RemoteControl
java.rmi.RemoteException
public void setAllowedMethod(int request, boolean value) throws java.rmi.RemoteException
setAllowedMethod
in interface RemoteControl
java.rmi.RemoteException
public void setAllowedHeader(java.lang.String id, boolean value) throws java.rmi.RemoteException
setAllowedHeader
in interface RemoteControl
java.rmi.RemoteException
public int getConnectionMax() throws java.rmi.RemoteException
getConnectionMax
in interface RemoteControl
java.rmi.RemoteException
public int setTimeOut(int timeOut) throws java.rmi.RemoteException
setTimeOut
in interface RemoteControl
java.rmi.RemoteException
public int setConnectionMax(int connectionMax) throws java.rmi.RemoteException
setConnectionMax
in interface RemoteControl
java.rmi.RemoteException
public void setServerState(java.lang.String state) throws java.rmi.RemoteException
setServerState
in interface RemoteControl
java.rmi.RemoteException
public int getNumberOfActiveConection() throws java.rmi.RemoteException
getNumberOfActiveConection
in interface RemoteControl
java.rmi.RemoteException
public void recordError()
public void recordRequest()
public void recordOctet(long octet)
public void recordConnect()
public void resetRecord() throws java.rmi.RemoteException
resetRecord
in interface RemoteControl
java.rmi.RemoteException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |