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
9:43:29 PM: Executing task 'runIde --debug'... | |
Starting Gradle Daemon... | |
Connected to the target VM, address: '127.0.0.1:34559', transport: 'socket' | |
Gradle Daemon started in 1 s 270 ms | |
2021-01-25T21:43:31.797+0300 [INFO] [org.gradle.launcher.daemon.server.exec.LogToClient] The client will now receive all logging from the daemon (pid: 29671). The daemon log file: /home/serg-v/.gradle/daemon/6.7.1/daemon-29671.out.log | |
2021-01-25T21:43:31.801+0300 [INFO] [org.gradle.launcher.daemon.server.exec.LogAndCheckHealth] Starting build in new daemon [memory: 536.9 MB] | |
2021-01-25T21:43:31.810+0300 [DEBUG] [org.gradle.launcher.daemon.server.exec.ExecuteBuild] The daemon has started executing the build. | |
2021-01-25T21:43:31.811+0300 [DEBUG] [org.gradle.launcher.daemon.server.exec.ExecuteBuild] Executing build with daemon context: DefaultDaemonContext[uid=e2522fde-f626-4422-abd5-e2d34f31c2d3,javaHome=/usr/lib/jvm/java-11-openjdk-amd64,daemonRegistryDir=/home/serg-v/.gradle/daemon,pid=29671,idleTimeout=10800000,priority=NORMA |
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
initscript { | |
dependencies { | |
classpath files(['/opt/idea-IC-203.6682.168/plugins/android/lib/android.jar', '/opt/idea-IC-203.6682.168/plugins/android/lib/android.jar', '/opt/idea-IC-203.6682.168/lib/kotlin-stdlib-1.4.0.jar']) | |
} | |
} | |
allprojects { | |
apply plugin: com.android.ide.gradle.model.builder.AndroidStudioToolingPlugin | |
} |
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
Could not load compiled classes for initialization script '/tmp/sync.studio.tooling2.gradle' from cache. | |
> sync_studio_tooling2_1x5rv4dkibjkkztktbgdzyxse | |
* Try: | |
Run with --info or --debug option to get more log output. Run with --scan to get full insights. | |
* Exception is: | |
org.gradle.api.GradleException: Could not load compiled classes for initialization script '/tmp/sync.studio.tooling2.gradle' from cache. | |
at org.gradle.groovy.scripts.internal.DefaultScriptCompilationHandler$ClassesDirCompiledScript.loadClass(DefaultScriptCompilationHandler.java:345) | |
at org.gradle.groovy.scripts.internal.DefaultScriptRunnerFactory$ScriptRunnerImpl.getScript(DefaultScriptRunnerFactory.java:55) |
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.IOException; | |
import java.io.InputStream; | |
import java.io.InputStreamReader; | |
import java.util.Arrays; | |
import java.util.List; | |
import com.google.api.client.auth.oauth2.Credential; | |
import com.google.api.client.extensions.java6.auth.oauth2.AuthorizationCodeInstalledApp; | |
import com.google.api.client.extensions.jetty.auth.oauth2.LocalServerReceiver; |
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
public class PerfomanceTesting { | |
public static void main(String[] args) throws SQLException { | |
final TestDao testDao = new TestDao(); | |
try { | |
long start = System.currentTimeMillis(); | |
for (int i = 0; i < 1000; i++) { | |
testDao.doUpdate(); | |
} | |
System.out.println("update done in " + (System.currentTimeMillis() - start)); |
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
public class TestDao { | |
private final Connection connection; | |
public TestDao() throws SQLException { | |
connection = DriverManager.getConnection("jdbc:mysql://localhost:3306/testdb", "root", "9891"); | |
} | |
public void doUpdate() throws SQLException { | |
try (Statement statement = connection.createStatement();) { |
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 ru.yandex.qe.metrics.join.impl; | |
import java.util.Date; | |
import jdk.nashorn.internal.runtime.regexp.joni.Config; | |
/** | |
* User: serg-v | |
* Date: 11/15/16 |
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
public class Test { | |
private static List<String> messageQueue = new ArrayList<>(); | |
private static void put(String message) { | |
synchronized (messageQueue) { | |
messageQueue.add(message); | |
messageQueue.notify(); | |
} | |
} |