Class SalRoleServiceImpl
java.lang.Object
org.opendaylight.openflowplugin.impl.services.AbstractService<I,O>
org.opendaylight.openflowplugin.impl.services.AbstractSimpleService<SetRoleInput,SetRoleOutput>
org.opendaylight.openflowplugin.impl.services.sal.SalRoleServiceImpl
- All Implemented Interfaces:
SalRoleService
,org.opendaylight.yangtools.yang.binding.RpcService
public final class SalRoleServiceImpl
extends AbstractSimpleService<SetRoleInput,SetRoleOutput>
implements SalRoleService
-
Constructor Summary
ConstructorDescriptionSalRoleServiceImpl
(RequestContextStack requestContextStack, DeviceContext deviceContext) -
Method Summary
Modifier and TypeMethodDescriptionprotected OfHeader
buildRequest
(Xid xid, SetRoleInput input) com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<SetRoleOutput>>
setRole
(SetRoleInput input) Invokeset-role
RPC.Methods inherited from class org.opendaylight.openflowplugin.impl.services.AbstractSimpleService
createCallback
Methods inherited from class org.opendaylight.openflowplugin.impl.services.AbstractService
canUseSingleLayerSerialization, getDatapathId, getDeviceContext, getDeviceInfo, getDeviceRegistry, getEventIdentifier, getMessageSpy, getRequestContextStack, getTxFacade, getVersion, handleServiceCall, handleServiceCall, setEventIdentifier
-
Constructor Details
-
SalRoleServiceImpl
-
-
Method Details
-
buildRequest
- Specified by:
buildRequest
in classAbstractService<SetRoleInput,
SetRoleOutput>
-
setRole
public com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<SetRoleOutput>> setRole(SetRoleInput input) Description copied from interface:SalRoleService
Invokeset-role
RPC.Setting role to openflow device.
- Specified by:
setRole
in interfaceSalRoleService
- Parameters:
input
- ofset-role
- Returns:
- output of
set-role
-