org.ow2.cmi.reference
Class ServerId
java.lang.Object
org.ow2.cmi.reference.ServerRef
org.ow2.cmi.reference.ServerId
- All Implemented Interfaces:
- java.io.Serializable, LoadBalanceable
@Immutable
public final class ServerId
- extends ServerRef
Identify a server.
- Author:
- Loris Bouzonnet
- See Also:
- Serialized Form
|
Constructor Summary |
ServerId(java.lang.String domainName,
java.lang.String serverName,
java.lang.String protocol,
java.lang.String providerURL)
Construct a new identifier for a server. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
ServerId
public ServerId(java.lang.String domainName,
java.lang.String serverName,
java.lang.String protocol,
java.lang.String providerURL)
throws java.net.MalformedURLException,
java.net.UnknownHostException
- Construct a new identifier for a server.
Check if the given protocol is consistent with the provider URL.
- Parameters:
domainName - a domainNameserverName - a serverNameprotocol - a name of protocolproviderURL - a provider URL
- Throws:
java.net.MalformedURLException - if the URL is malformed
java.net.UnknownHostException - if the given host cannot be resolved
getDomainName
public java.lang.String getDomainName()
- Returns:
- domain name
getServerName
public java.lang.String getServerName()
- Returns:
- server name
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals in class ServerRef
hashCode
public int hashCode()
- Overrides:
hashCode in class ServerRef
Copyright © 2009 OW2 Consortium. All Rights Reserved.