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

org.apache.hadoop.hbase.namequeues.response.NamedQueueGetResponse Maven / Gradle / Ivy

There is a newer version: 3.0.0-beta-1
Show newest version
/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you 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 org.apache.hadoop.hbase.namequeues.response;

import java.util.List;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.hadoop.hbase.namequeues.NamedQueuePayload;
import org.apache.yetus.audience.InterfaceAudience;

import org.apache.hadoop.hbase.shaded.protobuf.generated.RecentLogs;
import org.apache.hadoop.hbase.shaded.protobuf.generated.TooSlowLog;

/**
 * Response object to be sent by namedQueue service back to caller
 */
@InterfaceAudience.Private
public class NamedQueueGetResponse {

  private List slowLogPayloads;
  private List balancerDecisions;
  private List balancerRejections;
  private NamedQueuePayload.NamedQueueEvent namedQueueEvent;

  public List getSlowLogPayloads() {
    return slowLogPayloads;
  }

  public void setSlowLogPayloads(List slowLogPayloads) {
    this.slowLogPayloads = slowLogPayloads;
  }

  public List getBalancerDecisions() {
    return balancerDecisions;
  }

  public void setBalancerDecisions(List balancerDecisions) {
    this.balancerDecisions = balancerDecisions;
  }

  public List getBalancerRejections() {
    return balancerRejections;
  }

  public void setBalancerRejections(List balancerRejections) {
    this.balancerRejections = balancerRejections;
  }

  public NamedQueuePayload.NamedQueueEvent getNamedQueueEvent() {
    return namedQueueEvent;
  }

  public void setNamedQueueEvent(int eventOrdinal) {
    this.namedQueueEvent = NamedQueuePayload.NamedQueueEvent.getEventByOrdinal(eventOrdinal);
  }

  @Override
  public String toString() {
    return new ToStringBuilder(this).append("slowLogPayloads", slowLogPayloads)
      .append("balancerDecisions", balancerDecisions)
      .append("balancerRejections", balancerRejections).append("namedQueueEvent", namedQueueEvent)
      .toString();
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy