org.apache.jcs.utils.discovery
Class UDPDiscoveryAttributes
java.lang.Object
org.apache.jcs.utils.discovery.UDPDiscoveryAttributes
- All Implemented Interfaces:
- Cloneable
public class UDPDiscoveryAttributes
- extends Object
- implements Cloneable
Configuration properties for UDP discover service.
The service will allow out applications to find each other.
- Author:
- Aaron Smuts
UDPDiscoveryAttributes
public UDPDiscoveryAttributes()
setServiceName
public void setServiceName(String serviceName)
- Parameters:
serviceName
- The serviceName to set.
getServiceName
public String getServiceName()
- Returns:
- Returns the serviceName.
setServiceAddress
public void setServiceAddress(String serviceAddress)
- Parameters:
serviceAddress
- The serviceAddress to set.
getServiceAddress
public String getServiceAddress()
- Returns:
- Returns the serviceAddress.
setServicePort
public void setServicePort(int servicePort)
- Parameters:
servicePort
- The servicePort to set.
getServicePort
public int getServicePort()
- Returns:
- Returns the servicePort.
setUdpDiscoveryAddr
public void setUdpDiscoveryAddr(String udpDiscoveryAddr)
- Parameters:
udpDiscoveryAddr
- The udpDiscoveryAddr to set.
getUdpDiscoveryAddr
public String getUdpDiscoveryAddr()
- Returns:
- Returns the udpDiscoveryAddr.
setUdpDiscoveryPort
public void setUdpDiscoveryPort(int udpDiscoveryPort)
- Parameters:
udpDiscoveryPort
- The udpDiscoveryPort to set.
getUdpDiscoveryPort
public int getUdpDiscoveryPort()
- Returns:
- Returns the udpDiscoveryPort.
setSendDelaySec
public void setSendDelaySec(int sendDelaySec)
- Parameters:
sendDelaySec
- The sendDelaySec to set.
getSendDelaySec
public int getSendDelaySec()
- Returns:
- Returns the sendDelaySec.
setMaxIdleTimeSec
public void setMaxIdleTimeSec(int maxIdleTimeSec)
- Parameters:
maxIdleTimeSec
- The maxIdleTimeSec to set.
getMaxIdleTimeSec
public int getMaxIdleTimeSec()
- Returns:
- Returns the maxIdleTimeSec.
isDark
public boolean isDark()
- Returns:
- Returns the isDark.
setDark
public void setDark(boolean isDark)
- Parameters:
isDark
- The isDark to set.
clone
public Object clone()
- Overrides:
clone
in class Object
- Returns:
- a clone of this object
toString
public String toString()
- Overrides:
toString
in class Object
- Returns:
- string for debugging purposes.
Copyright © 2002-2012 Apache Software Foundation. All Rights Reserved.