edu.vt.marian.server
Class session_execution
java.lang.Object
|
+--java.lang.Thread
|
+--edu.vt.marian.server.session_execution
- public class session_execution
- extends java.lang.Thread
class name: session_execution
class description: this thread is responsible to inform the corresponding
session object to execute functions from client and C/C++ marian server.
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:
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY,
MIN_PRIORITY,
NORM_PRIORITY |
|
Constructor Summary |
session_execution(session s,
edu.vt.marian.common.Debug debug)
method description: this constructor will create a session execution
object, this object is created by the specified session object. |
session_execution(java.lang.String file_name,
session s,
edu.vt.marian.common.Debug debug)
method description: this constructor will create a session execution
object from the specified directory, the directory contains all
the configuration information about this object, this object is
created by the specified session object. |
|
Method Summary |
int |
get_c_priority()
method description: this method will return the priority of functions
sent by C/C++ marian server
uses the services of class(es):
input parameter(s): none
output parameter(s): none
return value:
the priority of functions sent by C/C++ server as an integer
synchronization: none |
int |
get_client_priority()
method description: this method will return the priority of
the functions sent by client. |
java.lang.String |
get_execution_protocol()
method description: this method will tell the protocol this thread
currently used to inform corresponding session object to execute
functions from client and C/C++
uses the services of class(es): none
input parameter(s): none
output parameter(s): none
return value:
the protocol currently used by this object to execute functions
as a string
synchronization: none |
void |
run()
method description: this method is the main part of the thread,
it's responsible for inform corresponding session object to
execute functions sent from client and C/C++ marian server
uses the services of class(es): session
input parameter(s): none
output parameter(s): none
return value: none
synchronization: none |
int |
set_c_priority(int priority)
method description: this method will set the priority of the functions
sent by C/C++ server. |
int |
set_client_priority(int priority)
method description: this method will set the priority of the functions
sent by client. |
int |
set_execution_protocol(java.lang.String protocol)
method description: this method will set the protocol this thread
will use to inform corresponding session object to execute
functions sent by client and C/C++ marian server. |
| Methods inherited from class java.lang.Thread |
activeCount,
checkAccess,
countStackFrames,
currentThread,
destroy,
dumpStack,
enumerate,
getContextClassLoader,
getName,
getPriority,
getThreadGroup,
interrupt,
interrupted,
isAlive,
isDaemon,
isInterrupted,
join,
join,
join,
resume,
setContextClassLoader,
setDaemon,
setName,
setPriority,
sleep,
sleep,
start,
stop,
stop,
suspend,
toString,
yield |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
OK
public static final int OK
INVALID_PRIORITY
public static final int INVALID_PRIORITY
NULL_PROTOCOL
public static final int NULL_PROTOCOL
PROTOCOL_GREATER_THAN_1
public static final int PROTOCOL_GREATER_THAN_1
session_execution
public session_execution(java.lang.String file_name,
session s,
edu.vt.marian.common.Debug debug)
- method description: this constructor will create a session execution
object from the specified directory, the directory contains all
the configuration information about this object, this object is
created by the specified session object.
uses the services of class(es):
input parameter(s):
file_name -- this directory/file contains all the configuration
information about session executation object
s -- this is the session object which created this object
debug -- used for debugging
output parameter(s): none
return value: none
synchronization: none
session_execution
public session_execution(session s,
edu.vt.marian.common.Debug debug)
- method description: this constructor will create a session execution
object, this object is created by the specified session object.
uses the services of class(es):
input parameter(s):
s -- this is the session object which created this object
debug -- used for debugging
output parameter(s): none
return value: none
synchronization: none
run
public void run()
- method description: this method is the main part of the thread,
it's responsible for inform corresponding session object to
execute functions sent from client and C/C++ marian server
uses the services of class(es): session
input parameter(s): none
output parameter(s): none
return value: none
synchronization: none
- Overrides:
- run in class java.lang.Thread
get_client_priority
public int get_client_priority()
- method description: this method will return the priority of
the functions sent by client.
uses the services of class(es): none
input parameter(s): none
output parameter(s): none
return value:
the priority of functions sent by client as an integer
synchronization: none
get_c_priority
public int get_c_priority()
- method description: this method will return the priority of functions
sent by C/C++ marian server
uses the services of class(es):
input parameter(s): none
output parameter(s): none
return value:
the priority of functions sent by C/C++ server as an integer
synchronization: none
set_client_priority
public int set_client_priority(int priority)
- method description: this method will set the priority of the functions
sent by client.
uses the services of class(es): none
input parameter(s):
priority -- this will become the new priority of functions sent
by client
output parameter(s): none
return value:
OK
-- the value has been set correctly
INVALID_PRIORITY
-- negative value which doesn't make sense has been identified
other --
synchronization: none
set_c_priority
public int set_c_priority(int priority)
- method description: this method will set the priority of the functions
sent by C/C++ server.
uses the services of class(es): none
input parameter(s):
priority -- this will become the new priority of functions sent
by C/C++ server
output parameter(s): none
return value:
OK -- the value has been set correctly
INVALID_PRIORITY
-- negative value which doesn't make sense has been identified
other --
synchronization: none
get_execution_protocol
public java.lang.String get_execution_protocol()
- method description: this method will tell the protocol this thread
currently used to inform corresponding session object to execute
functions from client and C/C++
uses the services of class(es): none
input parameter(s): none
output parameter(s): none
return value:
the protocol currently used by this object to execute functions
as a string
synchronization: none
set_execution_protocol
public int set_execution_protocol(java.lang.String protocol)
- method description: this method will set the protocol this thread
will use to inform corresponding session object to execute
functions sent by client and C/C++ marian server.
uses the services of class(es): none
input parameter(s):
protocol -- this will become the new protocol
output parameter(s): none
return value:
OK
-- the new protocol has been set correctly
PROTOCOL_GREATER_THAN_1
-- the protocol is not supported
NULL_PROTOCOL
-- null protocol identified
synchronization: none