Exemplo n.º 1
0
 @Override
 public String parseArgs(String s) {
   portno = Integer.parseInt(s);
   ChukwaConfiguration cc = new ChukwaConfiguration();
   for (FacilityType e : FacilityType.values()) {
     StringBuilder buffer = new StringBuilder();
     buffer.append("syslog.adaptor.port.");
     buffer.append(portno);
     buffer.append(".facility.");
     buffer.append(e.name());
     String dataType = cc.get(buffer.toString(), e.name());
     facilityMap.put(e.ordinal(), dataType);
   }
   return s;
 }
Exemplo n.º 2
0
 public SyslogAdaptor() {
   facilityMap = new HashMap<Integer, String>(FacilityType.values().length);
 }