001: /*
002: * Copyright 2001 Sun Microsystems, Inc. All rights reserved.
003: * PROPRIETARY/CONFIDENTIAL. Use of this product is subject to license terms.
004: */
005:
006: package com.sun.portal.search.admin.model;
007:
008: import java.io.*;
009: import java.util.*;
010: import com.iplanet.jato.model.*;
011: import com.iplanet.am.console.base.model.AMModel;
012: import com.iplanet.jato.command.*;
013: import com.sun.portal.search.db.SToken;
014:
015: /**
016: *
017: *
018: *
019: */
020: public interface DbStatModel extends DatasetModel, RetrievingModel //AMModel //, Command //, DatasetModel, RetrievingModel
021: {
022: public boolean isCreated();
023:
024: public boolean isOld();
025:
026: public void store();
027:
028: public Object retrieve(ModelExecutionContext context);
029:
030: public Object retrieve();
031:
032: public int getTotalNbServer();
033:
034: public int getTotalNbRd();
035:
036: public void setTotalNbRd(int nbRd);
037:
038: public Date getLastUpdated();
039:
040: public void setLastUpdated(Date date);
041:
042: public void setSToken(SToken st);
043:
044: public Hashtable getListServerRd();
045:
046: public void setListServerRd(Hashtable listServerHashtable);
047:
048: public Hashtable getListProtocolRd();
049:
050: public void setListProtocolRd(Hashtable listProtocolHashtable);
051:
052: public String getFilePath();
053:
054: public String getSearchServerURL();
055:
056: public void setSearchServerURL(String url);
057:
058: public void update();
059:
060: /**
061: *
062: */
063: public String nextServerHref();
064:
065: /**
066: *
067: */
068: public String nextServerRDCounter();
069:
070: /**
071: *
072: */
073: public String nextProtocolName();
074:
075: /**
076: *
077: */
078: public String nextProtocolRDCounter();
079:
080: /**
081: * returning the number of Servers
082: */
083: public int nbServers();
084:
085: /**
086: * returning the number of Protocol
087: */
088: public int nbProtocols();
089:
090: /**
091: *
092: */
093: public void resetProtocols();
094:
095: /**
096: *
097: */
098: public void resetServers();
099:
100: /**
101: *
102: */
103: public boolean hasMoreServer();
104:
105: /**
106: *
107: */
108: public boolean hasMoreProtocol();
109:
110: ///////////////////////////////////////////////
111: // Field names
112: ///////////////////////////////////////////////
113:
114: public static final String TMP_FILES = "ServerTmpFiles";
115: public static final String MODEL_NAME = "DbStatModel";
116: }
|