Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

0 votes



One answer

Permanent link
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);

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,938
× 382

Question asked: Aug 05 '19, 1:34 a.m.

Question was seen: 2,502 times

Last updated: Aug 09 '19, 3:35 p.m.

Confirmation Cancel Confirm