|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.aselect.system.sam.agent.SAMResource
public class SAMResource
A shield surrounding a configured resource in a resourcegroup.
Description:
SAM stands for Simple A-Select Management. SAM is designed to enable A-Select
to work in a redundant envirnoment. A SAMResource resembles a server,
connection or entry point for a specific resource (e.g. an A-Select Server or
a database). At a given interval the SAMResource will check whether or not
it's resource is still available.
Concurrency issues:
-
Constructor Summary | |
---|---|
SAMResource()
Default constructor. |
Method Summary | |
---|---|
void |
destroy()
Class destroyer. |
java.lang.Object |
getAttributes()
Returns the configuration attributes of this resource as an Object
. |
void |
init(java.lang.Object oConfigSection,
ConfigManager oConfigManager,
SystemLogger oSystemLogger)
Initializes the configured resource. |
boolean |
live()
Check if the resource is still available. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SAMResource()
Method Detail |
---|
public void init(java.lang.Object oConfigSection, ConfigManager oConfigManager, SystemLogger oSystemLogger) throws ASelectSAMException
null
null
null
oConfigSection
- - The section within the configuration file in
which the parameters for the SAMAgent can be found.oConfigManager
- the config manager object that is used to retrieve
the configurationoSystemLogger
- the logger used for system logging
ASelectSAMException
- if the resource could not initializepublic boolean live()
public java.lang.Object getAttributes()
Object
.
public void destroy()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |