Class DetectFutureFailedImpl
- java.lang.Object
-
- org.opennms.netmgt.provision.support.DetectFutureFailedImpl
-
- All Implemented Interfaces:
DetectFuture,DetectResults
public class DetectFutureFailedImpl extends Object implements DetectFuture
DetectFutureNettyImpl class.
- Author:
- Seth
-
-
Constructor Summary
Constructors Constructor Description DetectFutureFailedImpl(AsyncServiceDetector detector, Throwable e)Constructor for DefaultDetectFuture.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DetectFutureaddListener(DetectFutureListener<DetectFuture> listener)addListenervoidawaitFor()awaitForvoidawaitForUninterruptibly()awaitForUninterruptiblyThrowablegetException()getExceptionMap<String,String>getServiceAttributes()getServiceAttributesbooleanisDone()isDonebooleanisServiceDetected()isServiceDetectedvoidsetException(Throwable throwable)setExceptionvoidsetServiceDetected(boolean serviceDetected)setServiceDetected
-
-
-
Constructor Detail
-
DetectFutureFailedImpl
public DetectFutureFailedImpl(AsyncServiceDetector detector, Throwable e)
Constructor for DefaultDetectFuture.
- Parameters:
detector- aAsyncServiceDetectorobject.e-
-
-
Method Detail
-
isServiceDetected
public boolean isServiceDetected()
isServiceDetected
- Specified by:
isServiceDetectedin interfaceDetectResults- Returns:
- a boolean.
-
getServiceAttributes
public Map<String,String> getServiceAttributes()
getServiceAttributes
- Specified by:
getServiceAttributesin interfaceDetectResults- Returns:
- a
Mapobject.
-
getException
public Throwable getException()
getException
- Specified by:
getExceptionin interfaceDetectFuture- Returns:
- a
Throwableobject.
-
setServiceDetected
public void setServiceDetected(boolean serviceDetected)
Description copied from interface:DetectFuturesetServiceDetected
- Specified by:
setServiceDetectedin interfaceDetectFuture- Parameters:
serviceDetected- a boolean.
-
setException
public void setException(Throwable throwable)
Description copied from interface:DetectFuturesetException
- Specified by:
setExceptionin interfaceDetectFuture- Parameters:
throwable- aThrowableobject.
-
awaitFor
public void awaitFor() throws InterruptedExceptionDescription copied from interface:DetectFutureawaitFor
- Specified by:
awaitForin interfaceDetectFuture- Throws:
InterruptedException
-
awaitForUninterruptibly
public void awaitForUninterruptibly()
Description copied from interface:DetectFutureawaitForUninterruptibly
- Specified by:
awaitForUninterruptiblyin interfaceDetectFuture
-
isDone
public boolean isDone()
Description copied from interface:DetectFutureisDone
- Specified by:
isDonein interfaceDetectFuture
-
addListener
public DetectFuture addListener(DetectFutureListener<DetectFuture> listener)
Description copied from interface:DetectFutureaddListener
- Specified by:
addListenerin interfaceDetectFuture
-
-