lib/services/obm-service.js
function ObmService(nodeId, obmServiceFactory, obmSettings, options) {
        assert.object(obmSettings);
        assert.object(obmSettings.config);
        assert.string(obmSettings.service);
        assert.func(obmServiceFactory);
        assert.isMongoId(nodeId);

        this.params = options || {};
        this.retries = this.params.retries;
        this.delay = this.params.delay;

        if (this.params.delay !== 0) {
            this.delay = this.params.delay || config.get('obmInitialDelay') || 500;
        }
        if (this.params.retries !== 0) {
            this.retries = this.params.retries || config.get('obmRetries') || 6;
        }
        this.serviceFactory = obmServiceFactory;
        this.obmConfig = obmSettings.config;
        this.serviceType = obmSettings.service;
        this.nodeId = nodeId;
    }
function ObmService(nodeId, obmServiceFactory, obmSettings, options) {
        assert.object(obmSettings);
        assert.object(obmSettings.config);
        assert.string(obmSettings.service);
        assert.func(obmServiceFactory);
        assert.isMongoId(nodeId);

        this.params = options || {};
        this.retries = this.params.retries;
        this.delay = this.params.delay;

        if (this.params.delay !== 0) {
            this.delay = this.params.delay || config.get('obmInitialDelay') || 500;
        }
        if (this.params.retries !== 0) {
            this.retries = this.params.retries || config.get('obmRetries') || 6;
        }
        this.serviceFactory = obmServiceFactory;
        this.obmConfig = obmSettings.config;
        this.serviceType = obmSettings.service;
        this.nodeId = nodeId;
    }
function ObmService ( nodeId , obmServiceFactory , obmSettings , options ) { assert . object ( obmSettings ) ; assert . object ( obmSettings . config ) ; assert . string ( obmSettings . service ) ; assert . func ( obmServiceFactory ) ; assert . isMongoId ( nodeId ) ; this . params = options || { } ; this . retries = this . params . retries ; this . delay = this . params . delay ; if ( this . params . delay !== 0 ) { this . delay = this . params . delay || config . get ( 'obmInitialDelay' ) || 500 ; } if ( this . params . retries !== 0 ) { this . retries = this . params . retries || config . get ( 'obmRetries' ) || 6 ; } this . serviceFactory = obmServiceFactory ; this . obmConfig = obmSettings . config ; this . serviceType = obmSettings . service ; this . nodeId = nodeId ; }
An OBM command interface that runs raw OBM commands from
various OBM services with failure and retry logic.

@constructor
An OBM command interface that runs raw OBM commands from various OBM services with failure and retry logic .