Skip to content

Instantly share code, notes, and snippets.

{
"openapi" : "3.0.1",
"info" : {
"title" : "Starburst Galaxy Metastore API",
"description" : "# Access Tokens\n\nAccess tokens are obtained using the OAuth2 credentials flow and API authentication tokens.\n\n1. Create an API authentication token at `https://{account-domain}/api-auth-token`\n2. Use the API authentication token to obtain a temporary access token by POST to `https://{account-domain}/oauth/v2/token`. The request must have a Basic Authorization header with the client ID and secret Base64 encoded in the form `clientId:clientSecret`. The request body must be `grant_type=client_credentials`.\n\n`cURL` example:\n\n```\ncurl -X POST \\\n -H 'Authorization: Basic {base64(clientId:clientSecret)}' \\\n -H 'Content-Type: application/x-www-form-urlencoded' \\\n -d 'grant_type=client_credentials' \\\n https://{account-domain}/oauth/v2/token\n```\n\nThe access token returned can be used to make API calls with the header `Authorization: Bearer {access token}`.\n",
"version" : "v1"
},
"
@Randgalt
Randgalt / test.json
Last active February 24, 2024 13:40
{
"openapi" : "3.0.1",
"info" : {
"title" : "test",
"version" : "v1",
"summary" : "test"
},
"tags" : [ {
"name" : "Standard Service",
"description" : "Does standard things"
package retry;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.sql.Savepoint;
import java.sql.Statement;
public class RetryTest
{
package jdk19;
import org.openjdk.jmh.annotations.Benchmark;
import org.openjdk.jmh.annotations.Scope;
import org.openjdk.jmh.annotations.State;
import org.openjdk.jmh.runner.Runner;
import org.openjdk.jmh.runner.RunnerException;
import org.openjdk.jmh.runner.options.Options;
import org.openjdk.jmh.runner.options.OptionsBuilder;
{"openapi":"3.0.1","info":{"title":"Starburst Galaxy Public API","description":"APIs for managing your Starburst Galaxy account","version":"v1"},"servers":[{"url":"https://{account-domain}","variables":{"account-domain":{"description":"Your account domain","default":""}}}],"tags":[{"name":"Cluster Service","description":"Cluster related operations"}],"paths":{"/public/api/v1/cluster":{"get":{"tags":["Cluster Service"],"description":"Return the clusters of your account","operationId":"listClusters","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/cluster"}}}}},"400":{"description":"InvalidArgument","content":{"application/json":{"schema":{"$ref":"#/components/schemas/badrequest"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/errorinfo"}}}},"403":{"description":"PermissionDenied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/errorinfo"
// Auto generated by io.soabase.recordbuilder.core.RecordBuilder: https://github.com/Randgalt/record-builder
package io.soabase.recordbuilder.test;
import io.soabase.recordbuilder.core.RecordBuilderGenerated;
import java.util.AbstractMap;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
// Auto generated by io.soabase.recordbuilder.core.RecordBuilder: https://github.com/Randgalt/record-builder
package io.soabase.recordbuilder.test;
import java.util.AbstractMap;
import java.util.Collection;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Set;
import java.util.function.Consumer;
2020-11-27 08:33:23
Full thread dump OpenJDK 64-Bit Server VM (15+35-1559 mixed mode, sharing):
Threads class SMR info:
_java_thread_list=0x00007fa478441260, length=14, elements={
0x00007fa4d8808200, 0x00007fa4e88dbe00, 0x00007fa4e9031400, 0x00007fa4e9033200,
0x00007fa4e9033800, 0x00007fa4e9033e00, 0x00007fa4e88dca00, 0x00007fa4e98b9e00,
0x00007fa4ea00a600, 0x00007fa4ea013600, 0x00007fa4e9a44c00, 0x00007fa4d8814a00,
0x00007fa4b885ea00, 0x00007fa4b89a3a00
}
2020-11-27 08:29:32
Full thread dump OpenJDK 64-Bit Server VM (15+35-1559 mixed mode, sharing):
Threads class SMR info:
_java_thread_list=0x00007fa8ce6b69f0, length=28, elements={
0x00007fa8be809600, 0x00007fa8cf83ba00, 0x00007fa8be808e00, 0x00007fa8cf0c1a00,
0x00007fa8cf0c4200, 0x00007fa8cf0c4800, 0x00007fa8cf0c6e00, 0x00007fa8cf0c7400,
0x00007fa8ce808200, 0x00007fa8ce834600, 0x00007fa88eb07000, 0x00007fa8d1916600,
0x00007fa8ce83c600, 0x00007fa80fa5ec00, 0x00007fa80fcc5400, 0x00007fa8cf368c00,
0x00007fa8cfd1f200, 0x00007fa80fcc5a00, 0x00007fa88ea6c400, 0x00007fa8186c7800,
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
public class GetRecordComponents