NSDictionary xmlDict = createInstanceRequestDictionary(null, "STATISTICS", anInstance);
return sendInstanceRequest(anInstance, xmlDict);
}
protected void catchInstanceErrors(MInstance anInstance) throws MonitorException {
MSiteConfig aConfig = theApplication.siteConfig();
if (anInstance == null)
throw new MonitorException("Attempt to command null instance on " + _hostName);
if (anInstance.host() != aConfig.localHost())
throw new MonitorException(anInstance.displayName() + " does not exist on " + _hostName + "; command failed");
if (!anInstance.isRunning_W())
throw new MonitorException(_hostName + ": " + anInstance.displayName() + " is not running");
}