Class JPPFWebConsoleApplication

java.lang.Object
org.apache.wicket.Application
org.apache.wicket.protocol.http.WebApplication
org.apache.wicket.authroles.authentication.AuthenticatedWebApplication
All Implemented Interfaces:
org.apache.wicket.authorization.IUnauthorizedComponentInstantiationListener, org.apache.wicket.authroles.authorization.strategies.role.IRoleCheckingStrategy, org.apache.wicket.event.IEventSink, org.apache.wicket.IMetadataContext<Object,org.apache.wicket.Application>, org.apache.wicket.session.ISessionStore.UnboundListener

public class JPPFWebConsoleApplication extends JPPFServletContainerAuthenticatedWebApplication
This is the Wicket Application class for the JPPF web console.
Author:
Laurent Cohen
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected static String
    Base name for localization bundle lookups.

    Fields inherited from class org.apache.wicket.protocol.http.WebApplication

    META_INF_RESOURCES

    Fields inherited from class org.apache.wicket.Application

    CONFIGURATION
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    get()
     
    org.jppf.utils.TypedProperties
     
     
     
    Class<? extends org.apache.wicket.Page>
     
    org.jppf.client.monitoring.jobs.JobMonitor
     
     
    int
     
    org.apache.wicket.request.resource.ResourceReference
     
     
    protected Class<? extends org.apache.wicket.markup.html.WebPage>
     
     
    org.jppf.client.monitoring.topology.TopologyManager
     
    protected void
     
    void
    Mount the resource with the specified key.
    protected void
     

    Methods inherited from class org.jppf.admin.web.security.JPPFServletContainerAuthenticatedWebApplication

    autoMountPages, getWebSessionClass

    Methods inherited from class org.apache.wicket.authroles.authentication.AuthenticatedWebApplication

    hasAnyRole, newSession, onUnauthorizedInstantiation, onUnauthorizedPage, restartResponseAtSignInPage

    Methods inherited from class org.apache.wicket.protocol.http.WebApplication

    addResourceReplacement, addResourceReplacement, getAjaxRequestTargetListeners, getAjaxRequestTargetProvider, getAndRemoveBufferedResponse, getApplicationKey, getConfigurationType, getCspSettings, getFilterFactoryManager, getInitParameter, getMimeType, getServletContext, getSessionAttributePrefix, getWicketFilter, hasBufferedResponse, hasFilterFactoryManager, internalDestroy, internalInit, logEventTarget, logResponseTarget, mount, mountPackage, mountPage, mountResource, newAjaxRequestTarget, newWebRequest, newWebResponse, outputDevelopmentModeWarning, renderXmlDecl, sessionUnbound, setAjaxRequestTargetProvider, setConfigurationType, setCspSettings, setServletContext, setWicketFilter, storeBufferedResponse, unmount, validateInit

    Methods inherited from class org.apache.wicket.Application

    checkSettingsAvailable, configure, createRequestCycle, decorateHeaderResponse, exists, fetchCreateAndSetSession, get, getApplicationKeys, getApplicationListeners, getApplicationSettings, getBehaviorInstantiationListeners, getComponentInitializationListeners, getComponentInstantiationListeners, getComponentOnAfterRenderListeners, getComponentOnConfigureListeners, getComponentPostOnBeforeRenderListeners, getComponentPreOnBeforeRenderListeners, getConverterLocator, getDebugSettings, getExceptionMapperProvider, getExceptionSettings, getFrameworkSettings, getHeaderContributorListeners, getHeaderResponseDecorators, getInitializers, getJavaScriptLibrarySettings, getMapperContext, getMarkupSettings, getMetaData, getName, getOnComponentTagListeners, getPageFactory, getPageManagerProvider, getPageRendererProvider, getPageSettings, getRequestCycleListeners, getRequestCycleProvider, getRequestCycleSettings, getRequestLogger, getRequestLoggerSettings, getResourceBundles, getResourceReferenceRegistry, getResourceSettings, getRootRequestMapper, getRootRequestMapperAsCompound, getSecuritySettings, getSessionListeners, getSessionStore, getSessionStoreProvider, getSharedResources, getStoreSettings, initApplication, newConverterLocator, newMapperContext, newPageFactory, newRequestLogger, newResourceBundles, newResourceReferenceRegistry, newSharedResources, onEvent, setApplicationSettings, setDebugSettings, setExceptionMapperProvider, setExceptionSettings, setFrameworkSettings, setJavaScriptLibrarySettings, setMarkupSettings, setMetaData, setName, setPageManagerProvider, setPageRendererProvider, setPageSettings, setRequestCycleProvider, setRequestCycleSettings, setRequestLoggerSettings, setResourceSettings, setRootRequestMapper, setSecuritySettings, setSessionStoreProvider, setStoreSettings, usesDeploymentConfig, usesDevelopmentConfig

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • BASE

      protected static String BASE
      Base name for localization bundle lookups.
  • Constructor Details

    • JPPFWebConsoleApplication

      public JPPFWebConsoleApplication()
      Default constructor.
  • Method Details

    • init

      protected void init()
      Overrides:
      init in class JPPFServletContainerAuthenticatedWebApplication
      See Also:
      • WebApplication.init()
    • getTopologyManager

      public org.jppf.client.monitoring.topology.TopologyManager getTopologyManager()
      Returns:
      the topology manager.
    • getJobMonitor

      public org.jppf.client.monitoring.jobs.JobMonitor getJobMonitor()
      Returns:
      the job monitor.
    • getHomePage

      public Class<? extends org.apache.wicket.Page> getHomePage()
      Specified by:
      getHomePage in class org.apache.wicket.Application
    • getContainerManagedWebSessionClass

      protected Class<? extends JPPFServletContainerAuthenticatedWebSession> getContainerManagedWebSessionClass()
      Specified by:
      getContainerManagedWebSessionClass in class JPPFServletContainerAuthenticatedWebApplication
    • getSignInPageClass

      protected Class<? extends org.apache.wicket.markup.html.WebPage> getSignInPageClass()
      Specified by:
      getSignInPageClass in class org.apache.wicket.authroles.authentication.AuthenticatedWebApplication
    • get

      public static JPPFWebConsoleApplication get()
      Returns:
      the current application instance.
    • getConfig

      public ConfigurationHandler getConfig(ConfigType type)
      Parameters:
      type - the type of config to get.
      Returns:
      the configuration handler for the specified config type.
    • getStatsUpdater

      public StatsUpdater getStatsUpdater()
      Returns:
      the objects which updates the statistics from all drivers.
    • getPersistence

      public Persistence getPersistence()
      Returns:
      the persistence for this web application.
    • getClientConfig

      public org.jppf.utils.TypedProperties getClientConfig()
      Returns:
      the JPPF client configuration properties.
    • getRefreshInterval

      public int getRefreshInterval()
      Returns:
      the JPPF client configuration properties.
    • onDestroy

      protected void onDestroy()
      Overrides:
      onDestroy in class org.apache.wicket.Application
    • getSharedImageResource

      public org.apache.wicket.request.resource.ResourceReference getSharedImageResource(String key)
      Parameters:
      key - the resource key.
      Returns:
      a ResourceReference pointing to the image.
    • getSharedImageURL

      public String getSharedImageURL(String key)
      Parameters:
      key - the resource key.
      Returns:
      the url of the shared image.
    • mountImageResource

      public void mountImageResource(String key)
      Mount the resource with the specified key.
      Parameters:
      key - the resource key.