org.jgroups
Interface Address

All Superinterfaces:
java.lang.Comparable<Address>, java.io.Externalizable, java.io.Serializable, Streamable
All Known Subinterfaces:
PhysicalAddress, SiteAddress
All Known Implementing Classes:
AdditionalDataUUID, AnycastAddress, CanBeSiteMaster, CanBeSiteMasterTopology, IpAddress, PayloadUUID, SingletonAddress, SiteMaster, SiteUUID, TopologyUUID, UUID

public interface Address
extends Streamable, java.lang.Comparable<Address>, java.io.Externalizable

Address identifies cluster member. For example, whenever a unicast message is sent in a cluster an Address of a cluster member message recipient needs to be specified. Similarly a cluster member can use Address to check its own identity, request a state from a particular member and so on. Addresses are mostly generated by the bottom-most (transport) layers (e.g. UDP, TCP, LOOPBACK).

Since:
2.0
Author:
Bela Ban
See Also:
PhysicalAddress, UUID

Field Summary
static byte IP_ADDR
           
static byte NULL
           
static byte SITE_MASTER
           
static byte SITE_UUID
           
static byte UUID_ADDR
           
 
Method Summary
 int size()
          Returns serialized size of this address
 
Methods inherited from interface org.jgroups.util.Streamable
readFrom, writeTo
 
Methods inherited from interface java.lang.Comparable
compareTo
 
Methods inherited from interface java.io.Externalizable
readExternal, writeExternal
 

Field Detail

NULL

static final byte NULL
See Also:
Constant Field Values

UUID_ADDR

static final byte UUID_ADDR
See Also:
Constant Field Values

SITE_UUID

static final byte SITE_UUID
See Also:
Constant Field Values

SITE_MASTER

static final byte SITE_MASTER
See Also:
Constant Field Values

IP_ADDR

static final byte IP_ADDR
See Also:
Constant Field Values
Method Detail

size

int size()
Returns serialized size of this address



Copyright © 1998-2012 Bela Ban / Red Hat. All Rights Reserved.