Methods Summary |
---|
public void | changeLevel(MonitoringLevel from, MonitoringLevel to, MonitoredObjectType type)
if (from != to) {
_logger.log(Level.FINE,"JTAStats Monitoring level changed from " + from + " to " + to);
if (to == MonitoringLevel.OFF) {
mBean.stopMonitoring();
}
else if (to == MonitoringLevel.LOW || to == MonitoringLevel.HIGH) {
mBean.startMonitoring();
}
}
|
public void | changeLevel(MonitoringLevel from, MonitoringLevel to, javax.management.j2ee.statistics.Stats handback)
if (from != to) {
_logger.log(Level.FINE,"JTAStats Monitoring level changed from " + from + " to " + to);
if (to == MonitoringLevel.OFF) {
mBean.stopMonitoring();
}
else if (to == MonitoringLevel.LOW || to == MonitoringLevel.HIGH) {
mBean.startMonitoring();
}
}
|
public static synchronized void | createInstance(JTSMonitorMBean mBean)
if (instance == null)
instance = new JTAStatsImpl(mBean);
|
public void | freeze()
mBean.freeze();
|
public CountStatistic | getActiveCount()
Integer count = null;
try {
count = (Integer)mBean.getAttribute(JTSMonitorMBean.NUM_TRANSACTIONS_INFLIGHT);
}catch (javax.management.AttributeNotFoundException jmxex) {
_logger.log(Level.WARNING,"transaction.monitor.attribute_not_found",jmxex);
// log and forget. Should not happen
}
return new CountStatisticImpl(count.longValue(),
"ActiveCount",
// "getActiveCount",
CountStatisticImpl.DEFAULT_UNIT,
"number of active transactions",
System.currentTimeMillis(),
mBean.getStartTime());
|
public StringStatistic | getActiveIds()
String activeStr = null;
try {
activeStr = (String)mBean.getAttribute(JTSMonitorMBean.INFLIGHT_TRANSACTIONS);
}catch (javax.management.AttributeNotFoundException jmxex) {
_logger.log(Level.WARNING,"transaction.monitor.attribute_not_found",jmxex);
}
return new StringStatisticImpl(activeStr,
"ActiveIds",
//"getActiveIds",
"List",
"List of inflight transactions",
mBean.getStartTime(),
System.currentTimeMillis());
|
public CountStatistic | getCommittedCount()
Integer count = null;
try {
count = (Integer)mBean.getAttribute(JTSMonitorMBean.NUM_TRANSACTIONS_COMPLETED);
}catch (javax.management.AttributeNotFoundException jmxex) {
_logger.log(Level.WARNING,"transaction.monitor.attribute_not_found",jmxex);
// log and forget. Should not happen
}
return new CountStatisticImpl(count.longValue(),
"CommittedCount",
//"getCommittedCount",
CountStatisticImpl.DEFAULT_UNIT,
"number of committed transactions",
System.currentTimeMillis(),
mBean.getStartTime());
|
public static synchronized com.sun.enterprise.transaction.monitor.JTAStatsImpl | getInstance()
if (instance == null)
throw new UnsupportedOperationException();
return instance;
|
public CountStatistic | getRolledbackCount()
Integer count = null;
try {
count = (Integer)mBean.getAttribute(JTSMonitorMBean.NUM_TRANSACTIONS_ROLLEDBACK);
}catch (javax.management.AttributeNotFoundException jmxex) {
_logger.log(Level.WARNING,"transaction.monitor.attribute_not_found",jmxex);
// log and forget. Should not happen
}
return new CountStatisticImpl(count.longValue(),
"RolledbackCount",
//"getRolledbackCount",
CountStatisticImpl.DEFAULT_UNIT,
"number of rolled-back transactions",
System.currentTimeMillis(),
mBean.getStartTime());
|
public StringStatistic | getState()
String str = null;
try {
str = (String)mBean.getAttribute(JTSMonitorMBean.IS_FROZEN);
}catch (javax.management.AttributeNotFoundException jmxex) {
_logger.log(Level.WARNING,"transaction.monitor.attribute_not_found",jmxex);
// log and forget. Should not happen
}
return new StringStatisticImpl(str,
"State",
//"getState",
"String",
"Transaction system state: frozen?",
mBean.getStartTime(),
System.currentTimeMillis());
|
public Statistic | getStatistic(java.lang.String statisticName)public String[] rollback(String[] txnIds) {
return mBean.rollback(txnIds);
}
return gStatsDelegate.getStatistic(statisticName);
|
public java.lang.String[] | getStatisticNames()
return gStatsDelegate.getStatisticNames();
|
public Statistic[] | getStatistics()
return gStatsDelegate.getStatistics();
|
public java.lang.Boolean | isRecoveryRequired()
return RecoveryManager.isIncompleteTxRecoveryRequired();
|
public java.util.List | listActiveTransactions()
return mBean.listActiveTransactions();
|
public java.lang.String | rollback(java.lang.String txnId)method for rolling back a single transaction
String result = (String) mBean.setRollback(txnId);
if (_logger.isLoggable(Level.FINE))
_logger.log(Level.FINE, result);
return result;
|
public void | setLevel(MonitoringLevel level)
if (level == MonitoringLevel.OFF) {
mBean.stopMonitoring();
}
else if (level == MonitoringLevel.LOW || level == MonitoringLevel.HIGH) {
mBean.startMonitoring();
}
|
public void | unfreeze()
mBean.unfreeze();
|