Class BaseDetectorHandler<Request,Response>
- java.lang.Object
-
- org.apache.mina.core.service.IoHandlerAdapter
-
- org.opennms.netmgt.provision.support.BaseDetectorHandler<Request,Response>
-
- All Implemented Interfaces:
org.apache.mina.core.service.IoHandler
- Direct Known Subclasses:
TcpDetectorHandler
public class BaseDetectorHandler<Request,Response> extends org.apache.mina.core.service.IoHandlerAdapter
BaseDetectorHandler class.
- Version:
- $Id: $
- Author:
- Donald Desloge
-
-
Constructor Summary
Constructors Constructor Description BaseDetectorHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
exceptionCaught(org.apache.mina.core.session.IoSession session, Throwable cause)
AsyncClientConversation<Request,Response>
getConversation()
getConversationDetectFutureMinaImpl
getFuture()
getFuturevoid
messageReceived(org.apache.mina.core.session.IoSession session, Object message)
void
sessionClosed(org.apache.mina.core.session.IoSession session)
void
sessionCreated(org.apache.mina.core.session.IoSession session)
void
sessionIdle(org.apache.mina.core.session.IoSession session, org.apache.mina.core.session.IdleStatus status)
void
sessionOpened(org.apache.mina.core.session.IoSession session)
void
setConversation(AsyncClientConversation<Request,Response> conversation)
setConversationvoid
setFuture(DetectFutureMinaImpl future)
setFuture
-
-
-
Method Detail
-
setFuture
public void setFuture(DetectFutureMinaImpl future)
setFuture
- Type Parameters:
Request
- a Request object.Response
- a Response object.- Parameters:
future
- aDetectFuture
object.
-
getFuture
public DetectFutureMinaImpl getFuture()
getFuture
- Returns:
- a
DetectFuture
object.
-
sessionCreated
public void sessionCreated(org.apache.mina.core.session.IoSession session) throws Exception
- Specified by:
sessionCreated
in interfaceorg.apache.mina.core.service.IoHandler
- Overrides:
sessionCreated
in classorg.apache.mina.core.service.IoHandlerAdapter
- Throws:
Exception
-
sessionOpened
public void sessionOpened(org.apache.mina.core.session.IoSession session) throws Exception
- Specified by:
sessionOpened
in interfaceorg.apache.mina.core.service.IoHandler
- Overrides:
sessionOpened
in classorg.apache.mina.core.service.IoHandlerAdapter
- Throws:
Exception
-
sessionClosed
public void sessionClosed(org.apache.mina.core.session.IoSession session) throws Exception
- Specified by:
sessionClosed
in interfaceorg.apache.mina.core.service.IoHandler
- Overrides:
sessionClosed
in classorg.apache.mina.core.service.IoHandlerAdapter
- Throws:
Exception
-
sessionIdle
public void sessionIdle(org.apache.mina.core.session.IoSession session, org.apache.mina.core.session.IdleStatus status) throws Exception
- Specified by:
sessionIdle
in interfaceorg.apache.mina.core.service.IoHandler
- Overrides:
sessionIdle
in classorg.apache.mina.core.service.IoHandlerAdapter
- Throws:
Exception
-
exceptionCaught
public void exceptionCaught(org.apache.mina.core.session.IoSession session, Throwable cause) throws Exception
- Specified by:
exceptionCaught
in interfaceorg.apache.mina.core.service.IoHandler
- Overrides:
exceptionCaught
in classorg.apache.mina.core.service.IoHandlerAdapter
- Throws:
Exception
-
messageReceived
public void messageReceived(org.apache.mina.core.session.IoSession session, Object message) throws Exception
- Specified by:
messageReceived
in interfaceorg.apache.mina.core.service.IoHandler
- Overrides:
messageReceived
in classorg.apache.mina.core.service.IoHandlerAdapter
- Throws:
Exception
-
setConversation
public void setConversation(AsyncClientConversation<Request,Response> conversation)
setConversation
- Parameters:
conversation
- aAsyncClientConversation
object.
-
getConversation
public AsyncClientConversation<Request,Response> getConversation()
getConversation
- Returns:
- a
AsyncClientConversation
object.
-
-