com.perforce.p4java.server
Class ZeroconfServerInfo

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

Deprecated. As of release 2013.1, ZeroConf is no longer supported by the Perforce server 2013.1.

@Deprecated
public class ZeroconfServerInfo
extends Object

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
static int P4D_ZEROCONF_NOPORT
          Deprecated. The port number used to indicate that the port has not been validly set anywhere.
 
Constructor Summary
ZeroconfServerInfo()
          Deprecated. 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
 String getDescription()
          Deprecated.  
 String getHostAddress()
          Deprecated.  
 String getHostName()
          Deprecated.  
 String getName()
          Deprecated.  
 int getPort()
          Deprecated.  
 String getType()
          Deprecated.  
 String getVersion()
          Deprecated.  
 void setDescription(String description)
          Deprecated.  
 void setHostAddress(String hostAddress)
          Deprecated.  
 void setHostName(String hostName)
          Deprecated.  
 void setName(String name)
          Deprecated.  
 void setPort(int port)
          Deprecated.  
 void setType(String type)
          Deprecated.  
 void setVersion(String version)
          Deprecated.  
 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(String name,
                          String type,
                          String description,
                          String version,
                          String hostAddress,
                          String hostName,
                          int port)
Deprecated. 
Explicit-value constructor.

Method Detail

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. 


Copyright © 2015 Perforce Software. All Rights Reserved.