public class BugCollectionStorageCloud extends AbstractCloud
Cloud.BugFilingStatus, Cloud.CloudListener, Cloud.CloudStatusListener, Cloud.CloudTask, Cloud.CloudTaskListener, Cloud.Mode, Cloud.SigninState, Cloud.UserDesignation
bugCollection, MIN_TIMESTAMP, plugin, properties, THROW_EXCEPTION_IF_CANT_CONNECT
Constructor and Description |
---|
BugCollectionStorageCloud(CloudPlugin plugin,
BugCollection bc,
java.util.Properties properties)
Constructor is not protected to allow
CloudFactory.createCloudWithoutInitializing() create a new instance of
this cloud
|
Modifier and Type | Method and Description |
---|---|
void |
addDateSeen(BugInstance b,
long when) |
boolean |
availableForInitialization()
Do we have the configuration information needed to try initializing the
cloud; calling this method should have no side effects and not display
any dialogs or make any network connections.
|
void |
bugFiled(BugInstance b,
java.lang.Object bugLink)
Note that we've initiated or completed a request to file a bug;
|
void |
bugsPopulated()
Called after the bugs in the bug collection are loaded; bugs should not
be synchronized before this method is called
|
protected java.lang.Iterable<BugDesignation> |
getLatestDesignationFromEachUser(BugInstance bd) |
Cloud.Mode |
getMode()
Get voting mode
|
BugDesignation |
getPrimaryDesignation(BugInstance b)
Get the most recent BugDesignation from the current user
|
java.util.Collection<java.lang.String> |
getProjects(java.lang.String className)
Get a list of names of FB projects that the given class
"may be a part of." Used for filing bugs.
|
java.lang.String |
getUser() |
Cloud.UserDesignation |
getUserDesignation(BugInstance b)
Get the user's designation for the bug
|
java.lang.String |
getUserEvaluation(BugInstance b)
Get free text evaluation of the bug
|
long |
getUserTimestamp(BugInstance b)
Return the time the user last changed their evaluation of this bug
|
boolean |
initialize()
Attempt to initialize the cloud
|
void |
initiateCommunication()
Initiate communication with the cloud.
|
boolean |
isInCloud(BugInstance b)
returns whether the bug is stored remotely or not.
|
boolean |
isOnlineCloud() |
boolean |
isSavingSignInInformationEnabled() |
void |
setMode(Cloud.Mode m)
Set voting mode
|
void |
setSaveSignInInformation(boolean save)
Whether the cloud should save login information, session ID's, etc.
|
void |
signIn() |
void |
signOut() |
void |
storeUserAnnotation(BugInstance bugInstance)
Update user designation and evaluation from information in bug instance
and push to database
|
void |
waitUntilIssueDataDownloaded()
Waits until all data about this bug collection has been received from the
cloud.
|
boolean |
waitUntilIssueDataDownloaded(long timeout,
java.util.concurrent.TimeUnit unit) |
void |
waitUntilNewIssuesUploaded()
Waits until all new issues have been uploaded
|
boolean |
waitUntilNewIssuesUploaded(long timeout,
java.util.concurrent.TimeUnit unit) |
addListener, addStatusListener, canSeeCommentsByOthers, canStoreUserAnnotation, claim, claimedBy, communicationInitiated, createTask, fileBug, fireIssueDataDownloadedEvent, getBugByHash, getBugCollection, getBugIsUnassigned, getBugLink, getBugLinkStatus, getBugLinkType, getBugStatus, getClassificationDisagreement, getClassificationScore, getClassificationVariance, getCloudName, getCloudProperty, getCloudReport, getCloudReportWithoutMe, getConsensusDesignation, getFirstSeen, getGuiCallback, getIWillFix, getLocalFirstSeen, getNumberReviewers, getPlugin, getPortionObsoleteClassifications, getReviewers, getSigninState, getSourceLink, getSourceLinkToolTip, getStatusMsg, getUserDate, getUsernameLookup, getWillNotBeFixed, hasVoted, isInitialized, issueDataHasBeenDownloaded, notInCloudMsg, overallClassificationIsNotAProblem, printCloudSummary, printLeaderBoard2, removeListener, removeStatusListener, setBugLinkOnCloudAndStoreIssueDetails, setSigninState, setStatusMsg, shutdown, supportsBugLinks, supportsClaims, supportsCloudReports, supportsCloudSummaries, supportsSourceLinks, updateBugStatusCache, updatedIssue, updatedStatus
public BugCollectionStorageCloud(CloudPlugin plugin, BugCollection bc, java.util.Properties properties)
public boolean initialize()
Cloud
initialize
in interface Cloud
initialize
in class AbstractCloud
public void waitUntilIssueDataDownloaded()
Cloud
public void initiateCommunication()
Cloud
Cloud.waitUntilIssueDataDownloaded()
. A call to this method forces
eager initiation of communication.public boolean waitUntilNewIssuesUploaded(long timeout, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException
java.lang.InterruptedException
public boolean waitUntilIssueDataDownloaded(long timeout, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException
java.lang.InterruptedException
public Cloud.Mode getMode()
Cloud
getMode
in interface Cloud
getMode
in class AbstractCloud
public java.lang.String getUser()
public Cloud.UserDesignation getUserDesignation(BugInstance b)
Cloud
getUserDesignation
in interface Cloud
getUserDesignation
in class AbstractCloud
public java.lang.String getUserEvaluation(BugInstance b)
Cloud
getUserEvaluation
in interface Cloud
getUserEvaluation
in class AbstractCloud
public long getUserTimestamp(BugInstance b)
Cloud
getUserTimestamp
in interface Cloud
getUserTimestamp
in class AbstractCloud
public void setMode(Cloud.Mode m)
Cloud
setMode
in interface Cloud
setMode
in class AbstractCloud
public void bugsPopulated()
Cloud
bugsPopulated
in interface Cloud
bugsPopulated
in class AbstractCloud
public void setSaveSignInInformation(boolean save)
Cloud
public boolean isSavingSignInInformationEnabled()
public void signIn()
public void signOut()
public boolean availableForInitialization()
Cloud
public void storeUserAnnotation(BugInstance bugInstance)
Cloud
public void bugFiled(BugInstance b, java.lang.Object bugLink)
Cloud
b
- bug against which bug was filedbugLink
- if we have any information about the result of filing the bug,
it should go herepublic BugDesignation getPrimaryDesignation(BugInstance b)
Cloud
protected java.lang.Iterable<BugDesignation> getLatestDesignationFromEachUser(BugInstance bd)
getLatestDesignationFromEachUser
in class AbstractCloud
public java.util.Collection<java.lang.String> getProjects(java.lang.String className)
Cloud
public boolean isInCloud(BugInstance b)
Cloud
public boolean isOnlineCloud()
public void waitUntilNewIssuesUploaded()
Cloud
public void addDateSeen(BugInstance b, long when)
addDateSeen
in interface Cloud
addDateSeen
in class AbstractCloud
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.