Added new class, Registry, which contains a static list of monitors.
Changed Testrunner to use the Registry class instead.
Showing
2 changed files
with
16 additions
and
1 deletions
LILOM Library/se/lil/om/Registry.java
0 → 100644
... | @@ -14,7 +14,8 @@ public class TestRunner { | ... | @@ -14,7 +14,8 @@ public class TestRunner { |
14 | public static void main(String[] args) throws Throwable{ | 14 | public static void main(String[] args) throws Throwable{ |
15 | // TODO Auto-generated method stub | 15 | // TODO Auto-generated method stub |
16 | 16 | ||
17 | ArrayList<OraMon> oraList = new ArrayList<OraMon>(); | 17 | //ArrayList<OraMon> oraList = new ArrayList<OraMon>(); |
18 | ArrayList<OraMon> oraList = Registry.getList(); | ||
18 | 19 | ||
19 | OraMon mon1 = new OraMon("jdbc:oracle:thin:@//hostname:1521/SID1","system","passw0rd"); | 20 | OraMon mon1 = new OraMon("jdbc:oracle:thin:@//hostname:1521/SID1","system","passw0rd"); |
20 | OraMon mon2 = new OraMon("jdbc:oracle:thin:@//hostname:1521/SID1","system","passw0rd"); | 21 | OraMon mon2 = new OraMon("jdbc:oracle:thin:@//hostname:1521/SID1","system","passw0rd"); | ... | ... |
-
Please register or sign in to post a comment