public class Host extends Object implements Serializable, WithCount, WithRoute
Java class for Host complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="Host">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
<attribute name="port" use="required" type="{http://www.w3.org/2001/XMLSchema}int" />
<attribute name="count" use="required" type="{http://www.w3.org/2001/XMLSchema}int" />
</restriction>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected int |
count |
protected String |
name |
protected int |
port |
| Constructor and Description |
|---|
Host()
Default no-arg constructor
|
Host(String name,
int port,
int count)
Fully-initialising value constructor
|
| Modifier and Type | Method and Description |
|---|---|
int |
getCount()
Gets the value of the count property.
|
String |
getName()
Gets the value of the name property.
|
int |
getPort()
Gets the value of the port property.
|
void |
setCount(int value)
Sets the value of the count property.
|
void |
setName(String value)
Sets the value of the name property.
|
void |
setPort(int value)
Sets the value of the port property.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetRoute, getRouteIdprotected String name
protected int port
protected int count
public Host()
public Host(String name, int port, int count)
public String getName()
public void setName(String value)
value - allowed object is
Stringpublic int getPort()
public void setPort(int value)
public int getCount()
public void setCount(int value)
Copyright © 2015 Yandex. All rights reserved.