Source Code Cross Referenced for Server.java in  » UML » AndroMDA-3.2 » org » andromda » core » configuration » 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 » UML » AndroMDA 3.2 » org.andromda.core.configuration 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        package org.andromda.core.configuration;
002:
003:        import java.io.Serializable;
004:
005:        import org.apache.commons.lang.StringUtils;
006:
007:        /**
008:         * Represents the configuration for the
009:         * AndroMDA server.
010:         *
011:         * @author Chad Brandon
012:         */
013:        public class Server implements  Serializable {
014:            /**
015:             * Stores the port the server should be run on.
016:             */
017:            private int port;
018:
019:            /**
020:             * The port the server should be run on.
021:             *
022:             * @return Returns the port.
023:             */
024:            public int getPort() {
025:                return port;
026:            }
027:
028:            /**
029:             * The port the server should be run on.
030:             *
031:             * @param port The port to set.
032:             */
033:            public void setPort(final String port) {
034:                if (StringUtils.isNotBlank(port)) {
035:                    this .port = Integer.parseInt(port);
036:                }
037:            }
038:
039:            /**
040:             * The host the server is running on.
041:             */
042:            private String host;
043:
044:            /**
045:             * gets the host the server should be run on.
046:             *
047:             * @return Returns the host.
048:             */
049:            public String getHost() {
050:                return host;
051:            }
052:
053:            /**
054:             * Sets the host the server should be run on.
055:             *
056:             * @param host The host to set.
057:             */
058:            public void setHost(String host) {
059:                this .host = host;
060:            }
061:
062:            /**
063:             * The interval at which the server loads
064:             * model(s) (if a load is required).
065:             */
066:            private int loadInterval = 1000;
067:
068:            /**
069:             * Gets the interval at which model(s) are
070:             * loaded (if required).
071:             *
072:             * @return Returns the model Load interval
073:             */
074:            public int getLoadInterval() {
075:                return loadInterval;
076:            }
077:
078:            /**
079:             * Sets the interval at which model(s) should be
080:             * loaded (if an initial load or Load is required).
081:             *
082:             * @param loadInterval The loadInterval to set.
083:             */
084:            public void setLoadInterval(final String loadInterval) {
085:                if (StringUtils.isNotBlank(loadInterval)) {
086:                    this .loadInterval = Integer.parseInt(loadInterval);
087:                }
088:            }
089:
090:            /**
091:             * The maximum number of failed model load attempts
092:             * that can occur before we fail.
093:             */
094:            private int maximumFailedLoadAttempts = 10;
095:
096:            /**
097:             * Gets the maximum number of failed model load attempts
098:             * that can occur before we fail.
099:             *
100:             * @return Returns the maximumFailedLoadAttempts.
101:             */
102:            public int getMaximumFailedLoadAttempts() {
103:                return this .maximumFailedLoadAttempts;
104:            }
105:
106:            /**
107:             * Sets the maximum number of failed model load attempts
108:             * that can occur before we fail.
109:             *
110:             * @param maximumFailedLoadAttempts The maximumFailedLoadAttempts to set.
111:             */
112:            public void setMaximumFailedLoadAttempts(
113:                    final String maximumFailedLoadAttempts) {
114:                if (StringUtils.isNotBlank(maximumFailedLoadAttempts)) {
115:                    this.maximumFailedLoadAttempts = Integer
116:                            .parseInt(maximumFailedLoadAttempts);
117:                }
118:            }
119:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.