public interface ICounterDelegator
| Modifier and Type | Method and Description |
|---|---|
void |
deleteCounter(java.lang.String counterName,
boolean perforceCounter) |
java.lang.String |
getCounter(java.lang.String counterName) |
java.lang.String |
getCounter(java.lang.String counterName,
CounterOptions opts)
Get the value of a named Perforce counter from the Perforce server.
|
void |
setCounter(java.lang.String counterName,
java.lang.String value,
boolean perforceCounter) |
java.lang.String |
setCounter(java.lang.String counterName,
java.lang.String value,
CounterOptions opts)
Create, set or delete a counter on a Perforce server.
|
java.lang.String getCounter(java.lang.String counterName)
throws ConnectionException,
RequestException,
AccessException
java.lang.String getCounter(java.lang.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(java.lang.String counterName,
java.lang.String value,
boolean perforceCounter)
throws ConnectionException,
RequestException,
AccessException
java.lang.String setCounter(java.lang.String counterName,
java.lang.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(java.lang.String counterName,
boolean perforceCounter)
throws ConnectionException,
RequestException,
AccessException