this.cache.put(name, attributes);
}
public void put(List modifications) throws Exception, RemoteException {
for(Iterator it=modifications.iterator(); it.hasNext();) {
Modification m=(Modification)it.next();
switch(m.getType()) {
case Modification.PUT_DATA:
case Modification.PUT_DATA_ERASE:
cache.put(m.getFqn(), m.getData());
break;
case Modification.PUT_KEY_VALUE:
cache.put(m.getFqn(), m.getKey(), m.getValue());
break;
case Modification.REMOVE_DATA:
cache.removeData(m.getFqn());
break;
case Modification.REMOVE_KEY_VALUE:
cache.remove(m.getFqn(), m.getKey());
break;
case Modification.REMOVE_NODE:
cache.remove(m.getFqn());
break;
default:
System.err.println("modification type " + m.getType() + " not known");
break;
}
}
}