Package edu.umd.cs.findbugs.cloud
Class AbstractCloud
java.lang.Object
edu.umd.cs.findbugs.cloud.AbstractCloud
- All Implemented Interfaces:
Cloud
- Direct Known Subclasses:
BugCollectionStorageCloud
- Author:
- William Pugh
-
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 -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final BugCollectionstatic longprotected final CloudPluginprotected final PropertyBundleprotected static final boolean -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractCloud(CloudPlugin plugin, BugCollection bugs, Properties properties) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDateSeen(BugInstance b, long when) voidaddListener(Cloud.CloudListener listener) voidaddStatusListener(Cloud.CloudStatusListener listener) voidCalled after the bugs in the bug collection are loaded; bugs should not be synchronized before this method is calledbooleanbooleancanStoreUserAnnotation(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).createTask(String name) fileBug(BugInstance bug) protected voidgetBugByHash(String hash) 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)doubledoubledoubleprotected StringgetCloudProperty(String propertyName) longbooleanhas the user said they will fix this bugprotected abstract Iterable<BugDesignation> longgetMode()Get voting modeintdoubleURL 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 synchronizationGet the user's designation for the bugGet free text evaluation of the bugprotected NameLookuplongReturn the time the user last changed their evaluation of this bugbooleanhas the issue been marked "will not be fixed" in a bug trackerbooleanhasVoted(BugInstance bug) booleanAttempt to initialize the cloudbooleanReturn true if the cloud has been successfully initializedprotected booleanbooleanvoidprintCloudSummary(PrintWriter w, Iterable<BugInstance> bugs, String[] packagePrefixes) static voidprintLeaderBoard2(PrintWriter w, Multiset<String> evaluations, int maxRows, String alwaysPrint, String format, String title) voidremoveListener(Cloud.CloudListener listener) voidvoidsetBugLinkOnCloudAndStoreIssueDetails(BugInstance b, String viewUrl, String linkType) voidsetMode(Cloud.Mode mode) Set voting modevoidsetSigninState(Cloud.SigninState state) voidsetStatusMsg(String newMsg) voidshutdown()Shutdown the cloud, note termination of session, close connectionsbooleanSupports 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.voidupdatedIssue(BugInstance bug) protected voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface edu.umd.cs.findbugs.cloud.Cloud
availableForInitialization, bugFiled, getPrimaryDesignation, getProjects, getUser, initiateCommunication, isInCloud, isOnlineCloud, isSavingSignInInformationEnabled, setSaveSignInInformation, signIn, signOut, storeUserAnnotation, waitUntilIssueDataDownloaded, waitUntilIssueDataDownloaded, waitUntilNewIssuesUploaded, waitUntilNewIssuesUploaded
-
Field Details
-
MIN_TIMESTAMP
public static long MIN_TIMESTAMP -
THROW_EXCEPTION_IF_CANT_CONNECT
protected static final boolean THROW_EXCEPTION_IF_CANT_CONNECT- See Also:
-
plugin
-
bugCollection
-
properties
-
-
Constructor Details
-
AbstractCloud
-
-
Method Details
-
isInitialized
public boolean isInitialized()Description copied from interface:CloudReturn true if the cloud has been successfully initialized- Specified by:
isInitializedin interfaceCloud
-
initialize
Description copied from interface:CloudAttempt to initialize the cloud- Specified by:
initializein interfaceCloud- Returns:
- true if successful
- Throws:
IOException
-
getMode
Description copied from interface:CloudGet voting mode -
setMode
Description copied from interface:CloudSet voting mode -
getPlugin
-
getBugCollection
- Specified by:
getBugCollectionin interfaceCloud
-
supportsBugLinks
public boolean supportsBugLinks()Description copied from interface:CloudSupports links to a bug database- Specified by:
supportsBugLinksin interfaceCloud
-
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
-
supportsClaims
public boolean supportsClaims()Description copied from interface:CloudSupports allowing users to claim a bug- Specified by:
supportsClaimsin interfaceCloud
-
supportsCloudReports
public boolean supportsCloudReports()Description copied from interface:CloudSupports textual summaries about the status of a bug- Specified by:
supportsCloudReportsin 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 -
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
-
getBugLinkStatus
Description copied from interface:Cloudget the bug filing status for a bug instance- Specified by:
getBugLinkStatusin interfaceCloud
-
canSeeCommentsByOthers
-
hasVoted
-
notInCloudMsg
-
getCloudReport
- Specified by:
getCloudReportin interfaceCloud
-
getCloudReportWithoutMe
- Specified by:
getCloudReportWithoutMein interfaceCloud
-
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
-
issueDataHasBeenDownloaded
protected boolean issueDataHasBeenDownloaded() -
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
-
getLatestDesignationFromEachUser
-
getUserDate
- Specified by:
getUserDatein interfaceCloud
-
addListener
- Specified by:
addListenerin interfaceCloud
-
removeListener
- Specified by:
removeListenerin interfaceCloud
-
addStatusListener
- Specified by:
addStatusListenerin interfaceCloud
-
removeStatusListener
- Specified by:
removeStatusListenerin 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
-
shutdown
public void shutdown()Description copied from interface:CloudShutdown the cloud, note termination of session, close connections -
getIWillFix
Description copied from interface:Cloudhas the user said they will fix this bug- Specified by:
getIWillFixin interfaceCloud
-
getConsensusDesignation
- Specified by:
getConsensusDesignationin interfaceCloud- Returns:
Cloud.UserDesignation.UNCLASSIFIEDif no consensus has been reached
-
overallClassificationIsNotAProblem
- Specified by:
overallClassificationIsNotAProblemin interfaceCloud
-
getClassificationScore
- Specified by:
getClassificationScorein interfaceCloud
-
getClassificationVariance
- Specified by:
getClassificationVariancein interfaceCloud
-
getPortionObsoleteClassifications
- Specified by:
getPortionObsoleteClassificationsin interfaceCloud
-
getNumberReviewers
- Specified by:
getNumberReviewersin interfaceCloud
-
printCloudSummary
- Specified by:
printCloudSummaryin interfaceCloud
-
printLeaderBoard2
-
supportsCloudSummaries
public boolean supportsCloudSummaries()- Specified by:
supportsCloudSummariesin 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
-
getClassificationDisagreement
- Specified by:
getClassificationDisagreementin 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
-
getUserTimestamp
Description copied from interface:CloudReturn the time the user last changed their evaluation of this bug- Specified by:
getUserTimestampin interfaceCloud
-
getFirstSeen
- Specified by:
getFirstSeenin interfaceCloud
-
addDateSeen
- Specified by:
addDateSeenin interfaceCloud
-
updatedStatus
protected void updatedStatus() -
updatedIssue
-
fireIssueDataDownloadedEvent
protected void fireIssueDataDownloadedEvent() -
getSigninState
- Specified by:
getSigninStatein interfaceCloud
-
setSigninState
-
getBugByHash
-
getUsernameLookup
- Throws:
IOException
-
createTask
-
setStatusMsg
-
getCloudProperty
-
supportsSourceLinks
public boolean supportsSourceLinks()Description copied from interface:CloudDoes the cloud support source lines (e.g., to FishEye)- Specified by:
supportsSourceLinksin interfaceCloud
-
getSourceLink
Description copied from interface:CloudURL to view the source for a bug instance- Specified by:
getSourceLinkin interfaceCloud
-
getSourceLinkToolTip
Description copied from interface:CloudTool tip text for "view source" button- Specified by:
getSourceLinkToolTipin interfaceCloud
-
getBugIsUnassigned
Description copied from interface:Clouddoes the issue have an unassigned issue in the bug tracker- Specified by:
getBugIsUnassignedin interfaceCloud
-
getWillNotBeFixed
Description copied from interface:Cloudhas the issue been marked "will not be fixed" in a bug tracker- Specified by:
getWillNotBeFixedin interfaceCloud
-
getReviewers
- Specified by:
getReviewersin interfaceCloud
-
getGuiCallback
- Specified by:
getGuiCallbackin interfaceCloud
-
getCloudName
- Specified by:
getCloudNamein interfaceCloud
-
communicationInitiated
public boolean communicationInitiated()Description copied from interface:CloudReturns true if communication has already been initiated (and perhaps completed).- Specified by:
communicationInitiatedin interfaceCloud
-
getLocalFirstSeen
-