Class DetectFutureNettyImpl
- java.lang.Object
-
- org.opennms.netmgt.provision.support.DetectFutureNettyImpl
-
- All Implemented Interfaces:
DetectFuture,DetectResults
public class DetectFutureNettyImpl extends 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 classDetectFutureNettyImpl.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 DetectFutureaddListener(DetectFutureListener<DetectFuture> listener)addListenervoidawaitFor()awaitForvoidawaitForUninterruptibly()awaitForUninterruptiblyThrowablegetException()getExceptionMap<String,String>getServiceAttributes()getServiceAttributesbooleanisDone()isDonebooleanisServiceDetected()isServiceDetectedvoidsetException(Throwable throwable)setExceptionvoidsetServiceDetected(boolean serviceDetected)setServiceDetected
-
-
-
Constructor Detail
-
DetectFutureNettyImpl
public DetectFutureNettyImpl(AsyncBasicDetectorNettyImpl<?,?> detector, org.jboss.netty.channel.ChannelFuture future)
Constructor for DefaultDetectFuture.
- Parameters:
detector- aAsyncServiceDetectorobject.
-
-
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)
setServiceDetected
- Specified by:
setServiceDetectedin interfaceDetectFuture- Parameters:
serviceDetected- a boolean.
-
setException
public void setException(Throwable throwable)
setException
- 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
-
-