Skip to content

Commit

Permalink
Final touches updating code and docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Eddie Carpenter committed Aug 14, 2024
1 parent fd70762 commit db00932
Show file tree
Hide file tree
Showing 22 changed files with 888 additions and 1,209 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ This is a fork of the RestComm jDiameter Stack with a couple of enhancements don
- Added Quarkus Extension
- Updated all the dependencies to latest versions
- Removed support for SCTP protocol (Not used and deprecated for 5G)
- Reworked the jdiameter-ha component to use Infinispan as the caching provider

The project was only started in Jul 2024. The enhancement above is done, but I still need to implement a CI/CD pipeline
for the project and push the artefacts to a public repository.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[
{
"name": "org.jdiameter.impl.ha.data.CachedSessionDatasourceImpl.class",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
"queryAllPublicMethods": true,
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "org.jdiameter.impl.ha.timer.class",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
"queryAllPublicMethods": true,
"allDeclaredClasses": true,
"allPublicClasses": true
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@

package org.jdiameter.client.impl;

import java.io.InputStream;

import org.jdiameter.api.InternalException;
import org.jdiameter.api.validation.Dictionary;
import org.jdiameter.api.validation.ValidatorLevel;
import org.jdiameter.common.impl.validation.DictionaryImpl;

import java.io.InputStream;

/**
* Util class. Makes it easier to access Dictionary instance as singleton.
*
Expand All @@ -37,32 +37,39 @@
* @since 1.5.4.0-build404
*/
@SuppressWarnings("all") //3rd party lib
public class DictionarySingleton {
public class DictionarySingleton
{

private DictionarySingleton() {
private DictionarySingleton()
{
// defeat instantiation
}

public static Dictionary getDictionary() {
public static Dictionary getDictionary()
{
return DictionaryImpl.getInstance((String) null);
}

public static Dictionary getDictionary(String confFile) {
public static Dictionary getDictionary(String confFile)
{
return DictionaryImpl.getInstance(confFile);
}

public static Dictionary getDictionary(InputStream is) {
public static Dictionary getDictionary(InputStream is)
{
return DictionaryImpl.getInstance(is);
}

static void init(String clazz, boolean validatorEnabled, ValidatorLevel validatorSendLevel,
ValidatorLevel validatorReceiveLevel) throws InternalException {
ValidatorLevel validatorReceiveLevel) throws InternalException
{
try {
Class.forName(clazz).getMethod("getInstance", String.class).invoke(null, new Object[] { null });
Class.forName(clazz).getMethod("getInstance", String.class).invoke(null, new Object[]{null});
DictionaryImpl.INSTANCE.setEnabled(validatorEnabled);
DictionaryImpl.INSTANCE.setSendLevel(validatorSendLevel);
DictionaryImpl.INSTANCE.setReceiveLevel(validatorReceiveLevel);
} catch (Exception e) {
}
catch (Exception e) {
throw new InternalException(e);
}
}
Expand Down

This file was deleted.

This file was deleted.

Loading

0 comments on commit db00932

Please sign in to comment.