com.arjuna.ats.internal.arjuna.recovery.Listener.start()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(8.2k)|赞(0)|评价(0)|浏览(164)

本文整理了Java中com.arjuna.ats.internal.arjuna.recovery.Listener.start()方法的一些代码示例,展示了Listener.start()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Listener.start()方法的具体详情如下:
包路径:com.arjuna.ats.internal.arjuna.recovery.Listener
类名称:Listener
方法名:start

Listener.start介绍

暂无

代码示例

代码示例来源:origin: org.jboss.narayana.jts/narayana-jts-idlj

/**
* The work item to be executed.
*
* this must be private as it should only be called once. otherwise we leak listener threads
*/
private void addService( Service service, ServerSocket serverSocket )
{
 try
 {
   _listener = new Listener( serverSocket, service );
   _listener.setDaemon(true);
   tsLogger.logger.debug(service.getClass().getName() + " starting");
   _listener.start() ;
 }
 catch ( IOException ex ) {
   tsLogger.i18NLogger.warn_recovery_TransactionStatusManager_2();
 }
}

代码示例来源:origin: jbosstm/narayana

/**
* The work item to be executed.
*
* this must be private as it should only be called once. otherwise we leak listener threads
*/
private void addService( Service service, ServerSocket serverSocket )
{
 try
 {
   _listener = new Listener( serverSocket, service );
   _listener.setDaemon(true);
   tsLogger.logger.debug(service.getClass().getName() + " starting");
   _listener.start() ;
 }
 catch ( IOException ex ) {
   tsLogger.i18NLogger.warn_recovery_TransactionStatusManager_2();
 }
}

代码示例来源:origin: jbosstm/narayana

/**
* The work item to be executed.
*
* this must be private as it should only be called once. otherwise we leak listener threads
*/
private void addService( Service service, ServerSocket serverSocket )
{
 try
 {
   _listener = new Listener( serverSocket, service );
   _listener.setDaemon(true);
   tsLogger.logger.debug(service.getClass().getName() + " starting");
   _listener.start() ;
 }
 catch ( IOException ex ) {
   tsLogger.i18NLogger.warn_recovery_TransactionStatusManager_2();
 }
}

代码示例来源:origin: org.jboss.narayana.arjunacore/arjunacore

/**
* The work item to be executed.
*
* this must be private as it should only be called once. otherwise we leak listener threads
*/
private void addService( Service service, ServerSocket serverSocket )
{
 try
 {
   _listener = new Listener( serverSocket, service );
   _listener.setDaemon(true);
   tsLogger.logger.debug(service.getClass().getName() + " starting");
   _listener.start() ;
 }
 catch ( IOException ex ) {
   tsLogger.i18NLogger.warn_recovery_TransactionStatusManager_2();
 }
}

代码示例来源:origin: org.jboss.narayana.arjunacore/arjuna

/**
* The work item to be executed.
*
* this must be private as it should only be called once. otherwise we leak listener threads
*/
private void addService( Service service, ServerSocket serverSocket )
{
 try
 {
   _listener = new Listener( serverSocket, service );
   _listener.setDaemon(true);
   tsLogger.logger.debug(service.getClass().getName() + " starting");
   _listener.start() ;
 }
 catch ( IOException ex ) {
   tsLogger.i18NLogger.warn_recovery_TransactionStatusManager_2();
 }
}

代码示例来源:origin: jbosstm/narayana

/**
* The work item to be executed.
*
* this must be private as it should only be called once. otherwise we leak listener threads
*/
private void addService( Service service, ServerSocket serverSocket )
{
 try
 {
   _listener = new Listener( serverSocket, service );
   _listener.setDaemon(true);
   tsLogger.logger.debug(service.getClass().getName() + " starting");
   _listener.start() ;
 }
 catch ( IOException ex ) {
   tsLogger.i18NLogger.warn_recovery_TransactionStatusManager_2();
 }
}

代码示例来源:origin: stackoverflow.com

import java.sql.*;

public class NotificationTest {

  public static void main(String args[]) throws Exception {
    Class.forName("org.postgresql.Driver");
    String url = "jdbc:postgresql://localhost:5432/test";

    // Create two distinct connections, one for the notifier
    // and another for the listener to show the communication
    // works across connections although this example would
    // work fine with just one connection.
    Connection lConn = DriverManager.getConnection(url,"test","");
    Connection nConn = DriverManager.getConnection(url,"test","");

    // Create two threads, one to issue notifications and
    // the other to receive them.
    Listener listener = new Listener(lConn);
    Notifier notifier = new Notifier(nConn);
    listener.start();
    notifier.start();
  }

}

代码示例来源:origin: org.jboss.jbossts.arjunacore/arjuna

/**
* The work item to be executed.
*
* this must be private as it should only be called once. otherwise we leak listener threads
*/
private void addService( Service service, ServerSocket serverSocket )
{
 try
 {
   _listener = new Listener( serverSocket, service );
   _listener.setDaemon(true);
  tsLogger.i18NLogger.info_recovery_TransactionStatusManager_1(service.getClass().getName(),
             Integer.toString(serverSocket.getLocalPort()));
   _listener.start() ;
 }
 catch ( IOException ex ) {
   tsLogger.i18NLogger.warn_recovery_TransactionStatusManager_2();
 }
}

代码示例来源:origin: org.jboss.jbossts.jta/narayana-jta

/**
* The work item to be executed.
*
* this must be private as it should only be called once. otherwise we leak listener threads
*/
private void addService( Service service, ServerSocket serverSocket )
{
 try
 {
   _listener = new Listener( serverSocket, service );
   _listener.setDaemon(true);
  tsLogger.i18NLogger.info_recovery_TransactionStatusManager_1(service.getClass().getName(),
             Integer.toString(serverSocket.getLocalPort()));
   _listener.start() ;
 }
 catch ( IOException ex ) {
   tsLogger.i18NLogger.warn_recovery_TransactionStatusManager_2();
 }
}

代码示例来源:origin: org.jboss.jbossts/jbossjta

/**
* The work item to be executed.
*
* this must be private as it should only be called once. otherwise we leak listener threads
*/
private void addService( Service service, ServerSocket serverSocket )
{
 try
 {
   _listener = new Listener( serverSocket, service );
   _listener.setDaemon(true);
  tsLogger.i18NLogger.info_recovery_TransactionStatusManager_1(service.getClass().getName(),
             Integer.toString(serverSocket.getLocalPort()));
   _listener.start() ;
 }
 catch ( IOException ex ) {
   tsLogger.i18NLogger.warn_recovery_TransactionStatusManager_2();
 }
}

代码示例来源:origin: org.jboss.jbossts.arjunacore/arjunacore

/**
* The work item to be executed.
*
* this must be private as it should only be called once. otherwise we leak listener threads
*/
private void addService( Service service, ServerSocket serverSocket )
{
 try
 {
   _listener = new Listener( serverSocket, service );
   _listener.setDaemon(true);
  tsLogger.i18NLogger.info_recovery_TransactionStatusManager_1(service.getClass().getName(),
             Integer.toString(serverSocket.getLocalPort()));
   _listener.start() ;
 }
 catch ( IOException ex ) {
   tsLogger.i18NLogger.warn_recovery_TransactionStatusManager_2();
 }
}

代码示例来源:origin: jboss.jbossts/jbossjts

/**
* The work item to be executed.
*
* this must be private as it should only be called once. otherwise we leak listener threads
*/
private void addService( Service service, ServerSocket serverSocket )
{
 try
 {
   _listener = new Listener( serverSocket, service );
   _listener.setDaemon(true);
 if (tsLogger.arjLoggerI18N.isInfoEnabled())
 {
   tsLogger.arjLoggerI18N.info("com.arjuna.ats.arjuna.recovery.TransactionStatusManager_1",
         new Object[]{service.getClass().getName(),
             Integer.toString(serverSocket.getLocalPort())});
 }
   _listener.start() ;
 }
 catch ( IOException ex )
 {
 tsLogger.arjLoggerI18N.warn("com.arjuna.ats.arjuna.recovery.TransactionStatusManager_2");
 }
}

代码示例来源:origin: org.jboss.narayana.jts/narayana-jts-idlj

tsLogger.logger.debug("PeriodicRecovery: starting listener worker thread");
_listener.start();

代码示例来源:origin: org.jboss.jbossts.arjunacore/arjunacore

tsLogger.logger.debug("PeriodicRecovery: starting listener worker thread");
_listener.start();

代码示例来源:origin: org.jboss.jbossts/jbossjta

tsLogger.logger.debug("PeriodicRecovery: starting listener worker thread");
_listener.start();

代码示例来源:origin: org.jboss.jbossts.jta/narayana-jta

tsLogger.logger.debug("PeriodicRecovery: starting listener worker thread");
_listener.start();

代码示例来源:origin: org.jboss.narayana.arjunacore/arjuna

tsLogger.logger.debug("PeriodicRecovery: starting listener worker thread");
_listener.start();

代码示例来源:origin: org.jboss.jbossts.arjunacore/arjuna

tsLogger.logger.debug("PeriodicRecovery: starting listener worker thread");
_listener.start();

代码示例来源:origin: org.jboss.narayana.arjunacore/arjunacore

tsLogger.logger.debug("PeriodicRecovery: starting listener worker thread");
_listener.start();

代码示例来源:origin: org.jboss.teiid/teiid-txn-jbossts

public PeriodicRecovery (boolean threaded)
{
 setDaemon(true);
 initialise();
 // Load the recovery modules that actually do the work.
 loadModules();
 try
 {
 _workerService = new WorkerService(this);
 _listener = new Listener(getServerSocket(), _workerService);
 _listener.setDaemon(true);
 }
 catch (Exception ex)
 {
 if (tsLogger.arjLoggerI18N.isWarnEnabled())
 {
   tsLogger.arjLoggerI18N.warn("com.arjuna.ats.internal.arjuna.recovery.PeriodicRecovery_9", new Object[]{ex});
 }
 }
 if (threaded)
 {
 start();
 }
 _listener.start();
}

相关文章