|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.jasmine.jadort.service.action.modProxyBalancer.ModProxyBalancer
public class ModProxyBalancer
The mod_proxy_balancer manager.
| Field Summary | |
|---|---|
List<Balancer> |
balancers
|
String |
nonce
|
| Constructor Summary | |
|---|---|
ModProxyBalancer(String url)
Constructor. |
|
ModProxyBalancer(String url,
String login,
String password)
Constructor. |
|
| Method Summary | |
|---|---|
void |
activateWorker(String balancerName,
String workerUrl)
Activate a worker |
void |
deactivateWorker(String balancerName,
String workerUrl)
Deactivate a worker |
List<Balancer> |
getBalancers()
|
String |
getLogin()
|
String |
getPassword()
|
String |
getUrl()
|
protected String |
openConnection()
open the http connection and send the request to ModProxyBalancer url |
protected String |
openConnection(String param)
open the http connection and send the request to ModProxyBalancer url |
void |
parseAndUpdateModProxyBalancer(String response)
parse the html response and update the modProxyBalacncer Info |
void |
setLogin(String login)
|
void |
setPassword(String password)
|
void |
setUrl(String url)
|
protected void |
updateBalancerInfo()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public List<Balancer> balancers
public String nonce
| Constructor Detail |
|---|
public ModProxyBalancer(String url,
String login,
String password)
url - : mod_proxy_balancer manager urllogin - : login of mod_proxy_balancer manager web applicationpassword - : password of mod_proxy_balancer manager web applicationpublic ModProxyBalancer(String url)
url - : mod_proxy_balancer manager url| Method Detail |
|---|
protected void updateBalancerInfo()
throws Exception
Exceptionpublic void parseAndUpdateModProxyBalancer(String response)
response - : the html response to be parsed
protected String openConnection()
throws Exception
Exception
protected String openConnection(String param)
throws Exception
param - : parameters that will be passed to the url
Exceptionpublic String getLogin()
public void setLogin(String login)
public String getPassword()
public void setPassword(String password)
public String getUrl()
public void setUrl(String url)
public List<Balancer> getBalancers()
throws Exception
Exception
public void activateWorker(String balancerName,
String workerUrl)
throws Exception
balancerName - : the name of the target balancerworkerUrl - : the url of the target worker that will be activated
Exception
public void deactivateWorker(String balancerName,
String workerUrl)
throws Exception
balancerName - : the name of the target balancerworkerUrl - : the url of the target worker that will be deactivated
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||