|
1.0.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 devicekit properties keys and default values.
The list of exported services:
MulticastTransportService,
TransportService| Field Summary | |
|---|---|
static java.lang.String |
CLASS_NAME
Defines the 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 class org.eclipse.soda.dk.core.EscObject |
|---|
EMPTY_BYTES, EMPTY_STRING, ID_FILTER_KEY, ID_KEY, ID_KEY_ANY, INTEGER_TABLE, KEY_KEY, LOG_DEBUG, LOG_ERROR, LOG_INFO, LOG_TRACE, LOG_WARNING, PREFIX_KEY, RESOURCE_BUNDLE, SLEEP_EXCEPTION_RESOURCE, SYSTEM_INFO_RESOURCE, TO_STRING_CONFIGURATION_KEYS, TRACE_LEVEL_HIGH, TRACE_LEVEL_LOW, TRACE_LEVEL_MAX, TRACE_LEVEL_MIN, TRACE_LEVEL_NONE, TRACE_LEVEL_NORMAL, TRACELEVEL_KEY, UNKNOWN_ERROR_RESOURCE |
| Fields inherited from interface org.eclipse.soda.dk.multicast.transport.service.MulticastTransportService |
|---|
FACTORY_SERVICE_NAME, LOCALHOST_KEY, LOCALPORT_KEY, MANAGED_SERVICE_NAME, PACKETSIZE_KEY, REMOTEHOST_KEY, 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 varables 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()
MulticastTransport(String,int,String,int,int,int)
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.
- href="java.io.IOException.html">IOException Thrown if the IOException exception condition occurs.
java.io.IOException- See Also:
UdpTransport.getSocket(),
UdpTransport.setSocket(DatagramSocket)public java.lang.String getLocalhost()
getLocalhost in class UdpTransportString) value.setLocalhost(String)public int getLocalport()
getLocalport in class UdpTransportint) value.setLocalport(int)public int getPacketsize()
getPacketsize in class UdpTransportint) value.setPacketsize(int)public java.lang.String getRemotehost()
getRemotehost in class UdpTransportString) value.setRemotehost(String)public int getRemoteport()
getRemoteport in class UdpTransportint) value.setRemoteport(int)public void setLocalhost(java.lang.String localhost)
setLocalhost in class UdpTransportlocalhost - The localhost (String) parameter.getLocalhost()public void setLocalport(int localport)
setLocalport in class UdpTransportlocalport - The localport (int) parameter.getLocalport()public void setPacketsize(int packetsize)
setPacketsize in class UdpTransportpacketsize - The packetsize (int) parameter.getPacketsize()public void setRemotehost(java.lang.String remotehost)
setRemotehost in class UdpTransportremotehost - The remotehost (String) parameter.getRemotehost()public void setRemoteport(int remoteport)
setRemoteport in class UdpTransportremoteport - The remoteport (int) 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()
|
1.0.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||