public class DefaultServerNode extends Object implements ServerNode
| 构造器和说明 |
|---|
DefaultServerNode(String url,
String host,
int port,
Properties properties)
Instantiates a new Default server node.
|
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
equals(Object o) |
String |
getHost()
Gets host.
|
int |
getPort()
Gets port.
|
Properties |
getProperties()
Gets properties.
|
String |
getUrl()
Gets url.
|
int |
hashCode() |
void |
setHost(String host)
Setter method for property host.
|
void |
setPort(int port)
Setter method for property port.
|
void |
setProperties(Properties properties)
Setter method for property properties.
|
void |
setUrl(String url)
Setter method for property url.
|
String |
toString() |
public DefaultServerNode(String url, String host, int port, Properties properties)
url - the urlhost - the hostport - the portproperties - the propertiespublic String getHost()
getHost 在接口中 ServerNodepublic int getPort()
getPort 在接口中 ServerNodepublic String getUrl()
getUrl 在接口中 ServerNodepublic Properties getProperties()
getProperties 在接口中 ServerNodepublic void setUrl(String url)
url - value to be assigned to property urlpublic void setHost(String host)
host - value to be assigned to property hostpublic void setPort(int port)
port - value to be assigned to property portpublic void setProperties(Properties properties)
properties - value to be assigned to property propertiespublic boolean equals(Object o)
equals 在类中 ObjectObject.equals(Object)public int hashCode()
hashCode 在类中 ObjectObject.hashCode()public String toString()
toString 在类中 ObjectObject.toString()Copyright © 2023 The Ant Financial. All rights reserved.