All Packages  This Package  Class Hierarchy  Class Search  Index

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

  Summary

public class  Status
     extends java.lang.Object
{
          // Fields 3
     private static boolean gaveStat;
     private static final InfoHook rootHook;
     private static final Status statusObj;

          // Constructors 1
     private Status();

          // Methods 4
     public static void addInfoHook(InfoHook);
     public static Status getStatusObject();

     public String[] getInfo(String);
     public String[] getInfoList();
}

Obtain status information on the state of a node.

This is the public interface to querying stats on the node.

Author:
Janos Ministry of Development


  Cross Reference

Returned By:
Status.getStatusObject()





  Fields

· statusObj

Summary  |  Top
   private static final Status statusObj


· rootHook

Summary  |  Top
   private static final InfoHook rootHook

A `root' InfoHook that is used to track the rest of them


· gaveStat

Summary  |  Top
   private static boolean gaveStat


  Constructors

· Status

Summary  |  Top

   private Status() 

Private constructor. Only one status object is ever created, the one referenced in statusObj.



  Methods

· getStatusObject

Summary  |  Top
   public static Status getStatusObject() 

Return the single global status object exactly once. First come, first served. The caller can decide what sort of access controls to implement.



· addInfoHook

Summary  |  Top
   public static void addInfoHook(InfoHook ih) 

Add an InfoHook that can be inspected by the Status user



· getInfo

Summary  |  Top
   public String[] getInfo(String name) 

Get the information string corresponding to the given module name

Parameter Description
name The name of the InfoHook to lookup



· getInfoList

Summary  |  Top
   public String[] getInfoList() 

Get the list of InfoHook's available

Returns:
An array of strings containing the names of the info hooks


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