001: /**
002: * Copyright 2004 Sun Microsystems, Inc. All
003: * rights reserved. Use of this product is subject
004: * to license terms. Federal Acquisitions:
005: * Commercial Software -- Government Users
006: * Subject to Standard License Terms and
007: * Conditions.
008: *
009: * Sun, Sun Microsystems, the Sun logo, and Sun ONE
010: * are trademarks or registered trademarks of Sun Microsystems,
011: * Inc. in the United States and other countries.
012: */package com.sun.portal.search.admin.mbeans;
013:
014: import java.util.*;
015: import java.net.UnknownHostException;
016: import com.sun.portal.search.robot.*;
017: import com.sun.portal.admin.common.PSMBeanException;
018:
019: public interface RobotMBean {
020:
021: public Boolean start() throws UnknownHostException;
022:
023: public Boolean stop() throws UnknownHostException;
024:
025: public Boolean refresh() throws UnknownHostException;
026:
027: public Boolean pause() throws UnknownHostException;
028:
029: public Boolean resume() throws UnknownHostException;
030:
031: public Boolean isRobotRunning() throws UnknownHostException;
032:
033: public String[] retrieveRobotStatus() throws PSMBeanException,
034: UnknownHostException;
035:
036: public String retrieveRobotStatusString() throws PSMBeanException,
037: UnknownHostException;
038:
039: public HashMap listSites(String siteID) throws PSMBeanException,
040: UnknownHostException;
041:
042: public String createSite(Boolean isDomain, String name,
043: String depth, String database) throws PSMBeanException,
044: UnknownHostException;
045:
046: public Boolean deleteSite(String siteID)
047: throws UnknownHostException;
048:
049: public Boolean deleteSites(ArrayList sites)
050: throws UnknownHostException;
051:
052: public Boolean enableSites(ArrayList sites)
053: throws UnknownHostException;
054:
055: public Boolean disableSites(ArrayList sites)
056: throws UnknownHostException;
057:
058: public Boolean editSite(String siteId, String name, String desc,
059: String dns, String database, ArrayList domainGroup,
060: String port, ArrayList protocols, ArrayList serverGroup,
061: ArrayList startPoints, ArrayList defRules, String allfile)
062: throws UnknownHostException;
063:
064: public ArrayList listFilters(String filterID)
065: throws PSMBeanException, UnknownHostException;
066:
067: public String createFilter(String name, String desc,
068: Boolean isDefault, Boolean includeMatch, ArrayList defRules)
069: throws PSMBeanException, UnknownHostException;
070:
071: public Boolean deleteFilter(String filterID)
072: throws UnknownHostException;
073:
074: public Boolean deleteFilters(ArrayList filters)
075: throws UnknownHostException;
076:
077: public Boolean enableFilters(ArrayList filters)
078: throws UnknownHostException;
079:
080: public Boolean disableFilters(ArrayList filters)
081: throws UnknownHostException;
082:
083: public Boolean editFilter(String filterID, String name,
084: String desc, Boolean isDefault, Boolean includeMatch,
085: ArrayList defRules) throws PSMBeanException,
086: UnknownHostException;
087:
088: public String getCrawlingConfig(String attrname)
089: throws UnknownHostException;
090:
091: public Boolean setCrawlingConfig(String attrname, String attrvalue)
092: throws UnknownHostException;
093:
094: public HashMap retrieveCrawlingConfigMap() throws PSMBeanException,
095: UnknownHostException;
096:
097: public Boolean setCrawlingConfigMap(HashMap configmap)
098: throws UnknownHostException;
099:
100: public ArrayList retrieveScriptLaunchOptions()
101: throws UnknownHostException;
102:
103: public HashMap retrieveIndexingConfigMap() throws PSMBeanException,
104: UnknownHostException;
105:
106: public Boolean setIndexingConfigMap(HashMap configmap)
107: throws UnknownHostException;
108:
109: public ArrayList listConverters() throws PSMBeanException,
110: UnknownHostException;
111:
112: public Boolean setConverters(ArrayList converters)
113: throws UnknownHostException;
114:
115: public Boolean setConverter(String converterID, String enable)
116: throws UnknownHostException;
117:
118: public String retrieveConverterTimeout()
119: throws UnknownHostException;
120:
121: public Boolean setConverterTimeout(String timeout)
122: throws UnknownHostException;
123:
124: public HashMap runSimulator(String url, Boolean checkDNS,
125: Boolean checkRedirect) throws PSMBeanException,
126: UnknownHostException;
127:
128: public HashMap runSimulator(ArrayList urls, Boolean checkDNS,
129: Boolean checkRedirect) throws PSMBeanException,
130: UnknownHostException;
131:
132: //utilities
133: public String[] retrieveFilterRuleNames() throws PSMBeanException,
134: UnknownHostException;
135:
136: public String[] retrieveFilterRuleIds() throws PSMBeanException,
137: UnknownHostException;
138:
139: public String validateSiteURL(String siteurl)
140: throws UnknownHostException;
141:
142: public HashMap verifyServerName(String servername)
143: throws PSMBeanException, UnknownHostException;
144:
145: //reports
146: public String getAdvanceReport(String reportType)
147: throws PSMBeanException, UnknownHostException;
148:
149: public ArrayList retrieveExcludedURLsReportDates()
150: throws PSMBeanException, UnknownHostException;
151:
152: public HashMap getExcludedURLsReport(String date)
153: throws PSMBeanException, UnknownHostException;
154:
155: }
|