|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bigdata.service.AbstractService
com.bigdata.service.LoadBalancerService
com.bigdata.service.jini.LoadBalancerServer.AdministrableLoadBalancer
public static class LoadBalancerServer.AdministrableLoadBalancer
Adds jini administration interfaces to the basic LoadBalancerService.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.bigdata.service.LoadBalancerService |
|---|
LoadBalancerService.Options, LoadBalancerService.RoundRobinServiceLoadHelper, LoadBalancerService.ServiceLoadHelperWithoutScores, LoadBalancerService.ServiceLoadHelperWithScores, LoadBalancerService.UpdateTask |
| Field Summary | |
|---|---|
protected LoadBalancerServer |
server
|
| Fields inherited from class com.bigdata.service.LoadBalancerService |
|---|
activeDataServices, activeHosts, eventReceiver, eventStore, historyMinutes, hostScores, initialRoundRobinUpdateCount, isTransient, joined, lock, log, logDir, nupdates, ps, serviceJoinTimeout, serviceScores, updateService |
| Constructor Summary | |
|---|---|
LoadBalancerServer.AdministrableLoadBalancer(LoadBalancerServer server,
Properties properties)
|
|
| Method Summary | |
|---|---|
protected void |
clearLoggingContext()
Clear the logging context. |
void |
destroy()
Destroy the service. |
Object |
getAdmin()
|
protected String |
getClientHostname()
Note: InetAddress.getHostName() is used. |
JiniFederation<?> |
getFederation()
Return the proxy used to access other services in the federation. |
String |
getServiceName()
Extends the base behavior to return a Name of the service
from the Configuration. |
protected void |
setupLoggingContext()
Adds the following parameters to the MDC
clientname
The hostname or IP address of the client making the request (at
#log.isInfoEnabled() or better)
|
void |
shutdown()
The service will no longer accept new requests, but existing requests will be processed (sychronous). |
void |
shutdownNow()
The service will no longer accept new requests and will make a best effort attempt to terminate all existing requests and return ASAP. |
| Methods inherited from class com.bigdata.service.LoadBalancerService |
|---|
finalized, getProperties, getServiceIface, getUnderUtilizedDataService, getUnderUtilizedDataServices, isHighlyUtilizedDataService, isHighlyUtilizedDataService, isOpen, isUnderUtilizedDataService, isUnderUtilizedDataService, join, leave, logCounters, logCounters, logCounters, notify, notifyEvent, rangeCount, rangeIterator, setHostScores, setServiceScores, sighup, start, urgent, warn |
| Methods inherited from class com.bigdata.service.AbstractService |
|---|
getHostname, getServiceUUID, setServiceUUID |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.bigdata.service.IService |
|---|
getHostname, getServiceUUID |
| Field Detail |
|---|
protected final LoadBalancerServer server
| Constructor Detail |
|---|
public LoadBalancerServer.AdministrableLoadBalancer(LoadBalancerServer server,
Properties properties)
| Method Detail |
|---|
public JiniFederation<?> getFederation()
AbstractService
getFederation in class AbstractService
public Object getAdmin()
throws RemoteException
getAdmin in interface net.jini.admin.AdministrableRemoteExceptionprotected void setupLoggingContext()
MDC
#log.isInfoEnabled() or better)
setupLoggingContext in class AbstractServiceprotected void clearLoggingContext()
AbstractService
clearLoggingContext in class AbstractServicepublic void destroy()
IServiceDestroyAdmin.destroy().
destroy in interface IServicedestroy in interface RemoteDestroyAdmindestroy in interface com.sun.jini.admin.DestroyAdmindestroy in class LoadBalancerServicepublic void shutdown()
IServiceShutdownIServiceShutdown.Options.SHUTDOWN_TIMEOUT. Implementations SHOULD be
synchronized. If the service is aleady shutdown, then
this method should be a NOP.
shutdown in interface IServiceShutdownshutdown in interface RemoteDestroyAdminshutdown in class LoadBalancerServicepublic void shutdownNow()
IServiceShutdown
shutdownNow in interface IServiceShutdownshutdownNow in interface RemoteDestroyAdminshutdownNow in class LoadBalancerServiceprotected String getClientHostname()
InetAddress.getHostName() is used. This method makes a
one-time best effort attempt to resolve the host name from the
InetAddress.
getClientHostname in class LoadBalancerServiceClientSubject to obtain the
authenticated identity of the client (if any) for an incoming
remote call.public String getServiceName()
Name of the service
from the Configuration. If no name was specified in the
Configuration then the value returned by the base class is
returned instead.
getServiceName in interface IServicegetServiceName in class AbstractService
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||