|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.ibm.di.protocols.rxa.SelectProtocol
public class SelectProtocol
Connect to the target machine using any protocol that is available.
| Field Summary | |
|---|---|
protected java.lang.String |
hostName
The hostname (address) of the target machine |
protected java.lang.String |
keystore
Full path to the file containing the keystore |
protected byte[] |
passphrase
The passphrase that protects your private key |
protected byte[] |
password
The password for the user |
protected int |
port
The port to use to connect to the target machine |
protected java.lang.String |
sourcefile
Path to the Source file |
static java.lang.String |
TYPE
The connection protocol being used |
protected java.lang.String |
userName
The name of a user |
| Constructor Summary | |
|---|---|
SelectProtocol(java.util.Properties p,
LogProxy log)
Construct a SelectProtocol object with the provided properties |
|
| Method Summary | |
|---|---|
Connection |
findProtocol()
Find a suitable protocol that is available on the target machine and create a connection |
Connection |
findProtocol(boolean checkAll)
Find all suitable protocols that is available on the target machine if checkAll is true; otherwise stops at first suitable protocol |
java.lang.String[] |
getAllProtocols()
Finds all available protocols that can make a successful connection to target machine using given connection parameters |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String hostName
protected java.lang.String userName
protected byte[] password
protected byte[] passphrase
protected java.lang.String keystore
protected java.lang.String sourcefile
protected int port
public static final java.lang.String TYPE
| Constructor Detail |
|---|
public SelectProtocol(java.util.Properties p,
LogProxy log)
p - Properties object containing the configured attribute valueslog - LogProxy object to be used for logging| Method Detail |
|---|
public Connection findProtocol()
throws RemoteConnectException
RemoteConnectException - If a connection cannot be established
public Connection findProtocol(boolean checkAll)
throws RemoteConnectException
checkAll - checks if all suitable protocols needs to be found or only
first succcessful protocol
RemoteConnectExceptionpublic java.lang.String[] getAllProtocols()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||