com.bigdata.service.jini.util
Class BroadcastSighup

java.lang.Object
  extended by com.bigdata.service.jini.util.BroadcastSighup

public class BroadcastSighup
extends Object

Utility will broadcast the IServicesManagerService.sighup(boolean,boolean) method or ILoadBalancerService.sighup() method to either local or all discovered IServicesManagerServices or ILoadBalancerServices in federation to which it connects. Each discovered IServicesManagerService will push the service configuration to zookeeper and then restart any processes for which it has responsibility which are not currently running. Each discovered ILoadBalancerService will log current counters to files.

Note: If you are running a federation on a cluster, you can achieve the same effect by changing the federation run state to hup and then changing it back to status after the bigdata controller script has been executed at least once by each machine.

Version:
$Id$
Author:
Bryan Thompson

Field Summary
protected static String COMPONENT
           
protected static org.apache.log4j.Logger log
           
 
Constructor Summary
BroadcastSighup()
           
 
Method Summary
static void main(String[] args)
          Sends the signal to all discovered IServicesManagerServices.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static final org.apache.log4j.Logger log

COMPONENT

protected static final String COMPONENT
Constructor Detail

BroadcastSighup

public BroadcastSighup()
Method Detail

main

public static void main(String[] args)
Sends the signal to all discovered IServicesManagerServices.

Configuration options use COMPONENT as their namespace. The following options are defined:

localOrRemote
If "local", then consider only services running on the local host (similar to what linux "kill -hup" signal used to do). If "all" then call sighup() on all services found.
signalTarget
If "servicesManager", then send signals only to instances of IServicesManagerService. If "loadBalancer", then send signals only to instances of ILoadBalancerService.
discoveryDelay
The time in milliseconds to wait for service discovery before proceeding.
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.

Parameters:
args - Configuration file and optional overrides.
Throws:
InterruptedException
net.jini.config.ConfigurationException


Copyright © 2006-2011 SYSTAP, LLC. All Rights Reserved.