org.apgrid.grpc.ng
Class NgLog

java.lang.Object
  extended byorg.apgrid.grpc.ng.NgLog

public class NgLog
extends java.lang.Object


Field Summary
static java.lang.String COMMLOG_RECV
           
static java.lang.String COMMLOG_SEND
           
static int LOGCATEGORY_GLOBUS_TOOLKIT
           
static int LOGCATEGORY_NINFG_GRPC
           
static int LOGCATEGORY_NINFG_INTERNAL
           
static int LOGCATEGORY_NINFG_PROTOCOL
           
static int LOGLEVEL_DEBUG
           
static int LOGLEVEL_ERROR
           
static int LOGLEVEL_FATAL
           
static int LOGLEVEL_INFO
           
static int LOGLEVEL_OFF
           
static int LOGLEVEL_WARN
           
 
Constructor Summary
NgLog()
           
NgLog(java.util.Properties localMachineInfo)
           
NgLog(org.apgrid.grpc.ng.info.RemoteMachineInfo remoteMachineInfo, int executableID)
           
 
Method Summary
 void printLog(int category, int level, NgGrpcClient client, java.lang.String msg)
           
 void printLog(int category, int level, NgGrpcHandle handle, java.lang.String msg)
           
 void printSessionLog(int category, int level, NgGrpcHandle handle, java.lang.String msg)
           
static boolean validLogLevelParam(java.lang.String val)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOGLEVEL_OFF

public static final int LOGLEVEL_OFF
See Also:
Constant Field Values

LOGLEVEL_FATAL

public static final int LOGLEVEL_FATAL
See Also:
Constant Field Values

LOGLEVEL_ERROR

public static final int LOGLEVEL_ERROR
See Also:
Constant Field Values

LOGLEVEL_WARN

public static final int LOGLEVEL_WARN
See Also:
Constant Field Values

LOGLEVEL_INFO

public static final int LOGLEVEL_INFO
See Also:
Constant Field Values

LOGLEVEL_DEBUG

public static final int LOGLEVEL_DEBUG
See Also:
Constant Field Values

LOGCATEGORY_GLOBUS_TOOLKIT

public static final int LOGCATEGORY_GLOBUS_TOOLKIT
See Also:
Constant Field Values

LOGCATEGORY_NINFG_PROTOCOL

public static final int LOGCATEGORY_NINFG_PROTOCOL
See Also:
Constant Field Values

LOGCATEGORY_NINFG_INTERNAL

public static final int LOGCATEGORY_NINFG_INTERNAL
See Also:
Constant Field Values

LOGCATEGORY_NINFG_GRPC

public static final int LOGCATEGORY_NINFG_GRPC
See Also:
Constant Field Values

COMMLOG_SEND

public static final java.lang.String COMMLOG_SEND
See Also:
Constant Field Values

COMMLOG_RECV

public static final java.lang.String COMMLOG_RECV
See Also:
Constant Field Values
Constructor Detail

NgLog

public NgLog()

NgLog

public NgLog(java.util.Properties localMachineInfo)
      throws GrpcException
Parameters:
localMachineInfo -
Throws:
GrpcException

NgLog

public NgLog(org.apgrid.grpc.ng.info.RemoteMachineInfo remoteMachineInfo,
             int executableID)
      throws GrpcException
Parameters:
remoteMachineInfo -
Throws:
GrpcException
Method Detail

printLog

public void printLog(int category,
                     int level,
                     NgGrpcClient client,
                     java.lang.String msg)
Parameters:
category -
level -
client -
msg -

printLog

public void printLog(int category,
                     int level,
                     NgGrpcHandle handle,
                     java.lang.String msg)
Parameters:
category -
level -
handle -
msg -

printSessionLog

public void printSessionLog(int category,
                            int level,
                            NgGrpcHandle handle,
                            java.lang.String msg)
Parameters:
category -
level -
handle -
msg -

validLogLevelParam

public static boolean validLogLevelParam(java.lang.String val)
Parameters:
val -
Returns: