|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Thread edu.sdsc.inca.consumer.AgentBean
public class AgentBean
Special bean that periodically queries and caches the current Inca configuration stored on the agent. This bean starts up a thread to periodically query the
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 | |
---|---|
AgentBean()
Create a new AgentBean object. |
Method Summary | |
---|---|
edu.sdsc.inca.dataModel.resourceConfig.ResourceConfigDocument |
filter(java.lang.String id,
java.lang.String[] macros)
Create a new document using the __groupname__ as a replacement for the hostname and includes just the passed in macros |
int |
getCacheReloadPeriod()
Return the period of refreshSuiteCaching for the suite and resources in the Consumer's cache. |
java.lang.String |
getCatalog()
Get the current catalog contents. |
edu.sdsc.inca.dataModel.inca.IncaDocument |
getIncaDoc()
Return cached inca config document. |
edu.sdsc.inca.util.ResourcesWrapper |
getResources()
Return the cached resources object. |
java.lang.String |
getSuiteNames()
Return the suite names as an XML document |
java.lang.String |
getSuites()
Return the cached suite configuration. |
java.lang.String |
getUri()
|
void |
run()
The functionality of the thread. |
void |
setBeanConfig(java.util.Properties beanConfig)
Set the attributes for connecting to the agent and also the maxWait and reload frequency. |
void |
setCacheReloadPeriod(int period)
Set the period of refreshSuiteCaching for the suite and resources in the Consumer's cache. |
java.lang.String |
toString()
Return xml document in string |
Methods inherited from class java.lang.Thread |
---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, 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, yield |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AgentBean()
Method Detail |
---|
public edu.sdsc.inca.dataModel.resourceConfig.ResourceConfigDocument filter(java.lang.String id, java.lang.String[] macros) throws edu.sdsc.inca.ConfigurationException
id
- only return resources that are part of this group idmacros
- The macro values to return for these resources
edu.sdsc.inca.ConfigurationException
- if trouble parsing resourcespublic java.lang.String getCatalog()
public int getCacheReloadPeriod()
public edu.sdsc.inca.dataModel.inca.IncaDocument getIncaDoc()
public edu.sdsc.inca.util.ResourcesWrapper getResources()
public java.lang.String getSuites()
public java.lang.String getSuiteNames()
public java.lang.String getUri()
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public void setBeanConfig(java.util.Properties beanConfig)
beanConfig
- A properties object containing the config options for
this objectpublic void setCacheReloadPeriod(int period)
period
- the number of milliseconds in between reloads of cached
objectspublic java.lang.String toString()
toString
in class java.lang.Thread
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |