com.cloudera.api.model
Class ApiServiceRef

java.lang.Object
  extended by com.cloudera.api.model.ApiServiceRef

public class ApiServiceRef
extends Object

A serviceRef references a service. It is identified by the "serviceName", "clusterName" (name of the cluster which the service belongs to) and an optional "peerName" (to reference a remote service i.e. services managed by other CM instances). To operate on the service object, use the API with those fields as parameters.


Constructor Summary
ApiServiceRef()
           
ApiServiceRef(String clusterName, String serviceName)
           
ApiServiceRef(String peerName, String clusterName, String serviceName)
           
 
Method Summary
 boolean equals(Object o)
           
 String getClusterName()
          The enclosing cluster for this service.
 String getPeerName()
          The name of the CM peer corresponding to the remote CM that manages the referenced service.
 String getServiceName()
          The service name.
 int hashCode()
           
 void setClusterName(String clusterName)
           
 void setPeerName(String peerName)
           
 void setServiceName(String serviceName)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ApiServiceRef

public ApiServiceRef()

ApiServiceRef

public ApiServiceRef(String clusterName,
                     String serviceName)

ApiServiceRef

public ApiServiceRef(String peerName,
                     String clusterName,
                     String serviceName)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

getPeerName

public String getPeerName()
The name of the CM peer corresponding to the remote CM that manages the referenced service. This should only be set when referencing a remote service.


setPeerName

public void setPeerName(String peerName)

getClusterName

public String getClusterName()
The enclosing cluster for this service.


setClusterName

public void setClusterName(String clusterName)

getServiceName

public String getServiceName()
The service name.


setServiceName

public void setServiceName(String serviceName)


Copyright © Cloudera, Inc. Released under Apache License, Version 2.0.