|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bigdata.service.AbstractService
com.bigdata.jini.start.AbstractServicesManagerService
com.bigdata.jini.start.ServicesManagerServer.AdministrableServicesManagerService
public static class ServicesManagerServer.AdministrableServicesManagerService
Adds jini administration interfaces.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.bigdata.service.IServiceShutdown |
|---|
IServiceShutdown.Options |
| Field Summary | |
|---|---|
protected ServicesManagerServer |
server
|
| Fields inherited from class com.bigdata.jini.start.AbstractServicesManagerService |
|---|
monitorCreatePhysicalServiceLocksTask, startupRunning |
| Constructor Summary | |
|---|---|
ServicesManagerServer.AdministrableServicesManagerService(ServicesManagerServer server,
Properties properties)
|
|
| Method Summary | |
|---|---|
protected void |
clearLoggingContext()
Clear the logging context. |
void |
destroy()
Destroy the service. |
Object |
getAdmin()
|
JiniFederation<?> |
getFederation()
Strengthen the return type. |
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.
Note: InetAddress.getHostName() is used. |
void |
shutdown()
Kill the child processes, using RemoteDestroyAdmin.shutdown()
where supported. |
void |
shutdownNow()
Kill the child processes, using RemoteDestroyAdmin.shutdownNow()
where supported. |
void |
sighup(boolean pushConfig,
boolean restartServices)
Initiates a service configuration push and restarts any stopped processes. |
ServicesManagerServer.AdministrableServicesManagerService |
start()
Starts the AbstractService. |
| Methods inherited from class com.bigdata.jini.start.AbstractServicesManagerService |
|---|
add, getProperties, getServiceIface, isOpen, killChildProcesses, remove, setup |
| 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 |
| Field Detail |
|---|
protected final ServicesManagerServer server
| Constructor Detail |
|---|
public ServicesManagerServer.AdministrableServicesManagerService(ServicesManagerServer server,
Properties properties)
| Method Detail |
|---|
public Object getAdmin()
throws RemoteException
getAdmin in interface net.jini.admin.AdministrableRemoteExceptionprotected void setupLoggingContext()
MDC
InetAddress.getHostName() is used. This method makes a
one-time best effort attempt to resolve the host name from the
InetAddress.
setupLoggingContext in class AbstractServiceClientSubject to obtain the
authenticated identity of the client (if any) for an incoming
remote call.protected 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 AbstractServicepublic void shutdown()
AbstractServicesManagerServiceRemoteDestroyAdmin.shutdown()
where supported.
FIXME This should also bring down any processes that are being managed on
this host regardless of whether or not they are child processes. For
example, you KILL -9 the ServicesManager [leaves children running], start
it, and then kill -s TERM it [should have discovered processes on this
host for which it has responsibility and sent them shutdown() requests].
Add a private killManagedProcesses() method for this.
shutdown in interface IServiceShutdownshutdown in interface RemoteDestroyAdminshutdown in class AbstractServicesManagerServicepublic void shutdownNow()
AbstractServicesManagerServiceRemoteDestroyAdmin.shutdownNow()
where supported.
shutdownNow in interface IServiceShutdownshutdownNow in interface RemoteDestroyAdminshutdownNow in class AbstractServicesManagerServicepublic JiniFederation<?> getFederation()
AbstractServicesManagerService
getFederation in class AbstractServicesManagerServicepublic 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 AbstractServicepublic ServicesManagerServer.AdministrableServicesManagerService start()
AbstractServiceAbstractService.
Note: A AbstractService.start() is required in order to give subclasses an
opportunity to be fully initialized before they are required to begin
operations. It is impossible to encapsulate the startup logic cleanly
without this ctor() + start() pattern. Those familiar with Objective-C
will recognized this.
start in class AbstractServicesManagerService
public void sighup(boolean pushConfig,
boolean restartServices)
throws net.jini.config.ConfigurationException
IServicesManagerService
sighup in interface IServicesManagerServicepushConfig - If you want to do a service configuration push.restartServices - If you want the services manager that receives the message to
restart any services for which it is responsible which are not
currently running.
net.jini.config.ConfigurationException - if there is a problem re-processing the Configuration.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||