public abstract class AbstractService<I,O> extends Object
Modifier and Type | Method and Description |
---|---|
protected abstract OfHeader |
buildRequest(Xid xid,
I input) |
boolean |
canUseSingleLayerSerialization() |
protected abstract com.google.common.util.concurrent.FutureCallback<OfHeader> |
createCallback(RequestContext<O> context,
Class<?> requestType) |
BigInteger |
getDatapathId() |
DeviceContext |
getDeviceContext()
Deprecated.
|
DeviceInfo |
getDeviceInfo() |
DeviceRegistry |
getDeviceRegistry() |
EventIdentifier |
getEventIdentifier() |
MessageSpy |
getMessageSpy() |
RequestContextStack |
getRequestContextStack() |
TxFacade |
getTxFacade() |
short |
getVersion() |
com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<O>> |
handleServiceCall(I input) |
com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<O>> |
handleServiceCall(I input,
Function<OfHeader,Boolean> isComplete) |
void |
setEventIdentifier(EventIdentifier eventIdentifier) |
public boolean canUseSingleLayerSerialization()
public EventIdentifier getEventIdentifier()
public void setEventIdentifier(EventIdentifier eventIdentifier)
public short getVersion()
public BigInteger getDatapathId()
public RequestContextStack getRequestContextStack()
@Deprecated public DeviceContext getDeviceContext()
public DeviceRegistry getDeviceRegistry()
public DeviceInfo getDeviceInfo()
public TxFacade getTxFacade()
public MessageSpy getMessageSpy()
protected abstract OfHeader buildRequest(Xid xid, I input) throws ServiceException
ServiceException
protected abstract com.google.common.util.concurrent.FutureCallback<OfHeader> createCallback(RequestContext<O> context, Class<?> requestType)
public com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<O>> handleServiceCall(@Nonnull I input)
Copyright © 2018 OpenDaylight. All rights reserved.