public interface ICounterDelegator
Modifier and Type | Method and Description |
---|---|
void |
deleteCounter(String counterName,
boolean perforceCounter) |
String |
getCounter(String counterName) |
String |
getCounter(String counterName,
CounterOptions opts)
Get the value of a named Perforce counter from the Perforce server.
|
void |
setCounter(String counterName,
String value,
boolean perforceCounter) |
String |
setCounter(String counterName,
String value,
CounterOptions opts)
Create, set or delete a counter on a Perforce server.
|
String getCounter(String counterName) throws ConnectionException, RequestException, AccessException
String getCounter(String counterName, CounterOptions opts) throws P4JavaException
Note that despite their name, counters can be any value, not just a number; hence the string return value here.
counterName
- non-null counter name.opts
- CounterOptions object describing optional parameters; if null,
no options are set.P4JavaException
- if an error occurs processing this method and its parameters.void setCounter(String counterName, String value, boolean perforceCounter) throws ConnectionException, RequestException, AccessException
String setCounter(String counterName, String value, CounterOptions opts) throws P4JavaException
counterName
- non-null counter name.value
- value the counter should be set to; can be null if the set
operation is an increment.opts
- CounterOptions object describing optional parameters; if null,
no options are set.P4JavaException
- if an error occurs processing this method and its parameters.void deleteCounter(String counterName, boolean perforceCounter) throws ConnectionException, RequestException, AccessException
Copyright © 2017 Perforce Software. All Rights Reserved.