switch (rel) {
case E2E: {
String chains = AgentFailChainSink.genE2EChain(thriftlist
.toArray(new String[0]));
LOG.info("Setting failover chain to " + chains);
snk = new CompositeSink(context, chains);
break;
}
case DFO: {
String chains = AgentFailChainSink.genDfoChain(thriftlist
.toArray(new String[0]));
LOG.info("Setting failover chain to " + chains);
snk = new CompositeSink(context, chains);
break;
}
case BE: {
String chains = AgentFailChainSink.genBestEffortChain(thriftlist
.toArray(new String[0]));
LOG.info("Setting failover chain to " + chains);
snk = new CompositeSink(context, chains);
break;
}
default: {
throw new FlumeSpecException("Unknown relability " + rel);
}