Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Client

Hierarchy

  • Client

Index

Constructors

Properties

Methods

Constructors

constructor

  • Construct a new OpenNMS client.

    constructor

    Parameters

    • Optional httpImpl: IOnmsHTTP

      The OnmsHTTP implementation to use. Normally this will automatically choose the best implementation based on the environment.

    Returns Client

Properties

Private server

server: OnmsServer

The remote server to connect to

Static Private http

http: IOnmsHTTP

The OnmsHTTP implementation to be used when making requests

Methods

Static checkServer

  • Given an OnmsServer object, check that it can be connected to.

    Parameters

    • server: OnmsServer

      the server to check

    • Optional httpImpl: IOnmsHTTP

      the IOnmsHTTP implementation to use

    • Optional timeout: number

      how long to wait before giving up when making ReST calls

    Returns Promise<boolean>

Static getMetadata

  • Given an OnmsServer object, query what capabilities it has, and return the capabilities associated with that server.

    Parameters

    • server: OnmsServer

      the server to check

    • Optional httpImpl: IOnmsHTTP

      the IOnmsHTTP implementation to use

    • Optional timeout: number

      how long to wait before giving up when making ReST calls

    Returns Promise<OnmsResult<ServerMetadata>>

Generated using TypeDoc