Codota Logo
XAResourceRecordBeanMBean
Code IndexAdd Codota to your IDE (free)

How to use
XAResourceRecordBeanMBean
in
com.arjuna.ats.internal.jta.tools.osb.mbean.jta

Best Java code snippets using com.arjuna.ats.internal.jta.tools.osb.mbean.jta.XAResourceRecordBeanMBean (Showing top 2 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ScheduledThreadPoolExecutor s =
  • Codota Iconnew ScheduledThreadPoolExecutor(corePoolSize)
  • Codota IconThreadFactory threadFactory;new ScheduledThreadPoolExecutor(corePoolSize, threadFactory)
  • Codota IconString str;new ScheduledThreadPoolExecutor(1, new ThreadFactoryBuilder().setNameFormat(str).build())
  • Smart code suggestions by Codota
}
origin: jbosstm/narayana

private HeuristicTestData getHeuristic() throws Exception
{
  FailureXAResource failureXAResource = new FailureXAResource(FailureXAResource.FailLocation.commit); // generates a heuristic on commit
  TransactionImple tx = new TransactionImple(1000000000);
  XAResourceRecordBeanMBean resourceBean = getHeuristicMBean(osb, tx, failureXAResource);
  JTAActionBean txnMBean = getTransactionBean(osb, tx, true);
  Set<ObjectName> participants;
  String resourceBeanName;
  String txnBeanName;
  assertNotNull(txnMBean);
  assertNotNull(resourceBean);
  txnBeanName = String.format("jboss.jta:type=ObjectStore,itype=%s,uid=%s",
      txnMBean.type(), txnMBean.getId().replace(':', '_'));
  resourceBeanName = String.format("%s,puid=%s",
      txnBeanName, resourceBean.getId().replace(':', '_'));
  participants = JMXServer.getAgent().queryNames(resourceBeanName, null);
  assertEquals(1, participants.size());
  return new HeuristicTestData(tx, failureXAResource, txnMBean, resourceBean, participants.iterator().next(),
      txnBeanName, resourceBeanName);
}
origin: jbosstm/narayana

private HeuristicTestData tryRemove(boolean failForget, boolean ignoreMBeanHeuristics, HeuristicTestData hd)
    throws MBeanException, MalformedObjectNameException
{
  ObjectStoreEnvironmentBean osEnv = arjPropertyManager.getObjectStoreEnvironmentBean();
  osEnv.setIgnoreMBeanHeuristics(ignoreMBeanHeuristics);
  hd.failureXAResource.setRefuseForget(hd.failureXAResource.getXid(), failForget);
  // remove the bean via JMX
  hd.resourceBean.remove();
  // assert that forget was called on the resource
  assertEquals(1, hd.failureXAResource.getForgetCount(hd.failureXAResource.getXid()));
  osb.probe();
  return hd;
}
com.arjuna.ats.internal.jta.tools.osb.mbean.jtaXAResourceRecordBeanMBean

Most used methods

  • getId
  • remove

Popular in Java

  • Reading from database using SQL prepared statement
  • getExternalFilesDir (Context)
  • orElseThrow (Optional)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • FileOutputStream (java.io)
    A file output stream is an output stream for writing data to aFile or to a FileDescriptor. Whether
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now