HPSearch

cgl.hpsearch.wsproxy
Class WSSConnector

java.lang.Object
  extended bycgl.hpsearch.wsproxy.WSSConnector

public class WSSConnector
extends Object

Provides a proxy for the web-service stream connector. This object encapsulates a service and provides stream connection using NB - native connectivity to the brokering network.
The WSSConnector is also responsible for providing a SOAP stack for controlling the behaviour of the service via SOAP calls.

Author:
Harshawardhan S. Gadgil Created on Apr 13, 2004

Constructor Summary
WSSConnector()
           
 
Method Summary
 int close(String ic_ID)
          Removes the Invocation Container from the instances table.
 String getProperty(String ic_ID, String query)
          Queries the service to get run-time properties.
 String init(String serviceSpec)
           
 String[] listExceptions(String ic_ID)
          Returns a list of Exceptions that can be caught by the service implementation
 int resume(String ic_ID)
          Resumes the service
 void setProperty(String ic_ID, String name, String value)
          Sets the service property
 int start(String ic_ID)
          Starts the service execution
 int suspend(String ic_ID)
          Suspends the service
 int terminate(String ic_ID)
          Terminates the service
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WSSConnector

public WSSConnector()
Method Detail

init

public String init(String serviceSpec)

setProperty

public void setProperty(String ic_ID,
                        String name,
                        String value)
Sets the service property

Parameters:
ic_ID - - The ID of service
name - - Name of the property to be set
value - - the value of the property

getProperty

public String getProperty(String ic_ID,
                          String query)
Queries the service to get run-time properties.

Parameters:
query - - String representing the query, Just a property name for now. (XML) Template specified queries would be added later
Returns:
The value of the property (null, if the specified query does not have a value associated with it.

start

public int start(String ic_ID)
Starts the service execution

Parameters:
ic_ID - - The ID of service
Returns:
Service status

terminate

public int terminate(String ic_ID)
Terminates the service

Parameters:
ic_ID - - The ID of service
Returns:
Service status

suspend

public int suspend(String ic_ID)
Suspends the service

Parameters:
ic_ID - - The ID of service
Returns:
Service status

resume

public int resume(String ic_ID)
Resumes the service

Parameters:
ic_ID - - The ID of service
Returns:
Service status

listExceptions

public String[] listExceptions(String ic_ID)
Returns a list of Exceptions that can be caught by the service implementation

Parameters:
ic_ID - - The ID of service
Returns:
The List of exceptions

close

public int close(String ic_ID)
Removes the Invocation Container from the instances table. Call after SERVICE_DONE message is recieved

Parameters:
ic_ID - - The ID of service
Returns:
1

HPSearch

For comments and suggestions please send e-mail to Harshawardhan Gadgil
Last updated: June 9 2006