public class HeartbeatListener extends Object implements LifecycleListener
Modifier and Type | Field and Description |
---|---|
protected String |
host |
protected String |
ip |
protected int |
multiport |
protected int |
port |
protected String |
proxyList
Proxy list, format "address:port,address:port".
|
protected String |
proxyURL
URL prefix.
|
protected int |
ttl |
Constructor and Description |
---|
HeartbeatListener() |
Modifier and Type | Method and Description |
---|---|
String |
getGroup() |
String |
getHost() |
int |
getMultiport() |
int |
getPort() |
String |
getProxyList() |
String |
getProxyURL() |
int |
getTtl() |
void |
lifecycleEvent(LifecycleEvent event)
Acknowledge the occurrence of the specified event.
|
void |
setGroup(String group)
Set the Multicast IP to use for Multicast
|
void |
setHost(String host)
Set the host corresponding to the connector.
|
void |
setMultiport(int port)
Set the Port to use for Multicast
|
void |
setPort(int port)
Set the port corresponding to the connector.
|
void |
setProxyList(String proxyList)
Set the list of Proxies that send is requests, when not empty it toggles
the multi to off.
|
void |
setProxyURLString(String proxyURL)
Set the URL of receiver in httpd.
|
void |
setTtl(int ttl)
Set the TTL for Multicast packets.
|
protected int port
protected String host
protected String ip
protected int multiport
protected int ttl
protected String proxyList
protected String proxyURL
public String getHost()
public void setHost(String host)
host
- the hostname or ip string.public int getPort()
public void setPort(int port)
port
- default 8009 the ajp one.public String getGroup()
public void setGroup(String group)
group
- the multi address to use.public int getMultiport()
public void setMultiport(int port)
port
- the port to use.public int getTtl()
public void setTtl(int ttl)
ttl
- value for TTL.public String getProxyList()
public void setProxyList(String proxyList)
proxyList
- the list of proxy, format "address:port,address:port".public String getProxyURL()
public void setProxyURLString(String proxyURL)
<Location "/HeartbeatListener"> SetHandler heartbeat </Location>All proxies MUST use the same location.
proxyURL
- a String with the URL starting with /public void lifecycleEvent(LifecycleEvent event)
LifecycleListener
lifecycleEvent
in interface LifecycleListener
event
- LifecycleEvent that has occurredCopyright © 2000-2020 Apache Software Foundation. All Rights Reserved.