1 22 package org.jboss.tm; 23 24 import javax.management.ObjectName ; 25 26 import org.jboss.mx.util.ObjectNameFactory; 27 import org.jboss.system.ServiceMBean; 28 import org.jboss.tm.integrity.TransactionIntegrityFactory; 29 import org.jboss.tm.recovery.RecoveryLoggerInstance; 30 31 37 public interface TransactionManagerServiceMBean extends ServiceMBean, TransactionManagerFactory 38 { 39 ObjectName OBJECT_NAME = ObjectNameFactory.create("jboss:service=TransactionManager"); 40 41 45 void setRecoveryLogger(RecoveryLoggerInstance recoveryLogger); 46 47 52 void setTransactionIntegrityFactory(TransactionIntegrityFactory factory); 53 54 58 boolean getGlobalIdsEnabled(); 59 60 64 void setGlobalIdsEnabled(boolean newValue); 65 66 70 boolean isInterruptThreads(); 71 72 76 void setInterruptThreads(boolean interruptThreads); 77 78 82 int getTransactionTimeout(); 83 84 88 void setTransactionTimeout(int timeout); 89 90 101 int getCompletionRetryLimit(); 102 103 114 void setCompletionRetryLimit(int maxCompletionRetries); 115 116 132 int getCompletionRetryTimeout(); 133 134 150 void setCompletionRetryTimeout(int seconds); 151 152 163 int getXARetryTimeout(); 164 165 176 void setXARetryTimeout(int seconds); 177 178 187 int getPreparedTimeout(); 188 189 198 void setPreparedTimeout(int seconds); 199 200 211 boolean isRootBranchRemembersHeuristicDecisions(); 212 213 224 void setRootBranchRemembersHeuristicDecisions(boolean newValue); 225 226 242 boolean isReportHeuristicHazardAsHeuristicMixed(); 243 244 261 void setReportHeuristicHazardAsHeuristicMixed(boolean newValue); 262 263 267 ObjectName getXidFactory(); 268 269 273 void setXidFactory(ObjectName xidFactory); 274 275 279 JBossXATerminator getXATerminator(); 280 281 285 long getTransactionCount(); 286 287 291 long getCommitCount(); 292 293 297 long getRollbackCount(); 298 299 304 String listInDoubtTransactions(); 305 306 312 void heuristicallyCommit(long localTransactionId); 313 314 317 void heuristicallyCommitAll(); 318 319 325 void heuristicallyRollback(long localTransactionId); 326 327 330 void heuristicallyRollbackAll(); 331 332 344 String listHeuristicallyCompletedTransactions(); 345 346 354 void forget(long localTransactionId); 355 356 360 void forgetAll(); 361 362 367 void registerXAExceptionFormatter(Class clazz, XAExceptionFormatter formatter); 368 369 373 void unregisterXAExceptionFormatter(Class clazz); 374 375 } 376 | Popular Tags |