HPSearch

cgl.hpsearch.wsproxy
Class WSSConnectorV2

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

public class WSSConnectorV2
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.
Created on Jun 9, 2005

Author:
Harshawardhan S. Gadgil

Constructor Summary
WSSConnectorV2()
           
 
Method Summary
 int close(String ic_ID, boolean storeForAuditing)
          Removes the Invocation Container from the instances table.
 String getProperty(String ic_ID, String query)
          Queries the service to get run-time properties.
 StatusQueryResult getStatus(String instanceID)
           
 WSSConnectorInitStatus init(ServiceSpecification ss)
           
 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
 void systemInit()
           
 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

WSSConnectorV2

public WSSConnectorV2()
Method Detail

systemInit

public void systemInit()

init

public WSSConnectorInitStatus init(ServiceSpecification ss)

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,
                 boolean storeForAuditing)
Removes the Invocation Container from the instances table. Call after SERVICE_DONE message is recieved

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

getStatus

public StatusQueryResult getStatus(String instanceID)

HPSearch

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