All Downloads are FREE. Search and download functionalities are using the official Maven repository.

swim.system.profile.WarpDownlinkProfile Maven / Gradle / Ivy

The newest version!
// Copyright 2015-2024 Nstream, inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package swim.system.profile;

import swim.system.DownlinkAddress;
import swim.system.Metric;

public final class WarpDownlinkProfile extends Metric {

  final DownlinkAddress cellAddress;
  final long execDelta;
  final long execRate;
  final long execTime;
  final int openDelta;
  final int openCount;
  final int closeDelta;
  final int closeCount;
  final int eventDelta;
  final int eventRate;
  final long eventCount;
  final int commandDelta;
  final int commandRate;
  final long commandCount;

  public WarpDownlinkProfile(DownlinkAddress cellAddress,
                             long execDelta, long execRate, long execTime,
                             int openDelta, int openCount, int closeDelta, int closeCount,
                             int eventDelta, int eventRate, long eventCount,
                             int commandDelta, int commandRate, long commandCount) {
    this.cellAddress = cellAddress;
    this.openDelta = openDelta;
    this.execRate = execRate;
    this.openCount = openCount;
    this.closeDelta = closeDelta;
    this.closeCount = closeCount;
    this.execDelta = execDelta;
    this.execTime = execTime;
    this.eventDelta = eventDelta;
    this.eventRate = eventRate;
    this.eventCount = eventCount;
    this.commandDelta = commandDelta;
    this.commandRate = commandRate;
    this.commandCount = commandCount;
  }

  @Override
  public DownlinkAddress cellAddress() {
    return this.cellAddress;
  }

  public long execDelta() {
    return this.execDelta;
  }

  public long execRate() {
    return this.execRate;
  }

  public long execTime() {
    return this.execTime;
  }

  public int openDelta() {
    return this.openDelta;
  }

  public int openCount() {
    return this.openCount;
  }

  public int closeDelta() {
    return this.closeDelta;
  }

  public int closeCount() {
    return this.closeCount;
  }

  public int eventDelta() {
    return this.eventDelta;
  }

  public int eventRate() {
    return this.eventRate;
  }

  public long eventCount() {
    return this.eventCount;
  }

  public int commandDelta() {
    return this.commandDelta;
  }

  public int commandRate() {
    return this.commandRate;
  }

  public long commandCount() {
    return this.commandCount;
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy