keycloak-service
クラス | 静的公開メンバ関数 | 静的非公開メンバ関数 | 全メンバ一覧
org.keycloak.services.clientregistration.policies.impl.HostsTest クラス
org.keycloak.services.clientregistration.policies.impl.HostsTest 連携図
Collaboration graph

クラス

class  Foo
 

静的公開メンバ関数

static void main (String[] args) throws Exception
 

静的非公開メンバ関数

static Foo test1 () throws Exception
 
static Foo test2 () throws Exception
 
static Foo test3 () throws Exception
 
static Foo test4 () throws Exception
 
static Foo test5 () throws Exception
 
static Foo test6 () throws Exception
 

詳解

著者
Marek Posolda

関数詳解

◆ main()

static void org.keycloak.services.clientregistration.policies.impl.HostsTest.main ( String []  args) throws Exception
inlinestatic
27  {
28  //Security.setProperty("networkaddress.cache.ttl", "5");
29  long start = System.currentTimeMillis();
30 
31  for (int i=0 ; i<100 ; i++) {
32  //Foo f = test1();
33  //Foo f = test2();
34  //Foo f = test3();
35  Foo f = test4();
36  //Foo f = test5();
37  //Foo f = test6();
38 
39  long end = System.currentTimeMillis();
40  System.out.println("IPAddr=" + f.ipAddr + ", Hostname=" + f.hostname + ", Took: " + (end-start) + " ms");
41  }
42  }
static Foo test4()
Definition: HostsTest.java:74

◆ test1()

static Foo org.keycloak.services.clientregistration.policies.impl.HostsTest.test1 ( ) throws Exception
inlinestaticprivate
45  {
46  Foo f = new Foo();
47  InetAddress addr = InetAddress.getByName("10.40.2.225");
48  f.ipAddr = addr.getHostAddress();
49  f.hostname = "";
50  return f;
51  }

◆ test2()

static Foo org.keycloak.services.clientregistration.policies.impl.HostsTest.test2 ( ) throws Exception
inlinestaticprivate
54  {
55  Foo f = new Foo();
56  InetAddress addr = InetAddress.getByName("10.40.2.225");
57  f.ipAddr = addr.getHostAddress();
58  f.hostname = addr.getHostName();
59  return f;
60  }

◆ test3()

static Foo org.keycloak.services.clientregistration.policies.impl.HostsTest.test3 ( ) throws Exception
inlinestaticprivate
63  {
64  Foo f = new Foo();
65  InetAddress addr = InetAddress.getByName("10.40.2.225");
66  f.ipAddr = addr.getHostAddress();
67  for (int i=0 ; i<10 ; i++) {
68  f.hostname = addr.getHostName();
69  }
70  return f;
71  }

◆ test4()

static Foo org.keycloak.services.clientregistration.policies.impl.HostsTest.test4 ( ) throws Exception
inlinestaticprivate
74  {
75  Foo f = new Foo();
76  InetAddress addr = InetAddress.getByName("www.seznam.cz");
77  f.ipAddr = addr.getHostAddress();
78  f.hostname = addr.getHostName();
79  return f;
80  }

◆ test5()

static Foo org.keycloak.services.clientregistration.policies.impl.HostsTest.test5 ( ) throws Exception
inlinestaticprivate
83  {
84  Foo f = new Foo();
85  InetAddress addr = InetAddress.getByName("77.75.77.53");
86  f.ipAddr = addr.getHostAddress();
87  f.hostname = addr.getHostName();
88  return f;
89  }

◆ test6()

static Foo org.keycloak.services.clientregistration.policies.impl.HostsTest.test6 ( ) throws Exception
inlinestaticprivate
92  {
93  Thread.sleep(1000);
94  return test4();
95  }
static Foo test4()
Definition: HostsTest.java:74

このクラス詳解は次のファイルから抽出されました: