com.tek42.perforce.parse
Class Counters
java.lang.Object
com.tek42.perforce.parse.AbstractPerforceTemplate
com.tek42.perforce.parse.Counters
public class Counters
- extends AbstractPerforceTemplate
Base API object for interacting with counters.
- Author:
- Kamlesh Sangani
| Methods inherited from class com.tek42.perforce.parse.AbstractPerforceTemplate |
getExtraParams, getLogger, getP4Exe, getPerforceResponse, getPerforceResponse, getRawPerforceResponseBytes, getRawPerforceResponseLines, hitMax, login, parseList, saveToPerforce |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Counters
public Counters(Depot depot)
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 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(String name)
throws PerforceException
- Returns a counter specified by name.
- Parameters:
name - counter name
- Returns:
- a counter specified by name
- Throws:
PerforceException
Copyright © 2004-2013 Hudson. All Rights Reserved.