Skip to content

Commit

Permalink
Fixes for jmx attributes descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
jmarkos authored and pruivo committed Jan 9, 2014
1 parent 11bea3d commit a28caf6
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 10 deletions.
6 changes: 3 additions & 3 deletions core/src/main/java/org/infinispan/CacheImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -797,11 +797,11 @@ public String getCacheName() {
}

/**
* Returns the cache configuration as XML string.
* Returns the version of Infinispan.
*/
@ManagedAttribute(
description = "Returns the cache configuration as XML string",
displayName = "Cache configuration (XML)",
description = "Returns the version of Infinispan",
displayName = "Infinispan version",
dataType = DataType.TRAIT,
displayType = DisplayType.SUMMARY
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -429,8 +429,8 @@ public void resetStatistics() {
}

@ManagedAttribute(
description = "Returns a collection of cache loader types which configured and enabled",
displayName = "Returns a collection of cache loader types which configured and enabled",
description = "Returns a collection of cache loader types which are configured and enabled",
displayName = "Returns a collection of cache loader types which are configured and enabled",
displayType = DisplayType.DETAIL)
/**
* This method returns a collection of cache loader types (fully qualified class names) that are configured and enabled.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ public void resetStatistics() {

@ManagedAttribute(
displayName = "Statistics enabled",
description = "Enables or disables the gathering of statistics by this component",
dataType = DataType.TRAIT,
writable = true
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -731,9 +731,9 @@ public String getRunningCacheCount() {
return String.valueOf(running);
}

@ManagedAttribute(description = "Infinispan version.", displayName = "Infinispan version", displayType = DisplayType.SUMMARY, dataType = DataType.TRAIT)
@ManagedAttribute(description = "Returns the version of Infinispan", displayName = "Infinispan version", displayType = DisplayType.SUMMARY, dataType = DataType.TRAIT)
public String getVersion() {
return Version.printVersion();
return Version.VERSION;
}

@ManagedAttribute(description = "The name of this cache manager", displayName = "Cache manager name", displayType = DisplayType.SUMMARY, dataType = DataType.TRAIT)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ public long getReplicationFailures() {
return replicationFailures.get();
}

@ManagedAttribute(description = "Statistics enabled", displayName = "Statistics enabled", dataType = DataType.TRAIT, writable = true)
@ManagedAttribute(description = "Enables or disables the gathering of statistics by this component", displayName = "Statistics enabled", dataType = DataType.TRAIT, writable = true)
public boolean isStatisticsEnabled() {
return statisticsEnabled;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,12 +164,12 @@ public void resetStatistics() {
cannotRunDld.set(0);
}

@ManagedAttribute(description = "Number of remote transaction that were roll backed due to deadlocks", displayName = "Number of remote transaction that were roll backed due to deadlocks", measurementType = MeasurementType.TRENDSUP)
@ManagedAttribute(description = "Number of remote transactions that were rollbacked due to deadlocks", displayName = "Number of remote transaction that were roll backed due to deadlocks", measurementType = MeasurementType.TRENDSUP)
public long getDetectedRemoteDeadlocks() {
return remoteTxStopped.get();
}

@ManagedAttribute (description = "Number of local transaction that were roll backed due to deadlocks", displayName = "Number of local transaction that were roll backed due to deadlocks", measurementType = MeasurementType.TRENDSUP)
@ManagedAttribute (description = "Number of local transactions that were rollbacked due to deadlocks", displayName = "Number of local transaction that were roll backed due to deadlocks", measurementType = MeasurementType.TRENDSUP)
public long getDetectedLocalDeadlocks() {
return localTxStopped.get();
}
Expand Down

0 comments on commit a28caf6

Please sign in to comment.