KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > continuent > sequoia > controller > virtualdatabase > protocol > VirtualDatabaseConfigurationResponse


1 /**
2  * Sequoia: Database clustering technology.
3  * Copyright (C) 2006 Continuent, Inc.
4  * Contact: sequoia@continuent.org
5  *
6  * Licensed under the Apache License, Version 2.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  *
18  * Initial developer(s): Damian Arregui.
19  * Contributor(s): ______________________.
20  */

21
22 package org.continuent.sequoia.controller.virtualdatabase.protocol;
23
24 import java.io.Serializable JavaDoc;
25 import java.util.List JavaDoc;
26
27 import org.continuent.hedera.common.Member;
28 import org.continuent.sequoia.controller.virtualdatabase.DistributedVirtualDatabase;
29
30 /**
31  * Transports the response to a <code>VirtualDatabaseConfiguration</code>
32  * message.
33  *
34  * @author <a HREF="mailto:damian.arregui@continuent.com">Dami├ín Arregui</a>
35  * @version 1.0
36  */

37 public class VirtualDatabaseConfigurationResponse
38     extends DistributedVirtualDatabaseMessage
39 {
40   private static final long serialVersionUID = -6800865688275066016L;
41
42   private long controllerId;
43   private List JavaDoc additionalVdbUsers;
44
45   /**
46    * Creates a new <code>VirtualDatabaseConfigurationResponse</code> object
47    *
48    * @param controllerId the responsding controller id or
49    * <code>DistributedVirtualDatabase.INCOMPATIBLE_CONFIGURATION</code>
50    * if the configurations are not compatible.
51    * @param additionalVdbUsers a list of <code>VirtualDatabaseUser</code>
52    * objects if the responding controller has additional vdb users,
53    * null otherwise.
54    */

55   public VirtualDatabaseConfigurationResponse(long controllerId,
56       List JavaDoc additionalVdbUsers)
57   {
58     this.controllerId = controllerId;
59     this.additionalVdbUsers = additionalVdbUsers;
60   }
61
62   /**
63    * Returns the additional vdb users in the local configuration with respect to
64    * the remote configuration.
65    *
66    * @return a <code>List</code> of VirtualDatabaseUser objects or null if
67    * there are no additional vdb users.
68    */

69   public List JavaDoc getAdditionalVdbUsers()
70   {
71     return additionalVdbUsers;
72   }
73
74   /**
75    * Returns the local controller id.
76    *
77    * @return the local controller id or
78    * <code>DistributedVirtualDatabase.INCOMPATIBLE_CONFIGURATION</code>
79    * if the configurations are not compatible.
80    */

81   public long getControllerId()
82   {
83     return controllerId;
84   }
85
86   /**
87    * @see org.continuent.sequoia.controller.virtualdatabase.protocol.DistributedVirtualDatabaseMessage#handleMessageSingleThreaded(org.continuent.sequoia.controller.virtualdatabase.DistributedVirtualDatabase,
88    * org.continuent.hedera.common.Member)
89    */

90   public Object JavaDoc handleMessageSingleThreaded(DistributedVirtualDatabase dvdb,
91       Member sender)
92   {
93     // TODO Auto-generated method stub
94
return null;
95   }
96
97   /**
98    * @see org.continuent.sequoia.controller.virtualdatabase.protocol.DistributedVirtualDatabaseMessage#handleMessageMultiThreaded(org.continuent.sequoia.controller.virtualdatabase.DistributedVirtualDatabase,
99    * org.continuent.hedera.common.Member, java.lang.Object)
100    */

101   public Serializable JavaDoc handleMessageMultiThreaded(
102       DistributedVirtualDatabase dvdb, Member sender,
103       Object JavaDoc handleMessageSingleThreadedResult)
104   {
105     // TODO Auto-generated method stub
106
return null;
107   }
108
109 }
110
Popular Tags