Package com.perforce.p4java.server
Class ZeroconfServerInfo
java.lang.Object
com.perforce.p4java.server.ZeroconfServerInfo
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
FieldsModifier and TypeFieldDescriptionstatic intDeprecated.The port number used to indicate that the port has not been validly set anywhere. -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Default constructor -- sets all fields to null except port, which is set to P4D_ZEROCONF_NOPORT.ZeroconfServerInfo(String name, String type, String description, String version, String hostAddress, String hostName, int port) Deprecated.Explicit-value constructor. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Deprecated.Deprecated.getName()Deprecated.intgetPort()Deprecated.getType()Deprecated.Deprecated.voidsetDescription(String description) Deprecated.voidsetHostAddress(String hostAddress) Deprecated.voidsetHostName(String hostName) Deprecated.voidDeprecated.voidsetPort(int port) Deprecated.voidDeprecated.voidsetVersion(String version) Deprecated.toString()Deprecated.Construct a nice string representation, with the server's address presented as a P4Java URI.
-
Field Details
-
P4D_ZEROCONF_NOPORT
public static int P4D_ZEROCONF_NOPORTDeprecated.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- nametype- typedescription- descriptionversion- versionhostAddress- hostAddresshostName- hostNameport- port
-
-
Method Details
-
getName
Deprecated. -
setName
Deprecated. -
getType
Deprecated. -
setType
Deprecated. -
getHostAddress
Deprecated. -
setHostAddress
Deprecated. -
getPort
public int getPort()Deprecated. -
setPort
public void setPort(int port) Deprecated. -
getDescription
Deprecated. -
setDescription
Deprecated. -
getVersion
Deprecated. -
setVersion
Deprecated. -
toString
Deprecated.Construct a nice string representation, with the server's address presented as a P4Java URI. Mostly intended for debugging. -
getHostName
Deprecated. -
setHostName
Deprecated.
-