/*1* adapter.js: Abstract base class used by foreverd service adapters2*3* (C) 2010 Nodejitsu Inc.4* MIT LICENCE5*6*/78var Adapter = module.exports = function Adapter(service) {9this.service = service;10};1112//13// This should install assets to appropriate places for initialization,14// configuration, and storage15//16// The script will be used on startup to load Service17//18// Service should listen on something that the management events19// can respond to in full duplex20//21// The installed adapter should send the following events in nssocket protocol22// to the Service and invoke methods as appropriate23//24Adapter.prototype.install = function install() {25throw new Error('not implemented');26};2728//29// This should do a rollback of install completely except for logs30//31Adapter.prototype.uninstall = function uninstall() {32throw new Error('not implemented');33};3435//36// This should call back with an array of [{file:...,options:...},] to pass to Monitors37// this will be invoked when foreverd is created (not started)38//39Adapter.prototype.load = function load(callback) {40throw new Error('not implemented');41};4243//44// This should tell the OS to start the service45// this will not start any applications46// make sure the adapter is installed and sending events to foreverd's listener47//48Adapter.prototype.start = function start(monitors) {49throw new Error('not implemented');50};5152//53// This should tell the OS to start the service54// this will not stop any applications55// make sure the adapter is installed and sending events to foreverd's listener56//57Adapter.prototype.stop = function stop(monitors) {58throw new Error('not implemented');59};6061//62// This should tell the OS to reply with info about applications in the service63// this will not change any applications64// make sure the adapter is installed and sending events to foreverd's listener65//66Adapter.prototype.status = function status(monitors) {67throw new Error('not implemented');68};6970//71// This should tell the OS to restart the service72// this will not restart any applications73// make sure the adapter is installed and sending events to foreverd's listener74//75Adapter.prototype.restart = function restart(monitors) {76throw new Error('not implemented');77};7879//80// This should tell the OS to pause the service81// this will prevent any addition or removal of applications82// make sure the adapter is installed and sending events to foreverd's listener83//84Adapter.prototype.pause = function pause(monitors) {85throw new Error('not implemented');86};8788//89// This should tell the OS to resume the service90// this will enable any addition or removal of applications91// make sure the adapter is installed and sending events to foreverd's listener92//93Adapter.prototype.resume = function resume(monitors) {94throw new Error('not implemented');95};9697