Skip to content

Commit

Permalink
Fix swap of rogueJmx and objid action
Browse files Browse the repository at this point in the history
  • Loading branch information
qtc-de committed May 14, 2024
1 parent d2e3cfe commit d080468
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions src/eu/tneitzel/rmg/operations/Dispatcher.java
Original file line number Diff line number Diff line change
Expand Up @@ -766,6 +766,29 @@ public void dispatchPortScan()
* Prints detailed information on the user specified ObjID.
*/
public void dispatchObjID()
{
try
{
String objIDString = RMGOption.OBJID_OBJID.require();

ObjID objID = RMGUtils.parseObjID(objIDString);
RMGUtils.printObjID(objID);
}

catch (RequirementException e)
{
ExceptionHandler.requirementException(e);
}

}

/**
* Creates a rogue JMX server. The target specification which normally identifies the
* remote endpoint is used to identify where the rogue JMX server should listen. An
* additional endpoint specification can be made using host:port syntax to forward jmx
* connections to.
*/
public void dispatchRogueJMX()
{
try
{
Expand Down Expand Up @@ -806,27 +829,4 @@ public void dispatchObjID()
ExceptionHandler.requirementException(e);
}
}

/**
* Creates a rogue JMX server. The target specification which normally identifies the
* remote endpoint is used to identify where the rogue JMX server should listen. An
* additional endpoint specification can be made using host:port syntax to forward jmx
* connections to.
*/
public void dispatchRogueJMX()
{
try
{
String objIDString = RMGOption.OBJID_OBJID.require();

ObjID objID = RMGUtils.parseObjID(objIDString);
RMGUtils.printObjID(objID);
}

catch (RequirementException e)
{
ExceptionHandler.requirementException(e);
}

}
}

0 comments on commit d080468

Please sign in to comment.