protected void doUnknownAgent(UnknownAgent uA) {
AgentId agId = uA.agent;
Notification not = uA.not;
if (not instanceof ClusterJoinNot) {
ClusterJoinNot cT = (ClusterJoinNot) not;
logger.log(BasicLevel.ERROR, "Cluster join failed: " + uA.agent + " unknown.");
String info = "Cluster join failed: Unknown destination.";
replyToTopic(new AdminReply(AdminReply.BAD_CLUSTER_REQUEST, info), cT.getReplyTo(),
cT.getRequestMsgId(), cT.getReplyMsgId());
} else if (not instanceof ClusterJoinAck || not instanceof ClusterRemoveNot) {
logger.log(BasicLevel.ERROR, "Cluster error: " + uA.agent + " unknown. "
+ "The topic has probably been removed in the meantime.");
clusterRemove(agId);
} else {