Page properties |
---|
|
Name of the Module | e2e-bridge-lib | Short Description | Node.js library allowing interaction with the Bridge | Description | Multiexcerpt |
---|
MultiExcerptName | description |
---|
| This Node.js modul allows to interact with the Bridge. The Bridge lib can be used to - deploy, remove, start and stop xUML, Node.js and Java Services,
- set the preferences of xUML, Node.js and Java Services,
- kill xUML Services
- pack Node.js Services
|
| NPM Link | e2e-bridge-lib@NPM | GitHub Link | e2e-bridge-lib@GitHub |
|
Multiexcerpt include |
---|
MultiExcerptName | description |
---|
nopanel | true |
---|
PageWithExcerpt | Node.js Interface to the Bridge |
---|
|
Simply add a dependency to e2e-bridge-lib in your package.json file or install it using:
Code Block |
---|
npm install e2e-bridge-lib |
You can find more a more detailed documentation of the package on the GitHub or NPM pages.
Usage Example
Code Block |
---|
|
var E2EBridge = require('e2e-bridge-lib');
var bridgeInstance = new E2EBridge('localhost', 8080, 'admin', 'admin');
bridgeInstance.startXUMLService('PurchaseOrderExample', function(error){
if(error) {
console.error('Error occured: ' + error.errorType);
} else {
console.log('Startup done.');
}
}); |