Class OeconsolZosConsoleManagerImpl
- All Implemented Interfaces:
IManager,IZosConsoleSpi
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanareYouProvisionalDependentOn(@NotNull IManager otherManager) Is this Manager dependent on the other Manager.generateZosConsole(Field field, List<Annotation> annotations) getCredentials(String credentialsId, IZosImage image) @NotNull IZosConsolegetZosConsole(IZosImage image) Returns a zOS Console instancegetZosUNIXCommand(IZosImage image) voidinitialise(@NotNull IFramework framework, @NotNull List<IManager> allManagers, @NotNull List<IManager> activeManagers, @NotNull GalasaTest galasaTest) Initialise the Manager, if required.voidProvision resource names, resource pools, settings etc, ready for building.voidsetZosManager(IZosManagerSpi zosManager) voidsetZosUnixCommandManager(IZosUNIXCommandSpi zosUnixCommandManager) voidyouAreRequired(@NotNull List<IManager> allManagers, @NotNull List<IManager> activeManagers, @NotNull GalasaTest galasaTest) Called if another Manager requires this one.Methods inherited from class dev.galasa.framework.spi.AbstractManager
addDependentManager, anyReasonTestClassShouldBeIgnored, anyReasonTestMethodShouldBeIgnored, defaultString, doYouSupportSharedEnvironments, endOfTestClass, endOfTestMethod, endOfTestRun, extraBundles, fillAnnotatedFields, findAnnotatedFields, findProvisionDependentAnnotatedFieldTags, generateAnnotatedFields, getAnnotatedField, getFramework, getTestClass, nulled, performFailureAnalysis, provisionBuild, provisionDiscard, provisionStart, provisionStop, registerAnnotatedField, shutdown, split, startOfTestClass, startOfTestMethod, testClassResult, testMethodResult, trimMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.galasa.framework.spi.IManager
addTestMethodResult, setResultSoFar
-
Field Details
-
NAMESPACE
- See Also:
-
-
Constructor Details
-
OeconsolZosConsoleManagerImpl
public OeconsolZosConsoleManagerImpl()
-
-
Method Details
-
setZosManager
-
getZosManager
-
setZosUnixCommandManager
-
getZosUNIXCommand
-
initialise
public void initialise(@NotNull @NotNull IFramework framework, @NotNull @NotNull List<IManager> allManagers, @NotNull @NotNull List<IManager> activeManagers, @NotNull @NotNull GalasaTest galasaTest) throws ManagerException Description copied from interface:IManagerInitialise the Manager, if required. The Manager should examine the testClass and see if this manager should participate in the Test Run lifecycle. If the Manager needs to take part, it should add itself to the activeManager. A Manager add itself only to the activeManagers.
If a Manager is dependent on another Manager, it should look for implementers in allManager and call the youAreRequired method of the other Manager. If the required Manager has not yet been initialised, it should flag the youAreRequired call for when the Manager is initialised
This will be the only time the testClass is passed to the Manager, so should be preserved
- Specified by:
initialisein interfaceIManager- Overrides:
initialisein classAbstractManager- Parameters:
framework- A fully initialised Framework - preserve it for later useallManagers- All Managers found in OSGiactiveManagers- The Manager should add itself to this list if it is to be activated. Do not add other managers.galasaTest- The Test class the framework will be running- Throws:
ManagerException- If there is a problem initialising the Manager
-
provisionGenerate
Description copied from interface:IManagerProvision resource names, resource pools, settings etc, ready for building.
No building should occur during this process. Only resolution activities should occur so all managers indicate they have all the resources they require before attempting to build anything. If a manager is unable to acquire any resource, it should throw ResourceUnavailableException and the Test Run will be put into Waiting state for a later retry, if in Automation
- Specified by:
provisionGeneratein interfaceIManager- Overrides:
provisionGeneratein classAbstractManager- Throws:
ManagerException- If anything goes wrongResourceUnavailableException- IF resources are unavailable for this run
-
youAreRequired
public void youAreRequired(@NotNull @NotNull List<IManager> allManagers, @NotNull @NotNull List<IManager> activeManagers, @NotNull @NotNull GalasaTest galasaTest) throws ManagerException Description copied from interface:IManagerCalled if another Manager requires this one. If this Manager has not been initialised yet, this call should be flagged until it the initialise method is called
If the Manager has previously been intialised, but believed it wasn't required, then it should drive the initialise routines now.
- Specified by:
youAreRequiredin interfaceIManager- Overrides:
youAreRequiredin classAbstractManager- Parameters:
allManagers- All Managers found in OSGiactiveManagers- The Manager should add itself to this list if it is to be activated. Do not add other managers.galasaTest- The Test class the framework will be running- Throws:
ManagerException
-
areYouProvisionalDependentOn
Description copied from interface:IManagerIs this Manager dependent on the other Manager. Basically, return true if you require the other Manager at all during the provision* lifecycle methods.- Specified by:
areYouProvisionalDependentOnin interfaceIManager- Overrides:
areYouProvisionalDependentOnin classAbstractManager- Parameters:
otherManager- The other Manager- Returns:
- true this Manager is provisionally dependent on the other Manager
-
generateZosConsole
public IZosConsole generateZosConsole(Field field, List<Annotation> annotations) throws ZosManagerException - Throws:
ZosManagerException
-
getZosConsole
@NotNull public @NotNull IZosConsole getZosConsole(IZosImage image) throws ZosConsoleManagerException Description copied from interface:IZosConsoleSpiReturns a zOS Console instance- Specified by:
getZosConsolein interfaceIZosConsoleSpi- Parameters:
image- zOS Image- Returns:
- an
IZosConsoleimplementation instance - Throws:
ZosConsoleManagerException
-
getCredentials
public ICredentials getCredentials(String credentialsId, IZosImage image) throws ZosConsoleException - Throws:
ZosConsoleException
-