Class AsyncBasicDetectorMinaImpl<Request,Response>
- java.lang.Object
-
- org.opennms.netmgt.provision.support.AbstractDetector
-
- org.opennms.netmgt.provision.support.AsyncAbstractDetector
-
- org.opennms.netmgt.provision.support.AsyncBasicDetector<Request,Response>
-
- org.opennms.netmgt.provision.support.AsyncBasicDetectorMinaImpl<Request,Response>
-
- All Implemented Interfaces:
AsyncServiceDetector
,ServiceDetector
- Direct Known Subclasses:
AsyncLineOrientedDetectorMinaImpl
,AsyncMultilineDetectorMinaImpl
,HttpDetector
,MultilineHttpDetector
public abstract class AsyncBasicDetectorMinaImpl<Request,Response> extends AsyncBasicDetector<Request,Response>
AsyncBasicDetectorMinaImpl class.
- Version:
- $Id: $
- Author:
- Donald Desloge
-
-
Constructor Summary
Constructors Constructor Description AsyncBasicDetectorMinaImpl(java.lang.String serviceName, int port)
Constructor for AsyncBasicDetector.AsyncBasicDetectorMinaImpl(java.lang.String serviceName, int port, int timeout, int retries)
Constructor for AsyncBasicDetector.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.apache.mina.core.service.IoHandler
createDetectorHandler(DetectFutureMinaImpl future)
createDetectorHandlervoid
dispose()
disposeprotected org.apache.mina.core.service.IoHandler
getDetectorHandler()
getDetectorHandlerprotected org.apache.mina.core.filterchain.IoFilterAdapter
getLoggingFilter()
getLoggingFilterprotected org.apache.mina.filter.codec.ProtocolCodecFilter
getProtocolCodecFilter()
getProtocolCodecFilterDetectFuture
isServiceDetected(java.net.InetAddress address)
protected void
setDetectorHandler(BaseDetectorHandler<Request,Response> detectorHandler)
setDetectorHandlerprotected void
setLoggingFilter(org.apache.mina.core.filterchain.IoFilterAdapter filterLogging)
setLoggingFilterprotected void
setProtocolCodecFilter(org.apache.mina.filter.codec.ProtocolCodecFilter protocolCodecFilter)
setProtocolCodecFilter-
Methods inherited from class org.opennms.netmgt.provision.support.AsyncBasicDetector
expectBanner, find, getConversation, getIdleTime, isUseSSLFilter, send, setIdleTime, setUseSSLFilter, startsWith
-
Methods inherited from class org.opennms.netmgt.provision.support.AsyncAbstractDetector
detect
-
Methods inherited from class org.opennms.netmgt.provision.support.AbstractDetector
getIpMatch, getPort, getRetries, getServiceName, getTimeout, init, onInit, setIpMatch, setPort, setRetries, setServiceName, setTimeout
-
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.ServiceDetector
getIpMatch, getPort, getServiceName, getTimeout, init, setIpMatch, setPort, setServiceName, setTimeout
-
-
-
-
Constructor Detail
-
AsyncBasicDetectorMinaImpl
public AsyncBasicDetectorMinaImpl(java.lang.String serviceName, int port)
Constructor for AsyncBasicDetector.
- Type Parameters:
Request
- a Request object.Response
- a Response object.- Parameters:
serviceName
- aString
object.port
- a int.
-
AsyncBasicDetectorMinaImpl
public AsyncBasicDetectorMinaImpl(java.lang.String serviceName, int port, int timeout, int retries)
Constructor for AsyncBasicDetector.
- Parameters:
serviceName
- aString
object.port
- a int.timeout
- a int.retries
- a int.
-
-
Method Detail
-
dispose
public void dispose()
dispose
- Specified by:
dispose
in interfaceServiceDetector
- Specified by:
dispose
in classAbstractDetector
-
isServiceDetected
public final DetectFuture isServiceDetected(java.net.InetAddress address)
- Specified by:
isServiceDetected
in classAsyncAbstractDetector
-
setDetectorHandler
protected final void setDetectorHandler(BaseDetectorHandler<Request,Response> detectorHandler)
setDetectorHandler
- Parameters:
detectorHandler
- aBaseDetectorHandler
object.
-
createDetectorHandler
protected final org.apache.mina.core.service.IoHandler createDetectorHandler(DetectFutureMinaImpl future)
createDetectorHandler
- Parameters:
future
- aDetectFuture
object.- Returns:
- a
IoHandler
object.
-
setLoggingFilter
protected final void setLoggingFilter(org.apache.mina.core.filterchain.IoFilterAdapter filterLogging)
setLoggingFilter
- Parameters:
filterLogging
- aIoFilterAdapter
object.
-
getLoggingFilter
protected final org.apache.mina.core.filterchain.IoFilterAdapter getLoggingFilter()
getLoggingFilter
- Returns:
- a
IoFilterAdapter
object.
-
setProtocolCodecFilter
protected final void setProtocolCodecFilter(org.apache.mina.filter.codec.ProtocolCodecFilter protocolCodecFilter)
setProtocolCodecFilter
- Parameters:
protocolCodecFilter
- aProtocolCodecFilter
object.
-
getProtocolCodecFilter
protected final org.apache.mina.filter.codec.ProtocolCodecFilter getProtocolCodecFilter()
getProtocolCodecFilter
- Returns:
- a
ProtocolCodecFilter
object.
-
getDetectorHandler
protected final org.apache.mina.core.service.IoHandler getDetectorHandler()
getDetectorHandler
- Returns:
- a
IoHandler
object.
-
-