com.hazelcast.config
Class MulticastConfig

java.lang.Object
  extended by com.hazelcast.config.MulticastConfig
All Implemented Interfaces:
DataSerializable, Serializable

public class MulticastConfig
extends Object
implements DataSerializable

See Also:
Serialized Form

Field Summary
static boolean DEFAULT_ENABLED
           
static String DEFAULT_MULTICAST_GROUP
           
static int DEFAULT_MULTICAST_PORT
           
static int DEFAULT_MULTICAST_TIMEOUT_SECONDS
           
static int DEFAULT_MULTICAST_TTL
           
 
Constructor Summary
MulticastConfig()
           
 
Method Summary
 MulticastConfig addTrustedInterface(String ip)
           
 String getMulticastGroup()
           
 int getMulticastPort()
           
 int getMulticastTimeoutSeconds()
           
 int getMulticastTimeToLive()
           
 Set<String> getTrustedInterfaces()
           
 boolean isEnabled()
           
 void readData(DataInput in)
           
 MulticastConfig setEnabled(boolean enabled)
           
 MulticastConfig setMulticastGroup(String multicastGroup)
           
 MulticastConfig setMulticastPort(int multicastPort)
           
 MulticastConfig setMulticastTimeoutSeconds(int multicastTimeoutSeconds)
           
 MulticastConfig setMulticastTimeToLive(int multicastTimeToLive)
           
 MulticastConfig setTrustedInterfaces(Set<String> interfaces)
           
 String toString()
           
 void writeData(DataOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_ENABLED

public static final boolean DEFAULT_ENABLED
See Also:
Constant Field Values

DEFAULT_MULTICAST_GROUP

public static final String DEFAULT_MULTICAST_GROUP
See Also:
Constant Field Values

DEFAULT_MULTICAST_PORT

public static final int DEFAULT_MULTICAST_PORT
See Also:
Constant Field Values

DEFAULT_MULTICAST_TIMEOUT_SECONDS

public static final int DEFAULT_MULTICAST_TIMEOUT_SECONDS
See Also:
Constant Field Values

DEFAULT_MULTICAST_TTL

public static final int DEFAULT_MULTICAST_TTL
See Also:
Constant Field Values
Constructor Detail

MulticastConfig

public MulticastConfig()
Method Detail

isEnabled

public boolean isEnabled()
Returns:
the enabled

setEnabled

public MulticastConfig setEnabled(boolean enabled)
Parameters:
enabled - the enabled to set

getMulticastGroup

public String getMulticastGroup()
Returns:
the multicastGroup

setMulticastGroup

public MulticastConfig setMulticastGroup(String multicastGroup)
Parameters:
multicastGroup - the multicastGroup to set

getMulticastPort

public int getMulticastPort()
Returns:
the multicastPort

setMulticastPort

public MulticastConfig setMulticastPort(int multicastPort)
Parameters:
multicastPort - the multicastPort to set

getMulticastTimeoutSeconds

public int getMulticastTimeoutSeconds()
Returns:
the multicastTimeoutSeconds

setMulticastTimeoutSeconds

public MulticastConfig setMulticastTimeoutSeconds(int multicastTimeoutSeconds)
Parameters:
multicastTimeoutSeconds - the multicastTimeoutSeconds to set

getTrustedInterfaces

public Set<String> getTrustedInterfaces()

setTrustedInterfaces

public MulticastConfig setTrustedInterfaces(Set<String> interfaces)

addTrustedInterface

public MulticastConfig addTrustedInterface(String ip)

getMulticastTimeToLive

public int getMulticastTimeToLive()

setMulticastTimeToLive

public MulticastConfig setMulticastTimeToLive(int multicastTimeToLive)

writeData

public void writeData(DataOutput out)
               throws IOException
Specified by:
writeData in interface DataSerializable
Throws:
IOException

readData

public void readData(DataInput in)
              throws IOException
Specified by:
readData in interface DataSerializable
Throws:
IOException

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2008-2012 Hazel Ltd. All Rights Reserved.