BEAST
eu.baltrad.beast.adaptor.BltAdaptorManager Class Reference
Inheritance diagram for eu.baltrad.beast.adaptor.BltAdaptorManager:
eu.baltrad.beast.adaptor.IBltAdaptorManager

Public Member Functions

 BltAdaptorManager ()
 Default constructor.
 
void setSystemReporter (ISystemReporter reporter)
 Sets the reporter.
 
void setJdbcTemplate (JdbcOperations template)
 Sets the jdbc template to be used by this class.
 
void setTypes (List< IAdaptorConfigurationManager > managers)
 Sets the available types.
 
Map< String, IAdaptorConfigurationManagergetTypeRegistry ()
 
void setAdaptors (Map< String, IAdaptor > adaptors)
 Sets the adaptors.
 
synchronized IAdaptor register (IAdaptorConfiguration configuration)
 
synchronized IAdaptor reregister (IAdaptorConfiguration configuration)
 
void unregister (String name)
 
List< IAdaptorgetRegisteredAdaptors ()
 
List< String > getAvailableTypes ()
 
IAdaptorConfiguration createConfiguration (String type, String name)
 
List< String > getAdaptorNames ()
 
IAdaptor getAdaptor (String name)
 
void handle (IMultiRoutedMessage message)
 
void handle (IRoutedMessage message)
 Sends a message to destination given by the message.
 
void handle (IRoutedMessage message, IAdaptorCallback callback)
 
void afterPropertiesSet () throws Exception
 

Protected Member Functions

IAdaptor updateAdaptorConfiguration (int adaptor_id, IAdaptorConfiguration configuration)
 Updates the adaptor specific configuration.
 
IAdaptor redefineAdaptorConfiguration (int adaptor_id, String type, IAdaptorConfiguration configuration)
 Will reregister the adaptor specific configuration for the new type of adaptor, then the old adaptor specific configuration will be removed.
 
RowMapper< IAdaptorgetAdaptorMapper ()
 Creates a ParameterizedRowMapper instance for fetching the data from the database tables.
 
IAdaptor doMapAdaptorRow (ResultSet rs, int rownum) throws SQLException
 Maps one adaptor row into an adaptor by using the types read function.
 

Detailed Description

Author
Anders Henja

Constructor & Destructor Documentation

◆ BltAdaptorManager()

eu.baltrad.beast.adaptor.BltAdaptorManager.BltAdaptorManager ( )
inline

Default constructor.

Member Function Documentation

◆ afterPropertiesSet()

void eu.baltrad.beast.adaptor.BltAdaptorManager.afterPropertiesSet ( ) throws Exception
inline
See also
org.springframework.beans.factory.InitializingBean.afterPropertiesSet()

◆ createConfiguration()

IAdaptorConfiguration eu.baltrad.beast.adaptor.BltAdaptorManager.createConfiguration ( String type,
String name )
inline

◆ doMapAdaptorRow()

IAdaptor eu.baltrad.beast.adaptor.BltAdaptorManager.doMapAdaptorRow ( ResultSet rs,
int rownum ) throws SQLException
inlineprotected

Maps one adaptor row into an adaptor by using the types read function.

Parameters
rsthe result set
rownumthe row number
Returns
the adaptor if found
Exceptions
SQLExceptionon any SQL related exception

◆ getAdaptor()

IAdaptor eu.baltrad.beast.adaptor.BltAdaptorManager.getAdaptor ( String name)
inline

◆ getAdaptorMapper()

RowMapper< IAdaptor > eu.baltrad.beast.adaptor.BltAdaptorManager.getAdaptorMapper ( )
inlineprotected

Creates a ParameterizedRowMapper instance for fetching the data from the database tables.

Returns
the parameterized row mapper

◆ getAdaptorNames()

List< String > eu.baltrad.beast.adaptor.BltAdaptorManager.getAdaptorNames ( )
inline

◆ getAvailableTypes()

List< String > eu.baltrad.beast.adaptor.BltAdaptorManager.getAvailableTypes ( )
inline

◆ getRegisteredAdaptors()

List< IAdaptor > eu.baltrad.beast.adaptor.BltAdaptorManager.getRegisteredAdaptors ( )
inline

◆ getTypeRegistry()

Map< String, IAdaptorConfigurationManager > eu.baltrad.beast.adaptor.BltAdaptorManager.getTypeRegistry ( )
inline
Returns
the type registry

◆ handle() [1/3]

◆ handle() [2/3]

void eu.baltrad.beast.adaptor.BltAdaptorManager.handle ( IRoutedMessage message)
inline

Sends a message to destination given by the message.

Parameters
messagethe message
Exceptions
AdaptorExceptionif the message not could be passed on to the adaptor

Implements eu.baltrad.beast.adaptor.IBltAdaptorManager.

◆ handle() [3/3]

void eu.baltrad.beast.adaptor.BltAdaptorManager.handle ( IRoutedMessage message,
IAdaptorCallback callback )
inline

◆ redefineAdaptorConfiguration()

IAdaptor eu.baltrad.beast.adaptor.BltAdaptorManager.redefineAdaptorConfiguration ( int adaptor_id,
String type,
IAdaptorConfiguration configuration )
inlineprotected

Will reregister the adaptor specific configuration for the new type of adaptor, then the old adaptor specific configuration will be removed.

Parameters
adaptor_idthe adaptor id
typethe old type of adaptor configuration
configurationthe new adaptor configuration
Returns
an adaptor
Exceptions
AdaptorExceptionon failure

◆ register()

synchronized IAdaptor eu.baltrad.beast.adaptor.BltAdaptorManager.register ( IAdaptorConfiguration configuration)
inline

◆ reregister()

synchronized IAdaptor eu.baltrad.beast.adaptor.BltAdaptorManager.reregister ( IAdaptorConfiguration configuration)
inline

◆ setAdaptors()

void eu.baltrad.beast.adaptor.BltAdaptorManager.setAdaptors ( Map< String, IAdaptor > adaptors)
inline

Sets the adaptors.

Mostly used for test purposes otherwise this information is read from the database.

Parameters
adaptorsthe adaptors

◆ setJdbcTemplate()

void eu.baltrad.beast.adaptor.BltAdaptorManager.setJdbcTemplate ( JdbcOperations template)
inline

Sets the jdbc template to be used by this class.

Parameters
templatethe template

◆ setSystemReporter()

void eu.baltrad.beast.adaptor.BltAdaptorManager.setSystemReporter ( ISystemReporter reporter)
inline

Sets the reporter.

Parameters
reporterthe reporter to use, MAY not be null

◆ setTypes()

void eu.baltrad.beast.adaptor.BltAdaptorManager.setTypes ( List< IAdaptorConfigurationManager > managers)
inline

Sets the available types.

Parameters
managersa list of adaptor types that are supported by this manager

◆ unregister()

void eu.baltrad.beast.adaptor.BltAdaptorManager.unregister ( String name)
inline

◆ updateAdaptorConfiguration()

IAdaptor eu.baltrad.beast.adaptor.BltAdaptorManager.updateAdaptorConfiguration ( int adaptor_id,
IAdaptorConfiguration configuration )
inlineprotected

Updates the adaptor specific configuration.

Parameters
adaptor_idthe adaptor
configurationthe configuration
Returns
an adaptor
Exceptions
AdaptorExceptionon failure

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