This file contains 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
curl -XDELETE "http://localhost:9200/logstash-1" | |
curl -XPUT "http://localhost:9200/logstash-1/log/1" -d' | |
{ | |
"statistics": { | |
"contestant": [ | |
{ | |
"id": "alice", | |
"data": [ | |
{ |
This file contains 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
curl -XPUT "http://localhost:9200/_template/logstash" -d' | |
{ | |
"template": "logstash-*", | |
"settings": { | |
"index.refresh_interval": "5s" | |
}, | |
"mappings": { | |
"_default_": { | |
"dynamic_templates": [ | |
{ |
This file contains 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
curl -XPUT "http://localhost:9200/contests/" -d' | |
{ | |
"settings": { | |
"index.number_of_replicas": 0, | |
"index.number_of_shards": 1, | |
"index.refresh_interval": -1 | |
}, | |
"mappings": { | |
"contest": { | |
"properties": { |
This file contains 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
curl -XDELETE "http://localhost:9200/contests" | |
curl -XPUT "http://localhost:9200/contests" -d' | |
{ | |
"mappings": { | |
"contest": { | |
"properties": { | |
"contestant": { | |
"type": "nested", | |
"properties": { | |
"id": { |
This file contains 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
curl -XDELETE "http://localhost:9200/wibble" | |
curl -XPUT "http://localhost:9200/wibble" -d' | |
{ | |
"mappings": { | |
"_default_": { | |
"_all": { | |
"enabled": true | |
}, | |
"dynamic_templates": [ |
This file contains 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
package io.dazraf.vertx.async; | |
import io.vertx.core.AsyncResult; | |
import io.vertx.core.Vertx; | |
import io.vertx.core.eventbus.Message; | |
import io.vertx.core.json.JsonObject; | |
import org.junit.Test; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; |
I hereby claim:
- I am dazraf on github.
- I am dazraf (https://keybase.io/dazraf) on keybase.
- I have a public key ASAmnX9p3KgchojenENzV6qz_uhjBL59m8b12DkoNb3cfgo
To claim this, I am signing this object:
This file contains 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
➤ jstack -l 15513 | |
Full thread dump Java HotSpot(TM) 64-Bit Server VM (25.112-b16 mixed mode): | |
"Attach Listener" #83 daemon prio=9 os_prio=31 tid=0x00007fd61515c800 nid=0x8b07 waiting on condition [0x0000000000000000] | |
java.lang.Thread.State: RUNNABLE | |
Locked ownable synchronizers: | |
- None | |
"DestroyJavaVM" #69 prio=5 os_prio=31 tid=0x00007fd615149800 nid=0x1c03 waiting on condition [0x0000000000000000] |
This file contains 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
package yourpackage | |
import net.corda.node.internal.StartedNode | |
import net.corda.testing.node.MockNetwork | |
import org.h2.tools.Server | |
class H2Server(nodes: MockNetwork.BasketOfNodes, private val port : Int = 9092) { | |
companion object { | |
private val H2_NAME_RE = "^jdbc:h2:(mem:[^;:]+).*$".toRegex() | |
} |
OlderNewer