BaltradDex
BALTRAD Data Exchange System
Loading...
Searching...
No Matches
eu.baltrad.dex.status.manager.impl.NodeStatusManager Class Reference
Inheritance diagram for eu.baltrad.dex.status.manager.impl.NodeStatusManager:
eu.baltrad.dex.status.manager.INodeStatusManager

Public Member Functions

 NodeStatusManager ()
 
void setJdbcTemplate (JdbcOperations jdbcTemplate)
 
List< String > loadNodeNames () throws DataAccessException
 
Status load (int subscriptionId) throws DataAccessException
 
List< Statusload (String peerName, String subscriptionType) throws DataAccessException
 
int store (Status status) throws DataAccessException
 
int store (int statusId, int subscriptionId) throws DataAccessException
 
int update (Status status, int subscriptionId) throws DataAccessException
 
int delete (int subscriptionId) throws DataAccessException
 
Set< String > getRuntimeNodeNames ()
 
void setRuntimeNodeStatus (String nodeName, int httpStatus)
 
int getRuntimeNodeStatus (String nodeName)
 
Date getRuntimeNodeDate (String nodeName)
 

Detailed Description

Implements node status manager.

Author
Maciej Szewczykowski | macie.nosp@m.j@ba.nosp@m.ltrad.nosp@m..eu
Version
1.0
Since
1.0

Constructor & Destructor Documentation

◆ NodeStatusManager()

eu.baltrad.dex.status.manager.impl.NodeStatusManager.NodeStatusManager ( )
inline

Constructor.

Member Function Documentation

◆ delete()

int eu.baltrad.dex.status.manager.impl.NodeStatusManager.delete ( int subscriptionId) throws DataAccessException
inline

Delete status related to subscription with a given id.

Parameters
subscriptionIdSubscription id
Returns
Number of deleted records
Exceptions
DataAccessException

Implements eu.baltrad.dex.status.manager.INodeStatusManager.

◆ getRuntimeNodeDate()

Date eu.baltrad.dex.status.manager.impl.NodeStatusManager.getRuntimeNodeDate ( String nodeName)
inline

◆ getRuntimeNodeNames()

Set< String > eu.baltrad.dex.status.manager.impl.NodeStatusManager.getRuntimeNodeNames ( )
inline

◆ getRuntimeNodeStatus()

int eu.baltrad.dex.status.manager.impl.NodeStatusManager.getRuntimeNodeStatus ( String nodeName)
inline

◆ load() [1/2]

Status eu.baltrad.dex.status.manager.impl.NodeStatusManager.load ( int subscriptionId) throws DataAccessException
inline

Load status matching given subscription.

Parameters
subscriptionIdSubscription id
Returns
Status record corresponding to a given subscription
Exceptions
DataAccessException

Implements eu.baltrad.dex.status.manager.INodeStatusManager.

◆ load() [2/2]

List< Status > eu.baltrad.dex.status.manager.impl.NodeStatusManager.load ( String peerName,
String subscriptionType ) throws DataAccessException
inline

Load status for a given peer node and subscriptions type.

Parameters
peerNamePeer node name
subscriptionTypeSubscription type
Returns
Status information for selected peer node
Exceptions
DataAccessException

Implements eu.baltrad.dex.status.manager.INodeStatusManager.

◆ loadNodeNames()

List< String > eu.baltrad.dex.status.manager.impl.NodeStatusManager.loadNodeNames ( ) throws DataAccessException
inline

Load node names based on the information from status table.

Returns
List of node names
Exceptions
DataAccessException

Implements eu.baltrad.dex.status.manager.INodeStatusManager.

◆ setJdbcTemplate()

void eu.baltrad.dex.status.manager.impl.NodeStatusManager.setJdbcTemplate ( JdbcOperations jdbcTemplate)
inline
Parameters
jdbcTemplatethe jdbcTemplate to set

◆ setRuntimeNodeStatus()

void eu.baltrad.dex.status.manager.impl.NodeStatusManager.setRuntimeNodeStatus ( String nodeName,
int httpStatus )
inline

◆ store() [1/2]

int eu.baltrad.dex.status.manager.impl.NodeStatusManager.store ( int statusId,
int subscriptionId ) throws DataAccessException
inline

Store reference to subscription record.

Parameters
statusIdStatus record id
subscriptionIdSubscription record id
Returns
Number of stored records
Exceptions
DataAccessException

Implements eu.baltrad.dex.status.manager.INodeStatusManager.

◆ store() [2/2]

int eu.baltrad.dex.status.manager.impl.NodeStatusManager.store ( Status status) throws DataAccessException
inline

Store status record.

Parameters
statusStatus object to store
Returns
Id of a stored record
Exceptions
DataAccessException

Implements eu.baltrad.dex.status.manager.INodeStatusManager.

◆ update()

int eu.baltrad.dex.status.manager.impl.NodeStatusManager.update ( Status status,
int subscriptionId ) throws DataAccessException
inline

Update status for selected subscription.

Parameters
statusStatus object
subscriptionIdSubscription id
Returns
Number of updated records
Exceptions
DataAccessException

Implements eu.baltrad.dex.status.manager.INodeStatusManager.


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