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

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