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 DetectFuture
addListener(DetectFutureListener<DetectFuture> listener)
addListenervoid
awaitFor()
awaitForvoid
awaitForUninterruptibly()
awaitForUninterruptiblyThrowable
getException()
getExceptionMap<String,String>
getServiceAttributes()
getServiceAttributesboolean
isDone()
isDoneboolean
isServiceDetected()
isServiceDetectedvoid
setException(Throwable throwable)
setExceptionvoid
setServiceDetected(boolean serviceDetected)
setServiceDetected
-
-
-
Constructor Detail
-
DetectFutureFailedImpl
public DetectFutureFailedImpl(AsyncServiceDetector detector, Throwable e)
Constructor for DefaultDetectFuture.
- Parameters:
detector
- aAsyncServiceDetector
object.e
-
-
-
Method Detail
-
isServiceDetected
public boolean isServiceDetected()
isServiceDetected
- Specified by:
isServiceDetected
in interfaceDetectResults
- Returns:
- a boolean.
-
getServiceAttributes
public Map<String,String> getServiceAttributes()
getServiceAttributes
- Specified by:
getServiceAttributes
in interfaceDetectResults
- Returns:
- a
Map
object.
-
getException
public Throwable getException()
getException
- Specified by:
getException
in interfaceDetectFuture
- Returns:
- a
Throwable
object.
-
setServiceDetected
public void setServiceDetected(boolean serviceDetected)
Description copied from interface:DetectFuture
setServiceDetected
- Specified by:
setServiceDetected
in interfaceDetectFuture
- Parameters:
serviceDetected
- a boolean.
-
setException
public void setException(Throwable throwable)
Description copied from interface:DetectFuture
setException
- Specified by:
setException
in interfaceDetectFuture
- Parameters:
throwable
- aThrowable
object.
-
awaitFor
public void awaitFor() throws InterruptedException
Description copied from interface:DetectFuture
awaitFor
- Specified by:
awaitFor
in interfaceDetectFuture
- Throws:
InterruptedException
-
awaitForUninterruptibly
public void awaitForUninterruptibly()
Description copied from interface:DetectFuture
awaitForUninterruptibly
- Specified by:
awaitForUninterruptibly
in interfaceDetectFuture
-
isDone
public boolean isDone()
Description copied from interface:DetectFuture
isDone
- Specified by:
isDone
in interfaceDetectFuture
-
addListener
public DetectFuture addListener(DetectFutureListener<DetectFuture> listener)
Description copied from interface:DetectFuture
addListener
- Specified by:
addListener
in interfaceDetectFuture
-
-