@Override public String getName() { return list.getName(); }
private static void printIList(IList<?> list) { StringBuilder sb = new StringBuilder(); System.out.println(list.getName() + ':'); list.forEach(e -> sb.append(e).append('\n')); System.out.println(sb); } }
private static void printIList(IList<?> list) { StringBuilder sb = new StringBuilder(); System.out.println(list.getName() + ':'); list.forEach(e -> sb.append(e).append('\n')); System.out.println(sb); } }
/** * A helper method to build a KeyValueSource implementation based on the specified {@link IList}.<br/> * The key returned by this KeyValueSource implementation is <b>ALWAYS</b> the name of the list itself, * whereas the value are the entries of the list, one by one. This implementation behaves like a MultiMap * with a single key but multiple values. * * @param list list to build a KeyValueSource implementation * @param <V> value type of the list * @return KeyValueSource implementation based on the specified list */ public static <V> KeyValueSource<String, V> fromList(IList<? extends V> list) { return new ListKeyValueSource<V>(list.getName()); }
protected ListMBean(IList<?> managedObject, ManagementService service) { super(managedObject, service); this.objectName = service.createObjectName("IList", managedObject.getName()); }
/** * A helper method to build a KeyValueSource implementation based on the specified {@link IList}.<br/> * The key returned by this KeyValueSource implementation is <b>ALWAYS</b> the name of the list itself, * whereas the value are the entries of the list, one by one. This implementation behaves like a MultiMap * with a single key but multiple values. * * @param list list to build a KeyValueSource implementation * @param <V> value type of the list * @return KeyValueSource implementation based on the specified list */ public static <V> KeyValueSource<String, V> fromList(IList<? extends V> list) { return new ListKeyValueSource<V>(list.getName()); }
protected ListMBean(IList<?> managedObject, ManagementService service) { super(managedObject, service); this.objectName = service.createObjectName("IList", managedObject.getName()); }
/** * Returns a sink that adds the items it receives to a Hazelcast {@code * IList} with the specified name. * <p> * <strong>NOTE:</strong> Jet only remembers the name of the list you * supply and acquires a list with that name on the local cluster. If you * supply a list instance from another cluster, no error will be thrown to * indicate this. * <p> * No state is saved to snapshot for this sink. After the job is restarted, * the items will likely be duplicated, providing an <i>at-least-once</i> * guarantee. * <p> * The default local parallelism for this sink is 1. */ @Nonnull public static <T> Sink<T> list(@Nonnull IList<? super T> list) { return list(list.getName()); }
/** * Returns a source that emits items retrieved from a Hazelcast {@code * IList}. All elements are emitted on a single member — the one * where the entire list is stored by the IMDG. * <p> * If the {@code IList} is modified while being read, the source may miss * and/or duplicate some entries. * <p> * <strong>NOTE:</strong> Jet only remembers the name of the list you * supply and acquires a list with that name on the local cluster. If you * supply a list instance from another cluster, no error will be thrown to * indicate this. * <p> * The source does not save any state to snapshot. If the job is restarted, * it will re-emit all entries. * <p> * The default local parallelism for this processor is 1. */ @Nonnull public static <T> BatchSource<T> list(@Nonnull IList<? extends T> list) { return list(list.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(); } }