RTC Java api always checking for new snapshots on a stream
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
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
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.