public class IpAddressUUID extends IpAddress
See https://issues.jboss.org/browse/JGRP-2080 for details
Modifier and Type | Field and Description |
---|---|
protected int |
high |
protected long |
low |
IP_ADDR, IP_ADDR_UUID, NULL, SITE_MASTER, SITE_UUID, UUID_ADDR
Modifier | Constructor and Description |
---|---|
|
IpAddressUUID() |
|
IpAddressUUID(InetAddress i,
int p) |
protected |
IpAddressUUID(InetAddress i,
int p,
long low,
int high) |
|
IpAddressUUID(InetSocketAddress sock_addr) |
|
IpAddressUUID(int port) |
|
IpAddressUUID(int port,
boolean set_default_host) |
|
IpAddressUUID(String addr_port) |
|
IpAddressUUID(String i,
int p) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Address o)
implements the java.lang.Comparable interface
|
IpAddress |
copy() |
Supplier<? extends IpAddress> |
create()
Creates an instance of the class implementing this interface
|
protected static long[] |
createUUID() |
boolean |
equals(Object obj) |
void |
readFrom(DataInput in)
Read the state of the current object (including superclasses) from instream
Note that the input stream must not be closed
|
int |
serializedSize()
Returns the size (in bytes) of the marshalled object
|
String |
toString() |
String |
toString(boolean detailed) |
void |
writeTo(DataOutput out)
Write the entire state of the current object (including superclasses) to outstream.
|
getIpAddress, getPort, hashCode, printIpAddress, setAddressToLocalHost
public IpAddressUUID()
public IpAddressUUID(InetAddress i, int p)
public IpAddressUUID(String i, int p) throws UnknownHostException
UnknownHostException
public IpAddressUUID(int port)
public IpAddressUUID(int port, boolean set_default_host)
public IpAddressUUID(InetSocketAddress sock_addr)
protected IpAddressUUID(InetAddress i, int p, long low, int high)
public int compareTo(Address o)
IpAddress
compareTo
in interface Comparable<Address>
compareTo
in class IpAddress
o
- - the Object to be comparedComparable
public Supplier<? extends IpAddress> create()
Constructable
create
in interface Constructable<IpAddress>
create
in class IpAddress
public void writeTo(DataOutput out) throws Exception
Streamable
writeTo
in interface Streamable
writeTo
in class IpAddress
Exception
public void readFrom(DataInput in) throws Exception
Streamable
readFrom
in interface Streamable
readFrom
in class IpAddress
Exception
public int serializedSize()
SizeStreamable
serializedSize
in interface SizeStreamable
serializedSize
in class IpAddress
public String toString(boolean detailed)
protected static long[] createUUID()
Copyright © 2018 JBoss, a division of Red Hat. All rights reserved.