|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--edu.vt.marian.server.session_table
class name: session_table class description: this class is used by session manager object to do the mapping between client id, user id and session id, it can be considered as a table with four columns, the first is client id, the second is user id, the third is session id and the last is session object. uses the services of class(es): designer(s): Jianxin Zhao (jxzhao@csgrad.cs.vt.edu) implementator(s): Ning Chai (nchai@csgrad.cs.vt.edu) finished time: Nov 26th, 1998 known bugs: JDK version: 1.1.5 side effects:
| Field Summary | |
static int |
CANNOT_FIND_SESSION
|
static int |
INVALID_NUMBER
|
static int |
INVALID_PARAMETER
|
static int |
INVALID_TIME
|
static int |
NO_UNUSED_SESSION_ID
|
static int |
NULL_PARAMETER
|
static int |
NULL_RPC_FUNCTION
|
static int |
OK
|
static int |
PROCESS_CALL_FROM_C_FAILED
|
static int |
PROCESS_CALL_FROM_CLIENT_FAILED
|
static int |
PROCESS_CALL_FROM_SESSION_TABLE_TO_C_FAILED
|
static int |
PROCESS_CALL_FROM_SESSION_TABLE_TO_CLIENT_FAILED
|
static int |
SESSION_TABLE_OVERFLOWED
|
| Constructor Summary | |
session_table(session_manager sm,
java.lang.String dir_name,
resource_manager rm,
edu.vt.marian.common.Debug debug)
method description: this constructor will create a session table object, this object is created by the specified session manager object and the specified directory contains all the configuration information about this object uses the services of class(es): input parameter(s): sm -- this is the session manager object which created this object file_name -- this is the name of the directory which contains all the configuration information of this object debug -- used for debugging output parameter(s): none return value: none synchronization: none |
|
| Method Summary | |
int |
delete_old_sessions(long time)
method description: this method will delete all the session entries which has no activity longer than the specified time uses the services of class(es): input parameter(s): time -- the threhold value used to delete sessions, the unit is ms output parameter(s): none return value: non negative number -- number of sessions deleted INVALID_TIME -- the time is negative and doesn't make sense other -- synchronization: writer method |
int |
exit(java.lang.String condition)
method description: this method will release all the resource occupied by this object, kill all the threads it created. |
int |
get_max_number_sessions()
method description: this method will tell at most how many sessions can be stored in this object. |
int |
get_number_sessions()
method description: this method will tell the current number of sessions in this table uses the services of class(es): input parameter(s): none output parameter(s): none return value: the current number of sessions in this table as an integer synchronization: none |
int |
process_call_from_c(edu.vt.marian.uip.rpc_function rf)
method description: this method will process the function sent by C/C++ marian server. |
int |
process_call_from_client(int client_id,
edu.vt.marian.uip.rpc_function rf)
method description: this method will process the function sent by the client (currently webgate). |
int |
process_call_from_session_to_c(int session_id,
edu.vt.marian.uip.rpc_function rf)
method description: this method will process the function sent from one of it's session objects to C/C++ marian server. |
int |
process_call_from_session_to_client_by_thread(int session_id,
edu.vt.marian.uip.rpc_function rf)
method description: this method will process the function sent from one of it's session objects to client by thread (currently webgate). |
int |
process_call_from_session_to_client(int session_id,
edu.vt.marian.uip.rpc_function rf)
method description: this method will process the function sent from one of it's session objects to client (currently webgate). |
int |
set_max_number_sessions(int number)
method description: this method will set the maximum possible number of sessions can be stored in this table uses the services of class(es): input parameter(s): number -- this will become the new upper limit output parameter(s): none return value: OK -- the number has been set correctly INVALID_NUMBER -- the number is negative and doesn't make sense other -- synchronization: none |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Field Detail |
public static final int OK
public static final int INVALID_TIME
public static final int INVALID_NUMBER
public static final int NULL_RPC_FUNCTION
public static final int NULL_PARAMETER
public static final int INVALID_PARAMETER
public static final int PROCESS_CALL_FROM_CLIENT_FAILED
public static final int PROCESS_CALL_FROM_C_FAILED
public static final int SESSION_TABLE_OVERFLOWED
public static final int NO_UNUSED_SESSION_ID
public static final int CANNOT_FIND_SESSION
public static final int PROCESS_CALL_FROM_SESSION_TABLE_TO_CLIENT_FAILED
public static final int PROCESS_CALL_FROM_SESSION_TABLE_TO_C_FAILED
| Constructor Detail |
public session_table(session_manager sm,
java.lang.String dir_name,
resource_manager rm,
edu.vt.marian.common.Debug debug)
| Method Detail |
public int get_number_sessions()
public int get_max_number_sessions()
public int set_max_number_sessions(int number)
public int delete_old_sessions(long time)
public int process_call_from_client(int client_id,
edu.vt.marian.uip.rpc_function rf)
public int process_call_from_c(edu.vt.marian.uip.rpc_function rf)
public int process_call_from_session_to_client(int session_id,
edu.vt.marian.uip.rpc_function rf)
public int process_call_from_session_to_client_by_thread(int session_id,
edu.vt.marian.uip.rpc_function rf)
public int process_call_from_session_to_c(int session_id,
edu.vt.marian.uip.rpc_function rf)
public int exit(java.lang.String condition)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||