JNodeOS v1.1.5 API

edu.utah.janos.nodeos
Class Status

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

public class Status
extends java.lang.Object

Obtain status information on the state of a node.

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

XXX ideally, most of this status stuff should be external to the nodeos core package.

Author:
Janos Ministry of Development

Method Summary
static void addInfoHook(InfoHook ih)
          Add an InfoHook that can be inspected by the Status user
 java.lang.String[] getInfo(java.lang.String name)
          Get the information string corresponding to the given module name
 java.lang.String[] getInfoList()
          Get the list of InfoHook's available
static Status getStatusObject()
          Return the single global status object exactly once.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getStatusObject

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.

XXX drop lame access controls. Let EE do all the controls.


addInfoHook

public static void addInfoHook(InfoHook ih)
Add an InfoHook that can be inspected by the Status user

getInfo

public java.lang.String[] getInfo(java.lang.String name)
Get the information string corresponding to the given module name
Parameters:
name - The name of the InfoHook to lookup

getInfoList

public java.lang.String[] getInfoList()
Get the list of InfoHook's available
Returns:
An array of strings containing the names of the info hooks

JNodeOS v1.1.5 API

This documentation is Copyright (C) 1998-2001 The University of Utah. All Rights Reserved. See the file LICENSE for distribution terms.
Documentation, software, and mailing list archives for Janos can be found at the Janos Project: http://www.cs.utah.edu/flux/janos/