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'.
-
-
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
Constructors Constructor Description StatDelegator(IOptionsServer server)
Instantiates a new stat delegator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IStreamIntegrationStatus
getStreamIntegrationStatus(java.lang.String stream, StreamIntegrationStatusOptions opts)
Get a stream's cached integration status with respect to its parent.
-
-
-
Constructor Detail
-
StatDelegator
public StatDelegator(IOptionsServer server)
Instantiates a new stat delegator.- Parameters:
server
- the server
-
-
Method Detail
-
getStreamIntegrationStatus
public IStreamIntegrationStatus getStreamIntegrationStatus(java.lang.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 interfaceIStatDelegator
- 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.
-
-