org.norther.tammi.manual.sample
Interface CounterMBean

All Known Subinterfaces:
ReferableCounterMBean
All Known Implementing Classes:
Counter, ReferableCounter

public interface CounterMBean

CounterMBean is an MBean interface to a simple Fibonacci counter. Note that this code is only instructional.


Method Summary
 int count()
          Counts the Fibonacci number specified by the preset counter.
 int getCounter()
          Gets the value of the counter.
 void setCounter(int counter)
          Sets the value of the counter.
 

Method Detail

getCounter

int getCounter()
Gets the value of the counter.

Returns:
the counter.

setCounter

void setCounter(int counter)
Sets the value of the counter.

Parameters:
counter - the counter.

count

int count()
Counts the Fibonacci number specified by the preset counter.

Returns:
a Fibonacci number.


Copyright © 2004 The Norther Organization. All rights reserved.