if (filename == null)
{
throw new IllegalArgumentException("New filename must not be null");
}
response = server.sendAction(new ChangeMonitorAction(name, filename));
if (response instanceof ManagerError)
{
throw new NoSuchChannelException("Channel '" + name + "' is not available: " + response.getMessage());
}
}