com.tek42.perforce.parse
Class Counters

java.lang.Object
  extended by com.tek42.perforce.parse.AbstractPerforceTemplate
      extended by com.tek42.perforce.parse.Counters

public class Counters
extends AbstractPerforceTemplate

Base API object for interacting with counters.

Author:
Kamlesh Sangani

Constructor Summary
Counters(Depot depot)
           
 
Method Summary
 Counter getCounter(java.lang.String name)
          Returns a counter specified by name.
 java.util.List<Counter> getCounters()
          Returns a list of counters in the system.
 void saveCounter(Counter counter)
          Saves the given counter.
 
Methods inherited from class com.tek42.perforce.parse.AbstractPerforceTemplate
getExtraParams, getLogger, getPerforceResponse, getRawPerforceResponseLines, hitMax, login, parseList, saveToPerforce
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Counters

public Counters(Depot depot)
Method Detail

saveCounter

public void saveCounter(Counter counter)
                 throws PerforceException
Saves the given counter. Creates new if one does not exist.

Parameters:
counter -
Throws:
PerforceException

getCounters

public java.util.List<Counter> getCounters()
                                    throws PerforceException
Returns a list of counters in the system.

Returns:
a list of counters in the system
Throws:
PerforceException

getCounter

public Counter getCounter(java.lang.String name)
                   throws PerforceException
Returns a counter specified by name.

Parameters:
name - counter name
Returns:
a counter specified by name
Throws:
PerforceException


Copyright © 2009. All Rights Reserved.