public void writeLong(long value) { this.hdos.writeLong(value); }
public void writeLong(long value) { this.hdos.writeLong(value); }
this.overflowBuf.writeLong(v); return;
ensureCapacity(8); if (this.overflowBuf != null) { this.overflowBuf.writeLong(v); return;
private byte[] encryptId(long id, ServerConnection servConn) throws Exception { // deserialize this using handshake keys HeapDataOutputStream hdos = null; try { hdos = new HeapDataOutputStream(Version.CURRENT_GFE); hdos.writeLong(id); return ((HandShake)this.handshake).encryptBytes(hdos.toByteArray()); } finally { hdos.close(); } }
private byte[] encryptId(long id, ServerConnection servConn) throws Exception { // deserialize this using handshake keys HeapDataOutputStream hdos = null; try { hdos = new HeapDataOutputStream(Version.CURRENT); hdos.writeLong(id); return ((HandShake)this.handshake).encryptBytes(hdos.toByteArray()); } finally { hdos.close(); } }
@Override protected void sendMessage(Connection cnx) throws Exception { HeapDataOutputStream hdos = new HeapDataOutputStream(Version.CURRENT_GFE); byte[] secureBytes = null; hdos.writeLong(cnx.getConnectionID()); Object userId = UserAttributes.userAttributes.get().getServerToId().get(cnx.getServer()); if (userId == null) { // This will ensure that this op is retried on another server, unless // the retryCount is exhausted. Fix for Bug 41501 throw new ServerConnectivityException( "Connection error while authenticating user"); } hdos.writeLong((Long)userId); try { secureBytes = ((ConnectionImpl)cnx).getHandShake().encryptBytes( hdos.toByteArray()); } finally { hdos.close(); } getMessage().setSecurePart(secureBytes); getMessage().send(false); }
@Override protected void sendMessage(Connection cnx) throws Exception { HeapDataOutputStream hdos = new HeapDataOutputStream(Version.CURRENT); byte[] secureBytes = null; hdos.writeLong(cnx.getConnectionID()); Object userId = UserAttributes.userAttributes.get().getServerToId().get(cnx.getServer()); if (userId == null) { // This will ensure that this op is retried on another server, unless // the retryCount is exhausted. Fix for Bug 41501 throw new ServerConnectivityException( "Connection error while authenticating user"); } hdos.writeLong((Long)userId); try { secureBytes = ((ConnectionImpl)cnx).getHandShake().encryptBytes( hdos.toByteArray()); } finally { hdos.close(); } getMessage().setSecurePart(secureBytes); getMessage().send(false); }
HeapDataOutputStream hdos = new HeapDataOutputStream(Version.CURRENT_GFE); byte[] secureBytes = null; hdos.writeLong(cnx.getConnectionID()); if (this.securityProperties != null) { byte[] credentialBytes = null;
HeapDataOutputStream hdos = new HeapDataOutputStream(Version.CURRENT); byte[] secureBytes = null; hdos.writeLong(cnx.getConnectionID()); if (this.securityProperties != null) { byte[] credentialBytes = null;
bb.writeBoolean(flags.contains(DiskRegionFlag.HAS_REDUNDANT_COPY)); bb.writeBoolean(flags.contains(DiskRegionFlag.DEFER_RECOVERY)); bb.writeLong(drv.getUUID()); bb.writeUTF(drv.getPartitionName()); bb.writeInt(drv.getStartingBucketId());