- Community Home
- >
- Software
- >
- HPE Morpheus Software
- >
- HPE Morpheus Enterprise Software
- >
- Re: Persistent custom Integration Information Stor...
Categories
Company
Local Language
Forums
Discussions
- Integrity Servers
- Server Clustering
- HPE NonStop Compute
- HPE Apollo Systems
- High Performance Computing
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Knowledge Base
Forums
Discussions
- Cloud Mentoring and Education
- Software - General
- HPE OneView
- HPE Ezmeral Software platform
- HPE OpsRamp Software
Knowledge Base
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2023 09:07 AM
06-01-2023 09:07 AM
Persistent custom Integration Information Storage in Cloud or computeServer objects?
I’m new to plugin creation and am wondering if there are any ways to store additional persistent information that pertain to my plugin integration on Cloud or computeServer objects?
Imagine a plugin that interacts with 3rd party monitoring tool that assigns unique Ids to Cloud/computeServer objects when my plugin would add such object into the 3rd party tool. My plugin would need to use these unique Ids when further interacting with that 3rd party tool for change and remove operations. I’d like to keep those unique Ids with the Cloud or computerServer object and even be able to show that special information on a custom tab in the Cloud or ComputeServer object.
Are the MorpheusModel class getConfig(), setConfig(), getConfigProperty() and setConfigProperty() inherited methods intended/usable for adding such information to a Cloud or computeServer object?
If they are, when to use the associated dirty/clean method calls when setting properties?
If not, are there any other ways to accomplish this apart from maintaining a separate backend DB tying Cloud/computeServer object information to the 3rd party tool unique IDs?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2023 12:58 AM
06-02-2023 12:58 AM
Re: Persistent custom Integration Information Storage in Cloud or computeServer objects?
You should not need to manually markDirty for the abstract setConfig method.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2023 07:25 AM
06-02-2023 07:25 AM
Re: Persistent custom Integration Information Storage in Cloud or computeServer objects?
Thank you Chris for your explanations so far.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2023 12:38 AM
06-02-2023 12:38 AM
Re: Persistent custom Integration Information Storage in Cloud or computeServer objects?
I have not used this yet for my own Plugins and a quick search has not yielded any examples. Time permitting I will try and get you an example. Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2023 10:49 AM
06-01-2023 10:49 AM
Re: Persistent custom Integration Information Storage in Cloud or computeServer objects?
acquireLock(): Ah, I can see why that would be important indeed. How does the isDirty/markDirty/markClean methods factor in with calls to setConfig()? Do I have to worry about doing a markDirty() after (before?) a setConfig() for example?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2023 10:47 AM
06-01-2023 10:47 AM
Re: Persistent custom Integration Information Storage in Cloud or computeServer objects?
Looking at the API page of MorpheusReferenceDataService and it’s methods doesn’t give me a good understanding of how I can/must use, for example, it’s create() method and what fields in the list given as an argument are mandatory (InternalId, account, code, etc.?). Is there a piece of example code floating around some place?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2023 09:28 AM
06-01-2023 09:28 AM
Re: Persistent custom Integration Information Storage in Cloud or computeServer objects?
The MorpheusReferenceData service can be used to store reference data for arbitrary objects. You can link the reference data to the morpheus object you want to relate it too.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2023 09:39 AM
06-01-2023 09:39 AM
Re: Persistent custom Integration Information Storage in Cloud or computeServer objects?
The setConfig method could also be used for this purpose. I have worked with a user who uses setConfig for a similar purpose, however they had to be careful to enforce sequential read/write to the config properties from the application logic, and so they took advantage of the acquireLock method within the MorpheusContext to control concurrency when reading/writing to config for a specific resource. You could also take advantage of some of the properties of a ComputeServer object, such as internalId, depending on what your Plugin does.