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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<IServerProcess>
getServerProcesses()
Return a list of Perforce server processes active on the Perforce server.java.util.List<IServerProcess>
getServerProcesses(GetServerProcessesOptions opts)
Return a list of Perforce server processes active on the Perforce server.
-
-
-
Method Detail
-
getServerProcesses
java.util.List<IServerProcess> getServerProcesses() throws ConnectionException, RequestException, AccessException
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.- 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
java.util.List<IServerProcess> getServerProcesses(GetServerProcessesOptions opts) throws P4JavaException
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
-GetServerProcessesOptions
object 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.
-
-