Пример #1
0
 /** {@inheritDoc} */
 @SuppressWarnings({"unchecked"})
 @Override
 public Map<GridRichNode, Collection<K>> mapKeysToNodes(Collection<? extends K> keys) {
   return Collections.singletonMap(ctx.localNode(), (Collection<K>) keys);
 }
Пример #2
0
  /** {@inheritDoc} */
  @Override
  public void setAttribute(Object key, Object val) throws GridException {
    A.notNull(key, "key");

    setAttributes(Collections.singletonMap(key, val));
  }