Interface ISpecDelegator

All Known Subinterfaces:
IOptionsServer, IServer, IStreamingServer
All Known Implementing Classes:
NtsServerImpl, OneShotServerImpl, RpcServer, Server, SpecDelegator

public interface ISpecDelegator
  • Method Details

    • getSpec

      Map<String,Object> getSpec(CustomSpec type) throws P4JavaException
      Return the Perforce spec associated with this Perforce server.

      Parameters:
      type - spec type, ('job' or 'stream') to be updated.
      Returns:
      possibly-null map representing the underlying Perforce server's spec.
      Throws:
      P4JavaException - if any error occurs in the processing of this method.
      Since:
      2020.1
    • updateSpec

      String updateSpec(CustomSpec type, Map<String,Object> spec) throws P4JavaException
      Update a Perforce spec on the Perforce server.
      Parameters:
      type - spec type, ('job' or 'stream') to be updated.
      spec - updated spec as a map.
      Returns:
      non-null result message string from the Perforce server; this may include form trigger output pre-pended and / or appended to the "normal" message.
      Throws:
      P4JavaException - if any error occurs in the processing of this method.
      Since:
      2020.1
    • updateSpecString

      String updateSpecString(CustomSpec type, String spec) throws P4JavaException
      Update a Perforce spec on the Perforce server.
      Parameters:
      type - spec type, ('job' or 'stream') to be updated.
      spec - updated spec as a map.
      Returns:
      non-null result message string from the Perforce server; this may include form trigger output pre-pended and / or appended to the "normal" message.
      Throws:
      P4JavaException - if any error occurs in the processing of this method.
      Since:
      2020.1