org.ow2.carol.cmi.reference
Class CMIReference
java.lang.Object
org.ow2.carol.cmi.reference.CMIReference
- All Implemented Interfaces:
- java.io.Serializable, LoadBalanceable
@Immutable
public final class CMIReference
- extends java.lang.Object
- implements java.io.Serializable, LoadBalanceable
Represents a reference on a clustered object that is deployed on a server.
- Author:
- The new CMI team
- See Also:
- Serialized Form
|
Constructor Summary |
CMIReference(ServerRef serverRef,
java.lang.String objectName)
Constructs an instance of CMIReference. |
CMIReference(java.lang.String protocol,
java.lang.String providerURL,
java.lang.String objectName)
Constructs an instance of CMIReference. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
CMIReference
public CMIReference(java.lang.String protocol,
java.lang.String providerURL,
java.lang.String objectName)
throws java.net.MalformedURLException,
java.net.UnknownHostException
- Constructs an instance of CMIReference.
- Parameters:
protocol - a name of protocol to access at the clustered objectproviderURL - a provider URL to access at the clustered objectobjectName - a name of object
- Throws:
java.net.MalformedURLException - if the URL is malformed
java.net.UnknownHostException - if the provided address can not be determined
CMIReference
public CMIReference(ServerRef serverRef,
java.lang.String objectName)
- Constructs an instance of CMIReference.
- Parameters:
serverRef - a reference on a serverobjectName - a name of object
getObjectName
public java.lang.String getObjectName()
- Returns:
- Name of the clustered object
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
getServerRef
public ServerRef getServerRef()
- Returns:
- a reference on server on which is deployed the referenced object
Copyright © 2007 OW2 Consortium. All Rights Reserved.