com.ibm.di.api.remote.impl
Class BindAddressPolicyImpl

java.lang.Object
  extended by com.ibm.di.server.BindAddressPolicyImpl
      extended by com.ibm.di.api.remote.impl.BindAddressPolicyImpl
All Implemented Interfaces:
BindAddressPolicy

public class BindAddressPolicyImpl
extends BindAddressPolicyImpl

This class take responsibility for providing information about remote bind addresses. This class is developed only for internal use and should not be used for other purpose.

Since:
7.1

Field Summary
static String PROP_API_REMOTE_BIND_ADDRESS
          Property name used to specify the remote bind address.
protected  InetAddress remoteBindINetAddr
          java.net.InetAddress object representing the remote bind address.
 
Fields inherited from class com.ibm.di.server.BindAddressPolicyImpl
PROP_COM_IBM_DI_DEFAULT_BIND_ADDRESS
 
Constructor Summary
BindAddressPolicyImpl(Properties propFile)
          Constructor.
BindAddressPolicyImpl(Properties propFile, boolean tdiServerSide)
          Constructor.
 
Method Summary
 InetAddress getBindAddress()
          Provides the bind address to connect to.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROP_API_REMOTE_BIND_ADDRESS

public static final String PROP_API_REMOTE_BIND_ADDRESS
Property name used to specify the remote bind address.

See Also:
Constant Field Values

remoteBindINetAddr

protected InetAddress remoteBindINetAddr
java.net.InetAddress object representing the remote bind address.

Note that null value means binding to all available network interfaces. If no value is specified in the property then the default bind address it taken.

Constructor Detail

BindAddressPolicyImpl

public BindAddressPolicyImpl(Properties propFile)
Constructor. Accepts the Properties file that bind addresses will be retrieved from. Implicitly defines that the caller is running on TDI Server Client side.

Parameters:
propFile - Properties file that bind addresses will be obtained from.

BindAddressPolicyImpl

public BindAddressPolicyImpl(Properties propFile,
                             boolean tdiServerSide)
Constructor. Accepts the Properties file that bind addresses will be retrieved from. The tdiServerSide parameter determines whether the caller is running on TDI Server side or not.

Parameters:
propFile - Properties file that bind addresses will be obtained from.
tdiServerSide - Determines on which side the caller is running.
True if caller is running on TDI Server API side
False if caller is running on TDI Server Client side.
Method Detail

getBindAddress

public InetAddress getBindAddress()
Provides the bind address to connect to. * means bind to all available network interfaces. Mind that only one IP address value should be provided for the related property. No host names are accepted - only IP addresses.

Specified by:
getBindAddress in interface BindAddressPolicy
Overrides:
getBindAddress in class BindAddressPolicyImpl