TPTP 4.4.0 Monitoring Tools Project
Public API Specification

org.eclipse.hyades.trace.sample.loganalyzer
Class AnalyzeLogAction

java.lang.Object
  extended byorg.eclipse.hyades.trace.sample.loganalyzer.AnalyzeLogAction
All Implemented Interfaces:
org.eclipse.jface.operation.IRunnableWithProgress

public class AnalyzeLogAction
extends java.lang.Object
implements org.eclipse.jface.operation.IRunnableWithProgress


Field Summary
protected  org.eclipse.emf.ecore.EObject mofObject
           
 
Constructor Summary
AnalyzeLogAction()
           
 
Method Summary
 org.eclipse.emf.ecore.EObject getMofObject()
          Returns the Mof object that represents the error log file.
 java.util.List getObjectsToAnalyze()
          This class retrieves the entire content selection from the Log Viewer.
 java.lang.String getSymptomDBPath()
          Returns the symptom database location that is used to analyze the error log file.
 void importDB(org.eclipse.core.runtime.IProgressMonitor monitor)
           
 void run(org.eclipse.core.runtime.IProgressMonitor monitor)
          This method is were all the work is done.
 void setMofObject(org.eclipse.emf.ecore.EObject object)
          Sets the Mof object that represents the error log file.
 void setProjectName(java.lang.String pName)
          Sets the project Name of where to import the db into
 void setSDBFileName(java.lang.String string)
          specifies what the sdb file should be called in the workspace
 void setSymptomDBPath(java.lang.String string)
          Sets the symptom database location that is used to analyze the error log file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mofObject

protected org.eclipse.emf.ecore.EObject mofObject
Constructor Detail

AnalyzeLogAction

public AnalyzeLogAction()
Method Detail

run

public void run(org.eclipse.core.runtime.IProgressMonitor monitor)
         throws java.lang.reflect.InvocationTargetException,
                java.lang.InterruptedException
This method is were all the work is done. The error log file is analyzed using a specified symptom database. The Log Tree Viewer is also refreshed to reflect the analyzed error log file.

Specified by:
run in interface org.eclipse.jface.operation.IRunnableWithProgress
Parameters:
monitor - - shows the progress of this action.
Throws:
java.lang.reflect.InvocationTargetException
java.lang.InterruptedException
See Also:
IRunnableWithProgress.run(org.eclipse.core.runtime.IProgressMonitor)

getObjectsToAnalyze

public java.util.List getObjectsToAnalyze()
This class retrieves the entire content selection from the Log Viewer. All the contents in the log viewer will be analyzed.

Returns:
List that represents the records shown in the Log Viewer.

getSymptomDBPath

public java.lang.String getSymptomDBPath()
Returns the symptom database location that is used to analyze the error log file.

Returns:
String that represents the symptom database location that is used to analyze the error log file.

setSymptomDBPath

public void setSymptomDBPath(java.lang.String string)
Sets the symptom database location that is used to analyze the error log file.

Parameters:
string - - that represents the symptom database location that is used to analyze the error log file.

setProjectName

public void setProjectName(java.lang.String pName)
Sets the project Name of where to import the db into

Parameters:
pName -

setSDBFileName

public void setSDBFileName(java.lang.String string)
specifies what the sdb file should be called in the workspace

Parameters:
string -

getMofObject

public org.eclipse.emf.ecore.EObject getMofObject()
Returns the Mof object that represents the error log file. This object will be analyzed using the specified symptom database.

Returns:
EObject represents the error log file that will be analyzed.

setMofObject

public void setMofObject(org.eclipse.emf.ecore.EObject object)
Sets the Mof object that represents the error log file. This object will be analyzed using the specified symptom database.

Parameters:
object - - represents the error log file that will be analyzed.

importDB

public void importDB(org.eclipse.core.runtime.IProgressMonitor monitor)

TPTP 4.4.0 Monitoring Tools Project
Public API Specification