loading table of contents...

8.3.6.2. JMX

To manage the demo data generator via JMX for a specific tenant, navigate to the corresponding operation for the tenant and invoke it. The tenants are located in folder com.coremedia.DemoDataGeneratorManager.blueprint. If the JMX MBean is not available for a tenant, start the demo data generator via HTTP with the tenant parameter. The tenant will then be registered and the MBean becomes available.

The following operations are available via JMX:

NameDescription
startStarts the demo data generator
stopStops the demo data generator
restartRestarts the demo data generator
getStatusGets the status of the demo data generator
resetAllSettingsResets all settings to default values

Table 8.7. Elastic Social Demo Data Generator operations


The following configuration is available via JMX:

Interval
Description Defines the frequency of demo data generation in seconds. A comment will be generated each interval.
Default 30
AnonymousCommentRate
Description Defines the anonymous comment rate of newly created comments
Default 2
AnonymousLikeRate
Description Defines the anonymous like rate of newly created likes
Default 4
AnonymousRatingRate
Description Defines the anonymous rating rate of newly created ratings
Default 4
AnonymousUserRate
Description Defines the anonymous user rate of newly created users
Default 10
CommentComplaintRate
Description Defines the comment complaint rate
Default 50
CommentReplyRate
Description Defines the rate for comment replies
Default 5
CommentWithAttachmentsRate
Description Defines the rate for comment attachments of newly created comments
Default 5
LikeRate
Description Defines the new like rate
Default 2
NewUserRate
Description Defines the new user rate
Default 5
RatingRate
Description Defines the rating rate
Default 2
UserChangesRate
Description Defines the rate for changing users
Default 7
UserComplaintRate
Description Defines the rate of complaints about a user
Default 49
UserModerationType
Description Defines the moderation type used for user creation (PRE_MODERATION, POST_MODERATION or NONE)
Default POST_MODERATION

Table 8.8.  Elastic Social Demo Data Generator configuration


Statistics are provided about the generated content and also about the number of available targets for comments that are available in your content repository. The following table only includes statistics which require parameters. For all other statistic data like the number of created comments just take a look at the available attributes when using the JConsole.

NameDescription
getNumberOfTeasablesForCommenting(String moderationType)Returns the number of teasables with commenting enabled with the given moderation type or of all teasables if no moderation type is given (PRE_MODERATION, POST_MODERATION or NONE)
getNumberOfTeasablesForAnonymousCommenting(String moderationType)Returns the number of teasables with commenting enabled for anonymous users with the given moderation type or of all teasables if no moderation type is given (PRE_MODERATION, POST_MODERATION or NONE)

Table 8.9. Elastic Social Demo Data Generator statistics