edu.vt.marian.uip
Class uip_log_manager

java.lang.Object
  |
  +--edu.vt.marian.uip.uip_log_manager

public class uip_log_manager
extends java.lang.Object

class name: uip_log_manager class description: this class is responsible for the uip_log management uses the services of class(es): debug designer(s): Jianxin Zhao (jxzhao@csgrad.cs.vt.edu) implementator(s): Xuelei Sun (xusun@csgrad.cs.vt.edu) finished time: December 8, 1998 known bugs: JDK version: 1.1.5 side effects:


Field Summary
static int NO_WRITE
           
static int NULL_FUNCTION
           
static int OK
           
static int WRITE_LOG_ERROR
           
 
Constructor Summary
uip_log_manager(java.lang.String dir, edu.vt.marian.common.Debug debug)
          method description: this constructor create the uip_log_manager uses the services of class(es): debug input parameter(s): String dir, directory name of the uip_log_manager Debug debug, for debugging output parameter(s): none return value: none synchronization consideration: none
 
Method Summary
 int exit(java.lang.String condition)
          method description: this method provides the smooth exit uses the services of class(es): debug input parameter(s): String condition output parameter(s): none return value: OK WRITE_LOG_ERROR synchronization consideration: synchronized
 int log_function_passed(java.lang.String caller_desc, java.lang.String message, rpc_function rf)
          method description: this method write the function passed log message uses the services of class(es): rpc_function debug input parameter(s): String caller_desc, caller description string String message, log message string rpc_function rpc output parameter(s): none return value: OK NO_WRITE WRITE_LOG_ERROR synchronization consideration: synchronized
 int write_log(java.lang.String caller_desc, java.lang.String message)
          method description: this method write the common log message uses the services of class(es): debug input parameter(s): String caller_desc, caller description string String message, log message string output parameter(s): none return value: OK NO_WRITE WRITE_LOG_ERROR synchronization consideration: synchronized
 
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

WRITE_LOG_ERROR

public static final int WRITE_LOG_ERROR

NO_WRITE

public static final int NO_WRITE

NULL_FUNCTION

public static final int NULL_FUNCTION
Constructor Detail

uip_log_manager

public uip_log_manager(java.lang.String dir,
                       edu.vt.marian.common.Debug debug)
method description: this constructor create the uip_log_manager uses the services of class(es): debug input parameter(s): String dir, directory name of the uip_log_manager Debug debug, for debugging output parameter(s): none return value: none synchronization consideration: none
Method Detail

exit

public int exit(java.lang.String condition)
method description: this method provides the smooth exit uses the services of class(es): debug input parameter(s): String condition output parameter(s): none return value: OK WRITE_LOG_ERROR synchronization consideration: synchronized

write_log

public int write_log(java.lang.String caller_desc,
                     java.lang.String message)
method description: this method write the common log message uses the services of class(es): debug input parameter(s): String caller_desc, caller description string String message, log message string output parameter(s): none return value: OK NO_WRITE WRITE_LOG_ERROR synchronization consideration: synchronized

log_function_passed

public int log_function_passed(java.lang.String caller_desc,
                               java.lang.String message,
                               rpc_function rf)
method description: this method write the function passed log message uses the services of class(es): rpc_function debug input parameter(s): String caller_desc, caller description string String message, log message string rpc_function rpc output parameter(s): none return value: OK NO_WRITE WRITE_LOG_ERROR synchronization consideration: synchronized