Package com.basis.bbj.bridge
Class JavaBBjBridgeFactory
java.lang.Object
com.basis.bbj.bridge.JavaBBjBridgeFactory
JavaBBjBridgeFactory provides a factory interface for obtaining instances
of JavaBBjBridge, BBjBridgeRequest and BBjBridgeResponse.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic JavaBBjBridge
createBridge
(String p_commandLineParams, boolean p_persistentConnection, boolean p_environmentPersists, boolean p_channelsPersist, boolean p_variablesPersist) static JavaBBjBridge
createBridge
(String p_commandLineParams, boolean p_persistentConnection, boolean p_environmentPersists, boolean p_channelsPersist, boolean p_addrsPersist, boolean p_variablesPersist) Creates a JavaBBjBridge.static BBjBridgeRequest
Creates a BBjBridgeRequest that can be used in call to JavaBBjBridge.runBBj().static BBjBridgeResponse
Creates a BBjBridgeResponse that can be used in call to JavaBBjBridge.runBBj().
-
Constructor Details
-
JavaBBjBridgeFactory
public JavaBBjBridgeFactory()
-
-
Method Details
-
createBridge
public static JavaBBjBridge createBridge(String p_commandLineParams, boolean p_persistentConnection, boolean p_environmentPersists, boolean p_channelsPersist, boolean p_addrsPersist, boolean p_variablesPersist) throws BBjBridgeException Creates a JavaBBjBridge.- Parameters:
p_commandLineParams
- The command line parameters that are to be passed to the BBj process (as opposed to the parameters that are to be passed to the program itself). Recognized command line options are -c-t -q -u -LP -TC -RH -RP -SC p_persistentConnection
- If true, the JavaBBjBridge will maintain a persistent socket connection to the BBjBridgeServer and multiple calls may be made to JavaBBjBridge.runBBj(). The connection will persist until JavaBBjBridge.close() is called. If p_persistentConnection is false, the socket will be closed after the first call to JavaBBjBridge.runBBj() and subsequent calls will fail.p_environmentPersists
- If true, then the following environment settings will persist between calls to JavaBBjBridge.runBBj(): SETOPTS, STBL values, SETDAY, ERRMES(), PREFIX, and CHDIR. if false, then all environment settings will be reset at the end of each call to JavaBBjBridge.runBBj().p_channelsPersist
- If true, all open channels will persist between calls to JavaBBjBridge.runBBj(). If false, then all open channels except console will be closed at the end of each call to JavaBBjBridge.runBBj().p_addrsPersist
- If true, all ADDRd programs will persist between calls to JavaBBjBridge.runBBj(). If false, then all ADDRd programs will be DROPped at the end of each call to JavaBBjBridge.runBBj().p_variablesPersist
- If true, all variables will persist between calls to JavaBBjBridge.runBBj(). If false, then all variables will be cleared at the end of each call to JavaBBjBridge.runBBj().- Throws:
BBjBridgeException
-
createBridge
public static JavaBBjBridge createBridge(String p_commandLineParams, boolean p_persistentConnection, boolean p_environmentPersists, boolean p_channelsPersist, boolean p_variablesPersist) throws BBjBridgeException - Throws:
BBjBridgeException
-
createBridgeRequest
Creates a BBjBridgeRequest that can be used in call to JavaBBjBridge.runBBj(). -
createBridgeResponse
Creates a BBjBridgeResponse that can be used in call to JavaBBjBridge.runBBj().
-