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
public class MonitorDelegator extends BaseDelegator implements 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
Constructors Constructor Description MonitorDelegator(IOptionsServer server)
Instantiate a new MonitorDelegator, providing the server object that will be used to execute Perforce Helix attribute commands.
-
Method Summary
All Methods Instance Methods Concrete 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.
-
-
-
Constructor Detail
-
MonitorDelegator
public MonitorDelegator(IOptionsServer server)
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 Detail
-
getServerProcesses
public java.util.List<IServerProcess> getServerProcesses() throws ConnectionException, RequestException, AccessException
Description copied from interface:IMonitorDelegator
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.- Specified by:
getServerProcesses
in 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 java.util.List<IServerProcess> getServerProcesses(GetServerProcessesOptions opts) throws P4JavaException
Description copied from interface:IMonitorDelegator
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.- Specified by:
getServerProcesses
in interfaceIMonitorDelegator
- 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.
-
-