|
|||||||||
| 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 Form| Fields 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 TransportProfilesendReceive - 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 TransportProfilesendReceive - 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 TransportProfilepublic java.net.InetAddress getAddress()
getAddress in interface TransportProfilepublic int getPort()
getPort in interface TransportProfilepublic byte getTTL()
getTTL in interface TransportProfilepublic long getDataRate()
public java.lang.String getAuthenticationSpecFileName()
getAuthenticationSpecFileName in interface TransportProfilecom.sun.multicast.reliable.transport.TransportProfilepublic boolean isMultiSender()
isMultiSender in interface TransportProfilepublic boolean isOrdered()
isOrdered in interface TransportProfilepublic boolean isUsingAuthentication()
isUsingAuthentication in interface TransportProfile
public void setAddress(java.net.InetAddress address)
throws InvalidMulticastAddressException
setAddress in interface TransportProfileaddress - 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 TransportProfileport - the new multicast port number.public void setOrdered(boolean ordered)
setOrdered in interface TransportProfileordered - the value of the ordered flag.public void setTTL(byte ttl)
setTTL in interface TransportProfilettl - the value of the time-to-live parameter.
public void setMultiSender(boolean multiSender)
throws UnsupportedException
setMultiSender in interface TransportProfilemultisender - 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 TransportProfiletrue if the TransportProfile is valid;
false otherwisepublic java.lang.Object clone()
clone in interface TransportProfileclone in class java.lang.Objectpublic void enableAuthentication()
enableAuthentication in interface TransportProfilepublic void disableAuthentication()
disableAuthentication in interface TransportProfilepublic void setAuthenticationSpecFileName(java.lang.String specFileName)
setAuthenticationSpecFileName in interface TransportProfilecom.sun.multicast.reliable.transport.TransportProfilespecFileName - Authentication Spec file name.public java.lang.String getAuthenticationSpecPassword()
getAuthenticationSpecPassword in interface TransportProfilepublic void setAuthenticationSpecPassword(java.lang.String password)
setAuthenticationSpecPassword in interface TransportProfilepassword - 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.