Package edu.umd.cs.findbugs.cloud
Class DoNothingCloud
java.lang.Object
edu.umd.cs.findbugs.cloud.DoNothingCloud
- All Implemented Interfaces:
Cloud
Doesn't do much. Relies on the
BugInstance.XmlProps
read from the analysis XML file, if present.-
Nested Class Summary
Nested classes/interfaces inherited from interface edu.umd.cs.findbugs.cloud.Cloud
Cloud.BugFilingStatus, Cloud.CloudListener, Cloud.CloudStatusListener, Cloud.CloudTask, Cloud.CloudTaskListener, Cloud.Mode, Cloud.SigninState, Cloud.UserDesignation
-
Constructor Summary
ConstructorsConstructorDescriptionDoNothingCloud
(CloudPlugin plugin, BugCollection bc, Properties props) Invoked via reflection -
Method Summary
Modifier and TypeMethodDescriptionvoid
addDateSeen
(BugInstance b, long when) void
addListener
(Cloud.CloudListener listener) void
addStatusListener
(Cloud.CloudStatusListener cloudStatusListener) boolean
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, Object bugLink) Note that we've initiated or completed a request to file a bug;void
Called after the bugs in the bug collection are loaded; bugs should not be synchronized before this method is calledboolean
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 itboolean
claim
(BugInstance b) Claim the bugGet the user who has claimed a bug; null if no one hasboolean
Returns true if communication has already been initiated (and perhaps completed).boolean
does the issue have an unassigned issue in the bug trackerGet link for bug, either to file one or to view itget the bug filing status for a bug instancegetBugLinkType
(BugInstance instance) A textual description of the bug status (e.g., FIX_LATER, ASSIGNED, OBSOLETE, WILL_NOT_FIX)double
double
double
long
long
boolean
has the user said they will fix this buggetMode()
Get voting modeint
double
Get the most recent BugDesignation from the current usergetProjects
(String className) Get a list of names of FB projects that the given class "may be a part of." Used for filing bugs.URL to view the source for a bug instanceTool tip text for "view source" buttonGet a status message for the cloud; information about any errors, and information about database synchronizationgetUser()
Get the user's designation for the bugGet free text evaluation of the buglong
Return the time the user last changed their evaluation of this bugboolean
has the issue been marked "will not be fixed" in a bug trackerboolean
Attempt to initialize the cloudvoid
Initiate communication with the cloud.boolean
returns whether the bug is stored remotely or not.boolean
Return true if the cloud has been successfully initializedboolean
boolean
boolean
void
printCloudSummary
(PrintWriter w, Iterable<BugInstance> bugs, String[] packagePrefixes) void
removeListener
(Cloud.CloudListener listener) void
removeStatusListener
(Cloud.CloudStatusListener cloudStatusListener) void
setBugLinkOnCloudAndStoreIssueDetails
(BugInstance b, String viewUrl, String linkType) void
Set voting modevoid
setSaveSignInInformation
(boolean save) Whether the cloud should save login information, session ID's, etc.void
shutdown()
Shutdown the cloud, note termination of session, close connectionsvoid
signIn()
void
signOut()
void
storeUserAnnotation
(BugInstance bugInstance) Update user designation and evaluation from information in bug instance and push to databaseboolean
Supports links to a bug databaseboolean
Supports allowing users to claim a bugboolean
Supports textual summaries about the status of a bugboolean
boolean
Does the cloud support source lines (e.g., to FishEye)void
updateBugStatusCache
(BugInstance b, String status) Updates the local cache of bug reporting status.void
Waits until all data about this bug collection has been received from the cloud.boolean
waitUntilIssueDataDownloaded
(long timeout, TimeUnit unit) void
Waits until all new issues have been uploadedboolean
waitUntilNewIssuesUploaded
(long timeout, TimeUnit unit)
-
Constructor Details
-
DoNothingCloud
Invoked via reflection -
DoNothingCloud
-
-
Method Details
-
getPlugin
-
getCloudName
- Specified by:
getCloudName
in interfaceCloud
-
getBugCollection
- Specified by:
getBugCollection
in interfaceCloud
-
getGuiCallback
- Specified by:
getGuiCallback
in interfaceCloud
-
getStatusMsg
Description copied from interface:Cloud
Get a status message for the cloud; information about any errors, and information about database synchronization- Specified by:
getStatusMsg
in interfaceCloud
-
printCloudSummary
- Specified by:
printCloudSummary
in interfaceCloud
-
addListener
- Specified by:
addListener
in interfaceCloud
-
removeListener
- Specified by:
removeListener
in interfaceCloud
-
addStatusListener
- Specified by:
addStatusListener
in interfaceCloud
-
removeStatusListener
- Specified by:
removeStatusListener
in interfaceCloud
-
availableForInitialization
public boolean availableForInitialization()Description copied from interface:Cloud
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.- Specified by:
availableForInitialization
in interfaceCloud
- Returns:
- true if we have the needed information
-
initialize
public boolean initialize()Description copied from interface:Cloud
Attempt to initialize the cloud- Specified by:
initialize
in interfaceCloud
- Returns:
- true if successful
-
waitUntilNewIssuesUploaded
public void waitUntilNewIssuesUploaded()Description copied from interface:Cloud
Waits until all new issues have been uploaded- Specified by:
waitUntilNewIssuesUploaded
in interfaceCloud
-
waitUntilIssueDataDownloaded
public void waitUntilIssueDataDownloaded()Description copied from interface:Cloud
Waits until all data about this bug collection has been received from the cloud.- Specified by:
waitUntilIssueDataDownloaded
in interfaceCloud
-
waitUntilNewIssuesUploaded
- Specified by:
waitUntilNewIssuesUploaded
in interfaceCloud
- Throws:
InterruptedException
-
waitUntilIssueDataDownloaded
public boolean waitUntilIssueDataDownloaded(long timeout, TimeUnit unit) throws InterruptedException - Specified by:
waitUntilIssueDataDownloaded
in interfaceCloud
- Throws:
InterruptedException
-
bugsPopulated
public void bugsPopulated()Description copied from interface:Cloud
Called after the bugs in the bug collection are loaded; bugs should not be synchronized before this method is called- Specified by:
bugsPopulated
in interfaceCloud
-
initiateCommunication
public void initiateCommunication()Description copied from interface:Cloud
Initiate communication with the cloud. Clouds can implement lazy communication, where they don't initiate communication with the cloud until a request for cloud data is seen, or a call is made toCloud.waitUntilIssueDataDownloaded()
. A call to this method forces eager initiation of communication.- Specified by:
initiateCommunication
in interfaceCloud
-
shutdown
public void shutdown()Description copied from interface:Cloud
Shutdown the cloud, note termination of session, close connections -
getUser
-
getSigninState
- Specified by:
getSigninState
in interfaceCloud
-
setSaveSignInInformation
public void setSaveSignInInformation(boolean save) Description copied from interface:Cloud
Whether the cloud should save login information, session ID's, etc. If disabled, the user will need to re-authenticate each session.- Specified by:
setSaveSignInInformation
in interfaceCloud
-
isSavingSignInInformationEnabled
public boolean isSavingSignInInformationEnabled()- Specified by:
isSavingSignInInformationEnabled
in interfaceCloud
-
signIn
- Specified by:
signIn
in interfaceCloud
- Throws:
IOException
-
signOut
public void signOut() -
getMode
Description copied from interface:Cloud
Get voting mode -
setMode
Description copied from interface:Cloud
Set voting mode -
supportsSourceLinks
public boolean supportsSourceLinks()Description copied from interface:Cloud
Does the cloud support source lines (e.g., to FishEye)- Specified by:
supportsSourceLinks
in interfaceCloud
-
supportsBugLinks
public boolean supportsBugLinks()Description copied from interface:Cloud
Supports links to a bug database- Specified by:
supportsBugLinks
in interfaceCloud
-
supportsCloudReports
public boolean supportsCloudReports()Description copied from interface:Cloud
Supports textual summaries about the status of a bug- Specified by:
supportsCloudReports
in interfaceCloud
-
supportsClaims
public boolean supportsClaims()Description copied from interface:Cloud
Supports allowing users to claim a bug- Specified by:
supportsClaims
in interfaceCloud
-
supportsCloudSummaries
public boolean supportsCloudSummaries()- Specified by:
supportsCloudSummaries
in interfaceCloud
-
getProjects
Description copied from interface:Cloud
Get a list of names of FB projects that the given class "may be a part of." Used for filing bugs.- Specified by:
getProjects
in interfaceCloud
-
isInCloud
Description copied from interface:Cloud
returns whether the bug is stored remotely or not. for bug collection storage, always returns true -
isOnlineCloud
public boolean isOnlineCloud()- Specified by:
isOnlineCloud
in interfaceCloud
-
getIWillFix
Description copied from interface:Cloud
has the user said they will fix this bug- Specified by:
getIWillFix
in interfaceCloud
-
getSourceLinkToolTip
Description copied from interface:Cloud
Tool tip text for "view source" button- Specified by:
getSourceLinkToolTip
in interfaceCloud
-
getSourceLink
Description copied from interface:Cloud
URL to view the source for a bug instance- Specified by:
getSourceLink
in interfaceCloud
-
getBugLinkStatus
Description copied from interface:Cloud
get the bug filing status for a bug instance- Specified by:
getBugLinkStatus
in interfaceCloud
-
getBugStatus
Description copied from interface:Cloud
A textual description of the bug status (e.g., FIX_LATER, ASSIGNED, OBSOLETE, WILL_NOT_FIX)- Specified by:
getBugStatus
in interfaceCloud
-
getWillNotBeFixed
Description copied from interface:Cloud
has the issue been marked "will not be fixed" in a bug tracker- Specified by:
getWillNotBeFixed
in interfaceCloud
-
getBugIsUnassigned
Description copied from interface:Cloud
does the issue have an unassigned issue in the bug tracker- Specified by:
getBugIsUnassigned
in interfaceCloud
-
getBugLink
Description copied from interface:Cloud
Get link for bug, either to file one or to view it- Specified by:
getBugLink
in interfaceCloud
-
getBugLinkType
- Specified by:
getBugLinkType
in interfaceCloud
-
fileBug
-
setBugLinkOnCloudAndStoreIssueDetails
public void setBugLinkOnCloudAndStoreIssueDetails(BugInstance b, String viewUrl, String linkType) throws IOException, SignInCancelledException - Specified by:
setBugLinkOnCloudAndStoreIssueDetails
in interfaceCloud
- Throws:
IOException
SignInCancelledException
-
updateBugStatusCache
Description copied from interface:Cloud
Updates the local cache of bug reporting status. Does not modify server code.- Specified by:
updateBugStatusCache
in interfaceCloud
-
bugFiled
Description copied from interface:Cloud
Note that we've initiated or completed a request to file a bug; -
getCloudReport
- Specified by:
getCloudReport
in interfaceCloud
-
getCloudReportWithoutMe
- Specified by:
getCloudReportWithoutMe
in interfaceCloud
-
claimedBy
Description copied from interface:Cloud
Get the user who has claimed a bug; null if no one has -
claim
Description copied from interface:Cloud
Claim the bug -
getUserTimestamp
Description copied from interface:Cloud
Return the time the user last changed their evaluation of this bug- Specified by:
getUserTimestamp
in interfaceCloud
-
getUserDate
- Specified by:
getUserDate
in interfaceCloud
-
getPrimaryDesignation
Description copied from interface:Cloud
Get the most recent BugDesignation from the current user- Specified by:
getPrimaryDesignation
in interfaceCloud
-
getUserDesignation
Description copied from interface:Cloud
Get the user's designation for the bug- Specified by:
getUserDesignation
in interfaceCloud
-
getUserEvaluation
Description copied from interface:Cloud
Get free text evaluation of the bug- Specified by:
getUserEvaluation
in interfaceCloud
-
getClassificationScore
- Specified by:
getClassificationScore
in interfaceCloud
-
getClassificationVariance
- Specified by:
getClassificationVariance
in interfaceCloud
-
getClassificationDisagreement
- Specified by:
getClassificationDisagreement
in interfaceCloud
-
getPortionObsoleteClassifications
- Specified by:
getPortionObsoleteClassifications
in interfaceCloud
-
getNumberReviewers
- Specified by:
getNumberReviewers
in interfaceCloud
-
getReviewers
- Specified by:
getReviewers
in interfaceCloud
-
getFirstSeen
- Specified by:
getFirstSeen
in interfaceCloud
-
addDateSeen
- Specified by:
addDateSeen
in interfaceCloud
-
getFirstSeenFromVersion
-
getConsensusDesignation
- Specified by:
getConsensusDesignation
in interfaceCloud
- Returns:
Cloud.UserDesignation.UNCLASSIFIED
if no consensus has been reached
-
overallClassificationIsNotAProblem
- Specified by:
overallClassificationIsNotAProblem
in interfaceCloud
-
canStoreUserAnnotation
Description copied from interface:Cloud
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- Specified by:
canStoreUserAnnotation
in interfaceCloud
-
storeUserAnnotation
Description copied from interface:Cloud
Update user designation and evaluation from information in bug instance and push to database- Specified by:
storeUserAnnotation
in interfaceCloud
-
communicationInitiated
public boolean communicationInitiated()Description copied from interface:Cloud
Returns true if communication has already been initiated (and perhaps completed).- Specified by:
communicationInitiated
in interfaceCloud
-
isInitialized
public boolean isInitialized()Description copied from interface:Cloud
Return true if the cloud has been successfully initialized- Specified by:
isInitialized
in interfaceCloud
-