Adds possibility to use IP-address when invoking "connect" from the command line client. patch by Per Mellqvist for #41

git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@761059 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jonathan Ellis 2009-04-01 21:02:59 +00:00
parent 41943de4a9
commit 7a4b0f7423
1 changed files with 5 additions and 2 deletions

View File

@ -58,11 +58,11 @@ tokens {
}
@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 @@ stmt
connectStmt
: K_CONNECT host SLASH port -> ^(NODE_CONNECT host port)
| K_CONNECT ip SLASH port -> ^(NODE_CONNECT ip port)
;
helpStmt
@ -151,6 +152,8 @@ columnOrSuperColumn: StringLiteral;
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;
//