Class JRockitJDPPacketDecoder


  • final class JRockitJDPPacketDecoder
    extends java.lang.Object
    This class provides compatibility with the old style JRockit JDP packets.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static char DELIMITER  
      private static java.lang.String KEY_NAME  
      private static java.lang.String KEY_SERVICE_URL  
      static java.lang.String KEY_VERSION  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean checkJRockitJDP​(byte[] data)  
      private static javax.management.remote.JMXServiceURL createServiceURL​(java.lang.String host, int port, boolean useJMXRMI)
      Creates a jmx over rmi or "jmx over rmp" service URL.
      private static void decodeExtendedInfo​(java.util.Map<java.lang.String,​java.lang.String> result, java.lang.String extendedInfo)
      Decodes the extendedInfo into the hash map.
      static java.util.Map<java.lang.String,​java.lang.String> decodeJRockitJDP​(byte[] data)  
      private static boolean useJMXMAPI​(java.lang.String token)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JRockitJDPPacketDecoder

        private JRockitJDPPacketDecoder()
    • Method Detail

      • checkJRockitJDP

        public static boolean checkJRockitJDP​(byte[] data)
      • decodeJRockitJDP

        public static java.util.Map<java.lang.String,​java.lang.String> decodeJRockitJDP​(byte[] data)
      • useJMXMAPI

        private static boolean useJMXMAPI​(java.lang.String token)
      • createServiceURL

        private static javax.management.remote.JMXServiceURL createServiceURL​(java.lang.String host,
                                                                              int port,
                                                                              boolean useJMXRMI)
                                                                       throws java.net.MalformedURLException
        Creates a jmx over rmi or "jmx over rmp" service URL.
        Parameters:
        host - the host name.
        port - port or JMXDescriptorBuilder#DEFAULT_PORT for the default port for the selected protocol
        useJMXRMI - true if JMX over RMI should be used, false to use JMX over RMP
        Returns:
        the JMXServiceURL.
        Throws:
        java.net.MalformedURLException - if the URL could not be created with the provided data.
      • decodeExtendedInfo

        private static void decodeExtendedInfo​(java.util.Map<java.lang.String,​java.lang.String> result,
                                               java.lang.String extendedInfo)
        Decodes the extendedInfo into the hash map.
        Parameters:
        result -
        extendedInfo -