Interface ISpecDelegator
- All Known Subinterfaces:
IOptionsServer,IServer,IStreamingServer
- All Known Implementing Classes:
NtsServerImpl,OneShotServerImpl,RpcServer,Server,SpecDelegator
public interface ISpecDelegator
-
Method Summary
Modifier and TypeMethodDescriptiongetSpec(CustomSpec type) Return the Perforce spec associated with this Perforce server.updateSpec(CustomSpec type, Map<String, Object> spec) Update a Perforce spec on the Perforce server.updateSpecString(CustomSpec type, String spec) Update a Perforce spec on the Perforce server.
-
Method Details
-
getSpec
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
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
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
-