+

Search Tips | Advanced Search

For up-to-date product documentation, see the IBM MobileFirst Foundation Developer Center.


Ant tasks for installation of MobileFirst Analytics

The installanalytics, updateanalytics, and <uninstallanalytics> Ant tasks are provided for the installation of MobileFirst Analytics.


About these Ant tasks

The purpose of these Ant Tasks is to configure the MobileFirst Analytics console and the MobileFirst Analytics service with the appropriate storage for the data on an application server.

The task installs MobileFirst Analytics nodes that act as a master and data. For more information, see Cluster management and Elasticsearch.


Task effects


Attributes and elements

The <installanalytics>, <updateanalytics>, and <uninstallanalytics> tasks have the following attributes:

Table 1. Attributes for the <installanalytics>, <updateanalytics>, and <uninstallanalytics> Ant tasks
Attribute Description Required Default
serviceWar The WAR file for the MobileFirst Analytics Service No The analytics-service.war file is in the directory Analytics.

The <installanalytics>, <updateanalytics>, and <uninstallanalytics> tasks support the following elements:

Table 2. Inner elements for the <installanalytics>, <updateanalytics>, and <uninstallanalytics> Ant tasks
Attribute Description Required Default
console MobileFirst Analytics Yes 1
user The user to be mapped to a security role. No 0..
storage The type of storage. Yes 1
applicationserver The application server. Yes 1
property Properties. No 0..


To specify a MobileFirst Analytics Console

The <console> element collects information to customize the installation of the MobileFirst Analytics Console. This element has the following attributes:

Table 3. Attributes of the <console> element
Attribute Description Required Default
warfile The console WAR file No The analytics-ui.war file is in the Analytics directory.
shortcutsdir The directory where you place the shortcuts. No None

The <console> element supports the following nested element:

Table 4. Inner element of the <console> element
Element Description Count
property Properties 0..
With this element, we can define your own JNDI properties.

The <property> element has the following attributes:

Table 5. Attributes of the <property> element
Attribute Description Required Default
name The name of the property. Yes None
value The value of the property. Yes None


To specify a user and a security role

The <user> element collects the parameters about a user to include in a certain security role for an application.

Table 6. Attributes of the <user> element
Attribute Description Required Default
role A valid security role for the application. Yes None
name The user name. Yes None
password The password, if the user must be created. No None

After you defined users by using the <user> element, we can map them to any of the following roles for authentication in the MobileFirst Operations Console:


To specify a type of storage for MobileFirst Analytics

The <storage> element indicates which underlying type of storage MobileFirst Analytics uses to store the information and data it collects.

It supports the following element:

Table 7. Inner element of the <storage> element
Element Description Count
elasticsearch ElasticSearch cluster 1

The <elasticsearch> element collects the parameters about an ElasticSearch cluster.

Table 8. Attributes of the <elasticsearch> element
Attribute Description Required Default
clusterName The ElasticSearch cluster name. No worklight
nodeName The ElasticSearch node name. This name must be unique in an ElasticSearch cluster. No worklightNode_<random number>
mastersList A comma-delimited string that contains the host name and ports of the ElasticSearch master nodes in the ElasticSearch cluster (For example: hostname1:transport-port1,hostname2:transport-port2) No Depends on the topology
dataPath The ElasticSearch cluster location. No Depends on the application server
shards The number of shards that the ElasticSearch cluster creates. This value can be set only by the master nodes that are created in the ElasticSearch cluster. No 5
replicasPerShard The number of replicas for each shard in the ElasticSearch cluster. This value can be set only by the master nodes that are created in the ElasticSearch cluster. No 1
transportPort The port used for node-to-node communication in the ElasticSearch cluster. No 9600


To specify an application server

Use the <applicationserver> element to define the parameters that depend on the underlying application server. The <applicationserver> element supports the following elements.

Note: The attributes and inner elements of this element are described in tables 6 through 12 of Ant tasks for installation of MobileFirst runtime environments.

Table 9. Inner elements of the <applicationserver> element
Element Description Count
websphereapplicationserver or was The parameters for WebSphere Application Server. 0..1
tomcat The parameters for Apache Tomcat. 0..1


To specify custom JNDI properties

The <installanalytics>, <updateanalytics>, and <uninstallanalytics> elements support the following element:

Table 10. Inner element of the <property> element
Element Description Count
property Properties 0..
By using this element, we can define your own JNDI properties.

This element has the following attributes:

Table 11. Attributes of the <property> element
Attribute Description Required Default
name The name of the property. Yes None
value The value of the property. Yes None

Parent topic: Installation reference