Skip to content

Issue #60 Create offline SNMP client - #65

Merged
NassimBtk merged 6 commits into
mainfrom
feature/issue-60-Create-offline-snmp-client
Oct 3, 2025
Merged

NassimBtk merged 6 commits into
mainfrom
feature/issue-60-Create-offline-snmp-client

Conversation

@MedMaalej

Copy link
Copy Markdown
Contributor
  • Develop OfflineSnmpFileClient
  • Add a unified abstraction (interface) that both SnmpClient and OfflineSnmpClient can implement

* Develop a new client for testing in emulation mode
@MedMaalej MedMaalej self-assigned this Aug 27, 2025

@Override
public String walk(String oid) {
return "";

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We ca n return the full result here from this oid.

import java.util.NavigableMap;
import java.util.TreeMap;

public final class OfflineSnmpFileClient implements ISnmpClient {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing Javadoc.

*/
public interface ISnmpClient {

/** SNMP <em>GET</em>. */

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update javadoc.

/** SNMP <em>GET</em>. */
String get(String oid) throws Exception;

/** SNMP <em>GETNEXT</em>. */

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update javadoc.

return s.startsWith(".") ? s.substring(1) : s;
}

String walk(String oid) throws Exception;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing Javadoc.

* Update code after review
* Add unit test
@MedMaalej
MedMaalej force-pushed the feature/issue-60-Create-offline-snmp-client branch from db77a4a to 6628aa5 Compare September 4, 2025 08:26
* Refactor code and add missing final keyword
@MedMaalej
MedMaalej marked this pull request as ready for review September 4, 2025 08:37
* Rename the client
* Iterate on the walk file directory
* Update the tests
@MedMaalej
MedMaalej force-pushed the feature/issue-60-Create-offline-snmp-client branch from da29480 to 0fb4716 Compare September 15, 2025 13:23
@NassimBtk
NassimBtk merged commit 33308bf into main Oct 3, 2025
4 checks passed
@NassimBtk
NassimBtk deleted the feature/issue-60-Create-offline-snmp-client branch October 3, 2025 09:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants