com.mindtree.techworks.insight.model
Class LogEventModel

java.lang.Object
  extended by com.mindtree.techworks.insight.model.LogEventModel
All Implemented Interfaces:
ILogEventModel, java.io.Serializable
Direct Known Subclasses:
ParsedEventAppender

public class LogEventModel
extends java.lang.Object
implements ILogEventModel, java.io.Serializable

This is the model class for Insight that represents one Page

Version:
$Revision: 27 $ $Date: 2007-12-16 04:58:03 -0700 (Sun, 16 Dec 2007) $
Author:
antonypulicken
See Also:
ILogEventModel, LogEvent, Serialized Form

Field Summary
protected  Controller controller
          Controller instance
protected  PageSet pageSet
          PageSet instance
 
Constructor Summary
LogEventModel(Controller controller)
          Constructor that initializes this LogEventModel
 
Method Summary
 void clear()
          Clears the contents of this LogEventModel
 void clearSearchResults()
          Clears the search results associated with this log event model
 void fireLogEventAdded(LogEvent logEvent)
          This method is called when a new event is added to the model.
 long getLogEventIndex()
           
 java.lang.String getLogEventModelName()
           
 PageSet getPageSet()
          Returns the PageSet instance
 LogEventModel getPreviousLogEventModel()
          Returns the previous LogEventModel
 long getProcessedEventCount()
           
 SearchResults getSearchResults()
           
 java.lang.String getStatus()
          Gets the status display text for this LogEventModel
 UniqueLogCriteria getUniqueCriteria()
          Returns unique logged values for the supported filter criteria.
 void setLogEventIndex(long logEventIndex)
           
 void setLogEventModelName(java.lang.String logEventModelName)
           
 void setPageSet(PageSet pageSet)
           
 void setPreviousLogEventModel(LogEventModel logEventModel)
          Sets the previous LogEventModel
 void setProcessedEventCount(long processedEventCount)
           
 void setSearchResults(SearchResults searchResults)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pageSet

protected PageSet pageSet
PageSet instance


controller

protected Controller controller
Controller instance

Constructor Detail

LogEventModel

public LogEventModel(Controller controller)
Constructor that initializes this LogEventModel

Parameters:
controller - the Controller instance for this class
Method Detail

getPageSet

public PageSet getPageSet()
Returns the PageSet instance

Returns:
pageSet The PageSet instance

clear

public void clear()
Clears the contents of this LogEventModel


fireLogEventAdded

public void fireLogEventAdded(LogEvent logEvent)
This method is called when a new event is added to the model.

Parameters:
logEvent - LogEvent log event.

getUniqueCriteria

public UniqueLogCriteria getUniqueCriteria()
Returns unique logged values for the supported filter criteria.

Returns:
uniqueLogCriteria UniqueLogCriteria an object containing set of unique values for the supported filter criteria

setPreviousLogEventModel

public void setPreviousLogEventModel(LogEventModel logEventModel)
Sets the previous LogEventModel

Parameters:
logEventModel - The current LogEventModel

getPreviousLogEventModel

public LogEventModel getPreviousLogEventModel()
Returns the previous LogEventModel

Returns:
previousLogEventModel

setPageSet

public void setPageSet(PageSet pageSet)
Parameters:
pageSet - The pageSet to set.

getLogEventIndex

public long getLogEventIndex()
Returns:
Returns the logEventIndex.

setLogEventIndex

public void setLogEventIndex(long logEventIndex)
Parameters:
logEventIndex - The logEventIndex to set.

getLogEventModelName

public java.lang.String getLogEventModelName()
Returns:
Returns the logEventModelName.

setLogEventModelName

public void setLogEventModelName(java.lang.String logEventModelName)
Parameters:
logEventModelName - The logEventModelName to set.

getStatus

public java.lang.String getStatus()
Gets the status display text for this LogEventModel

Returns:
the status display text

getProcessedEventCount

public long getProcessedEventCount()
Returns:
Returns the processedEventCount.

setProcessedEventCount

public void setProcessedEventCount(long processedEventCount)
Parameters:
processedEventCount - The processedEventCount to set.

getSearchResults

public SearchResults getSearchResults()
Returns:
Returns the searchResults.

setSearchResults

public void setSearchResults(SearchResults searchResults)
Parameters:
searchResults - The searchResults to set.

clearSearchResults

public void clearSearchResults()
Clears the search results associated with this log event model



Copyright © 2003-2008 MindTree Consulting Ltd.. All Rights Reserved.