com.buildforge.services.client.dbo
Class Log

java.lang.Object
  extended by com.buildforge.services.client.dbo.Log

public class Log
extends java.lang.Object

This class contains the logs that are the bound to the Result objects that are the results of a Project's Step's execution. Each Log object represents a line of output from the execution.


Field Summary
static java.lang.Class<Log> CLASS
           
 
Constructor Summary
Log(APIClientConnection conn)
           
 
Method Summary
static java.util.List<Log> findByResult(APIClientConnection conn, int buildId, java.lang.String uid)
          Retrieves every line of log output for a given Result, identified by build is and result id
static java.util.List<Log> findByResult(APIClientConnection conn, Result result)
          Retrieves every line of log output for a given Result object
 APIClientConnection getConnection()
           
 FilterPatternDBO.Action getFilterAction()
          Returns the filter action taken in response to this line, if any
 int getLineId()
          Returns the ordinal identifier of this line
 java.lang.String getMessageText()
          Returns the text of the log line
 int getStamp()
          Returns the timestamp at which this line was created
 int getStepPart()
           
 java.lang.String getType()
           
 java.lang.String getUid()
          Returns the unique identifier of this log line
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CLASS

public static final java.lang.Class<Log> CLASS
Constructor Detail

Log

public Log(APIClientConnection conn)
Method Detail

getConnection

public APIClientConnection getConnection()

findByResult

public static java.util.List<Log> findByResult(APIClientConnection conn,
                                               Result result)
                                        throws java.io.IOException,
                                               ServiceException
Retrieves every line of log output for a given Result object

Parameters:
conn -
result - The full result object to search by
Returns:
A List of Log objects that represent each line of log output
Throws:
java.io.IOException
ServiceException

findByResult

public static java.util.List<Log> findByResult(APIClientConnection conn,
                                               int buildId,
                                               java.lang.String uid)
                                        throws java.io.IOException,
                                               ServiceException
Retrieves every line of log output for a given Result, identified by build is and result id

Parameters:
conn -
buildId - The unique identified of the Build object
uid - The unique identifier of the Result object
Returns:
Throws:
java.io.IOException
ServiceException

getUid

public java.lang.String getUid()
Returns the unique identifier of this log line


getType

public java.lang.String getType()

getLineId

public int getLineId()
Returns the ordinal identifier of this line


getStamp

public int getStamp()
Returns the timestamp at which this line was created


getMessageText

public java.lang.String getMessageText()
Returns the text of the log line


getFilterAction

public FilterPatternDBO.Action getFilterAction()
Returns the filter action taken in response to this line, if any


getStepPart

public int getStepPart()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object