* SalRpcService for device. Every implementation has to be registered for
* Configurational/DS tree path.
*/
-public interface ForwardingRulesCommiter <D extends DataObject> extends AutoCloseable, ClusteredDataTreeChangeListener<D> {
+public interface ForwardingRulesCommiter<D extends DataObject> extends AutoCloseable,
+ ClusteredDataTreeChangeListener<D> {
/**
* Method removes DataObject which is identified by InstanceIdentifier
* @return A future associated with RPC task. {@code null} is set to the
* future if this method does not invoke RPC.
*/
- Future<? extends RpcResult> add(InstanceIdentifier<D> identifier, D add,
+ Future<? extends RpcResult<?>> add(InstanceIdentifier<D> identifier, D add,
InstanceIdentifier<FlowCapableNode> nodeIdent);
- Future<? extends RpcResult> removeWithResult(InstanceIdentifier<D> identifier, D del,
+ Future<? extends RpcResult<?>> removeWithResult(InstanceIdentifier<D> identifier, D del,
InstanceIdentifier<FlowCapableNode> nodeIdent);
* org.opendaylight.openflowplugin.applications.frm
*
* ForwardingRulesManager
- * It represent a central point for whole modul. Implementation
+ * It represents a central point for whole module. Implementation
* Flow Provider registers the link FlowChangeListener} and it holds all needed
* services for link FlowChangeListener}.
*
*/
public interface ForwardingRulesManager extends AutoCloseable {
- public void start();
+ void start();
/**
* Method returns information :
* @param ident - the key of the node
* @return boolean - true if device is connected
*/
- public boolean isNodeActive(InstanceIdentifier<FlowCapableNode> ident);
+ boolean isNodeActive(InstanceIdentifier<FlowCapableNode> ident);
/**
* Method returns information :
* @param ident - the key of the node
* @return boolean - true if device is present in operational data store
*/
- public boolean checkNodeInOperationalDataStore(InstanceIdentifier<FlowCapableNode> ident);
+ boolean checkNodeInOperationalDataStore(InstanceIdentifier<FlowCapableNode> ident);
/**
* Method add new {@link FlowCapableNode} to active Node Holder.
*
* @param ident - the key of the node
*/
- public void registrateNewNode(InstanceIdentifier<FlowCapableNode> ident);
+ void registrateNewNode(InstanceIdentifier<FlowCapableNode> ident);
/**
* Method remove disconnected {@link FlowCapableNode} from active Node
*
* @param ident - the key of the node
*/
- public void unregistrateNode(InstanceIdentifier<FlowCapableNode> ident);
+ void unregistrateNode(InstanceIdentifier<FlowCapableNode> ident);
/**
* Method returns generated transaction ID, which is unique for
*
* @return String transactionID for RPC transaction identification
*/
- public String getNewTransactionId();
+ String getNewTransactionId();
/**
* Method returns Read Transacion. It is need for Node reconciliation only.
*
* @return ReadOnlyTransaction
*/
- public ReadOnlyTransaction getReadTranaction();
+ ReadOnlyTransaction getReadTranaction();
/**
* Flow RPC service
*
* @return
*/
- public SalFlowService getSalFlowService();
+ SalFlowService getSalFlowService();
/**
* Group RPC service
*
* @return
*/
- public SalMeterService getSalMeterService();
+ SalMeterService getSalMeterService();
/**
* Table RPC service
*
* @return
*/
- public SalTableService getSalTableService();
+ SalTableService getSalTableService();
/**
* Content definition method and prevent code duplicity in Reconcil
* @return ForwardingRulesCommiter<Flow>
*/
- public ForwardingRulesCommiter<Flow> getFlowCommiter();
+ ForwardingRulesCommiter<Flow> getFlowCommiter();
/**
* Content definition method and prevent code duplicity in Reconcil
* @return ForwardingRulesCommiter<Group>
*/
- public ForwardingRulesCommiter<Group> getGroupCommiter();
+ ForwardingRulesCommiter<Group> getGroupCommiter();
/**
* Content definition method and prevent code duplicity
* @return ForwardingRulesCommiter<Meter>
*/
- public ForwardingRulesCommiter<Meter> getMeterCommiter();
+ ForwardingRulesCommiter<Meter> getMeterCommiter();
/**
* Content definition method and prevent code duplicity
* @return ForwardingRulesCommiter<Table>
*/
- public ForwardingRulesCommiter<TableFeatures> getTableFeaturesCommiter();
+ ForwardingRulesCommiter<TableFeatures> getTableFeaturesCommiter();
/**
* Content definition method
* @return FlowNodeReconciliation
*/
- public FlowNodeReconciliation getFlowNodeReconciliation();
+ FlowNodeReconciliation getFlowNodeReconciliation();
/**
* Returns the config-subsystem/fallback configuration of FRM
* @return ForwardingRulesManagerConfig
*/
- public ForwardingRulesManagerConfig getConfiguration();
+ ForwardingRulesManagerConfig getConfiguration();
/**
* Method checks if *this* instance of openflowplugin is owner of
* the given openflow node.
* @return True if owner, else false
*/
- public boolean isNodeOwner(InstanceIdentifier<FlowCapableNode> ident);
+ boolean isNodeOwner(InstanceIdentifier<FlowCapableNode> ident);
/**
* Content definition method and prevent code duplicity
* @return FlowNodeConnectorInventoryTranslatorImpl
*/
- public FlowNodeConnectorInventoryTranslatorImpl getFlowNodeConnectorInventoryTranslatorImpl();
+ FlowNodeConnectorInventoryTranslatorImpl getFlowNodeConnectorInventoryTranslatorImpl();
}
}
@Override
- public Future<? extends RpcResult> add(
+ public Future<? extends RpcResult<?>> add(
final InstanceIdentifier<TableFeatures> identifier,
final TableFeatures addDataObj,
final InstanceIdentifier<FlowCapableNode> nodeIdent) {
}
@Override
- public void createStaleMarkEntity(InstanceIdentifier<TableFeatures> identifier, TableFeatures del, InstanceIdentifier<FlowCapableNode> nodeIdent) {
+ public void createStaleMarkEntity(InstanceIdentifier<TableFeatures> identifier, TableFeatures del,
+ InstanceIdentifier<FlowCapableNode> nodeIdent) {
LOG.debug("NO-OP");
}
@Override
- public Future<? extends RpcResult> removeWithResult(InstanceIdentifier<TableFeatures> identifier, TableFeatures del, InstanceIdentifier<FlowCapableNode> nodeIdent) {
+ public Future<? extends RpcResult<?>> removeWithResult(InstanceIdentifier<TableFeatures> identifier,
+ TableFeatures del, InstanceIdentifier<FlowCapableNode> nodeIdent) {
return null;
}