sun.management.jdp.JdpException Java Examples
The following examples show how to use
sun.management.jdp.JdpException.
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: JdpClient.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
private void checkFieldPresence(JdpJmxPacket p) throws IOException, JdpException { byte[] b = p.getPacketData(); JdpPacketReader reader = new JdpPacketReader(b); Map<String, String> pMap = reader.getDiscoveryDataAsMap(); get(pMap, JdpJmxPacket.UUID_KEY); get(pMap, JdpJmxPacket.MAIN_CLASS_KEY); get(pMap, JdpJmxPacket.JMX_SERVICE_URL_KEY); // get(pMap, JdpJmxPacket.INSTANCE_NAME_KEY); get(pMap, JdpJmxPacket.PROCESS_ID_KEY); get(pMap, JdpJmxPacket.BROADCAST_INTERVAL_KEY); get(pMap, JdpJmxPacket.RMI_HOSTNAME_KEY); }
Example #2
Source File: JdpClient.java From hottub with GNU General Public License v2.0 | 6 votes |
private void checkFieldPresence(JdpJmxPacket p) throws IOException, JdpException { byte[] b = p.getPacketData(); JdpPacketReader reader = new JdpPacketReader(b); Map<String, String> pMap = reader.getDiscoveryDataAsMap(); get(pMap, JdpJmxPacket.UUID_KEY); get(pMap, JdpJmxPacket.MAIN_CLASS_KEY); get(pMap, JdpJmxPacket.JMX_SERVICE_URL_KEY); // get(pMap, JdpJmxPacket.INSTANCE_NAME_KEY); get(pMap, JdpJmxPacket.PROCESS_ID_KEY); get(pMap, JdpJmxPacket.BROADCAST_INTERVAL_KEY); get(pMap, JdpJmxPacket.RMI_HOSTNAME_KEY); }
Example #3
Source File: JdpClient.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
private void checkFieldPresence(JdpJmxPacket p) throws IOException, JdpException { byte[] b = p.getPacketData(); JdpPacketReader reader = new JdpPacketReader(b); Map<String, String> pMap = reader.getDiscoveryDataAsMap(); get(pMap, JdpJmxPacket.UUID_KEY); get(pMap, JdpJmxPacket.MAIN_CLASS_KEY); get(pMap, JdpJmxPacket.JMX_SERVICE_URL_KEY); // get(pMap, JdpJmxPacket.INSTANCE_NAME_KEY); get(pMap, JdpJmxPacket.PROCESS_ID_KEY); get(pMap, JdpJmxPacket.BROADCAST_INTERVAL_KEY); get(pMap, JdpJmxPacket.RMI_HOSTNAME_KEY); }
Example #4
Source File: JdpClient.java From jdk8u-jdk with GNU General Public License v2.0 | 6 votes |
private void checkFieldPresence(JdpJmxPacket p) throws IOException, JdpException { byte[] b = p.getPacketData(); JdpPacketReader reader = new JdpPacketReader(b); Map<String, String> pMap = reader.getDiscoveryDataAsMap(); get(pMap, JdpJmxPacket.UUID_KEY); get(pMap, JdpJmxPacket.MAIN_CLASS_KEY); get(pMap, JdpJmxPacket.JMX_SERVICE_URL_KEY); // get(pMap, JdpJmxPacket.INSTANCE_NAME_KEY); get(pMap, JdpJmxPacket.PROCESS_ID_KEY); get(pMap, JdpJmxPacket.BROADCAST_INTERVAL_KEY); get(pMap, JdpJmxPacket.RMI_HOSTNAME_KEY); }
Example #5
Source File: JdpClient.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
private void checkFieldPresence(JdpJmxPacket p) throws IOException, JdpException { byte[] b = p.getPacketData(); JdpPacketReader reader = new JdpPacketReader(b); Map<String, String> pMap = reader.getDiscoveryDataAsMap(); get(pMap, JdpJmxPacket.UUID_KEY); get(pMap, JdpJmxPacket.MAIN_CLASS_KEY); get(pMap, JdpJmxPacket.JMX_SERVICE_URL_KEY); // get(pMap, JdpJmxPacket.INSTANCE_NAME_KEY); get(pMap, JdpJmxPacket.PROCESS_ID_KEY); get(pMap, JdpJmxPacket.BROADCAST_INTERVAL_KEY); get(pMap, JdpJmxPacket.RMI_HOSTNAME_KEY); }
Example #6
Source File: JdpClient.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
private void checkFieldPresence(JdpJmxPacket p) throws IOException, JdpException { byte[] b = p.getPacketData(); JdpPacketReader reader = new JdpPacketReader(b); Map<String, String> pMap = reader.getDiscoveryDataAsMap(); get(pMap, JdpJmxPacket.UUID_KEY); get(pMap, JdpJmxPacket.MAIN_CLASS_KEY); get(pMap, JdpJmxPacket.JMX_SERVICE_URL_KEY); // get(pMap, JdpJmxPacket.INSTANCE_NAME_KEY); get(pMap, JdpJmxPacket.PROCESS_ID_KEY); get(pMap, JdpJmxPacket.BROADCAST_INTERVAL_KEY); get(pMap, JdpJmxPacket.RMI_HOSTNAME_KEY); }
Example #7
Source File: JdpClient.java From jdk8u_jdk with GNU General Public License v2.0 | 6 votes |
private void checkFieldPresence(JdpJmxPacket p) throws IOException, JdpException { byte[] b = p.getPacketData(); JdpPacketReader reader = new JdpPacketReader(b); Map<String, String> pMap = reader.getDiscoveryDataAsMap(); get(pMap, JdpJmxPacket.UUID_KEY); get(pMap, JdpJmxPacket.MAIN_CLASS_KEY); get(pMap, JdpJmxPacket.JMX_SERVICE_URL_KEY); // get(pMap, JdpJmxPacket.INSTANCE_NAME_KEY); get(pMap, JdpJmxPacket.PROCESS_ID_KEY); get(pMap, JdpJmxPacket.BROADCAST_INTERVAL_KEY); get(pMap, JdpJmxPacket.RMI_HOSTNAME_KEY); }
Example #8
Source File: JdpClient.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
private void checkFieldPresence(JdpJmxPacket p) throws IOException, JdpException { byte[] b = p.getPacketData(); JdpPacketReader reader = new JdpPacketReader(b); Map<String, String> pMap = reader.getDiscoveryDataAsMap(); get(pMap, JdpJmxPacket.UUID_KEY); get(pMap, JdpJmxPacket.MAIN_CLASS_KEY); get(pMap, JdpJmxPacket.JMX_SERVICE_URL_KEY); // get(pMap, JdpJmxPacket.INSTANCE_NAME_KEY); get(pMap, JdpJmxPacket.PROCESS_ID_KEY); get(pMap, JdpJmxPacket.BROADCAST_INTERVAL_KEY); get(pMap, JdpJmxPacket.RMI_HOSTNAME_KEY); }
Example #9
Source File: JdpClient.java From dragonwell8_jdk with GNU General Public License v2.0 | 6 votes |
private void checkFieldPresence(JdpJmxPacket p) throws IOException, JdpException { byte[] b = p.getPacketData(); JdpPacketReader reader = new JdpPacketReader(b); Map<String, String> pMap = reader.getDiscoveryDataAsMap(); get(pMap, JdpJmxPacket.UUID_KEY); get(pMap, JdpJmxPacket.MAIN_CLASS_KEY); get(pMap, JdpJmxPacket.JMX_SERVICE_URL_KEY); // get(pMap, JdpJmxPacket.INSTANCE_NAME_KEY); get(pMap, JdpJmxPacket.PROCESS_ID_KEY); get(pMap, JdpJmxPacket.BROADCAST_INTERVAL_KEY); get(pMap, JdpJmxPacket.RMI_HOSTNAME_KEY); }
Example #10
Source File: JdpClient.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
private void checkFieldPresence(JdpJmxPacket p) throws IOException, JdpException { byte[] b = p.getPacketData(); JdpPacketReader reader = new JdpPacketReader(b); Map<String, String> pMap = reader.getDiscoveryDataAsMap(); get(pMap, JdpJmxPacket.UUID_KEY); get(pMap, JdpJmxPacket.MAIN_CLASS_KEY); get(pMap, JdpJmxPacket.JMX_SERVICE_URL_KEY); // get(pMap, JdpJmxPacket.INSTANCE_NAME_KEY); get(pMap, JdpJmxPacket.PROCESS_ID_KEY); get(pMap, JdpJmxPacket.BROADCAST_INTERVAL_KEY); get(pMap, JdpJmxPacket.RMI_HOSTNAME_KEY); }
Example #11
Source File: JdpClient.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 6 votes |
private void checkFieldPresence(JdpJmxPacket p) throws IOException, JdpException { byte[] b = p.getPacketData(); JdpPacketReader reader = new JdpPacketReader(b); Map<String, String> pMap = reader.getDiscoveryDataAsMap(); get(pMap, JdpJmxPacket.UUID_KEY); get(pMap, JdpJmxPacket.MAIN_CLASS_KEY); get(pMap, JdpJmxPacket.JMX_SERVICE_URL_KEY); // get(pMap, JdpJmxPacket.INSTANCE_NAME_KEY); get(pMap, JdpJmxPacket.PROCESS_ID_KEY); get(pMap, JdpJmxPacket.BROADCAST_INTERVAL_KEY); get(pMap, JdpJmxPacket.RMI_HOSTNAME_KEY); }
Example #12
Source File: JdpClient.java From jdk8u-jdk with GNU General Public License v2.0 | 6 votes |
private void checkFieldPresence(JdpJmxPacket p) throws IOException, JdpException { byte[] b = p.getPacketData(); JdpPacketReader reader = new JdpPacketReader(b); Map<String, String> pMap = reader.getDiscoveryDataAsMap(); get(pMap, JdpJmxPacket.UUID_KEY); get(pMap, JdpJmxPacket.MAIN_CLASS_KEY); get(pMap, JdpJmxPacket.JMX_SERVICE_URL_KEY); // get(pMap, JdpJmxPacket.INSTANCE_NAME_KEY); get(pMap, JdpJmxPacket.PROCESS_ID_KEY); get(pMap, JdpJmxPacket.BROADCAST_INTERVAL_KEY); get(pMap, JdpJmxPacket.RMI_HOSTNAME_KEY); }
Example #13
Source File: JdpDoSomething.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 5 votes |
public static void compaireJdpPacketEx(JdpJmxPacket p1, JdpJmxPacket p2) throws JdpException { if (!Objects.equals(p1, p1)) { throw new JdpException("Packet mismatch error"); } if (!Objects.equals(p1.getMainClass(), p2.getMainClass())) { throw new JdpException("Packet mismatch error (main class)"); } if (!Objects.equals(p1.getInstanceName(), p2.getInstanceName())) { throw new JdpException("Packet mismatch error (instance name)"); } }
Example #14
Source File: JdpUnitTest.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 5 votes |
public static void startFakeDiscoveryService() throws IOException, JdpException { String discoveryPort = System.getProperty("com.sun.management.jdp.port"); String discoveryAddress = System.getProperty("com.sun.management.jdp.address"); InetAddress address = InetAddress.getByName(discoveryAddress); int port = Integer.parseInt(discoveryPort); JdpController.startDiscoveryService(address, port, "FakeDiscovery", "fake://unit-test"); }
Example #15
Source File: JdpDoSomething.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
public static void compaireJdpPacketEx(JdpJmxPacket p1, JdpJmxPacket p2) throws JdpException { if (!Objects.equals(p1, p1)) { throw new JdpException("Packet mismatch error"); } if (!Objects.equals(p1.getMainClass(), p2.getMainClass())) { throw new JdpException("Packet mismatch error (main class)"); } if (!Objects.equals(p1.getInstanceName(), p2.getInstanceName())) { throw new JdpException("Packet mismatch error (instance name)"); } }
Example #16
Source File: JdpClient.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
private void get(Map<?, ?> map, String key) throws JdpException { if (map.get(key) == null) { throw new JdpException("Test failed, packet field " + key + " missed"); } }
Example #17
Source File: JdpUnitTest.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
public static void startFakeDiscoveryService() throws IOException, JdpException { String discoveryPort = System.getProperty("com.sun.management.jdp.port"); String discoveryAddress = System.getProperty("com.sun.management.jdp.address"); InetAddress address = InetAddress.getByName(discoveryAddress); int port = Integer.parseInt(discoveryPort); JdpController.startDiscoveryService(address, port, "FakeDiscovery", "fake://unit-test"); }
Example #18
Source File: JdpDoSomething.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
public static void compaireJdpPacketEx(JdpJmxPacket p1, JdpJmxPacket p2) throws JdpException { if (!Objects.equals(p1, p1)) { throw new JdpException("Packet mismatch error"); } if (!Objects.equals(p1.getMainClass(), p2.getMainClass())) { throw new JdpException("Packet mismatch error (main class)"); } if (!Objects.equals(p1.getInstanceName(), p2.getInstanceName())) { throw new JdpException("Packet mismatch error (instance name)"); } }
Example #19
Source File: JdpClient.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
private void get(Map<?, ?> map, String key) throws JdpException { if (map.get(key) == null) { throw new JdpException("Test failed, packet field " + key + " missed"); } }
Example #20
Source File: JdpClient.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 5 votes |
private void get(Map<?, ?> map, String key) throws JdpException { if (map.get(key) == null) { throw new JdpException("Test failed, packet field " + key + " missed"); } }
Example #21
Source File: JdpUnitTest.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
public static void startFakeDiscoveryService() throws IOException, JdpException { String discoveryPort = System.getProperty("com.sun.management.jdp.port"); String discoveryAddress = System.getProperty("com.sun.management.jdp.address"); InetAddress address = InetAddress.getByName(discoveryAddress); int port = Integer.parseInt(discoveryPort); JdpController.startDiscoveryService(address, port, "FakeDiscovery", "fake://unit-test"); }
Example #22
Source File: JdpDoSomething.java From jdk8u_jdk with GNU General Public License v2.0 | 5 votes |
public static void compaireJdpPacketEx(JdpJmxPacket p1, JdpJmxPacket p2) throws JdpException { if (!Objects.equals(p1, p1)) { throw new JdpException("Packet mismatch error"); } if (!Objects.equals(p1.getMainClass(), p2.getMainClass())) { throw new JdpException("Packet mismatch error (main class)"); } if (!Objects.equals(p1.getInstanceName(), p2.getInstanceName())) { throw new JdpException("Packet mismatch error (instance name)"); } }
Example #23
Source File: JdpClient.java From jdk8u_jdk with GNU General Public License v2.0 | 5 votes |
private void get(Map<?, ?> map, String key) throws JdpException { if (map.get(key) == null) { throw new JdpException("Test failed, packet field " + key + " missed"); } }
Example #24
Source File: JdpUnitTest.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
public static void startFakeDiscoveryService() throws IOException, JdpException { String discoveryPort = System.getProperty("com.sun.management.jdp.port"); String discoveryAddress = System.getProperty("com.sun.management.jdp.address"); InetAddress address = InetAddress.getByName(discoveryAddress); int port = Integer.parseInt(discoveryPort); JdpController.startDiscoveryService(address, port, "FakeDiscovery", "fake://unit-test"); }
Example #25
Source File: JdpUnitTest.java From jdk8u_jdk with GNU General Public License v2.0 | 5 votes |
public static void startFakeDiscoveryService() throws IOException, JdpException { String discoveryPort = System.getProperty("com.sun.management.jdp.port"); String discoveryAddress = System.getProperty("com.sun.management.jdp.address"); InetAddress address = InetAddress.getByName(discoveryAddress); int port = Integer.parseInt(discoveryPort); JdpController.startDiscoveryService(address, port, "FakeDiscovery", "fake://unit-test"); }
Example #26
Source File: JdpDoSomething.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
public static void compaireJdpPacketEx(JdpJmxPacket p1, JdpJmxPacket p2) throws JdpException { if (!Objects.equals(p1, p1)) { throw new JdpException("Packet mismatch error"); } if (!Objects.equals(p1.getMainClass(), p2.getMainClass())) { throw new JdpException("Packet mismatch error (main class)"); } if (!Objects.equals(p1.getInstanceName(), p2.getInstanceName())) { throw new JdpException("Packet mismatch error (instance name)"); } }
Example #27
Source File: JdpUnitTest.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
public static void startFakeDiscoveryService() throws IOException, JdpException { String discoveryPort = System.getProperty("com.sun.management.jdp.port"); String discoveryAddress = System.getProperty("com.sun.management.jdp.address"); InetAddress address = InetAddress.getByName(discoveryAddress); int port = Integer.parseInt(discoveryPort); JdpController.startDiscoveryService(address, port, "FakeDiscovery", "fake://unit-test"); }
Example #28
Source File: JdpClient.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
private void get(Map<?, ?> map, String key) throws JdpException { if (map.get(key) == null) { throw new JdpException("Test failed, packet field " + key + " missed"); } }
Example #29
Source File: JdpUnitTest.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
public static void startFakeDiscoveryService() throws IOException, JdpException { String discoveryPort = System.getProperty("com.sun.management.jdp.port"); String discoveryAddress = System.getProperty("com.sun.management.jdp.address"); InetAddress address = InetAddress.getByName(discoveryAddress); int port = Integer.parseInt(discoveryPort); JdpController.startDiscoveryService(address, port, "FakeDiscovery", "fake://unit-test"); }
Example #30
Source File: JdpClient.java From dragonwell8_jdk with GNU General Public License v2.0 | 5 votes |
private void get(Map<?, ?> map, String key) throws JdpException { if (map.get(key) == null) { throw new JdpException("Test failed, packet field " + key + " missed"); } }