Skip to content

Instantly share code, notes, and snippets.

@maeste
Created March 15, 2011 13:59
Show Gist options
  • Select an option

  • Save maeste/870742 to your computer and use it in GitHub Desktop.

Select an option

Save maeste/870742 to your computer and use it in GitHub Desktop.
/profile=default/subsystem=transactions:read-resource
{
"outcome" => "success",
"result" => {
"core-environment" => {
"socket-binding" => "txn-socket-process-id",
"node-identifier" => undefined
},
"recovery-environment" => {
"socket-binding" => "txn-recovery-environment",
"status-socket-binding" => "txn-status-manager"
},
"coordinator-environment" => {"enable-statistics" => undefined}
},
"compensating-operation" => undefined
}
@kabir
Copy link
Copy Markdown

kabir commented Mar 15, 2011

[/] /profile=default/subsystem=transactions:read-resource-description(recursive=1, operations=1)
{
"outcome" => "success",
"result" => {
"description" => "The configuration of the transactions subsystem.",
"head-comment-allowed" => true,
"tail-comment-allowed" => true,
"namespace" => "urn:jboss:domain:transactions:1.0",
"attributes" => {
"core-environment" => {
"description" => "The core environment configuration.",
"type" => OBJECT,
"required" => true,
"value-type" => {
"node-identifier" => {
"description" => "Used to set the node identifier on the core environment.",
"type" => STRING,
"default" => 1,
"required" => false
},
"socket-binding" => {
"description" => "Used to reference the correct socket binding to use for the socket process id.",
"type" => STRING,
"min-length" => 1,
"required" => true
}
},
"access-type" => "read-only",
"storage" => "configuration"
},
"recovery-environment" => {
"description" => "The recovery environment configuration.",
"type" => OBJECT,
"required" => true,
"value-type" => {
"socket-binding" => {
"description" => "Used to reference the correct socket binding to use for the recovery environment.",
"type" => STRING,
"min-length" => 1,
"required" => true
},
"status-socket-binding" => {
"description" => "Used to reference the correct socket binding to use for the transaction status manager.",
"type" => STRING,
"min-length" => 1,
"required" => true
}
},
"access-type" => "read-only",
"storage" => "configuration"
},
"coordinator-environment" => {
"description" => "The coordinator environment configuration.",
"type" => OBJECT,
"required" => false,
"value-type" => {"enable-statistics" => {
"description" => "Whether statistics should be enabled.",
"type" => BOOLEAN,
"required" => false,
"default" => true
}},
"access-type" => "read-only",
"storage" => "configuration"
}
},
"operations" => {
"add" => {
"description" => "Adds the transactions subsystem",
"head-comment-allowed" => true,
"tail-comment-allowed" => true,
"namespace" => "urn:jboss:domain:transactions:1.0",
"request-properties" => {
"core-environment" => {
"description" => "The core environment configuration.",
"type" => OBJECT,
"required" => true,
"value-type" => {
"node-identifier" => {
"description" => "Used to set the node identifier on the core environment.",
"type" => STRING,
"default" => 1,
"required" => false
},
"socket-binding" => {
"description" => "Used to reference the correct socket binding to use for the socket process id.",
"type" => STRING,
"min-length" => 1,
"required" => true
}
}
},
"recovery-environment" => {
"description" => "The recovery environment configuration.",
"type" => OBJECT,
"required" => true,
"value-type" => {
"socket-binding" => {
"description" => "Used to reference the correct socket binding to use for the recovery environment.",
"type" => STRING,
"min-length" => 1,
"required" => true
},
"status-socket-binding" => {
"description" => "Used to reference the correct socket binding to use for the transaction status manager.",
"type" => STRING,
"min-length" => 1,
"required" => true
}
}
},
"coordinator-environment" => {
"description" => "The coordinator environment configuration.",
"type" => OBJECT,
"required" => false,
"value-type" => {"enable-statistics" => {
"description" => "Whether statistics should be enabled.",
"type" => BOOLEAN,
"required" => false,
"default" => true
}}
}
},
"reply-properties" => {}
},
"read-attribute" => {
"operation-name" => "read-attribute",
"description" => "Gets the value of an attribute for the selected node",
"request-properties" => {"name" => {
"type" => STRING,
"description" => "The name of the attribute to get the value for under the selcted node",
"nillable" => false
}},
"reply-properties" => {
"type" => OBJECT,
"value-type" => "The type will be that of the attribute found",
"description" => "The value of the attribute"
}
},
"read-children-names" => {
"operation-name" => "read-children-names",
"description" => "Gets the names of all children under the selected node with the given type",
"request-properties" => {"child-type" => {
"type" => STRING,
"description" => "The name of the node under which to get the children names",
"nillable" => false
}},
"reply-properties" => {
"type" => LIST,
"description" => "The children names",
"value-type" => STRING
}
},
"read-children-types" => {
"operation-name" => "read-children-types",
"description" => "Gets the type names of all the children under the selected node",
"reply-properties" => {
"type" => LIST,
"description" => "The children types ",
"value-type" => STRING
}
},
"read-operation-description" => {
"operation-name" => "read-operation-description",
"description" => "Gets the details of an operation on the given node",
"request-properties" => {
"name" => {
"type" => STRING,
"description" => "The description of the operation. Undefined if not found"
},
"type" => {"nillable" => false},
"locale" => {
"type" => STRING,
"nillable" => true,
"description" => "The locale to get the operation description in. If null, the default locale will be used"
}
},
"reply-properties" => {
"type" => OBJECT,
"description" => "The description of the operation. Undefined if not found"
}
},
"read-operation-names" => {
"operation-name" => "read-operation-names",
"description" => "Gets the names of all the operations for the given node",
"reply-properties" => {
"type" => LIST,
"value-type" => STRING,
"description" => "The operation names"
}
},
"read-resource" => {
"operation-name" => "read-resource",
"description" => "Reads a model node's sub values",
"request-properties" => {"recursive" => {
"type" => BOOLEAN,
"description" => "Whether to get the children recursively. If absent, false is the default",
"nillable" => true
}},
"reply-properties" => {
"type" => OBJECT,
"description" => "The ModelNode found at the specified address"
}
},
"read-resource-description" => {
"operation-name" => "read-resource-description",
"description" => "Gets the description of a node",
"request-properties" => {
"operations" => {
"type" => BOOLEAN,
"description" => "Default is false. If true the returned model will also include the operations",
"nillable" => true
},
"locale" => {
"type" => STRING,
"nillable" => true,
"description" => "The locale to get the node description in. If null, the default locale will be used"
}
},
"reply-properties" => {
"type" => OBJECT,
"description" => "The description of the node"
}
},
"write-attribute" => {
"operation-name" => "write-attribute",
"description" => "Sets the value of an attribute for the selected node",
"request-properties" => {
"name" => {
"type" => STRING,
"description" => "The name of the attribute to set the value for under the selcted node",
"nillable" => false
},
"value" => {
"type" => STRING,
"description" => "The value of the attribute to set the value for under the selcted node. May be null if the underlying model supports null values.",
"nillable" => true,
"required" => false
}
}
}
}
},
"compensating-operation" => undefined
}

@kabir
Copy link
Copy Markdown

kabir commented Mar 15, 2011

/] /profile=default/subsystem=transactions:read-resource-description(recursive=1)
{
"outcome" => "success",
"result" => {
"description" => "The configuration of the transactions subsystem.",
"head-comment-allowed" => true,
"tail-comment-allowed" => true,
"namespace" => "urn:jboss:domain:transactions:1.0",
"attributes" => {
"core-environment" => {
"description" => "The core environment configuration.",
"type" => OBJECT,
"required" => true,
"value-type" => {
"node-identifier" => {
"description" => "Used to set the node identifier on the core environment.",
"type" => STRING,
"default" => 1,
"required" => false
},
"socket-binding" => {
"description" => "Used to reference the correct socket binding to use for the socket process id.",
"type" => STRING,
"min-length" => 1,
"required" => true
}
},
"access-type" => "read-only",
"storage" => "configuration"
},
"recovery-environment" => {
"description" => "The recovery environment configuration.",
"type" => OBJECT,
"required" => true,
"value-type" => {
"socket-binding" => {
"description" => "Used to reference the correct socket binding to use for the recovery environment.",
"type" => STRING,
"min-length" => 1,
"required" => true
},
"status-socket-binding" => {
"description" => "Used to reference the correct socket binding to use for the transaction status manager.",
"type" => STRING,
"min-length" => 1,
"required" => true
}
},
"access-type" => "read-only",
"storage" => "configuration"
},
"coordinator-environment" => {
"description" => "The coordinator environment configuration.",
"type" => OBJECT,
"required" => false,
"value-type" => {"enable-statistics" => {
"description" => "Whether statistics should be enabled.",
"type" => BOOLEAN,
"required" => false,
"default" => true
}},
"access-type" => "read-only",
"storage" => "configuration"
}
}
},
"compensating-operation" => undefined

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment