@RestController public abstract class MonitoringRestControllerBase extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
MEMORY_URL |
static String |
ROOT_URL |
static String |
STATUS_URL |
static String |
VERSION_URL |
| Constructor and Description |
|---|
MonitoringRestControllerBase() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract String |
getConfiguredToken() |
MemoryInfo |
getCurrentMemory(String token) |
StatusInfo |
getCurrentStatus(String token) |
VersionInfo |
getCurrentVersion(String token) |
public static final String ROOT_URL
public static final String MEMORY_URL
public static final String STATUS_URL
public static final String VERSION_URL
@GetMapping(value="/monitoring/memory") public MemoryInfo getCurrentMemory(@RequestParam(name="token",required=true) String token) throws InvalidManagementTokenException
InvalidManagementTokenException@GetMapping(value="/monitoring/status") public StatusInfo getCurrentStatus(@RequestParam(name="token",required=true) String token) throws InvalidManagementTokenException
InvalidManagementTokenException@GetMapping(value="/monitoring/version") public VersionInfo getCurrentVersion(@RequestParam(name="token",required=true) String token) throws InvalidManagementTokenException, IOException
protected abstract String getConfiguredToken()
Copyright © 2020 CrafterCMS. All rights reserved.