Class Framework
- All Implemented Interfaces:
IFramework
,IShuttableFramework
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
activate
(org.osgi.framework.BundleContext bundleContext) void
addResultArchiveStoreService
(@NotNull IResultArchiveStoreService resultArchiveStoreService) Add a new Result Archive Store Service to the framework, eventually we will have the ability to have multiples RASs runningvoid
Retrieve the Auth Store from the framework.Retrieve the Auth Store Service which can be used to retrieve users and tokens from the store.@NotNull ICertificateStoreService
Retrieve the Certificate Store Service which can be used to retrieve keystores of certificates or individual certificates from the store.@NotNull IConfidentialTextService
Provide access to the Confidential Text Service@NotNull IConfigurationPropertyStoreService
getConfigurationPropertyService
(@NotNull String namespace) Retrieve the Configuration Property Store service from the framework.protected IConfigurationPropertyStore
Retrieve the active CPS Service@NotNull ICredentialsService
protected ICredentialsStore
protected IDynamicStatusStore
Retrieve the active DSS Service@NotNull IDynamicStatusStoreService
getDynamicStatusStoreService
(@NotNull String namespace) Retrieve the Dynamic Status Store service from the framework.Get a predefined Random object for sharing across all managers and servers@NotNull IResourcePoolingService
Provide access to the Resource Pooling Service@NotNull IResultArchiveStore
Retrieve the Result Archive Store from the framework.protected IResultArchiveStoreService
If this is a shared environment run, return the run typeRetrieve the test run name.void
boolean
boolean
void
setAuthStore
(@NotNull IAuthStore authStore) void
setConfidentialTextService
(@NotNull IConfidentialTextService confidentialTextService) protected void
setConfigurationPropertyStore
(@NotNull IConfigurationPropertyStore cpsStore) Set the new Configuration Property Store Servicevoid
setCredentialsStore
(@NotNull ICredentialsStore credsStore) void
setDynamicStatusStore
(@NotNull IDynamicStatusStore dssStore) void
setEventsService
(@NotNull IEventsService eventsService) void
setFrameworkProperties
(Properties overridesProperties) void
setTestRunName
(String runName) Set the run name if it is a test runvoid
shutdown()
void
shutdown
(org.apache.commons.logging.Log shutdownLogger)
-
Constructor Details
-
Framework
public Framework()
-
-
Method Details
-
activate
public void activate(org.osgi.framework.BundleContext bundleContext) -
deactivate
public void deactivate() -
setFrameworkProperties
- Specified by:
setFrameworkProperties
in interfaceIFramework
-
isInitialised
public boolean isInitialised()- Specified by:
isInitialised
in interfaceIFramework
-
isShutdown
public boolean isShutdown() -
getConfigurationPropertyService
@NotNull public @NotNull IConfigurationPropertyStoreService getConfigurationPropertyService(@NotNull @NotNull String namespace) throws ConfigurationPropertyStoreException Description copied from interface:IFramework
Retrieve the Configuration Property Store service from the framework. This will allow you to access the configuration properties.
The namespace is used to departmentalise the configuration properties to prevent managers from directly accessing another manager's properties.
the namespace can be alphanumeric, but no '.', cannot be an empty string and cannot be null
As an example, the zOS Batch Manager would have a namespace of 'zosbatch'. The zOS Manager with be 'zos'.
- Specified by:
getConfigurationPropertyService
in interfaceIFramework
- Parameters:
namespace
- - The string used to identify the manager/service to the configuration store- Returns:
- A
IConfigurationPropertyStore
, cannot be null - Throws:
ConfigurationPropertyStoreException
- - If an invalid namespace is given
-
getDynamicStatusStoreService
@NotNull public @NotNull IDynamicStatusStoreService getDynamicStatusStoreService(@NotNull @NotNull String namespace) throws DynamicStatusStoreException Description copied from interface:IFramework
Retrieve the Dynamic Status Store service from the framework. This will allow you to access the dynamic status store.
The namespace is used to departmentalise the status properties to prevent managers from directly accessing another manager's properties.
the namespace can be alphanumeric, but no '.', cannot be an empty string and cannot be null
As an example, the zOS Batch Manager would have a namespace of 'zosbatch'. The zOS Manager with be 'zos'.
- Specified by:
getDynamicStatusStoreService
in interfaceIFramework
- Parameters:
namespace
- - The string used to identify the manager/service to the dynamic status store- Returns:
- The dynamic status store service for the specified namespace
- Throws:
DynamicStatusStoreException
-
getResultArchiveStore
Description copied from interface:IFramework
Retrieve the Result Archive Store from the framework.
- Specified by:
getResultArchiveStore
in interfaceIFramework
- Returns:
- A
IResultArchiveStore
, cannot be null
-
getResultArchiveStoreService
-
getResourcePoolingService
Description copied from interface:IFramework
Provide access to the Resource Pooling Service
- Specified by:
getResourcePoolingService
in interfaceIFramework
- Returns:
IResourcePoolingService
The Resource Pooling Service
-
getConfidentialTextService
Description copied from interface:IFramework
Provide access to the Confidential Text Service
- Specified by:
getConfidentialTextService
in interfaceIFramework
- Returns:
- The Confidential Text Service
-
getCredentialsService
- Specified by:
getCredentialsService
in interfaceIFramework
- Throws:
CredentialsException
-
getEventsService
- Specified by:
getEventsService
in interfaceIFramework
-
setConfigurationPropertyStore
protected void setConfigurationPropertyStore(@NotNull @NotNull IConfigurationPropertyStore cpsStore) throws ConfigurationPropertyStoreException Set the new Configuration Property Store Service- Parameters:
cpsStore
- - The new CPS- Throws:
ConfigurationPropertyStoreException
- - If a CPS has already be registered
-
setDynamicStatusStore
public void setDynamicStatusStore(@NotNull @NotNull IDynamicStatusStore dssStore) throws DynamicStatusStoreException - Throws:
DynamicStatusStoreException
-
setAuthStore
- Throws:
AuthStoreException
-
addResultArchiveStoreService
public void addResultArchiveStoreService(@NotNull @NotNull IResultArchiveStoreService resultArchiveStoreService) throws ResultArchiveStoreException Add a new Result Archive Store Service to the framework, eventually we will have the ability to have multiples RASs running- Parameters:
resultArchiveStoreService
- - a new result archive store service- Throws:
ResultArchiveStoreException
-
setEventsService
- Throws:
EventsException
-
setConfidentialTextService
public void setConfidentialTextService(@NotNull @NotNull IConfidentialTextService confidentialTextService) throws ConfidentialTextException - Throws:
ConfidentialTextException
-
setCredentialsStore
public void setCredentialsStore(@NotNull @NotNull ICredentialsStore credsStore) throws CredentialsException - Throws:
CredentialsException
-
getConfigurationPropertyStore
Retrieve the active CPS Service- Returns:
- The CPS Service
-
getDynamicStatusStore
Retrieve the active DSS Service- Returns:
- The DSS service
-
getCredentialsStore
-
getAuthStore
Description copied from interface:IFramework
Retrieve the Auth Store from the framework.
- Specified by:
getAuthStore
in interfaceIFramework
- Returns:
- An
IAuthStore
, cannot be null
-
getAuthStoreService
Description copied from interface:IFramework
Retrieve the Auth Store Service which can be used to retrieve users and tokens from the store.- Specified by:
getAuthStoreService
in interfaceIFramework
- Returns:
- An
IAuthStoreService
, cannot be null
-
getRandom
Description copied from interface:IFramework
Get a predefined Random object for sharing across all managers and servers- Specified by:
getRandom
in interfaceIFramework
- Returns:
- a random object
-
getTestRunName
Description copied from interface:IFramework
Retrieve the test run name. Will be null for non test runs- Specified by:
getTestRunName
in interfaceIFramework
- Returns:
- - The test run name, null if not a test run
-
setTestRunName
Set the run name if it is a test run- Parameters:
runName
- The run name- Throws:
FrameworkException
-
getTestRun
- Specified by:
getTestRun
in interfaceIFramework
-
getFrameworkRuns
- Specified by:
getFrameworkRuns
in interfaceIFramework
- Throws:
FrameworkException
-
getRecordProperties
- Specified by:
getRecordProperties
in interfaceIFramework
-
installLogCapture
public void installLogCapture() -
shutdown
- Specified by:
shutdown
in interfaceIShuttableFramework
- Throws:
FrameworkException
-
shutdown
- Throws:
FrameworkException
-
getApiUrl
- Specified by:
getApiUrl
in interfaceIFramework
- Throws:
FrameworkException
-
getCertificateStoreService
Description copied from interface:IFramework
Retrieve the Certificate Store Service which can be used to retrieve keystores of certificates or individual certificates from the store.
- Specified by:
getCertificateStoreService
in interfaceIFramework
- Returns:
- A
ICertificateStoreService
, cannot be null
-