| Modifier and Type | Field and Description |
|---|---|
CAT |
nrequests
The #of requests that have been directed to this service.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getHostname()
The hostname for the remote service -or-
null if something
goes wrong. |
String |
getRequestURI()
The
Request-URI for the root of the web application on the
target host. |
UUID |
getServiceUUID()
The service
UUID for the remote service. |
static ServiceScore |
newInstance(IIndexManager indexManager,
String contextPath,
UUID serviceUUID)
Factory for
ServiceScore instances. |
String |
toString() |
public final CAT nrequests
public UUID getServiceUUID()
UUID for the remote service.IService.getServiceUUID()public String getHostname()
null if something
goes wrong.IService.getHostname()public String getRequestURI()
Request-URI for the root of the web application on the
target host. This is assigned IFF everything succeeds. This is what we
will use to proxy a request to the service having the UUID given
to the constructor.
Note: This needs to be a URL, not just a relative path. Otherwise you get an NPE.
This is formed as:
requestURI = "http://" + hostname + ":" + port + contextPath;The
hostname is obtained from IService.getHostname().
The port is obtained from HAGlue.getNSSPort().
TODO How do we configure the protocol for the remote NSS instance? This
code assumes that it is http, but https is also
possible. This could be handled by an IHARequestURIRewriter but
maybe the HAGlue interface should be declaring this too?
public static ServiceScore newInstance(IIndexManager indexManager, String contextPath, UUID serviceUUID) throws IllegalArgumentException, ClassCastException, IOException, RuntimeException
ServiceScore instances.indexManager - The index manager (required).contextPath - The Context-Path of the web application (/bigdata).serviceUUID - The UUID of the service.ServiceScore.IllegalArgumentException - if any argument is null.ClassCastException - if the IIndexManager is not an HAJournal.IOException - If an RMI to the HAGlue proxy fails.RuntimeException - if anything else goes wrong.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.