[GENIUS-18] Improvising Batching code Created: 06/Sep/16  Updated: 03/May/18  Resolved: 07/Apr/17

Status: Resolved
Project: genius
Component/s: General
Affects Version/s: (unspecified)
Fix Version/s: None

Type: Improvement
Reporter: yugandhar reddy kaku Assignee: yugandhar reddy kaku
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All



 Description   

Improvising Batching code :
A new concrete class(DefaultBatchHandler) should be written which will Implement "ResourceHandler" and provide the functionality of Resource Handler.

The current implementation requires modules to implement interface "ResourceHandler" for using Batching functionality, with the new implementation, this is not required. modules can register for batching passing the object of DefaultBatchHandler.

The below methods are exposed in class "ResourceBatchingManager" for the modules to use.

provide interfaces similar to databroker transaction interface.

public void put(String resourceType, InstanceIdentifier identifier, DataObject updatedData);
public void merge(String resourceType, InstanceIdentifier identifier, DataObject updatedData);
public void delete(String resourceType, InstanceIdentifier identifier);



 Comments   
Comment by Akash Sahu [ 07/Apr/17 ]

https://git.opendaylight.org/gerrit/#/c/51513/
Merged review

Generated at Wed Feb 07 19:59:42 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.