Class StatDelegator

java.lang.Object
com.perforce.p4java.impl.mapbased.server.cmd.BaseDelegator
com.perforce.p4java.impl.mapbased.server.cmd.StatDelegator
All Implemented Interfaces:
IStatDelegator

public class StatDelegator extends BaseDelegator implements IStatDelegator
Implemetation for 'p4 stat'.
  • Constructor Details

    • StatDelegator

      public StatDelegator(IOptionsServer server)
      Instantiates a new stat delegator.
      Parameters:
      server - the server
  • Method Details

    • getStreamIntegrationStatus

      public IStreamIntegrationStatus getStreamIntegrationStatus(String stream, StreamIntegrationStatusOptions opts) throws P4JavaException
      Description copied from interface: IStatDelegator
      Get a stream's cached integration status with respect to its parent. If the cache is stale, either because newer changes have been submitted or the stream's branch view has changed, 'p4 istat' checks for pending integrations and updates the cache before showing status.

      Pending integrations are shown only if they are expected by the stream; that is, only if they are warranted by the stream's type and its fromParent/toParent flow options. (See 'p4 help stream'.)

      Specified by:
      getStreamIntegrationStatus in interface IStatDelegator
      Parameters:
      stream - the stream's path in a stream depot, of the form //depotname/streamname.
      opts - StreamIntegrationStatusOptions object describing optional parameters; if null, no options are set.
      Returns:
      potentially-null IStreamIntegrationStatus object representing the stream's cached integration status with respect to its parent.
      Throws:
      P4JavaException - if an error occurs processing this method and its parameters.