com.arjuna.common.util.logging
Class FacilityCode

java.lang.Object
  extended by com.arjuna.common.util.logging.FacilityCode
Direct Known Subclasses:
FacilityCode, FacilityCode, FacilityCode, FacilityCode, FacilityCode, FacilityCode, tsmxFacilityCode

public class FacilityCode
extends java.lang.Object

The FacilityCode class provides default finer facilitycode value to determine if finer debugging is allowed or not. The various levels of common debugging that are available:

Since:
1.0
Version:
$id$
Author:
Malik SAHEB - malik.saheb@arjuna.com

Field Summary
static long FAC_ALL
           
static long FAC_NONE
           
 
Constructor Summary
FacilityCode()
           
 
Method Summary
 long getLevel(java.lang.String level)
           
 java.lang.String printString(long level)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FAC_NONE

public static final long FAC_NONE
See Also:
Constant Field Values

FAC_ALL

public static final long FAC_ALL
See Also:
Constant Field Values
Constructor Detail

FacilityCode

public FacilityCode()
Method Detail

getLevel

public long getLevel(java.lang.String level)
Parameters:
level - is the string representation of the Level
Returns:
the FacilityCode value associted with the provided string representation

printString

public java.lang.String printString(long level)
Parameters:
level - is the value of the provided Level
Returns:
the string representation of the facility level. Note, this string is intended only for debugging purposes.