|
2008-07-29 1.1.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.soda.dk.core.EscObject
org.eclipse.soda.dk.transport.Transport
org.eclipse.soda.dk.transport.ThreadTransport
org.eclipse.soda.dk.udp.transport.UdpTransport
org.eclipse.soda.dk.multicast.transport.MulticastTransport
public class MulticastTransport
Multicast Transport.
The Device Kit properties keys and default values.
The list of exported services:
MulticastTransportService,
TransportService| Field Summary | |
|---|---|
static java.lang.String |
CLASS_NAME
Defines the full class name. |
static java.lang.String |
DEFAULT_LOCAL_HOST
Define the default local host (String) constant. |
static int |
DEFAULT_LOCAL_PORT_NUM
Define the default local port num (int) constant. |
static java.lang.String |
DEFAULT_REMOTE_HOST
Define the default remote host (String) constant. |
static int |
DEFAULT_SIZE
Define the default size (int) constant. |
static int |
DEFAULT_TIMEOUT
Define the default timeout (int) constant. |
| Fields inherited from class org.eclipse.soda.dk.udp.transport.UdpTransport |
|---|
DEFAULT_LOCALPORT, localPortNum, remoteHostAddress, SOCKET_CONNECT_EXCEPTION_RESOURCE, UNKNOWN_HOST_EXCEPTION_RESOURCE |
| Fields inherited from interface org.eclipse.soda.dk.multicast.transport.service.MulticastTransportService |
|---|
FACTORY_SERVICE_NAME, LOCALHOST, LOCALHOST_KEY, LOCALPORT, LOCALPORT_KEY, MANAGED_SERVICE_NAME, PACKETSIZE, PACKETSIZE_KEY, REMOTEHOST, REMOTEHOST_KEY, REMOTEPORT, REMOTEPORT_KEY, SERVICE_NAME |
| Fields inherited from interface org.eclipse.soda.dk.udp.transport.service.UdpTransportService |
|---|
FACTORY_SERVICE_NAME, LOCALHOST_KEY, LOCALPORT_KEY, MANAGED_SERVICE_NAME, PACKETSIZE_KEY, REMOTEHOST_KEY, REMOTEPORT_KEY, SERVICE_NAME |
| Constructor Summary | |
|---|---|
MulticastTransport()
Constructs a new instance of the MulticastTransport class. |
|
MulticastTransport(java.lang.String remoteHostString,
int remotePortNum,
java.lang.String localHostString,
int localPortNum,
int packetSize,
int readTimeout)
Constructs an MulticastTransport object using the input parameter(s). |
|
| Method Summary | |
|---|---|
protected java.net.DatagramSocket |
createSocket()
Perform the createSocket method and return the DatagramSocket result. |
java.lang.String |
getLocalhost()
Gets the value of localhost custom parameter. |
int |
getLocalport()
Gets the value of localport custom parameter. |
int |
getPacketsize()
Gets the value of packetsize custom parameter. |
java.lang.String |
getRemotehost()
Gets the value of remotehost custom parameter. |
int |
getRemoteport()
Gets the value of remoteport custom parameter. |
void |
setLocalhost(java.lang.String localhost)
Sets the value of localhost custom parameter. |
void |
setLocalport(int localport)
Sets the value of localport custom parameter. |
void |
setPacketsize(int packetsize)
Sets the value of packetsize custom parameter. |
void |
setRemotehost(java.lang.String remotehost)
Sets the value of remotehost custom parameter. |
void |
setRemoteport(int remoteport)
Sets the value of remoteport custom parameter. |
void |
setup()
Sets user-defined variables to use in the test. |
| Methods inherited from class org.eclipse.soda.dk.udp.transport.UdpTransport |
|---|
attemptRecoveryFromError, close, connect, finalize, getErrorSeverity, getReadTimeout, getResource, getSocket, processInput, setReadTimeout, setSocket, write |
| Methods inherited from class org.eclipse.soda.dk.transport.ThreadTransport |
|---|
getBufferSize, getShutdownTimeout, getThread, handleNoData, handleNoInput, isRunning, processInput, processInput, run, setRunning, setThread, shutdown, start, stop |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.eclipse.soda.dk.core.service.ConfigurationService |
|---|
getBoolean, getFloat, getInt, getLong, getObject |
| Field Detail |
|---|
public static final java.lang.String CLASS_NAME
public static final java.lang.String DEFAULT_LOCAL_HOST
public static final int DEFAULT_LOCAL_PORT_NUM
public static final java.lang.String DEFAULT_REMOTE_HOST
public static final int DEFAULT_SIZE
public static final int DEFAULT_TIMEOUT
| Constructor Detail |
|---|
public MulticastTransport()
public MulticastTransport(java.lang.String remoteHostString,
int remotePortNum,
java.lang.String localHostString,
int localPortNum,
int packetSize,
int readTimeout)
MulticastTransport object using the input parameter(s).
remoteHostString - java.lang.StringremotePortNum - intlocalHostString - java.lang.StringlocalPortNum - intpacketSize - intreadTimeout - intMulticastTransport()| Method Detail |
|---|
protected java.net.DatagramSocket createSocket()
throws java.io.IOException
DatagramSocket result.
createSocket in class UdpTransportDatagramSocket) value.
java.io.IOException - IOException.UdpTransport.getSocket(),
UdpTransport.setSocket(DatagramSocket)public java.lang.String getLocalhost()
getLocalhost in class UdpTransportsetLocalhost(java.lang.String)public int getLocalport()
getLocalport in class UdpTransportsetLocalport(int)public int getPacketsize()
getPacketsize in class UdpTransportsetPacketsize(int)public java.lang.String getRemotehost()
getRemotehost in class UdpTransportsetRemotehost(java.lang.String)public int getRemoteport()
getRemoteport in class UdpTransportsetRemoteport(int)public void setLocalhost(java.lang.String localhost)
setLocalhost in class UdpTransportlocalhost - The localhost custom parameter.getLocalhost()public void setLocalport(int localport)
setLocalport in class UdpTransportlocalport - The localport custom parameter.getLocalport()public void setPacketsize(int packetsize)
setPacketsize in class UdpTransportpacketsize - The packetsize custom parameter.getPacketsize()public void setRemotehost(java.lang.String remotehost)
setRemotehost in class UdpTransportremotehost - The remotehost custom parameter.getRemotehost()public void setRemoteport(int remoteport)
setRemoteport in class UdpTransportremoteport - The remoteport custom parameter.getRemoteport()public void setup()
User defined properties and default values.
| multicasttransport.remotehost | |
| multicasttransport.remoteport | |
| multicasttransport.localhost | |
| multicasttransport.localport | |
| multicasttransport.packetsize | |
| retrytime | DEFAULT_RETRY_TIME |
| noactivitytimeout | DEFAULT_NO_ACTIVITY_TIMEOUT |
setup in class UdpTransportTransport.setup()
|
2008-07-29 1.1.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||