@ConnectionManagement(friendlyName="AS400 Connector Configuration") public class AS400ConnectionStrategy extends Object
Constructor and Description |
---|
AS400ConnectionStrategy() |
Modifier and Type | Method and Description |
---|---|
void |
connect()
This method creates the connection with as400 server.
|
void |
connect(String endpoint,
String userid,
String password,
String IASP,
String libraryList,
Boolean secureConnection)
Connect to AS400.
|
String |
connectionId() |
void |
disconnect() |
com.ibm.as400.access.CommandCall |
getCommand() |
String |
getEndpoint() |
String |
getIASP() |
long |
getLastConnectionCheck() |
Exception |
getLastConnectionException() |
String |
getLibraryList() |
String |
getPwd() |
Boolean |
getSecuredConnection() |
com.ibm.as400.access.AS400 |
getSystem() |
String |
getUserID() |
boolean |
isConnected()
This method validates connection.
|
boolean |
isLastConnectionFailed() |
void |
setCommand(com.ibm.as400.access.CommandCall command) |
void |
setEndpoint(String endpoint) |
void |
setIASP(String iASP) |
void |
setLastConnectionCheck(long lastConnectionCheck) |
void |
setLastConnectionException(Exception lastConnectionException) |
void |
setLastConnectionFailed(boolean lastConnectionFailed) |
void |
setLibraryList(String libraryList) |
void |
setPwd(String pwd) |
void |
setSecuredConnection(Boolean securedConnection) |
void |
setSystem(com.ibm.as400.access.AS400 system) |
void |
setUserID(String userID) |
void |
testConnectivity(String endpoint,
String userid,
String password,
String IASP,
String libraryList,
Boolean secureConnection)
Test connectivity to AS400.
|
ConnectStatus |
validateOrReconnect(int numberRetry,
long waitBeforeReconnect,
String processorName)
Validate and reconnect.
|
void |
waitForDelay(long waitTime) |
public String getIASP()
public void setIASP(String iASP)
@TestConnectivity public void testConnectivity(@FriendlyName(value="URL") @Summary(value="AS400 system endpoint (IP or name)") String endpoint, @FriendlyName(value="UserID") @ConnectionKey String userid, @FriendlyName(value="Password") @Password String password, @FriendlyName(value="IASP") @Optional String IASP, @FriendlyName(value="LibraryList") @Summary(value="Comma separated list of libraries to add to the connection user\'s default library list") @Optional String libraryList, @FriendlyName(value="secureConnection") @Summary(value="Communicate with AS400 via encrypted SSL / TLS connection") @Default(value="false") Boolean secureConnection) throws org.mule.api.ConnectionException
endpoint
- IBM i (AS400) system endpoint (IP or name)userid
- user idpassword
- passwordIASP
- IASP namelibraryList
- comma separated list of libraries to add to the connection user's default library listsecureConnection
- when checked, the connector will try to establish secure SSL / TLS connection with IBM i endpoint.org.mule.api.ConnectionException
- if as400 service or network is unavailable or endpoint or userid or password or library incorrect.@Connect public void connect(@FriendlyName(value="URL") @Summary(value="AS400 system endpoint (IP or name)") String endpoint, @FriendlyName(value="UserID") @ConnectionKey String userid, @FriendlyName(value="Password") @Password String password, @FriendlyName(value="IASP") @Optional String IASP, @FriendlyName(value="LibraryList") @Summary(value="Comma separated list of libraries to add to the connection user\'s default library list") @Optional String libraryList, @FriendlyName(value="secureConnection") @Summary(value="Communicate with AS400 via encrypted SSL / TLS connection") @Optional @Default(value="false") Boolean secureConnection) throws org.mule.api.ConnectionException
endpoint
- IBM i (AS400) system endpoint (IP or name)userid
- useridpassword
- passwordIASP
- IASP namelibraryList
- comma separated list of libraries to add to the connection user's default library listsecureConnection
- when checked, the connector will try to establish secure SSL / TLS connection with IBM i endpoint. For more information seeorg.mule.api.ConnectionException
- if as400 service or network is unavailable or endpoint or userid or password or library incorrect.public void connect() throws Exception
Exception
- if cannot connect to as400 serverpublic com.ibm.as400.access.CommandCall getCommand()
public void setCommand(com.ibm.as400.access.CommandCall command)
@Disconnect public void disconnect()
@ValidateConnection public boolean isConnected()
public ConnectStatus validateOrReconnect(int numberRetry, long waitBeforeReconnect, String processorName)
numberRetry
- the number of retrywaitBeforeReconnect
- the wait time of reconnectprocessorName
- the processor nameConnectStatus
public void waitForDelay(long waitTime)
@ConnectionIdentifier public String connectionId()
public com.ibm.as400.access.AS400 getSystem()
public void setSystem(com.ibm.as400.access.AS400 system)
public String getEndpoint()
public void setEndpoint(String endpoint)
public String getUserID()
public void setUserID(String userID)
public String getPwd()
public void setPwd(String pwd)
public String getLibraryList()
public void setLibraryList(String libraryList)
public long getLastConnectionCheck()
public void setLastConnectionCheck(long lastConnectionCheck)
public Exception getLastConnectionException()
public void setLastConnectionException(Exception lastConnectionException)
public boolean isLastConnectionFailed()
public void setLastConnectionFailed(boolean lastConnectionFailed)
public Boolean getSecuredConnection()
public void setSecuredConnection(Boolean securedConnection)
Copyright © 2010–2018. All rights reserved.