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
| class KeepAliveManager { | |
| ResettableTimer shutdownTimer = new ResettableTimer() { | |
| @Override | |
| void timerExpired(TimerState state) { | |
| synchronized (lock) { | |
| if (!state.isCancelled()) { | |
| transport.shutdownNow(); | |
| } | |
| } | |
| } |
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
| Logger.getLogger("io.grpc").setLevel(Level.FINE); | |
| Handler[] handlers = Logger.getLogger( "" ).getHandlers(); | |
| for ( int index = 0; index < handlers.length; index++ ) { | |
| handlers[index].setLevel( Level.FINE ); | |
| } |
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
| class LoadTest extends Test{ | |
| private numberOfClients = 1000 | |
| public FileTree getCandidateClassFiles() { | |
| FileTree candidateTimes = super.getCandidateClassFiles() | |
| for(int client = 1; client<numberOfClients;client++){ | |
| candidateTimes = candidateTimes + super.getCandidateClassFiles() | |
| } | |
| return candidateTimes |