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
/* | |
* Licensed to the Apache Software Foundation (ASF) under one or more | |
* contributor license agreements. See the NOTICE file distributed with | |
* this work for additional information regarding copyright ownership. | |
* The ASF licenses this file to You under the Apache License, Version 2.0 | |
* (the "License"); you may not use this file except in compliance with | |
* the License. You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* |
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
------------------------------------------------------------ | |
Project :core:controller | |
------------------------------------------------------------ | |
compile - Dependencies for source set 'main' (deprecated, use 'implementation ' instead). | |
+--- org.scala-lang:scala-library:2.11.11 -> 2.11.12 | |
+--- com.lightbend.akka.management:akka-management-cluster-bootstrap_2.11:0.11.0 | |
| +--- org.scala-lang:scala-library:2.11.11 -> 2.11.12 | |
| +--- com.lightbend.akka.management:akka-management_2.11:0.11.0 | |
| | +--- org.scala-lang:scala-library:2.11.11 -> 2.11.12 |
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
import groovy.json.JsonOutput | |
import groovy.json.JsonSlurper | |
def owHome = System.getenv("OPENWHISK_HOME") | |
assert owHome : "Cannot determine OpenWhisk home via environment variable 'OPENWHISK_HOME'" | |
def containerNames = 'docker ps --format {{.Names}}'.execute().text.split("\n") | |
def transformEnvScript = "/bin/bash $owHome/common/scala/transformEnvironment.sh" | |
def text = '''<component name="ProjectRunConfigurationManager"> |
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
import groovy.json.JsonOutput | |
import groovy.time.TimeCategory | |
import groovy.transform.Field | |
import java.util.zip.ZipEntry | |
import java.util.zip.ZipFile | |
import groovy.json.JsonSlurper | |
import org.json.JSONObject | |
@Grab(group='org.json', module='json', version='20140107') | |
import org.json.XML |
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
import com.google.common.base.Stopwatch | |
import org.apache.jackrabbit.oak.spi.state.NodeStore | |
import org.slf4j.Logger | |
import org.slf4j.LoggerFactory | |
NodeStore ns = getStore() | |
def agent = ns.getLastRevRecoveryAgent() | |
def lastRevUtil = agent.missingLastRevUtil |
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
/* | |
* Licensed to the Apache Software Foundation (ASF) under one | |
* or more contributor license agreements. See the NOTICE file | |
* distributed with this work for additional information | |
* regarding copyright ownership. The ASF licenses this file | |
* to you under the Apache License, Version 2.0 (the | |
* "License"); you may not use this file except in compliance | |
* with the License. You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 |
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
import java.io.InputStream; | |
import java.util.concurrent.atomic.AtomicInteger | |
import org.apache.jackrabbit.oak.api.Type | |
import org.apache.jackrabbit.oak.plugins.segment.SegmentBlob | |
import org.apache.jackrabbit.oak.spi.state.NodeState | |
def countNodes(NodeState n, deep = false, String path = "/", Integer flush = 50000, AtomicInteger count = new AtomicInteger(0), AtomicInteger binaries = new AtomicInteger(0), root = true) { | |
if(root) { | |
println "Counting nodes in tree ${path}" | |
} |
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
import org.apache.jackrabbit.oak.spi.commit.CommitInfo | |
import org.apache.jackrabbit.oak.spi.commit.EmptyHook | |
import org.apache.jackrabbit.oak.spi.state.NodeBuilder as JNodeBuilder | |
import org.apache.jackrabbit.oak.spi.state.NodeStore | |
import org.apache.jackrabbit.util.ISO8601 | |
import java.util.concurrent.TimeUnit | |
NodeStore store = getStore() |
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 hpe | |
import org.apache.jackrabbit.oak.api.Blob | |
import org.apache.jackrabbit.oak.api.PropertyState | |
import org.apache.jackrabbit.oak.api.Type | |
import org.apache.jackrabbit.oak.spi.commit.CommitInfo | |
import org.apache.jackrabbit.oak.spi.commit.EmptyHook | |
import org.apache.jackrabbit.oak.spi.state.ChildNodeEntry | |
import org.apache.jackrabbit.oak.spi.state.NodeBuilder | |
import org.apache.jackrabbit.oak.spi.state.NodeState |
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 felixconsole | |
import com.google.common.base.Charsets | |
import com.google.common.hash.Hashing | |
import groovy.json.JsonOutput | |
import groovy.json.JsonSlurper | |
import org.apache.commons.io.FileUtils | |
import org.apache.jackrabbit.core.data.DataIdentifier | |
import org.apache.jackrabbit.core.data.DataRecord | |
import org.apache.jackrabbit.core.data.FileDataStore |
NewerOlder