org.objectweb.dream.channel
Interface MonoDestinationIPChannelOutAttributeController

All Superinterfaces:
AttributeController, ChannelOutAttributeController
All Known Implementing Classes:
MonoDestinationTCPChannelOutImpl

public interface MonoDestinationIPChannelOutAttributeController
extends ChannelOutAttributeController

Attribute controller for ChannelOut components that can send message to only one destination.


Method Summary
 String getInetAddress()
          Returns the inet address to which messages are sent.
 int getPort()
          Returns the port number to which messages are sent.
 void setInetAddress(String inetAddress)
          Sets the inet address to which messages are sent.
 void setPort(int port)
          Sets the port number to which messages are sent.
 
Methods inherited from interface org.objectweb.dream.channel.ChannelOutAttributeController
getConnectionRetry, setConnectionRetry
 

Method Detail

getInetAddress

public String getInetAddress()
Returns the inet address to which messages are sent.

Returns:
a string representation of the inet address to which messages are sent.

setInetAddress

public void setInetAddress(String inetAddress)
                    throws UnknownHostException,
                           IOException
Sets the inet address to which messages are sent.

Parameters:
inetAddress - a String representing the inet address.
Throws:
UnknownHostException - if the given inet address can't be resolved.
IOException - if an error occurs while closing the previously used socket.
See Also:
InetAddress.getByName(java.lang.String)

getPort

public int getPort()
Returns the port number to which messages are sent.

Returns:
the port number to which messages are sent.

setPort

public void setPort(int port)
Sets the port number to which messages are sent.

Parameters:
port - the port number to which messages are sent.


Copyright © 2003, 2004 - INRIA Rhone-Alpes - All Rights Reserved.