It's all about the answers!

Ask a question

How to create Snapshot on stream using plain java api


Rajat Krishnan (7015) | asked Feb 23 '22, 6:32 a.m.
Hello,
Usecase :
I want to create snapshot on stream after every successful build, so is there plain java api available using which i can create snapshot on stream ? if possible could also share some supporting docs/code snippet for the same

What i have already tried is using CLI option as an alternative
lscm create snapshot "Stream Name" -u **** -P ******* -r https://local host/ccm -n SN_SnapshotName
Good News is by above option i can create snapshot successfully

Thanks & Best Regards

One answer



permanent link
Ralph Schoon (63.1k33645) | answered Feb 23 '22, 7:12 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
edited Feb 23 '22, 7:13 a.m.

 You can use this search to find a host of answers, including using the Plain Java Client Libraries (and the source code):


You can download the Plain Java Client Libraries from the jazz.net download page for EWM. You can also download the JavaDoc for that API on the same page. If you really want to be able to develop any EWM Java API or SDK, you should read through https://rsjazz.wordpress.com/2015/09/30/learning-to-fly-getting-started-with-the-rtc-java-apis/ and follow https://jazz.net/library/article/1000 at least the first lab to set up an environment where you can see the SDK source, examples and unit tests to search and be able to properly debug.


Comments
Ralph Schoon commented Feb 23 '22, 7:39 a.m. | edited Feb 23 '22, 7:44 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

I should mention that I think it is overkill to develop a plain Java Client Libraries application to create a snapshot during a build. If the build environment does not provide this as an option, like for example in the Jazz Build Engine, using the SCM command line (your LSCM call) would be a cheaper and supported way. 

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.