@mdf.js/openc2
Version:
MMS - API - Observability
43 lines • 1.39 kB
JavaScript
;
/**
* Copyright 2024 Mytra Control S.L. All rights reserved.
*
* Use of this source code is governed by an MIT-style license that can be found in the LICENSE file
* or at https://opensource.org/licenses/MIT.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.DummyAdapter = void 0;
const core_1 = require("@mdf.js/core");
const Adapter_1 = require("../Adapter");
class DummyAdapter extends Adapter_1.Adapter {
/**
* Create a new OpenC2 adapter for Dummy
* @param adapterOptions - Adapter configuration options
* @param type - component type
*/
constructor(adapterOptions, type) {
super(adapterOptions, type);
}
/** Adapter health status */
get status() {
return core_1.Health.STATUS.PASS;
}
/** Component checks */
get checks() {
return {};
}
/** Connect the OpenC2 Adapter to the underlayer transport system */
async start() {
// Dummy adapter does not need to start
}
/** Disconnect the OpenC2 Adapter from the underlayer transport system */
async stop() {
// Dummy adapter does not need to stop
}
/** Disconnect the OpenC2 Adapter to the underlayer transport system */
async close() {
// Dummy adapter does not need to close
}
}
exports.DummyAdapter = DummyAdapter;
//# sourceMappingURL=DummyAdapter.js.map