File

src/app/instance/shared/instance.model.ts

Index

Properties
Accessors

Constructor

constructor(name: string, clusterName: string, enabled: boolean, liveInstance: boolean | string, sessionId?: string, helixVersion?: string)
Parameters :
Name Type Optional
name string No
clusterName string No
enabled boolean No
liveInstance boolean | string No
sessionId string Yes
helixVersion string Yes

Properties

Readonly clusterName
Type : string
Readonly enabled
Type : boolean
Readonly helixVersion
Type : string
Readonly liveInstance
Type : boolean | string
Readonly name
Type : string
Readonly sessionId
Type : string

Accessors

healthy
gethealthy()
export class Instance {
  readonly name: string;
  readonly clusterName: string;
  readonly enabled: boolean;
  readonly liveInstance: boolean | string;
  readonly sessionId: string;
  readonly helixVersion: string;

  get healthy(): boolean {
    return this.liveInstance && this.enabled;
  }

  constructor(
    name: string,
    clusterName: string,
    enabled: boolean,
    liveInstance: boolean | string,
    sessionId?: string,
    helixVersion?: string
  ) {
    this.name = name;
    this.clusterName = clusterName;
    this.enabled = enabled;
    this.liveInstance = liveInstance;
    this.sessionId = sessionId;
    this.helixVersion = helixVersion;
  }
}

results matching ""

    No results matching ""