Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Licensed to jclouds, Inc. (jclouds) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. jclouds 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.jclouds.cloudsigma.domain;


Author(s):
Adrian Cole
 
 public class DriveMetrics {
    public static class Builder {
       protected long readBytes;
       protected long readRequests;
       protected long writeBytes;
       protected long writeRequests;
 
       public Builder readBytes(long readBytes) {
          this. = readBytes;
          return this;
       }
 
       public Builder readRequests(long readRequests) {
          this. = readRequests;
          return this;
       }
 
       public Builder writeBytes(long writeBytes) {
          this. = writeBytes;
          return this;
       }
 
       public Builder writeRequests(long writeRequests) {
          this. = writeRequests;
          return this;
       }
 
       public DriveMetrics build() {
          return new DriveMetrics();
       }
    }
 
    protected final long readBytes;
    protected final long readRequests;
    protected final long writeBytes;
    protected final long writeRequests;
 
    public DriveMetrics(long readByteslong readRequestslong writeByteslong writeRequests) {
       this. = readBytes;
       this. = readRequests;
       this. = writeBytes;
       this. = writeRequests;
    }

   

Returns:
Cumulative i/o byte/request count for each drive
 
    public long getReadBytes() {
       return ;
    }

   

Returns:
Cumulative i/o byte/request count for each drive
 
    public long getReadRequests() {
       return ;
    }

   

Returns:
Cumulative i/o byte/request count for each drive
 
    public long getWriteBytes() {
       return ;
    }

   

Returns:
Cumulative i/o byte/request count for each drive
 
    public long getWriteRequests() {
       return ;
   }
   public int hashCode() {
      final int prime = 31;
      int result = 1;
      result = prime * result + (int) ( ^ ( >>> 32));
      result = prime * result + (int) ( ^ ( >>> 32));
      result = prime * result + (int) ( ^ ( >>> 32));
      result = prime * result + (int) ( ^ ( >>> 32));
      return result;
   }
   public boolean equals(Object obj) {
      if (this == obj)
         return true;
      if (obj == null)
         return false;
      if (getClass() != obj.getClass())
         return false;
      DriveMetrics other = (DriveMetricsobj;
      if ( != other.readBytes)
         return false;
      if ( != other.readRequests)
         return false;
      if ( != other.writeBytes)
         return false;
      if ( != other.writeRequests)
         return false;
      return true;
   }
   public String toString() {
      return "[readBytes=" +  + ", readRequests=" +  + ", writeBytes=" + 
            + ", writeRequests=" +  + "]";
   }
New to GrepCode? Check out our FAQ X