All Packages  This Package  Class Hierarchy  Class Search  Index

Class edu.utah.janos.nodeos.Trace
java.lang.Object
   |
   +----edu.utah.janos.nodeos.Trace

  Summary

public class  Trace
     extends java.lang.Object
{
          // Fields 28
     public static final long ANTSR_APP;
     public static final long ANTSR_CAPSULECHANNEL;
     public static final long ANTSR_CONSOLE;
     public static final long ANTSR_DEMULTIPLEX;
     public static final long ANTSR_DYNLOAD;
     public static final long ANTSR_MID;
     public static final long ANTSR_OUTGOING;
     public static final long ANTSR_ROUTEINFO;
     public static final long ANTSR_ROUTE_READ_TABLE;
     public static final long ANTSR_ROUTE_TIMER;
     public static final long ANTSR_ROUTE_UPDATE;
     public static final long ANTSR_STARTUP;
     private static final int MAX_FLAGS;
     public static final long NODEOS_BUFH;
     public static final long NODEOS_CLASSLOAD;
     public static final long NODEOS_DESTROY;
     public static final long NODEOS_DISPATCH;
     public static final long NODEOS_FLOWSTART;
     public static final long NODEOS_INCOMING;
     public static final long NODEOS_OUTGOING;
     public static final long NODEOS_THREADS;
     public static final long ROUTE_UPDATE;
     private static final Hashtable compositeFlags;
     private static boolean debugTrace;
     private static final String defaultFlags;
     private static final String flagPropKey;
     private static long flags;
     private static final String[] names;

          // Constructors 1
     public Trace();

          // Methods 5
     public static final boolean check(long);
     public static String[] getNameList();
     private static final void setFlag(int);
     public static void setFlags(PrintStream, String);
     public static void setFlags(String);

}

Control for the trace macros spread through-out creation.

TRACE() macros include a Trace flag that determines when the trace macro should print its string. The set of flags that are enabled is determined by the system property "janos.debugFlags".

XXX Use intern() and ==.

Author:
Janos Ministry of Development




  Fields

· flags

Summary  |  Top

   private static long flags

The set of bit flags describing which trace flags are on and which are off.


· defaultFlags

Summary  |  Top
   private static final String defaultFlags

Default trace flags. For a "production" environment this could be null/empty.


· flagPropKey

Summary  |  Top
   private static final String flagPropKey

The property to look at to find flags at run time.


· MAX_FLAGS

Summary  |  Top
   private static final int MAX_FLAGS

The maximum number of Trace flags that are supported. Could be bigger if BitSet was used.


· names

Summary  |  Top
   private static final String[] names

An array of string names. The index of the name is the *bit offset* of the flag in the flags set.


· compositeFlags

Summary  |  Top
   private static final Hashtable compositeFlags

A mapping of string names to Long objects. Each Long contains the set of bits the name represents.


· debugTrace

Summary  |  Top
   private static boolean debugTrace

Control debugging of this class. Obviously, this isn't set via one of the debug flags.


· NODEOS_INCOMING

Summary  |  Top
   public static final long NODEOS_INCOMING


· NODEOS_BUFH

Summary  |  Top
   public static final long NODEOS_BUFH


· NODEOS_OUTGOING

Summary  |  Top
   public static final long NODEOS_OUTGOING


· NODEOS_DISPATCH

Summary  |  Top
   public static final long NODEOS_DISPATCH


· NODEOS_CLASSLOAD

Summary  |  Top
   public static final long NODEOS_CLASSLOAD


· NODEOS_DESTROY

Summary  |  Top
   public static final long NODEOS_DESTROY


· NODEOS_THREADS

Summary  |  Top
   public static final long NODEOS_THREADS


· NODEOS_FLOWSTART

Summary  |  Top
   public static final long NODEOS_FLOWSTART


· ROUTE_UPDATE

Summary  |  Top
   public static final long ROUTE_UPDATE


· ANTSR_ROUTE_READ_TABLE

Summary  |  Top
   public static final long ANTSR_ROUTE_READ_TABLE


· ANTSR_ROUTE_UPDATE

Summary  |  Top
   public static final long ANTSR_ROUTE_UPDATE


· ANTSR_ROUTE_TIMER

Summary  |  Top
   public static final long ANTSR_ROUTE_TIMER


· ANTSR_DEMULTIPLEX

Summary  |  Top
   public static final long ANTSR_DEMULTIPLEX


· ANTSR_APP

Summary  |  Top
   public static final long ANTSR_APP


· ANTSR_CAPSULECHANNEL

Summary  |  Top
   public static final long ANTSR_CAPSULECHANNEL


· ANTSR_STARTUP

Summary  |  Top
   public static final long ANTSR_STARTUP


· ANTSR_DYNLOAD

Summary  |  Top
   public static final long ANTSR_DYNLOAD


· ANTSR_OUTGOING

Summary  |  Top
   public static final long ANTSR_OUTGOING


· ANTSR_ROUTEINFO

Summary  |  Top
   public static final long ANTSR_ROUTEINFO


· ANTSR_CONSOLE

Summary  |  Top
   public static final long ANTSR_CONSOLE


· ANTSR_MID

Summary  |  Top
   public static final long ANTSR_MID


  Constructors

· Trace

Summary  |  Top

   public Trace() 

Default constructor



  Methods

· getNameList

Summary  |  Top
   public static String[] getNameList() 


· setFlags

Summary  |  Top
   public static void setFlags(String flagsStr) 


· setFlags

Summary  |  Top
   public static void setFlags(PrintStream out, 
                               String flagsStr) 


· check

Summary  |  Top
   public static final boolean check(long mask) 


· setFlag

Summary  |  Top
   private static final void setFlag(int idx) 


All Packages  This Package  Class Hierarchy  Class Search  Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7