Class ProtocolCommand

java.lang.Object
com.perforce.p4java.impl.mapbased.rpc.func.proto.ProtocolCommand

public class ProtocolCommand extends Object
Used to specify Perforce RPC protocol-related parameters on the first call to a Perforce server on an RPC connection.

Much of this has been cribbed from the corresponding C++ API protocol specs, and will probably need revisiting with experience. In general, don't change values here unless you know what you're doing, as they can have considerable effects on client- and server-side behaviours.

  • Field Details

  • Constructor Details

    • ProtocolCommand

      public ProtocolCommand()
    • ProtocolCommand

      public ProtocolCommand(int clientApiLevel, boolean clientCmpFile, int serverApiLevel, int sendBufSize, int recvBufSize, boolean useTags)
    • ProtocolCommand

      public ProtocolCommand(int clientApiLevel, boolean clientCmpFile, int serverApiLevel, int sendBufSize, int recvBufSize, boolean useTags, boolean enableStreams, boolean enableGraph)
  • Method Details

    • asMap

      public Map<String,Object> asMap()
    • getClientApiLevel

      public int getClientApiLevel()
    • setClientApiLevel

      public void setClientApiLevel(int clientApiLevel)
    • isClientCmpFile

      public boolean isClientCmpFile()
    • setClientCmpFile

      public void setClientCmpFile(boolean clientCmpFile)
    • getServerApiLevel

      public int getServerApiLevel()
    • setServerApiLevel

      public void setServerApiLevel(int serverApiLevel)
    • getApplicationName

      public String getApplicationName()
    • setApplicationName

      public void setApplicationName(String applicationName)
    • getSendBufSize

      public int getSendBufSize()
    • setSendBufSize

      public void setSendBufSize(int sendBufSize)
    • getRecvBufSize

      public int getRecvBufSize()
    • setRecvBufSize

      public void setRecvBufSize(int recvBufSize)
    • isUseTags

      public boolean isUseTags()
    • setUseTags

      public void setUseTags(boolean useTags)
    • isEnableStreams

      public boolean isEnableStreams()
    • setEnableStreams

      public void setEnableStreams(boolean enableStreams)
    • isEnableGraph

      public boolean isEnableGraph()
    • setEnableGraph

      public void setEnableGraph(boolean enableGraph)
    • isEnableTracking

      public boolean isEnableTracking()
    • setEnableTracking

      public void setEnableTracking(boolean enableTracking)
    • isEnableProgress

      public boolean isEnableProgress()
    • setEnableProgress

      public void setEnableProgress(boolean enableProgress)
    • isQuietMode

      public boolean isQuietMode()
    • setQuietMode

      public void setQuietMode(boolean quietMode)
    • getHost

      public String getHost()
    • setHost

      public void setHost(String host)
    • getPort

      public String getPort()
    • setPort

      public void setPort(String port)
    • getIpAddr

      public String getIpAddr()
    • setIpAddr

      public void setIpAddr(String ipaddr)