Class DetectFutureFailedImpl
- java.lang.Object
-
- org.opennms.netmgt.provision.support.DetectFutureFailedImpl
-
- All Implemented Interfaces:
DetectFuture
,DetectResults
public class DetectFutureFailedImpl extends java.lang.Object implements DetectFuture
DetectFutureNettyImpl class.
- Author:
- Seth
-
-
Constructor Summary
Constructors Constructor Description DetectFutureFailedImpl(AsyncServiceDetector detector, java.lang.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()
awaitForUninterruptiblyjava.lang.Throwable
getException()
getExceptionjava.util.Map<java.lang.String,java.lang.String>
getServiceAttributes()
getServiceAttributesboolean
isDone()
isDoneboolean
isServiceDetected()
isServiceDetectedvoid
setException(java.lang.Throwable throwable)
setExceptionvoid
setServiceDetected(boolean serviceDetected)
setServiceDetected
-
-
-
Constructor Detail
-
DetectFutureFailedImpl
public DetectFutureFailedImpl(AsyncServiceDetector detector, java.lang.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 java.util.Map<java.lang.String,java.lang.String> getServiceAttributes()
getServiceAttributes
- Specified by:
getServiceAttributes
in interfaceDetectResults
- Returns:
- a
Map
object.
-
getException
public java.lang.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(java.lang.Throwable throwable)
Description copied from interface:DetectFuture
setException
- Specified by:
setException
in interfaceDetectFuture
- Parameters:
throwable
- aThrowable
object.
-
awaitFor
public void awaitFor() throws java.lang.InterruptedException
Description copied from interface:DetectFuture
awaitFor
- Specified by:
awaitFor
in interfaceDetectFuture
- Throws:
java.lang.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
-
-