com.ibm.ras.samples
Class RASSample

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--com.ibm.ras.samples.RASSample

public class RASSample
extends java.lang.Thread
implements RASIMessageEvent, RASITraceEvent

This sample program demonstrates how one might use the RAS Toolkit to log messages and trace the flow of a program.


Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
RASSample()
          Creates a RASSample.
 
Method Summary
 void initRAS()
          Initializes the RAS system.
static void main(java.lang.String[] args)
          Main entry point for the RASSample application.
 void managerSample()
          Illustrates use of the RASManager.
 void messageSample()
          Illustrates message logging.
 void run()
          Demonstrates programming using the RAS Toolkit.
 void traceSample()
          Illustrates trace logging.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RASSample

public RASSample()
Creates a RASSample.
Method Detail

main

public static void main(java.lang.String[] args)
Main entry point for the RASSample application. This sample takes no arguments.

run

public void run()
Demonstrates programming using the RAS Toolkit.
Overrides:
run in class java.lang.Thread

initRAS

public void initRAS()
Initializes the RAS system.

messageSample

public void messageSample()
Illustrates message logging.

traceSample

public void traceSample()
Illustrates trace logging.

managerSample

public void managerSample()
Illustrates use of the RASManager.