public abstract class Identification extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
static String |
TYPE_AGENT
The type string that identifies the remote endpoint as an Agent.
|
static String |
TYPE_SERVER
The type string that identifies the remote endpoint as a Server.
|
| Constructor and Description |
|---|
Identification(String type,
String locator)
Constructor for
Identification. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Determines equality based solely on the type and locator.
|
String |
getInvokerLocator()
Returns the locator endpoint of the remoting server that is being identified.
|
long |
getTimestamp()
Returns the epoch milliseconds of the identified endpoint.
|
String |
getType()
Returns the type of the remoting server that is being identified.
|
int |
hashCode()
Determines hash based solely on the type and locator.
|
public static final String TYPE_AGENT
public static final String TYPE_SERVER
public Identification(String type, String locator) throws IllegalArgumentException
Identification.type - indicates if this is an Agent or Serverlocator - the locator endpoint of remoting serverIllegalArgumentException - if either parameter is nullpublic String getInvokerLocator()
public String getType()
TYPE_AGENT or
TYPE_SERVER.public long getTimestamp()
public boolean equals(Object obj)
Copyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.