org.aselect.server.elo
Interface IELOStorage

All Known Implementing Classes:
ConfigStorage

public interface IELOStorage

Interface describing a method for loading Elo property objects.

Description:
Possible implementations include:



Concurrency issues:
-

Author:
Alfa & Ariss

Method Summary
 void destroy()
          Gives the Elo store a chance to clean up.
 ELO getEloByID(java.lang.String sId)
          Returns an Elo object from the store, using its ID.
 ELO getEloByURL(java.lang.String sURL)
          Returns an Elo object from the store, using the URL.
 void init(java.lang.Object oConfigSection, ConfigManager oConfigManager, SystemLogger systemLogger)
          Initializes the Elo store.
 

Method Detail

init

void init(java.lang.Object oConfigSection,
          ConfigManager oConfigManager,
          SystemLogger systemLogger)
          throws ASelectException
Initializes the Elo store.

Description:
The config section should fit the elo store's type.

Concurrency issues:
-

Preconditions:
- oConfigSection != null

- oConfigManager != null

Postconditions:
-

Parameters:
oConfigSection - Section from the configuration applicable for the Elo Store.
oConfigManager - The configuration manager.
systemLogger - The system logger.
Throws:
ASelectException - If an error occurs while processing the configuration.

destroy

void destroy()
             throws ASelectException
Gives the Elo store a chance to clean up.

Concurrency issues:
-

Preconditions:
-

Postconditions:
-

Throws:
ASelectException - If clean-up fails.

getEloByID

ELO getEloByID(java.lang.String sId)
               throws ASelectStorageException
Returns an Elo object from the store, using its ID.

Concurrency issues:
-

Preconditions:
-

Postconditions:
-

Parameters:
sId - The id of the Elo.
Returns:
The Elo object attached to the given ID or null if the Elo with the given ID could not be found.
Throws:
ASelectStorageException

getEloByURL

ELO getEloByURL(java.lang.String sURL)
                throws ASelectStorageException
Returns an Elo object from the store, using the URL.

Concurrency issues:
-

Preconditions:
-

Postconditions:
-

Parameters:
sURL - The URL of the Elo.
Returns:
The Elo object attached to the given URL or null if the Elo with the given URL could not be found.
Throws:
ASelectStorageException


Copyright © 2008 SURFnet BV. All Rights Reserved.