Class CDOServerBrowser

java.lang.Object
org.eclipse.net4j.util.event.Notifier
org.eclipse.net4j.util.lifecycle.Lifecycle
org.eclipse.net4j.util.concurrent.Worker
org.eclipse.emf.cdo.server.CDOServerBrowser
All Implemented Interfaces:
org.eclipse.net4j.util.event.INotifier, org.eclipse.net4j.util.event.INotifier.INotifier2, org.eclipse.net4j.util.lifecycle.IDeactivateable, org.eclipse.net4j.util.lifecycle.ILifecycle, org.eclipse.net4j.util.lifecycle.ILifecycle.DeferrableActivation
Direct Known Subclasses:
CDOServerBrowser.ContainerBased

public class CDOServerBrowser extends org.eclipse.net4j.util.concurrent.Worker
A simple HTTP server that web browsers can connect to in order to render internal server data for debugging purposes.

Actual content is contributed through pluggable pages.

Note: Don't use this server in production, it's insecure and does not perform or scale!

Since:
4.0
Author:
Eike Stepper
  • Constructor Details

  • Method Details

    • getRepositories

      public Map<String,InternalRepository> getRepositories()
    • getPort

      public int getPort()
    • setPort

      public void setPort(int port)
    • work

      protected void work(org.eclipse.net4j.util.concurrent.Worker.WorkContext context) throws Exception
      Specified by:
      work in class org.eclipse.net4j.util.concurrent.Worker
      Throws:
      Exception
    • initParams

      protected void initParams(String params)
    • clearParams

      protected void clearParams()
    • removeParam

      public void removeParam(String key)
    • getParam

      public String getParam(String key)
    • isParam

      public boolean isParam(String key)
      Since:
      4.5
    • href

      public String href(String label, String resource, String... params)
    • escape

      public String escape(String raw)
    • printHeader

      protected void printHeader(PrintStream pout)
    • showMenu

      protected void showMenu(PrintStream pout)
    • showPage

      protected void showPage(PrintStream pout, CDOServerBrowser.Page page)
    • getRepositoryNames

      protected Set<String> getRepositoryNames()
    • getRepository

      protected InternalRepository getRepository(String name)
    • getThreadName

      protected String getThreadName()
      Overrides:
      getThreadName in class org.eclipse.net4j.util.concurrent.Worker
    • initPages

      protected void initPages(List<CDOServerBrowser.Page> pages)
    • getPagesContainer

      protected org.eclipse.net4j.util.container.IManagedContainer getPagesContainer()
      Since:
      4.1
    • doActivate

      protected void doActivate() throws Exception
      Overrides:
      doActivate in class org.eclipse.net4j.util.concurrent.Worker
      Throws:
      Exception
    • doDeactivate

      protected void doDeactivate() throws Exception
      Overrides:
      doDeactivate in class org.eclipse.net4j.util.concurrent.Worker
      Throws:
      Exception
    • formatTimeStamp

      public static String formatTimeStamp(long timeStamp)
      Since:
      4.5