Interface ClientContext

    • Method Detail

      • getExecutionManager

        ExecutionManager getExecutionManager()
        Returns the shared task execution manager for this client
      • getTagPollRate

        int getTagPollRate()
        Returns the rate at which Tags should be polled for updates
      • getDefaultDatasourceName

        java.lang.String getDefaultDatasourceName()
        Returns the current project's default datasource name
      • getDefaultTagProviderName

        java.lang.String getDefaultTagProviderName()
        Returns the current project's default Tag provider
      • getAuthProfileName

        java.lang.String getAuthProfileName()
        Returns the current project's user source
      • addPropertyChangeListener

        void addPropertyChangeListener​(java.beans.PropertyChangeListener pcl)
      • addPropertyChangeListener

        void addPropertyChangeListener​(java.lang.String property,
                                       java.beans.PropertyChangeListener pcl)
      • getRootPaneContainer

        javax.swing.RootPaneContainer getRootPaneContainer()
        Returns the RootPaneContainer that is currently the owner of the client
      • deserialize

        java.lang.Object deserialize​(byte[] data,
                                     org.apache.log4j.Logger log)
                              throws SerializationException
        Convenience function to deserialize a gzipped byte array into a single object. If multiple objects are found, they will be discarded. Warnings are logged to the given logger. If data is null or empty, null is returned.
        Throws:
        SerializationException
      • getModules

        java.util.List<ModuleInfo> getModules()
        Retrieve the list of all modules currently loaded in this context
      • getProgressManager

        ClientProgressManager getProgressManager()
        Returns the progress manager, which allows the execution of long running or async tasks.
      • getUIEventBus

        com.google.common.eventbus.EventBus getUIEventBus()
        This event bus schedules event notification on the swing EDT. This is opposed to the event bus found on CommonContext.getEventBus(), which schedules event notification on a background thread.
        Since:
        7.9.2
      • getNamedQueryManager

        NamedQueryManager getNamedQueryManager()
        Returns the appropriate named query rpc for the context. In the gateway and client, we only want to use named queries that have been saved. In the designer, we want to use the current version so that reports and bindings can be seen and used for testing before the project is saved.
        Returns:
        The correct NamedQueryManager implementation for the scope.
        Since:
        7.9.3