<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>instantOLAP &#187; Console</title>
	<atom:link href="http://www.instantolap.com/tag/console/feed" rel="self" type="application/rss+xml" />
	<link>http://www.instantolap.com</link>
	<description>Business intelligence for the Java Platform</description>
	<lastBuildDate>Thu, 12 Aug 2010 18:53:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Remote control your OLAP server</title>
		<link>http://www.instantolap.com/howtos/remote-control-olap-server#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</link>
		<comments>http://www.instantolap.com/howtos/remote-control-olap-server#comments</comments>
		<pubDate>Mon, 24 Aug 2009 17:11:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[HowTos]]></category>
		<category><![CDATA[Console]]></category>
		<category><![CDATA[OLAP]]></category>
		<category><![CDATA[Remote control]]></category>

		<guid isPermaLink="false">http://www.instantolap.com/?p=209</guid>
		<description><![CDATA[The instantOLAP console allows to remote control you OLAP server, e.g. to rebuild a dimension or model after the source database changed. Learn about how to use the console and its commands.]]></description>
			<content:encoded><![CDATA[<p>There is an almost unknown tool within every instantOLAP installation, the <strong>instantOLAP Console</strong>, which allows to remote-control your instantOLAP server and to start, stop or rebuild models, to rebuild single dimensions or cubes or to perform a number of other operations.</p>
<p>The tool is very useful whenever instantOLAP loads its data from a data-warehouse and you want to rebuild certain models, dimensions or cubes after the ETL tool rebuild the warehouse or added new data to it.</p>
<p>This article describes, how to use the tool from batch-files or other Java applications (most ETL tools can call native Java commands) and which operations are available.</p>
<p><span id="more-209"></span></p>
<div class='toc wptoc'>
<h2>Contents</h2>
<ol class='toc-odd level-1'>
	<li>
		<a href="#Starting_the_console_interactive_mode">Starting the console (interactive mode)</a>
	</li>
	<li>
		<a href="#Commands">Commands</a>
		<ol class='toc-even level-2'>
			<li>
				<a href="#BUILDDIMENSION_ltmodelgt_ltdimensiongt">BUILDDIMENSION &lt;model&gt; &lt;dimension&gt;</a>
			</li>
			<li>
				<a href="#BUILDDIMENSIONS_ltmodelgt">BUILDDIMENSIONS &lt;model&gt;</a>
			</li>
			<li>
				<a href="#BUILDSTORE_ltmodelgt_ltstoregt">BUILDSTORE &lt;model&gt; &lt;store&gt;</a>
			</li>
			<li>
				<a href="#BUILDSTORES_ltmodelgt">BUILDSTORES &lt;model&gt;</a>
			</li>
			<li>
				<a href="#CLEARCACHE_ltcachegt">CLEARCACHE &lt;cache&gt;</a>
			</li>
			<li>
				<a href="#CLEARCACHES">CLEARCACHES</a>
			</li>
			<li>
				<a href="#CLEARSTORE_ltmodelgt_ltstoregt">CLEARSTORE &lt;model&gt; &lt;store&gt;</a>
			</li>
			<li>
				<a href="#CLEARSTORES_ltmodelgt">CLEARSTORES &lt;model&gt;</a>
			</li>
			<li>
				<a href="#LISTDIMENSIONS_ltmodelgt">LISTDIMENSIONS &lt;model&gt;</a>
			</li>
			<li>
				<a href="#LISTMODELS">LISTMODELS</a>
			</li>
			<li>
				<a href="#MODELSTATE_ltmodelgt">MODELSTATE &lt;model&gt;</a>
			</li>
			<li>
				<a href="#QUIT">QUIT</a>
			</li>
			<li>
				<a href="#STARTSYNC_ltmodelgt_lttimeoutgt">STARTSYNC &lt;model&gt; &lt;timeout&gt;</a>
			</li>
			<li>
				<a href="#STOP_ltmodelgt">STOP &lt;model&gt;</a>
			</li>
			<li>
				<a href="#START_ltmodelgt">START &lt;model&gt;</a>
			</li>
		</ol>
	<li>
		<a href="#Using_the_console_in_batch_mode">Using the console in batch mode</a>
	</li>
</ol>
</ol>
</div>
<div class='wptoc-end'>&nbsp;</div>
<p>The console is delivered as a simple Java archive (jar file) and is located in the folder &lt;instantOLAP&gt;/tools/console. You can use the archive from this location or copy it to another computer &#8211; no other resource (except a local Java installation) is needed to execute the application.</p>
<span id="Starting_the_console_interactive_mode"><h2>Starting the console (interactive mode)</h2></span>
<p>To start the console in the interactive mode, use the command:</p>
<pre>java -jar iolapConsole.jar &lt;server-url&gt; &lt;user&gt; &lt;password&gt;</pre>
<p>where &lt;server-url&gt; is the complete url to the backend-service of your instantOLAP-server and &lt;user&gt; and &lt;password&gt; are the credentials for your administrator account. E.g. the command for a local installation on port 8080 and with the administrator account would be:</p>
<pre>java -jar iolapConsole.jar http://localhost:8080/iolapWS admin admin</pre>
<p>If the jar file is not located in the current folder, you can also type its whole path (relative or absolute). After you logged successfully into the server, you will see the following welcome message:</p>
<pre>instantOLAP console
(c) 2006-2009 Thomas Behrends Softwareentwicklung e.K.
Connecting server http://localhost:8080/iolapWS...
ok
&gt;</pre>
<p>Now you can use one of following commands to control the server:</p>
<span id="Commands"><h2>Commands</h2></span>
<span id="BUILDDIMENSION_ltmodelgt_ltdimensiongt"><h3>BUILDDIMENSION &lt;model&gt; &lt;dimension&gt;</h3></span>
<p>This command rebuilds a single dimension of a model (and all dimensions being dependend on this). The command expects the model name and dimension name as argument.</p>
<p>Example:</p>
<pre>&gt; BUILDDIMENSION demo/demo Product
Building dimension Product of model demo/demo...</pre>
<span id="BUILDDIMENSIONS_ltmodelgt"><h3>BUILDDIMENSIONS &lt;model&gt;</h3></span>
<p>This command rebuilds all dimensions of the specified model. The only argument the command expects is the name of the model.</p>
<p>Example:</p>
<pre>&gt; BUILDDIMENSIONS demo/demo
Building dimensions of model demo/demo...</pre>
<span id="BUILDSTORE_ltmodelgt_ltstoregt"><h3>BUILDSTORE &lt;model&gt; &lt;store&gt;</h3></span>
<p>The command BUILDSTORE rebuilds a single store of the specified model, the store name has to be passed as second argument.</p>
<p>Example:</p>
<pre>&gt; BUILDSTORE demo/demo store1
Building store store1 of model demo/demo...</pre>
<span id="BUILDSTORES_ltmodelgt"><h3>BUILDSTORES &lt;model&gt;</h3></span>
<p>Rebuilds all stores of the specified model.</p>
<p>Example:</p>
<pre>&gt; BUILDSTORES demo/demo
Building stores of model demo/demo...</pre>
<span id="CLEARCACHE_ltcachegt"><h3>CLEARCACHE &lt;cache&gt;</h3></span>
<p>Use the command CLEARCACHE to empty a single cache of the model. After the execution, the cache still exists but contains no entries.</p>
<p>Example:</p>
<pre>&gt; CLEARCACHE demo/demo cache1
Clearing cache cache1 of model demo/demo...</pre>
<span id="CLEARCACHES"><h3>CLEARCACHES</h3></span>
<p>This command clear all caches of the specified model.</p>
<p>Example:</p>
<pre>&gt; CLEARCACHES demo/demo
Clearing caches of model demo/demo...</pre>
<span id="CLEARSTORE_ltmodelgt_ltstoregt"><h3>CLEARSTORE &lt;model&gt; &lt;store&gt;</h3></span>
<p>Clears a single store of the model and brings it into the &#8220;offline&#8221; state. Dependend on the configuration settings, the model will continue using the original adhoc version of the store, otherwise the system will immediatley start to rebuild the store again.</p>
<p>Example:</p>
<pre>&gt; CLEARSTORE demo/demo store1
Clearing store store1 of model demo/demo...</pre>
<span id="CLEARSTORES_ltmodelgt"><h3>CLEARSTORES &lt;model&gt;</h3></span>
<p>This command clears all stores of the model. Like in the CLEARSTORE command, the system will immediatley rebuild all stores dependend on the configuration settings.</p>
<p>Example:</p>
<pre>&gt; CLEARSTORES demo/demo
Clearing stores of model demo/demo...</pre>
<span id="LISTDIMENSIONS_ltmodelgt"><h3>LISTDIMENSIONS &lt;model&gt;</h3></span>
<p>This command returns a list of all dimensions of the specified model.</p>
<p>Example:</p>
<pre>&gt; LISTDIMENSIONS demo/demo
Agency
Anim
Campaigns
Manufacturer
Product
Time</pre>
<span id="LISTMODELS"><h3>LISTMODELS</h3></span>
<p>Returns a list of all models on your server, including the active and inactive ones. For each model, the current state is append as text. The following states are possible:</p>
<ul>
<li>ONLINE: The model is started and ready</li>
<li>BUILD: The model is currently starting</li>
<li>CLOSED: The model is currently not started</li>
<li>CLOSING: The model is currently shutting down</li>
<li>SYNC: The model is started and currently synchronizing its dimensions and / or cubes</li>
<li>ERROR: The model is not started because an error ocurred while starting it</li>
</ul>
<p>Example:</p>
<pre>&gt; LISTMODELS
demo/demo (ONLINE)
eventlog/eventlog (ONLINE)</pre>
<span id="MODELSTATE_ltmodelgt"><h3>MODELSTATE &lt;model&gt;</h3></span>
<p>This function returns the state of a specific model. The state is returned as number in this functions, the following states are possible:</p>
<ul>
<li>0 = CLOSED</li>
<li>1 = BUILD</li>
<li>2 = ONLINE</li>
<li>3 = SYNC</li>
<li>4 = ERROR</li>
<li>5 = CLOSING</li>
</ul>
<p>Example:</p>
<pre>&gt; MODELSTATE demo/demo
Request model-state for demo/demo...
State = 2</pre>
<span id="QUIT"><h3>QUIT</h3></span>
<p>This command stops the console.</p>
<span id="STARTSYNC_ltmodelgt_lttimeoutgt"><h3>STARTSYNC &lt;model&gt; &lt;timeout&gt;</h3></span>
<p>This function starts the synchronize process for a model, in which it is checking its cubes and dimensions if they are outaged. You must pass the timeout for the synchronize process in ms as second argument. This function is only useful if you want to synchronize the model immediatly, because the system synchronizes all its online models each minute.</p>
<p>Example:</p>
<pre>&gt; STARTSYNC demo/demo 1000
Starting model demo/demo synchronize...</pre>
<span id="STOP_ltmodelgt"><h3>STOP &lt;model&gt;</h3></span>
<p>This command shuts down the specified model.</p>
<p>Example:</p>
<pre>&gt; STOP demo/demo
Stopping model demo/demo...
ok</pre>
<span id="START_ltmodelgt"><h3>START &lt;model&gt;</h3></span>
<p>This command starts the specified model.</p>
<p>Example:</p>
<pre>&gt;START demo/demo
Starting model demo/demo asynchron...</pre>
<span id="Using_the_console_in_batch_mode"><h2>Using the console in batch mode</h2></span>
<p>The batch mode can be used to call the console from external batch files and to execute commands without user interaction. To execute a command, just add it and its arguments behind the standard arguments of the console, the syntax for the batch mode is:</p>
<pre>java -jar iolapConsole.jar &lt;server&gt; &lt;user&gt; &lt;pwd&gt; &lt;command&gt; [&lt;arg1&gt; [&lt;arg2&gt; [...] ] ]</pre>
<p>If you call the console in batch mode, it will immediatley execute the passed command and then exit. E.g. the following line</p>
<pre>java -jar iolapConsole.jar http://localost:8080/iolapWS admin admin START demo/demo</pre>
<p>would start the model &#8220;demo/demo&#8221; on a local server running on port 8080 and then return.</p>
<p>Not that all commands, also in the interactive mode, only fork the requested operation on the server and then return without waiting for the operation to be finished. However, if you send a number of commands for the same model to server, they will be queued and executed in sequential order.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.instantolap.com/howtos/remote-control-olap-server/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk (enhanced) (user agent is rejected)

Served from: www.instantolap.com @ 2010-09-06 22:35:41 -->