org.rhq.core.domain.content
Class RepoSyncResults

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

public class RepoSyncResults
extends Object
implements Serializable, ContentSyncResults

Represents the results of a repo sync request. When a Repo 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_REPO_ID
           
static String QUERY_GET_INPROGRESS_BY_REPO_ID
           
 
Constructor Summary
protected RepoSyncResults()
           
  RepoSyncResults(Repo repoIn)
           
 
Method Summary
 void appendResults(String msg)
          Convienence method to append a string to the results of this RepoSyncResults.
 Long getEndTime()
          Indicates when the sync stopped.
 int getId()
           
 Long getPercentComplete()
           
 Repo getRepo()
          The Repo that performed the sync.
 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 setEndTime(Long endTime)
           
 void setId(int id)
           
 void setPercentComplete(Long percentComplete)
           
 void setRepo(Repo repoIn)
           
 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_REPO_ID

public static final String QUERY_GET_INPROGRESS_BY_REPO_ID
See Also:
Constant Field Values

QUERY_GET_ALL_BY_REPO_ID

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

RepoSyncResults

protected RepoSyncResults()

RepoSyncResults

public RepoSyncResults(Repo repoIn)
Method Detail

getId

public int getId()

setId

public void setId(int id)

getRepo

public Repo getRepo()
The Repo that performed the sync.


setRepo

public void setRepo(Repo repoIn)

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

getPercentComplete

public Long getPercentComplete()

setPercentComplete

public void setPercentComplete(Long percentComplete)

toString

public String toString()
Overrides:
toString in class Object

appendResults

public void appendResults(String msg)
Convienence method to append a string to the results of this RepoSyncResults.

Parameters:
msg - to append


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