public static void setBranchUID(XID xid, Uid uid) { if (xid == null || xid.formatID != FORMAT_ID) { return; } byte[] bqual = uid.getBytes(); System.arraycopy(bqual, 0, xid.data, xid.gtrid_length, Uid.UID_SIZE); }
public static void setBranchUID(XID xid, Uid uid) { if (xid == null || xid.formatID != FORMAT_ID) { return; } byte[] bqual = uid.getBytes(); System.arraycopy(bqual, 0, xid.data, xid.gtrid_length, Uid.UID_SIZE); }
public static void setBranchUID(XID xid, Uid uid) { if (xid == null || !FormatConstants.isNarayanaFormatId(xid.formatID)) { return; } byte[] bqual = uid.getBytes(); System.arraycopy(bqual, 0, xid.data, xid.gtrid_length, Uid.UID_SIZE); }
public static void setBranchUID(XID xid, Uid uid) { if (xid == null || !FormatConstants.isNarayanaFormatId(xid.formatID)) { return; } byte[] bqual = uid.getBytes(); System.arraycopy(bqual, 0, xid.data, xid.gtrid_length, Uid.UID_SIZE); }
public static void setBranchUID(XID xid, Uid uid) { if (xid == null || !FormatConstants.isNarayanaFormatId(xid.formatID)) { return; } byte[] bqual = uid.getBytes(); System.arraycopy(bqual, 0, xid.data, xid.gtrid_length, Uid.UID_SIZE); }
public static void setBranchUID(XID xid, Uid uid) { if (xid == null || !FormatConstants.isNarayanaFormatId(xid.formatID)) { return; } byte[] bqual = uid.getBytes(); System.arraycopy(bqual, 0, xid.data, xid.gtrid_length, Uid.UID_SIZE); }
public static String getNodeName(XID xid) { if(xid.formatID != FORMAT_ID) { return null; } // the node name follows the Uid with no separator, so the only // way to tell where it starts is to figure out how long the Uid is. Uid uid = getUid(xid); int uidLength = uid.getBytes().length; int nameLength = xid.gtrid_length-uidLength; byte[] nodeName = new byte[nameLength]; System.arraycopy(xid.data, uidLength, nodeName, 0, nodeName.length); try { return new String(nodeName, "US-ASCII"); } catch(UnsupportedEncodingException e) { // should never happen, we use a required charset. return "<failed to get nodename>"; } }
public static final void packInto (Uid u, OutputBuffer buff) throws IOException { if ((u == null) || (buff == null)) throw new IllegalArgumentException(); if (u.valid()) buff.packBytes(u.getBytes()); else throw new IllegalArgumentException(); }
public static final void packInto (Uid u, OutputBuffer buff) throws IOException { if ((u == null) || (buff == null)) throw new IllegalArgumentException(); if (u.valid()) buff.packBytes(u.getBytes()); else throw new IllegalArgumentException(); }
public static final void packInto (Uid u, OutputBuffer buff) throws IOException { if ((u == null) || (buff == null)) throw new IllegalArgumentException(); if (u.valid()) buff.packBytes(u.getBytes()); else throw new IllegalArgumentException(); }
public static final void packInto (Uid u, OutputBuffer buff) throws IOException { if ((u == null) || (buff == null)) throw new IllegalArgumentException(); if (u.valid()) buff.packBytes(u.getBytes()); else throw new IllegalArgumentException(); }
public static final void packInto (Uid u, OutputBuffer buff) throws IOException { if ((u == null) || (buff == null)) throw new IllegalArgumentException(); if (u.valid()) buff.packBytes(u.getBytes()); else throw new IllegalArgumentException(); }
public static final void packInto (Uid u, OutputBuffer buff) throws IOException { if ((u == null) || (buff == null)) throw new IllegalArgumentException(); if (u.valid()) buff.packBytes(u.getBytes()); else throw new IllegalArgumentException(); }
public static final void packInto (Uid u, OutputBuffer buff) throws IOException { if ((u == null) || (buff == null)) throw new IllegalArgumentException(); if (u.valid()) buff.packBytes(u.getBytes()); else throw new IllegalArgumentException(); }
public static final void packInto (Uid u, OutputBuffer buff) throws IOException { if (u.valid()) buff.packBytes(u.getBytes()); else throw new InvalidParameterException(); }
public static final void packInto (Uid u, OutputBuffer buff) throws IOException { if ((u == null) || (buff == null)) throw new IllegalArgumentException(); if (u.valid()) buff.packBytes(u.getBytes()); else throw new IllegalArgumentException(); }
public static final void packInto (Uid u, OutputBuffer buff) throws IOException { if ((u == null) || (buff == null)) throw new IllegalArgumentException(); if (u.valid()) buff.packBytes(u.getBytes()); else throw new IllegalArgumentException(); }
public static final void packInto (Uid u, OutputBuffer buff) throws IOException { if ((u == null) || (buff == null)) throw new IllegalArgumentException(); if (u.valid()) buff.packBytes(u.getBytes()); else throw new IllegalArgumentException(); }
prepareStatement.setBytes(1, baos.toByteArray()); prepareStatement.setString(2, TxControl.getXANodeName()); prepareStatement.setBytes(3, basicAction.get_uid().getBytes());