| Modifier and Type | Field and Description |
|---|---|
protected String |
name
The target server.
|
protected int |
port
The target port.
|
protected int |
priority
The priority of this service.
|
protected int |
weight
The weight of this service.
|
| Constructor and Description |
|---|
SRV() |
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
The name of the target server.
|
int |
getPort()
The target port of this service.
|
int |
getPriority()
The priority of this service.
|
Record.TYPE |
getType()
The payload type.
|
int |
getWeight()
The weight of this service.
|
void |
parse(DataInputStream dis,
byte[] data,
int length)
Parse this payload.
|
void |
setName(String name)
Set the name of the target server.
|
void |
setPort(int port)
Set the target port of this service.
|
void |
setPriority(int priority)
Set the priority of this service entry.
|
void |
setWeight(int weight)
Set the weight of this service.
|
byte[] |
toByteArray()
Binary representation of this payload.
|
String |
toString() |
protected int priority
protected int weight
protected int port
protected String name
public int getPriority()
public void setPriority(int priority)
priority - The new priority.public int getWeight()
public void setWeight(int weight)
weight - The new weight of this service.public int getPort()
public void setPort(int port)
port - The new target port.public String getName()
public void setName(String name)
name - The new target servers name.public byte[] toByteArray()
DatatoByteArray in interface Datapublic void parse(DataInputStream dis, byte[] data, int length) throws IOException
Dataparse in interface Datadis - The input stream.data - The plain data (needed for name cross references).length - The payload length.IOException - on io error (read past paket boundary).public Record.TYPE getType()
DataCopyright © 2014–2015. All rights reserved.