@Override public String getName() { return cache.getName(); }
/** * A helper method to build a KeyValueSource implementation based on the specified {@link MultiMap} * * @param multiMap multiMap to build a KeyValueSource implementation * @param <K> key type of the multiMap * @param <V> value type of the multiMap * @return KeyValueSource implementation based on the specified multiMap */ public static <K, V> KeyValueSource<K, V> fromMultiMap(MultiMap<? super K, ? extends V> multiMap) { return new MultiMapKeyValueSource<K, V>(multiMap.getName()); }
/** * A helper method to build a KeyValueSource implementation based on the specified {@link MultiMap} * * @param multiMap multiMap to build a KeyValueSource implementation * @param <K> key type of the multiMap * @param <V> value type of the multiMap * @return KeyValueSource implementation based on the specified multiMap */ public static <K, V> KeyValueSource<K, V> fromMultiMap(MultiMap<? super K, ? extends V> multiMap) { return new MultiMapKeyValueSource<K, V>(multiMap.getName()); }
@ManagedAnnotation("name") public String getName() { return managedObject.getName(); }
@ManagedAnnotation("name") public String getName() { return managedObject.getName(); }
protected MultiMapMBean(final MultiMap managedObject, ManagementService service) { super(managedObject, service); this.objectName = service.createObjectName("MultiMap", managedObject.getName()); StatsSupplier<LocalMultiMapStats> localMultiMapStatsSupplier = new LocalMultiMapStatsSupplier(managedObject); this.localMultiMapStatsDelegate = new LocalStatsDelegate<LocalMultiMapStats>(localMultiMapStatsSupplier, updateIntervalSec); }
protected MultiMapMBean(final MultiMap managedObject, ManagementService service) { super(managedObject, service); this.objectName = service.createObjectName("MultiMap", managedObject.getName()); StatsSupplier<LocalMultiMapStats> localMultiMapStatsSupplier = new LocalMultiMapStatsSupplier(managedObject); this.localMultiMapStatsDelegate = new LocalStatsDelegate<LocalMultiMapStats>(localMultiMapStatsSupplier, updateIntervalSec); }
@ManagedAnnotation("config") @ManagedDescription("MultiMapConfig") public String getConfig() { return service.instance.getConfig().findMultiMapConfig(managedObject.getName()).toString(); } }
@ManagedAnnotation("config") @ManagedDescription("MultiMapConfig") public String getConfig() { return service.instance.getConfig().findMultiMapConfig(managedObject.getName()).toString(); } }