Class DetectFutureMinaImpl
- java.lang.Object
-
- org.apache.mina.core.future.DefaultIoFuture
-
- org.opennms.netmgt.provision.support.DetectFutureMinaImpl
-
- All Implemented Interfaces:
org.apache.mina.core.future.IoFuture,DetectFuture,DetectResults
public class DetectFutureMinaImpl extends org.apache.mina.core.future.DefaultIoFuture implements DetectFuture
DefaultDetectFuture class.
- Version:
- $Id: $
- Author:
- brozow
-
-
Constructor Summary
Constructors Constructor Description DetectFutureMinaImpl(AsyncServiceDetector detector)Constructor for DefaultDetectFuture.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DetectFutureaddListener(DetectFutureListener<DetectFuture> listener)addListenervoidawaitFor()awaitForvoidawaitForUninterruptibly()awaitForUninterruptiblyThrowablegetException()getExceptionObjectgetObjectValue()getObjectValueMap<String,String>getServiceAttributes()getServiceAttributesbooleanisServiceDetected()isServiceDetectedvoidsetException(Throwable throwable)setExceptionvoidsetServiceDetected(boolean serviceDetected)setServiceDetected-
Methods inherited from class org.apache.mina.core.future.DefaultIoFuture
addListener, await, await, await, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, getSession, getValue, isDone, join, join, removeListener, setValue
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opennms.netmgt.provision.DetectFuture
isDone
-
-
-
-
Constructor Detail
-
DetectFutureMinaImpl
public DetectFutureMinaImpl(AsyncServiceDetector detector)
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
-
addListener
public DetectFuture addListener(DetectFutureListener<DetectFuture> listener)
Description copied from interface:DetectFutureaddListener
- Specified by:
addListenerin interfaceDetectFuture
-
-