public interface ConnectionAdapter extends OcpProtocolService, OcpExtensionService
| Modifier and Type | Method and Description |
|---|---|
void |
checkListeners()
Throws exception if any of required listeners is missing
|
Future<Boolean> |
disconnect()
disconnect corresponding RRH
|
void |
fireConnectionReadyNotification()
notify listener about connection ready-to-use event
|
InetSocketAddress |
getRemoteAddress() |
boolean |
isAlive() |
boolean |
isAutoRead() |
<T extends OutboundQueueHandler> |
registerOutboundQueueHandler(T handler,
int maxQueueDepth)
Registers a new bypass outbound queue
|
void |
setAutoRead(boolean autoRead)
sets option for automatic channel reading;
if set to false, incoming messages won't be read
|
void |
setConnectionReadyListener(ConnectionReadyListener connectionReadyListener)
set listener for connection became ready-to-use event
|
void |
setIdleTimeout(long idleTimeout)
marko.lai added, 2015/11/11
sets option for idle timeout millisecond;
|
void |
setMessageExtListener(OcpExtensionListener messageExtListener)
marko.lai added for OCP extension Indication, 2015/07/29
|
void |
setMessageListener(OcpProtocolListener messageListener) |
void |
setSystemListener(SystemNotificationsListener systemListener) |
createObj, deleteObj, getFault, getParam, getState, healthCheck, modifyParam, modifyState, reReset, setTimehello, reDirectFuture<Boolean> disconnect()
boolean isAlive()
InetSocketAddress getRemoteAddress()
void setMessageListener(OcpProtocolListener messageListener)
messageListener - here will be pushed all messages from RRHvoid setMessageExtListener(OcpExtensionListener messageExtListener)
messageListener - here will be pushed all messages from RRHvoid setSystemListener(SystemNotificationsListener systemListener)
systemListener - here will be pushed all system messages from libraryvoid checkListeners()
void fireConnectionReadyNotification()
void setConnectionReadyListener(ConnectionReadyListener connectionReadyListener)
connectionReadyListener - void setAutoRead(boolean autoRead)
boolean isAutoRead()
void setIdleTimeout(long idleTimeout)
@Beta <T extends OutboundQueueHandler> OutboundQueueHandlerRegistration<T> registerOutboundQueueHandler(T handler, int maxQueueDepth)
handler - maxQueueDepth - OutboundQueueHandlerRegistrationCopyright © 2016 OpenDaylight. All rights reserved.