|
String | processSubmit (Model model, @RequestParam(value="peer_name", required=false) String peerName, HttpServletRequest request) |
|
|
static Map< String, Boolean > | nodesStatus |
|
static Map< String, List< Status > > | downloads |
|
static Map< String, List< Status > > | uploads |
|
Node status controller.
- Author
- Maciej Szewczykowski | macie.nosp@m.j@ba.nosp@m.ltrad.nosp@m..eu
- Version
- 2.0.0
- Since
- 1.6.1
◆ NodeStatusController()
eu.baltrad.dex.status.controller.NodeStatusController.NodeStatusController |
( |
| ) |
|
|
inline |
◆ getActiveDownloads()
long eu.baltrad.dex.status.controller.NodeStatusController.getActiveDownloads |
( |
| ) |
|
|
inline |
Set number of active downloads as model attribute.
- Returns
- Number of active downloads
◆ getActiveUploads()
long eu.baltrad.dex.status.controller.NodeStatusController.getActiveUploads |
( |
| ) |
|
|
inline |
Set number of active uploads as model attribute.
- Returns
- Number of active uploads
◆ getCurrentTime()
String eu.baltrad.dex.status.controller.NodeStatusController.getCurrentTime |
( |
| ) |
|
|
inline |
Set current time as model attribute.
- Returns
- Current time stamp
◆ getCurrentUser()
String eu.baltrad.dex.status.controller.NodeStatusController.getCurrentUser |
( |
HttpSession | session, |
|
|
HttpServletRequest | request, |
|
|
Principal | principal ) |
|
inline |
Set user name as model attribute.
- Parameters
-
session | HTTP session |
principal | Principal |
- Returns
- User name
◆ getDeliveryEntries()
long eu.baltrad.dex.status.controller.NodeStatusController.getDeliveryEntries |
( |
| ) |
|
|
inline |
Set number of entries the delivery registry as model attribute.
- Returns
- Number of file entries in the delivery registry
◆ getDiskSpace()
String eu.baltrad.dex.status.controller.NodeStatusController.getDiskSpace |
( |
| ) |
|
|
inline |
Set available disk space as model attribute.
- Returns
- Available disk space in megabytes
◆ getFileEntries()
long eu.baltrad.dex.status.controller.NodeStatusController.getFileEntries |
( |
| ) |
|
|
inline |
Set number of file entries in the database as model attribute.
- Returns
- Number of file entries in the db
◆ getLastConfigSaved()
String eu.baltrad.dex.status.controller.NodeStatusController.getLastConfigSaved |
( |
| ) |
|
|
inline |
Sets last configuration storage date as model attribute.
- Returns
- Last configuration storage date
◆ getLogEntries()
long eu.baltrad.dex.status.controller.NodeStatusController.getLogEntries |
( |
| ) |
|
|
inline |
Set number of entries the system log as model attribute.
- Returns
- Number of file entries in the system log
◆ getNodeName()
String eu.baltrad.dex.status.controller.NodeStatusController.getNodeName |
( |
| ) |
|
|
inline |
Set node name as model attribute.
- Returns
- Node name
◆ getNodeNames()
List< String > eu.baltrad.dex.status.controller.NodeStatusController.getNodeNames |
( |
| ) |
|
|
inline |
Get peer node names.
- Returns
- List of peer node names
◆ getOperatorName()
String eu.baltrad.dex.status.controller.NodeStatusController.getOperatorName |
( |
| ) |
|
|
inline |
Set node operator name as model attribute.
- Returns
- Operator name
◆ getSoftwareVersion()
String eu.baltrad.dex.status.controller.NodeStatusController.getSoftwareVersion |
( |
| ) |
|
|
inline |
Set software version as model attribute.
- Returns
- Software version
◆ isNodeAddressLocal()
boolean eu.baltrad.dex.status.controller.NodeStatusController.isNodeAddressLocal |
( |
| ) |
|
|
inline |
Returns a boolean indicating whether or not the node address stored in the app configuration is 'localhost' or not.
- Returns
- isNodeAddressLocal
◆ processSubmit()
String eu.baltrad.dex.status.controller.NodeStatusController.processSubmit |
( |
Model | model, |
|
|
@RequestParam(value="peer_name", required=false) String | peerName, |
|
|
HttpServletRequest | request ) |
|
inlineprotected |
Process submit request. Get transfer information for a selected peer.
- Parameters
-
model | Model map |
peerName | Peer name for which transfer status is prepared |
request | HTTP servlet request |
- Returns
- View name
◆ setBltFileManager()
void eu.baltrad.dex.status.controller.NodeStatusController.setBltFileManager |
( |
IBltFileManager | bltFileManager | ) |
|
|
inline |
- Parameters
-
bltFileManager | the bltFileManager to set |
◆ setConfManager()
void eu.baltrad.dex.status.controller.NodeStatusController.setConfManager |
( |
ConfigurationManager | confManager | ) |
|
|
inline |
- Parameters
-
confManager | the confManager to set |
◆ setLogManager()
void eu.baltrad.dex.status.controller.NodeStatusController.setLogManager |
( |
ILogManager | logManager | ) |
|
|
inline |
- Parameters
-
logManager | the logManager to set |
◆ setMessages()
void eu.baltrad.dex.status.controller.NodeStatusController.setMessages |
( |
MessageResourceUtil | messages | ) |
|
|
inline |
- Parameters
-
messages | the messages to set |
◆ setNodeStatusManager()
void eu.baltrad.dex.status.controller.NodeStatusController.setNodeStatusManager |
( |
INodeStatusManager | statusManager | ) |
|
|
inline |
- Parameters
-
statusManager | the statusManager to set |
◆ setRegistryManager()
void eu.baltrad.dex.status.controller.NodeStatusController.setRegistryManager |
( |
IRegistryManager | registryManager | ) |
|
|
inline |
- Parameters
-
registryManager | the registryManager to set |
◆ setRoleManager()
void eu.baltrad.dex.status.controller.NodeStatusController.setRoleManager |
( |
IRoleManager | roleManager | ) |
|
|
inline |
- Parameters
-
roleManager | the roleManager to set |
◆ setSubscriptionManager()
void eu.baltrad.dex.status.controller.NodeStatusController.setSubscriptionManager |
( |
ISubscriptionManager | subscriptionManager | ) |
|
|
inline |
- Parameters
-
subscriptionManager | the subscriptionManager to set |
◆ setUserManager()
void eu.baltrad.dex.status.controller.NodeStatusController.setUserManager |
( |
IUserManager | userManager | ) |
|
|
inline |
- Parameters
-
userManager | the userManager to set |
◆ showStatus()
String eu.baltrad.dex.status.controller.NodeStatusController.showStatus |
( |
Model | model, |
|
|
Principal | principal, |
|
|
HttpSession | session ) |
|
inline |
Sets session user and renders status page.
- Parameters
-
model | Model |
principal | Principal |
session | Http session |
- Returns
- Welcome page name
The documentation for this class was generated from the following file:
- src/java/eu/baltrad/dex/status/controller/NodeStatusController.java