createTime = System.currentTimeMillis();
logger.debug("Created connection [" + this.id + "] at [" + new Date(this.createTime) + "]");
if (!embedded) {
this.socket = new TSocket(VirgilConfiguration.getHost(), VirgilConfiguration.getPort());
this.transport = new TFramedTransport(socket);
TProtocol proto = new TBinaryProtocol(transport);
this.connection = new Cassandra.Client(proto);
transport.open();
} else {
this.connection = new CassandraServer();
}