com.github.shyiko.mysql.binlog.network.protocol.command
Enum CommandType

java.lang.Object
  extended by java.lang.Enum<CommandType>
      extended by com.github.shyiko.mysql.binlog.network.protocol.command.CommandType
All Implemented Interfaces:
Serializable, Comparable<CommandType>

public enum CommandType
extends Enum<CommandType>

Author:
Stanley Shyiko
See Also:
Text Protocol for the original documentation.

Enum Constant Summary
BINLOG_DUMP
          Requests a binary log network stream from the master starting a given position.
BINLOG_DUMP_GTID
          Used to request the binary log network stream based on a GTID.
CHANGE_USER
          Used to change user of the current connection and reset the connection state.
CONNECT
          Internal server command.
CONNECT_OUT
          Internal server command.
CREATE_DB
          Used to create new schema.
DAEMON
          Internal server command.
DEBUG
          Triggers a dump on internal debug info to stdout of the mysql-server.
DELAYED_INSERT
          Internal server command.
DROP_DB
          Used to drop existing schema.
FIELD_LIST
          Used to get column definitions of the specific table.
INIT_DB
          Used to change the default schema of the connection.
PING
          Used to check if the server is alive.
PROCESS_INFO
          Used to get a list of active threads.
PROCESS_KILL
          Used to ask the server to terminate the connection.
QUERY
          Used to send the server a text-based query that is executed immediately.
QUIT
          Used to inform the server that client wants to close the connection.
REFRESH
          A low-level version of several FLUSH ...
REGISTER_SLAVE
          Registers a slave at the master.
SET_OPTION
          Allows to enable and disable ClientCapabilities.MULTI_STATEMENTS for the current connection.
SHUTDOWN
          Used to shutdown the mysql-server.
SLEEP
          Internal server command.
STATISTICS
          Used to get a human readable string of internal statistics.
STMT_CLOSE
          Deallocates a prepared statement.
STMT_EXECUTE
          Used to execute a prepared statement as identified by statement id.
STMT_FETCH
          Fetch a row from a existing resultset after a STMT_EXECUTE.
STMT_PREPARE
          Creates a prepared statement from the passed query string.
STMT_RESET
          Resets the data of a prepared statement which was accumulated with STMT_SEND_LONG_DATA commands.
STMT_SEND_LONG_DATA
          Used to send some data for a column.
TABLE_DUMP
          Used to dump a specific table.
TIME
          Internal server command.
 
Method Summary
static CommandType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static CommandType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

SLEEP

public static final CommandType SLEEP
Internal server command.


QUIT

public static final CommandType QUIT
Used to inform the server that client wants to close the connection.


INIT_DB

public static final CommandType INIT_DB
Used to change the default schema of the connection.


QUERY

public static final CommandType QUERY
Used to send the server a text-based query that is executed immediately.


FIELD_LIST

public static final CommandType FIELD_LIST
Used to get column definitions of the specific table.


CREATE_DB

public static final CommandType CREATE_DB
Used to create new schema.


DROP_DB

public static final CommandType DROP_DB
Used to drop existing schema.


REFRESH

public static final CommandType REFRESH
A low-level version of several FLUSH ... and RESET ... commands.


SHUTDOWN

public static final CommandType SHUTDOWN
Used to shutdown the mysql-server.


STATISTICS

public static final CommandType STATISTICS
Used to get a human readable string of internal statistics.


PROCESS_INFO

public static final CommandType PROCESS_INFO
Used to get a list of active threads.


CONNECT

public static final CommandType CONNECT
Internal server command.


PROCESS_KILL

public static final CommandType PROCESS_KILL
Used to ask the server to terminate the connection.


DEBUG

public static final CommandType DEBUG
Triggers a dump on internal debug info to stdout of the mysql-server.


PING

public static final CommandType PING
Used to check if the server is alive.


TIME

public static final CommandType TIME
Internal server command.


DELAYED_INSERT

public static final CommandType DELAYED_INSERT
Internal server command.


CHANGE_USER

public static final CommandType CHANGE_USER
Used to change user of the current connection and reset the connection state.


BINLOG_DUMP

public static final CommandType BINLOG_DUMP
Requests a binary log network stream from the master starting a given position.


TABLE_DUMP

public static final CommandType TABLE_DUMP
Used to dump a specific table.


CONNECT_OUT

public static final CommandType CONNECT_OUT
Internal server command.


REGISTER_SLAVE

public static final CommandType REGISTER_SLAVE
Registers a slave at the master. Should be sent before requesting a binary log events with BINLOG_DUMP.


STMT_PREPARE

public static final CommandType STMT_PREPARE
Creates a prepared statement from the passed query string.


STMT_EXECUTE

public static final CommandType STMT_EXECUTE
Used to execute a prepared statement as identified by statement id.


STMT_SEND_LONG_DATA

public static final CommandType STMT_SEND_LONG_DATA
Used to send some data for a column.


STMT_CLOSE

public static final CommandType STMT_CLOSE
Deallocates a prepared statement.


STMT_RESET

public static final CommandType STMT_RESET
Resets the data of a prepared statement which was accumulated with STMT_SEND_LONG_DATA commands.


SET_OPTION

public static final CommandType SET_OPTION
Allows to enable and disable ClientCapabilities.MULTI_STATEMENTS for the current connection.


STMT_FETCH

public static final CommandType STMT_FETCH
Fetch a row from a existing resultset after a STMT_EXECUTE.


DAEMON

public static final CommandType DAEMON
Internal server command.


BINLOG_DUMP_GTID

public static final CommandType BINLOG_DUMP_GTID
Used to request the binary log network stream based on a GTID.

Method Detail

values

public static CommandType[] 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 (CommandType c : CommandType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static CommandType 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 name
NullPointerException - if the argument is null


Copyright © 2016. All Rights Reserved.