// no persistent state sent across; return?
return;
}
if (objectFromStream instanceof NodeDataExceptionMarker)
{
NodeDataExceptionMarker ndem = (NodeDataExceptionMarker) objectFromStream;
throw new CacheException("State provider cacheloader at node " + ndem.getCacheNodeIdentity()
+ " threw exception during loadState (see Caused by)", ndem.getCause());
}
List nodeData = (List) objectFromStream;
//for (nd = (NodeData) in.readObject(); nd != null && !nd.isMarker(); nd = (NodeData) in.readObject())
for (Object o : nodeData)
{
NodeData nd = (NodeData) o;
if (nd.isMarker()) break;
if (nd.isExceptionMarker())
{
NodeDataExceptionMarker ndem = (NodeDataExceptionMarker) nd;
throw new CacheException("State provider cacheloader at node " + ndem.getCacheNodeIdentity()
+ " threw exception during loadState (see Caused by)", ndem.getCause());
}
if (moveToBuddy)
{
fqn = BuddyManager.getBackupFqn(subtree, nd.getFqn());