Methods Summary |
---|
private void | finest(java.lang.String s)
_logger.finest("TransactionServiceManagerMBean: " + s);
|
public void | freeze(java.lang.String serverName)
finest("freeze called for target: " + serverName);
validateServerName(serverName);
try {
getMBS().invoke(getTransactionServiceObjectName(serverName), "freeze", null, null);
} catch(javax.management.InstanceNotFoundException e) {
throw new MBeanException(e, _strMgr.getString("admin.mbeans.server_not_running", new Object[] {serverName}));
}
|
protected com.sun.enterprise.config.ConfigContext | getConfigContext()
ConfigContext result = super.getConfigContext();
if (result == null) {
result = AdminService.getAdminService().getAdminContext().getAdminConfigContext();
}
return result;
|
private javax.management.MBeanServer | getMBS()
return com.sun.enterprise.admin.common.MBeanServerFactory.getMBeanServer();
|
private javax.management.ObjectName | getTransactionServiceObjectName(java.lang.String server)
return new ObjectName(
getDomainName() +
":type=TransactionService,J2EEServer="
+ server
+ ",category=runtime");
|
public void | rollback(java.lang.String[] txids, java.lang.String serverName)
finest("rollback called for target: " + serverName);
validateServerName(serverName);
try {
getMBS().invoke(getTransactionServiceObjectName(serverName),
"rollback",
new Object[] {txids},
new String[] {"[Ljava.lang.String;"});
} catch(javax.management.InstanceNotFoundException e) {
throw new MBeanException(e, _strMgr.getString("admin.mbeans.server_not_running", new Object[] {serverName}));
}
|
public void | unfreeze(java.lang.String serverName)
finest("unfreeze called for target: " + serverName);
validateServerName(serverName);
try {
getMBS().invoke(getTransactionServiceObjectName(serverName), "unfreeze", null, null);
} catch(javax.management.InstanceNotFoundException e) {
throw new MBeanException(e, _strMgr.getString("admin.mbeans.server_not_running", new Object[] {serverName}));
}
|
private void | validateServerName(java.lang.String server)
finest("validating the target " + server);
final Target target = TargetBuilder.INSTANCE.createTarget(
VALID_TARGET_TYPES,
server, getConfigContext());
finest("Target is valid: " + server);
|