GigaSpaces XAP 7.0 API

org.openspaces.pu.container.jee.lb.apache
Class ApacheLoadBalancerAgent

java.lang.Object
  extended by 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

Constructor Summary
ApacheLoadBalancerAgent()
           
 
Method Summary
 void discarded(net.jini.discovery.DiscoveryEvent event)
           
 void discovered(net.jini.discovery.DiscoveryEvent event)
           
 String getApachectlLocation()
           
 String getConfigLocation()
           
 String[] getGroups()
           
 String getLocators()
           
 String getRestartCommand()
           
 int getUpdateInterval()
           
static void main(String[] args)
           
static void printUsage()
           
 void run()
           
 void serviceAdded(net.jini.lookup.ServiceDiscoveryEvent event)
           
 void serviceChanged(net.jini.lookup.ServiceDiscoveryEvent event)
           
 void serviceRemoved(net.jini.lookup.ServiceDiscoveryEvent event)
           
 void setApachectlLocation(String apachectlLocation)
           
 void setConfigLocation(String configLocation)
           
 void setGroups(String[] groups)
           
 void setLocators(String locators)
           
 void setRestartCommand(String restartCommand)
           
 void setUpdateInterval(int updateInterval)
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApacheLoadBalancerAgent

public ApacheLoadBalancerAgent()
Method Detail

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()

GigaSpaces XAP 7.0 API

Copyright © GigaSpaces.