/** * A helper method to build a KeyValueSource implementation based on the specified {@link ISet}.<br/> * The key returned by this KeyValueSource implementation is <b>ALWAYS</b> the name of the set itself, * whereas the value are the entries of the set, one by one. This implementation behaves like a MultiMap * with a single key but multiple values. * * @param set set to build a KeyValueSource implementation * @param <V> value type of the set * @return KeyValueSource implementation based on the specified set */ public static <V> KeyValueSource<String, V> fromSet(ISet<? extends V> set) { return new SetKeyValueSource<V>(set.getName()); }
protected SetMBean(ISet managedObject, ManagementService service) { super(managedObject, service); this.objectName = service.createObjectName("ISet", managedObject.getName()); }
/** * A helper method to build a KeyValueSource implementation based on the specified {@link ISet}.<br/> * The key returned by this KeyValueSource implementation is <b>ALWAYS</b> the name of the set itself, * whereas the value are the entries of the set, one by one. This implementation behaves like a MultiMap * with a single key but multiple values. * * @param set set to build a KeyValueSource implementation * @param <V> value type of the set * @return KeyValueSource implementation based on the specified set */ public static <V> KeyValueSource<String, V> fromSet(ISet<? extends V> set) { return new SetKeyValueSource<V>(set.getName()); }
protected SetMBean(ISet managedObject, ManagementService service) { super(managedObject, service); this.objectName = service.createObjectName("ISet", managedObject.getName()); }
@ManagedAnnotation("name") @ManagedDescription("Name of the DistributedObject") public String getName() { return managedObject.getName(); }
@ManagedAnnotation("name") @ManagedDescription("Name of the DistributedObject") public String getName() { return managedObject.getName(); }