Class ZeroconfServerInfo

java.lang.Object
com.perforce.p4java.server.ZeroconfServerInfo

@Deprecated public class ZeroconfServerInfo extends 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 Details

    • 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 Details

    • ZeroconfServerInfo

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

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

    • getName

      public String getName()
      Deprecated.
    • setName

      public void setName(String name)
      Deprecated.
    • getType

      public String getType()
      Deprecated.
    • setType

      public void setType(String type)
      Deprecated.
    • getHostAddress

      public String getHostAddress()
      Deprecated.
    • setHostAddress

      public void setHostAddress(String hostAddress)
      Deprecated.
    • getPort

      public int getPort()
      Deprecated.
    • setPort

      public void setPort(int port)
      Deprecated.
    • getDescription

      public String getDescription()
      Deprecated.
    • setDescription

      public void setDescription(String description)
      Deprecated.
    • getVersion

      public String getVersion()
      Deprecated.
    • setVersion

      public void setVersion(String version)
      Deprecated.
    • toString

      public 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 Object
    • getHostName

      public String getHostName()
      Deprecated.
    • setHostName

      public void setHostName(String hostName)
      Deprecated.