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)
Deprecated.
|
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
ICountersDelegator
getCounters
in interface ICountersDelegator
ConnectionException
- 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 callerIServer
@Deprecated public java.util.Map<java.lang.String,java.lang.String> getCounters(CounterOptions opts) throws P4JavaException
ICountersDelegator
getCounters
in interface ICountersDelegator
opts
- 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
ICountersDelegator
getCounters
in interface ICountersDelegator
opts
- GetCountersOptions object describing optional parameters; if
null, no options are set.P4JavaException
- if an error occurs processing this method and its parameters.