kieker.webgui.web.beans.view
Class ControllerBean

java.lang.Object
  extended by kieker.webgui.web.beans.view.ControllerBean

@Component
@Scope(value="view")
public final class ControllerBean
extends Object

The ControllerBean contains the necessary data behind an instance of the analysis controller. The class is a Spring managed bean with view scope to make sure that one user (even in one session) can open multiple projects at a time without causing any problems.

Author:
Nils Christian Ehmke

Constructor Summary
ControllerBean()
          Creates a new instance of this class.
 
Method Summary
 void cleanAnalysis()
          This method cleans the current analysis instance.
 void emergencyShutdown()
          Initializes an emergency shutdown.
 Object[] getAnalysisLog()
          Delivers the available log entries of the current analysis controller instance.
 String getCurrentDetailMessage()
           
 String getProjectName()
           
 Collection<LogEntry> getViewLog()
          Delivers the available log entries of the current view.
 void instantiateAnalysis()
          This method initializes the current analysis and informs the user about a fail.
 boolean isAnalysisFailed()
          Checks whether the analysis is currently in the failed state.
 boolean isAnalysisNotAvailable()
          Checks whether the analysis is not available.
 boolean isAnalysisReady()
          Checks whether the analysis is currently in the ready state.
 boolean isAnalysisRunning()
          Checks whether the analysis is currently running.
 boolean isAnalysisTerminated()
          Checks whether the analysis is currently terminated.
 boolean isAnalysisTerminating()
          Checks whether the analysis is currently terminating.
 void reloadCockpit()
          Reloads the cockpit displays of the current project.
 void setCurrentDetailMessage(String detailMessage)
           
 void setProjectName(String newName)
           
 void startAnalysis()
          This method starts the current analysis and informs the user about a fail.
 void stopAnalysis()
          This method stops the current analysis and informs the user about a fail.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ControllerBean

public ControllerBean()
Creates a new instance of this class. Do not use this constructor. This bean is Spring managed.

Method Detail

setProjectName

public void setProjectName(String newName)

getProjectName

public String getProjectName()

startAnalysis

public void startAnalysis()
This method starts the current analysis and informs the user about a fail.


reloadCockpit

public void reloadCockpit()
Reloads the cockpit displays of the current project.


stopAnalysis

public void stopAnalysis()
This method stops the current analysis and informs the user about a fail.


emergencyShutdown

public void emergencyShutdown()
Initializes an emergency shutdown.


instantiateAnalysis

public void instantiateAnalysis()
This method initializes the current analysis and informs the user about a fail.


cleanAnalysis

public void cleanAnalysis()
This method cleans the current analysis instance.


isAnalysisRunning

public boolean isAnalysisRunning()
Checks whether the analysis is currently running.

Returns:
true if and only if the analysis is running.

isAnalysisTerminating

public boolean isAnalysisTerminating()
Checks whether the analysis is currently terminating.

Returns:
true if and only if the analysis is currently terminating.

isAnalysisReady

public boolean isAnalysisReady()
Checks whether the analysis is currently in the ready state.

Returns:
true if and only if the analysis is ready to be started.

isAnalysisNotAvailable

public boolean isAnalysisNotAvailable()
Checks whether the analysis is not available.

Returns:
true if and only if the analysis is not available.

isAnalysisTerminated

public boolean isAnalysisTerminated()
Checks whether the analysis is currently terminated.

Returns:
true if and only if the analysis has been terminated.

isAnalysisFailed

public boolean isAnalysisFailed()
Checks whether the analysis is currently in the failed state.

Returns:
true if and only if the analysis has failed.

getAnalysisLog

public Object[] getAnalysisLog()
Delivers the available log entries of the current analysis controller instance.

Returns:
The current log entries.

setCurrentDetailMessage

public void setCurrentDetailMessage(String detailMessage)

getCurrentDetailMessage

public String getCurrentDetailMessage()

getViewLog

public Collection<LogEntry> getViewLog()
Delivers the available log entries of the current view.

Returns:
The current log entries.


Copyright © 2015. All rights reserved.