org.aselect.server.elo.handler
Class ConfigStorage

java.lang.Object
  extended by org.aselect.server.elo.handler.ConfigStorage
All Implemented Interfaces:
IELOStorage

public class ConfigStorage
extends java.lang.Object
implements IELOStorage

The Elo store that retrieves its information from the A-Select configuration file.

Concurrency issues:
-

Author:
Alfa & Ariss

Constructor Summary
ConfigStorage()
          Default constructor.
 
Method Summary
 void destroy()
          Does not really do anything.
 ELO getEloByID(java.lang.String sId)
          returns an Elo object associated with the given ID.
 ELO getEloByURL(java.lang.String sURL)
          returns an Elo object associated with the given URL.
 void init(java.lang.Object oConfigSection, ConfigManager oConfigManager, SystemLogger systemLogger)
          Initializes the Elo store.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigStorage

public ConfigStorage()
Default constructor.

Concurrency issues:
-

Preconditions:
-

Postconditions:
-

Method Detail

destroy

public void destroy()
             throws ASelectException
Does not really do anything.

Specified by:
destroy in interface IELOStorage
Throws:
ASelectException - If clean-up fails.
See Also:
IELOStorage.destroy()

getEloByID

public ELO getEloByID(java.lang.String sId)
               throws ASelectStorageException
returns an Elo object associated with the given ID.

Specified by:
getEloByID in interface IELOStorage
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
See Also:
IELOStorage.getEloByID(java.lang.String)

getEloByURL

public ELO getEloByURL(java.lang.String sURL)
                throws ASelectStorageException
returns an Elo object associated with the given URL.

Specified by:
getEloByURL in interface IELOStorage
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
See Also:
IELOStorage.getEloByURL(java.lang.String)

init

public void init(java.lang.Object oConfigSection,
                 ConfigManager oConfigManager,
                 SystemLogger systemLogger)
          throws ASelectException
Initializes the Elo store. It requires the rules from the A-Select configuration specifying the Elos.

Specified by:
init in interface IELOStorage
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.
See Also:
IELOStorage.init(java.lang.Object, org.aselect.system.configmanager.ConfigManager, org.aselect.system.logging.SystemLogger)


Copyright © 2008 SURFnet BV. All Rights Reserved.