org.oddjob.monitor.model
Class ExplorerModelImpl

java.lang.Object
  extended by org.oddjob.monitor.model.ExplorerModelImpl
All Implemented Interfaces:
ExplorerModel

public class ExplorerModelImpl
extends Object
implements ExplorerModel

Data model for an explorer session.

Author:
Rob Gordon

Constructor Summary
ExplorerModelImpl(ArooaSession session)
          Constructor.
 
Method Summary
 void destroy()
          Destroy this model.
 ConsoleArchiver getConsoleArchiver()
          Get the console archiver.
 ContextInitialiser[] getContextInitialisers()
           
 ExplorerAction[] getExplorerActions()
           
 LogArchiver getLogArchiver()
          Get the log archiver.
 String getLogFormat()
          Getter for log format.
 Oddjob getOddjob()
          Get the root node for this model.
 ThreadManager getThreadManager()
          Get an available ThreadManager.
 void setLogFormat(String logFormat)
          The log format.
 void setOddjob(Oddjob rootNode)
          Set the model root node.
 void setThreadManager(ThreadManager threadManager)
          Set the ThreadManager child actions should use.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExplorerModelImpl

public ExplorerModelImpl(ArooaSession session)
Constructor.

Parameters:
session - The session used to load the actions.
Method Detail

setOddjob

public void setOddjob(Oddjob rootNode)
Set the model root node. This must be done before the model is used.

Parameters:
rootNode - The root node.

getOddjob

public Oddjob getOddjob()
Get the root node for this model.

Specified by:
getOddjob in interface ExplorerModel
Returns:
The root node.

setThreadManager

public void setThreadManager(ThreadManager threadManager)
Set the ThreadManager child actions should use.

Parameters:
threadManager - The ThreadManager.

getThreadManager

public ThreadManager getThreadManager()
Get an available ThreadManager.

Specified by:
getThreadManager in interface ExplorerModel
Returns:
A ThreadManager.

destroy

public void destroy()
Destroy this model.

Specified by:
destroy in interface ExplorerModel

getLogFormat

public String getLogFormat()
Getter for log format.

Specified by:
getLogFormat in interface ExplorerModel
Returns:
The log format.

setLogFormat

public void setLogFormat(String logFormat)
The log format.

Parameters:
logFormat - The log format.

getLogArchiver

public LogArchiver getLogArchiver()
Get the log archiver. This archiver is the top level archiver created for the root node.

For the archiver for a particular node use the ExplorerContext archiver.

Specified by:
getLogArchiver in interface ExplorerModel
Returns:
A LogArchiver.

getConsoleArchiver

public ConsoleArchiver getConsoleArchiver()
Get the console archiver. This archiver is the top level archiver created for the root node.

For the archiver for a particular node use the ExplorerContext archiver.

Specified by:
getConsoleArchiver in interface ExplorerModel
Returns:
A ConsoelArchiver.

getContextInitialisers

public ContextInitialiser[] getContextInitialisers()
Specified by:
getContextInitialisers in interface ExplorerModel

getExplorerActions

public ExplorerAction[] getExplorerActions()
Specified by:
getExplorerActions in interface ExplorerModel