Class TrsProviderHandler
- java.lang.Object
-
- org.eclipse.lyo.trs.client.handlers.TrsProviderHandler
-
- All Implemented Interfaces:
IProviderHandler
public class TrsProviderHandler extends Object implements IProviderHandler
Base class for every TRS provider. Handles all periodic operations for a TRS provider. This is the first version which was developed of a TRS provider which does not support any multi threading of A TRS provider's opreations The TRSProviderMultiThreaded class extends this class with support for multithreading.- Author:
- Omar
-
-
Constructor Summary
Constructors Constructor Description TrsProviderHandler(URI trsUriBase, ITrackedResourceClient trsClient, IProviderEventHandler handler)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected void
baseChangeEventsOptimization(List<ChangeEvent> compressedChangesList, List<URI> baseMembers)
Deprecated.String
toString()
void
update()
Implementation of the method inherited from the TRSTaskHandler class.
-
-
-
Constructor Detail
-
TrsProviderHandler
public TrsProviderHandler(URI trsUriBase, ITrackedResourceClient trsClient, IProviderEventHandler handler)
-
-
Method Detail
-
update
public void update()
Implementation of the method inherited from the TRSTaskHandler class. a call to the periodic processing of the change events is done. If an exception is thrown it's logged and the uri of the last processed change event is set to null. This means that during the next period the processing of the base will be done all over again- Specified by:
update
in interfaceIProviderHandler
-
baseChangeEventsOptimization
@Deprecated protected void baseChangeEventsOptimization(List<ChangeEvent> compressedChangesList, List<URI> baseMembers)
Deprecated.remove from the URI list the resources for which an event is already present in the change event list. Done to avoid processing base members uselessly- Parameters:
compressedChangesList
- the optimized list of change eventsbaseMembers
- the members of the base
-
-