Package com.softwaremining.vendors.cics
Class PooledServicesFactory
java.lang.Object
com.softwaremining.vendors.cics.PooledServicesFactory
this Factory class provides Instantiation of CICS programs using Transaction IDS or Program-Names.
On termination of the program execution, the program instance will enter a pool of reusable objects.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
convertTransactionIdFullClassName
(String transactionId) For Internal Use only.static String
convertTransactionIdFullClassName
(String transactionId, boolean suppressExceptions) For Internal Use only.static BaseService
createService
(String programCode, CicsBaseService owner, String sysId) Translation of CICS LINK Statement - creates instance of a program based on 8 Character Program name or Transaction-ID.static BaseService
createService
(String programCode, CicsBaseService owner, String sysId, boolean synchOnReturn) Translation of CICS LINK Statement - creates instance of a program based on 8 Character Program name or Transaction-ID.static BaseService
createService
(String programCode, ICicsBaseService owner) Translation of CICS LINK Statement - creates instance of a program based on 8 Program name or Transaction-ID.static BaseService
getService
(String className, ICicsBaseService parent, SessionManager sessManager) For internal use onlystatic String
getTransactionID
(Class clazz) Get Transaction id as defined in services.perperties file for the classstatic String
getTransactionID
(String className) static void
for manual usestatic void
releaseService
(CicsBaseService baseService) static void
releaseService
(CicsBaseService baseService, boolean doCommit) static void
releaseService
(CicsBaseService baseService, boolean doCommit, boolean resetDAOInitialValues) ReInitialie referenced variables/DAO, then store the class into the Pool.
-
Constructor Details
-
PooledServicesFactory
public PooledServicesFactory()
-
-
Method Details
-
getService
public static BaseService getService(String className, ICicsBaseService parent, SessionManager sessManager) For internal use only- Parameters:
className
-parent
-- Returns:
-
releaseService
-
releaseService
-
releaseService
public static void releaseService(CicsBaseService baseService, boolean doCommit, boolean resetDAOInitialValues) ReInitialie referenced variables/DAO, then store the class into the Pool.- Parameters:
baseService
-
-
getTransactionID
Get Transaction id as defined in services.perperties file for the class- Parameters:
clazz
-- Returns:
-
getTransactionID
-
convertTransactionIdFullClassName
For Internal Use only. convert TransactionId to FullClassName using the information in services.properties file- Parameters:
transactionId
-- Returns:
-
convertTransactionIdFullClassName
public static String convertTransactionIdFullClassName(String transactionId, boolean suppressExceptions) For Internal Use only. convert TransactionId to FullClassName using the information in services.properties file- Parameters:
transactionId
-- Returns:
-
createService
Translation of CICS LINK Statement - creates instance of a program based on 8 Program name or Transaction-ID. On Cics this must be defined in the Program Definitions (PD) as a local program.- Parameters:
programCode
- - 8 Character Program-nameowner
-- Returns:
-
createService
Translation of CICS LINK Statement - creates instance of a program based on 8 Character Program name or Transaction-ID. On Cics this must be defined in the Program Definitions (PD) as a local program.- Parameters:
programCode
- - 8 Character name (transaction-id)owner
-sysId
- - Address of the remote system where the program resides- Returns:
-
createService
public static BaseService createService(String programCode, CicsBaseService owner, String sysId, boolean synchOnReturn) Translation of CICS LINK Statement - creates instance of a program based on 8 Character Program name or Transaction-ID. On Cics this must be defined in the Program Definitions (PD) as a local program.- Parameters:
programCode
- - 8 Character name (transaction-id)owner
-sysId
- - Address of the remote system where the program residessynchOnReturn
- - Indicates that the server program should perform a Syncpoit when it returns Control to the client program. If omitted (false), the sysnchpoint is taken when the client program ends- Returns:
-
manualReleaseAllPooledServices
public static void manualReleaseAllPooledServices()for manual use
-