public interface Cloud
Modifier and Type | Interface and Description |
---|---|
static class |
Cloud.BugFilingStatus |
static interface |
Cloud.CloudListener |
static interface |
Cloud.CloudStatusListener |
static interface |
Cloud.CloudTask |
static interface |
Cloud.CloudTaskListener |
static class |
Cloud.Mode |
static class |
Cloud.SigninState |
static class |
Cloud.UserDesignation |
Modifier and Type | Method and Description |
---|---|
void |
addDateSeen(BugInstance b,
long when) |
void |
addListener(Cloud.CloudListener listener) |
void |
addStatusListener(Cloud.CloudStatusListener cloudStatusListener) |
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
|
boolean |
canStoreUserAnnotation(BugInstance bugInstance)
Is this bug one that gets persisted to the cloud? We may decide that we
don't persist low confidence issues to the database to avoid overloading
it
|
boolean |
claim(BugInstance b)
Claim the bug
|
java.lang.String |
claimedBy(BugInstance b)
Get the user who has claimed a bug; null if no one has
|
boolean |
communicationInitiated()
Returns true if communication has already been initiated (and perhaps completed).
|
java.net.URL |
fileBug(BugInstance b) |
BugCollection |
getBugCollection() |
boolean |
getBugIsUnassigned(BugInstance b)
does the issue have an unassigned issue in the bug tracker
|
java.net.URL |
getBugLink(BugInstance b)
Get link for bug, either to file one or to view it
|
Cloud.BugFilingStatus |
getBugLinkStatus(BugInstance b)
get the bug filing status for a bug instance
|
java.lang.String |
getBugLinkType(BugInstance instance) |
java.lang.String |
getBugStatus(BugInstance b)
A textual description of the bug status (e.g., FIX_LATER, ASSIGNED,
OBSOLETE, WILL_NOT_FIX)
|
double |
getClassificationDisagreement(BugInstance b) |
double |
getClassificationScore(BugInstance b) |
double |
getClassificationVariance(BugInstance b) |
java.lang.String |
getCloudName() |
java.lang.String |
getCloudReport(BugInstance b) |
java.lang.String |
getCloudReportWithoutMe(BugInstance b) |
Cloud.UserDesignation |
getConsensusDesignation(BugInstance b) |
long |
getFirstSeen(BugInstance b) |
IGuiCallback |
getGuiCallback() |
boolean |
getIWillFix(BugInstance b)
has the user said they will fix this bug
|
Cloud.Mode |
getMode()
Get voting mode
|
int |
getNumberReviewers(BugInstance b) |
CloudPlugin |
getPlugin() |
double |
getPortionObsoleteClassifications(BugInstance b) |
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.util.Set<java.lang.String> |
getReviewers(BugInstance b) |
Cloud.SigninState |
getSigninState() |
java.net.URL |
getSourceLink(BugInstance b)
URL to view the source for a bug instance
|
java.lang.String |
getSourceLinkToolTip(BugInstance b)
Tool tip text for "view source" button
|
java.lang.String |
getStatusMsg()
Get a status message for the cloud; information about any errors, and
information about database synchronization
|
java.lang.String |
getUser() |
java.util.Date |
getUserDate(BugInstance b) |
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 |
getWillNotBeFixed(BugInstance b)
has the issue been marked "will not be fixed" in a bug tracker
|
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 |
isInitialized()
Return true if the cloud has been successfully initialized
|
boolean |
isOnlineCloud() |
boolean |
isSavingSignInInformationEnabled() |
boolean |
overallClassificationIsNotAProblem(BugInstance b) |
void |
printCloudSummary(java.io.PrintWriter w,
java.lang.Iterable<BugInstance> bugs,
java.lang.String[] packagePrefixes) |
void |
removeListener(Cloud.CloudListener listener) |
void |
removeStatusListener(Cloud.CloudStatusListener cloudStatusListener) |
void |
setBugLinkOnCloudAndStoreIssueDetails(BugInstance b,
java.lang.String viewUrl,
java.lang.String linkType) |
void |
setMode(Cloud.Mode m)
Set voting mode
|
void |
setSaveSignInInformation(boolean save)
Whether the cloud should save login information, session ID's, etc.
|
void |
shutdown()
Shutdown the cloud, note termination of session, close connections
|
void |
signIn() |
void |
signOut() |
void |
storeUserAnnotation(BugInstance bugInstance)
Update user designation and evaluation from information in bug instance
and push to database
|
boolean |
supportsBugLinks()
Supports links to a bug database
|
boolean |
supportsClaims()
Supports allowing users to claim a bug
|
boolean |
supportsCloudReports()
Supports textual summaries about the status of a bug
|
boolean |
supportsCloudSummaries() |
boolean |
supportsSourceLinks()
Does the cloud support source lines (e.g., to FishEye)
|
void |
updateBugStatusCache(BugInstance b,
java.lang.String status)
Updates the local cache of bug reporting status.
|
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) |
CloudPlugin getPlugin()
java.lang.String getCloudName()
BugCollection getBugCollection()
IGuiCallback getGuiCallback()
java.lang.String getStatusMsg()
void printCloudSummary(java.io.PrintWriter w, java.lang.Iterable<BugInstance> bugs, java.lang.String[] packagePrefixes)
void addListener(Cloud.CloudListener listener)
void removeListener(Cloud.CloudListener listener)
void addStatusListener(Cloud.CloudStatusListener cloudStatusListener)
void removeStatusListener(Cloud.CloudStatusListener cloudStatusListener)
boolean availableForInitialization()
boolean initialize() throws java.io.IOException
java.io.IOException
boolean isInitialized()
void waitUntilNewIssuesUploaded()
boolean waitUntilNewIssuesUploaded(long timeout, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException
java.lang.InterruptedException
void waitUntilIssueDataDownloaded()
boolean waitUntilIssueDataDownloaded(long timeout, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException
java.lang.InterruptedException
boolean communicationInitiated()
void bugsPopulated()
void initiateCommunication()
waitUntilIssueDataDownloaded()
. A call to this method forces
eager initiation of communication.void shutdown()
java.lang.String getUser()
Cloud.SigninState getSigninState()
void setSaveSignInInformation(boolean save)
boolean isSavingSignInInformationEnabled()
void signIn() throws java.io.IOException
java.io.IOException
void signOut()
Cloud.Mode getMode()
void setMode(Cloud.Mode m)
boolean supportsSourceLinks()
boolean supportsBugLinks()
boolean supportsCloudReports()
boolean supportsClaims()
boolean supportsCloudSummaries()
java.util.Collection<java.lang.String> getProjects(java.lang.String className)
boolean isInCloud(BugInstance b)
boolean isOnlineCloud()
boolean getIWillFix(BugInstance b)
java.lang.String getSourceLinkToolTip(@CheckForNull BugInstance b)
java.net.URL getSourceLink(BugInstance b)
Cloud.BugFilingStatus getBugLinkStatus(BugInstance b)
java.lang.String getBugStatus(BugInstance b)
boolean getWillNotBeFixed(BugInstance b)
boolean getBugIsUnassigned(BugInstance b)
java.net.URL getBugLink(BugInstance b)
java.lang.String getBugLinkType(BugInstance instance)
java.net.URL fileBug(BugInstance b)
void setBugLinkOnCloudAndStoreIssueDetails(BugInstance b, java.lang.String viewUrl, java.lang.String linkType) throws java.io.IOException, SignInCancelledException
java.io.IOException
SignInCancelledException
void updateBugStatusCache(BugInstance b, java.lang.String status)
void bugFiled(BugInstance b, @CheckForNull java.lang.Object bugLink)
b
- bug against which bug was filedbugLink
- if we have any information about the result of filing the bug,
it should go herejava.lang.String getCloudReport(BugInstance b)
java.lang.String getCloudReportWithoutMe(BugInstance b)
@CheckForNull java.lang.String claimedBy(BugInstance b)
boolean claim(BugInstance b)
long getUserTimestamp(BugInstance b)
java.util.Date getUserDate(BugInstance b)
BugDesignation getPrimaryDesignation(BugInstance b)
Cloud.UserDesignation getUserDesignation(BugInstance b)
java.lang.String getUserEvaluation(BugInstance b)
double getClassificationScore(BugInstance b)
double getClassificationVariance(BugInstance b)
double getClassificationDisagreement(BugInstance b)
double getPortionObsoleteClassifications(BugInstance b)
int getNumberReviewers(BugInstance b)
java.util.Set<java.lang.String> getReviewers(BugInstance b)
long getFirstSeen(BugInstance b)
void addDateSeen(BugInstance b, long when)
Cloud.UserDesignation getConsensusDesignation(BugInstance b)
Cloud.UserDesignation.UNCLASSIFIED
if no consensus has been reachedboolean overallClassificationIsNotAProblem(BugInstance b)
boolean canStoreUserAnnotation(BugInstance bugInstance)
void storeUserAnnotation(BugInstance bugInstance)
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.