private void handlePutCommand(InvocationContext ctx, Fqn fqn)
throws Exception
{
if (fqn != null && dataContainer.exists(fqn) && loader.exists(fqn))
{
InternalNode n = dataContainer.peekInternalNode(fqn, true);// don't load
// node not null and attributes have been loaded?
if (n != null && n.isDataLoaded())
{
// has children?
boolean result = childrenLoaded(n);
if (n.hasChildren() && result)
{
// children have been loaded, remove the node
addRemoveMod(ctx, cacheLoaderModifications, fqn, n.getData());
txActs++;
}
// doesn't have children, check the cache loader
else if (loaderNoChildren(fqn))
{
addRemoveMod(ctx, cacheLoaderModifications, fqn, n.getData());
txActs++;
}
}
}
}