Class MonitorDelegator
java.lang.Object
com.perforce.p4java.impl.mapbased.server.cmd.BaseDelegator
com.perforce.p4java.impl.mapbased.server.cmd.MonitorDelegator
- All Implemented Interfaces:
IMonitorDelegator
Implementation to handle the Monitor command.
-
Field Summary
Fields inherited from class com.perforce.p4java.impl.mapbased.server.cmd.BaseDelegator
MAX_LIMIT_SUPPORTED_MIN_VERSION, QUERY_EXPRESSIONS_SUPPORTED_MIN_VERSION, USER_RESTRICTIONS_SUPPORTED_MIN_VERSION -
Constructor Summary
ConstructorsConstructorDescriptionMonitorDelegator(IOptionsServer server) Instantiate a new MonitorDelegator, providing the server object that will be used to execute Perforce Helix attribute commands. -
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.
-
Constructor Details
-
MonitorDelegator
Instantiate a new MonitorDelegator, providing the server object that will be used to execute Perforce Helix attribute commands.- Parameters:
server- a concrete implementation of a Perforce Helix Server
-
-
Method Details
-
getServerProcesses
public List<IServerProcess> getServerProcesses() throws ConnectionException, RequestException, AccessExceptionDescription copied from interface:IMonitorDelegatorReturn 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.- Specified by:
getServerProcessesin interfaceIMonitorDelegator- 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
public List<IServerProcess> getServerProcesses(GetServerProcessesOptions opts) throws P4JavaException Description copied from interface:IMonitorDelegatorReturn 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.- Specified by:
getServerProcessesin interfaceIMonitorDelegator- 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.
-