[Hawkular-dev] resource config and operations
Lukas Krejci
lkrejci at redhat.com
Tue Jun 9 04:15:21 EDT 2015
I am not 100% sure it is a good idea to store maps or other "rich" types as
property values in inventory as that may have influence on their indexability
or (altogether the ability to persist such objects).
There are for sure performance implications for doing so but we need to wait
for those until we have Titan running in dist. The in-memory database we're
using atm should be taken with a grain of salt for any supported features -
for one - transactions are only simulated using locks and property values are
just java-serialized.
On Monday, June 08, 2015 12:27:52 John Mazzitelli wrote:
> I am working in my own branch, but am about to introduce resource
> configuration and operations to the resource type metadata. This was in
> part due to the UI folks needing the hostname to show in the GUI.
>
> I wanted to let people know what this looks like - speak now if you see
> problems.
>
> The resourceType will now have as part of its attached metadata a list named
> "resourceConfiguration" which consists of config property types (today,
> there is only "name" associated with resource config property types, but
> you can envision other things like "dataType" (for boolean, integers,
> etc)).
>
> There is also a list of operations (today, consists of only a name and
> optional "operationName").
>
> The JSON for resourceType looks like this inside inventory (this is for the
> top level "WildFly Server" type):
>
> "tenant": "28026b36-8fe4-4332-84c8-524e173a68bf",
> "id": "WildFly Server",
> "version": "0.1",
> "properties":
> {
> "name": "WildFly Server",
> "operations":
> [
> {
> "name": "Reload Server",
> "operationName": "reload"
> }
> ],
> "resourceConfiguration":
> [
> {
> "name": "Hostname"
> },
> {
> "name": "Max Heap"
> },
> {
> "name": "Version"
> }
> ]
> }
>
> A resource of this type would look like:
>
> "tenant": "28026b36-8fe4-4332-84c8-524e173a68bf",
> "environment": "test",
> "feed": "mazztower",
> "id": "[Local Host~/]",
> "type": <<<what I showed above>>>,
> "properties":
> {
> "name": "WildFly Server [Local Host] [mazztower]",
> "resourceConfiguration":
> [
> {
> "name": "Version",
> "value": "8.2.0.Final"
> },
> {
> "name": "Hostname",
> "value": "mazztower"
> },
> {
> "name": "Max Heap",
> "value": "477626368"
> }
> ]
> }
> _______________________________________________
> hawkular-dev mailing list
> hawkular-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/hawkular-dev
More information about the hawkular-dev
mailing list