org.rhq.core.domain.content
Class ContentSourceSyncResults

java.lang.Object
  extended by org.rhq.core.domain.content.ContentSourceSyncResults
All Implemented Interfaces:
Serializable, ContentSyncResults

public class ContentSourceSyncResults
extends Object
implements ContentSyncResults, Serializable

Represents the results of a content source sync request. When a ContentSource synchronizes with its remote backend, the results of that are stored in this object.

See Also:
Serialized Form

Field Summary
static String QUERY_GET_ALL_BY_CONTENT_SOURCE_ID
           
static String QUERY_GET_INPROGRESS_BY_CONTENT_SOURCE_ID
           
 
Constructor Summary
protected ContentSourceSyncResults()
           
  ContentSourceSyncResults(ContentSource contentSource)
           
 
Method Summary
 ContentSource getContentSource()
          The content source that performed the sync.
 Long getEndTime()
          Indicates when the sync stopped.
 int getId()
           
 String getResults()
          Tells you the results of the sync.
 long getStartTime()
          Indicates when the sync began.
 ContentSyncStatus getStatus()
          The status that typically indicates if the sync request succeeded, failed or is currently in progress.
 void setContentSource(ContentSource contentSource)
           
 void setEndTime(Long endTime)
           
 void setId(int id)
           
 void setResults(String results)
           
 void setStartTime(long startTime)
           
 void setStatus(ContentSyncStatus status)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

QUERY_GET_INPROGRESS_BY_CONTENT_SOURCE_ID

public static final String QUERY_GET_INPROGRESS_BY_CONTENT_SOURCE_ID
See Also:
Constant Field Values

QUERY_GET_ALL_BY_CONTENT_SOURCE_ID

public static final String QUERY_GET_ALL_BY_CONTENT_SOURCE_ID
See Also:
Constant Field Values
Constructor Detail

ContentSourceSyncResults

protected ContentSourceSyncResults()

ContentSourceSyncResults

public ContentSourceSyncResults(ContentSource contentSource)
Method Detail

getId

public int getId()

setId

public void setId(int id)

getContentSource

public ContentSource getContentSource()
The content source that performed the sync.


setContentSource

public void setContentSource(ContentSource contentSource)

getStatus

public ContentSyncStatus getStatus()
The status that typically indicates if the sync request succeeded, failed or is currently in progress.

Specified by:
getStatus in interface ContentSyncResults
Returns:
ContentSyncStatus enum

setStatus

public void setStatus(ContentSyncStatus status)
Specified by:
setStatus in interface ContentSyncResults

getStartTime

public long getStartTime()
Indicates when the sync began.

Specified by:
getStartTime in interface ContentSyncResults

setStartTime

public void setStartTime(long startTime)

getEndTime

public Long getEndTime()
Indicates when the sync stopped.


setEndTime

public void setEndTime(Long endTime)
Specified by:
setEndTime in interface ContentSyncResults

getResults

public String getResults()
Tells you the results of the sync.


setResults

public void setResults(String results)
Specified by:
setResults in interface ContentSyncResults

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2008-2011 Red Hat, Inc.. All Rights Reserved.