Class DoNothingCloud

  • All Implemented Interfaces:
    Cloud

    public class DoNothingCloud
    extends java.lang.Object
    implements Cloud
    Doesn't do much. Relies on the BugInstance.XmlProps read from the analysis XML file, if present.
    • Constructor Detail

      • DoNothingCloud

        public DoNothingCloud​(CloudPlugin plugin,
                              BugCollection bc,
                              java.util.Properties props)
        Invoked via reflection
    • Method Detail

      • getCloudName

        public java.lang.String getCloudName()
        Specified by:
        getCloudName in interface Cloud
      • getStatusMsg

        public java.lang.String 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 interface Cloud
      • printCloudSummary

        public void printCloudSummary​(java.io.PrintWriter w,
                                      java.lang.Iterable<BugInstance> bugs,
                                      java.lang.String[] packagePrefixes)
        Specified by:
        printCloudSummary in interface Cloud
      • 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 interface Cloud
        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 interface Cloud
        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 interface Cloud
      • 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 interface Cloud
      • waitUntilNewIssuesUploaded

        public boolean waitUntilNewIssuesUploaded​(long timeout,
                                                  java.util.concurrent.TimeUnit unit)
                                           throws java.lang.InterruptedException
        Specified by:
        waitUntilNewIssuesUploaded in interface Cloud
        Throws:
        java.lang.InterruptedException
      • waitUntilIssueDataDownloaded

        public boolean waitUntilIssueDataDownloaded​(long timeout,
                                                    java.util.concurrent.TimeUnit unit)
                                             throws java.lang.InterruptedException
        Specified by:
        waitUntilIssueDataDownloaded in interface Cloud
        Throws:
        java.lang.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 interface Cloud
      • 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 to Cloud.waitUntilIssueDataDownloaded(). A call to this method forces eager initiation of communication.
        Specified by:
        initiateCommunication in interface Cloud
      • shutdown

        public void shutdown()
        Description copied from interface: Cloud
        Shutdown the cloud, note termination of session, close connections
        Specified by:
        shutdown in interface Cloud
      • getUser

        public java.lang.String getUser()
        Specified by:
        getUser in interface Cloud
      • 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 interface Cloud
      • signIn

        public void signIn()
                    throws java.io.IOException
        Specified by:
        signIn in interface Cloud
        Throws:
        java.io.IOException
      • signOut

        public void signOut()
        Specified by:
        signOut in interface Cloud
      • getMode

        public Cloud.Mode getMode()
        Description copied from interface: Cloud
        Get voting mode
        Specified by:
        getMode in interface Cloud
      • setMode

        public void setMode​(Cloud.Mode m)
        Description copied from interface: Cloud
        Set voting mode
        Specified by:
        setMode in interface Cloud
      • supportsSourceLinks

        public boolean supportsSourceLinks()
        Description copied from interface: Cloud
        Does the cloud support source lines (e.g., to FishEye)
        Specified by:
        supportsSourceLinks in interface Cloud
      • supportsBugLinks

        public boolean supportsBugLinks()
        Description copied from interface: Cloud
        Supports links to a bug database
        Specified by:
        supportsBugLinks in interface Cloud
      • supportsCloudReports

        public boolean supportsCloudReports()
        Description copied from interface: Cloud
        Supports textual summaries about the status of a bug
        Specified by:
        supportsCloudReports in interface Cloud
      • supportsClaims

        public boolean supportsClaims()
        Description copied from interface: Cloud
        Supports allowing users to claim a bug
        Specified by:
        supportsClaims in interface Cloud
      • getProjects

        public java.util.Collection<java.lang.String> getProjects​(java.lang.String className)
        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 interface Cloud
      • isInCloud

        public boolean isInCloud​(BugInstance b)
        Description copied from interface: Cloud
        returns whether the bug is stored remotely or not. for bug collection storage, always returns true
        Specified by:
        isInCloud in interface Cloud
      • isOnlineCloud

        public boolean isOnlineCloud()
        Specified by:
        isOnlineCloud in interface Cloud
      • getIWillFix

        public boolean getIWillFix​(BugInstance b)
        Description copied from interface: Cloud
        has the user said they will fix this bug
        Specified by:
        getIWillFix in interface Cloud
      • getSourceLinkToolTip

        public java.lang.String getSourceLinkToolTip​(@CheckForNull
                                                     BugInstance b)
        Description copied from interface: Cloud
        Tool tip text for "view source" button
        Specified by:
        getSourceLinkToolTip in interface Cloud
      • getSourceLink

        public java.net.URL getSourceLink​(BugInstance b)
        Description copied from interface: Cloud
        URL to view the source for a bug instance
        Specified by:
        getSourceLink in interface Cloud
      • getBugStatus

        public java.lang.String getBugStatus​(BugInstance b)
        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 interface Cloud
      • getWillNotBeFixed

        public boolean getWillNotBeFixed​(BugInstance b)
        Description copied from interface: Cloud
        has the issue been marked "will not be fixed" in a bug tracker
        Specified by:
        getWillNotBeFixed in interface Cloud
      • getBugIsUnassigned

        public boolean getBugIsUnassigned​(BugInstance b)
        Description copied from interface: Cloud
        does the issue have an unassigned issue in the bug tracker
        Specified by:
        getBugIsUnassigned in interface Cloud
      • getBugLink

        public java.net.URL getBugLink​(BugInstance b)
        Description copied from interface: Cloud
        Get link for bug, either to file one or to view it
        Specified by:
        getBugLink in interface Cloud
      • updateBugStatusCache

        public void updateBugStatusCache​(BugInstance b,
                                         java.lang.String status)
        Description copied from interface: Cloud
        Updates the local cache of bug reporting status. Does not modify server code.
        Specified by:
        updateBugStatusCache in interface Cloud
      • bugFiled

        public void bugFiled​(BugInstance b,
                             @CheckForNull
                             java.lang.Object bugLink)
        Description copied from interface: Cloud
        Note that we've initiated or completed a request to file a bug;
        Specified by:
        bugFiled in interface Cloud
        Parameters:
        b - bug against which bug was filed
        bugLink - if we have any information about the result of filing the bug, it should go here
      • claimedBy

        public java.lang.String claimedBy​(BugInstance b)
        Description copied from interface: Cloud
        Get the user who has claimed a bug; null if no one has
        Specified by:
        claimedBy in interface Cloud
      • claim

        public boolean claim​(BugInstance b)
        Description copied from interface: Cloud
        Claim the bug
        Specified by:
        claim in interface Cloud
        Returns:
        true if no one else has already done so
      • getUserTimestamp

        public long getUserTimestamp​(BugInstance b)
        Description copied from interface: Cloud
        Return the time the user last changed their evaluation of this bug
        Specified by:
        getUserTimestamp in interface Cloud
      • getUserEvaluation

        public java.lang.String getUserEvaluation​(BugInstance b)
        Description copied from interface: Cloud
        Get free text evaluation of the bug
        Specified by:
        getUserEvaluation in interface Cloud
      • getFirstSeenFromVersion

        public long getFirstSeenFromVersion​(BugInstance b)
      • canStoreUserAnnotation

        public boolean canStoreUserAnnotation​(BugInstance bugInstance)
        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 interface Cloud
      • storeUserAnnotation

        public void storeUserAnnotation​(BugInstance bugInstance)
        Description copied from interface: Cloud
        Update user designation and evaluation from information in bug instance and push to database
        Specified by:
        storeUserAnnotation in interface Cloud
      • communicationInitiated

        public boolean communicationInitiated()
        Description copied from interface: Cloud
        Returns true if communication has already been initiated (and perhaps completed).
        Specified by:
        communicationInitiated in interface Cloud
      • isInitialized

        public boolean isInitialized()
        Description copied from interface: Cloud
        Return true if the cloud has been successfully initialized
        Specified by:
        isInitialized in interface Cloud