congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
ManagerParseStop.parse
Code IndexAdd Tabnine to your IDE (free)

How to use
parse
method
in
com.actiontech.dble.route.parser.ManagerParseStop

Best Java code snippets using com.actiontech.dble.route.parser.ManagerParseStop.parse (Showing top 2 results out of 315)

origin: actiontech/dble

public static void handle(String stmt, ManagerConnection c, int offset) {
  switch (ManagerParseStop.parse(stmt, offset)) {
    case ManagerParseStop.HEARTBEAT:
      StopHeartbeat.execute(stmt, c);
      break;
    default:
      c.writeErrMessage(ErrorCode.ER_YES, "Unsupported statement");
  }
}
origin: actiontech/dble

@Test
public void testStopHeartBeat() {
  Assert.assertEquals(ManagerParseStop.HEARTBEAT, ManagerParseStop.parse("stop @@heartbeat ds:1000", 4));
  Assert.assertEquals(ManagerParseStop.HEARTBEAT, ManagerParseStop.parse(" STOP  @@HEARTBEAT ds:1000", 5));
  Assert.assertEquals(ManagerParseStop.HEARTBEAT, ManagerParseStop.parse(" STOP  @@heartbeat ds:1000", 5));
}
com.actiontech.dble.route.parserManagerParseStopparse

Popular methods of ManagerParseStop

  • getPair
  • stop2Check

Popular in Java

  • Running tasks concurrently on multiple threads
  • setScale (BigDecimal)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • compareTo (BigDecimal)
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • Table (org.hibernate.mapping)
    A relational table
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now