1 22 package org.jboss.test.cluster.partition; 23 24 import org.jboss.ha.framework.server.ClusterPartition; 25 import org.jboss.ha.framework.server.ClusterPartitionConfig; 26 27 33 public class StartupTestClusterPartition 34 extends ClusterPartition 35 implements StartupTestClusterPartitionMBean 36 { 37 private HAPartitionRecorderMBean startupRecorder; 38 39 public StartupTestClusterPartition(ClusterPartitionConfig config) 40 { 41 super(config); 42 } 43 44 public HAPartitionRecorderMBean getStartupRecorder() 45 { 46 return startupRecorder; 47 } 48 49 public void setStartupRecorder(HAPartitionRecorderMBean startupRecorder) 50 { 51 this.startupRecorder = startupRecorder; 52 } 53 54 public void create() throws Exception 55 { 56 try 57 { 58 super.create(); 59 } 60 catch (Exception e) 61 { 62 startupRecorder.setStartupException(e); 63 throw e; 64 } 65 } 66 67 68 69 } 70 | Popular Tags |