Class: BaseService

Creates an instance of the Base Service of which all service must inherit. Services are spawned from your service.json file and managed by a helper thread (Service Manager). Services communicate their status and receive status of other service through the Service Manager. Services have an intial handshake with the Service Manager on load and then either go online or wait for dependant services to come online. Service intialization is completly async which allows all services to load at the same time as long as their dependencies have been met.

new BaseService
()
services/baseService.js, line 77

Example
var baseService = require("../baseService");
	function NewService() {

		return this;
	}
	NewService.prototype = new baseService();
	var serviceInstance = new NewService();
	serviceInstance.onBaseServiceReady(function (callback) {
		callback();
	});

	serviceInstance.start();
	module.exports = serviceInstance;

Members

statuss

Service status

Methods

onShutdown
()
services/baseService.js, line 264

A convenience function.