edu.jhu.cnds.Frugal
Class Memory
java.lang.Object
|
+--net.jini.entry.AbstractEntry
|
+--edu.jhu.cnds.Frugal.Memory
- public class Memory
- extends net.jini.entry.AbstractEntry
An entry corresponding to a given Frugal Resource's memory.
- Version:
- 2.0
- Author:
- R. Sean Borgstrom
- See Also:
- Serialized Form
|
Field Summary |
java.lang.String |
cueCard
String with textual data about the free and used memory
on the machine on which the relevant Frugal Resource runs. |
java.lang.Long |
freeMem
Free memory on the relevant Frugal Resource's virtual machine. |
java.lang.Long |
totalMem
Total memory assigned to the relevant Frugal Resource's virtual machine. |
|
Constructor Summary |
Memory()
Creates a blank CPU Memory entry. |
Memory(long free,
long total)
Creates a CPU Memory entry. |
| Methods inherited from class net.jini.entry.AbstractEntry |
equals,
equals,
hashCode,
hashCode,
toString,
toString |
| Methods inherited from class java.lang.Object |
clone,
finalize,
getClass,
notify,
notifyAll,
wait,
wait,
wait |
freeMem
public java.lang.Long freeMem
- Free memory on the relevant Frugal Resource's virtual machine.
totalMem
public java.lang.Long totalMem
- Total memory assigned to the relevant Frugal Resource's virtual machine.
cueCard
public java.lang.String cueCard
- String with textual data about the free and used memory
on the machine on which the relevant Frugal Resource runs.
Memory
public Memory()
- Creates a blank CPU Memory entry.
Memory
public Memory(long free,
long total)
- Creates a CPU Memory entry.
- Parameters:
free - long that will become "freeMem" (free memory on the system.)total - long that will become "totalMem" (total memory on the system.)