UNPKG

allex_entrypointservice

Version:
28 lines (24 loc) 937 B
function createGetInTask (execlib, UserServiceViaEntryPointSinkObtainerTask) { 'use strict'; var lib = execlib.lib, q = lib.q, execSuite = execlib.execSuite, taskRegistry = execSuite.taskRegistry; function GetInTask (prophash) { UserServiceViaEntryPointSinkObtainerTask.call(this, prophash); this.ep_ipaddress = prophash.ipaddress; this.ep_port = prophash.port; } lib.inherit(GetInTask, UserServiceViaEntryPointSinkObtainerTask); GetInTask.prototype.destroy = function () { this.ep_port = null; this.ep_ipaddress = null; UserServiceViaEntryPointSinkObtainerTask.prototype.destroy.call(this); }; GetInTask.prototype.obtainEntryPointSink = function () { this.goForLetMeIn(this.ep_ipaddress, this.ep_port); }; GetInTask.prototype.compulsoryConstructionProperties = ['ipaddress', 'port', 'cb']; return GetInTask; } module.exports = createGetInTask;