Skip to content

Commit

Permalink
add handy Q2.node() method
Browse files Browse the repository at this point in the history
  • Loading branch information
ar committed Jan 20, 2025
1 parent f72cadf commit 58897ac
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions jpos/src/main/java/org/jpos/q2/Q2.java
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,9 @@ public static Q2 getQ2(long timeout) {
return NameRegistrar.get(JMX_NAME, timeout);
}

public int node() {
return PGPHelper.node();
}
private boolean isXml(File f) {
return f != null && f.getName().toLowerCase().endsWith(".xml");
}
Expand Down

0 comments on commit 58897ac

Please sign in to comment.