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 java.net.URI;
 
 import static com.google.common.base.MoreObjects.toStringHelper;
 
 public class PageBufferClientStatus
 {
     private final URI uri;
     private final String state;
     private final DateTime lastUpdate;
     private final int pagesReceived;
     private final int requestsScheduled;
     private final int requestsCompleted;
     private final int requestsFailed;
     private final String httpRequestState;
 
     @JsonCreator
     public PageBufferClientStatus(@JsonProperty("uri"URI uri,
             @JsonProperty("state"String state,
             @JsonProperty("lastUpdate"DateTime lastUpdate,
             @JsonProperty("pagesReceived"int pagesReceived,
             @JsonProperty("requestsScheduled"int requestsScheduled,
             @JsonProperty("requestsCompleted"int requestsCompleted,
             @JsonProperty("requestsFailed"int requestsFailed,
             @JsonProperty("httpRequestState"String httpRequestState)
     {
         this. = uri;
         this. = state;
         this. = lastUpdate;
         this. = pagesReceived;
         this. = requestsScheduled;
         this. = requestsCompleted;
         this. = requestsFailed;
         this. = httpRequestState;
     }
 
     @JsonProperty
     public URI getUri()
     {
         return ;
     }
 
     @JsonProperty
     public String getState()
     {
         return ;
     }
 
     @JsonProperty
     public DateTime getLastUpdate()
     {
         return ;
     }
 
     @JsonProperty
     public int getPagesReceived()
     {
         return ;
     }
 
     @JsonProperty
     public int getRequestsScheduled()
     {
         return ;
     }
 
     @JsonProperty
     public int getRequestsCompleted()
     {
         return ;
     }
 
     @JsonProperty
     public int getRequestsFailed()
     {
         return ;
     }
 
     @JsonProperty
     public String getHttpRequestState()
     {
        return ;
    }
    @Override
    public String toString()
    {
        return toStringHelper(this)
                .add("uri")
                .add("state")
                .add("lastUpdate")
                .add("pagesReceived")
                .add("httpRequestState")
                .toString();
    }
New to GrepCode? Check out our FAQ X