Interface IMonitorDelegator
- All Known Subinterfaces:
IOptionsServer,IServer,IStreamingServer
- All Known Implementing Classes:
MonitorDelegator,NtsServerImpl,OneShotServerImpl,RpcServer,Server
public interface IMonitorDelegator
Interface to handle the Monitor command.
-
Method Summary
Modifier and TypeMethodDescriptionReturn a list of Perforce server processes active on the Perforce server.Return a list of Perforce server processes active on the Perforce server.
-
Method Details
-
getServerProcesses
List<IServerProcess> getServerProcesses() throws ConnectionException, RequestException, AccessExceptionReturn a list of Perforce server processes active on the Perforce server. Will throw a request exception if monitors are not enabled on the target server.- Returns:
- non-null but possibly-empty list of IServerProcess objects
- Throws:
ConnectionException- if the Perforce server is unreachable or is not connected.RequestException- if the Perforce server encounters an error during its processing of the requestAccessException- if the Perforce server denies access to the caller
-
getServerProcesses
Return a list of Perforce server processes active on the Perforce server. Will throw a request exception if monitors are not enabled on the target server.- Parameters:
opts-GetServerProcessesOptionsobject describing optional parameters; if null, no options are set.- Returns:
- list of server processes
- Throws:
P4JavaException- if an error occurs processing this method and its parameters.
-