|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RpcHandler
This interface defines the methods useful for handling the sending of RPC commands and the receiving of RPC replies.
Method Summary | |
---|---|
Session |
getSession()
Get the session for this connection. |
int |
sendRpc(Rpc operation)
Send a RPC operation. |
void |
sendRpc(Rpc operation,
RpcReplySpecificListener listener)
Send a RPC operation specifying a listener that will intercept the RPC reply. |
RpcReply |
sendSyncRpc(Rpc operation)
Send an operation and waits until you get a reply. |
void |
setNotificationsListener(NotificationsListener listener)
Set the Notifications listener that will intercept Netconf notifications. |
void |
setRpcReplyListener(RpcReplyListener listener)
Set the general listener of RPC replies that will intercept RPC replies to which there is no direct association with an operation. |
Method Detail |
---|
RpcReply sendSyncRpc(Rpc operation) throws java.io.IOException
operation
- The RPC operation.
java.io.IOException
- throws this exception when the connection is no
longer active before and during the exchange of messages.int sendRpc(Rpc operation) throws java.io.IOException
operation
- The RPC operation.
java.io.IOException
- Throws this exception when the connection is no
longer active before and during the exchange of messages.setRpcReplyListener(RpcReplyListener listener)
void sendRpc(Rpc operation, RpcReplySpecificListener listener) throws java.io.IOException
operation
- The RPC operation.listener
- The listener that will intercept the RPC reply.
java.io.IOException
- Throws this exception when the connection is no
longer active before and during the exchange of messages.void setRpcReplyListener(RpcReplyListener listener)
listener
- The listener that will intercept the RPC replies.void setNotificationsListener(NotificationsListener listener)
listener
- The listener that will intercept the Netconf notifications.Session getSession()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |