edu.vt.marian.server
Class resource_manager

java.lang.Object
  |
  +--edu.vt.marian.server.resource_manager

public class resource_manager
extends java.lang.Object

class name: resource_manager class description: this class contain all the resources of the system, currently it only contains log manager and showable message, but in the future it may also contain databases. 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 30th, 1998 known bugs: JDK version: 1.1.5 side effects:


Field Summary
static int OK
           
 
Constructor Summary
resource_manager(java.lang.String dir, edu.vt.marian.common.Debug debug)
          method description: this constructor will create an resource_manager object from the specified directory uses the services of class(es): input parameter(s): dir -- this directory contains all the configuration information of the resource manager object of the system debug -- used for debugging output parameter(s): none return value: none synchronization: none
 
Method Summary
 int exit(java.lang.String condition)
          method description: this method will let this object exit smoothly, release all the resources it occupied, kill all the threads it created.
 log_manager get_log_manager()
          method description: this method will return the log manager of this object uses the services of class(es): none input parameter(s): none output parameter(s): none return value: the log_manage of this object synchronization: none
 user_message_table get_user_message_table()
          method description: this method will return the user message table of the system uses the services of class(es): input parameter(s): none output parameter(s): none return value: the user_message_table of this object synchronization: none
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OK

public static final int OK
Constructor Detail

resource_manager

public resource_manager(java.lang.String dir,
                        edu.vt.marian.common.Debug debug)
method description: this constructor will create an resource_manager object from the specified directory uses the services of class(es): input parameter(s): dir -- this directory contains all the configuration information of the resource manager object of the system debug -- used for debugging output parameter(s): none return value: none synchronization: none
Method Detail

get_log_manager

public log_manager get_log_manager()
method description: this method will return the log manager of this object uses the services of class(es): none input parameter(s): none output parameter(s): none return value: the log_manage of this object synchronization: none

get_user_message_table

public user_message_table get_user_message_table()
method description: this method will return the user message table of the system uses the services of class(es): input parameter(s): none output parameter(s): none return value: the user_message_table of this object synchronization: none

exit

public int exit(java.lang.String condition)
method description: this method will let this object exit smoothly, release all the resources it occupied, kill all the threads it created. uses the services of class(es): log_manager, user_message_table input parameter(s): condition -- specify under which condition this method is called output parameter(s): none return value: OK -- the exit is smooth synchronization: none