Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.hivemind.impl.servicemodel
Class SimpleImpl  view SimpleImpl download SimpleImpl.java

java.lang.Object
  extended byorg.apache.hivemind.impl.servicemodel.SimpleImpl
All Implemented Interfaces:
java.util.EventListener, org.apache.hivemind.events.RegistryShutdownListener, Simple

public class SimpleImpl
extends java.lang.Object
implements Simple, org.apache.hivemind.events.RegistryShutdownListener

Version:
1.0

Field Summary
private  Counter counter
           
 
Constructor Summary
SimpleImpl()
           
SimpleImpl(org.apache.hivemind.ShutdownCoordinator coordinator)
           
 
Method Summary
 void registryDidShutdown()
          Invoked when a service is being shutdown, and should release any external resources.
 void setCounter(Counter counter)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

counter

private Counter counter
Constructor Detail

SimpleImpl

public SimpleImpl()

SimpleImpl

public SimpleImpl(org.apache.hivemind.ShutdownCoordinator coordinator)
Method Detail

setCounter

public void setCounter(Counter counter)
Specified by:
setCounter in interface Simple

registryDidShutdown

public void registryDidShutdown()
Description copied from interface: org.apache.hivemind.events.RegistryShutdownListener
Invoked when a service is being shutdown, and should release any external resources. A service should not attempt to use any resources or configurations, doing so may result in a runtime exception.

Specified by:
registryDidShutdown in interface org.apache.hivemind.events.RegistryShutdownListener