Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*
  * 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 com.facebook.presto.operator;
import static com.google.common.base.MoreObjects.toStringHelper;
import static com.google.common.base.Preconditions.checkNotNull;
public class ExchangeClientStatus
    private final long bufferedBytes;
    private final long averageBytesPerRequest;
    private final int bufferedPages;
    private final boolean noMoreLocations;
    @JsonCreator
    public ExchangeClientStatus(
            @JsonProperty("bufferedBytes"long bufferedBytes,
            @JsonProperty("averageBytesPerRequest"long averageBytesPerRequest,
            @JsonProperty("bufferedPages"int bufferedPages,
            @JsonProperty("noMoreLocations"boolean noMoreLocations,
            @JsonProperty("pageBufferClientStatuses"List<PageBufferClientStatuspageBufferClientStatuses)
    {
        this. = bufferedBytes;
        this. = averageBytesPerRequest;
        this. = bufferedPages;
        this. = noMoreLocations;
        this. = ImmutableList.copyOf(checkNotNull(pageBufferClientStatuses"pageBufferClientStatuses is null"));
    }
    public long getBufferedBytes()
    {
        return ;
    }
    public long getAverageBytesPerRequest()
    {
        return ;
    }
    public int getBufferedPages()
    {
        return ;
    }
    public boolean isNoMoreLocations()
    {
        return ;
    }
    {
        return ;
    }
    @Override
    public String toString()
    {
        return toStringHelper(this)
                .add("bufferBytes")
                .add("averageBytesPerRequest")
                .add("bufferedPages")
                .add("noMoreLocations")
                .add("pageBufferClientStatuses")
                .toString();
    }
New to GrepCode? Check out our FAQ X