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 |
|---|---|
Map<String,String> |
getCounters()
This is here to allow access via both IOptionsServer and IServer, the underlying
delegator implementation provides the concrete method.
|
Map<String,String> |
getCounters(CounterOptions opts)
Get a map of the Perforce server's counters.
|
Map<String,String> |
getCounters(GetCountersOptions opts)
Get a map of the Perforce server's counters.
|
public CountersDelegator(IOptionsServer server)
server - the real server implementationpublic Map<String,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 Map<String,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 Map<String,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 © 2017 Perforce Software. All Rights Reserved.