|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bigdata.jini.start.ServicesManagerStartupTask
public class ServicesManagerStartupTask
Used to start up the server and to handle SIGHUP. This DOES NOT start the monitor tasks since those are not cancelled unless the server is shutdown.
| Field Summary | |
|---|---|
protected net.jini.config.Configuration |
config
|
protected JiniFederation |
fed
|
protected static org.apache.log4j.Logger |
log
|
protected MonitorCreatePhysicalServiceLocksTask |
monitorCreatePhysicalServiceLocksTask
|
protected AbstractServicesManagerService |
service
|
| Constructor Summary | |
|---|---|
ServicesManagerStartupTask(JiniFederation fed,
net.jini.config.Configuration config,
boolean pushConfig,
boolean restartServices,
AbstractServicesManagerService service)
|
|
| Method Summary | |
|---|---|
Void |
call()
|
protected void |
doStartup()
|
protected boolean |
pushConfiguration(ServiceConfiguration[] serviceConfigurations)
Make sure that the key znodes are defined and then push the service configurations into zookeeper. |
void |
pushConfiguration(org.apache.zookeeper.ZooKeeper zookeeper,
String zconfig,
List<org.apache.zookeeper.data.ACL> acl,
ServiceConfiguration[] serviceConfigurations)
Pushs the ServiceConfigurations for the federation into
zookeeper. |
protected boolean |
startJiniCoreServices(net.jini.config.Configuration config)
If necessary, start the jini core services on this host. |
protected boolean |
startZookeeperService(net.jini.config.Configuration config)
If necessary, start a zookeeper service on this host. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final org.apache.log4j.Logger log
protected final JiniFederation fed
protected final net.jini.config.Configuration config
protected final AbstractServicesManagerService service
protected final MonitorCreatePhysicalServiceLocksTask monitorCreatePhysicalServiceLocksTask
| Constructor Detail |
|---|
public ServicesManagerStartupTask(JiniFederation fed,
net.jini.config.Configuration config,
boolean pushConfig,
boolean restartServices,
AbstractServicesManagerService service)
fed - config - The configuration that will be pushed to zookeeper.pushConfig - 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.service - | Method Detail |
|---|
public Void call()
throws Exception
call in interface Callable<Void>Exception
protected void doStartup()
throws Exception
Exception
protected boolean startZookeeperService(net.jini.config.Configuration config)
throws net.jini.config.ConfigurationException,
IOException
true if an instance was started successfully.
net.jini.config.ConfigurationException
IOExceptionprotected boolean startJiniCoreServices(net.jini.config.Configuration config)
true if an instance was started successfully.
protected boolean pushConfiguration(ServiceConfiguration[] serviceConfigurations)
throws org.apache.zookeeper.KeeperException,
InterruptedException,
net.jini.config.ConfigurationException
serviceConfigurations - The ServiceConfigurations to be pushed.
net.jini.config.ConfigurationException
InterruptedException
org.apache.zookeeper.KeeperException
public void pushConfiguration(org.apache.zookeeper.ZooKeeper zookeeper,
String zconfig,
List<org.apache.zookeeper.data.ACL> acl,
ServiceConfiguration[] serviceConfigurations)
throws org.apache.zookeeper.KeeperException,
InterruptedException,
net.jini.config.ConfigurationException
ServiceConfigurations for the federation into
zookeeper. A new znode is created if none exists. Otherwise this
overwrites the existing data for those znodes.
net.jini.config.ConfigurationException
InterruptedException
org.apache.zookeeper.KeeperException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||