Class CountersDelegator
java.lang.Object
com.perforce.p4java.impl.mapbased.server.cmd.BaseDelegator
com.perforce.p4java.impl.mapbased.server.cmd.CountersDelegator
- All Implemented Interfaces:
ICountersDelegator
- Since:
- 26/09/2016
-
Field Summary
Fields inherited from class com.perforce.p4java.impl.mapbased.server.cmd.BaseDelegator
MAX_LIMIT_SUPPORTED_MIN_VERSION, QUERY_EXPRESSIONS_SUPPORTED_MIN_VERSION, USER_RESTRICTIONS_SUPPORTED_MIN_VERSION -
Constructor Summary
ConstructorsConstructorDescriptionCountersDelegator(IOptionsServer server) Create a new delegator with a concrete server implementation. -
Method Summary
Modifier and TypeMethodDescriptionThis is here to allow access via both IOptionsServer and IServer, the underlying delegator implementation provides the concrete method.getCounters(CounterOptions opts) Deprecated.Get a map of the Perforce server's counters.
-
Constructor Details
-
CountersDelegator
Create a new delegator with a concrete server implementation.- Parameters:
server- the real server implementation
-
-
Method Details
-
getCounters
public Map<String,String> getCounters() throws ConnectionException, RequestException, AccessExceptionDescription copied from interface:ICountersDelegatorThis is here to allow access via both IOptionsServer and IServer, the underlying delegator implementation provides the concrete method.- Specified by:
getCountersin interfaceICountersDelegator- Returns:
- a non-null (but possibly empty) map of counters. key and value semantics and format are not specified here.
- Throws:
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 caller- See Also:
-
getCounters
Deprecated.Description copied from interface:ICountersDelegatorGet a map of the Perforce server's counters.- Specified by:
getCountersin interfaceICountersDelegator- Parameters:
opts- CounterOptions object describing optional parameters; if null, no options are set.- Returns:
- a non-null (but possibly empty) map of counters.
- Throws:
P4JavaException- if an error occurs processing this method and its parameters.
-
getCounters
Description copied from interface:ICountersDelegatorGet a map of the Perforce server's counters.- Specified by:
getCountersin interfaceICountersDelegator- Parameters:
opts- GetCountersOptions object describing optional parameters; if null, no options are set.- Returns:
- a non-null (but possibly empty) map of counters.
- Throws:
P4JavaException- if an error occurs processing this method and its parameters.
-