Package net.snowflake.ingest.connection
Enum ServiceResponseHandler.ApiName
- java.lang.Object
-
- java.lang.Enum<ServiceResponseHandler.ApiName>
-
- net.snowflake.ingest.connection.ServiceResponseHandler.ApiName
-
- All Implemented Interfaces:
Serializable
,Comparable<ServiceResponseHandler.ApiName>
- Enclosing class:
- ServiceResponseHandler
public static enum ServiceResponseHandler.ApiName extends Enum<ServiceResponseHandler.ApiName>
Enums for Snowpipe REST API: https://docs.snowflake.com/en/user-guide/data-load-snowpipe-rest-apis.html Used in handleExceptionalStatus for logging purpose
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CLIENT_CONFIGURE
CLIENT_STATUS
INSERT_FILES
INSERT_REPORT
LOAD_HISTORY_SCAN
STREAMING_CHANNEL_STATUS
STREAMING_CLIENT_CONFIGURE
STREAMING_OPEN_CHANNEL
STREAMING_REGISTER_BLOB
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getHttpMethod()
static ServiceResponseHandler.ApiName
valueOf(String name)
Returns the enum constant of this type with the specified name.static ServiceResponseHandler.ApiName[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INSERT_FILES
public static final ServiceResponseHandler.ApiName INSERT_FILES
-
INSERT_REPORT
public static final ServiceResponseHandler.ApiName INSERT_REPORT
-
LOAD_HISTORY_SCAN
public static final ServiceResponseHandler.ApiName LOAD_HISTORY_SCAN
-
CLIENT_CONFIGURE
public static final ServiceResponseHandler.ApiName CLIENT_CONFIGURE
-
CLIENT_STATUS
public static final ServiceResponseHandler.ApiName CLIENT_STATUS
-
STREAMING_OPEN_CHANNEL
public static final ServiceResponseHandler.ApiName STREAMING_OPEN_CHANNEL
-
STREAMING_CHANNEL_STATUS
public static final ServiceResponseHandler.ApiName STREAMING_CHANNEL_STATUS
-
STREAMING_REGISTER_BLOB
public static final ServiceResponseHandler.ApiName STREAMING_REGISTER_BLOB
-
STREAMING_CLIENT_CONFIGURE
public static final ServiceResponseHandler.ApiName STREAMING_CLIENT_CONFIGURE
-
-
Method Detail
-
values
public static ServiceResponseHandler.ApiName[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ServiceResponseHandler.ApiName c : ServiceResponseHandler.ApiName.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ServiceResponseHandler.ApiName valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getHttpMethod
public String getHttpMethod()
-
-