GitBucket
4.21.2
Toggle navigation
Snippets
Sign in
Files
Branches
1
Releases
Issues
Pull requests
Labels
Priorities
Milestones
Wiki
Forks
mark.george
/
democall3
Browse code
Missed one.
master
1 parent
5e899fc
commit
b50e4c356072423d983c1f350aa0a3decca6c0ef
Mark
authored
on 4 Mar 2015
Patch
Showing
1 changed file
tests/BroadcasterTest.java
Ignore Space
Show notes
View
tests/BroadcasterTest.java
import discovery.computername.ComputerNameResolver; import discovery.computername.OtagoComputerNameResolver; import discovery.server.ServiceLocator; /* * A stress test for the BroadcastResponder. * * @author mark */ public final class BroadcasterTest { private BroadcasterTest() { } public static void main(final String[] args) { final String name = "SBEASTCAL1-30"; final ComputerNameResolver nameResolver = new OtagoComputerNameResolver(name, "CLIENTNAME"); nameResolver.resolve(); final String lab = nameResolver.getLabName(); final ServiceLocator locator = new ServiceLocator(); for(int i=0; i<500; i++) { final String serverIp = locator.locateServer(lab); System.out.println(i + " " + serverIp); } } }
import discovery.computername.ComputerNameResolver; import discovery.computername.OtagoComputerNameResolver; import discovery.server.ServiceLocator; /* * A stress test for the BroadcastResponder. * * @author mark */ public final class BroadcasterTest { private BroadcasterTest() { } public static void main(final String[] args) { final String name = "SBEASTCAL1-30"; final ComputerNameResolver nameResolver = new OtagoComputerNameResolver(name, "COMPUTERNAME"); nameResolver.resolve(); final String lab = nameResolver.getLabName(); final ServiceLocator locator = new ServiceLocator(); for(int i=0; i<500; i++) { final String serverIp = locator.locateServer(lab); System.out.println(i + " " + serverIp); } } }
Show line notes below