Skip to content

Commit

Permalink
Ignite-67 IGNITE_JMX_PORT
Browse files Browse the repository at this point in the history
  • Loading branch information
avinogradov committed Jan 28, 2015
1 parent 9aead01 commit ffbf59c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bin/ggstart.bat
Expand Up @@ -125,7 +125,7 @@ set RESTART_SUCCESS_OPT=-DIGNITE_SUCCESS_FILE=%RESTART_SUCCESS_FILE%
::
:: Find available port for JMX
::
:: You can specify GRIDGAIN_JMX_PORT environment variable for overriding automatically found JMX port
:: You can specify IGNITE_JMX_PORT environment variable for overriding automatically found JMX port
::
for /F "tokens=*" %%A in ('""%JAVA_HOME%\bin\java" -cp %CP% org.gridgain.grid.util.portscanner.GridJmxPortFinder"') do (
set JMX_PORT=%%A
Expand Down
2 changes: 1 addition & 1 deletion bin/ggstart.sh
Expand Up @@ -67,7 +67,7 @@ RESTART_SUCCESS_OPT="-DIGNITE_SUCCESS_FILE=${RESTART_SUCCESS_FILE}"
#
# Find available port for JMX
#
# You can specify GRIDGAIN_JMX_PORT environment variable for overriding automatically found JMX port
# You can specify IGNITE_JMX_PORT environment variable for overriding automatically found JMX port
#
findAvailableJmxPort

Expand Down
Expand Up @@ -28,7 +28,7 @@
*/
public class GridJmxPortFinder {
/** Environment variable for overriding JMX port. */
public static final String GG_JMX_PORT = "GRIDGAIN_JMX_PORT";
public static final String IGNITE_JMX_PORT = "IGNITE_JMX_PORT";

/** Minimum port number. */
private static final int MIN_PORT = 49112;
Expand Down Expand Up @@ -59,7 +59,7 @@ public static void main(String[] args) {
return;
}

int jmxPort = IgniteSystemProperties.getInteger(GG_JMX_PORT, -1);
int jmxPort = IgniteSystemProperties.getInteger(IGNITE_JMX_PORT, -1);

if (jmxPort != -1) {
System.out.println(jmxPort);
Expand Down

0 comments on commit ffbf59c

Please sign in to comment.