KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > de > nava > informa > impl > basic > Cloud


1 //
2
// Informa -- RSS Library for Java
3
// Copyright (c) 2002 by Niko Schmuck
4
//
5
// Niko Schmuck
6
// http://sourceforge.net/projects/informa
7
// mailto:niko_schmuck@users.sourceforge.net
8
//
9
// This library is free software.
10
//
11
// You may redistribute it and/or modify it under the terms of the GNU
12
// Lesser General Public License as published by the Free Software Foundation.
13
//
14
// Version 2.1 of the license should be included with this distribution in
15
// the file LICENSE. If the license is not included with this distribution,
16
// you may find a copy at the FSF web site at 'www.gnu.org' or 'www.fsf.org',
17
// or you may write to the Free Software Foundation, 675 Mass Ave, Cambridge,
18
// MA 02139 USA.
19
//
20
// This library is distributed in the hope that it will be useful,
21
// but WITHOUT ANY WARRANTY; without even the implied waranty of
22
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
23
// Lesser General Public License for more details.
24
//
25

26 // $Id: Cloud.java,v 1.2 2003/10/21 03:31:18 mharhen Exp $
27

28 package de.nava.informa.impl.basic;
29
30 import de.nava.informa.core.CloudIF;
31
32 /**
33  * In-Memory implementation of the CloudIF interface.
34  *
35  * @author Michael Harhen
36  */

37 public class Cloud implements CloudIF, java.io.Serializable JavaDoc {
38
39   private long id;
40   private String JavaDoc domain;
41   private int port;
42   private String JavaDoc path;
43   private String JavaDoc registerProcedure;
44   private String JavaDoc protocol;
45
46   public Cloud() {
47     this("[No Cloud]", -1, null, null, null);
48   }
49
50   public Cloud(String JavaDoc domain, int port, String JavaDoc path, String JavaDoc registerProcedure, String JavaDoc protocol) {
51     this.id = IdGenerator.getInstance().getId();
52     this.domain = domain;
53     this.port = port;
54     this.path = path;
55     this.registerProcedure = registerProcedure;
56     this.protocol = protocol;
57   }
58
59   // --------------------------------------------------------------
60
// implementation of CloudIF interface
61
// --------------------------------------------------------------
62

63   public long getId() {
64     return id;
65   }
66
67   public void setId(long id) {
68     this.id = id;
69   }
70
71   public String JavaDoc getDomain() {
72     return domain;
73   }
74
75   public void setDomain(String JavaDoc domain) {
76     this.domain = domain;
77   }
78
79   public int getPort() {
80     return port;
81   }
82
83   public void setPort(int port) {
84     this.port = port;
85   }
86
87   public String JavaDoc getPath() {
88     return path;
89   }
90
91   public void setPath(String JavaDoc path) {
92     this.path = path;
93   }
94
95   public String JavaDoc getRegisterProcedure() {
96     return registerProcedure;
97   }
98
99   public void setRegisterProcedure(String JavaDoc registerProcedure) {
100     this.registerProcedure = registerProcedure;
101   }
102
103   public String JavaDoc getProtocol() {
104     return protocol;
105   }
106
107   public void setProtocol(String JavaDoc protocol) {
108     this.protocol = protocol;
109   }
110
111 }
112
Popular Tags