SMILA (incubation) API documentation

org.eclipse.smila.connectivity.framework
Class State

java.lang.Object
  extended by org.eclipse.smila.connectivity.framework.State
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable
Direct Known Subclasses:
AgentState, CrawlState

public abstract class State
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable

Utility class that contains the state of a crawl run.

See Also:
Serialized Form

Constructor Summary
State()
           
 
Method Summary
 java.lang.String getDataSourceId()
          Returns the dataSourceId.
 java.lang.Long getEndTime()
          Get the end time.
 java.lang.Throwable getLastError()
          Get the last error.
 java.lang.Long getStartTime()
          Get the start time.
 void setDataSourceId(java.lang.String dataSourceId)
          Set the dataSourceId.
 void setEndTime(java.lang.Long endTime)
          Set the end time.
 void setLastError(java.lang.Throwable t)
          Set the last error.
 void setStartTime(java.lang.Long startTime)
          Set the start time.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

State

public State()
Method Detail

getDataSourceId

public java.lang.String getDataSourceId()
Returns the dataSourceId.

Returns:
the dataSourceId

setDataSourceId

public void setDataSourceId(java.lang.String dataSourceId)
Set the dataSourceId.

Parameters:
dataSourceId - the dataSourceId

getStartTime

public java.lang.Long getStartTime()
Get the start time.

Returns:
the start time in milliseconds

setStartTime

public void setStartTime(java.lang.Long startTime)
Set the start time.

Parameters:
startTime - the start time in milliseconds

getEndTime

public java.lang.Long getEndTime()
Get the end time.

Returns:
the end time in milliseconds or null if the crawl has not finished yet.

setEndTime

public void setEndTime(java.lang.Long endTime)
Set the end time.

Parameters:
endTime - the end time in milliseconds

getLastError

public java.lang.Throwable getLastError()
Get the last error.

Returns:
the last error or null if no error occurred

setLastError

public void setLastError(java.lang.Throwable t)
Set the last error.

Parameters:
t - the last error

SMILA (incubation) API documentation