T
- The generic type of the client or service.public interface IFederationDelegate<T>
AbstractFederation
.Modifier and Type | Method and Description |
---|---|
void |
didStart()
Invoked by the
AbstractFederation once the deferred startup tasks
are executed. |
T |
getService()
Return the client or service.
|
Class |
getServiceIface()
Return the class or interface that is the most interesting facet of the
client and which will be used to identify this client in the performance
counters reported to the
ILoadBalancerService . |
String |
getServiceName()
Return a name for the service.
|
UUID |
getServiceUUID()
|
boolean |
isServiceReady()
Return
true iff the service is ready to start. |
AbstractHTTPD |
newHttpd(int httpdPort,
ICounterSetAccess access)
Create a new
AbstractHTTPD instance. |
void |
reattachDynamicCounters()
Offers the service an opportunity to dynamically detach and re-attach
performance counters.
|
void |
serviceJoin(IService service,
UUID serviceUUID)
Notice that the service has been discovered.
|
void |
serviceLeave(UUID serviceUUID)
Notice that the service is no longer available.
|
T getService()
String getServiceName()
Class getServiceIface()
ILoadBalancerService
.null
.UUID getServiceUUID()
AbstractService.setServiceUUID(UUID)
void reattachDynamicCounters()
ILoadBalancerService
. In general, implementations should limit
the frequency of update, e.g., to no more than once a second.
Note: For most purposes, this has been replaced by
ICounterSetAccess
which is now passed into
CounterSetHTTPD
. That provides the necessary indirection for
periodic refresh of the performance counters. The CounterSetHTTPD
now also handles the limitation on the update frequency for the
materialized counters.
However, there are still some counters which need to be dynamically reattached. For example, any counter set which is dynamic in its structure, such as the DirectBufferPool.
boolean isServiceReady()
true
iff the service is ready to start.void didStart()
AbstractFederation
once the deferred startup tasks
are executed. Services may use this event to perform additional
initialization.void serviceJoin(IService service, UUID serviceUUID)
IBigdataClient
.service
- The service.serviceUUID
- The service UUID
.void serviceLeave(UUID serviceUUID)
IBigdataClient
when the service is no
longer available from any of its service registrars.serviceUUID
- The service UUID
.AbstractHTTPD newHttpd(int httpdPort, ICounterSetAccess access) throws IOException
AbstractHTTPD
instance.port
- The port, or zero for a random port.access
- Used to materialize the CounterSet
that will be served
up.IOException
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.