public class HeartbeatListener extends java.lang.Object implements LifecycleListener
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
host |
protected java.lang.String |
ip |
protected int |
multiport |
protected int |
port |
protected java.lang.String |
proxyList
Proxy list, format "address:port,address:port".
|
protected java.lang.String |
proxyURL
URL prefix.
|
protected int |
ttl |
Constructor and Description |
---|
HeartbeatListener() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getGroup() |
java.lang.String |
getHost() |
int |
getMultiport() |
int |
getPort() |
java.lang.String |
getProxyList() |
java.lang.String |
getProxyURL() |
int |
getTtl() |
void |
lifecycleEvent(LifecycleEvent event)
Acknowledge the occurrence of the specified event.
|
void |
setGroup(java.lang.String group)
Set the Multicast IP to use for Multicast
|
void |
setHost(java.lang.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(java.lang.String proxyList)
Set the list of Proxies that send is requests, when not empty it toogles
the multi to off.
|
void |
setProxyURLString(java.lang.String proxyURL)
Set the URL of receiver in httpd.
|
void |
setTtl(int ttl)
Set the TTL for Multicast packets.
|
protected int port
protected java.lang.String host
protected java.lang.String ip
protected int multiport
protected int ttl
protected java.lang.String proxyList
protected java.lang.String proxyURL
public java.lang.String getHost()
public void setHost(java.lang.String host)
host
- the hostname or ip string.public int getPort()
public void setPort(int port)
port
- default 8009 the ajp one.public java.lang.String getGroup()
public void setGroup(java.lang.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 java.lang.String getProxyList()
public void setProxyList(java.lang.String proxyList)
proxyList
- the list of proxy, format "address:port,address:port".public java.lang.String getProxyURL()
public void setProxyURLString(java.lang.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.