KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > datashare > objects > HistoryCountObject


1 /* ----- BEGIN LICENSE BLOCK -----
2  * Version: MPL 1.1
3  *
4  * The contents of this file are subject to the Mozilla Public License Version
5  * 1.1 (the "License"); you may not use this file except in compliance with
6  * the License. You may obtain a copy of the License at
7  * http://www.mozilla.org/MPL/
8  *
9  * Software distributed under the License is distributed on an "AS IS" basis,
10  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
11  * for the specific language governing rights and limitations under the
12  * License.
13  *
14  * The Original Code is the DataShare server.
15  *
16  * The Initial Developer of the Original Code is
17  * Ball Aerospace & Technologies Corp, Fairborn, Ohio
18  * Portions created by the Initial Developer are Copyright (C) 2001
19  * the Initial Developer. All Rights Reserved.
20  *
21  * Contributor(s): Charles Wood <cwood@ball.com>
22  *
23  * ----- END LICENSE BLOCK ----- */

24 /* RCS $Id: HistoryCountObject.java,v 1.1.1.1 2001/10/23 13:37:19 lizellaman Exp $
25  * $Log: HistoryCountObject.java,v $
26  * Revision 1.1.1.1 2001/10/23 13:37:19 lizellaman
27  * initial sourceforge release
28  *
29  */

30
31 package org.datashare.objects;
32
33 /**
34  * This class is sent by the server to a client when a client has requested
35  * a count of EJBs for a particular Channel by sending the server
36  * a RequestHistoryCount object. The receiving Client must match this HistoryCountObject
37  * to its RequestHistoryCount by matching the channelDatabaseKey values.
38  */

39 public class HistoryCountObject implements java.io.Serializable JavaDoc
40    {
41    /**
42     * this allows us to serialize this class without 'marshalling' errors.
43     *
44     */

45    static final long serialVersionUID = 9030493813711567504L;
46
47    /**
48     * contains the channel ADSKey for this channel
49     */

50    public String JavaDoc channelDatabaseKey = "";
51
52    /**
53     * name of session
54     */

55    public String JavaDoc sessionName = "";
56
57    /**
58     * contains the number of EJBs (DataShareObject instances) available for this channel, may not
59     * agree with channelData.length if typeOfReply is COUNTONLY.
60     */

61    public int count = 0;
62
63    /**
64     * Constructor
65     */

66    public HistoryCountObject(String JavaDoc sessionName, String JavaDoc channelDatabaseKey, int count)
67       {
68       this.sessionName = sessionName;
69       this.channelDatabaseKey = channelDatabaseKey;
70       this.count = count;
71       }
72
73    }
74
Popular Tags