<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Configuration</title><link>https://sourceforge.net/p/dboutputter4rs/wiki/Configuration/</link><description>Recent changes to Configuration</description><atom:link href="https://sourceforge.net/p/dboutputter4rs/wiki/Configuration/feed" rel="self"/><language>en</language><lastBuildDate>Thu, 24 Jan 2013 16:40:01 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/dboutputter4rs/wiki/Configuration/feed" rel="self" type="application/rss+xml"/><item><title>WikiPage Configuration modified by Holzhauer</title><link>https://sourceforge.net/p/dboutputter4rs/wiki/Configuration/</link><description>&lt;div class="markdown_content"&gt;&lt;h1 id="setting-up-a-database-outputter-action"&gt;Setting up a Database Outputter Action&lt;/h1&gt;
&lt;p&gt;A Database outputter action is configured similar to a file outputter&lt;br /&gt;
action. After you configured one or more data sets, in the scenario&lt;br /&gt;
tree, right-click on “Outputters” and choose “Add DB Outputter”. The&lt;br /&gt;
wizard’s first step page (figure 1) appears:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Data Properties&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Name:&lt;/strong&gt; Choose an arbitrary name for the outputter action that&lt;br /&gt;
    itentifies the outputter in the sceanrio tree.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Data Set ID:&lt;/strong&gt; Use the drop-down menu to choose a previously&lt;br /&gt;
    configured data set.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Table Columns&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Add run ID:&lt;/strong&gt; This is important for batch runs. In case it is&lt;br /&gt;
    activated the plugin adds a column “runID” to each data row. The&lt;br /&gt;
    highest runID will be queried from the table and increased. In&lt;br /&gt;
    case of a new table it start with 1.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Run-Info Table Name: &lt;/strong&gt; Specify the name of the table that&lt;br /&gt;
    contains run information. This is used to assign unique run IDs.&lt;br /&gt;
    However, if there is another DB-Outputter used before in a&lt;br /&gt;
    particular run, the corresponding run-info table name is used.&lt;br /&gt;
    Furthermore, if there is an earlier call to that run-info table&lt;br /&gt;
    is used.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Move the columns that shall be stored in DB to the left.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Data Base Properties&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Table name:&lt;/strong&gt; Type in the name of the table the data shall be&lt;br /&gt;
    stored in. NOTE: If the table does not exist, the plugin tries&lt;br /&gt;
    to create a new table.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Caching Settings&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Specify the number of outputs that are cached before the data is&lt;br /&gt;
    sent to the database. This can save an enormous amount of time&lt;br /&gt;
    since a single database query could be very time consuming.&lt;br /&gt;
    Every object per tick counts. I.e., if the data set is defined&lt;br /&gt;
    to gather data from 5 agents every second tick, data will be&lt;br /&gt;
    passed to the database after 20 ticks when the number of outputs&lt;br /&gt;
    to cache is 50. Note that the interval of data storage is&lt;br /&gt;
    defined during the configuration of the data sets.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
  &lt;div class="grid-6" style="text-align: center;"&gt;
    &lt;a href="/p/dboutputter4rs/screenshot/RsDbOutput_Wizard_Step1.png"&gt;&lt;img alt="Screenshot thumbnail" src="/p/dboutputter4rs/screenshot/RsDbOutput_Wizard_Step1.png/thumb" /&gt;&lt;/a&gt;
    
    &lt;br /&gt;
    Wizard Step 1
    
  &lt;/div&gt;
  

  &lt;div class="grid-6" style="text-align: center;"&gt;
    &lt;a href="/p/dboutputter4rs/screenshot/RsDbOutput_Wizard_Step2.png"&gt;&lt;img alt="Screenshot thumbnail" src="/p/dboutputter4rs/screenshot/RsDbOutput_Wizard_Step2.png/thumb" /&gt;&lt;/a&gt;
    
    &lt;br /&gt;
    Wizard Step 2
    
  &lt;/div&gt;
  

&lt;div style="clear: both;"&gt;&amp;nbsp;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;The second wizard step (figure 2) deals with database&lt;br /&gt;
connection properties:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Database Connection Properties&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;URL: &lt;/strong&gt; State the URL of the database you want to connect to,&lt;br /&gt;
    e.g. . This text field features auto completion.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Driver: &lt;/strong&gt; Specify the JDBC driver class according to your&lt;br /&gt;
    database, for instance . Make sure that the driver is available&lt;br /&gt;
    at the classpath. The MySQL Connector-J library containing the&lt;br /&gt;
    driver may be downloaded from\
    &lt;a href="http://www.mysql.com/downloads/connector/j/"&gt;http://www.mysql.com/downloads/connector/j/&lt;/a&gt;. This text field&lt;br /&gt;
    features auto completion.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Database User Properties&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;User: &lt;/strong&gt; The username to connect with.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Password: &lt;/strong&gt; Specify the password to log on at the database if&lt;br /&gt;
    there are no security concerns since passwords are stored in&lt;br /&gt;
    clear text in the outputter deciption XML file within the model&lt;br /&gt;
    configuration folder (*.rs). If there are concers, uncheck to&lt;br /&gt;
    following box.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Store Login Details: &lt;/strong&gt; If it is checked username and password&lt;br /&gt;
    will be stored in clear text to the configuration file. If the&lt;br /&gt;
    box is unchecked, input fields for username and password are&lt;br /&gt;
    disabled. Furthermore, the ``Test DB Connection"-Button is&lt;br /&gt;
    diabled since it is not possible to check the connection without&lt;br /&gt;
    username and password. However, it is possible to check the box,&lt;br /&gt;
    fill in username and password, check the connection, and uncheck&lt;br /&gt;
    the box to prevent storing login data. When no username and&lt;br /&gt;
    password are given, the plugin prompts for login data when the&lt;br /&gt;
    simulations is initialised. Then, also a connection test is&lt;br /&gt;
    performed (figure 2).&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Test DB Connection-Button: &lt;/strong&gt; Press the button to test a&lt;br /&gt;
    connection to the MySQL-Database with given parameters. If the&lt;br /&gt;
    test fails, a dialog (figure 2) appears and gives&lt;br /&gt;
    the opportunity to correct the data. If the test passes, the&lt;br /&gt;
    newly entered data is passed to the second wizard step.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Holzhauer</dc:creator><pubDate>Thu, 24 Jan 2013 16:40:01 -0000</pubDate><guid>https://sourceforge.net5518d52c0544acdbd650b8fa9a4be4b989f7fb8f</guid></item></channel></rss>