Class Framework
- All Implemented Interfaces:
IFramework,IShuttableFramework
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactivate(org.osgi.framework.BundleContext bundleContext) voidaddResultArchiveStoreService(@NotNull IResultArchiveStoreService resultArchiveStoreService) Add a new Result Archive Store Service to the framework, eventually we will have the ability to have multiples RASs runningvoidRetrieve the Auth Store from the framework.Retrieve the Auth Store Service which can be used to retrieve users and tokens from the store.@NotNull ICertificateStoreServiceRetrieve the Certificate Store Service which can be used to retrieve keystores of certificates or individual certificates from the store.@NotNull IConfidentialTextServiceProvide access to the Confidential Text Service@NotNull IConfigurationPropertyStoreServicegetConfigurationPropertyService(@NotNull String namespace) Retrieve the Configuration Property Store service from the framework.protected IConfigurationPropertyStoreRetrieve the active CPS Service@NotNull ICredentialsServiceprotected ICredentialsStoreprotected IDynamicStatusStoreRetrieve the active DSS Service@NotNull IDynamicStatusStoreServicegetDynamicStatusStoreService(@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 IResourcePoolingServiceProvide access to the Resource Pooling Service@NotNull IResultArchiveStoreRetrieve the Result Archive Store from the framework.protected IResultArchiveStoreServiceIf this is a shared environment run, return the run type@NotNull IStreamsServiceRetrieve the test run name.voidbooleanbooleanvoidsetAuthStore(@NotNull IAuthStore authStore) voidsetConfidentialTextService(@NotNull IConfidentialTextService confidentialTextService) protected voidsetConfigurationPropertyStore(@NotNull IConfigurationPropertyStore cpsStore) Set the new Configuration Property Store ServicevoidsetCredentialsStore(@NotNull ICredentialsStore credsStore) voidsetDynamicStatusStore(@NotNull IDynamicStatusStore dssStore) voidsetEventsService(@NotNull IEventsService eventsService) voidsetFrameworkProperties(Properties overridesProperties) voidsetTestRunName(String runName) Set the run name if it is a test runvoidshutdown()voidshutdown(org.apache.commons.logging.Log shutdownLogger)
-
Constructor Details
-
Framework
public Framework() -
Framework
-
-
Method Details
-
activate
public void activate(org.osgi.framework.BundleContext bundleContext) -
deactivate
public void deactivate() -
setFrameworkProperties
- Specified by:
setFrameworkPropertiesin interfaceIFramework
-
isInitialised
public boolean isInitialised()- Specified by:
isInitialisedin interfaceIFramework
-
isShutdown
public boolean isShutdown() -
getConfigurationPropertyService
@NotNull public @NotNull IConfigurationPropertyStoreService getConfigurationPropertyService(@NotNull @NotNull String namespace) throws ConfigurationPropertyStoreException Description copied from interface:IFrameworkRetrieve 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:
getConfigurationPropertyServicein 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:IFrameworkRetrieve 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:
getDynamicStatusStoreServicein 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:IFrameworkRetrieve the Result Archive Store from the framework.
- Specified by:
getResultArchiveStorein interfaceIFramework- Returns:
- A
IResultArchiveStore, cannot be null
-
getResultArchiveStoreService
-
getResourcePoolingService
Description copied from interface:IFrameworkProvide access to the Resource Pooling Service
- Specified by:
getResourcePoolingServicein interfaceIFramework- Returns:
IResourcePoolingServiceThe Resource Pooling Service
-
getConfidentialTextService
Description copied from interface:IFrameworkProvide access to the Confidential Text Service
- Specified by:
getConfidentialTextServicein interfaceIFramework- Returns:
- The Confidential Text Service
-
getCredentialsService
- Specified by:
getCredentialsServicein interfaceIFramework- Throws:
CredentialsException
-
getEventsService
- Specified by:
getEventsServicein 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:IFrameworkRetrieve the Auth Store from the framework.
- Specified by:
getAuthStorein interfaceIFramework- Returns:
- An
IAuthStore, cannot be null
-
getAuthStoreService
Description copied from interface:IFrameworkRetrieve the Auth Store Service which can be used to retrieve users and tokens from the store.- Specified by:
getAuthStoreServicein interfaceIFramework- Returns:
- An
IAuthStoreService, cannot be null
-
getRandom
Description copied from interface:IFrameworkGet a predefined Random object for sharing across all managers and servers- Specified by:
getRandomin interfaceIFramework- Returns:
- a random object
-
getTestRunName
Description copied from interface:IFrameworkRetrieve the test run name. Will be null for non test runs- Specified by:
getTestRunNamein 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:
getTestRunin interfaceIFramework
-
getFrameworkRuns
- Specified by:
getFrameworkRunsin interfaceIFramework- Throws:
FrameworkException
-
getRecordProperties
- Specified by:
getRecordPropertiesin interfaceIFramework
-
installLogCapture
public void installLogCapture() -
shutdown
- Specified by:
shutdownin interfaceIShuttableFramework- Throws:
FrameworkException
-
shutdown
- Throws:
FrameworkException
-
getApiUrl
- Specified by:
getApiUrlin interfaceIFramework- Throws:
FrameworkException
-
getCertificateStoreService
Description copied from interface:IFrameworkRetrieve the Certificate Store Service which can be used to retrieve keystores of certificates or individual certificates from the store.
- Specified by:
getCertificateStoreServicein interfaceIFramework- Returns:
- A
ICertificateStoreService, cannot be null
-
getRBACService
- Specified by:
getRBACServicein interfaceIFramework- Throws:
RBACException
-
getStreamsService
- Specified by:
getStreamsServicein interfaceIFramework- Throws:
StreamsException
-