This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vi /etc/environment | |
add these lines... | |
LANG=en_US.utf-8 | |
LC_ALL=en_US.utf-8 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.lmax.disruptor.dsl.Disruptor | |
import java.util.concurrent.Executors | |
import com.lmax.disruptor._ | |
import com.mongodb.casbah.Imports._ | |
import voldemort.client._ | |
object Main { | |
val bootstrapUrl = "tcp://localhost:6666" | |
val factory = new SocketStoreClientFactory(new ClientConfig().setBootstrapUrls(bootstrapUrl)); | |
val client = factory.getStoreClient[String, String]("test"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.lmax.disruptor.RingBuffer; | |
import com.lmax.disruptor.dsl.Disruptor; | |
import java.util.concurrent.ExecutorService; | |
import java.util.concurrent.Executors; | |
public class BackgroundLogger | |
{ | |
private static final int ENTRIES = 64; |