|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
org.aselect.system.sam.agent.SAMResourceGroup
public class SAMResourceGroup
The SAM Resource Group is a Thread that represents a resource that will be checked
every interval time.
Description:
SAM stands for Simple A-Select Management. SAM is designed to enable A-Select
to work in a redundant envirnoment. A SAMResourceGroup resembles a group of entry
points (SAMResources) to a particular resource (for example a database). The
SAMResourceGroup will query the SAMResources periodically and keeps a list of
active resources. When queried by an A-Select component, through the
SAMAgent, the SAMResourceGroup will present the A-Select component an active
SAMResource.
Concurrency issues:
-
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary |
---|
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
SAMResourceGroup()
|
Method Summary | |
---|---|
void |
destroy()
Destroys this resourcegroup (SAMResourceGroup) and all resources (SAMResource) within this group. |
SAMResource |
getActiveResource()
Gets a active resource from this group. |
void |
init(java.lang.Object oConfigSection,
ConfigManager oConfigManager,
SystemLogger oSystemLogger)
This function is to initialize the SAMAgent. |
void |
run()
Default methode to start the update status Thread
|
Methods inherited from class java.lang.Thread |
---|
activeCount, checkAccess, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SAMResourceGroup()
Method Detail |
---|
public void init(java.lang.Object oConfigSection, ConfigManager oConfigManager, SystemLogger oSystemLogger) throws ASelectSAMException
oConfigSection
- The section within the configuration file in which
the parameters for this SAMResourceGroup can be found.oConfigManager
- The ConfigManager used to retrieve the config from.oSystemLogger
- The logger used for system logging
ASelectSAMException
- if initialization fails.public SAMResource getActiveResource() throws ASelectSAMException
null
SAMResource
objects.
ASelectSAMException
- If no active resource was found.public void run()
Thread
run
in interface java.lang.Runnable
run
in class java.lang.Thread
Thread.run()
public void destroy()
destroy
in class java.lang.Thread
Thread.destroy()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |