Class DetectFutureNettyImpl
- java.lang.Object
-
- org.opennms.netmgt.provision.support.DetectFutureNettyImpl
-
- All Implemented Interfaces:
DetectFuture
,DetectResults
public class DetectFutureNettyImpl extends java.lang.Object implements DetectFuture
DetectFutureNettyImpl class.
CAUTION: This class is unused. This implementation has never been in production.- Author:
- Seth
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DetectFutureNettyImpl.ServiceDetectionFailedException
-
Constructor Summary
Constructors Constructor Description DetectFutureNettyImpl(AsyncBasicDetectorNettyImpl<?,?> detector, org.jboss.netty.channel.ChannelFuture future)
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
-
DetectFutureNettyImpl
public DetectFutureNettyImpl(AsyncBasicDetectorNettyImpl<?,?> detector, org.jboss.netty.channel.ChannelFuture future)
Constructor for DefaultDetectFuture.
- Parameters:
detector
- aAsyncServiceDetector
object.
-
-
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)
setServiceDetected
- Specified by:
setServiceDetected
in interfaceDetectFuture
- Parameters:
serviceDetected
- a boolean.
-
setException
public void setException(java.lang.Throwable throwable)
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
-
-