listener.setDiameterApplicationRef("one");
return listener;
}
public PeerConfiguration createPeerConfig(String targetName) throws MBeanException {
PeerConfiguration peerConfig;
try {
peerConfig = new PeerConfiguration();
Peers peers = new Peers();
peers.setRetry("300");
peerConfig.setPeers(peers);
peerConfig.setListener(createListener(targetName));
peerConfig.setMaxThreads("10");
peerConfig.setMsgBufferSize("4096");
peerConfig.setEnableMsgPersistence("false");
DiameterApplications diaApps = new DiameterApplications();
diaApps.setId("one");
Application diaApp = new Application();
Authapp authApp = new Authapp();
authApp.setId("16777221");
diaApp.addAuthapp(authApp);
diaApp.setVendorid("10415");
diaApps.addApplication(diaApp);
peerConfig.addDiameterApplications(diaApps);
} catch (ConfigException e) {
throw new MBeanException(e);
}
return peerConfig;
}