Description Syntax Example setAnalyticsCollectorConnection

10-10 Oracle Fusion Middleware WebLogic Scripting Tool Command Reference The following example creates a connection named MyAnalyticsCollector for a WebCenter application named webcenter. Events are sent to a clustered Analytics Collector in multicast mode wls:weblogicserverConfigcreateAnalyticsCollectorConnectionappName=webcenter, connectionName=MyAnalyticsCollector, isUnicast=0, clusterName=collector-cluster, ccollectorPort=31314, isEnabled=1, timeout=30, default=1

10.3.2 setAnalyticsCollectorConnection

Module: Oracle WebCenter Use with WLST: Online

10.3.2.1 Description

Edits an existing Analytics Collector connection for a named WebCenter application. Events raised in WebCenter applications using OpenUsage APIs can be sent to an Analytics Collector for use by the Analytics and Activity Graph services. While you can register multiple Analytics Collector connections for a WebCenter application, only one Analytics Collector connection is used - the default or active connection.

10.3.2.2 Syntax

setAnalyticsCollectorConnectionappName, name, [isUnicast, collectorHost, clusterName, collectorPort, isEnabled, timeout, default, server, applicationVersion] Argument Definition appName Name of the WebCenter application in which to perform this operation. For WebCenter Spaces, the name is always webcenter. name Connection name. The name must be unique across all connection types within the WebCenter application. isUnicast Optional. Specifies whether events are sent to a clustered Analytics Collector in multicast mode or whether a single Analytics Collector using unicast communication is required. collectorHost Optional. Host name where the Analytics Collector is running. The default value is localhost. Only required for unicast communication, that is, where isUnicast=1. clusterName Optional. Name of the cluster where a clustered Analytics Collector is running. Only required for multicast communication, that is, where isUnicast=0. collectorPort Optional. Port on which the Analytics Collector listens for events. The default value is 31314. isEnabled Optional. Specifies whether to send analytics events raised using OpenUsage APIs to the Analytics Collector. Valid values 1 true and 0 false. The default value is false. Analytics events are sent to the Analytics Collector when isEnabled=1 and default=1. Oracle WebCenter Custom WLST Commands 10-11

10.3.2.3 Example

The following example updates host and port details for an existing Analytics Collector connection named MyAnalyticsCollector. On this connection, events are sent to a single Analytics Collector in unicast mode: wls:weblogicserverConfigsetAnalyticsCollectorConnectionappName=webcenter, connectionName=MyAnalyticsCollector, collectorHost=myhost.com, collectorPort=31314 The following example updates cluster, port, and timeout details for an existing Analytics Collector connection named MyAnalyticsCollector. On this connection, events are sent to a clustered Analytics Collector in multicast mode: wls:weblogicserverConfigsetAnalyticsCollectorConnectionappName=webcenter, connectionName=MyAnalyticsCollector, clusterName=collector-cluster, collectorPort=31314, timeout=60

10.3.3 listAnalyticsCollectorConnections