DB2 Version 9.7 for Linux, UNIX, and Windows

DB2ClientRerouteServerList class

The com.ibm.db2.jcc.DB2ClientRerouteServerList class implements the java.io.Serializable and javax.naming.Referenceable interfaces.

DB2ClientRerouteServerList methods

getAlternatePortNumber
Format:
public int[] getAlternatePortNumber()

Retrieves the port numbers that are associated with the alternate servers.

getAlternateServerName
Format:
public String[] getAlternateServerName()

Retrieves an array that contains the names of the alternate servers. These values are IP addresses or DNS server names.

getPrimaryPortNumber
Format:
public int getPrimaryPortNumber()

Retrieves the port number that is associated with the primary server.

getPrimaryServerName
Format:
public String[] getPrimaryServerName()

Retrieves the name of the primary server. This value is an IP address or a DNS server name.

setAlternatePortNumber
Format:
public void setAlternatePortNumber(int[] alternatePortNumberList)

Sets the port numbers that are associated with the alternate servers.

setAlternateServerName
Format:
public void setAlternateServerName(String[] alternateServer)

Sets the alternate server names for servers. These values are IP addresses or DNS server names.

setPrimaryPortNumber
Format:
public void setPrimaryPortNumber(int primaryPortNumber)

Sets the port number that is associated with the primary server.

setPrimaryServerName
Format:
public void setPrimaryServerName(String primaryServer)

Sets the primary server name for a server. This value is an IP address or a DNS server name.