Package com.sun.jts.jtsxa

Examples of com.sun.jts.jtsxa.XID


               
                CoordinatorImpl coord =
                DelegatedRecoveryManager.getLocalCoordinator(timeoutInfo.localTID, logPath);
               
                if (coord != null) {
                    XID xid = new XID();
                    xid.copy(coord.getGlobalTID());
                    inDoubtList.addElement(xid);
                }
            }
           
            return (XID[]) inDoubtList.toArray(new XID[] {});
View Full Code Here


            }
        }

        // use a different branch
        // XXX ideally should call JTS layer to get the branch id
        XID xid;

        if( Configuration.isLocalFactory()) {
            xid = Utility.getXID(((ControlImpl) control).get_localCoordinator());
        } else {
            xid = Utility.getXID(control.get_coordinator());
        }
        factories.add(res);

      byte [] branchid = parseSize(size);
      byte [] sname    = Configuration.getServerNameByteArray();
      byte [] branch = new byte[sname.length+1+branchid.length];

      System.arraycopy(sname, 0, branch, 0, sname.length);
      branch[sname.length] = (byte) ',';
      System.arraycopy(branchid, 0, branch, sname.length+1, branchid.length);

        xid.setBranchQualifier(branch);

        return xid;
    }
View Full Code Here

               
            CoordinatorImpl coord =
                RecoveryManager.getLocalCoordinator(timeoutInfo.localTID);
                               
            if (coord != null) {
                XID xid = new XID();
                xid.copy(coord.getGlobalTID());
                inDoubtList.addElement(xid);
            }
        }
       
        return (XID[]) inDoubtList.toArray(new XID[] {});
View Full Code Here

            }
        }

        // use a different branch
        // XXX ideally should call JTS layer to get the branch id
        XID xid;

        if( Configuration.isLocalFactory()) {
            xid = Utility.getXID(((ControlImpl) control).get_localCoordinator());
        } else {
            xid = Utility.getXID(control.get_coordinator());
        }
        factories.add(res);

      byte [] branchid = parseSize(size);
      byte [] sname    = Configuration.getServerNameByteArray();
      byte [] branch = new byte[sname.length+1+branchid.length];

      System.arraycopy(sname, 0, branch, 0, sname.length);
      branch[sname.length] = (byte) ',';
      System.arraycopy(branchid, 0, branch, sname.length+1, branchid.length);

        xid.setBranchQualifier(branch);

        return xid;
    }
View Full Code Here

            }
        }

        // use a different branch
        // XXX ideally should call JTS layer to get the branch id
        XID xid;

        if( Configuration.isLocalFactory()) {
            xid = Utility.getXID(((ControlImpl) control).get_localCoordinator());
        } else {
            xid = Utility.getXID(control.get_coordinator());
        }
        factories.add(res);

      byte [] branchid = parseSize(size);
      byte [] sname    = Configuration.getServerNameByteArray();
      byte [] branch = new byte[sname.length+1+branchid.length];

      System.arraycopy(sname, 0, branch, 0, sname.length);
      branch[sname.length] = (byte) ',';
      System.arraycopy(branchid, 0, branch, sname.length+1, branchid.length);

        xid.setBranchQualifier(branch);

        return xid;
    }
View Full Code Here

            }
        }

        // use a different branch
        // XXX ideally should call JTS layer to get the branch id
        XID xid;

        if( Configuration.isLocalFactory()) {
            xid = Utility.getXID(((ControlImpl) control).get_localCoordinator());
        } else {
            xid = Utility.getXID(control.get_coordinator());
        }
        factories.add(res);

      byte [] branchid = parseSize(size);
      byte [] sname    = Configuration.getServerNameByteArray();
      byte [] branch = new byte[sname.length+1+branchid.length];

      System.arraycopy(sname, 0, branch, 0, sname.length);
      branch[sname.length] = (byte) ',';
      System.arraycopy(branchid, 0, branch, sname.length+1, branchid.length);

        xid.setBranchQualifier(branch);

        return xid;
    }
View Full Code Here

               
                CoordinatorImpl coord =
                DelegatedRecoveryManager.getLocalCoordinator(timeoutInfo.localTID, logPath);
               
                if (coord != null) {
                    XID xid = new XID();
                    xid.copy(coord.getGlobalTID());
                    inDoubtList.addElement(xid);
                }
            }
           
            return (XID[]) inDoubtList.toArray(new XID[] {});
View Full Code Here

               
            CoordinatorImpl coord =
                RecoveryManager.getLocalCoordinator(timeoutInfo.localTID);
                               
            if (coord != null) {
                XID xid = new XID();
                xid.copy(coord.getGlobalTID());
                inDoubtList.addElement(xid);
            }
        }
       
        return (XID[]) inDoubtList.toArray(new XID[] {});
View Full Code Here

            }
        }

        // use a different branch
        // XXX ideally should call JTS layer to get the branch id
        XID xid;

        if( Configuration.isLocalFactory()) {
            xid = Utility.getXID(((ControlImpl) control).get_localCoordinator());
        } else {
            xid = Utility.getXID(control.get_coordinator());
        }
        factories.add(res);

      byte [] branchid = parseSize(size);
      byte [] sname    = Configuration.getServerNameByteArray();
      byte [] branch = new byte[sname.length+1+branchid.length];

      System.arraycopy(sname, 0, branch, 0, sname.length);
      branch[sname.length] = (byte) ',';
      System.arraycopy(branchid, 0, branch, sname.length+1, branchid.length);

        xid.setBranchQualifier(branch);

        return xid;
    }
View Full Code Here

TOP

Related Classes of com.sun.jts.jtsxa.XID

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.