Package akka.cluster.metrics
Class StandardMetrics.HeapMemory
- java.lang.Object
-
- akka.cluster.metrics.StandardMetrics.HeapMemory
-
- All Implemented Interfaces:
java.io.Serializable
,scala.Equals
,scala.Product
,scala.Serializable
- Enclosing class:
- StandardMetrics
public static final class StandardMetrics.HeapMemory extends java.lang.Object implements scala.Product, scala.Serializable
The amount of used and committed memory will always be <= max if max is defined. A memory allocation may fail if it attempts to increase the used memory such that used > committed even if used <= max is true (e.g. when the system virtual memory is low).param: address
Address
of the node the metrics are gathered at param: timestamp the time of sampling, in milliseconds since midnight, January 1, 1970 UTC param: used the current sum of heap memory used from all heap memory pools (in bytes) param: committed the current sum of heap memory guaranteed to be available to the JVM from all heap memory pools (in bytes). Committed will always be greater than or equal to used. param: max the maximum amount of memory (in bytes) that can be used for JVM memory management. Can be undefined on some OS.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description HeapMemory(Address address, long timestamp, long used, long committed, scala.Option<java.lang.Object> max)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Address
address()
boolean
canEqual(java.lang.Object x$1)
long
committed()
StandardMetrics.HeapMemory
copy(Address address, long timestamp, long used, long committed, scala.Option<java.lang.Object> max)
Address
copy$default$1()
long
copy$default$2()
long
copy$default$3()
long
copy$default$4()
scala.Option<java.lang.Object>
copy$default$5()
boolean
equals(java.lang.Object x$1)
int
hashCode()
scala.Option<java.lang.Object>
max()
int
productArity()
java.lang.Object
productElement(int x$1)
scala.collection.Iterator<java.lang.Object>
productIterator()
java.lang.String
productPrefix()
long
timestamp()
java.lang.String
toString()
long
used()
-
-
-
Constructor Detail
-
HeapMemory
public HeapMemory(Address address, long timestamp, long used, long committed, scala.Option<java.lang.Object> max)
-
-
Method Detail
-
address
public Address address()
-
timestamp
public long timestamp()
-
used
public long used()
-
committed
public long committed()
-
max
public scala.Option<java.lang.Object> max()
-
copy
public StandardMetrics.HeapMemory copy(Address address, long timestamp, long used, long committed, scala.Option<java.lang.Object> max)
-
copy$default$1
public Address copy$default$1()
-
copy$default$2
public long copy$default$2()
-
copy$default$3
public long copy$default$3()
-
copy$default$4
public long copy$default$4()
-
copy$default$5
public scala.Option<java.lang.Object> copy$default$5()
-
productPrefix
public java.lang.String productPrefix()
- Specified by:
productPrefix
in interfacescala.Product
-
productArity
public int productArity()
- Specified by:
productArity
in interfacescala.Product
-
productElement
public java.lang.Object productElement(int x$1)
- Specified by:
productElement
in interfacescala.Product
-
productIterator
public scala.collection.Iterator<java.lang.Object> productIterator()
- Specified by:
productIterator
in interfacescala.Product
-
canEqual
public boolean canEqual(java.lang.Object x$1)
- Specified by:
canEqual
in interfacescala.Equals
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object x$1)
- Specified by:
equals
in interfacescala.Equals
- Overrides:
equals
in classjava.lang.Object
-
-