Enum CommandType
- java.lang.Object
-
- java.lang.Enum<CommandType>
-
- 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
Enum Constants Enum Constant Description BINLOG_DUMPRequests a binary log network stream from the master starting a given position.BINLOG_DUMP_GTIDUsed to request the binary log network stream based on a GTID.CHANGE_USERUsed to change user of the current connection and reset the connection state.CONNECTInternal server command.CONNECT_OUTInternal server command.CREATE_DBUsed to create new schema.DAEMONInternal server command.DEBUGTriggers a dump on internal debug info to stdout of the mysql-server.DELAYED_INSERTInternal server command.DROP_DBUsed to drop existing schema.FIELD_LISTUsed to get column definitions of the specific table.INIT_DBUsed to change the default schema of the connection.PINGUsed to check if the server is alive.PROCESS_INFOUsed to get a list of active threads.PROCESS_KILLUsed to ask the server to terminate the connection.QUERYUsed to send the server a text-based query that is executed immediately.QUITUsed to inform the server that client wants to close the connection.REFRESHA low-level version of several FLUSH ...REGISTER_SLAVERegisters a slave at the master.SET_OPTIONAllows to enable and disableClientCapabilities.MULTI_STATEMENTSfor the current connection.SHUTDOWNUsed to shutdown the mysql-server.SLEEPInternal server command.STATISTICSUsed to get a human readable string of internal statistics.STMT_CLOSEDeallocates a prepared statement.STMT_EXECUTEUsed to execute a prepared statement as identified by statement id.STMT_FETCHFetch a row from a existing resultset after aSTMT_EXECUTE.STMT_PREPARECreates a prepared statement from the passed query string.STMT_RESETResets the data of a prepared statement which was accumulated withSTMT_SEND_LONG_DATAcommands.STMT_SEND_LONG_DATAUsed to send some data for a column.TABLE_DUMPUsed to dump a specific table.TIMEInternal server command.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CommandTypevalueOf(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.
-
-
-
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 withBINLOG_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 withSTMT_SEND_LONG_DATAcommands.
-
SET_OPTION
public static final CommandType SET_OPTION
Allows to enable and disableClientCapabilities.MULTI_STATEMENTSfor the current connection.
-
STMT_FETCH
public static final CommandType STMT_FETCH
Fetch a row from a existing resultset after aSTMT_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 nameNullPointerException- if the argument is null
-
-