Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.runtime.management.counters
Class CounterHistoryStack

java.lang.Object
  extended by org.nuxeo.runtime.management.counters.CounterHistoryStack
All Implemented Interfaces:
Iterable<long[]>

public class CounterHistoryStack
extends Object
implements Iterable<long[]>

Fixed length Stack that is used to store values of a counter over time

Author:
Tiry (tdelprat@nuxeo.com)

Constructor Summary
CounterHistoryStack(int size)
           
 
Method Summary
 long[] get(int idx)
           
 LinkedList<long[]> getAsList()
           
 Iterator<long[]> iterator()
           
 void push(long[] item)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CounterHistoryStack

public CounterHistoryStack(int size)
Method Detail

push

public void push(long[] item)

iterator

public Iterator<long[]> iterator()
Specified by:
iterator in interface Iterable<long[]>

toString

public String toString()
Overrides:
toString in class Object

get

public long[] get(int idx)

getAsList

public LinkedList<long[]> getAsList()

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.