
org.apache.asterix.event.schema.yarnCluster.Cluster Maven / Gradle / Ivy
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.7
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2016.02.10 at 03:27:57 PM PST
//
package org.apache.asterix.event.schema.yarnCluster;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* Java class for anonymous complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element ref="{yarn_cluster}instance_name"/>
* <element ref="{yarn_cluster}cluster_name"/>
* <element ref="{yarn_cluster}cc_container_mem" minOccurs="0"/>
* <element ref="{yarn_cluster}nc_container_mem" minOccurs="0"/>
* <element ref="{yarn_cluster}env" minOccurs="0"/>
* <element ref="{yarn_cluster}log_dir" minOccurs="0"/>
* <element ref="{yarn_cluster}txn_log_dir" minOccurs="0"/>
* <element ref="{yarn_cluster}store" minOccurs="0"/>
* <element ref="{yarn_cluster}iodevices" minOccurs="0"/>
* <element ref="{yarn_cluster}metadata_node"/>
* <element ref="{yarn_cluster}master_node"/>
* <element ref="{yarn_cluster}node" maxOccurs="unbounded"/>
* <element ref="{yarn_cluster}substitute_nodes"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"instanceName",
"clusterName",
"ccContainerMem",
"ncContainerMem",
"env",
"logDir",
"txnLogDir",
"store",
"iodevices",
"metadataNode",
"masterNode",
"node",
"substituteNodes"
})
@XmlRootElement(name = "cluster")
public class Cluster implements Serializable
{
private final static long serialVersionUID = 1L;
@XmlElement(name = "instance_name", required = true)
protected String instanceName;
@XmlElement(name = "cluster_name", required = true)
protected String clusterName;
@XmlElement(name = "cc_container_mem")
protected String ccContainerMem;
@XmlElement(name = "nc_container_mem")
protected String ncContainerMem;
protected Env env;
@XmlElement(name = "log_dir")
protected String logDir;
@XmlElement(name = "txn_log_dir")
protected String txnLogDir;
protected String store;
protected String iodevices;
@XmlElement(name = "metadata_node", required = true)
protected String metadataNode;
@XmlElement(name = "master_node", required = true)
protected MasterNode masterNode;
@XmlElement(required = true)
protected List node;
@XmlElement(name = "substitute_nodes", required = true)
protected SubstituteNodes substituteNodes;
/**
* Default no-arg constructor
*
*/
public Cluster() {
super();
}
/**
* Fully-initialising value constructor
*
*/
public Cluster(final String instanceName, final String clusterName, final String ccContainerMem, final String ncContainerMem, final Env env, final String logDir, final String txnLogDir, final String store, final String iodevices, final String metadataNode, final MasterNode masterNode, final List node, final SubstituteNodes substituteNodes) {
this.instanceName = instanceName;
this.clusterName = clusterName;
this.ccContainerMem = ccContainerMem;
this.ncContainerMem = ncContainerMem;
this.env = env;
this.logDir = logDir;
this.txnLogDir = txnLogDir;
this.store = store;
this.iodevices = iodevices;
this.metadataNode = metadataNode;
this.masterNode = masterNode;
this.node = node;
this.substituteNodes = substituteNodes;
}
/**
* Gets the value of the instanceName property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getInstanceName() {
return instanceName;
}
/**
* Sets the value of the instanceName property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setInstanceName(String value) {
this.instanceName = value;
}
/**
* Gets the value of the clusterName property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getClusterName() {
return clusterName;
}
/**
* Sets the value of the clusterName property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setClusterName(String value) {
this.clusterName = value;
}
/**
* Gets the value of the ccContainerMem property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCcContainerMem() {
return ccContainerMem;
}
/**
* Sets the value of the ccContainerMem property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCcContainerMem(String value) {
this.ccContainerMem = value;
}
/**
* Gets the value of the ncContainerMem property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getNcContainerMem() {
return ncContainerMem;
}
/**
* Sets the value of the ncContainerMem property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setNcContainerMem(String value) {
this.ncContainerMem = value;
}
/**
* Gets the value of the env property.
*
* @return
* possible object is
* {@link Env }
*
*/
public Env getEnv() {
return env;
}
/**
* Sets the value of the env property.
*
* @param value
* allowed object is
* {@link Env }
*
*/
public void setEnv(Env value) {
this.env = value;
}
/**
* Gets the value of the logDir property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getLogDir() {
return logDir;
}
/**
* Sets the value of the logDir property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setLogDir(String value) {
this.logDir = value;
}
/**
* Gets the value of the txnLogDir property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getTxnLogDir() {
return txnLogDir;
}
/**
* Sets the value of the txnLogDir property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setTxnLogDir(String value) {
this.txnLogDir = value;
}
/**
* Gets the value of the store property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getStore() {
return store;
}
/**
* Sets the value of the store property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setStore(String value) {
this.store = value;
}
/**
* Gets the value of the iodevices property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getIodevices() {
return iodevices;
}
/**
* Sets the value of the iodevices property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setIodevices(String value) {
this.iodevices = value;
}
/**
* Gets the value of the metadataNode property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getMetadataNode() {
return metadataNode;
}
/**
* Sets the value of the metadataNode property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setMetadataNode(String value) {
this.metadataNode = value;
}
/**
* Gets the value of the masterNode property.
*
* @return
* possible object is
* {@link MasterNode }
*
*/
public MasterNode getMasterNode() {
return masterNode;
}
/**
* Sets the value of the masterNode property.
*
* @param value
* allowed object is
* {@link MasterNode }
*
*/
public void setMasterNode(MasterNode value) {
this.masterNode = value;
}
/**
* Gets the value of the node property.
*
*
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a set
method for the node property.
*
*
* For example, to add a new item, do as follows:
*
* getNode().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Node }
*
*
*/
public List getNode() {
if (node == null) {
node = new ArrayList();
}
return this.node;
}
/**
* Gets the value of the substituteNodes property.
*
* @return
* possible object is
* {@link SubstituteNodes }
*
*/
public SubstituteNodes getSubstituteNodes() {
return substituteNodes;
}
/**
* Sets the value of the substituteNodes property.
*
* @param value
* allowed object is
* {@link SubstituteNodes }
*
*/
public void setSubstituteNodes(SubstituteNodes value) {
this.substituteNodes = value;
}
public void setNode(List value) {
this.node = null;
List draftl = this.getNode();
draftl.addAll(value);
}
}