Class TrsProviderHandler
java.lang.Object
org.eclipse.lyo.trs.client.handlers.TrsProviderHandler
- All Implemented Interfaces:
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
ConstructorsConstructorDescriptionTrsProviderHandler
(URI trsUriBase, ITrackedResourceClient trsClient, IProviderEventHandler handler) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
baseChangeEventsOptimization
(List<ChangeEvent> compressedChangesList, List<URI> baseMembers) Deprecated.toString()
void
update()
Implementation of the method inherited from the TRSTaskHandler class. a call to the periodic processing of the change events is done.
-
Constructor Details
-
TrsProviderHandler
public TrsProviderHandler(URI trsUriBase, ITrackedResourceClient trsClient, IProviderEventHandler handler)
-
-
Method Details
-
toString
-
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
-