ilog.rules.dvs.client

Class IlrSSPClient

  • java.lang.Object
    • ilog.rules.dvs.client.IlrSSPClient
    • Constructor Summary

      Constructors 
      Constructor and Description
      IlrSSPClient(com.ibm.odm.httpclient.OdmHttpClientFactory clientFactory, java.net.URL sspURL, boolean formAuth)
      Creates a remote HTTP client for the SSP.
      IlrSSPClient(java.net.URL sspURL)
      Creates a remote HTTP client for the SSP.
    • Constructor Detail

      • IlrSSPClient

        public IlrSSPClient(java.net.URL sspURL)
                     throws com.ibm.odm.httpclient.OdmHttpClientFactoryException
        Creates a remote HTTP client for the SSP.
        Throws:
        com.ibm.odm.httpclient.OdmHttpClientFactoryException
        Parameters:
        sspURL - The URL for SSP web application access. For example, http://localhost:9080/ssp. This parameter cannot be null.
      • IlrSSPClient

        public IlrSSPClient(com.ibm.odm.httpclient.OdmHttpClientFactory clientFactory,
                    java.net.URL sspURL,
                    boolean formAuth)
                     throws com.ibm.odm.httpclient.OdmHttpClientFactoryException
        Creates a remote HTTP client for the SSP.
        Throws:
        com.ibm.odm.httpclient.OdmHttpClientFactoryException
        Parameters:
        clientFactory - The HTTP client factory.
        sspURL - The URL for SSP web application access. For example, http://localhost:9080/ssp. This parameter cannot be null.
    • Method Detail

      • getExecutionTraces

        public java.util.Set<IlrDWTrace> getExecutionTraces(java.util.Set<java.lang.String> executionIds)
                                                     throws IlrDecisionWarehouseException
        Description copied from interface: IlrSSPService
        Returns the set of execution traces for a set of execution IDs. This method is a bulk retrieve for decision warehouse trace retrieval.
        Specified by:
        getExecutionTraces in interface IlrSSPService
        Throws:
        IlrDecisionWarehouseException - if an error occurs trying to retrieve the decision warehouse traces.
        Parameters:
        executionIds - The IDs to retrieve the decision warehouse traces for.
        Returns:
        The set of the decision warehouse traces for executionIds.
      • doAuthenticate

        public boolean doAuthenticate(java.lang.String user,
                             java.lang.String password)
                               throws ilog.rules.res.util.http.IlrAuthenticationException,
                                      ilog.rules.res.util.http.IlrConnectionException
        Authenticates a user.
        Throws:
        ilog.rules.res.util.http.IlrConnectionException - if the connection failed. Some possible causes are:
        • The wrong url was used
        • The application was not started
        • There was an IO exception during http transfer
        ilog.rules.res.util.http.IlrAuthenticationException - if there is an anthentication problem.
        Parameters:
        user - The user name for SSP authentication. This parameter can be null.
        password - The password for SSP authentication. This parameter can be null.
        Returns:
        If authentication is not required, false is returned.
      • getJobResult

        public IlrSSPJobResult getJobResult(java.lang.String jobId)
                                     throws IlrRunnerException
        Description copied from interface: IlrSSPAsyncOperations
        Returns the result for a specific job.
        Specified by:
        getJobResult in interface IlrSSPAsyncOperations
        Throws:
        IlrRunnerException - if an error occurs retrieving the job result, or if the job has not yet completed.
        Parameters:
        jobId - The ID of the job. This is the value returned by calling createJob().
        Returns:
        The job result. If no job matches jobId, null is returned.

© Copyright IBM Corp. 1987, 2017