FileDocCategorySizeDatePackage
Basic.javaAPI DocExample1288Thu May 23 09:32:50 BST 2002 sample.standard

Basic

public abstract class Basic extends Object implements BasicMBean
Base class for the sample application. Implemented as a standard MBean. There are three attributes: 1. TraceOn (boolean) 2. DebugOn (boolean) 3. NumberOfResets (int) and five operations: 1. enableTracing() 2. disableTracing() 3. enableDebugging() 4. disableDebugging() 5. reset() (abstract - must be implemented by subclasses)
author
Steve Perry

Fields Summary
private boolean
_traceOn
private boolean
_debugOn
private int
_numberOfResets
Constructors Summary
Methods Summary
public voiddisableDebugging()

        _debugOn = false;
    
public voiddisableTracing()

        _traceOn = false;
    
public voidenableDebugging()

        _debugOn = true;
    
public voidenableTracing()

        _traceOn = true;
    
public intgetNumberOfResets()

        return  _numberOfResets;
    
public booleanisDebugOn()

        return  _debugOn;
    
public booleanisTraceOn()

        return  _traceOn;
    
public abstract voidreset()

public voidsetNumberOfResets(int value)

        _numberOfResets = value;