net.dpml.test.state
Class ManagedComponent

java.lang.Object
  extended by net.dpml.test.state.ManagedComponent
All Implemented Interfaces:
Service

public class ManagedComponent
extends Object
implements Service

Component implementation that exposes an active management operation.

Version:
1.2.0
Author:
Digital Product Meta Library

Nested Class Summary
static interface ManagedComponent.Monitor
          Interface implemented by an internal monitor returned by the getMonitor operation.
 
Constructor Summary
ManagedComponent(Logger logger)
          Creation of a new ManagedComponent.
 
Method Summary
 ManagedComponent.Monitor getMonitor()
          Return a monitor.
 void ping()
          Ping the object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ManagedComponent

public ManagedComponent(Logger logger)
Creation of a new ManagedComponent.

Parameters:
logger - the assigned logging channel
Method Detail

ping

public void ping()
Ping the object.

Specified by:
ping in interface Service

getMonitor

public ManagedComponent.Monitor getMonitor()
Return a monitor.

Returns:
the monitor