BaltradDex
BALTRAD Data Exchange System
Loading...
Searching...
No Matches
eu.baltrad.dex.status.controller.NodeStatusController Class Reference

Public Member Functions

 NodeStatusController ()
 
String showStatus (Model model, Principal principal, HttpSession session)
 
List< String > getNodeNames ()
 
String getNodeName ()
 
String getCurrentTime ()
 
String getSoftwareVersion ()
 
String getOperatorName ()
 
long getActiveDownloads ()
 
long getActiveUploads ()
 
boolean isNodeAddressLocal ()
 
long getFileEntries ()
 
long getLogEntries ()
 
long getDeliveryEntries ()
 
String getDiskSpace ()
 
String getLastConfigSaved ()
 
String getCurrentUser (HttpSession session, HttpServletRequest request, Principal principal)
 
void setNodeStatusManager (INodeStatusManager statusManager)
 
void setUserManager (IUserManager userManager)
 
void setRoleManager (IRoleManager roleManager)
 
void setConfManager (ConfigurationManager confManager)
 
void setMessages (MessageResourceUtil messages)
 
void setSubscriptionManager (ISubscriptionManager subscriptionManager)
 
void setBltFileManager (IBltFileManager bltFileManager)
 
void setLogManager (ILogManager logManager)
 
void setRegistryManager (IRegistryManager registryManager)
 

Protected Member Functions

String processSubmit (Model model, @RequestParam(value="peer_name", required=false) String peerName, HttpServletRequest request)
 

Static Protected Attributes

static Map< String, Boolean > nodesStatus
 
static Map< String, List< Status > > downloads
 
static Map< String, List< Status > > uploads
 

Detailed Description

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

Constructor & Destructor Documentation

◆ NodeStatusController()

eu.baltrad.dex.status.controller.NodeStatusController.NodeStatusController ( )
inline

Default constructor.

Member Function Documentation

◆ 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
sessionHTTP session
principalPrincipal
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
modelModel map
peerNamePeer name for which transfer status is prepared
requestHTTP servlet request
Returns
View name

◆ setBltFileManager()

void eu.baltrad.dex.status.controller.NodeStatusController.setBltFileManager ( IBltFileManager bltFileManager)
inline
Parameters
bltFileManagerthe bltFileManager to set

◆ setConfManager()

void eu.baltrad.dex.status.controller.NodeStatusController.setConfManager ( ConfigurationManager confManager)
inline
Parameters
confManagerthe confManager to set

◆ setLogManager()

void eu.baltrad.dex.status.controller.NodeStatusController.setLogManager ( ILogManager logManager)
inline
Parameters
logManagerthe logManager to set

◆ setMessages()

void eu.baltrad.dex.status.controller.NodeStatusController.setMessages ( MessageResourceUtil messages)
inline
Parameters
messagesthe messages to set

◆ setNodeStatusManager()

void eu.baltrad.dex.status.controller.NodeStatusController.setNodeStatusManager ( INodeStatusManager statusManager)
inline
Parameters
statusManagerthe statusManager to set

◆ setRegistryManager()

void eu.baltrad.dex.status.controller.NodeStatusController.setRegistryManager ( IRegistryManager registryManager)
inline
Parameters
registryManagerthe registryManager to set

◆ setRoleManager()

void eu.baltrad.dex.status.controller.NodeStatusController.setRoleManager ( IRoleManager roleManager)
inline
Parameters
roleManagerthe roleManager to set

◆ setSubscriptionManager()

void eu.baltrad.dex.status.controller.NodeStatusController.setSubscriptionManager ( ISubscriptionManager subscriptionManager)
inline
Parameters
subscriptionManagerthe subscriptionManager to set

◆ setUserManager()

void eu.baltrad.dex.status.controller.NodeStatusController.setUserManager ( IUserManager userManager)
inline
Parameters
userManagerthe 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
modelModel
principalPrincipal
sessionHttp session
Returns
Welcome page name

The documentation for this class was generated from the following file: