Class ZeroconfServerInfo


  • @Deprecated
    public class ZeroconfServerInfo
    extends java.lang.Object
    Deprecated.
    As of release 2013.1, ZeroConf is no longer supported by the Perforce server 2013.1.
    Defines the information zeroconf gives us about Perforce servers registered with and locally-visible to zeroconf (assuming zeroconf is available and loaded with P4Java). See ServerFactory.getZeroconfServers and associated methods for a full explanation of Perforce zeroconf usage.

    Most of the fields defined below should be self-explanatory, but note that any or all of them may be null, and the semantics and format of the description and version strings are not defined here at all (but the version string is usually in the standard Perforce format if this ZeroconfServerInfo object was cobbled together from a valid zerconf registration).

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int P4D_ZEROCONF_NOPORT
      Deprecated.
      The port number used to indicate that the port has not been validly set anywhere.
    • Constructor Summary

      Constructors 
      Constructor Description
      ZeroconfServerInfo()
      Deprecated.
      Default constructor -- sets all fields to null except port, which is set to P4D_ZEROCONF_NOPORT.
      ZeroconfServerInfo​(java.lang.String name, java.lang.String type, java.lang.String description, java.lang.String version, java.lang.String hostAddress, java.lang.String hostName, int port)
      Deprecated.
      Explicit-value constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      java.lang.String getDescription()
      Deprecated.
       
      java.lang.String getHostAddress()
      Deprecated.
       
      java.lang.String getHostName()
      Deprecated.
       
      java.lang.String getName()
      Deprecated.
       
      int getPort()
      Deprecated.
       
      java.lang.String getType()
      Deprecated.
       
      java.lang.String getVersion()
      Deprecated.
       
      void setDescription​(java.lang.String description)
      Deprecated.
       
      void setHostAddress​(java.lang.String hostAddress)
      Deprecated.
       
      void setHostName​(java.lang.String hostName)
      Deprecated.
       
      void setName​(java.lang.String name)
      Deprecated.
       
      void setPort​(int port)
      Deprecated.
       
      void setType​(java.lang.String type)
      Deprecated.
       
      void setVersion​(java.lang.String version)
      Deprecated.
       
      java.lang.String toString()
      Deprecated.
      Construct a nice string representation, with the server's address presented as a P4Java URI.
      • Methods inherited from class java.lang.Object

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

      • P4D_ZEROCONF_NOPORT

        public static int P4D_ZEROCONF_NOPORT
        Deprecated.
        The port number used to indicate that the port has not been validly set anywhere.
    • Constructor Detail

      • ZeroconfServerInfo

        public ZeroconfServerInfo()
        Deprecated.
        Default constructor -- sets all fields to null except port, which is set to P4D_ZEROCONF_NOPORT.
      • ZeroconfServerInfo

        public ZeroconfServerInfo​(java.lang.String name,
                                  java.lang.String type,
                                  java.lang.String description,
                                  java.lang.String version,
                                  java.lang.String hostAddress,
                                  java.lang.String hostName,
                                  int port)
        Deprecated.
        Explicit-value constructor.
        Parameters:
        name - name
        type - type
        description - description
        version - version
        hostAddress - hostAddress
        hostName - hostName
        port - port
    • Method Detail

      • getName

        public java.lang.String getName()
        Deprecated.
      • setName

        public void setName​(java.lang.String name)
        Deprecated.
      • getType

        public java.lang.String getType()
        Deprecated.
      • setType

        public void setType​(java.lang.String type)
        Deprecated.
      • getHostAddress

        public java.lang.String getHostAddress()
        Deprecated.
      • setHostAddress

        public void setHostAddress​(java.lang.String hostAddress)
        Deprecated.
      • getPort

        public int getPort()
        Deprecated.
      • setPort

        public void setPort​(int port)
        Deprecated.
      • getDescription

        public java.lang.String getDescription()
        Deprecated.
      • setDescription

        public void setDescription​(java.lang.String description)
        Deprecated.
      • getVersion

        public java.lang.String getVersion()
        Deprecated.
      • setVersion

        public void setVersion​(java.lang.String version)
        Deprecated.
      • toString

        public java.lang.String toString()
        Deprecated.
        Construct a nice string representation, with the server's address presented as a P4Java URI. Mostly intended for debugging.
        Overrides:
        toString in class java.lang.Object
      • getHostName

        public java.lang.String getHostName()
        Deprecated.
      • setHostName

        public void setHostName​(java.lang.String hostName)
        Deprecated.