Class TCPIPProtocolID


  • public final class TCPIPProtocolID
    extends ProtocolID
    Concrete implementation of a ProtocolID used to parse a string representation of a TCPIPNodeAddress into a TCPIPNodeAddress object.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static TCPIPProtocolID instance
      Singleton instance of this class
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private TCPIPProtocolID()
      Default private constructor
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static TCPIPProtocolID getInstance()
      Gets the singleton instance of this class
      protected NodeAddress parse​(java.lang.String addressString)
      Parses a string to recreate a TCPIPNodeAddress object
      • Methods inherited from class java.lang.Object

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

      • instance

        private static TCPIPProtocolID instance
        Singleton instance of this class
    • Constructor Detail

      • TCPIPProtocolID

        private TCPIPProtocolID()
        Default private constructor
    • Method Detail

      • getInstance

        public static TCPIPProtocolID getInstance()
        Gets the singleton instance of this class
        Returns:
        A new singleton instance of this class
      • parse

        protected NodeAddress parse​(java.lang.String addressString)
                             throws java.lang.IllegalArgumentException
        Parses a string to recreate a TCPIPNodeAddress object
        Specified by:
        parse in class ProtocolID
        Parameters:
        addressString - String representing the address
        Returns:
        A new TCPIPNodeAddress object
        Throws:
        java.lang.IllegalArgumentException - Thrown if the address is not in a correct form