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
Constructors Constructor Description SalRoleServiceImpl(RequestContextStack requestContextStack, DeviceContext deviceContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected OfHeaderbuildRequest(Xid xid, SetRoleInput input)com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<SetRoleOutput>>setRole(SetRoleInput input)Invokeset-roleRPC.-
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 Detail
-
SalRoleServiceImpl
public SalRoleServiceImpl(RequestContextStack requestContextStack, DeviceContext deviceContext)
-
-
Method Detail
-
buildRequest
protected OfHeader buildRequest(Xid xid, SetRoleInput input)
- Specified by:
buildRequestin 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:SalRoleServiceInvokeset-roleRPC.Setting role to openflow device.- Specified by:
setRolein interfaceSalRoleService- Parameters:
input- ofset-role- Returns:
- output of
set-role
-
-