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

public enum CommandType extends Enum<CommandType>
Author:
Stanley Shyiko
See Also:
  • Enum Constant Details

    • 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 Details

    • values

      public static CommandType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static CommandType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null