org.openspaces.pu.container.jee.lb.apache
Class ApacheLoadBalancerAgent
java.lang.Object
org.openspaces.pu.container.jee.lb.apache.ApacheLoadBalancerAgent
- All Implemented Interfaces:
- Runnable, EventListener, net.jini.discovery.DiscoveryListener, net.jini.lookup.ServiceDiscoveryListener
public class ApacheLoadBalancerAgent
- extends Object
- implements net.jini.discovery.DiscoveryListener, net.jini.lookup.ServiceDiscoveryListener, Runnable
Experimental support for automatically refreshing apache load balancer.
Note, internal API here on how to find processing units is subject to change.
- Author:
- kimchy
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ApacheLoadBalancerAgent
public ApacheLoadBalancerAgent()
getGroups
public String[] getGroups()
setGroups
public void setGroups(String[] groups)
getLocators
public String getLocators()
setLocators
public void setLocators(String locators)
getApachectlLocation
public String getApachectlLocation()
setApachectlLocation
public void setApachectlLocation(String apachectlLocation)
getConfigLocation
public String getConfigLocation()
setConfigLocation
public void setConfigLocation(String configLocation)
getUpdateInterval
public int getUpdateInterval()
setUpdateInterval
public void setUpdateInterval(int updateInterval)
getRestartCommand
public String getRestartCommand()
setRestartCommand
public void setRestartCommand(String restartCommand)
start
public void start()
throws Exception
- Throws:
Exception
stop
public void stop()
discovered
public void discovered(net.jini.discovery.DiscoveryEvent event)
- Specified by:
discovered
in interface net.jini.discovery.DiscoveryListener
discarded
public void discarded(net.jini.discovery.DiscoveryEvent event)
- Specified by:
discarded
in interface net.jini.discovery.DiscoveryListener
serviceAdded
public void serviceAdded(net.jini.lookup.ServiceDiscoveryEvent event)
- Specified by:
serviceAdded
in interface net.jini.lookup.ServiceDiscoveryListener
serviceRemoved
public void serviceRemoved(net.jini.lookup.ServiceDiscoveryEvent event)
- Specified by:
serviceRemoved
in interface net.jini.lookup.ServiceDiscoveryListener
serviceChanged
public void serviceChanged(net.jini.lookup.ServiceDiscoveryEvent event)
- Specified by:
serviceChanged
in interface net.jini.lookup.ServiceDiscoveryListener
run
public void run()
- Specified by:
run
in interface Runnable
main
public static void main(String[] args)
throws Exception
- Throws:
Exception
printUsage
public static void printUsage()
Copyright © GigaSpaces.