public class DeviceContextImpl extends Object implements DeviceContext, ExtensionConverterProviderKeeper
| Modifier and Type | Method and Description |
|---|---|
<T extends org.opendaylight.yangtools.yang.binding.DataObject> |
addDeleteToTxChain(org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType store,
org.opendaylight.yangtools.yang.binding.InstanceIdentifier<T> path)
Method creates delete operation for provided path in underlying transaction chain.
|
boolean |
canUseSingleLayerSerialization()
Checks if device and controller supports single layer serialization.
|
void |
close() |
com.google.common.util.concurrent.ListenableFuture<Void> |
closeServiceInstance() |
<T> RequestContext<T> |
createRequestContext()
Method returns new request context for current request.
|
DeviceFlowRegistry |
getDeviceFlowRegistry()
Method exposes flow registry used for storing flow ids identified by calculated flow hash.
|
DeviceGroupRegistry |
getDeviceGroupRegistry()
Method exposes device group registry used for storing group ids.
|
DeviceInfo |
getDeviceInfo()
Get device info.
|
DeviceMeterRegistry |
getDeviceMeterRegistry()
Method exposes device meter registry used for storing meter ids.
|
DeviceState |
getDeviceState()
Method provides state of device represented by this device context.
|
ExtensionConverterProvider |
getExtensionConverterProvider()
Returns the extension converters registry access point for by inner infrastructure.
|
org.opendaylight.mdsal.singleton.common.api.ServiceGroupIdentifier |
getIdentifier() |
MessageSpy |
getMessageSpy()
Gets message spy.
|
<T extends OfHeader> |
getMultiMsgCollector(RequestContext<List<T>> requestContext)
Gets multi msg collector.
|
ConnectionContext |
getPrimaryConnectionContext()
Getter.
|
org.opendaylight.controller.md.sal.binding.api.ReadOnlyTransaction |
getReadTransaction()
Method exposes transaction created for device
represented by this context.
|
boolean |
initialSubmitTransaction()
Method for initial submit transaction after successful initial gathering.
|
void |
instantiateServiceInstance() |
boolean |
isTransactionsEnabled()
Method returns true if transaction chain manager is enabled.
|
void |
onPublished()
Indicates that device context is fully published (e.g.: packetIn messages should be passed).
|
void |
onStateAcquired(ContextChainState state)
Event triggered on context chain state change.
|
TranslatorLibrary |
oook()
Getter.
|
boolean |
processAlienMessage(OfHeader message)
Method processes alien message from device.
|
void |
processExperimenterMessage(ExperimenterMessage notification)
Processing of experimenter symmetric message from device.
|
void |
processFlowRemovedMessage(FlowRemoved flowRemoved)
Method process async flow removed from device.
|
void |
processPacketInMessage(PacketInMessage packetInMessage)
Method process async packet in from device.
|
void |
processPortStatusMessage(PortStatusMessage portStatus)
Method process async port status from device.
|
void |
processReply(OfHeader ofHeader)
Method that set future to context in Map.
|
void |
processReply(Xid xid,
List<? extends OfHeader> ofHeaderList)
Method that set future to context in Map.
|
void |
registerMastershipWatcher(ContextChainMastershipWatcher newWatcher)
Registers mastership change listener to context.
|
void |
setExtensionConverterProvider(ExtensionConverterProvider extensionConverterProvider)
Sets the ExtensionConverterProvider.
|
void |
setNotificationPublishService(org.opendaylight.controller.md.sal.binding.api.NotificationPublishService notificationPublishService)
Sets notification publish service.
|
boolean |
submitTransaction()
Method submits Transaction to DataStore.
|
boolean |
syncSubmitTransaction()
Method submits Transaction to DataStore and wait till completes by doing get on tx future.
|
void |
updatePacketInRateLimit(long upperBound)
change packetIn rate limiter borders.
|
<T extends org.opendaylight.yangtools.yang.binding.DataObject> |
writeToTransaction(org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType store,
org.opendaylight.yangtools.yang.binding.InstanceIdentifier<T> path,
T data)
Method creates put operation using provided data in underlying transaction chain.
|
<T extends org.opendaylight.yangtools.yang.binding.DataObject> |
writeToTransactionWithParentsSlow(org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType store,
org.opendaylight.yangtools.yang.binding.InstanceIdentifier<T> path,
T data)
Method creates put operation using provided data in underlying transaction
chain and flag to create missing parents.
|
public boolean initialSubmitTransaction()
DeviceContextinitialSubmitTransaction in interface DeviceContextpublic DeviceState getDeviceState()
DeviceContextgetDeviceState in interface DeviceContextDeviceStatepublic org.opendaylight.controller.md.sal.binding.api.ReadOnlyTransaction getReadTransaction()
TxFacadegetReadTransaction in interface TxFacadepublic boolean isTransactionsEnabled()
TxFacadeisTransactionsEnabled in interface TxFacadepublic <T extends org.opendaylight.yangtools.yang.binding.DataObject> void writeToTransaction(org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType store,
org.opendaylight.yangtools.yang.binding.InstanceIdentifier<T> path,
T data)
TxFacadewriteToTransaction in interface TxFacadepublic <T extends org.opendaylight.yangtools.yang.binding.DataObject> void writeToTransactionWithParentsSlow(org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType store,
org.opendaylight.yangtools.yang.binding.InstanceIdentifier<T> path,
T data)
TxFacadewriteToTransactionWithParentsSlow in interface TxFacadepublic <T extends org.opendaylight.yangtools.yang.binding.DataObject> void addDeleteToTxChain(org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType store,
org.opendaylight.yangtools.yang.binding.InstanceIdentifier<T> path)
TxFacadeaddDeleteToTxChain in interface TxFacadepublic boolean submitTransaction()
TxFacadesubmitTransaction in interface TxFacadepublic boolean syncSubmitTransaction()
TxFacadesyncSubmitTransaction in interface TxFacadepublic ConnectionContext getPrimaryConnectionContext()
DeviceContextgetPrimaryConnectionContext in interface DeviceContextpublic DeviceFlowRegistry getDeviceFlowRegistry()
DeviceRegistrygetDeviceFlowRegistry in interface DeviceRegistrypublic DeviceGroupRegistry getDeviceGroupRegistry()
DeviceRegistrygetDeviceGroupRegistry in interface DeviceRegistrypublic DeviceMeterRegistry getDeviceMeterRegistry()
DeviceRegistrygetDeviceMeterRegistry in interface DeviceRegistrypublic void processReply(OfHeader ofHeader)
DeviceReplyProcessorprocessReply in interface DeviceReplyProcessorofHeader - openflow headerpublic void processReply(Xid xid, List<? extends OfHeader> ofHeaderList)
DeviceReplyProcessorprocessReply in interface DeviceReplyProcessorxid - xidofHeaderList - openflow header listpublic void processFlowRemovedMessage(FlowRemoved flowRemoved)
DeviceReplyProcessorprocessFlowRemovedMessage in interface DeviceReplyProcessorflowRemoved - flow removedpublic void processPortStatusMessage(PortStatusMessage portStatus)
DeviceReplyProcessorprocessPortStatusMessage in interface DeviceReplyProcessorportStatus - port statuspublic void processPacketInMessage(PacketInMessage packetInMessage)
DeviceReplyProcessorprocessPacketInMessage in interface DeviceReplyProcessorpacketInMessage - packet in messagepublic void processExperimenterMessage(ExperimenterMessage notification)
DeviceReplyProcessorprocessExperimenterMessage in interface DeviceReplyProcessornotification - notificationpublic boolean processAlienMessage(OfHeader message)
DeviceReplyProcessorprocessAlienMessage in interface DeviceReplyProcessormessage - alien messagepublic TranslatorLibrary oook()
DeviceContextoook in interface DeviceContextpublic void setNotificationPublishService(org.opendaylight.controller.md.sal.binding.api.NotificationPublishService notificationPublishService)
DeviceContextsetNotificationPublishService in interface DeviceContextnotificationPublishService - the notification publish servicepublic MessageSpy getMessageSpy()
DeviceContextgetMessageSpy in interface DeviceContextpublic void onPublished()
DeviceContextonPublished in interface DeviceContextpublic <T extends OfHeader> MultiMsgCollector<T> getMultiMsgCollector(RequestContext<List<T>> requestContext)
DeviceContextgetMultiMsgCollector in interface DeviceContextT - the type parameterrequestContext - the request contextpublic void updatePacketInRateLimit(long upperBound)
DeviceContextupdatePacketInRateLimit in interface DeviceContextupperBound - max amount of outstanding packetInspublic void setExtensionConverterProvider(ExtensionConverterProvider extensionConverterProvider)
ExtensionConverterProviderKeepersetExtensionConverterProvider in interface ExtensionConverterProviderKeeperextensionConverterProvider - the ExtensionConverterProviderpublic ExtensionConverterProvider getExtensionConverterProvider()
ExtensionConverterProviderKeepergetExtensionConverterProvider in interface ExtensionConverterProviderKeeperpublic com.google.common.util.concurrent.ListenableFuture<Void> closeServiceInstance()
closeServiceInstance in interface org.opendaylight.mdsal.singleton.common.api.ClusterSingletonServicepublic DeviceInfo getDeviceInfo()
OFPContextgetDeviceInfo in interface OFPContextpublic void registerMastershipWatcher(@Nonnull ContextChainMastershipWatcher newWatcher)
OFPContextregisterMastershipWatcher in interface OFPContextnewWatcher - mastership change listener@Nonnull public org.opendaylight.mdsal.singleton.common.api.ServiceGroupIdentifier getIdentifier()
getIdentifier in interface org.opendaylight.yangtools.concepts.Identifiable<org.opendaylight.mdsal.singleton.common.api.ServiceGroupIdentifier>public void close()
close in interface AutoCloseableclose in interface OFPContextpublic boolean canUseSingleLayerSerialization()
DeviceContextcanUseSingleLayerSerialization in interface DeviceContextpublic void instantiateServiceInstance()
instantiateServiceInstance in interface org.opendaylight.mdsal.singleton.common.api.ClusterSingletonService@Nullable public <T> RequestContext<T> createRequestContext()
RequestContextStackcreateRequestContext in interface RequestContextStackpublic void onStateAcquired(ContextChainState state)
ContextChainStateListeneronStateAcquired in interface ContextChainStateListenerstate - context chain stateCopyright © 2019 OpenDaylight. All rights reserved.