|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sun.multicast.reliable.transport.um.UMTransportProfile
A TransportProfile for the Unreliable Multicast transport.
The only transport-specific public methods that are added by this class are getDataRate and setDataRate, which allow a maximum data rate to be set to throttle outgoing data. This avoids overrunning network elements.
TransportProfile
, Serialized FormFields inherited from interface com.sun.multicast.reliable.transport.TransportProfile |
RECEIVER, REPAIR_NODE, SEND_RECEIVE, SENDER |
Constructor Summary | |
UMTransportProfile(java.net.InetAddress address,
int port)
Creates a new Unreliable Multicast TransportProfile. |
Method Summary | |
java.lang.Object |
clone()
Create a new UMTransportProfile object and return it to the caller. |
RMPacketSocket |
createRMPacketSocket(int sendReceive)
Creates an RMPacketSocket using this TransportProfile as input. |
RMStreamSocket |
createRMStreamSocket(int sendReceive)
Creates an RMStreamSocket using this TransportProfile as input. |
void |
disableAuthentication()
disables the use of Authentication |
void |
enableAuthentication()
enable the use of authentication. |
java.net.InetAddress |
getAddress()
Returns the multicast address for this TransportProfile. |
java.lang.String |
getAuthenticationSpecFileName()
gets the name of the authenticationSpec filename to use for initialization. |
java.lang.String |
getAuthenticationSpecPassword()
Gets the password for the authenticationSpec |
long |
getDataRate()
Returns the maximum send rate for this TransportProfile (in bytes per second). |
java.lang.String |
getName()
Returns the name of this transport. |
int |
getPort()
Returns the multicast port number for this TransportProfile. |
byte |
getTTL()
Returns the time-to-live for this TransportProfile. |
boolean |
isMultiSender()
Determines if multiple senders are supported with this TransportProfile. |
boolean |
isOrdered()
Returns the value of the ordered flag. |
boolean |
isUsingAuthentication()
Returns the value of the authentication flag. |
boolean |
isValid()
Tests whether this TransportProfile is valid. |
void |
setAddress(java.net.InetAddress address)
Sets the multicast address for this TransportProfile. |
void |
setAuthenticationSpecFileName(java.lang.String specFileName)
sets the name of the authenticationSpec filename to use for initialization. |
void |
setAuthenticationSpecPassword(java.lang.String password)
Sets the password for the authenticationSpec |
void |
setDataRate(long dataRate)
Sets the maximum send rate for this TransportProfile (in bytes per second). |
void |
setMultiSender(boolean multiSender)
Sets the value of the multisender flag. |
void |
setOrdered(boolean ordered)
Sets the value of the ordered flag. |
void |
setPort(int port)
Sets the multicast port number for this TransportProfile. |
void |
setTTL(byte ttl)
Sets the value for the Time-to-live. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public UMTransportProfile(java.net.InetAddress address, int port) throws InvalidMulticastAddressException
address
- a multicast address for this TransportProfile.port
- the port number for this TransportProfile.InvalidMulticastAddressException
- if the address specified
is not a multicast address.Method Detail |
public RMStreamSocket createRMStreamSocket(int sendReceive) throws UnsupportedException
createRMStreamSocket
in interface TransportProfile
sendReceive
- UMTransportProfile doesn't care about this
parameter.UnsupportedException
- always, since this transport
does not support a stream interface.public RMPacketSocket createRMPacketSocket(int sendReceive) throws UnsupportedException, InvalidTransportProfileException, java.io.IOException
createRMPacketSocket
in interface TransportProfile
sendReceive
- UMTransportProfile doesn't care about this
parameter.UnsupportedException
- if the transport does not
support a packet interface.InvalidTransportProfileException
- if the TransportProfile
is not validjava.io.IOException
- if an I/O exception occurs.public java.lang.String getName()
getName
in interface TransportProfile
public java.net.InetAddress getAddress()
getAddress
in interface TransportProfile
public int getPort()
getPort
in interface TransportProfile
public byte getTTL()
getTTL
in interface TransportProfile
public long getDataRate()
public java.lang.String getAuthenticationSpecFileName()
getAuthenticationSpecFileName
in interface TransportProfile
com.sun.multicast.reliable.transport.TransportProfile
public boolean isMultiSender()
isMultiSender
in interface TransportProfile
public boolean isOrdered()
isOrdered
in interface TransportProfile
public boolean isUsingAuthentication()
isUsingAuthentication
in interface TransportProfile
public void setAddress(java.net.InetAddress address) throws InvalidMulticastAddressException
setAddress
in interface TransportProfile
address
- the multicast address for this TransportProfile.InvalidMulticastAddressException
- if an
the address specified is not a multicast address.public void setPort(int port)
setPort
in interface TransportProfile
port
- the new multicast port number.public void setOrdered(boolean ordered)
setOrdered
in interface TransportProfile
ordered
- the value of the ordered flag.public void setTTL(byte ttl)
setTTL
in interface TransportProfile
ttl
- the value of the time-to-live parameter.public void setMultiSender(boolean multiSender) throws UnsupportedException
setMultiSender
in interface TransportProfile
multisender
- true if the application wishes to support
multiple senders; false otherwiseUnsupportedException
- if the transport does not
support multiple senders.public void setDataRate(long dataRate)
dataRate
- the new data rate.public boolean isValid()
isValid
in interface TransportProfile
true
if the TransportProfile is valid;
false
otherwisepublic java.lang.Object clone()
clone
in interface TransportProfile
clone
in class java.lang.Object
public void enableAuthentication()
enableAuthentication
in interface TransportProfile
public void disableAuthentication()
disableAuthentication
in interface TransportProfile
public void setAuthenticationSpecFileName(java.lang.String specFileName)
setAuthenticationSpecFileName
in interface TransportProfile
com.sun.multicast.reliable.transport.TransportProfile
specFileName
- Authentication Spec file name.public java.lang.String getAuthenticationSpecPassword()
getAuthenticationSpecPassword
in interface TransportProfile
public void setAuthenticationSpecPassword(java.lang.String password)
setAuthenticationSpecPassword
in interface TransportProfile
password
- the password for the authenticationSpec.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
JavaTM Reliable MulticastTM Service version 1.1
Copyright (c) 2001, Sun Microsystems Laboratories, All rights reserved.