public class DoNothingCloud extends java.lang.Object implements Cloud
BugInstance.XmlProps
read from the analysis XML file, if present.Cloud.BugFilingStatus, Cloud.CloudListener, Cloud.CloudStatusListener, Cloud.CloudTask, Cloud.CloudTaskListener, Cloud.Mode, Cloud.SigninState, Cloud.UserDesignation
Constructor and Description |
---|
DoNothingCloud(BugCollection bc) |
DoNothingCloud(CloudPlugin plugin,
BugCollection bc,
java.util.Properties props)
Invoked via reflection
|
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) |
long |
getFirstSeenFromVersion(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) |
public DoNothingCloud(CloudPlugin plugin, BugCollection bc, java.util.Properties props)
public DoNothingCloud(BugCollection bc)
public CloudPlugin getPlugin()
public java.lang.String getCloudName()
getCloudName
in interface Cloud
public BugCollection getBugCollection()
getBugCollection
in interface Cloud
public IGuiCallback getGuiCallback()
getGuiCallback
in interface Cloud
public java.lang.String getStatusMsg()
Cloud
getStatusMsg
in interface Cloud
public void printCloudSummary(java.io.PrintWriter w, java.lang.Iterable<BugInstance> bugs, java.lang.String[] packagePrefixes)
printCloudSummary
in interface Cloud
public void addListener(Cloud.CloudListener listener)
addListener
in interface Cloud
public void removeListener(Cloud.CloudListener listener)
removeListener
in interface Cloud
public void addStatusListener(Cloud.CloudStatusListener cloudStatusListener)
addStatusListener
in interface Cloud
public void removeStatusListener(Cloud.CloudStatusListener cloudStatusListener)
removeStatusListener
in interface Cloud
public boolean availableForInitialization()
Cloud
availableForInitialization
in interface Cloud
public boolean initialize()
Cloud
initialize
in interface Cloud
public void waitUntilNewIssuesUploaded()
Cloud
waitUntilNewIssuesUploaded
in interface Cloud
public void waitUntilIssueDataDownloaded()
Cloud
waitUntilIssueDataDownloaded
in interface Cloud
public boolean waitUntilNewIssuesUploaded(long timeout, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException
waitUntilNewIssuesUploaded
in interface Cloud
java.lang.InterruptedException
public boolean waitUntilIssueDataDownloaded(long timeout, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException
waitUntilIssueDataDownloaded
in interface Cloud
java.lang.InterruptedException
public void bugsPopulated()
Cloud
bugsPopulated
in interface Cloud
public void initiateCommunication()
Cloud
Cloud.waitUntilIssueDataDownloaded()
. A call to this method forces
eager initiation of communication.initiateCommunication
in interface Cloud
public void shutdown()
Cloud
public Cloud.SigninState getSigninState()
getSigninState
in interface Cloud
public void setSaveSignInInformation(boolean save)
Cloud
setSaveSignInInformation
in interface Cloud
public boolean isSavingSignInInformationEnabled()
isSavingSignInInformationEnabled
in interface Cloud
public void signIn() throws java.io.IOException
public Cloud.Mode getMode()
Cloud
public void setMode(Cloud.Mode m)
Cloud
public boolean supportsSourceLinks()
Cloud
supportsSourceLinks
in interface Cloud
public boolean supportsBugLinks()
Cloud
supportsBugLinks
in interface Cloud
public boolean supportsCloudReports()
Cloud
supportsCloudReports
in interface Cloud
public boolean supportsClaims()
Cloud
supportsClaims
in interface Cloud
public boolean supportsCloudSummaries()
supportsCloudSummaries
in interface Cloud
public java.util.Collection<java.lang.String> getProjects(java.lang.String className)
Cloud
getProjects
in interface Cloud
public boolean isInCloud(BugInstance b)
Cloud
public boolean isOnlineCloud()
isOnlineCloud
in interface Cloud
public boolean getIWillFix(BugInstance b)
Cloud
getIWillFix
in interface Cloud
public java.lang.String getSourceLinkToolTip(@CheckForNull BugInstance b)
Cloud
getSourceLinkToolTip
in interface Cloud
public java.net.URL getSourceLink(BugInstance b)
Cloud
getSourceLink
in interface Cloud
public Cloud.BugFilingStatus getBugLinkStatus(BugInstance b)
Cloud
getBugLinkStatus
in interface Cloud
public java.lang.String getBugStatus(BugInstance b)
Cloud
getBugStatus
in interface Cloud
public boolean getWillNotBeFixed(BugInstance b)
Cloud
getWillNotBeFixed
in interface Cloud
public boolean getBugIsUnassigned(BugInstance b)
Cloud
getBugIsUnassigned
in interface Cloud
public java.net.URL getBugLink(BugInstance b)
Cloud
getBugLink
in interface Cloud
public java.lang.String getBugLinkType(BugInstance instance)
getBugLinkType
in interface Cloud
public java.net.URL fileBug(BugInstance b)
public void setBugLinkOnCloudAndStoreIssueDetails(BugInstance b, java.lang.String viewUrl, java.lang.String linkType) throws java.io.IOException, SignInCancelledException
setBugLinkOnCloudAndStoreIssueDetails
in interface Cloud
java.io.IOException
SignInCancelledException
public void updateBugStatusCache(BugInstance b, java.lang.String status)
Cloud
updateBugStatusCache
in interface Cloud
public void bugFiled(BugInstance b, @CheckForNull java.lang.Object bugLink)
Cloud
public java.lang.String getCloudReport(BugInstance b)
getCloudReport
in interface Cloud
public java.lang.String getCloudReportWithoutMe(BugInstance b)
getCloudReportWithoutMe
in interface Cloud
public java.lang.String claimedBy(BugInstance b)
Cloud
public boolean claim(BugInstance b)
Cloud
public long getUserTimestamp(BugInstance b)
Cloud
getUserTimestamp
in interface Cloud
public java.util.Date getUserDate(BugInstance b)
getUserDate
in interface Cloud
public BugDesignation getPrimaryDesignation(BugInstance b)
Cloud
getPrimaryDesignation
in interface Cloud
public Cloud.UserDesignation getUserDesignation(BugInstance b)
Cloud
getUserDesignation
in interface Cloud
public java.lang.String getUserEvaluation(BugInstance b)
Cloud
getUserEvaluation
in interface Cloud
public double getClassificationScore(BugInstance b)
getClassificationScore
in interface Cloud
public double getClassificationVariance(BugInstance b)
getClassificationVariance
in interface Cloud
public double getClassificationDisagreement(BugInstance b)
getClassificationDisagreement
in interface Cloud
public double getPortionObsoleteClassifications(BugInstance b)
getPortionObsoleteClassifications
in interface Cloud
public int getNumberReviewers(BugInstance b)
getNumberReviewers
in interface Cloud
public java.util.Set<java.lang.String> getReviewers(BugInstance b)
getReviewers
in interface Cloud
public long getFirstSeen(BugInstance b)
getFirstSeen
in interface Cloud
public void addDateSeen(BugInstance b, long when)
addDateSeen
in interface Cloud
public long getFirstSeenFromVersion(BugInstance b)
public Cloud.UserDesignation getConsensusDesignation(BugInstance b)
getConsensusDesignation
in interface Cloud
Cloud.UserDesignation.UNCLASSIFIED
if no consensus has been reachedpublic boolean overallClassificationIsNotAProblem(BugInstance b)
overallClassificationIsNotAProblem
in interface Cloud
public boolean canStoreUserAnnotation(BugInstance bugInstance)
Cloud
canStoreUserAnnotation
in interface Cloud
public void storeUserAnnotation(BugInstance bugInstance)
Cloud
storeUserAnnotation
in interface Cloud
public boolean communicationInitiated()
Cloud
communicationInitiated
in interface Cloud
public boolean isInitialized()
Cloud
isInitialized
in interface Cloud
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.