Interface ICountersDelegator
-
- All Known Subinterfaces:
IOptionsServer
,IServer
,IStreamingServer
- All Known Implementing Classes:
CountersDelegator
,NtsServerImpl
,OneShotServerImpl
,RpcServer
,Server
public interface ICountersDelegator
Defintion of the counters comamnds supported in P4Java.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method 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.As of release 2013.1, replaced bygetCounters(com.perforce.p4java.option.server.GetCountersOptions)
java.util.Map<java.lang.String,java.lang.String>
getCounters(GetCountersOptions opts)
Get a map of the Perforce server's counters.
-
-
-
Method Detail
-
getCounters
java.util.Map<java.lang.String,java.lang.String> getCounters(GetCountersOptions opts) throws P4JavaException
Get a map of the Perforce server's counters.- 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.- Since:
- 2013.1
-
getCounters
java.util.Map<java.lang.String,java.lang.String> getCounters() throws ConnectionException, RequestException, AccessException
This is here to allow access via both IOptionsServer and IServer, the underlying delegator implementation provides the concrete method.- 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:
IServer
-
getCounters
@Deprecated java.util.Map<java.lang.String,java.lang.String> getCounters(CounterOptions opts) throws P4JavaException
Deprecated.As of release 2013.1, replaced bygetCounters(com.perforce.p4java.option.server.GetCountersOptions)
Get a map of the Perforce server's counters.- 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.- Since:
- 2012.2
-
-