Package dev.vality.damsel.fault_detector
Class ServiceConfig
java.lang.Object
dev.vality.damsel.fault_detector.ServiceConfig
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<ServiceConfig>,org.apache.thrift.TBase<ServiceConfig,ServiceConfig._Fields>,org.apache.thrift.TSerializable
@Generated(value="Autogenerated by Thrift Compiler (0.14.2)",
date="2022-11-14")
public class ServiceConfig
extends Object
implements org.apache.thrift.TBase<ServiceConfig,ServiceConfig._Fields>, Serializable, Cloneable, Comparable<ServiceConfig>
- See Also:
- Serialized Form
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classServiceConfig._FieldsThe set of fields this struct contains, along with convenience methods for finding and manipulating them. -
Field Summary
Fields Modifier and Type Field Description static Map<ServiceConfig._Fields,org.apache.thrift.meta_data.FieldMetaData>metaDataMaplongoperation_time_limitОжидаемое время выполнения операцииintpre_aggregation_sizeВременной интервал для преагрегации операцийlongsliding_windowВременной интервал для "скользящего окна" (время в рамках которого будут браться операции для расчета статистики) -
Constructor Summary
Constructors Constructor Description ServiceConfig()ServiceConfig(long sliding_window, long operation_time_limit)ServiceConfig(ServiceConfig other)Performs a deep copy on other. -
Method Summary
Modifier and Type Method Description voidclear()intcompareTo(ServiceConfig other)ServiceConfigdeepCopy()booleanequals(ServiceConfig that)booleanequals(Object that)ServiceConfig._FieldsfieldForId(int fieldId)Map<ServiceConfig._Fields,org.apache.thrift.meta_data.FieldMetaData>getFieldMetaData()ServiceConfig._Fields[]getFields()ObjectgetFieldValue(ServiceConfig._Fields field)longgetOperationTimeLimit()Ожидаемое время выполнения операцииintgetPreAggregationSize()Временной интервал для преагрегации операцийlonggetSlidingWindow()Временной интервал для "скользящего окна" (время в рамках которого будут браться операции для расчета статистики)inthashCode()booleanisSet(ServiceConfig._Fields field)Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwisebooleanisSetOperationTimeLimit()Returns true if field operation_time_limit is set (has been assigned a value) and false otherwisebooleanisSetPreAggregationSize()Returns true if field pre_aggregation_size is set (has been assigned a value) and false otherwisebooleanisSetSlidingWindow()Returns true if field sliding_window is set (has been assigned a value) and false otherwisevoidread(org.apache.thrift.protocol.TProtocol iprot)voidsetFieldValue(ServiceConfig._Fields field, Object value)ServiceConfigsetOperationTimeLimit(long operation_time_limit)Ожидаемое время выполнения операцииvoidsetOperationTimeLimitIsSet(boolean value)ServiceConfigsetPreAggregationSize(int pre_aggregation_size)Временной интервал для преагрегации операцийvoidsetPreAggregationSizeIsSet(boolean value)ServiceConfigsetSlidingWindow(long sliding_window)Временной интервал для "скользящего окна" (время в рамках которого будут браться операции для расчета статистики)voidsetSlidingWindowIsSet(boolean value)StringtoString()voidunsetOperationTimeLimit()voidunsetPreAggregationSize()voidunsetSlidingWindow()voidvalidate()voidwrite(org.apache.thrift.protocol.TProtocol oprot)
-
Field Details
-
sliding_window
public long sliding_windowВременной интервал для "скользящего окна" (время в рамках которого будут браться операции для расчета статистики) -
operation_time_limit
public long operation_time_limitОжидаемое время выполнения операции -
pre_aggregation_size
public int pre_aggregation_sizeВременной интервал для преагрегации операций -
metaDataMap
public static final Map<ServiceConfig._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
-
-
Constructor Details
-
ServiceConfig
public ServiceConfig() -
ServiceConfig
public ServiceConfig(long sliding_window, long operation_time_limit) -
ServiceConfig
Performs a deep copy on other.
-
-
Method Details
-
deepCopy
- Specified by:
deepCopyin interfaceorg.apache.thrift.TBase<ServiceConfig,ServiceConfig._Fields>
-
clear
public void clear()- Specified by:
clearin interfaceorg.apache.thrift.TBase<ServiceConfig,ServiceConfig._Fields>
-
getSlidingWindow
public long getSlidingWindow()Временной интервал для "скользящего окна" (время в рамках которого будут браться операции для расчета статистики) -
setSlidingWindow
Временной интервал для "скользящего окна" (время в рамках которого будут браться операции для расчета статистики) -
unsetSlidingWindow
public void unsetSlidingWindow() -
isSetSlidingWindow
public boolean isSetSlidingWindow()Returns true if field sliding_window is set (has been assigned a value) and false otherwise -
setSlidingWindowIsSet
public void setSlidingWindowIsSet(boolean value) -
getOperationTimeLimit
public long getOperationTimeLimit()Ожидаемое время выполнения операции -
setOperationTimeLimit
Ожидаемое время выполнения операции -
unsetOperationTimeLimit
public void unsetOperationTimeLimit() -
isSetOperationTimeLimit
public boolean isSetOperationTimeLimit()Returns true if field operation_time_limit is set (has been assigned a value) and false otherwise -
setOperationTimeLimitIsSet
public void setOperationTimeLimitIsSet(boolean value) -
getPreAggregationSize
public int getPreAggregationSize()Временной интервал для преагрегации операций -
setPreAggregationSize
Временной интервал для преагрегации операций -
unsetPreAggregationSize
public void unsetPreAggregationSize() -
isSetPreAggregationSize
public boolean isSetPreAggregationSize()Returns true if field pre_aggregation_size is set (has been assigned a value) and false otherwise -
setPreAggregationSizeIsSet
public void setPreAggregationSizeIsSet(boolean value) -
setFieldValue
- Specified by:
setFieldValuein interfaceorg.apache.thrift.TBase<ServiceConfig,ServiceConfig._Fields>
-
getFieldValue
- Specified by:
getFieldValuein interfaceorg.apache.thrift.TBase<ServiceConfig,ServiceConfig._Fields>
-
isSet
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise- Specified by:
isSetin interfaceorg.apache.thrift.TBase<ServiceConfig,ServiceConfig._Fields>
-
equals
-
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareToin interfaceComparable<ServiceConfig>
-
fieldForId
- Specified by:
fieldForIdin interfaceorg.apache.thrift.TBase<ServiceConfig,ServiceConfig._Fields>
-
getFields
-
getFieldMetaData
-
read
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException- Specified by:
readin interfaceorg.apache.thrift.TSerializable- Throws:
org.apache.thrift.TException
-
write
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException- Specified by:
writein interfaceorg.apache.thrift.TSerializable- Throws:
org.apache.thrift.TException
-
toString
-
validate
public void validate() throws org.apache.thrift.TException- Throws:
org.apache.thrift.TException
-