Source Code Cross Referenced for Monitor.java in  » Test-Coverage » GroboUtils » net » sourceforge » groboutils » autodoc » v1 » testserver » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Test Coverage » GroboUtils » net.sourceforge.groboutils.autodoc.v1.testserver 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


01:        /*
02:         *  @(#)Monitor.java
03:         *
04:         * Copyright (C) 2002-2003 Matt Albrecht
05:         * groboclown@users.sourceforge.net
06:         * http://groboutils.sourceforge.net
07:         *
08:         *  Part of the GroboUtils package at:
09:         *  http://groboutils.sourceforge.net
10:         *
11:         *  Permission is hereby granted, free of charge, to any person obtaining a
12:         *  copy of this software and associated documentation files (the "Software"),
13:         *  to deal in the Software without restriction, including without limitation
14:         *  the rights to use, copy, modify, merge, publish, distribute, sublicense,
15:         *  and/or sell copies of the Software, and to permit persons to whom the 
16:         *  Software is furnished to do so, subject to the following conditions:
17:         *
18:         *  The above copyright notice and this permission notice shall be included in 
19:         *  all copies or substantial portions of the Software. 
20:         *
21:         *  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
22:         *  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
23:         *  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL 
24:         *  THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
25:         *  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 
26:         *  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 
27:         *  DEALINGS IN THE SOFTWARE.
28:         */
29:        package net.sourceforge.groboutils.autodoc.v1.testserver;
30:
31:        import java.util.Hashtable;
32:
33:        /**
34:         * Monitors the state of multiple tests through the creation, retrieval, and
35:         * sending to a server of the TestData for a specific test.  Instances
36:         * will be in charge of pooling together events from a {@link TestCorrelate}.
37:         * <P>
38:         * This class itself is not a singleton, but each framework implementation
39:         * should have only one Monitor.  Hence, this is called a "pseudo-singleton".
40:         * <P>
41:         * A Monitor may have multiple tests being tested at the same time.  However,
42:         * each test must be uniquely identifiable through a {@link TestInfo}; if two
43:         * tests execute at the same time with the same <tt>TestInfo</tt>, the monitor
44:         * will identify them as the same test.  Uniqueness is guaranteed through the
45:         * <tt>TestInfo</tt> instances.
46:         *
47:         * @author     Matt Albrecht <a href="mailto:groboclown@users.sourceforge.net">groboclown@users.sourceforge.net</a>
48:         * @since      March 17, 2002
49:         * @version    $Date: 2003/02/10 22:52:13 $
50:         */
51:        public interface Monitor {
52:            /**
53:             * Adds a new <tt>TestData</tt> instance related to the given
54:             * <tt>TestInfo</tt>.  If there already is a <tt>TestData</tt> for the
55:             * given <tt>TestInfo</tt>, then an exception is thrown.
56:             *
57:             * @param info the unique test identifier to create a new <tt>TestData</tt>
58:             *      instance for.
59:             * @exception IllegalStateException if <tt>info</tt> is already
60:             *      been added without having been sent.
61:             * @exception IllegalArgumentException if <tt>info</tt> is <tt>null</tt>.
62:             */
63:            public void addTestData(TestInfo info);
64:
65:            /**
66:             * Retrieves the data associated with the given <tt>TestInfo</tt>, as was
67:             * created through {@link #addTestData( TestInfo )}.  If the <tt>info</tt>
68:             * was never passed to the add method, then an exception is thrown.
69:             *
70:             * @param info the unique test identifier.
71:             * @return the data for the given <tt>info</tt>.
72:             * @exception IllegalStateException if <tt>info</tt> has not been added,
73:             *      or has been removed through the send call.
74:             * @exception IllegalArgumentException if <tt>info</tt> is <tt>null</tt>.
75:             */
76:            public TestData getTestData(TestInfo info);
77:
78:            /**
79:             * Sends the <tt>TestData</tt> associated with <tt>info</tt> to the
80:             * inner server, and removes the data from the inner cache.  If the
81:             * <tt>info</tt> has not been added, then an exception is thrown.
82:             *
83:             * @param info the unique test identifier
84:             * @exception IllegalStateException if <tt>info</tt> has not been added,
85:             *      or has been removed through the send call.
86:             * @exception IllegalArgumentException if <tt>info</tt> is <tt>null</tt>.
87:             */
88:            public void sendTestData(TestInfo info);
89:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.