IS Documentation says a snapshot of all pipeline fields will be saved in memory under the key provided by $name. My Question here is where in memory does this pipeline gets saved? I tried to save one file “memory.xml” using this savePipeline Service. But when I tried to search the entire IS folder, I was not able to see this file created anywhere. Not in Pipeline folder too. But I could retrieve the contents using pub.flow:restorePipeline service. Can anyone help me in understanding where in memory does this pipeline file gets saved? Thanks, Johnrose
[FONT=Arial][SIZE=5][FONT=Arial][SIZE=5]
Thanks for replying to my thread. I have few followup queries on the same.
When you say it is stored as static Hastable of the pub.flow class, does it store it in any physical location, or it just reads them from memory during Run-Time ?
Can you please guide me to the documents/website from where you could get this information.
no, as stated in the official documentation of the service:
After a successful invocation of savePipeline, a snapshot of all pipeline fields will be saved in memory under the key provided by $name. Note that since the pipeline is saved to memory, it will not be available after a server restart.
it only appears in the memory of the JVM. Therefore as the JVM (roughly equivalent to the IS) is shut down, it is just lost. It may be important to note that until then, it stays in memory, so it may not be wise to store large pipelines and/or a great number of them this way.
Actually I decompiled the flow.class file to see the implementation directly now that I think of it I don’t know if that’s legal…
John,
I think you might be confusing the two services. They store the pipeline differently depending on which one you call. savePipeline goes to memory, savePipelineToFile goes to the filesystem.
If you want to see the pipeline on the filesystem then call savePipelineToFile. It generally puts it in a directory called pipeline under the integrationserver folder with the name that you give it.