edu.cuny.cat.stat
Class ResourceReport
java.lang.Object
edu.cuny.cat.stat.ResourceReport
- All Implemented Interfaces:
- AuctionEventListener, GameReport, edu.cuny.stat.Report<AuctionEvent>, java.util.EventListener
public class ResourceReport
- extends java.lang.Object
- implements GameReport
A report collecting resource consumption information, including memory use,
etc.
Report variables
memory.max |
the max amount of memory that can be allocated to the VM. |
memory.total |
the total amount of memory allocated to the VM. |
memory.free |
the amount of free memory available to the VM. |
memory.used |
the amount of memory currently used by the VM. |
- Version:
- $Revision: 1.7 $
- Author:
- Jinzhong Niu
Fields inherited from interface edu.cuny.cat.stat.GameReport |
ACCEPTED, ASK, BID, CONVERGENCE_COEFFICIENT, EFFICIENCY, EQUILIBRIUM, FEE, Formatter, GLOBAL, MARKETSHARE, MEAN, MIN, PLACED, PRICE, PROFIT, PROFIT_DISPERSION, QUANTITY, SCORE, SHOUT, SPECIALIST, STDEV, TRADER, TRANSACTION, TRANSACTIONRATE, VALUE |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
KILO
protected static final int KILO
- See Also:
- Constant Field Values
MEMORY
public static final java.lang.String MEMORY
- See Also:
- Constant Field Values
MAX
public static final java.lang.String MAX
- See Also:
- Constant Field Values
TOTAL
public static final java.lang.String TOTAL
- See Also:
- Constant Field Values
USED
public static final java.lang.String USED
- See Also:
- Constant Field Values
FREE
public static final java.lang.String FREE
- See Also:
- Constant Field Values
maxMemory
protected int maxMemory
totalMemory
protected int totalMemory
freeMemory
protected int freeMemory
usedMemory
protected int usedMemory
logController
protected edu.cuny.stat.LoggingController logController
ResourceReport
public ResourceReport()
getVariables
public java.util.Map<edu.cuny.stat.ReportVariable,?> getVariables()
eventOccurred
public void eventOccurred(AuctionEvent event)
- Specified by:
eventOccurred
in interface AuctionEventListener
recordMemoryUse
public void recordMemoryUse()
reportMemoryUse
public void reportMemoryUse()
produceUserOutput
public void produceUserOutput()
- Specified by:
produceUserOutput
in interface edu.cuny.stat.Report<AuctionEvent>
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object