org.jclouds.elasticstack.domain
Class ServerMetrics

java.lang.Object
  extended by org.jclouds.elasticstack.domain.ServerMetrics

public class ServerMetrics
extends Object

Author:
Adrian Cole

Nested Class Summary
static class ServerMetrics.Builder
           
 
Field Summary
protected  Map<String,DriveMetrics> driveMetrics
           
protected  long rx
           
protected  long rxPackets
           
protected  long tx
           
protected  long txPackets
           
 
Constructor Summary
ServerMetrics(long tx, long txPackets, long rx, long rxPackets, Map<String,DriveMetrics> driveMetrics)
           
 
Method Summary
 boolean equals(Object obj)
           
 Map<String,DriveMetrics> getDriveMetrics()
           
 long getRx()
           
 long getRxPackets()
           
 long getTx()
           
 long getTxPackets()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

txPackets

protected final long txPackets

tx

protected final long tx

rxPackets

protected final long rxPackets

rx

protected final long rx

driveMetrics

protected final Map<String,DriveMetrics> driveMetrics
Constructor Detail

ServerMetrics

public ServerMetrics(long tx,
                     long txPackets,
                     long rx,
                     long rxPackets,
                     Map<String,DriveMetrics> driveMetrics)
Method Detail

getTxPackets

public long getTxPackets()

getTx

public long getTx()

getRxPackets

public long getRxPackets()

getRx

public long getRx()

getDriveMetrics

public Map<String,DriveMetrics> getDriveMetrics()
Returns:
metrics keyed on device id ex. ide:0:0

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2012 jclouds. All Rights Reserved.