org.jdiameter.api.MetaData.getConfiguration()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(7.2k)|赞(0)|评价(0)|浏览(95)

本文整理了Java中org.jdiameter.api.MetaData.getConfiguration()方法的一些代码示例,展示了MetaData.getConfiguration()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。MetaData.getConfiguration()方法的具体详情如下:
包路径:org.jdiameter.api.MetaData
类名称:MetaData
方法名:getConfiguration

MetaData.getConfiguration介绍

[英]Return configuration parameters
[中]返回配置参数

代码示例

代码示例来源:origin: org.mobicents.diameter/restcomm-diameter-mux-jar

private MutableConfiguration getMutableConfiguration() throws MBeanException {
 return (MutableConfiguration) stack.getMetaData().getConfiguration();
}

代码示例来源:origin: org.mobicents.diameter/restcomm-diameter-mux-jar

protected static MutableConfiguration getMutableConfiguration() {
 return (MutableConfiguration) stack.getMetaData().getConfiguration();
}

代码示例来源:origin: org.mobicents.diameter/mobicents-diameter-mux-jar

protected static MutableConfiguration getMutableConfiguration() {
 return (MutableConfiguration) stack.getMetaData().getConfiguration();
}

代码示例来源:origin: org.mobicents.diameter/mobicents-diameter-mux-jar

private MutableConfiguration getMutableConfiguration() {
 return (MutableConfiguration) stack.getMetaData().getConfiguration();
}

代码示例来源:origin: org.mobicents.diameter/mobicents-diameter-mux-jar

private MutableConfiguration getMutableConfiguration() throws MBeanException {
 return (MutableConfiguration) stack.getMetaData().getConfiguration();
}

代码示例来源:origin: org.mobicents.diameter/mobicents-diameter-mux-jar

private EmptyConfiguration getPeerConfiguration(String name) {
 XMLConfiguration configuration = (XMLConfiguration) DiameterConfiguration.stack.getMetaData().getConfiguration();
 Configuration[] peerTable = configuration.getChildren(PeerTable.ordinal());
 
 for(Configuration curPeer : peerTable) {
  if(curPeer.getStringValue(PeerName.ordinal(), DEFAULT_STRING).equals(name)) {
   return (EmptyConfiguration) curPeer;
  }
 }
 
 return null;
}

代码示例来源:origin: org.mobicents.diameter/restcomm-diameter-mux-jar

private EmptyConfiguration getPeerConfiguration(String name) {
 XMLConfiguration configuration = (XMLConfiguration) DiameterConfiguration.stack.getMetaData().getConfiguration();
 Configuration[] peerTable = configuration.getChildren(PeerTable.ordinal());
 for (Configuration curPeer : peerTable) {
  if (curPeer.getStringValue(PeerName.ordinal(), DEFAULT_STRING).equals(name)) {
   return (EmptyConfiguration) curPeer;
  }
 }
 return null;
}

代码示例来源:origin: org.mobicents.resources/mobicents-slee-ra-diameter-s6a-ra

/**
 * Initializes the RA Diameter Stack.
 * 
 * @throws Exception
 */
private synchronized void initStack() throws Exception {
 // Register in the Mux as an app listener.
 this.diameterMux.registerListener(this, (ApplicationId[]) authApplicationIds.toArray(new ApplicationId[authApplicationIds.size()]));
 // Get the stack (should not mess with)
 this.stack = this.diameterMux.getStack();
 this.messageTimeout = stack.getMetaData().getConfiguration().getLongValue(MessageTimeOut.ordinal(), (Long) MessageTimeOut.defValue());
 if (tracer.isInfoEnabled()) {
  tracer.info("Diameter S6a RA :: Successfully initialized stack.");
 }
}

代码示例来源:origin: org.mobicents.resources/mobicents-slee-ra-diameter-cca-ra

/**
 * Initializes the RA Diameter Stack.
 * 
 * @throws Exception
 */
private synchronized void initStack() throws Exception {
 // Register in the Mux as app listener.
 this.diameterMux.registerListener(this, (ApplicationId[]) authApplicationIds.toArray(new ApplicationId[authApplicationIds.size()]));
 // Get the stack (should not mess with)
 this.stack = this.diameterMux.getStack();
 this.messageTimeout = this.stack.getMetaData().getConfiguration().getLongValue(MessageTimeOut.ordinal(), (Long) MessageTimeOut.defValue());
 if(tracer.isInfoEnabled()) {
  tracer.info("Diameter CCA RA :: Successfully initialized stack.");
 }
}

代码示例来源:origin: org.mobicents.resources/restcomm-slee-ra-diameter-cx-dx-ra

/**
 * Initializes the RA Diameter Stack.
 * 
 * @throws Exception
 */
private synchronized void initStack() throws Exception {
 // Register in the Mux as an app listener.
 this.diameterMux.registerListener(this, (ApplicationId[]) authApplicationIds.toArray(new ApplicationId[authApplicationIds.size()]));
 // Get the stack (should not mess with)
 this.stack = this.diameterMux.getStack();
 this.messageTimeout = stack.getMetaData().getConfiguration().getLongValue(MessageTimeOut.ordinal(), (Long) MessageTimeOut.defValue());
 if(tracer.isInfoEnabled()) {
  tracer.info("Diameter Cx/Dx RA :: Successfully initialized stack.");
 }
}
private void initActivitiesMgmt() {

代码示例来源:origin: org.mobicents.resources/restcomm-slee-ra-diameter-sh-client-ra

/**
 * Initializes the RA Diameter Stack.
 * 
 * @throws Exception
 */
private synchronized void initStack() throws Exception {
 // Register in the Mux as a Sh app listener.
 this.diameterMux.registerListener(this, (ApplicationId[]) authApplicationIds.toArray(new ApplicationId[authApplicationIds.size()]));
 // Get the stack (should not mess with)
 this.stack = this.diameterMux.getStack();
 this.messageTimeout = stack.getMetaData().getConfiguration().getLongValue(MessageTimeOut.ordinal(), (Long) MessageTimeOut.defValue());
 if(tracer.isInfoEnabled()) {
  tracer.info("Diameter ShClient RA :: Successfully initialized stack.");
 }
}
private void initActivitiesMgmt()

代码示例来源:origin: org.mobicents.resources/restcomm-slee-ra-diameter-base-ra

/**
 * Initializes the RA Diameter Stack.
 * 
 * @throws Exception
 */
private synchronized void initStack() throws Exception {
 // Register in the Mux as app listener.
 List<ApplicationId> allAppIds = new ArrayList<ApplicationId>();
 allAppIds.addAll(authApplicationIds);
 allAppIds.addAll(acctApplicationIds);
 this.diameterMux.registerListener( this, allAppIds.toArray(new ApplicationId[allAppIds.size()]));
 // Get the stack (should not mess with)
 this.stack = this.diameterMux.getStack();
 this.messageTimeout = stack.getMetaData().getConfiguration().getLongValue(MessageTimeOut.ordinal(), (Long) MessageTimeOut.defValue());
 // Obtain parser and store it in AvpUtilities
 MessageParser parser = ((IContainer)stack).getAssemblerFacility().getComponentInstance(MessageParser.class);
 AvpUtilities.setParser(parser);
 AvpUtilities.setDictionary(stack.getDictionary());
 if(tracer.isInfoEnabled()) {
  tracer.info("Diameter Base RA :: Successfully initialized stack.");
 }
}
private void initActivitiesMgmt() {

代码示例来源:origin: org.mobicents.resources/mobicents-slee-ra-diameter-base-ra

/**
 * Initializes the RA Diameter Stack.
 * 
 * @throws Exception
 */
private synchronized void initStack() throws Exception {
 // Register in the Mux as app listener.
 List<ApplicationId> allAppIds = new ArrayList<ApplicationId>();
 allAppIds.addAll(authApplicationIds);
 allAppIds.addAll(acctApplicationIds);
 this.diameterMux.registerListener( this, allAppIds.toArray(new ApplicationId[allAppIds.size()]));
 // Get the stack (should not mess with)
 this.stack = this.diameterMux.getStack();
 this.messageTimeout = stack.getMetaData().getConfiguration().getLongValue(MessageTimeOut.ordinal(), (Long) MessageTimeOut.defValue());
 // Obtain parser and store it in AvpUtilities
 MessageParser parser = ((IContainer)stack).getAssemblerFacility().getComponentInstance(MessageParser.class);
 AvpUtilities.setParser(parser);
 AvpUtilities.setDictionary(stack.getDictionary());
 if(tracer.isInfoEnabled()) {
  tracer.info("Diameter Base RA :: Successfully initialized stack.");
 }
}
private void initActivitiesMgmt() {

代码示例来源:origin: org.mobicents.diameter/restcomm-diameter-mux-jar

MutableConfiguration config = (MutableConfiguration) stack.getMetaData().getConfiguration();

代码示例来源:origin: org.mobicents.diameter/mobicents-diameter-mux-jar

MutableConfiguration config = (MutableConfiguration) stack.getMetaData().getConfiguration();

相关文章