It's all about the answers!

Ask a question

RTC Java api always checking for new snapshots on a stream


Raj Kumar (21217) | asked Aug 05 '19, 1:34 a.m.

I want to check for new snapshot(last fresh snapshot) for given stream using java api.

Any code example would be great.

Thanks

One answer



permanent link
David Lafreniere (4.8k7) | answered Aug 09 '19, 3:35 p.m.
FORUM MODERATOR / JAZZ DEVELOPER
There is no API to find the 'last' snapshot of a workspace/stream... this question doesn't make as much sense as the owner of the snapshot can be changed.

You can still find snapshots owned by a workspace/stream though.
See the following client-side API:
      
IBaselineSetSearchCriteria baselineSetSearchCriteria = IBaselineSetSearchCriteria.FACTORY.newInstance();
baselineSetSearchCriteria.setOwnerWorkspaceOptional(streamICareAbout);
baselineSetSearchCriteria.setModifiedAfterOptional(date); // This is optional

List snapshotHandles = workspaceManager.findBaselineSets(baselineSetSearchCriteria, max, monitor);

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.