This repository has been archived by the owner on Nov 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added TSQ manager and its IVT program
Signed-off-by: Anuprakash Moothedath <[email protected]>
- Loading branch information
1 parent
a1ef630
commit ba7023d
Showing
26 changed files
with
1,002 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 54 additions & 0 deletions
54
...-cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/ITsqHandler.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
/* | ||
* Copyright contributors to the Galasa project | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
*/ | ||
package dev.galasa.cicsts; | ||
|
||
import javax.validation.constraints.NotNull; | ||
|
||
public interface ITsqHandler { | ||
|
||
/** | ||
* Set TSQ name | ||
* @param queueName TSQ name | ||
* @throws TsqException if there is a problem in setting the TSQ name | ||
*/ | ||
public void setQName(@NotNull String queueName) throws TsqException; | ||
|
||
/** | ||
* Get TSQ name | ||
* @return TSQ name | ||
* @throws TsqException if there is a problem in setting the TSQ name | ||
*/ | ||
public String getQName() throws TsqException; | ||
|
||
/** | ||
* Read Data from TSQ. TSQ name is set using setName() method. | ||
* TSQ item number to be read is passed as parm to this method. | ||
* @param item Item number of the TSQ to be read | ||
* @return Data read from TSQ as String | ||
* @throws TsqException if there is a problem in reading from the TSQ | ||
*/ | ||
public String readQ(@NotNull int item) throws TsqException; | ||
|
||
/** | ||
* Write inputData to TSQ. TSQ name is set using setName() method. | ||
* @param inputData The string to be written to the TSQ | ||
* @throws TsqException if there is a problem in writing to the TSQ | ||
*/ | ||
public void writeQ(@NotNull String inputData) throws TsqException; | ||
|
||
/** | ||
* Delete TSQ. TSQ name is set using setName() method. | ||
* @throws TsqException if there is a problem in deleting the TSQ | ||
*/ | ||
public void deleteQ() throws TsqException; | ||
|
||
/** | ||
* Make TSQ Recoverable. TSQ name is set using setName() method. | ||
* @throws TsqException if there is a problem in making the TSQ recoverable | ||
*/ | ||
public void makeRecoverable() throws TsqException; | ||
|
||
} |
30 changes: 30 additions & 0 deletions
30
...cicsts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/TsqException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/* | ||
* Copyright contributors to the Galasa project | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
*/ | ||
package dev.galasa.cicsts; | ||
|
||
public class TsqException extends TsqManagerException { | ||
private static final long serialVersionUID = 1L; | ||
|
||
public TsqException() { | ||
} | ||
|
||
public TsqException(String message) { | ||
super(message); | ||
} | ||
|
||
public TsqException(Throwable cause) { | ||
super(cause); | ||
} | ||
|
||
public TsqException(String message, Throwable cause) { | ||
super(message, cause); | ||
} | ||
|
||
public TsqException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) { | ||
super(message, cause, enableSuppression, writableStackTrace); | ||
} | ||
|
||
} |
31 changes: 31 additions & 0 deletions
31
...parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/TsqManagerException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* | ||
* Copyright contributors to the Galasa project | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
*/ | ||
package dev.galasa.cicsts; | ||
|
||
public class TsqManagerException extends CicstsManagerException { | ||
private static final long serialVersionUID = 1L; | ||
|
||
public TsqManagerException() { | ||
} | ||
|
||
public TsqManagerException(String message) { | ||
super(message); | ||
} | ||
|
||
public TsqManagerException(Throwable cause) { | ||
super(cause); | ||
} | ||
|
||
public TsqManagerException(String message, Throwable cause) { | ||
super(message, cause); | ||
} | ||
|
||
public TsqManagerException(String message, Throwable cause, boolean enableSuppression, | ||
boolean writableStackTrace) { | ||
super(message, cause, enableSuppression, writableStackTrace); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
...ts-parent/dev.galasa.cicsts.manager/src/main/java/dev/galasa/cicsts/spi/ITsqProvider.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* | ||
* Copyright contributors to the Galasa project | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
*/ | ||
package dev.galasa.cicsts.spi; | ||
|
||
import javax.validation.constraints.NotNull; | ||
|
||
import dev.galasa.cicsts.ITsqHandler; | ||
import dev.galasa.cicsts.TsqManagerException; | ||
import dev.galasa.cicsts.ICicsRegion; | ||
|
||
/** | ||
* Provides CICS Region related TSQ objects | ||
* | ||
*/ | ||
public interface ITsqProvider { | ||
|
||
/** | ||
* Returns a unique instance of the ICemt per CICS region | ||
* | ||
* @param cicsRegion | ||
* @param cicstsManager | ||
* @return ITsqHandler object for this CICS region, will a different instance for different regions | ||
* @throws TsqManagerException if getTsq() fails | ||
*/ | ||
@NotNull | ||
ITsqHandler getTsq(ICicsRegion cicsRegion, ICicstsManagerSpi cicstsManager) throws TsqManagerException; | ||
|
||
} |
5 changes: 5 additions & 0 deletions
5
...a-managers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.tsq.manager.ivt/bnd.bnd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
-snapshot: ${tstamp} | ||
Bundle-Name: Galasa TSQ Manager IVTs | ||
Export-Package: dev.galasa.cicsts.tsq.manager.ivt | ||
Import-Package: !javax.validation.constraints, \ | ||
* |
27 changes: 27 additions & 0 deletions
27
...agers-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.tsq.manager.ivt/build.gradle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
plugins { | ||
id 'galasa.manager.ivt' | ||
} | ||
|
||
description = 'Galasa TSQ Manager IVTs' | ||
|
||
version = '0.1.0' | ||
|
||
dependencies { | ||
implementation project (':galasa-managers-core-parent:dev.galasa.core.manager') | ||
implementation project (':galasa-managers-cicsts-parent:dev.galasa.cicsts.tsq.manager') | ||
implementation project (':galasa-managers-zos-parent:dev.galasa.zos3270.manager') | ||
} | ||
|
||
|
||
// Note: These values are consumed by the parent build process | ||
// They indicate which packages of functionality this OSGi bundle should be delivered inside, | ||
// or referenced from. | ||
// The settings here are gathered together by the build process to create a release.yaml file | ||
// which gathers-up all the packaging metadata about all the OSGi bundles in this component. | ||
ext.projectName=project.name | ||
ext.includeInOBR = true | ||
ext.includeInMVP = true | ||
ext.includeInBOM = false | ||
ext.includeInIsolated = true | ||
ext.includeInCodeCoverage = false | ||
ext.includeInJavadoc = false |
2 changes: 2 additions & 0 deletions
2
...rs-parent/galasa-managers-cicsts-parent/dev.galasa.cicsts.tsq.manager.ivt/settings.gradle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
rootProject.name = 'dev.galasa.cicsts.tsq.manager.ivt' | ||
|
Oops, something went wrong.