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 TypeMethodDescriptionvoidaddDateSeen(BugInstance b, long when) voidaddListener(Cloud.CloudListener listener) voidaddStatusListener(Cloud.CloudStatusListener cloudStatusListener) booleanDo 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.voidbugFiled(BugInstance b, Object bugLink) Note that we've initiated or completed a request to file a bug;voidCalled after the bugs in the bug collection are loaded; bugs should not be synchronized before this method is calledbooleancanStoreUserAnnotation(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 itbooleanclaim(BugInstance b) Claim the bugGet the user who has claimed a bug; null if no one hasbooleanReturns true if communication has already been initiated (and perhaps completed).booleandoes 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)doubledoubledoublelonglongbooleanhas the user said they will fix this buggetMode()Get voting modeintdoubleGet 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 buglongReturn the time the user last changed their evaluation of this bugbooleanhas the issue been marked "will not be fixed" in a bug trackerbooleanAttempt to initialize the cloudvoidInitiate communication with the cloud.booleanreturns whether the bug is stored remotely or not.booleanReturn true if the cloud has been successfully initializedbooleanbooleanbooleanvoidprintCloudSummary(PrintWriter w, Iterable<BugInstance> bugs, String[] packagePrefixes) voidremoveListener(Cloud.CloudListener listener) voidremoveStatusListener(Cloud.CloudStatusListener cloudStatusListener) voidsetBugLinkOnCloudAndStoreIssueDetails(BugInstance b, String viewUrl, String linkType) voidSet voting modevoidsetSaveSignInInformation(boolean save) Whether the cloud should save login information, session ID's, etc.voidshutdown()Shutdown the cloud, note termination of session, close connectionsvoidsignIn()voidsignOut()voidstoreUserAnnotation(BugInstance bugInstance) Update user designation and evaluation from information in bug instance and push to databasebooleanSupports links to a bug databasebooleanSupports allowing users to claim a bugbooleanSupports textual summaries about the status of a bugbooleanbooleanDoes the cloud support source lines (e.g., to FishEye)voidupdateBugStatusCache(BugInstance b, String status) Updates the local cache of bug reporting status.voidWaits until all data about this bug collection has been received from the cloud.booleanwaitUntilIssueDataDownloaded(long timeout, TimeUnit unit) voidWaits until all new issues have been uploadedbooleanwaitUntilNewIssuesUploaded(long timeout, TimeUnit unit)
-
Constructor Details
-
DoNothingCloud
Invoked via reflection -
DoNothingCloud
-
-
Method Details
-
getPlugin
-
getCloudName
- Specified by:
getCloudNamein interfaceCloud
-
getBugCollection
- Specified by:
getBugCollectionin interfaceCloud
-
getGuiCallback
- Specified by:
getGuiCallbackin interfaceCloud
-
getStatusMsg
Description copied from interface:CloudGet a status message for the cloud; information about any errors, and information about database synchronization- Specified by:
getStatusMsgin interfaceCloud
-
printCloudSummary
- Specified by:
printCloudSummaryin interfaceCloud
-
addListener
- Specified by:
addListenerin interfaceCloud
-
removeListener
- Specified by:
removeListenerin interfaceCloud
-
addStatusListener
- Specified by:
addStatusListenerin interfaceCloud
-
removeStatusListener
- Specified by:
removeStatusListenerin interfaceCloud
-
availableForInitialization
public boolean availableForInitialization()Description copied from interface:CloudDo 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:
availableForInitializationin interfaceCloud- Returns:
- true if we have the needed information
-
initialize
public boolean initialize()Description copied from interface:CloudAttempt to initialize the cloud- Specified by:
initializein interfaceCloud- Returns:
- true if successful
-
waitUntilNewIssuesUploaded
public void waitUntilNewIssuesUploaded()Description copied from interface:CloudWaits until all new issues have been uploaded- Specified by:
waitUntilNewIssuesUploadedin interfaceCloud
-
waitUntilIssueDataDownloaded
public void waitUntilIssueDataDownloaded()Description copied from interface:CloudWaits until all data about this bug collection has been received from the cloud.- Specified by:
waitUntilIssueDataDownloadedin interfaceCloud
-
waitUntilNewIssuesUploaded
- Specified by:
waitUntilNewIssuesUploadedin interfaceCloud- Throws:
InterruptedException
-
waitUntilIssueDataDownloaded
public boolean waitUntilIssueDataDownloaded(long timeout, TimeUnit unit) throws InterruptedException - Specified by:
waitUntilIssueDataDownloadedin interfaceCloud- Throws:
InterruptedException
-
bugsPopulated
public void bugsPopulated()Description copied from interface:CloudCalled after the bugs in the bug collection are loaded; bugs should not be synchronized before this method is called- Specified by:
bugsPopulatedin interfaceCloud
-
initiateCommunication
public void initiateCommunication()Description copied from interface:CloudInitiate 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:
initiateCommunicationin interfaceCloud
-
shutdown
public void shutdown()Description copied from interface:CloudShutdown the cloud, note termination of session, close connections -
getUser
-
getSigninState
- Specified by:
getSigninStatein interfaceCloud
-
setSaveSignInInformation
public void setSaveSignInInformation(boolean save) Description copied from interface:CloudWhether the cloud should save login information, session ID's, etc. If disabled, the user will need to re-authenticate each session.- Specified by:
setSaveSignInInformationin interfaceCloud
-
isSavingSignInInformationEnabled
public boolean isSavingSignInInformationEnabled()- Specified by:
isSavingSignInInformationEnabledin interfaceCloud
-
signIn
- Specified by:
signInin interfaceCloud- Throws:
IOException
-
signOut
public void signOut() -
getMode
Description copied from interface:CloudGet voting mode -
setMode
Description copied from interface:CloudSet voting mode -
supportsSourceLinks
public boolean supportsSourceLinks()Description copied from interface:CloudDoes the cloud support source lines (e.g., to FishEye)- Specified by:
supportsSourceLinksin interfaceCloud
-
supportsBugLinks
public boolean supportsBugLinks()Description copied from interface:CloudSupports links to a bug database- Specified by:
supportsBugLinksin interfaceCloud
-
supportsCloudReports
public boolean supportsCloudReports()Description copied from interface:CloudSupports textual summaries about the status of a bug- Specified by:
supportsCloudReportsin interfaceCloud
-
supportsClaims
public boolean supportsClaims()Description copied from interface:CloudSupports allowing users to claim a bug- Specified by:
supportsClaimsin interfaceCloud
-
supportsCloudSummaries
public boolean supportsCloudSummaries()- Specified by:
supportsCloudSummariesin interfaceCloud
-
getProjects
Description copied from interface:CloudGet a list of names of FB projects that the given class "may be a part of." Used for filing bugs.- Specified by:
getProjectsin interfaceCloud
-
isInCloud
Description copied from interface:Cloudreturns whether the bug is stored remotely or not. for bug collection storage, always returns true -
isOnlineCloud
public boolean isOnlineCloud()- Specified by:
isOnlineCloudin interfaceCloud
-
getIWillFix
Description copied from interface:Cloudhas the user said they will fix this bug- Specified by:
getIWillFixin interfaceCloud
-
getSourceLinkToolTip
Description copied from interface:CloudTool tip text for "view source" button- Specified by:
getSourceLinkToolTipin interfaceCloud
-
getSourceLink
Description copied from interface:CloudURL to view the source for a bug instance- Specified by:
getSourceLinkin interfaceCloud
-
getBugLinkStatus
Description copied from interface:Cloudget the bug filing status for a bug instance- Specified by:
getBugLinkStatusin interfaceCloud
-
getBugStatus
Description copied from interface:CloudA textual description of the bug status (e.g., FIX_LATER, ASSIGNED, OBSOLETE, WILL_NOT_FIX)- Specified by:
getBugStatusin interfaceCloud
-
getWillNotBeFixed
Description copied from interface:Cloudhas the issue been marked "will not be fixed" in a bug tracker- Specified by:
getWillNotBeFixedin interfaceCloud
-
getBugIsUnassigned
Description copied from interface:Clouddoes the issue have an unassigned issue in the bug tracker- Specified by:
getBugIsUnassignedin interfaceCloud
-
getBugLink
Description copied from interface:CloudGet link for bug, either to file one or to view it- Specified by:
getBugLinkin interfaceCloud
-
getBugLinkType
- Specified by:
getBugLinkTypein interfaceCloud
-
fileBug
-
setBugLinkOnCloudAndStoreIssueDetails
public void setBugLinkOnCloudAndStoreIssueDetails(BugInstance b, String viewUrl, String linkType) throws IOException, SignInCancelledException - Specified by:
setBugLinkOnCloudAndStoreIssueDetailsin interfaceCloud- Throws:
IOExceptionSignInCancelledException
-
updateBugStatusCache
Description copied from interface:CloudUpdates the local cache of bug reporting status. Does not modify server code.- Specified by:
updateBugStatusCachein interfaceCloud
-
bugFiled
Description copied from interface:CloudNote that we've initiated or completed a request to file a bug; -
getCloudReport
- Specified by:
getCloudReportin interfaceCloud
-
getCloudReportWithoutMe
- Specified by:
getCloudReportWithoutMein interfaceCloud
-
claimedBy
Description copied from interface:CloudGet the user who has claimed a bug; null if no one has -
claim
Description copied from interface:CloudClaim the bug -
getUserTimestamp
Description copied from interface:CloudReturn the time the user last changed their evaluation of this bug- Specified by:
getUserTimestampin interfaceCloud
-
getUserDate
- Specified by:
getUserDatein interfaceCloud
-
getPrimaryDesignation
Description copied from interface:CloudGet the most recent BugDesignation from the current user- Specified by:
getPrimaryDesignationin interfaceCloud
-
getUserDesignation
Description copied from interface:CloudGet the user's designation for the bug- Specified by:
getUserDesignationin interfaceCloud
-
getUserEvaluation
Description copied from interface:CloudGet free text evaluation of the bug- Specified by:
getUserEvaluationin interfaceCloud
-
getClassificationScore
- Specified by:
getClassificationScorein interfaceCloud
-
getClassificationVariance
- Specified by:
getClassificationVariancein interfaceCloud
-
getClassificationDisagreement
- Specified by:
getClassificationDisagreementin interfaceCloud
-
getPortionObsoleteClassifications
- Specified by:
getPortionObsoleteClassificationsin interfaceCloud
-
getNumberReviewers
- Specified by:
getNumberReviewersin interfaceCloud
-
getReviewers
- Specified by:
getReviewersin interfaceCloud
-
getFirstSeen
- Specified by:
getFirstSeenin interfaceCloud
-
addDateSeen
- Specified by:
addDateSeenin interfaceCloud
-
getFirstSeenFromVersion
-
getConsensusDesignation
- Specified by:
getConsensusDesignationin interfaceCloud- Returns:
Cloud.UserDesignation.UNCLASSIFIEDif no consensus has been reached
-
overallClassificationIsNotAProblem
- Specified by:
overallClassificationIsNotAProblemin interfaceCloud
-
canStoreUserAnnotation
Description copied from interface:CloudIs 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:
canStoreUserAnnotationin interfaceCloud
-
storeUserAnnotation
Description copied from interface:CloudUpdate user designation and evaluation from information in bug instance and push to database- Specified by:
storeUserAnnotationin interfaceCloud
-
communicationInitiated
public boolean communicationInitiated()Description copied from interface:CloudReturns true if communication has already been initiated (and perhaps completed).- Specified by:
communicationInitiatedin interfaceCloud
-
isInitialized
public boolean isInitialized()Description copied from interface:CloudReturn true if the cloud has been successfully initialized- Specified by:
isInitializedin interfaceCloud
-