Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

OSEE/Developers Guide

OSEE Developers Guide

Architecture

Client Architecture

Although there is quite a bit to understand about the Architecture of OSEE, the main thing to understand right away is that OSEE provides an Extensible Framework called the OSEE Application Framework and also provides some Exemplary Applications built on this framework in the form of OSEE Define (the Requirements Management application) and OSEE ATS (Action Tracking System; the Configuration Management application).

The Application Framework provides all the necessary services to allow the application(s) to persist and share data in a common-version controlled object database.

Just like Eclipse provides the ability to add a plugin to the existing Eclipse environment, so OSEE allows other applications to add plugins and share the common data storage.

And just like Eclipse RCP allows an application to be built and deployed using the Eclipse framework but not include all the Exemplary applications like JDT, OSEE allows an application to be built and deployed using the OSEE Application Framework without including such applications as OSEE Define and OSEE ATS.

OSEEArchitecture.gif

Client/Server Architecture

In order to be a scalable system, the Open System Engineering Environment (OSEE) has been slowly migrating into a distributed architecture where clients interact with an application server in-charge of managing access to an OSEE data store. Additionally, in an effort to provide load balancing, failure recovery, and code compatibility, clients consult an arbitration server before connecting to an application server. The arbitration server's responsibility is to keep track of all the application servers interacting with a common data store and direct clients to a healthy application server compatible with the client’s OSEE code version. In this arrangement, arbitration servers act as the initial access points into the OSEE server cloud where a collection of application servers manage client requests to access and operate on a common OSEE data store. Figure 1 shows an example of the OSEE Client/Server network.


Client server view.png

In the figure above, three application servers interact with a single OSEE data store. The data store is comprised of a relational database and a remote file system used to store binary data. It is not necessary for the database and the binary data to exist on the same machine. The only requirement is that the application servers have access to both resources. Upon start-up, each application server registers himself on the data store’s server lookup table by entering its host address, port, supported code versions, and its unique id. When the arbitration server receives a request to find an application server to support a client connection, the arbitration server reads the data store’s server lookup table and selects the best match for the client. The client requests this information from the arbitration server upon start-up or whenever it can’t communicate with an application server. It is important to note that the arbitration server does not have to be a different server thanan application server. All application servers are able to act as an arbitration server. An application server is referred as an arbitration server when clients interact with it in this context. Figure 2 depicts the sequence of events involved in the arbitration process.


Arbitration sequence.png

Once a client receives an application server's address and port information, the client must authenticate with the application server before it can gain access to the OSEE data store. During the authentication process, a client submits to the application server the current user's credential information and the authentication protocol id to use during the process. The application server verifies the user via the selected protocol and grants access to the data store by creating a session for the user. From this point forward, the application server will be responsible for managing access to the data store by identifying the user via the session id. Whenever a client wants to interact with the application server, it will need to submit its session id in order to gain access to the OSEE data store. Figure 3 shows the sequence of events involved in the authentication process.


Authentication sequence.png

Data Model

The OSEE framework is built around a user configurable and extensible data model comprised of attributes, artifacts, and relations. An attribute is a key value pair representing a single data element such as a description, a date, a number, or a file. These basic data elements are grouped into artifacts. Artifacts can be configured to have any number of attributes. By default, an artifact will always have an attribute of type name. In addition, artifacts can be related to one another via relations. By default, an artifact will always have a default hierarchy relation type. This allows artifacts to be connected together in a tree like fashion. In the example below, two instances of the basic artifact type are shown. Artifact 1 has an attribute of type name set to string data "X". Artifact 2 has an attribute of type name set to string data "Y". These two artifact instances are related via the default hierarchy relation type. Artifact 1 is Artifact 2's parent artifact.


Basic artifact.png

Now that we have a basic understanding of the model, lets take a closer look at attributes and how they are defined. An attribute is defined through its attribute type. The attribute type is a blue print for constructing attribute instances. It defines the type of data the will be held by the attribute, the data source or who provides it, how many instances can be created, default value to use during creation, whether the attribute can be tagged for word searches, and if the attribute holds file data, its file extension. By default, data contained in the attribute can be represented through OSEE's basic data types:

  • String Attribute
  • Boolean Attribute
  • Integer Attribute
  • Floating Point Attribute
  • Date Attribute
  • Enumerated Attribute

OSEE provides 3 attribute data providers: the default attribute data provider, URI attribute data provider, and the Clob attribute data provider. The default attribute data provider is used for data containing less than 4000 characters in length. Data is stored and retrieved from the OSEE relational database. Most attribute types will use this data provider to handle its data content. The URI attribute data provider is used for large data. The provider communicates to the OSEE application server to store and retrieve data. The Clob attribute data provider is a hybrid provider using both the OSEE relational database and the application server to retrieve and store data. When the data contained by the attribute has less than 4000 characters, the provider uses the relational database. If the data exceeds the 4000 character limit, then the application server is used.


AttributeType.png

Configuration Properties

OSEE can be configured by setting the following Java system properties when launching Eclipse. Java system properties are key/value pairs and can be passed as launch arguments in the form of -D<key>=<value> (i.e. -Dosee.authentication.protocol=trustAll). These -D options can be specified directly in the command to launch Eclipse or in the corresponding ini file for the eclipse executable used.

System Property Name Values Default Defining Class Description
org.osgi.service.http.port 1 - 65535 -1 OseeServerProperties Port the client will use to communicate with the OSEE Application Server
osee.application.server.data [FILE SYSTEM PATH] User Home OseeServerProperties A directory on the file system to be used by the application server to store and serve artifact binary data.
osee.derby.server [<address>:<port>] OseeServerProperties When specified, this system property sets the URL used to launch a derby database server.
osee.application.server.data [FILE SYSTEM PATH] User Home OseeServerProperties A directory on the file system to be used by the application server to store and serve artifact binary data.
osee.version [<&quote;version 1&quote;>;<&quote;version 2&quote;>] OseeServerProperties When specified, this system property sets the application server's supported client versions. NOTE: version string can use regular expressions
osee.check.tag.queue.on.startup true, false false OseeServerProperties When specified, this system property allows the application server to check the tag queue and begin tagging and pending tag jobs.
osee.connection.info.uri [FILE SYSTEM PATH] OseeProperties File system path or uri containing custom database connection information.
osee.db.connection.id <db identifier> Default from db.connection file OseeProperties Specifies which database OSEE should connect to. This id references connection information specified in the ...db.connection.xml file. See <a href="dbconnection.php" >Database Connection Information</a> file for more information.
osee.jini.forced.reggie.search true, false false OseeProperties If true, adds the lookupList to the global lookup list such that a refresh will try to locate the service again
osee.jini.lookup.groups user defined group name OseeProperties the Jini Group that all OSEE provided Jini services will register with
osee.log.default FINE, INFO, WARNING, SEVERE WARNING OseeProperties the default logging level for all loggers
osee.port.scanner.start.port 1 - 65535 18000 OseeProperties the first port number to test for availability when a new port is needed
osee.application.server <address>:<port> OseeClientProperties When specified, this system property sets the URL used to reference the application server and arbitration is bypassed.
osee.arbitration.server <address>:<port> OseeClientProperties The arbitration server address and port to use. This system property must be specified for the system to gain access to OSEE data. If the application server property is set then that address takes precedence and arbitration is bypassed.
osee.authentication.protocol protocol name OseeClientProperties protocol to be used by the client to authenticate with the server
osee.choice.on.db.init choice name OseeClientProperties the predefined database initialization choice
osee.file.specified.schema.names.on.db.init true, false false OseeClientProperties Specifies whether OSEE database initialization should use the schema names specified in the schema.xml files instead of using the connection schema. Using the connection specified schema is the default behavior.
osee.import.from.connection.id.on.db.init [FILE SYSTEM PATH] OseeClientProperties Specifies where table data should be imported from during OSEE database initialization. The default is to use the database connection id specified in the schema.xml files.
osee.import.on.db.init true, false false OseeClientProperties Specifies whether OSEE database initialization should import database data as part of its tasks.
osee.local.application.server true, false false OseeClientProperties

When set to true launches an application server upon start up. Uses org.osgi.service.http.port arg to determine port to use.

osee.local.http.worker.port <port> Port Scan starting from 18000 OseeClientProperties

Port to use for local worker server.

osee.prompt.on.db.init true, false true OseeClientProperties Specifies whether to interactively prompt the user during database initialization for init choice
osee.record.activity true, false true OseeClientProperties Specifies whether user activity should be logged
osee.ats.ignore.config.upgrades true, false AtsProperties
osee.ote.benchmark true, false OteProperties
osee.ote.cmd.console true, false OteProperties Specifies whether to enable the OTE command console
osee.ote.server.title free text name OteProperties name given to the OTE server which is displayed in the test manager
osee.ote.timing.log.path OteProperties

Database Connection Information

To define a custom database connection for the application server, a path to an xml with the following format is required when launching the application server. This path will need to be specified using the osee.connection.info.uri and osee.db.connection.id jvm arguments on launch. See <a href="configandargs.php">configuration and arguments</a> for more information.

<?xml version="1.0" encoding="UTF-8"?>
<DbConnection>

<DatabaseInfo id="<font color="green">postgresqlInfo</font>">
   <DatabaseHome key="#DBHOME#" value="<b>DATABASE HOME LOCATION</b>" />
   <DatabaseName key="#DBNAME#" value="<b>DATABASE NAME</b>" />
   <DatabaseType key="#TYPE#" value="postgresql" />
   <Prefix key="#PREFIX#" value="jdbc:postgresql" />
   <UserName key="#USERNAME#" value="<b>DATABASE USERNAME</b>" />
   <Password key="#PASSWORD#" value="<b>DATABASE PASSWORD</b>" />
   <Host key="#HOST#" value="@AvailableDbServices.hostAddress" />
   <Port key="#PORT#" value="@AvailableDbServices.port" />
</DatabaseInfo>

<ConnectionDescription id="<font color="blue">postgresql</font>" >
   <Driver>org.postgresql.Driver</Driver>
   <Url>#PREFIX#://#HOST#:#PORT#/#DBHOME##DBNAME#</Url>      
</ConnectionDescription>

<AvailableDbServices>
   <Server id="<b>ANY NAME</b>" dbInfo="<font color="green">postgresqlInfo</font>"
      hostAddress="<b>DATABASE IP ADDRESS</b>" port="<b>DATABASE PORT</b>"
      connectsWith="<font color="blue">postgresql</font>" isProduction="false" />
</AvailableDbServices>
</DbConnection>

The sample file above is used to define PostgreSql connections but it can be changed easily to define oracle or derby connections.

A description of the entries follows:

  • Database Info:

    This entry describes the database to connect to by defining the database name, database home location and user name (or schema) and password to use during connection. When using the OSEE PostgreSql installation instructions, the fields should be set to the following:

    • DATABASE HOME LOCATION: not used therefore remove the value field from this attribute
    • DATABASE NAME: OSEE
    • DATABASE USERNAME: osee
    • DATABASE PASSWORD: osee

  • Connection Description:

    This entry describes how the database connection url should be assembled. At connection time, the fields enclosed in ## are substituted with the information defined in the database info section. There shouldn't be a need to change this unless you want to connect to a database other than PostgreSQL.

  • Available Database Services:

    This section contains entries for each database server and connection option needed at launch time. An entry is referenced at launch time by calling out the entry id in the osee.db.connection.id argument. When using a local OSEE PostgreSql install, the attributes on a server entry should be set to the following:

    • id: any meaningful name to identify this entry
    • hostAddress: localhost
    • port: 5432 (the default PostgreSql port)
    • isProduction: false unless you want to prevent clients from initializing the database

Custom Data Model

The data model in OSEE is extensible and user configurable. Users can define new artifact, attribute, and relation types and their constraints such as multiplicity and applicability. Type inheritance allows similar types to be defined and modified without tedious redundancy because similar types inherit what is common from their super type.

The OSEE data model is defined using a tabular format involving 5 tables. See the following xml spreadsheet <a href="https://dev.eclipse.org/svnroot/technology/org.eclipse.osee/trunk/org.eclipse.osee.framework.skynet.core/support/ProgramAndCommon.xml"> ProgramAndCommon.xml</a> for an example. The full data model can be defined using a single spreadsheet or be divided among multiple spreadsheets that can reference types defined in any spreadsheet.

Artifact Type Table
Column Name Description
Factory Class The factory that is responsible for constructing instances of this artifact type at runtime. Fully qualified java class name of a class that extends org.eclipse.osee.framework.skynet.core.artifact.ArtifactFactory.

The standard and simplest case is to specify org.eclipse.osee.framework.skynet.core.artifact.factory.BasicArtifactFactory which will cause the java type org.eclipse.osee.framework.skynet.core.artifact.Artifact to be instantiated at runtime. If a custom java type that extends

Artifact is needed, then the corresponding custom artifact factory should be specified here.
Artifact Type Name any valid UTF-8 characters with a max length of 75 bytes
Super Type Name The super artifact type from which this type will inherit associated attributes and relations. Another concrete artifact type or an abstract one that exists only in data model definition.
Attribute Type Table
Column Name Description
Attribute Base Type
     Fully qualified java class name of a class that extends org.eclipse.osee.framework.skynet.core.attribute.
     
The typical and simplest case is to specify one of the built-in types:
  • org.eclipse.osee.framework.skynet.core.BooleanAttribute
  • org.eclipse.osee.framework.skynet.core.CompressedContentAttribute
  • org.eclipse.osee.framework.skynet.core.JavaObjectAttribute
  • org.eclipse.osee.framework.skynet.core.DateAttribute
  • org.eclipse.osee.framework.skynet.core.FloatingPointAttribute
  • org.eclipse.osee.framework.skynet.core.IntegerAttribute
  • org.eclipse.osee.framework.skynet.core.StringAttribute
  • org.eclipse.osee.framework.skynet.core.EnumeratedAttribute
  • org.eclipse.osee.framework.skynet.core.WordTemplateAttribute
  • org.eclipse.osee.framework.skynet.core.WordWholeDocumentAttribute
      If a custom java type that extends Attribute is needed, then that type should be specified here.
Attribute Data Provider The attribute data provider is responsible for storing and retrieving attribute data. Fully qualified java class name of a class that implements org.eclipse.osee.framework.skynet.core.attribute.providers.IAttributeDataProvider. org.eclipse.osee.framework.skynet.core.DefaultAttributeDataProvider may be used when the data to be stored does not exceeded 4000 bytes, otherwise org.eclipse.osee.framework.skynet.core.UriAttributeDataProvider may be used.
Attribute Type Name Any valid UTF-8 characters with a max length of 500 bytes
File Extension Any valid UTF-8 characters with a max length of 50 bytes; only applies when using the org.eclipse.osee.framework.skynet.core.UriAttributeDataProvider
Tagger ID If the attrbiute&#146;s content is to be included in the search index for the quick search, use DefaultAttributeTaggerProvider, otherwise leave blank.
Default Value The initial value given an attribute upon initialization, this may be left blank
Validity Xml For the attribute base type org.eclipse.osee.framework.skynet.core.EnumeratedAttribute, specifies the valid enumerations. For example, <Page_Type><Enum>Portrait</Enum><Enum>Landscape</Enum></Page_Type>
Min Occurrence The framework with prevent having lest than this number of this attribute type on a single artifact
Max Occurrence The framework with prevent adding more than this number of this attribute type to a single artifact
Tip Text Text to describe an attribute. Any valid UTF-8 characters with a max length of 4000 bytes
Artifact Type / Attribute Type Mapping Table
Column Name Description
Artifact Type Name Exact name of an artifact type defined above (or previously)
Attribute Type Name Exact name of an attribute type defined above (or previously) to be associated with the corresponding artifact type
Relation Type Table
Column Name Description
Relation Type Name Any valid UTF-8 characters with a max length of 50 bytes
Side A Name Descriptive name for the A side of the relation. Any valid UTF-8 characters with a max length of 50 bytes
A to B Phrase An optional phrase that describe the relation between the artifacts from the side A perspective. Any valid UTF-8 characters with a max length of 50 bytes
Side B Name Descriptive name for the B side of the relation. Any valid UTF-8 characters with a max length of 50 bytes
B to A Phrase An optional phrase that describe the relation between the artifacts from the side B perspective. Any valid UTF-8 characters with a max length of 50 bytes
Short Name Five or less characters is typical. This abbreviated name is used in the user interface when space is at a premium
Ordered Yes to have artifacts on the same side of this relation type use a user defined ordered, otherwise No
Artifact Type / Relation Type Mapping Table
Column Name Description
Artifact Type Exact name of an artifact type defined above (or previously)
Relation Type Exact name of an relation type defined above (or previously)
Side A Max An artifact of type "Artifact Type" can be on side "A", "Side A Max" number of times for relation links of type "Relation Type"
Side B Max An artifact of type "Artifact Type" can be on side "B", "Side B Max" number of times for relation links of type "Relation Type"

Import OSEE Data Model

To import changes to the data model for an existing OSEE database:

  1. Navigate to the Project Explorer (Resource Perspective) or the Package Explorer (Java Perspective)
  2. Select a file or folder containing the OSEE data model
  3. Right click and select Import...
  4. Under the OSEE category, select OSEE Types

To automatically import the data model during database initialization use the extension point org.eclipse.osee.framework.skynet.core.OseeTypes

Configure a Development Runtime

Using an SVN client such as <a href="http://www.eclipse.org/subversive/">Subversive</a>, check out into your Eclipse workspace all the projects from https://dev.eclipse.org/svnroot/technology/org.eclipse.osee/trunk/. When configuring this SVN repository leave the user name and password blank in order to get anonymous, read-only access.

  1. <a href="http://www.eclipse.org/osee/documentation/installation/postgresql_install.php">PostgreSQL Installation</a>
  2. Use the configuration \org.eclipse.osee.framework.resource.management\OseeApplicationServer [postgresql localhost].launch to run an OSEE application server
  3. Use the configuration \osee.runConfigs.db.postgres\DB Config [postgresql localhost].launch to run an OSEE database initialization
  4. Use the configuration \osee.runConfigs.db.postgres\OSEE product [postgresql localhost].launch to run a local OSEE client

Back to the top