- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中com.arjuna.ats.internal.jta.xa.XID
类的一些代码示例,展示了XID
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XID
类的具体详情如下:
包路径:com.arjuna.ats.internal.jta.xa.XID
类名称:XID
[英]An X/Open XID implementation.
[中]X/Open XID实现。
代码示例来源:origin: org.jboss.narayana.jta/jta
private void init() {
jndiName = getUid().stringForm();
className = "unavailable";
eisProductName = "unavailable";
eisProductVersion = "unavailable";
timeout = 0;
heuristic = -1;
xidImple = new XidImple(new XID());
}
代码示例来源:origin: org.jboss.narayana.jts/narayana-jts-idlj
public String toString() {
if (_theXid != null)
return _theXid.toString();
else
return jtaLogger.i18NLogger.get_xa_xidunset();
}
代码示例来源:origin: org.jboss.jbossts.jta/narayana-jta
public final void copy(Xid xid) {
_theXid = new XID();
if (xid != null) {
if (xid instanceof XidImple)
_theXid.copy(((XidImple) xid)._theXid);
else {
_theXid.formatID = xid.getFormatId();
byte[] gtx = xid.getGlobalTransactionId();
byte[] bql = xid.getBranchQualifier();
final int bqlength = (bql == null ? 0 : bql.length);
_theXid.gtrid_length = gtx.length;
_theXid.bqual_length = bqlength;
System.arraycopy(gtx, 0, _theXid.data, 0, gtx.length);
if (bqlength > 0) {
System.arraycopy(bql, 0, _theXid.data, gtx.length,
bql.length);
}
}
}
}
代码示例来源:origin: org.jboss.jbossts/jbossjta
/**
* Check for equality, then check transaction id only.
*/
public final boolean isSameTransaction (XID xid)
{
if (formatID == xid.formatID)
{
if (gtrid_length == xid.gtrid_length)
{
if (equals(xid))
return true;
else
{
for (int i = 0; i < gtrid_length; i++)
{
if (data[i] != xid.data[i])
return false;
}
return true;
}
}
}
return false;
}
代码示例来源:origin: jbosstm/narayana
XID x = new XID();
x.bqual_length = 1;
x.gtrid_length = 1;
x.data = new byte[] { '1', '2' };
assertTrue(x.toString() != null);
代码示例来源:origin: org.jboss.narayana.jts/narayana-jts-idlj
public final boolean isSameTransaction(Xid xid) {
if (xid == null)
return false;
if (xid instanceof XidImple) {
return _theXid.isSameTransaction(((XidImple) xid)._theXid);
}
if (getFormatId() == xid.getFormatId()) {
byte[] gtx = xid.getGlobalTransactionId();
if (_theXid.gtrid_length == gtx.length) {
if (equals(xid))
return true;
else {
for (int i = 0; i < _theXid.gtrid_length; i++) {
if (_theXid.data[i] != gtx[i])
return false;
}
return true;
}
}
}
return false;
}
代码示例来源:origin: org.jboss.narayana.jts/narayana-jts-idlj
/**
* Check for equality, then check transaction id only.
*/
public final boolean isSameTransaction (XID xid)
{
if (formatID == xid.formatID)
{
if (gtrid_length == xid.gtrid_length)
{
if (equals(xid))
return true;
else
{
for (int i = 0; i < gtrid_length; i++)
{
if (data[i] != xid.data[i])
return false;
}
return true;
}
}
}
return false;
}
代码示例来源:origin: jbosstm/narayana
public final boolean isSameTransaction(Xid xid) {
if (xid == null)
return false;
if (xid instanceof XidImple) {
return _theXid.isSameTransaction(((XidImple) xid)._theXid);
}
if (getFormatId() == xid.getFormatId()) {
byte[] gtx = xid.getGlobalTransactionId();
if (_theXid.gtrid_length == gtx.length) {
if (equals(xid))
return true;
else {
for (int i = 0; i < _theXid.gtrid_length; i++) {
if (_theXid.data[i] != gtx[i])
return false;
}
return true;
}
}
}
return false;
}
代码示例来源:origin: org.jboss.jbossts.jta/narayana-jta
private void init() {
jndiName = getUid().stringForm();
className = "unavailable";
eisProductName = "unavailable";
eisProductVersion = "unavailable";
timeout = 0;
heuristic = -1;
xidImple = new XidImple(new XID());
}
代码示例来源:origin: org.jboss.narayana.jta/jta
public final void copy(Xid xid) {
_theXid = new XID();
if (xid != null) {
if (xid instanceof XidImple)
_theXid.copy(((XidImple) xid)._theXid);
else {
_theXid.formatID = xid.getFormatId();
byte[] gtx = xid.getGlobalTransactionId();
byte[] bql = xid.getBranchQualifier();
final int bqlength = (bql == null ? 0 : bql.length);
_theXid.gtrid_length = gtx.length;
_theXid.bqual_length = bqlength;
System.arraycopy(gtx, 0, _theXid.data, 0, gtx.length);
if (bqlength > 0) {
System.arraycopy(bql, 0, _theXid.data, gtx.length,
bql.length);
}
}
}
}
代码示例来源:origin: org.jboss.narayana.jta/jta
/**
* Check for equality, then check transaction id only.
*/
public final boolean isSameTransaction (XID xid)
{
if (formatID == xid.formatID)
{
if (gtrid_length == xid.gtrid_length)
{
if (equals(xid))
return true;
else
{
for (int i = 0; i < gtrid_length; i++)
{
if (data[i] != xid.data[i])
return false;
}
return true;
}
}
}
return false;
}
代码示例来源:origin: org.jboss.jbossts/jbossjta
public String toString() {
if (_theXid != null)
return _theXid.toString();
else
return jtaLogger.i18NLogger.get_xa_xidunset();
}
代码示例来源:origin: org.jboss.narayana.jta/jta
public final boolean isSameTransaction(Xid xid) {
if (xid == null)
return false;
if (xid instanceof XidImple) {
return _theXid.isSameTransaction(((XidImple) xid)._theXid);
}
if (getFormatId() == xid.getFormatId()) {
byte[] gtx = xid.getGlobalTransactionId();
if (_theXid.gtrid_length == gtx.length) {
if (equals(xid))
return true;
else {
for (int i = 0; i < _theXid.gtrid_length; i++) {
if (_theXid.data[i] != gtx[i])
return false;
}
return true;
}
}
}
return false;
}
代码示例来源:origin: jbosstm/narayana
private void init() {
jndiName = getUid().stringForm();
className = "unavailable";
eisProductName = "unavailable";
eisProductVersion = "unavailable";
timeout = 0;
heuristic = -1;
xidImple = new XidImple(new XID());
}
代码示例来源:origin: jbosstm/narayana
public final void copy(Xid xid) {
_theXid = new XID();
if (xid != null) {
if (xid instanceof XidImple)
_theXid.copy(((XidImple) xid)._theXid);
else {
_theXid.formatID = xid.getFormatId();
byte[] gtx = xid.getGlobalTransactionId();
byte[] bql = xid.getBranchQualifier();
final int bqlength = (bql == null ? 0 : bql.length);
_theXid.gtrid_length = gtx.length;
_theXid.bqual_length = bqlength;
System.arraycopy(gtx, 0, _theXid.data, 0, gtx.length);
if (bqlength > 0) {
System.arraycopy(bql, 0, _theXid.data, gtx.length,
bql.length);
}
}
}
}
代码示例来源:origin: jbosstm/narayana
/**
* Check for equality, then check transaction id only.
*/
public final boolean isSameTransaction (XID xid)
{
if (formatID == xid.formatID)
{
if (gtrid_length == xid.gtrid_length)
{
if (equals(xid))
return true;
else
{
for (int i = 0; i < gtrid_length; i++)
{
if (data[i] != xid.data[i])
return false;
}
return true;
}
}
}
return false;
}
代码示例来源:origin: org.jboss.jbossts.jta/narayana-jta
public String toString() {
if (_theXid != null)
return _theXid.toString();
else
return jtaLogger.i18NLogger.get_xa_xidunset();
}
代码示例来源:origin: org.jboss.jbossts.jta/narayana-jta
public final boolean isSameTransaction(Xid xid) {
if (xid == null)
return false;
if (xid instanceof XidImple) {
return _theXid.isSameTransaction(((XidImple) xid)._theXid);
}
if (getFormatId() == xid.getFormatId()) {
byte[] gtx = xid.getGlobalTransactionId();
if (_theXid.gtrid_length == gtx.length) {
if (equals(xid))
return true;
else {
for (int i = 0; i < _theXid.gtrid_length; i++) {
if (_theXid.data[i] != gtx[i])
return false;
}
return true;
}
}
}
return false;
}
代码示例来源:origin: org.jboss.narayana.jts/narayana-jts-idlj
private void init() {
jndiName = getUid().stringForm();
className = "unavailable";
eisProductName = "unavailable";
eisProductVersion = "unavailable";
timeout = 0;
heuristic = -1;
xidImple = new XidImple(new XID());
}
代码示例来源:origin: org.jboss.jbossts/jbossjta
public final void copy(Xid xid) {
_theXid = new XID();
if (xid != null) {
if (xid instanceof XidImple)
_theXid.copy(((XidImple) xid)._theXid);
else {
_theXid.formatID = xid.getFormatId();
byte[] gtx = xid.getGlobalTransactionId();
byte[] bql = xid.getBranchQualifier();
final int bqlength = (bql == null ? 0 : bql.length);
_theXid.gtrid_length = gtx.length;
_theXid.bqual_length = bqlength;
System.arraycopy(gtx, 0, _theXid.data, 0, gtx.length);
if (bqlength > 0) {
System.arraycopy(bql, 0, _theXid.data, gtx.length,
bql.length);
}
}
}
}
我有一个 Web 应用程序从 MQ 收集数据并保存在数据库中。使用 Spring JMS 监听器容器从 MQ 读取消息,并使用 hibernate 模板将这些消息保留在 XA Oracle 数据源上。
我找不到如何将 xid(交易 ID 类型)列设置为在表中唯一。它提示 btree 缺少类方法,我不知道如何解决它。 这是使用 PostgreSQL 9.0。 在这些论坛或互联网上找不到任何类似的问题。
我有以下 Python 2.7/PyGObject 3.0/PyGST 0.10 模块: from gi.repository import Gtk, Gdk, GdkPixbuf import pa
我想在我的 MySQL 5.6 服务器上执行 mysql-命令: mysql> XA ROLLBACK xid; 我尝试从此命令获取 xid: mysql> XA RECOVER; 结果如下: 我向社
我正在尝试在 Python 3.6 中使用 python-vlc 和 Gtk 创建一个 GUI 应用程序。但是当我尝试访问我的 GtkDrawingArea 小部件的 xid(将它与我的播放器屏幕绑定
我正在调查 Postgres 数据库上经常执行的查询,以帮助减少 XID 的使用。我可以使用 pg_stat_statements 获取执行的查询列表和调用次数,但它不包括因违反唯一约束等原因而失败的
有没有办法得到transactionid(xid)来自 SQL 查询,还是来自 plpgsql 函数体? PostgreSQL 9.3 版本 最佳答案 http://www.postgresql.or
我正在使用 Spring 3.0.5、Hibernate 3.6.7、Atomikos TransactionEssentials 3.7.0 和 MySQL 5.5 我最近遇到了一个问题,我的连接池
在启动我的 Spring 应用程序时收到上述警告。 WARN com.atomikos.recovery.xa.XaResourceRecoveryManager - Error while retr
如何从 xid(X 窗口标识符)获取 pid?如何获取给定 pid 的 xid 列表? (假设所有应用程序都以 DISPLAY=:0 运行,没有使用网络透明性) 我期待这样的事情: 挖掘/proc/$
我迷失在版本 3 中。在 python2+gdk2 中是: #!/usr/bin/env python2 import gtk gtk.gdk.window_process_all_updates()
有两次,当我使用 4x1080ti 完成模型训练时,服务器宕机了。为什么服务器崩溃了? 我收到系统日志并发现有关 Nvidia 驱动程序或 GPU 的问题。 系统日志:(和 nvidia-bug-re
我正在将 Linux 桌面应用程序移植到 Emberjs在 Electron应用程序以允许更自定义的用户界面。虽然大多数控件都非常适合 HTML 和 CSS,但我需要能够在 Electron 窗口内绘
这是我的用户模型 public class Users { private long id; private String userName; private String n
将 deviceToken 注册到 Xtify Manager 后,如何知道 xid 何时可用? 我正在这样做: - (BOOL)application:(UIApplication *)applic
简而言之:这是 How to get Gdk window from xid? 的重复,但在 Wayland 下。 在我将 Debian 从 Stretch 更新到 Buster 之前,类似以下的代码
PostgreSQL 9.6。服务器最近从突然断电中恢复过来。 当在 pgadmin 中为表 Current 运行 select 命令时,它显示 invalid page in block 64553
很抱歉,如果这个问题已经有人回答了,但我自己找不到。 我在 plgsql 中有这样一个函数: CREATE OR REPLACE FUNCTION collect_transaction_data(x
我正在编写一个 Gtk2 应用程序,除其他外,它需要让 Mplayer 将视频播放到 GtkDrawingArea 中。据我所知,如果可以找到 GtkDrawingArea 的 XID 并将其作为参数
XID 和 TX 列中的分数代表什么。这是 postgres 的 pgadmin 工具的屏幕截图。 我明白 TX 和 XID 分别表示交易和交易 ID,但是我不明白小数符号是什么意思。 最佳答案 虚拟
我是一名优秀的程序员,十分优秀!