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 DetectFuture
addListener(DetectFutureListener<DetectFuture> listener)
addListenervoid
awaitFor()
awaitForvoid
awaitForUninterruptibly()
awaitForUninterruptiblyThrowable
getException()
getExceptionObject
getObjectValue()
getObjectValueMap<String,String>
getServiceAttributes()
getServiceAttributesboolean
isServiceDetected()
isServiceDetectedvoid
setException(Throwable throwable)
setExceptionvoid
setServiceDetected(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
- aAsyncServiceDetector
object.
-
-
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)
setServiceDetected
- Specified by:
setServiceDetected
in interfaceDetectFuture
- Parameters:
serviceDetected
- a boolean.
-
setException
public void setException(Throwable throwable)
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
-
addListener
public DetectFuture addListener(DetectFutureListener<DetectFuture> listener)
Description copied from interface:DetectFuture
addListener
- Specified by:
addListener
in interfaceDetectFuture
-
-