|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.aselect.system.sam.agent.SAMAgent
public class SAMAgent
The SAM Agent is used as a central location to retrieve an active resource.
Description:
SAM stands for Simple A-Select Management. SAM is designed to enable A-Select
to work in a redundant envirnoment. The SAMAgent is the central component,
for all other A-Select components, to obtain an active SAMResource. A
SAMResource resembles, for example, an A-Select Server or a database.
Concurrency issues:
-
Constructor Summary | |
---|---|
SAMAgent()
Default constructor |
Method Summary | |
---|---|
void |
destroy()
Destroys all resourcegroups (SAMResourceGroups). |
SAMResource |
getActiveResource(java.lang.String sID)
Gets an active resource from a paricular group. |
void |
init(ConfigManager oConfigManager,
SystemLogger oSystemLogger)
This function is to initialize the SAMAgent. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SAMAgent()
Method Detail |
---|
public void init(ConfigManager oConfigManager, SystemLogger oSystemLogger) throws ASelectSAMException
Hashtable
_htResourceGroups.
oConfigManager
- The section within the configuration file in which
the parameters for the SAMAgent can be found.oSystemLogger
- the SystemLogger
object that is the
logging target
ASelectSAMException
- if no correct configuration was foundpublic SAMResource getActiveResource(java.lang.String sID) throws ASelectSAMException
sID
- The identifier for a particular group of resources.
ASelectSAMException
- if no active resource can be foundpublic void destroy()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |