MaintenanceProxy interface extends the base Maintenance interface with proxy-specific functionality for managing maintenance mode on individual backend servers in a proxy network.
Interface
Methods
Server Maintenance Management
setMaintenanceToServer
Enables or disables maintenance mode on a specific proxied server.Server
required
The server to apply the maintenance status to. Obtain using
getServer(String).boolean
required
true to enable maintenance mode, false to disable it.boolean
true if the maintenance mode was changed, false otherwise.isMaintenance
Checks if maintenance mode is currently enabled on a specific proxied server.Server
required
The server to check. Obtain using
getServer(String).boolean
true if maintenance is currently enabled on the server, false otherwise.isServerTaskRunning
Checks if a start or end timer task is currently running for a specific proxied server.Server
required
The server to check. Obtain using
getServer(String).boolean
true if a timer task is currently running for the server, false otherwise.Server Retrieval
getServer
Retrieves a wrappedServer object for a proxied server by name.
String
required
The name of the proxied server.
Server
The wrapped server object if the server exists, or
null if not found.getServerOrDummy
Retrieves a wrappedServer object for a proxied server, or returns a dummy server if not registered.
String
required
The name of the proxied server.
Server
The wrapped server object if registered, or a
DummyServer instance if not.null. Use Server.isRegisteredServer() to check if the returned server is a real registered server or a dummy.
Example:
getServers
Retrieves all currently registered proxied servers.Set<String>
A set containing the names of all registered proxied servers.
getMaintenanceServers
Retrieves all proxied servers that are currently under maintenance.Set<String>
An immutable set containing the names of all servers currently under maintenance.
Complete Usage Example
See Also
- Server Interface - Server abstraction for proxy networks
- Maintenance Interface - Base maintenance API