}
private synchronized AdminResponse callMBean(AdminRequest req)
{
String type = req.getRequestType();
AdminResponse response = null;
if (type.equals(AdminRequestType.INVOKE))
{
response = callInvoke(req);
}
else if(type.equals(AdminRequestType.GET_ATTRIBUTE))
{
response = callGetAttribute(req);
}
else if(type.equals(AdminRequestType.SET_ATTRIBUTE))
{
response = callSetAttribute(req);
}
else if (type.equals(AdminRequestType.GET_ATTRIBUTES))
{
response = callGetAttributes(req);
}
else if (type.equals(AdminRequestType.SET_ATTRIBUTES))
{
response = callSetAttributes(req);
}
else
{
response = new AdminResponse();
AdminResponseConfigurator config = new
AdminResponseConfigurator(response);
config.setException(new Exception("No Such Type"));
}
return ( response );