|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmaito.integration.IntegratorImpl
public class IntegratorImpl
Constructor Summary | |
---|---|
IntegratorImpl()
Loads the database config into memory. |
Method Summary | |
---|---|
void |
addGraph(java.lang.String graphName)
Adds a new graph to this Integrator. |
static void |
debug(java.lang.String s)
|
java.lang.String[] |
getCurrentTasks()
Returns a user readable description of every task that is in progress at the moment. |
java.lang.String[] |
getErrors()
Returns all errors that have occurred since the last data processing was started. |
java.util.List |
getGraphs()
Returns an array of all resource graphs known to this Integrator. |
java.util.List |
getSources(java.lang.String graphName)
Returns the descriptions of the sources that are integrated into a graph. |
void |
integrate(DataSourceDescription[] sources,
java.lang.String graph)
Starts the creation of a new resource graph in the integration subsystem. |
static void |
main(java.lang.String[] args)
|
void |
setLogListener(LogListener listener)
Sets a listener for all log messages sent by this DataProcessor. |
java.lang.String |
setLogListener(java.lang.String graph,
LogListener listener)
Sets a listener for log messages sent by this Integrator. |
protected void |
taskEnded()
|
protected void |
taskStarted()
|
boolean |
workInProgress()
Tells whether this DataProcessor is currently processing data. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IntegratorImpl()
Method Detail |
---|
public void addGraph(java.lang.String graphName) throws java.lang.IllegalArgumentException
Integrator
integrate
-method is called.
addGraph
in interface Integrator
graphName
- The name of the new resource graph
java.lang.IllegalArgumentException
- Thrown when the graph with the given name already exists.public java.util.List getGraphs()
Integrator
getGraphs
in interface Integrator
public java.util.List getSources(java.lang.String graphName) throws java.lang.IllegalArgumentException
Integrator
getSources
in interface Integrator
graphName
- The graph that's source are to be returned.
java.lang.IllegalArgumentException
- Thrown if something is wrong with the graph
parameter.public void integrate(DataSourceDescription[] sources, java.lang.String graph) throws IntegrationException
Integrator
integrate
in interface Integrator
sources
- The data sources that are integrated.graph
- The name of the graph that is to be integrated.
IntegrationException
- Thrown if something goes wrong during the integration process.public java.lang.String setLogListener(java.lang.String graph, LogListener listener)
Integrator
setLogListener
in interface Integrator
graph
- The resource graph that's log messages are to be listened to. If null
all messages are listened to.listener
- The object that listens to this Integrator's log messages.public boolean workInProgress()
DataProcessor
workInProgress
in interface DataProcessor
public java.lang.String[] getCurrentTasks()
DataProcessor
getCurrentTasks
in interface DataProcessor
protected void taskStarted()
protected void taskEnded()
public java.lang.String[] getErrors()
DataProcessor
getErrors
in interface DataProcessor
public void setLogListener(LogListener listener)
DataProcessor
setLogListener
in interface DataProcessor
listener
- The object that listens to this DataProcessor's log messages.public static void debug(java.lang.String s)
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |