Skip to content

hal/dmr.dart

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 

DMR.dart

Client Dart library to execute operations on the JBoss AS7 DMR API. For an introduction to DMR please refer to the JBoss Wiki.

Usage

For a basic example see example/dmr_example.dart. To get an idea how the code looks like here's a code snippet to read the version of the loacal server instance:

var op = new ModelNode();
op["operation"] = "read-attribute";
op["address"].setEmptyList();
op["name"] = "release-version";

var version;
var dmr = new Dmr("http://localhost:9000/management");
dmr.send(op)
  .then((ModelNode node) => version = node["result"].asString())
  .catchError((exception) => print(exception));

Requirements

For the example to work, you need a running JBoss AS instance which accepts CORS requests. You can build one by cloning the AS8 CORS branch. If you have trouble with CORS, take a look at this blog post.

Known Issues

  • Due to a bug in Dart, DMR.dart currently works only in Dartium.
  • Big integer and double values are making problems. This will be addressed once the fixnum package is officially available.

About

DMR in Dart

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages