ClientRemotePojoFactory pojo_factory = sender.getClientRemotePojoFactory();
pojo_factory.setSendThrottled(false); // send it immediately, avoid any throttling
pojo_factory.setTimeout(10000L); // try to be quick about it, if it can't send immediately, fail fast
CoreServerService remote_pojo = pojo_factory.getRemotePojo(CoreServerService.class);
remote_pojo.agentIsShuttingDown(agent_name);
} else {
LOG.debug(AgentI18NResourceKeys.NOT_NOTIFYING_SERVER_OF_SHUTDOWN);
}
} catch (Throwable e) {
LOG.warn(AgentI18NResourceKeys.FAILED_TO_NOTIFY_SERVER_OF_SHUTDOWN, ThrowableUtil.getAllMessages(e));