Class RoleService
java.lang.Object
org.opendaylight.openflowplugin.impl.services.AbstractService<I,O>
org.opendaylight.openflowplugin.impl.services.AbstractSimpleService<RoleRequestInputBuilder,RoleRequestOutput>
org.opendaylight.openflowplugin.impl.services.RoleService
-
Constructor Summary
ConstructorDescriptionRoleService
(RequestContextStack requestContextStack, DeviceContext deviceContext, Class<RoleRequestOutput> clazz) -
Method Summary
Modifier and TypeMethodDescriptionprotected OfHeader
buildRequest
(Xid xid, RoleRequestInputBuilder input) com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.Uint64>
getGenerationIdFromDevice
(org.opendaylight.yangtools.yang.common.Uint8 version) com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<SetRoleOutput>>
submitRoleChange
(OfpRole ofpRole, org.opendaylight.yangtools.yang.common.Uint8 version, org.opendaylight.yangtools.yang.common.Uint64 generationId) 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
-
RoleService
public RoleService(RequestContextStack requestContextStack, DeviceContext deviceContext, Class<RoleRequestOutput> clazz)
-
-
Method Details
-
buildRequest
- Specified by:
buildRequest
in classAbstractService<RoleRequestInputBuilder,
RoleRequestOutput>
-
getGenerationIdFromDevice
public com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.Uint64> getGenerationIdFromDevice(org.opendaylight.yangtools.yang.common.Uint8 version) -
submitRoleChange
public com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<SetRoleOutput>> submitRoleChange(OfpRole ofpRole, org.opendaylight.yangtools.yang.common.Uint8 version, org.opendaylight.yangtools.yang.common.Uint64 generationId)
-