org.rhq.enterprise.server.core.concurrency
Class LatchedServiceController.LatchedService

java.lang.Object
  extended by org.rhq.enterprise.server.core.concurrency.LatchedServiceController.LatchedService
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
LatchedServiceController

public abstract static class LatchedServiceController.LatchedService
extends java.lang.Object
implements java.lang.Runnable


Constructor Summary
LatchedServiceController.LatchedService(java.lang.String serviceName)
           
 
Method Summary
 void addDependency(LatchedServiceController.LatchedService dependency)
           
 boolean equals(java.lang.Object obj)
           
abstract  void executeService()
           
 java.lang.String getServiceName()
           
 int hashCode()
           
 void notifyComplete(LatchedServiceController.LatchedService finishedService, boolean didFail)
           
 void run()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LatchedServiceController.LatchedService

public LatchedServiceController.LatchedService(java.lang.String serviceName)
Method Detail

getServiceName

public java.lang.String getServiceName()

addDependency

public void addDependency(LatchedServiceController.LatchedService dependency)

notifyComplete

public void notifyComplete(LatchedServiceController.LatchedService finishedService,
                           boolean didFail)

run

public void run()
Specified by:
run in interface java.lang.Runnable

executeService

public abstract void executeService()
                             throws LatchedServiceException
Throws:
LatchedServiceException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

hashCode

public final int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public final boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2008-2009 Red Hat, Inc.. All Rights Reserved.