Пример #1
0
 /*
  * (non-Javadoc)
  *
  * @see org.jgroups.ReceiverAdapter#getState(java.io.OutputStream)
  */
 @Override
 public void getState(OutputStream output) throws Exception {
   // TODO Auto-generated method stub
   synchronized (state) {
     Util.objectToStream(state, new DataOutputStream(output));
   }
 }
 @Override
 public void getState(OutputStream ostream) throws Exception {
   Util.objectToStream(consistentHash, new DataOutputStream(ostream));
 }