|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
T - The generic type of the client or service.public interface IFederationDelegate<T>
Interface allowing services to take over handling of events normally handled
by the AbstractFederation.
| Method Summary | |
|---|---|
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()
The UUID assigned to the IBigdataClient or
AbstractService. |
boolean |
isServiceReady()
Return true iff the service is ready to start. |
AbstractHTTPD |
newHttpd(int httpdPort,
CounterSet counterSet)
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. |
| Method Detail |
|---|
T getService()
String getServiceName()
Class getServiceIface()
ILoadBalancerService.
null.UUID getServiceUUID()
UUID assigned to the IBigdataClient or
AbstractService.
AbstractService.setServiceUUID(UUID)void reattachDynamicCounters()
ILoadBalancerService. In general, implementations should limit
the frequency of update, e.g., to no more than once a second.
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,
CounterSet counterSet)
throws IOException
AbstractHTTPD instance.
port - The port, or zero for a random port.counterSet - The root CounterSet that will be served up.
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||