javax.management.remote.rmi.RMIServer Java Examples
The following examples show how to use
javax.management.remote.rmi.RMIServer.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ImplVersionCommand.java From dragonwell8_jdk with GNU General Public License v2.0 | 5 votes |
public static void main(String[] args) throws Exception { // Create RMIJRMPServerImpl // System.out.println("Create RMIJRMPServerImpl"); RMIServer server = new RMIJRMPServerImpl(0, null, null, null); // Get the JMX Remote impl version from RMIServer // System.out.println("Get JMX Remote implementation version from RMIServer"); String full_version = server.getVersion(); System.out.println("RMIServer.getVersion() = "+ full_version); String impl_version = full_version.substring( full_version.indexOf("java_runtime_")+"java_runtime_".length()); // Display JMX Remote impl version and Java Runtime version // System.out.println("JMX Remote implementation version = " + impl_version); System.out.println("Java Runtime implementation version = " + args[0]); // Check JMX Remote impl version vs. Java Runtime version // if (!impl_version.equals(args[0])) { // Test FAILED throw new IllegalArgumentException( "***FAILED: JMX Remote and Java Runtime versions do NOT match***"); } // Test OK! System.out.println("JMX Remote and Java Runtime versions match."); System.out.println("Bye! Bye!"); }
Example #2
Source File: ImplVersionCommand.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
public static void main(String[] args) throws Exception { // Create RMIJRMPServerImpl // System.out.println("Create RMIJRMPServerImpl"); RMIServer server = new RMIJRMPServerImpl(0, null, null, null); // Get the JMX Remote impl version from RMIServer // System.out.println("Get JMX Remote implementation version from RMIServer"); String full_version = server.getVersion(); System.out.println("RMIServer.getVersion() = "+ full_version); String impl_version = full_version.substring( full_version.indexOf("java_runtime_")+"java_runtime_".length()); // Display JMX Remote impl version and Java Runtime version // System.out.println("JMX Remote implementation version = " + impl_version); System.out.println("Java Runtime implementation version = " + args[0]); // Check JMX Remote impl version vs. Java Runtime version // if (!impl_version.equals(args[0])) { // Test FAILED throw new IllegalArgumentException( "***FAILED: JMX Remote and Java Runtime versions do NOT match***"); } // Test OK! System.out.println("JMX Remote and Java Runtime versions match."); System.out.println("Bye! Bye!"); }
Example #3
Source File: ImplVersionCommand.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
public static void main(String[] args) throws Exception { // Create RMIJRMPServerImpl // System.out.println("Create RMIJRMPServerImpl"); RMIServer server = new RMIJRMPServerImpl(0, null, null, null); // Get the JMX Remote impl version from RMIServer // System.out.println("Get JMX Remote implementation version from RMIServer"); String full_version = server.getVersion(); System.out.println("RMIServer.getVersion() = "+ full_version); String impl_version = full_version.substring( full_version.indexOf("java_runtime_")+"java_runtime_".length()); // Display JMX Remote impl version and Java Runtime version // System.out.println("JMX Remote implementation version = " + impl_version); System.out.println("Java Runtime implementation version = " + args[0]); // Check JMX Remote impl version vs. Java Runtime version // if (!impl_version.equals(args[0])) { // Test FAILED throw new IllegalArgumentException( "***FAILED: JMX Remote and Java Runtime versions do NOT match***"); } // Test OK! System.out.println("JMX Remote and Java Runtime versions match."); System.out.println("Bye! Bye!"); }
Example #4
Source File: ImplVersionCommand.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
public static void main(String[] args) throws Exception { // Create RMIJRMPServerImpl // System.out.println("Create RMIJRMPServerImpl"); RMIServer server = new RMIJRMPServerImpl(0, null, null, null); // Get the JMX Remote impl version from RMIServer // System.out.println("Get JMX Remote implementation version from RMIServer"); String full_version = server.getVersion(); System.out.println("RMIServer.getVersion() = "+ full_version); String impl_version = full_version.substring( full_version.indexOf("java_runtime_")+"java_runtime_".length()); // Display JMX Remote impl version and Java Runtime version // System.out.println("JMX Remote implementation version = " + impl_version); System.out.println("Java Runtime implementation version = " + args[0]); // Check JMX Remote impl version vs. Java Runtime version // if (!impl_version.equals(args[0])) { // Test FAILED throw new IllegalArgumentException( "***FAILED: JMX Remote and Java Runtime versions do NOT match***"); } // Test OK! System.out.println("JMX Remote and Java Runtime versions match."); System.out.println("Bye! Bye!"); }
Example #5
Source File: ImplVersionCommand.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
public static void main(String[] args) throws Exception { // Create RMIJRMPServerImpl // System.out.println("Create RMIJRMPServerImpl"); RMIServer server = new RMIJRMPServerImpl(0, null, null, null); // Get the JMX Remote impl version from RMIServer // System.out.println("Get JMX Remote implementation version from RMIServer"); String full_version = server.getVersion(); System.out.println("RMIServer.getVersion() = "+ full_version); String impl_version = full_version.substring( full_version.indexOf("java_runtime_")+"java_runtime_".length()); // Display JMX Remote impl version and Java Runtime version // System.out.println("JMX Remote implementation version = " + impl_version); System.out.println("Java Runtime implementation version = " + args[0]); // Check JMX Remote impl version vs. Java Runtime version // if (!impl_version.equals(args[0])) { // Test FAILED throw new IllegalArgumentException( "***FAILED: JMX Remote and Java Runtime versions do NOT match***"); } // Test OK! System.out.println("JMX Remote and Java Runtime versions match."); System.out.println("Bye! Bye!"); }
Example #6
Source File: ImplVersionCommand.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public static void main(String[] args) throws Exception { // Create RMIJRMPServerImpl // System.out.println("Create RMIJRMPServerImpl"); RMIServer server = new RMIJRMPServerImpl(0, null, null, null); // Get the JMX Remote impl version from RMIServer // System.out.println("Get JMX Remote implementation version from RMIServer"); String full_version = server.getVersion(); System.out.println("RMIServer.getVersion() = "+ full_version); String impl_version = full_version.substring( full_version.indexOf("java_runtime_")+"java_runtime_".length()); // Display JMX Remote impl version and Java Runtime version // System.out.println("JMX Remote implementation version = " + impl_version); System.out.println("Java Runtime implementation version = " + args[0]); // Check JMX Remote impl version vs. Java Runtime version // if (!impl_version.equals(args[0])) { // Test FAILED throw new IllegalArgumentException( "***FAILED: JMX Remote and Java Runtime versions do NOT match***"); } // Test OK! System.out.println("JMX Remote and Java Runtime versions match."); System.out.println("Bye! Bye!"); }
Example #7
Source File: ImplVersionCommand.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
public static void main(String[] args) throws Exception { // Create RMIJRMPServerImpl // System.out.println("Create RMIJRMPServerImpl"); RMIServer server = new RMIJRMPServerImpl(0, null, null, null); // Get the JMX Remote impl version from RMIServer // System.out.println("Get JMX Remote implementation version from RMIServer"); String full_version = server.getVersion(); System.out.println("RMIServer.getVersion() = "+ full_version); String impl_version = full_version.substring( full_version.indexOf("java_runtime_")+"java_runtime_".length()); // Display JMX Remote impl version and Java Runtime version // System.out.println("JMX Remote implementation version = " + impl_version); System.out.println("Java Runtime implementation version = " + args[0]); // Check JMX Remote impl version vs. Java Runtime version // if (!impl_version.equals(args[0])) { // Test FAILED throw new IllegalArgumentException( "***FAILED: JMX Remote and Java Runtime versions do NOT match***"); } // Test OK! System.out.println("JMX Remote and Java Runtime versions match."); System.out.println("Bye! Bye!"); }
Example #8
Source File: ImplVersionCommand.java From hottub with GNU General Public License v2.0 | 5 votes |
public static void main(String[] args) throws Exception { // Create RMIJRMPServerImpl // System.out.println("Create RMIJRMPServerImpl"); RMIServer server = new RMIJRMPServerImpl(0, null, null, null); // Get the JMX Remote impl version from RMIServer // System.out.println("Get JMX Remote implementation version from RMIServer"); String full_version = server.getVersion(); System.out.println("RMIServer.getVersion() = "+ full_version); String impl_version = full_version.substring( full_version.indexOf("java_runtime_")+"java_runtime_".length()); // Display JMX Remote impl version and Java Runtime version // System.out.println("JMX Remote implementation version = " + impl_version); System.out.println("Java Runtime implementation version = " + args[0]); // Check JMX Remote impl version vs. Java Runtime version // if (!impl_version.equals(args[0])) { // Test FAILED throw new IllegalArgumentException( "***FAILED: JMX Remote and Java Runtime versions do NOT match***"); } // Test OK! System.out.println("JMX Remote and Java Runtime versions match."); System.out.println("Bye! Bye!"); }
Example #9
Source File: ImplVersionCommand.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
public static void main(String[] args) throws Exception { // Create RMIJRMPServerImpl // System.out.println("Create RMIJRMPServerImpl"); RMIServer server = new RMIJRMPServerImpl(0, null, null, null); // Get the JMX Remote impl version from RMIServer // System.out.println("Get JMX Remote implementation version from RMIServer"); String full_version = server.getVersion(); System.out.println("RMIServer.getVersion() = "+ full_version); String impl_version = full_version.substring( full_version.indexOf("java_runtime_")+"java_runtime_".length()); // Display JMX Remote impl version and Java Runtime version // System.out.println("JMX Remote implementation version = " + impl_version); System.out.println("Java Runtime implementation version = " + args[0]); // Check JMX Remote impl version vs. Java Runtime version // if (!impl_version.equals(args[0])) { // Test FAILED throw new IllegalArgumentException( "***FAILED: JMX Remote and Java Runtime versions do NOT match***"); } // Test OK! System.out.println("JMX Remote and Java Runtime versions match."); System.out.println("Bye! Bye!"); }
Example #10
Source File: ImplVersionCommand.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
public static void main(String[] args) throws Exception { // Create RMIJRMPServerImpl // System.out.println("Create RMIJRMPServerImpl"); RMIServer server = new RMIJRMPServerImpl(0, null, null, null); // Get the JMX Remote impl version from RMIServer // System.out.println("Get JMX Remote implementation version from RMIServer"); String full_version = server.getVersion(); System.out.println("RMIServer.getVersion() = "+ full_version); String impl_version = full_version.substring( full_version.indexOf("java_runtime_")+"java_runtime_".length()); // Display JMX Remote impl version and Java Runtime version // System.out.println("JMX Remote implementation version = " + impl_version); System.out.println("Java Runtime implementation version = " + args[0]); // Check JMX Remote impl version vs. Java Runtime version // if (!impl_version.equals(args[0])) { // Test FAILED throw new IllegalArgumentException( "***FAILED: JMX Remote and Java Runtime versions do NOT match***"); } // Test OK! System.out.println("JMX Remote and Java Runtime versions match."); System.out.println("Bye! Bye!"); }
Example #11
Source File: ImplVersionCommand.java From jdk8u_jdk with GNU General Public License v2.0 | 5 votes |
public static void main(String[] args) throws Exception { // Create RMIJRMPServerImpl // System.out.println("Create RMIJRMPServerImpl"); RMIServer server = new RMIJRMPServerImpl(0, null, null, null); // Get the JMX Remote impl version from RMIServer // System.out.println("Get JMX Remote implementation version from RMIServer"); String full_version = server.getVersion(); System.out.println("RMIServer.getVersion() = "+ full_version); String impl_version = full_version.substring( full_version.indexOf("java_runtime_")+"java_runtime_".length()); // Display JMX Remote impl version and Java Runtime version // System.out.println("JMX Remote implementation version = " + impl_version); System.out.println("Java Runtime implementation version = " + args[0]); // Check JMX Remote impl version vs. Java Runtime version // if (!impl_version.equals(args[0])) { // Test FAILED throw new IllegalArgumentException( "***FAILED: JMX Remote and Java Runtime versions do NOT match***"); } // Test OK! System.out.println("JMX Remote and Java Runtime versions match."); System.out.println("Bye! Bye!"); }
Example #12
Source File: ImplVersionCommand.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
public static void main(String[] args) throws Exception { // Create RMIJRMPServerImpl // System.out.println("Create RMIJRMPServerImpl"); RMIServer server = new RMIJRMPServerImpl(0, null, null, null); // Get the JMX Remote impl version from RMIServer // System.out.println("Get JMX Remote implementation version from RMIServer"); String full_version = server.getVersion(); System.out.println("RMIServer.getVersion() = "+ full_version); String impl_version = full_version.substring( full_version.indexOf("java_runtime_")+"java_runtime_".length()); // Display JMX Remote impl version and Java Runtime version // System.out.println("JMX Remote implementation version = " + impl_version); System.out.println("Java Runtime implementation version = " + args[0]); // Check JMX Remote impl version vs. Java Runtime version // if (!impl_version.equals(args[0])) { // Test FAILED throw new IllegalArgumentException( "***FAILED: JMX Remote and Java Runtime versions do NOT match***"); } // Test OK! System.out.println("JMX Remote and Java Runtime versions match."); System.out.println("Bye! Bye!"); }
Example #13
Source File: ImplVersionCommand.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 5 votes |
public static void main(String[] args) throws Exception { // Create RMIJRMPServerImpl // System.out.println("Create RMIJRMPServerImpl"); RMIServer server = new RMIJRMPServerImpl(0, null, null, null); // Get the JMX Remote impl version from RMIServer // System.out.println("Get JMX Remote implementation version from RMIServer"); String full_version = server.getVersion(); System.out.println("RMIServer.getVersion() = "+ full_version); String impl_version = full_version.substring( full_version.indexOf("java_runtime_")+"java_runtime_".length()); // Display JMX Remote impl version and Java Runtime version // System.out.println("JMX Remote implementation version = " + impl_version); System.out.println("Java Runtime implementation version = " + args[0]); // Check JMX Remote impl version vs. Java Runtime version // if (!impl_version.equals(args[0])) { // Test FAILED throw new IllegalArgumentException( "***FAILED: JMX Remote and Java Runtime versions do NOT match***"); } // Test OK! System.out.println("JMX Remote and Java Runtime versions match."); System.out.println("Bye! Bye!"); }