Bees v0.5.0 API

apps.health
Class SimpleNodeHealth

java.lang.Object
  |
  +--apps.health.NodeHealth
        |
        +--apps.health.SimpleNodeHealth
All Implemented Interfaces:
edu.utah.janosvm.kit.comm.jsi.JSIHandler, NodeCache.EventHandler

public class SimpleNodeHealth
extends NodeHealth

A SimpleNodeHealth object implements health polling using the kaffe.sensors wrapper for motherboard sensors. It will try and guess the acceptable limits of the sensors by looking for SensorFeatures with names ending in "_min" and "_max".

See Also:
HealthExtraParameters

Fields inherited from class apps.health.NodeHealth
state, STATE_ASSUMED_OK, STATE_FINE, STATE_MAX, STATE_MIN, STATE_NAMES, STATE_OFF, STATE_ON_FIRE, STATE_UNKNOWN, STATE_UNREACHABLE
 
Constructor Summary
SimpleNodeHealth(java.lang.String name)
           
 
Method Summary
 IntegerPermission poll(HealthSession hs)
          Poll the node's health and update this object's state.
 java.lang.String toString()
           
 
Methods inherited from class apps.health.NodeHealth
collected, getName, getState, getSuites, handleMessage, marshal, marshalledLength, removed, resolveSpecifier, setState, unmarshal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SimpleNodeHealth

public SimpleNodeHealth(java.lang.String name)
Parameters:
name - The name of the node this health information pertains to.
Method Detail

poll

public IntegerPermission poll(HealthSession hs)
Description copied from class: NodeHealth
Poll the node's health and update this object's state. This is a dummy implementation it will always set the state to STATE_UNKNOWN and return the poll frequency permission.
Overrides:
poll in class NodeHealth
See Also:
NodeHealth.poll(HealthSession)

toString

public java.lang.String toString()
Overrides:
toString in class NodeHealth
See Also:
Object.toString()

Bees v0.5.0 API

This documentation is Copyright (C) 2002 The University of Utah. All Rights Reserved. See the individual source files for distribution terms.
Documentation, software, and mailing lists for Bees v0.5.0 can be found at the Janos Project: http://www.cs.utah.edu/flux/janos/