Package org.jboss.cache.marshall

Examples of org.jboss.cache.marshall.NodeDataExceptionMarker


   private void verifyMarker(Object object)
   {
      if (object instanceof NodeDataExceptionMarker)
      {
         NodeDataExceptionMarker e = (NodeDataExceptionMarker)object;
         throw new CacheException("Error in state transfer stream", e.getCause());
      }
      else if (! (object instanceof NodeDataMarker))
      {
         throw new CacheException("Invalid object unmarshalled");
      }
View Full Code Here


         // and return the next NodeData that's a child of our parent
         nd = integrateStateTransferChildren(fqn, offset, nodeDataIterator);
      }
      if (nd != null && nd.isExceptionMarker())
      {
         NodeDataExceptionMarker ndem = (NodeDataExceptionMarker) nd;
         throw new CacheException("State provider node " + ndem.getCacheNodeIdentity()
               + " threw exception during loadState", ndem.getCause());
      }
      return null;
   }
View Full Code Here

         if (trace) log.trace("Empty persistent stream?");
         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 (Object aNodeData : nodeData)
      {
         NodeData nd = (NodeData) aNodeData;
         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());
         }
      }
      storeStateHelper(subtree, nodeData, moveToBuddy);
   }
View Full Code Here

         // and return the next NodeData that's a child of our parent
         nd = integrateStateTransferChildren(target, offset, nodeDataIterator);
      }
      if (nd != null && nd.isExceptionMarker())
      {
         NodeDataExceptionMarker ndem = (NodeDataExceptionMarker) nd;
         throw new CacheException("State provider node " + ndem.getCacheNodeIdentity()
               + " threw exception during loadState", ndem.getCause());
      }
      return null;
   }
View Full Code Here

         }
         delimitStream(out);
      }
      catch (Exception e)
      {
         cache.getMarshaller().objectToObjectStream(new NodeDataExceptionMarker(e, cache.getLocalAddress()), out);
         throw e;
      }
   }
View Full Code Here

         }
         delimitStream(out);
      }
      catch (Exception e)
      {
         cache.getMarshaller().objectToObjectStream(new NodeDataExceptionMarker(e, cache.getLocalAddress()), out);
         throw e;
      }
   }
View Full Code Here

         // and return the next NodeData that's a child of our parent
         nd = integrateStateTransferChildren(fqn, offset, nodeDataIterator);
      }
      if (nd != null && nd.isExceptionMarker())
      {
         NodeDataExceptionMarker ndem = (NodeDataExceptionMarker) nd;
         throw new CacheException("State provider node " + ndem.getCacheNodeIdentity()
               + " threw exception during loadState", ndem.getCause());
      }
      return null;
   }
View Full Code Here

         // and return the next NodeData that's a child of our parent
         nd = integrateStateTransferChildren(target, offset, nodeDataIterator);
      }
      if (nd != null && nd.isExceptionMarker())
      {
         NodeDataExceptionMarker ndem = (NodeDataExceptionMarker) nd;
         throw new CacheException("State provider node " + ndem.getCacheNodeIdentity()
               + " threw exception during loadState", ndem.getCause());
      }
      return null;
   }
View Full Code Here

         }

      }
      catch (Exception e)
      {
         cache.getMarshaller().objectToObjectStream(new NodeDataExceptionMarker(e, cache.getLocalAddress()), out);
         throw e;
      }
      finally
      {
         if (activated)
View Full Code Here

         }
         delimitStream(out);
      }
      catch (Exception e)
      {
         cache.getMarshaller().objectToObjectStream(new NodeDataExceptionMarker(e, cache.getLocalAddress()), out);
         throw e;
      }
   }
View Full Code Here

TOP

Related Classes of org.jboss.cache.marshall.NodeDataExceptionMarker

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.