|
COSMOS ${releaseVersion} data-collection Project Internal API Specification |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.eclipse.cosmos.dc.tptp.gla.components.source.internal.GLAController
public class GLAController
Controller manages a set of Context objects by setting the configurations and then starting each context.
| Constructor Summary | |
|---|---|
GLAController(org.w3c.dom.Element binding)
Constructor for Controller. |
|
| Method Summary | |
|---|---|
java.lang.String |
getComponentConfigPath()
Get the name of the file containing the configurations for the components of the contexts. |
java.lang.String |
getContextConfigPath()
Get the name of the file containing the configurations for the contexts |
org.eclipse.hyades.logging.adapter.IContext[] |
getContexts()
Get the set of Context objects |
short |
getLoggingLevel()
Get the logging level of the Adapter object. |
org.eclipse.hyades.logging.adapter.IOutputter |
getLogOutputter()
Get the custom Outputter that the internal logging context is using. |
org.eclipse.hyades.logging.adapter.impl.Status[] |
getStatus()
Get the status of the contexts |
void |
hardStop()
This stop method will still cause the contexts to be stopped but will not call the context listener methods when flushing the components. |
boolean |
isRunning()
Returns whether the Controller is running. |
void |
log(java.lang.String logRecord)
Log the string message to standard error since the logging outputter(s) associated with the AdapterSensor logger will never be
started. |
void |
prepareAdapter(boolean validating)
Prepare the adapter for execution. |
void |
prepareConfiguration(boolean validating)
Prepare the adapter configuration for execution. |
void |
run()
run provides the basic loop for a Controller thread. |
void |
setComponentConfigPath(java.lang.String config)
Set the name of the file containing the configurations for the components of the contexts. |
void |
setContextConfigPath(java.lang.String config)
Set the name of the file containing the configurations for the contexts. |
void |
setLoggingLevel(short newLevel)
Sets the loggingLevel of the Adapter object. |
void |
setLogOutputter(org.eclipse.hyades.logging.adapter.IOutputter logOutputter)
Sets the custom Outputter for the internal logging context to use. |
void |
start()
Start running the controller which means starting up each of the contexts. |
void |
stop()
Stop the controller which means stopping all of the contexts if they are still running. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GLAController(org.w3c.dom.Element binding)
| Method Detail |
|---|
public boolean isRunning()
public void start()
public void stop()
public void hardStop()
public org.eclipse.hyades.logging.adapter.IContext[] getContexts()
public void setContextConfigPath(java.lang.String config)
config - - name of the context configuation filepublic java.lang.String getContextConfigPath()
public void setComponentConfigPath(java.lang.String config)
config - - name of the component configuation filepublic java.lang.String getComponentConfigPath()
public void prepareAdapter(boolean validating)
throws org.eclipse.hyades.logging.adapter.AdapterException
validating - boolean flag to indicate this method is called as part of adapter validation
org.eclipse.hyades.logging.adapter.AdapterException
public void prepareConfiguration(boolean validating)
throws org.eclipse.hyades.logging.adapter.AdapterException
validating - boolean flag to indicate this method is called as part of adapter validation
org.eclipse.hyades.logging.adapter.AdapterExceptionpublic void run()
run in interface java.lang.Runnablepublic void log(java.lang.String logRecord)
AdapterSensor logger will never be
started.
logRecord - The string message to be logged to standard error.public org.eclipse.hyades.logging.adapter.impl.Status[] getStatus()
public org.eclipse.hyades.logging.adapter.IOutputter getLogOutputter()
public void setLogOutputter(org.eclipse.hyades.logging.adapter.IOutputter logOutputter)
logOutputter - The custom Outputter for the internal logging context.public void setLoggingLevel(short newLevel)
newLevel - The level of logging that the Adapter will use during executionpublic short getLoggingLevel()
|
COSMOS ${releaseVersion} data-collection Project Internal API Specification |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||