KickJava   Java API By Example, From Geeks To Geeks.

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


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
26 import org.continuent.hedera.common.Member;
27 import org.continuent.sequoia.controller.virtualdatabase.DistributedVirtualDatabase;
28
29 /**
30  * This class defines a GetStaticMetadata
31  *
32  * @author <a HREF="mailto:damian.arregui@continuent.com">Damian Arregui</a>
33  * @version 1.0
34  */

35 public class GetStaticMetadata extends DistributedVirtualDatabaseMessage
36 {
37   private static final long serialVersionUID = -5076446661515557069L;
38
39   /**
40    * Creates a new <code>GetStaticMetadata</code> object
41    *
42    */

43   public GetStaticMetadata()
44   {
45   }
46
47   /**
48    * @see org.continuent.sequoia.controller.virtualdatabase.protocol.DistributedVirtualDatabaseMessage#handleMessageSingleThreaded(org.continuent.sequoia.controller.virtualdatabase.DistributedVirtualDatabase,
49    * org.continuent.hedera.common.Member)
50    */

51   public Object JavaDoc handleMessageSingleThreaded(DistributedVirtualDatabase dvdb,
52       Member sender)
53   {
54     return dvdb.doGetStaticMetaData().getMetadataContainer();
55   }
56
57   /**
58    * @see org.continuent.sequoia.controller.virtualdatabase.protocol.DistributedVirtualDatabaseMessage#handleMessageMultiThreaded(org.continuent.sequoia.controller.virtualdatabase.DistributedVirtualDatabase,
59    * org.continuent.hedera.common.Member, java.lang.Object)
60    */

61   public Serializable JavaDoc handleMessageMultiThreaded(
62       DistributedVirtualDatabase dvdb, Member sender,
63       Object JavaDoc handleMessageSingleThreadedResult)
64   {
65     return (Serializable JavaDoc) handleMessageSingleThreadedResult;
66   }
67
68 }
69
Popular Tags