public class CountersDelegator extends BaseDelegator implements ICountersDelegator
MAX_LIMIT_SUPPORTED_MIN_VERSION, QUERY_EXPRESSIONS_SUPPORTED_MIN_VERSION, USER_RESTRICTIONS_SUPPORTED_MIN_VERSION| Constructor and Description |
|---|
CountersDelegator(IOptionsServer server)
Create a new delegator with a concrete server implementation.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.String,java.lang.String> |
getCounters()
This is here to allow access via both IOptionsServer and IServer, the underlying
delegator implementation provides the concrete method.
|
java.util.Map<java.lang.String,java.lang.String> |
getCounters(CounterOptions opts)
Get a map of the Perforce server's counters.
|
java.util.Map<java.lang.String,java.lang.String> |
getCounters(GetCountersOptions opts)
Get a map of the Perforce server's counters.
|
public CountersDelegator(IOptionsServer server)
server - the real server implementationpublic java.util.Map<java.lang.String,java.lang.String> getCounters()
throws ConnectionException,
RequestException,
AccessException
ICountersDelegatorgetCounters in interface ICountersDelegatorConnectionException - if the Perforce server is unreachable or is not connected.RequestException - if the Perforce server encounters an error during its
processing of the requestAccessException - if the Perforce server denies access to the callerIServerpublic java.util.Map<java.lang.String,java.lang.String> getCounters(CounterOptions opts) throws P4JavaException
ICountersDelegatorgetCounters in interface ICountersDelegatoropts - CounterOptions object describing optional parameters; if null,
no options are set.P4JavaException - if an error occurs processing this method and its parameters.public java.util.Map<java.lang.String,java.lang.String> getCounters(GetCountersOptions opts) throws P4JavaException
ICountersDelegatorgetCounters in interface ICountersDelegatoropts - GetCountersOptions object describing optional parameters; if
null, no options are set.P4JavaException - if an error occurs processing this method and its parameters.Copyright © 2021 Perforce Software. All Rights Reserved.