Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id E509F200BCE for ; Thu, 27 Oct 2016 23:31:58 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id E3A1D160B22; Thu, 27 Oct 2016 21:31:58 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 2BD73160B12 for ; Thu, 27 Oct 2016 23:31:57 +0200 (CEST) Received: (qmail 20059 invoked by uid 500); 27 Oct 2016 21:31:56 -0000 Mailing-List: contact commits-help@airavata.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@airavata.apache.org Delivered-To: mailing list commits@airavata.apache.org Received: (qmail 19452 invoked by uid 99); 27 Oct 2016 21:31:55 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Oct 2016 21:31:55 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 7BDB8E0ADC; Thu, 27 Oct 2016 21:31:55 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: shameera@apache.org To: commits@airavata.apache.org Date: Thu, 27 Oct 2016 21:32:12 -0000 Message-Id: In-Reply-To: <2feb4e6ff2a54e1c9cbf9fae7814a2cf@git.apache.org> References: <2feb4e6ff2a54e1c9cbf9fae7814a2cf@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [19/53] airavata git commit: Adding aurora-client project archived-at: Thu, 27 Oct 2016 21:31:59 -0000 http://git-wip-us.apache.org/repos/asf/airavata/blob/0f781b2e/modules/cloud/aurora-client/src/main/java/org/apache/airavata/cloud/aurora/client/sdk/ServerInfo.java ---------------------------------------------------------------------- diff --git a/modules/cloud/aurora-client/src/main/java/org/apache/airavata/cloud/aurora/client/sdk/ServerInfo.java b/modules/cloud/aurora-client/src/main/java/org/apache/airavata/cloud/aurora/client/sdk/ServerInfo.java new file mode 100644 index 0000000..c535057 --- /dev/null +++ b/modules/cloud/aurora-client/src/main/java/org/apache/airavata/cloud/aurora/client/sdk/ServerInfo.java @@ -0,0 +1,518 @@ +/** + * Autogenerated by Thrift Compiler (0.9.3) + * + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * @generated + */ +package org.apache.airavata.cloud.aurora.client.sdk; + +import org.apache.thrift.scheme.IScheme; +import org.apache.thrift.scheme.SchemeFactory; +import org.apache.thrift.scheme.StandardScheme; + +import org.apache.thrift.scheme.TupleScheme; +import org.apache.thrift.protocol.TTupleProtocol; +import org.apache.thrift.protocol.TProtocolException; +import org.apache.thrift.EncodingUtils; +import org.apache.thrift.TException; +import org.apache.thrift.async.AsyncMethodCallback; +import org.apache.thrift.server.AbstractNonblockingServer.*; +import java.util.List; +import java.util.ArrayList; +import java.util.Map; +import java.util.HashMap; +import java.util.EnumMap; +import java.util.Set; +import java.util.HashSet; +import java.util.EnumSet; +import java.util.Collections; +import java.util.BitSet; +import java.nio.ByteBuffer; +import java.util.Arrays; +import javax.annotation.Generated; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) +/** + * Information about the scheduler. + */ +@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-10-21") +public class ServerInfo implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ServerInfo"); + + private static final org.apache.thrift.protocol.TField CLUSTER_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("clusterName", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField STATS_URL_PREFIX_FIELD_DESC = new org.apache.thrift.protocol.TField("statsUrlPrefix", org.apache.thrift.protocol.TType.STRING, (short)3); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new ServerInfoStandardSchemeFactory()); + schemes.put(TupleScheme.class, new ServerInfoTupleSchemeFactory()); + } + + public String clusterName; // required + /** + * A url prefix for job container stats. + */ + public String statsUrlPrefix; // required + + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ + public enum _Fields implements org.apache.thrift.TFieldIdEnum { + CLUSTER_NAME((short)1, "clusterName"), + /** + * A url prefix for job container stats. + */ + STATS_URL_PREFIX((short)3, "statsUrlPrefix"); + + private static final Map byName = new HashMap(); + + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } + } + + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case 1: // CLUSTER_NAME + return CLUSTER_NAME; + case 3: // STATS_URL_PREFIX + return STATS_URL_PREFIX; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.CLUSTER_NAME, new org.apache.thrift.meta_data.FieldMetaData("clusterName", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.STATS_URL_PREFIX, new org.apache.thrift.meta_data.FieldMetaData("statsUrlPrefix", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(ServerInfo.class, metaDataMap); + } + + public ServerInfo() { + } + + public ServerInfo( + String clusterName, + String statsUrlPrefix) + { + this(); + this.clusterName = clusterName; + this.statsUrlPrefix = statsUrlPrefix; + } + + /** + * Performs a deep copy on other. + */ + public ServerInfo(ServerInfo other) { + if (other.isSetClusterName()) { + this.clusterName = other.clusterName; + } + if (other.isSetStatsUrlPrefix()) { + this.statsUrlPrefix = other.statsUrlPrefix; + } + } + + public ServerInfo deepCopy() { + return new ServerInfo(this); + } + + @Override + public void clear() { + this.clusterName = null; + this.statsUrlPrefix = null; + } + + public String getClusterName() { + return this.clusterName; + } + + public ServerInfo setClusterName(String clusterName) { + this.clusterName = clusterName; + return this; + } + + public void unsetClusterName() { + this.clusterName = null; + } + + /** Returns true if field clusterName is set (has been assigned a value) and false otherwise */ + public boolean isSetClusterName() { + return this.clusterName != null; + } + + public void setClusterNameIsSet(boolean value) { + if (!value) { + this.clusterName = null; + } + } + + /** + * A url prefix for job container stats. + */ + public String getStatsUrlPrefix() { + return this.statsUrlPrefix; + } + + /** + * A url prefix for job container stats. + */ + public ServerInfo setStatsUrlPrefix(String statsUrlPrefix) { + this.statsUrlPrefix = statsUrlPrefix; + return this; + } + + public void unsetStatsUrlPrefix() { + this.statsUrlPrefix = null; + } + + /** Returns true if field statsUrlPrefix is set (has been assigned a value) and false otherwise */ + public boolean isSetStatsUrlPrefix() { + return this.statsUrlPrefix != null; + } + + public void setStatsUrlPrefixIsSet(boolean value) { + if (!value) { + this.statsUrlPrefix = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case CLUSTER_NAME: + if (value == null) { + unsetClusterName(); + } else { + setClusterName((String)value); + } + break; + + case STATS_URL_PREFIX: + if (value == null) { + unsetStatsUrlPrefix(); + } else { + setStatsUrlPrefix((String)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case CLUSTER_NAME: + return getClusterName(); + + case STATS_URL_PREFIX: + return getStatsUrlPrefix(); + + } + throw new IllegalStateException(); + } + + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); + } + + switch (field) { + case CLUSTER_NAME: + return isSetClusterName(); + case STATS_URL_PREFIX: + return isSetStatsUrlPrefix(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof ServerInfo) + return this.equals((ServerInfo)that); + return false; + } + + public boolean equals(ServerInfo that) { + if (that == null) + return false; + + boolean this_present_clusterName = true && this.isSetClusterName(); + boolean that_present_clusterName = true && that.isSetClusterName(); + if (this_present_clusterName || that_present_clusterName) { + if (!(this_present_clusterName && that_present_clusterName)) + return false; + if (!this.clusterName.equals(that.clusterName)) + return false; + } + + boolean this_present_statsUrlPrefix = true && this.isSetStatsUrlPrefix(); + boolean that_present_statsUrlPrefix = true && that.isSetStatsUrlPrefix(); + if (this_present_statsUrlPrefix || that_present_statsUrlPrefix) { + if (!(this_present_statsUrlPrefix && that_present_statsUrlPrefix)) + return false; + if (!this.statsUrlPrefix.equals(that.statsUrlPrefix)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_clusterName = true && (isSetClusterName()); + list.add(present_clusterName); + if (present_clusterName) + list.add(clusterName); + + boolean present_statsUrlPrefix = true && (isSetStatsUrlPrefix()); + list.add(present_statsUrlPrefix); + if (present_statsUrlPrefix) + list.add(statsUrlPrefix); + + return list.hashCode(); + } + + @Override + public int compareTo(ServerInfo other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetClusterName()).compareTo(other.isSetClusterName()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetClusterName()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.clusterName, other.clusterName); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetStatsUrlPrefix()).compareTo(other.isSetStatsUrlPrefix()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetStatsUrlPrefix()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.statsUrlPrefix, other.statsUrlPrefix); + if (lastComparison != 0) { + return lastComparison; + } + } + return 0; + } + + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("ServerInfo("); + boolean first = true; + + sb.append("clusterName:"); + if (this.clusterName == null) { + sb.append("null"); + } else { + sb.append(this.clusterName); + } + first = false; + if (!first) sb.append(", "); + sb.append("statsUrlPrefix:"); + if (this.statsUrlPrefix == null) { + sb.append("null"); + } else { + sb.append(this.statsUrlPrefix); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class ServerInfoStandardSchemeFactory implements SchemeFactory { + public ServerInfoStandardScheme getScheme() { + return new ServerInfoStandardScheme(); + } + } + + private static class ServerInfoStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, ServerInfo struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 1: // CLUSTER_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.clusterName = iprot.readString(); + struct.setClusterNameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // STATS_URL_PREFIX + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.statsUrlPrefix = iprot.readString(); + struct.setStatsUrlPrefixIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, ServerInfo struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.clusterName != null) { + oprot.writeFieldBegin(CLUSTER_NAME_FIELD_DESC); + oprot.writeString(struct.clusterName); + oprot.writeFieldEnd(); + } + if (struct.statsUrlPrefix != null) { + oprot.writeFieldBegin(STATS_URL_PREFIX_FIELD_DESC); + oprot.writeString(struct.statsUrlPrefix); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class ServerInfoTupleSchemeFactory implements SchemeFactory { + public ServerInfoTupleScheme getScheme() { + return new ServerInfoTupleScheme(); + } + } + + private static class ServerInfoTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, ServerInfo struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetClusterName()) { + optionals.set(0); + } + if (struct.isSetStatsUrlPrefix()) { + optionals.set(1); + } + oprot.writeBitSet(optionals, 2); + if (struct.isSetClusterName()) { + oprot.writeString(struct.clusterName); + } + if (struct.isSetStatsUrlPrefix()) { + oprot.writeString(struct.statsUrlPrefix); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, ServerInfo struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.clusterName = iprot.readString(); + struct.setClusterNameIsSet(true); + } + if (incoming.get(1)) { + struct.statsUrlPrefix = iprot.readString(); + struct.setStatsUrlPrefixIsSet(true); + } + } + } + +} + http://git-wip-us.apache.org/repos/asf/airavata/blob/0f781b2e/modules/cloud/aurora-client/src/main/java/org/apache/airavata/cloud/aurora/client/sdk/StartJobUpdateResult.java ---------------------------------------------------------------------- diff --git a/modules/cloud/aurora-client/src/main/java/org/apache/airavata/cloud/aurora/client/sdk/StartJobUpdateResult.java b/modules/cloud/aurora-client/src/main/java/org/apache/airavata/cloud/aurora/client/sdk/StartJobUpdateResult.java new file mode 100644 index 0000000..7e020c3 --- /dev/null +++ b/modules/cloud/aurora-client/src/main/java/org/apache/airavata/cloud/aurora/client/sdk/StartJobUpdateResult.java @@ -0,0 +1,543 @@ +/** + * Autogenerated by Thrift Compiler (0.9.3) + * + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * @generated + */ +package org.apache.airavata.cloud.aurora.client.sdk; + +import org.apache.thrift.scheme.IScheme; +import org.apache.thrift.scheme.SchemeFactory; +import org.apache.thrift.scheme.StandardScheme; + +import org.apache.thrift.scheme.TupleScheme; +import org.apache.thrift.protocol.TTupleProtocol; +import org.apache.thrift.protocol.TProtocolException; +import org.apache.thrift.EncodingUtils; +import org.apache.thrift.TException; +import org.apache.thrift.async.AsyncMethodCallback; +import org.apache.thrift.server.AbstractNonblockingServer.*; +import java.util.List; +import java.util.ArrayList; +import java.util.Map; +import java.util.HashMap; +import java.util.EnumMap; +import java.util.Set; +import java.util.HashSet; +import java.util.EnumSet; +import java.util.Collections; +import java.util.BitSet; +import java.nio.ByteBuffer; +import java.util.Arrays; +import javax.annotation.Generated; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) +/** + * Result of the startUpdate call. + */ +@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-10-21") +public class StartJobUpdateResult implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("StartJobUpdateResult"); + + private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField UPDATE_SUMMARY_FIELD_DESC = new org.apache.thrift.protocol.TField("updateSummary", org.apache.thrift.protocol.TType.STRUCT, (short)2); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new StartJobUpdateResultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new StartJobUpdateResultTupleSchemeFactory()); + } + + /** + * Unique identifier for the job update. + */ + public JobUpdateKey key; // required + /** + * Summary of the update that is in progress for the given JobKey. + */ + public JobUpdateSummary updateSummary; // optional + + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ + public enum _Fields implements org.apache.thrift.TFieldIdEnum { + /** + * Unique identifier for the job update. + */ + KEY((short)1, "key"), + /** + * Summary of the update that is in progress for the given JobKey. + */ + UPDATE_SUMMARY((short)2, "updateSummary"); + + private static final Map byName = new HashMap(); + + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } + } + + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case 1: // KEY + return KEY; + case 2: // UPDATE_SUMMARY + return UPDATE_SUMMARY; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + private static final _Fields optionals[] = {_Fields.UPDATE_SUMMARY}; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, JobUpdateKey.class))); + tmpMap.put(_Fields.UPDATE_SUMMARY, new org.apache.thrift.meta_data.FieldMetaData("updateSummary", org.apache.thrift.TFieldRequirementType.OPTIONAL, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, JobUpdateSummary.class))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(StartJobUpdateResult.class, metaDataMap); + } + + public StartJobUpdateResult() { + } + + public StartJobUpdateResult( + JobUpdateKey key) + { + this(); + this.key = key; + } + + /** + * Performs a deep copy on other. + */ + public StartJobUpdateResult(StartJobUpdateResult other) { + if (other.isSetKey()) { + this.key = new JobUpdateKey(other.key); + } + if (other.isSetUpdateSummary()) { + this.updateSummary = new JobUpdateSummary(other.updateSummary); + } + } + + public StartJobUpdateResult deepCopy() { + return new StartJobUpdateResult(this); + } + + @Override + public void clear() { + this.key = null; + this.updateSummary = null; + } + + /** + * Unique identifier for the job update. + */ + public JobUpdateKey getKey() { + return this.key; + } + + /** + * Unique identifier for the job update. + */ + public StartJobUpdateResult setKey(JobUpdateKey key) { + this.key = key; + return this; + } + + public void unsetKey() { + this.key = null; + } + + /** Returns true if field key is set (has been assigned a value) and false otherwise */ + public boolean isSetKey() { + return this.key != null; + } + + public void setKeyIsSet(boolean value) { + if (!value) { + this.key = null; + } + } + + /** + * Summary of the update that is in progress for the given JobKey. + */ + public JobUpdateSummary getUpdateSummary() { + return this.updateSummary; + } + + /** + * Summary of the update that is in progress for the given JobKey. + */ + public StartJobUpdateResult setUpdateSummary(JobUpdateSummary updateSummary) { + this.updateSummary = updateSummary; + return this; + } + + public void unsetUpdateSummary() { + this.updateSummary = null; + } + + /** Returns true if field updateSummary is set (has been assigned a value) and false otherwise */ + public boolean isSetUpdateSummary() { + return this.updateSummary != null; + } + + public void setUpdateSummaryIsSet(boolean value) { + if (!value) { + this.updateSummary = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case KEY: + if (value == null) { + unsetKey(); + } else { + setKey((JobUpdateKey)value); + } + break; + + case UPDATE_SUMMARY: + if (value == null) { + unsetUpdateSummary(); + } else { + setUpdateSummary((JobUpdateSummary)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case KEY: + return getKey(); + + case UPDATE_SUMMARY: + return getUpdateSummary(); + + } + throw new IllegalStateException(); + } + + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); + } + + switch (field) { + case KEY: + return isSetKey(); + case UPDATE_SUMMARY: + return isSetUpdateSummary(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof StartJobUpdateResult) + return this.equals((StartJobUpdateResult)that); + return false; + } + + public boolean equals(StartJobUpdateResult that) { + if (that == null) + return false; + + boolean this_present_key = true && this.isSetKey(); + boolean that_present_key = true && that.isSetKey(); + if (this_present_key || that_present_key) { + if (!(this_present_key && that_present_key)) + return false; + if (!this.key.equals(that.key)) + return false; + } + + boolean this_present_updateSummary = true && this.isSetUpdateSummary(); + boolean that_present_updateSummary = true && that.isSetUpdateSummary(); + if (this_present_updateSummary || that_present_updateSummary) { + if (!(this_present_updateSummary && that_present_updateSummary)) + return false; + if (!this.updateSummary.equals(that.updateSummary)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_key = true && (isSetKey()); + list.add(present_key); + if (present_key) + list.add(key); + + boolean present_updateSummary = true && (isSetUpdateSummary()); + list.add(present_updateSummary); + if (present_updateSummary) + list.add(updateSummary); + + return list.hashCode(); + } + + @Override + public int compareTo(StartJobUpdateResult other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetKey()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetUpdateSummary()).compareTo(other.isSetUpdateSummary()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetUpdateSummary()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.updateSummary, other.updateSummary); + if (lastComparison != 0) { + return lastComparison; + } + } + return 0; + } + + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("StartJobUpdateResult("); + boolean first = true; + + sb.append("key:"); + if (this.key == null) { + sb.append("null"); + } else { + sb.append(this.key); + } + first = false; + if (isSetUpdateSummary()) { + if (!first) sb.append(", "); + sb.append("updateSummary:"); + if (this.updateSummary == null) { + sb.append("null"); + } else { + sb.append(this.updateSummary); + } + first = false; + } + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + if (key != null) { + key.validate(); + } + if (updateSummary != null) { + updateSummary.validate(); + } + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class StartJobUpdateResultStandardSchemeFactory implements SchemeFactory { + public StartJobUpdateResultStandardScheme getScheme() { + return new StartJobUpdateResultStandardScheme(); + } + } + + private static class StartJobUpdateResultStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, StartJobUpdateResult struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 1: // KEY + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.key = new JobUpdateKey(); + struct.key.read(iprot); + struct.setKeyIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // UPDATE_SUMMARY + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.updateSummary = new JobUpdateSummary(); + struct.updateSummary.read(iprot); + struct.setUpdateSummaryIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, StartJobUpdateResult struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.key != null) { + oprot.writeFieldBegin(KEY_FIELD_DESC); + struct.key.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.updateSummary != null) { + if (struct.isSetUpdateSummary()) { + oprot.writeFieldBegin(UPDATE_SUMMARY_FIELD_DESC); + struct.updateSummary.write(oprot); + oprot.writeFieldEnd(); + } + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class StartJobUpdateResultTupleSchemeFactory implements SchemeFactory { + public StartJobUpdateResultTupleScheme getScheme() { + return new StartJobUpdateResultTupleScheme(); + } + } + + private static class StartJobUpdateResultTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, StartJobUpdateResult struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetKey()) { + optionals.set(0); + } + if (struct.isSetUpdateSummary()) { + optionals.set(1); + } + oprot.writeBitSet(optionals, 2); + if (struct.isSetKey()) { + struct.key.write(oprot); + } + if (struct.isSetUpdateSummary()) { + struct.updateSummary.write(oprot); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, StartJobUpdateResult struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.key = new JobUpdateKey(); + struct.key.read(iprot); + struct.setKeyIsSet(true); + } + if (incoming.get(1)) { + struct.updateSummary = new JobUpdateSummary(); + struct.updateSummary.read(iprot); + struct.setUpdateSummaryIsSet(true); + } + } + } + +} + http://git-wip-us.apache.org/repos/asf/airavata/blob/0f781b2e/modules/cloud/aurora-client/src/main/java/org/apache/airavata/cloud/aurora/client/sdk/StartMaintenanceResult.java ---------------------------------------------------------------------- diff --git a/modules/cloud/aurora-client/src/main/java/org/apache/airavata/cloud/aurora/client/sdk/StartMaintenanceResult.java b/modules/cloud/aurora-client/src/main/java/org/apache/airavata/cloud/aurora/client/sdk/StartMaintenanceResult.java new file mode 100644 index 0000000..cd00ec4 --- /dev/null +++ b/modules/cloud/aurora-client/src/main/java/org/apache/airavata/cloud/aurora/client/sdk/StartMaintenanceResult.java @@ -0,0 +1,452 @@ +/** + * Autogenerated by Thrift Compiler (0.9.3) + * + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * @generated + */ +package org.apache.airavata.cloud.aurora.client.sdk; + +import org.apache.thrift.scheme.IScheme; +import org.apache.thrift.scheme.SchemeFactory; +import org.apache.thrift.scheme.StandardScheme; + +import org.apache.thrift.scheme.TupleScheme; +import org.apache.thrift.protocol.TTupleProtocol; +import org.apache.thrift.protocol.TProtocolException; +import org.apache.thrift.EncodingUtils; +import org.apache.thrift.TException; +import org.apache.thrift.async.AsyncMethodCallback; +import org.apache.thrift.server.AbstractNonblockingServer.*; +import java.util.List; +import java.util.ArrayList; +import java.util.Map; +import java.util.HashMap; +import java.util.EnumMap; +import java.util.Set; +import java.util.HashSet; +import java.util.EnumSet; +import java.util.Collections; +import java.util.BitSet; +import java.nio.ByteBuffer; +import java.util.Arrays; +import javax.annotation.Generated; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) +@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-10-21") +public class StartMaintenanceResult implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("StartMaintenanceResult"); + + private static final org.apache.thrift.protocol.TField STATUSES_FIELD_DESC = new org.apache.thrift.protocol.TField("statuses", org.apache.thrift.protocol.TType.SET, (short)1); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new StartMaintenanceResultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new StartMaintenanceResultTupleSchemeFactory()); + } + + public Set statuses; // required + + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ + public enum _Fields implements org.apache.thrift.TFieldIdEnum { + STATUSES((short)1, "statuses"); + + private static final Map byName = new HashMap(); + + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } + } + + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case 1: // STATUSES + return STATUSES; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.STATUSES, new org.apache.thrift.meta_data.FieldMetaData("statuses", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.SetMetaData(org.apache.thrift.protocol.TType.SET, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, HostStatus.class)))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(StartMaintenanceResult.class, metaDataMap); + } + + public StartMaintenanceResult() { + } + + public StartMaintenanceResult( + Set statuses) + { + this(); + this.statuses = statuses; + } + + /** + * Performs a deep copy on other. + */ + public StartMaintenanceResult(StartMaintenanceResult other) { + if (other.isSetStatuses()) { + Set __this__statuses = new HashSet(other.statuses.size()); + for (HostStatus other_element : other.statuses) { + __this__statuses.add(new HostStatus(other_element)); + } + this.statuses = __this__statuses; + } + } + + public StartMaintenanceResult deepCopy() { + return new StartMaintenanceResult(this); + } + + @Override + public void clear() { + this.statuses = null; + } + + public int getStatusesSize() { + return (this.statuses == null) ? 0 : this.statuses.size(); + } + + public java.util.Iterator getStatusesIterator() { + return (this.statuses == null) ? null : this.statuses.iterator(); + } + + public void addToStatuses(HostStatus elem) { + if (this.statuses == null) { + this.statuses = new HashSet(); + } + this.statuses.add(elem); + } + + public Set getStatuses() { + return this.statuses; + } + + public StartMaintenanceResult setStatuses(Set statuses) { + this.statuses = statuses; + return this; + } + + public void unsetStatuses() { + this.statuses = null; + } + + /** Returns true if field statuses is set (has been assigned a value) and false otherwise */ + public boolean isSetStatuses() { + return this.statuses != null; + } + + public void setStatusesIsSet(boolean value) { + if (!value) { + this.statuses = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case STATUSES: + if (value == null) { + unsetStatuses(); + } else { + setStatuses((Set)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case STATUSES: + return getStatuses(); + + } + throw new IllegalStateException(); + } + + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); + } + + switch (field) { + case STATUSES: + return isSetStatuses(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof StartMaintenanceResult) + return this.equals((StartMaintenanceResult)that); + return false; + } + + public boolean equals(StartMaintenanceResult that) { + if (that == null) + return false; + + boolean this_present_statuses = true && this.isSetStatuses(); + boolean that_present_statuses = true && that.isSetStatuses(); + if (this_present_statuses || that_present_statuses) { + if (!(this_present_statuses && that_present_statuses)) + return false; + if (!this.statuses.equals(that.statuses)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_statuses = true && (isSetStatuses()); + list.add(present_statuses); + if (present_statuses) + list.add(statuses); + + return list.hashCode(); + } + + @Override + public int compareTo(StartMaintenanceResult other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetStatuses()).compareTo(other.isSetStatuses()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetStatuses()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.statuses, other.statuses); + if (lastComparison != 0) { + return lastComparison; + } + } + return 0; + } + + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("StartMaintenanceResult("); + boolean first = true; + + sb.append("statuses:"); + if (this.statuses == null) { + sb.append("null"); + } else { + sb.append(this.statuses); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class StartMaintenanceResultStandardSchemeFactory implements SchemeFactory { + public StartMaintenanceResultStandardScheme getScheme() { + return new StartMaintenanceResultStandardScheme(); + } + } + + private static class StartMaintenanceResultStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, StartMaintenanceResult struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 1: // STATUSES + if (schemeField.type == org.apache.thrift.protocol.TType.SET) { + { + org.apache.thrift.protocol.TSet _set262 = iprot.readSetBegin(); + struct.statuses = new HashSet(2*_set262.size); + HostStatus _elem263; + for (int _i264 = 0; _i264 < _set262.size; ++_i264) + { + _elem263 = new HostStatus(); + _elem263.read(iprot); + struct.statuses.add(_elem263); + } + iprot.readSetEnd(); + } + struct.setStatusesIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, StartMaintenanceResult struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.statuses != null) { + oprot.writeFieldBegin(STATUSES_FIELD_DESC); + { + oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, struct.statuses.size())); + for (HostStatus _iter265 : struct.statuses) + { + _iter265.write(oprot); + } + oprot.writeSetEnd(); + } + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class StartMaintenanceResultTupleSchemeFactory implements SchemeFactory { + public StartMaintenanceResultTupleScheme getScheme() { + return new StartMaintenanceResultTupleScheme(); + } + } + + private static class StartMaintenanceResultTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, StartMaintenanceResult struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetStatuses()) { + optionals.set(0); + } + oprot.writeBitSet(optionals, 1); + if (struct.isSetStatuses()) { + { + oprot.writeI32(struct.statuses.size()); + for (HostStatus _iter266 : struct.statuses) + { + _iter266.write(oprot); + } + } + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, StartMaintenanceResult struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + { + org.apache.thrift.protocol.TSet _set267 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.statuses = new HashSet(2*_set267.size); + HostStatus _elem268; + for (int _i269 = 0; _i269 < _set267.size; ++_i269) + { + _elem268 = new HostStatus(); + _elem268.read(iprot); + struct.statuses.add(_elem268); + } + } + struct.setStatusesIsSet(true); + } + } + } + +} +