Class LogViewerConlet

java.lang.Object
org.jgrapes.core.internal.ComponentVertex
org.jgrapes.core.Component
org.jgrapes.webconsole.base.AbstractConlet<Serializable>
org.jgrapes.webconsole.base.freemarker.FreeMarkerConlet<Serializable>
org.jgrapes.osgi.webconlet.logviewer.LogViewerConlet
All Implemented Interfaces:
Iterable<ComponentType>, Channel, ComponentType, Eligible, Manager

public class LogViewerConlet extends org.jgrapes.webconsole.base.freemarker.FreeMarkerConlet<Serializable>
A conlet for displaying the OSGi log.
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.jgrapes.webconsole.base.AbstractConlet

    org.jgrapes.webconsole.base.AbstractConlet.ConletTrackingInfo

    Nested classes/interfaces inherited from interface org.jgrapes.core.Channel

    Channel.Default
  • Field Summary

    Fields inherited from class org.jgrapes.webconsole.base.AbstractConlet

    TYPE_INSTANCE_SEPARATOR

    Fields inherited from class org.jgrapes.core.Component

    logger

    Fields inherited from interface org.jgrapes.core.Channel

    BROADCAST, SELF
  • Constructor Summary

    Constructors
    Constructor
    Description
    LogViewerConlet(Channel componentChannel, BundleContext context)
    Creates a new component with its channel set to the given channel.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected Set<org.jgrapes.webconsole.base.Conlet.RenderMode>
    doRenderConlet(org.jgrapes.webconsole.base.events.RenderConletRequestBase<?> event, org.jgrapes.webconsole.base.ConsoleConnection channel, String conletId, Serializable conletState)
     
    protected boolean
    doSetLocale(org.jgrapes.webconsole.base.events.SetLocale event, org.jgrapes.webconsole.base.ConsoleConnection channel, String conletId)
     
    protected void
    doUpdateConletState(org.jgrapes.webconsole.base.events.NotifyConletModel event, org.jgrapes.webconsole.base.ConsoleConnection channel, Serializable conletState)
     
    void
    onConsoleReady(org.jgrapes.webconsole.base.events.ConsoleReady event, org.jgrapes.webconsole.base.ConsoleConnection channel)
    On ConsoleReady, fire the AddConletType.
    void
    onStop(Stop event)
    Detach from OSGi framework.

    Methods inherited from class org.jgrapes.webconsole.base.freemarker.FreeMarkerConlet

    doGetResource, fmConletModel, fmModel, fmModel, fmSessionModel, fmTypeModel, freemarkerConfig, processTemplate, processTemplate

    Methods inherited from class org.jgrapes.webconsole.base.AbstractConlet

    afterOnClosed, conletIds, conletIdsByConsoleConnection, conletViews, createNewState, createStateRepresentation, doConletDeleted, doRemoveConletType, generateInstanceId, l10nBundles, localizations, onAddConletRequest, onClosed, onConletDeleted, onConletResourceRequest, onDetached, onNotifyConletModel, onRenderConletRequest, onSetLocale, putInSession, readContent, readContent, recreateState, removeState, resourceBundle, setPeriodicRefresh, stateFromSession, statesFromSession, supportedLocales, trackConlet, trackedConnections, type, typeFromId

    Methods inherited from class org.jgrapes.core.Component

    channel, component, defaultCriterion, isEligibleFor, setName

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface java.lang.Iterable

    forEach, spliterator

    Methods inherited from interface org.jgrapes.core.Manager

    stream
  • Constructor Details

  • Method Details

    • onStop

      Detach from OSGi framework.
      Parameters:
      event - the event
    • onConsoleReady

      @Handler public void onConsoleReady(org.jgrapes.webconsole.base.events.ConsoleReady event, org.jgrapes.webconsole.base.ConsoleConnection channel) throws freemarker.template.TemplateNotFoundException, freemarker.template.MalformedTemplateNameException, freemarker.core.ParseException, IOException
      On ConsoleReady, fire the AddConletType.
      Parameters:
      event - the event
      channel - the channel
      Throws:
      freemarker.template.TemplateNotFoundException - the template not found exception
      freemarker.template.MalformedTemplateNameException - the malformed template name exception
      freemarker.core.ParseException - the parse exception
      IOException - Signals that an I/O exception has occurred.
    • doRenderConlet

      protected Set<org.jgrapes.webconsole.base.Conlet.RenderMode> doRenderConlet(org.jgrapes.webconsole.base.events.RenderConletRequestBase<?> event, org.jgrapes.webconsole.base.ConsoleConnection channel, String conletId, Serializable conletState) throws Exception
      Specified by:
      doRenderConlet in class org.jgrapes.webconsole.base.AbstractConlet<Serializable>
      Throws:
      Exception
    • doUpdateConletState

      protected void doUpdateConletState(org.jgrapes.webconsole.base.events.NotifyConletModel event, org.jgrapes.webconsole.base.ConsoleConnection channel, Serializable conletState) throws Exception
      Overrides:
      doUpdateConletState in class org.jgrapes.webconsole.base.AbstractConlet<Serializable>
      Throws:
      Exception
    • doSetLocale

      protected boolean doSetLocale(org.jgrapes.webconsole.base.events.SetLocale event, org.jgrapes.webconsole.base.ConsoleConnection channel, String conletId) throws Exception
      Overrides:
      doSetLocale in class org.jgrapes.webconsole.base.AbstractConlet<Serializable>
      Throws:
      Exception