Package org.eclipse.emf.cdo.server
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
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
An abstract base implementation of aserver browser page
.static class
Aserver browser page
that renders the branch manager contents of a repository.static class
Aserver browser
for the repositories in amanaged container
.static class
Aserver browser page
that renderscommit infos
.static class
Aserver browser page
that renderslarge object infos
.static class
Aserver browser page
that renders the locking manager contents of a repository.static class
Aserver browser page
that renders the package registry contents of a repository.static interface
Represents pluggable content for aserver browser
.static class
Aserver browser page
that rendersrevisions
.Nested classes/interfaces inherited from class org.eclipse.net4j.util.concurrent.Worker
org.eclipse.net4j.util.concurrent.Worker.Terminate, org.eclipse.net4j.util.concurrent.Worker.WorkContext
Nested classes/interfaces inherited from interface org.eclipse.net4j.util.lifecycle.ILifecycle
org.eclipse.net4j.util.lifecycle.ILifecycle.DeferrableActivation
Nested classes/interfaces inherited from interface org.eclipse.net4j.util.event.INotifier
org.eclipse.net4j.util.event.INotifier.INotifier2
-
Field Summary
Fields inherited from class org.eclipse.net4j.util.concurrent.Worker
DEFAULT_ERROR_HANDLER, DEFAULT_TIMEOUT
Fields inherited from class org.eclipse.net4j.util.lifecycle.Lifecycle
USE_LABEL
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected void
protected void
static String
formatTimeStamp
(long timeStamp) protected org.eclipse.net4j.util.container.IManagedContainer
int
getPort()
protected InternalRepository
getRepository
(String name) protected String
protected void
initPages
(List<CDOServerBrowser.Page> pages) protected void
initParams
(String params) boolean
protected void
printHeader
(PrintStream pout) void
removeParam
(String key) void
setPort
(int port) protected void
showMenu
(PrintStream pout) protected void
showPage
(PrintStream pout, CDOServerBrowser.Page page) protected void
work
(org.eclipse.net4j.util.concurrent.Worker.WorkContext context) Methods inherited from class org.eclipse.net4j.util.concurrent.Worker
getActivationTimeout, getDeactivationTimeout, getGlobalErrorHandler, getWorkerThread, handleError, isDaemon, setActivationTimeout, setDaemon, setDeactivationTimeout, setGlobalErrorHandler
Methods inherited from class org.eclipse.net4j.util.lifecycle.Lifecycle
activate, checkActive, checkArg, checkArg, checkInactive, checkNull, checkState, checkState, deactivate, deferredActivate, doAfterActivate, doBeforeActivate, doBeforeDeactivate, dump, getLifecycleState, isActive, isDeferredActivation, toString
Methods inherited from class org.eclipse.net4j.util.event.Notifier
addListener, addUniqueListener, fireEvent, fireEvent, fireEvent, fireThrowable, firstListenerAdded, getListeners, getNotificationService, hasListener, hasListeners, lastListenerRemoved, listenerAdded, listenerRemoved, removeListener
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.eclipse.net4j.util.event.INotifier
addListener, getListeners, hasListeners, removeListener
-
Constructor Details
-
CDOServerBrowser
-
-
Method Details
-
getRepositories
-
getPort
public int getPort() -
setPort
public void setPort(int port) -
work
- Specified by:
work
in classorg.eclipse.net4j.util.concurrent.Worker
- Throws:
Exception
-
initParams
-
clearParams
protected void clearParams() -
removeParam
-
getParam
-
isParam
- Since:
- 4.5
-
href
-
escape
-
printHeader
-
showMenu
-
showPage
-
getRepositoryNames
-
getRepository
-
getThreadName
- Overrides:
getThreadName
in classorg.eclipse.net4j.util.concurrent.Worker
-
initPages
-
getPagesContainer
protected org.eclipse.net4j.util.container.IManagedContainer getPagesContainer()- Since:
- 4.1
-
doActivate
- Overrides:
doActivate
in classorg.eclipse.net4j.util.concurrent.Worker
- Throws:
Exception
-
doDeactivate
- Overrides:
doDeactivate
in classorg.eclipse.net4j.util.concurrent.Worker
- Throws:
Exception
-
formatTimeStamp
- Since:
- 4.5
-