public void writeTo(DataOutput out) throws Exception { out.writeByte(type); Util.writeStreamable(digest, out); Util.writeStreamable(bind_addr, out); }
public void writeTo(DataOutput out) throws Exception { out.writeByte(type); Util.writeStreamable(digest, out); Util.writeStreamable(bind_addr, out); }
public void writeTo(DataOutput out) throws Exception { out.writeByte(type); Util.writeStreamable(digest, out); Util.writeStreamable(bind_addr, out); }
public void writeTo(DataOutput out) throws Exception { out.writeByte(type); Util.writeStreamable(my_digest, out); }
@Override public void writeTo(DataOutput out) throws Exception { Util.writeStreamable(new ByteBufferStreamable(buffer), out); }
public void writeTo(DataOutput out) throws Exception { out.writeByte(type.ordinal()); Bits.writeString(lock_name,out); out.writeInt(lock_id); Util.writeStreamable(owner, out); out.writeLong(timeout); out.writeBoolean(is_trylock); }
public void writeTo(DataOutput out) throws Exception { Bits.writeLong(num_gets, out); Bits.writeLong(num_puts, out); Bits.writeLong(time, out); Util.writeStreamable(avg_gets, out); Util.writeStreamable(avg_puts, out); }
public void writeTo(DataOutput out) throws Exception { out.writeByte(type.ordinal()); Bits.writeString(lock_name,out); out.writeInt(lock_id); Util.writeStreamable(owner, out); out.writeLong(timeout); out.writeBoolean(is_trylock); }
public void writeTo(DataOutput out) throws Exception { out.writeByte(type); Util.writeAddress(mbr, out); Util.writeStreamable(sock_addr, out); int size=mbrs != null? mbrs.size() : 0; out.writeInt(size); if(size > 0) { for(Address address: mbrs) { Util.writeAddress(address, out); } } }
public void writeTo(DataOutput out) throws Exception { out.writeByte(type); Util.writeAddress(mbr, out); Util.writeStreamable(sock_addr, out); int size=mbrs != null? mbrs.size() : 0; out.writeInt(size); if(size > 0) { for(Address address: mbrs) { Util.writeAddress(address, out); } } }
public void writeTo(DataOutput out) throws Exception { out.writeByte(type); Util.writeAddress(mbr, out); Util.writeStreamable(sock_addr, out); int size=mbrs != null? mbrs.size() : 0; out.writeInt(size); if(size > 0) { for(Address address: mbrs) { Util.writeAddress(address, out); } } }
public void writeTo(DataOutput out) throws Exception { Bits.writeLong(num_gets, out); Bits.writeLong(num_puts, out); Bits.writeLong(time, out); Util.writeStreamable(avg_gets, out); Util.writeStreamable(avg_puts, out); }
public void writeTo(DataOutput out) throws Exception { out.writeByte(type); switch(type) { case MSG: case XMIT_RSP: Bits.writeLong(seqno,out); break; case XMIT_REQ: Util.writeStreamable(range, out); Util.writeAddress(sender, out); break; } }
public void writeTo(DataOutput out) throws Exception { out.writeByte(type); switch(type) { case MSG: case XMIT_RSP: Bits.writeLong(seqno,out); break; case XMIT_REQ: Util.writeStreamable(range, out); Util.writeAddress(sender, out); break; } }
public void writeTo(DataOutput out) throws Exception { out.writeByte(type); switch(type) { case MSG: case XMIT_RSP: Bits.writeLong(seqno,out); break; case XMIT_REQ: Util.writeStreamable(range, out); Util.writeAddress(sender, out); break; } }
public static Buffer streamableToBuffer(Streamable obj) { final ByteArrayDataOutputStream out=new ByteArrayDataOutputStream(512); try { Util.writeStreamable(obj,out); return out.getBuffer(); } catch(Exception ex) { return null; } }
public static Buffer streamableToBuffer(Streamable obj) { final ByteArrayDataOutputStream out=new ByteArrayDataOutputStream(512); try { Util.writeStreamable(obj,out); return out.getBuffer(); } catch(Exception ex) { return null; } }
public static Buffer streamableToBuffer(Streamable obj) { final ByteArrayDataOutputStream out=new ByteArrayDataOutputStream(512); try { Util.writeStreamable(obj,out); return out.getBuffer(); } catch(Exception ex) { return null; } }
protected static Buffer marshal(final Collection<? extends Address> participants, final Digest digest) { final ByteArrayDataOutputStream out=new ByteArrayDataOutputStream(512); try { Util.writeAddresses(participants, out); Util.writeStreamable(digest,out); return out.getBuffer(); } catch(Exception ex) { return null; } }
protected static Buffer marshal(final Collection<? extends Address> participants, final Digest digest) { final ByteArrayDataOutputStream out=new ByteArrayDataOutputStream(512); try { Util.writeAddresses(participants, out); Util.writeStreamable(digest,out); return out.getBuffer(); } catch(Exception ex) { return null; } }