com.aelitis.net.udp.mc.impl
Class MCGroupImpl

java.lang.Object
  extended by com.aelitis.net.udp.mc.impl.MCGroupImpl
All Implemented Interfaces:
MCGroup

public class MCGroupImpl
extends Object
implements MCGroup

Author:
parg

Field Summary
protected  InetSocketAddress group_address
           
protected  AEMonitor this_mon
           
 
Method Summary
 int getControlPort()
           
static MCGroupImpl getSingleton(MCGroupAdapter adapter, String group_address, int group_port, int control_port, String[] interfaces)
           
 void sendToGroup(byte[] data)
           
 void sendToGroup(String param_data)
          Sends to the group but will replace any occurrence of %AZINTERFACE% in the string with the interface being used for the send
 void sendToMember(InetSocketAddress address, byte[] data)
           
static void setSuspended(boolean suspended)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

group_address

protected InetSocketAddress group_address

this_mon

protected AEMonitor this_mon
Method Detail

getSingleton

public static MCGroupImpl getSingleton(MCGroupAdapter adapter,
                                       String group_address,
                                       int group_port,
                                       int control_port,
                                       String[] interfaces)
                                throws MCGroupException
Throws:
MCGroupException

setSuspended

public static void setSuspended(boolean suspended)

getControlPort

public int getControlPort()
Specified by:
getControlPort in interface MCGroup

sendToGroup

public void sendToGroup(byte[] data)
Specified by:
sendToGroup in interface MCGroup

sendToGroup

public void sendToGroup(String param_data)
Description copied from interface: MCGroup
Sends to the group but will replace any occurrence of %AZINTERFACE% in the string with the interface being used for the send

Specified by:
sendToGroup in interface MCGroup

sendToMember

public void sendToMember(InetSocketAddress address,
                         byte[] data)
                  throws MCGroupException
Specified by:
sendToMember in interface MCGroup
Throws:
MCGroupException