|
Oracle Secure Enterprise Search Java API Reference 10g Release 1 (10.1.8) B32260-01 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.search.admin.ws.client.SearchAdminClient
A client proxy class that can be used to access the Oracle Secure Enterprise Search admin web service.
The following is one example of the use of SearchAdminClient:
// Create proxy client to access Oracle SES admin web service. SearchAdminClient myPort = new SearchAdminClient(); // Set the soap URL (web service endpoint) myPort.setEndpoint( "http://localhost:7777/search/ws/admin/SearchAdmin" ); // Need to maintain session cookies myPort.setMaintainSession( true ); // Login and authenticate myPort.login( "eqsys", "mypassword" ); // Get status for the "sample web" schedule ScheduleStatus status = myPort.getScheduleStatus( "sample web", "en" ); // Print out status System.out.println( "Status : " + status.getTranslatedStatus() ); System.out.println( "Error log : " + status.getErrorLog() ); myPort.logout();
Schedule
, ScheduleStatus
Constructor Summary | |
SearchAdminClient() |
Method Summary | |
java.lang.String |
getEndpoint() Returns the current web service endpoint URL for the proxy class. |
int |
getEstimatedIndexFragmentation() Returns the estimated index fragmentation level, as an integer percentage. |
boolean |
getMaintainSession() Returns whether the session is currently being maintained. |
Schedule[] |
getSchedules(java.lang.String locale) Returns information for all crawler schedules. |
ScheduleStatus |
getScheduleStatus(java.lang.String name, java.lang.String locale) Returns the current status of a crawler schedule. |
void |
login(java.lang.String username, java.lang.String pwd) Authenticates and creates a session. |
void |
logout() Logs out and closes the current session. |
void |
optimizeIndexNow() Optimizes the search index. |
void |
setEndpoint(java.lang.String endpoint) Sets the web service endpoint URL for the proxy class. |
void |
setMaintainSession(boolean maintainSession) Sets a flag to determine whether this Java proxy will maintain its session. |
void |
startSchedule(java.lang.String name) Starts the specified crawler schedule. |
void |
stopSchedule(java.lang.String name) Stops the specified crawler schedule. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SearchAdminClient() throws java.lang.Exception
Method Detail |
public int getEstimatedIndexFragmentation() throws java.rmi.RemoteException
SoapFaultException
- if an error occursjava.rmi.RemoteException
public ScheduleStatus getScheduleStatus(java.lang.String name, java.lang.String locale) throws java.rmi.RemoteException
name
- the name of the crawler schedulelocale
- locale used for translated strings in return valueSoapFaultException
- if the name is not a valid schedule name, or if another error occursjava.rmi.RemoteException
public Schedule[] getSchedules(java.lang.String locale) throws java.rmi.RemoteException
locale
- locale used for translated stringsSoapFaultException
- if an error occursjava.rmi.RemoteException
public void login(java.lang.String username, java.lang.String pwd) throws java.rmi.RemoteException
username
- the administrator usernamepwd
- the administrator passwordSoapFaultException
- if an error occurs, including if the authentication credentials are incorrectjava.rmi.RemoteException
public void logout() throws java.rmi.RemoteException
SoapFaultException
- if an error occursjava.rmi.RemoteException
public void optimizeIndexNow() throws java.rmi.RemoteException
SoapFaultException
- if an error occursjava.rmi.RemoteException
public void startSchedule(java.lang.String name) throws java.rmi.RemoteException
name
- the name of the crawler scheduleSoapFaultException
- if the name is not a valid schedule name, or if another error occursjava.rmi.RemoteException
public void stopSchedule(java.lang.String name) throws java.rmi.RemoteException
name
- the name of the crawler scheduleSoapFaultException
- if the name is not a valid schedule name, or if another error occursjava.rmi.RemoteException
public java.lang.String getEndpoint()
public void setEndpoint(java.lang.String endpoint)
endpoint
- the web service endpoint addresspublic void setMaintainSession(boolean maintainSession)
true
for this proxy class to operate correctly.maintainSession
- true to indicate that this proxy should maintain its session with the server, false otherwise. This should always be set to true.public boolean getMaintainSession()
|
Oracle Secure Enterprise Search Java API Reference 10g Release 1 (10.1.8) B32260-01 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |