Package com.gpudb.protocol
Class AlterTableMonitorRequest
java.lang.Object
com.gpudb.protocol.AlterTableMonitorRequest
All Implemented Interfaces:
org.apache.avro.generic.GenericContainer, org.apache.avro.generic.IndexedRecordpublic class AlterTableMonitorRequest extends Object implements org.apache.avro.generic.IndexedRecord
A set of parameters for
GPUdb.alterTableMonitor.
Alters a table monitor previously created with GPUdb.createTableMonitor.
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA set of string constants for theAlterTableMonitorRequestparametermonitorUpdatesMap.Constructor Summary
ConstructorsMethod Summary
Modifier and TypeMethodDescriptionbooleanget(int index) This method supports the Avro framework and is not intended to be called directly by the user.static org.apache.avro.SchemaThis method supports the Avro framework and is not intended to be called directly by the user.Map containing the properties of the table monitor to be updated.Optional parameters.org.apache.avro.SchemaThis method supports the Avro framework and is not intended to be called directly by the user.The topic ID returned byGPUdb.createTableMonitor.inthashCode()voidThis method supports the Avro framework and is not intended to be called directly by the user.setMonitorUpdatesMap(Map<String, String> monitorUpdatesMap) Map containing the properties of the table monitor to be updated.setOptions(Map<String, String> options) Optional parameters.setTopicId(String topicId) The topic ID returned byGPUdb.createTableMonitor.toString()
Constructor Details
AlterTableMonitorRequest
public AlterTableMonitorRequest(String topicId, Map<String, String> monitorUpdatesMap, Map<String, String> options) Constructs an AlterTableMonitorRequest object with the specified parameters.Parameters:topicId- The topic ID returned byGPUdb.createTableMonitor.monitorUpdatesMap- Map containing the properties of the table monitor to be updated. Error if empty.SCHEMA_NAME: Updates the schema name. IfSCHEMA_NAMEdoesn’t exist, an error will be thrown. IfSCHEMA_NAMEis empty, then the user’s default schema will be used.MAX_CONSECUTIVE_FAILURES: Updates the maximum number of consecutive failures before suspending the stream. A value of ‘-1’ to disables auto-suspend. This value is by rank and not overall.NOTIFICATIONS: Updates the state of the monitor. Supported values:The default value is an emptyMap.
options- Optional parameters. The default value is an emptyMap.
Method Details
setTopicId
The topic ID returned byGPUdb.createTableMonitor.Parameters:topicId- The new value fortopicId.Returns:thisto mimic the builder pattern.getMonitorUpdatesMap
Map containing the properties of the table monitor to be updated. Error if empty.SCHEMA_NAME: Updates the schema name. IfSCHEMA_NAMEdoesn’t exist, an error will be thrown. IfSCHEMA_NAMEis empty, then the user’s default schema will be used.MAX_CONSECUTIVE_FAILURES: Updates the maximum number of consecutive failures before suspending the stream. A value of ‘-1’ to disables auto-suspend. This value is by rank and not overall.NOTIFICATIONS: Updates the state of the monitor. Supported values:The default value is an emptyMap.
Returns:The current value ofmonitorUpdatesMap.setMonitorUpdatesMap
Map containing the properties of the table monitor to be updated. Error if empty.SCHEMA_NAME: Updates the schema name. IfSCHEMA_NAMEdoesn’t exist, an error will be thrown. IfSCHEMA_NAMEis empty, then the user’s default schema will be used.MAX_CONSECUTIVE_FAILURES: Updates the maximum number of consecutive failures before suspending the stream. A value of ‘-1’ to disables auto-suspend. This value is by rank and not overall.NOTIFICATIONS: Updates the state of the monitor. Supported values:The default value is an emptyMap.
Parameters:monitorUpdatesMap- The new value formonitorUpdatesMap.Returns:thisto mimic the builder pattern.setOptions
Optional parameters. The default value is an emptyMap.Parameters:options- The new value foroptions.Returns:thisto mimic the builder pattern.