public class HttpPlugin extends Object implements IPlugIn<Journal,CounterSetHTTPD>
CounterSetHTTPD plug-in.| Modifier and Type | Class and Description |
|---|---|
static interface |
HttpPlugin.Options |
| Constructor and Description |
|---|
HttpPlugin() |
| Modifier and Type | Method and Description |
|---|---|
String |
getHttpdURL()
The URL that may be used to access the httpd service exposed by this
client -or-
null if not enabled. |
CounterSetHTTPD |
getService()
Return the service.
|
boolean |
isRunning()
Return true iff the service is running.
|
void |
startService(Journal indexManager)
Start the service.
|
void |
stopService(boolean immediateShutdown)
Stop the service.
|
public void startService(Journal indexManager)
Start the local httpd service (if enabled). The service is started on the
Journal.getHttpdPort(), on a randomly assigned port if the port
is 0, or NOT started if the port is -1. If the
service is started, then the URL for the service is reported to the load
balancer and also written into the file system. When started, the httpd
service will be shutdown with the federation.
startService in interface IPlugIn<Journal,CounterSetHTTPD>public void stopService(boolean immediateShutdown)
IPlugInstopService in interface IPlugIn<Journal,CounterSetHTTPD>immediateShutdown - true if the service should be stopped
immediately.public CounterSetHTTPD getService()
IPlugIngetService in interface IPlugIn<Journal,CounterSetHTTPD>public boolean isRunning()
IPlugInisRunning in interface IPlugIn<Journal,CounterSetHTTPD>public final String getHttpdURL()
null if not enabled.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.