Re: Created Instances deleted after same time.
Kirk Augustin <[email protected]>
| Newsgroups | gmane.network.open-pegasus.general |
|---|---|
| Message-ID | <[email protected]> |
I did not mean that xml would have any advantages concerning Pegasus, but just that xml would allow you to choose some easily parsed tags and record identifiers, for your own convenience. You could write out in any arbitrary binary or text format you want. A sample program would not likely help you very much unless you happen to be writing the exact same provider, for the same profile, which would be very unlikely. But there are lots of free xml parsers. http://wdvl.internet.com/Software/XML/parsers.html Kirk Augustin Portland, OR 97231 ________________________________ From: kamal jeera <[email protected]> To: Kirk Augustin <[email protected]> Cc: Ricardo Mendes <[email protected]>; [email protected] Sent: Fri, July 16, 2010 12:12:35 PM Subject: Re: Created Instances deleted after same time. A database would be ideal, but a simple xml text file would do fine. >>>> Can any one point to any sample for that? I would like to test that with a small pgm thanks On Tue, Jul 13, 2010 at 9:34 AM, Kirk Augustin <[email protected]> wrote: It is hard to be sure what you mean because you did not tell us very much. >It almost seems you are saying the providers themselves are disappearing. >But I assume what you must mean is that the instances a client creates through >your provider disappear. >And there is a common misunderstanding people make that immediately comes to >mind. >This misconception is that the CIMOM stores instances. >It does not. >It is the responsibility of the provider to create permanent storage for >instances. >The mistake people writing their first provider make, is that they just use >aspects of the programming language to create memory storage for instances, like >NEW and ALLOC. >That won't work, because providers have to be unloaded from memory after some >period of no access. >Otherwise you would have hundreds of providers accumulating in memory, and >systems would run out of resources. >So what you have to do is create some sort of nonvolatile storage for instances. >A database would be ideal, but a simple xml text file would do fine. >Then you need to check and load from this nonvolatile source, whenever a client >asks your provider for instance access. > > Kirk & Trish Augustin >11821 NW McNamee Rd >Portland, OR 97231 > > > > > ________________________________ From: Ricardo Mendes <[email protected]> > >To: [email protected] >Sent: Tue, July 13, 2010 8:32:36 AM > >Subject: Created Instances deleted after same time. > > >Hi All, > >I'm facing a strange problem in Pegasus, because I create the Provider >instances, and some time after they seems to be deleted without any >intervention. > >Thanks in advance, >Ricardo > >