cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbel...@apache.org
Subject svn commit: r761059 - /incubator/cassandra/trunk/src/org/apache/cassandra/cli/Cli.g
Date Wed, 01 Apr 2009 21:03:00 GMT
Author: jbellis
Date: Wed Apr  1 21:02:59 2009
New Revision: 761059

URL: http://svn.apache.org/viewvc?rev=761059&view=rev
Log:
Adds possibility to use IP-address when invoking "connect" from the command line client. 
patch by Per Mellqvist for #41

Modified:
    incubator/cassandra/trunk/src/org/apache/cassandra/cli/Cli.g

Modified: incubator/cassandra/trunk/src/org/apache/cassandra/cli/Cli.g
URL: http://svn.apache.org/viewvc/incubator/cassandra/trunk/src/org/apache/cassandra/cli/Cli.g?rev=761059&r1=761058&r2=761059&view=diff
==============================================================================
--- incubator/cassandra/trunk/src/org/apache/cassandra/cli/Cli.g (original)
+++ incubator/cassandra/trunk/src/org/apache/cassandra/cli/Cli.g Wed Apr  1 21:02:59 2009
@@ -58,11 +58,11 @@
 }
 
 @parser::header {
-package com.facebook.infrastructure.cli;
+package org.apache.cassandra.cli;
 }
 
 @lexer::header {
-package com.facebook.infrastructure.cli;
+package org.apache.cassandra.cli;
 }
 
 //
@@ -85,6 +85,7 @@
 
 connectStmt
     : K_CONNECT host SLASH port -> ^(NODE_CONNECT host port)
+    | K_CONNECT ip SLASH port -> ^(NODE_CONNECT ip port)
     ;
 
 helpStmt
@@ -151,6 +152,8 @@
 
 host: id+=Identifier (id+=DOT id+=Identifier)* -> ^(NODE_ID_LIST $id+);
 
+ip: id+=IntegerLiteral id+=DOT id+=IntegerLiteral id+=DOT id+=IntegerLiteral id+=DOT id+=IntegerLiteral
-> ^(NODE_ID_LIST $id+);
+
 port: IntegerLiteral;
 
 //



Mime
View raw message