Namespace: Consultingwerk.Framework.Server
Class 
AppServerStartupManager Copy to Clipboard
Parent classes:
Inherits: Progress.Lang.Object
Implements: Ccs.Common.IStartupManager
Inherited by: Consultingwerk.Framework.GuiClientStartupManager

File:AppServerStartupManager
Purpose:CCS-SSS compliant implementation of the Ccs.Common.IStartupManager
Interface
Syntax:Uses Json Files for configuration
Author(s):Mike Fechner / Consultingwerk Ltd.
Created:Fri Jun 23 09:06:27 CEST 2017
Notes:https://github.com/progress/CCS/blob/master/Specs/Startup_Session_Service_Managers/v1_0/Startup_Manager_1_0.pdf
https://confluence.consultingwerkcloud.com/wiki/display/SCL/JSON+Configuration+File+Format



Top Method Summary
Options Name Purpose
+ dispose () Destroy/Shutdown/Anti-Initializer
+ Ccs.Common.IManager getManager (Class) Retrieve an instance of the specified IManager object.
# ImportServicesFromJsonObject (JsonObject) Imports services from the given JsonObject into the ttServiceLoader temp-table
+ initialize () Initializer/Startup
# Startup (JsonObject) Performs the actual framework bootstrap
# StartupAliases (JsonObject) Sets Database Aliases
# StartupApplicationSettings (JsonObject) Initializes the ConfigurationProvider service
# StartupCustomLogEntrySettings (JsonObject) Sets the Custom Log Entry settings
# StartupEnvironment (JsonObject) Performs Environment Configuration
# StartupExport (JsonObject) Sets the SESSION:EXPORT
# StartupFactory (JsonObject) Initializes the Factory implementation from factory.xml files
# StartupManagers (JsonObject) Launches the Manager instance
# StartupProfiler (JsonObject) Enables the Profiler
# StartupRoutine (JsonObject) Implements the actual session startup
# StartupServices (JsonObject) Launches Services from service.xml files
# StartupStaticProperties (JsonObject) Processes the static properties

Top Constructor Summary
Options Name Purpose
+ AppServerStartupManager (character) Constructor for the AppServerStartupManager class
+ AppServerStartupManager (JsonObject) Constructor for the AppServerStartupManager class

Top Property Summary
Options Name Purpose
+ Ccs.Common.IServiceManager ServiceManager
+ Ccs.Common.ISessionManager SessionManager


Method Detail
Top

PUBLIC dispose ()

Purpose: Destroy/Shutdown/Anti-Initializer
Notes: Disposes the Service Manager first. The Service Manager
is expected to dispose all services. This way, it's expected
that during disposal of the "ordinary" services, the Managers
are still present

Top

PUBLIC Ccs.Common.IManager getManager (Class)

Purpose: Retrieve an instance of the specified IManager object.
Notes: If a manager is not configured, no error should be raised, but if it is
configured and fails to load, an exception must be raised.

Parameters:
pServiceType Progress.Lang.Class
The Progress.Lang.Class repersenting the required service.
Returns Ccs.Common.IManager
IManager implementation of the requested type, or ? if its not configured.
Top

PROTECTED ImportServicesFromJsonObject (JsonObject)

Purpose: Imports services from the given JsonObject into the ttServiceLoader
temp-table
Notes:

Parameters:
poJson Progress.Json.ObjectModel.JsonObject
The JsonObject to import from
Top

PUBLIC initialize ()

Purpose: Initializer/Startup
Notes:

Top

PROTECTED Startup (JsonObject)

Purpose: Performs the actual framework bootstrap
Notes: Invokes the IStartupValidationService after the session
has been started

Parameters:
poConfiguration Progress.Json.ObjectModel.JsonObject
The JsonObject with the configuration data
Top

PROTECTED StartupAliases (JsonObject)

Purpose: Sets Database Aliases
Notes:

Parameters:
poConfiguration Progress.Json.ObjectModel.JsonObject
The JsonObject with the configuration data
Top

PROTECTED StartupApplicationSettings (JsonObject)

Purpose: Initializes the ConfigurationProvider service
Notes: The applicationSettings property of the configuration does either
contain a CHARACTER value used as the name of a JSON file (.applicationsettings)
or a JSON Object with configuration strings

Parameters:
poConfiguration Progress.Json.ObjectModel.JsonObject
The JsonObject with the configuration data
Top

PROTECTED StartupCustomLogEntrySettings (JsonObject)

Purpose: Sets the Custom Log Entry settings
Notes:

Parameters:
poConfiguration Progress.Json.ObjectModel.JsonObject
The JsonObject with the configuration data
Top

PROTECTED StartupEnvironment (JsonObject)

Purpose: Performs Environment Configuration
Notes:

Parameters:
poConfiguration Progress.Json.ObjectModel.JsonObject
The JsonObject with the configuration data
Top

PROTECTED StartupExport (JsonObject)

Purpose: Sets the SESSION:EXPORT
Notes:

Parameters:
poConfiguration Progress.Json.ObjectModel.JsonObject
The JsonObject with the configuration data
Top

PROTECTED StartupFactory (JsonObject)

Purpose: Initializes the Factory implementation from factory.xml files
Notes:

Parameters:
poConfiguration Progress.Json.ObjectModel.JsonObject
The JsonObject with the configuration data
Top

PROTECTED StartupManagers (JsonObject)

Purpose: Launches the Manager instance
Notes:

Parameters:
poConfiguration Progress.Json.ObjectModel.JsonObject
The JsonObject with the configuration data
Top

PROTECTED StartupProfiler (JsonObject)

Purpose: Enables the Profiler
Notes:

Parameters:
poConfiguration Progress.Json.ObjectModel.JsonObject
The JsonObject with the configuration data
Top

PROTECTED StartupRoutine (JsonObject)

Purpose: Implements the actual session startup
Notes: This method may be overridden in child classes to extend the
startup process

Parameters:
poConfiguration Progress.Json.ObjectModel.JsonObject
The JSON Configuration
Top

PROTECTED StartupServices (JsonObject)

Purpose: Launches Services from service.xml files
Notes:

Parameters:
poConfiguration Progress.Json.ObjectModel.JsonObject
The JsonObject with the configuration data
Top

PROTECTED StartupStaticProperties (JsonObject)

Purpose: Processes the static properties
Notes: Supports integer, character and logical properties

Parameters:
poConfiguration Progress.Json.ObjectModel.JsonObject
The JsonObject with the configuration data


Constructor Detail
Top

PUBLIC AppServerStartupManager (character)

Purpose: Constructor for the AppServerStartupManager class
Notes:

Parameters:
pcConfigurationFileName CHARACTER
The name of the JsonFile containing the configuration
Top

PUBLIC AppServerStartupManager (JsonObject)

Purpose: Constructor for the AppServerStartupManager class
Notes:

Parameters:
poConfiguration Progress.Json.ObjectModel.JsonObject
The JsonObject containing the configuration


Property Detail
Top

PUBLIC Ccs.Common.IServiceManager ServiceManager


Returns Ccs.Common.IServiceManager
Top

PUBLIC Ccs.Common.ISessionManager SessionManager


Returns Ccs.Common.ISessionManager


©2006-2019 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       08.08.2019 23:27:34