Class CountersDelegator

    • Constructor Detail

      • CountersDelegator

        public CountersDelegator​(IOptionsServer server)
        Create a new delegator with a concrete server implementation.
        Parameters:
        server - the real server implementation
    • Method Detail

      • getCounters

        public java.util.Map<java.lang.String,​java.lang.String> getCounters()
                                                                           throws ConnectionException,
                                                                                  RequestException,
                                                                                  AccessException
        Description copied from interface: ICountersDelegator
        This is here to allow access via both IOptionsServer and IServer, the underlying delegator implementation provides the concrete method.
        Specified by:
        getCounters in interface ICountersDelegator
        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 request
        AccessException - if the Perforce server denies access to the caller
        See Also:
        IServer
      • getCounters

        @Deprecated
        public java.util.Map<java.lang.String,​java.lang.String> getCounters​(CounterOptions opts)
                                                                           throws P4JavaException
        Deprecated.
        Description copied from interface: ICountersDelegator
        Get a map of the Perforce server's counters.
        Specified by:
        getCounters in interface ICountersDelegator
        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

        public java.util.Map<java.lang.String,​java.lang.String> getCounters​(GetCountersOptions opts)
                                                                           throws P4JavaException
        Description copied from interface: ICountersDelegator
        Get a map of the Perforce server's counters.
        Specified by:
        getCounters in interface ICountersDelegator
        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.