com.softwareag.xbd.extension
Class JCOAdapter

java.lang.Object
  extended bycom.softwareag.xbd.extension.JCOStreamService
      extended bycom.softwareag.xbd.extension.JCOAdapter
All Implemented Interfaces:
CacheController.Interface

public class JCOAdapter
extends JCOStreamService

This class implements an interface for Crossvision Service Orchestrator (CSO) to call and receive SAP R/3 functions. The RFC interface and protocol is used for implementation.

Version:
$Revision: 1.4 $

Field Summary
 
Fields inherited from class com.softwareag.xbd.extension.JCOStreamService
handles, isTracing, logger
 
Constructor Summary
JCOAdapter()
           
 
Method Summary
 void call()
          Calls RFC enabled function.
 void close()
          Closes the current client connection and release the resources from SAP application server.
 void getFunctionTemplate(java.lang.String function)
          Returns XML template document for calling specific function.
static java.lang.String getRevision()
          Returns CVS revision.
 void loadRepositoryClientFunction(java.lang.String functionList)
          Loads meta information of functions into the memory.
 void open(java.lang.String client, java.lang.String userid, java.lang.String password, java.lang.String language, java.lang.String host, java.lang.String systemNumber)
          Opens a client connection to the SAP application server.
 void openWithLoadBalancing(java.lang.String client, java.lang.String userid, java.lang.String password, java.lang.String language, java.lang.String mshost, java.lang.String r3name, java.lang.String group)
           
 void resetRepositoryClientFunctions()
          Removes all meta information.
 void startDispatcher(java.lang.String gwhost, java.lang.String gwserv, java.lang.String programID, java.lang.String workers, java.lang.String sequence, java.lang.String unicode)
          Starts server dispatcher.
 void stopDispatcher(java.lang.String gwhost, java.lang.String gwserv, java.lang.String programID)
          Stops server dispatcher.
 
Methods inherited from class com.softwareag.xbd.extension.JCOStreamService
call, call, call, closeClient, connectClient, connectClientWithLoadBalancing, connectServer, doWrite, doWrite, existServer, getFunctionTemplate, getFunctionTemplate, getRequestFieldsFor, getRequestFieldsFor, getResultFor, getResultFor, getResultFor, getServerConnectionContext, isElement, main, notifyNonActivityTimeout, registerFunction, registerFunction, registerParameter, resetClientRepository, resetRepository, setTrace, setTraceDirectory, startServer, stopServer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JCOAdapter

public JCOAdapter()
Method Detail

getRevision

public static java.lang.String getRevision()
Returns CVS revision.

Returns:
CVS revision as string

open

public void open(java.lang.String client,
                 java.lang.String userid,
                 java.lang.String password,
                 java.lang.String language,
                 java.lang.String host,
                 java.lang.String systemNumber)
          throws java.lang.Throwable
Opens a client connection to the SAP application server. In detail, a connection pool is with this connection parameters are created. The first request tries to use these parameters. At this time, you will get an connection error, if it fails.

After opening the connection, the methods call() and getFunctionTemplate(String) can be called.

Parameters:
client - Connect to the client (mandant)
userid - Identify with user ID
password - Identify with password
language - Logon language (e.g. DE, EN, ...)
host - The IP or DNS name of SAP application server
systemNumber - The system number of SAP application server
Throws:
java.lang.Throwable

openWithLoadBalancing

public void openWithLoadBalancing(java.lang.String client,
                                  java.lang.String userid,
                                  java.lang.String password,
                                  java.lang.String language,
                                  java.lang.String mshost,
                                  java.lang.String r3name,
                                  java.lang.String group)
                           throws java.lang.Throwable
Throws:
java.lang.Throwable

close

public void close()
           throws java.lang.Throwable
Closes the current client connection and release the resources from SAP application server.

Throws:
java.lang.Throwable

call

public void call()
          throws java.lang.Throwable
Calls RFC enabled function.

Throws:
java.lang.Throwable

getFunctionTemplate

public void getFunctionTemplate(java.lang.String function)
                         throws java.lang.Throwable
Returns XML template document for calling specific function.

Parameters:
function - Creates XML document for this function
Throws:
java.lang.Throwable

loadRepositoryClientFunction

public void loadRepositoryClientFunction(java.lang.String functionList)
                                  throws java.lang.Throwable
Loads meta information of functions into the memory.

Parameters:
functionList -
Throws:
java.lang.Throwable

resetRepositoryClientFunctions

public void resetRepositoryClientFunctions()
                                    throws java.lang.Throwable
Removes all meta information.

Throws:
java.lang.Throwable

startDispatcher

public void startDispatcher(java.lang.String gwhost,
                            java.lang.String gwserv,
                            java.lang.String programID,
                            java.lang.String workers,
                            java.lang.String sequence,
                            java.lang.String unicode)
                     throws java.lang.Throwable
Starts server dispatcher.

Parameters:
gwhost -
gwserv -
programID -
workers -
sequence -
unicode -
Throws:
java.lang.Throwable

stopDispatcher

public void stopDispatcher(java.lang.String gwhost,
                           java.lang.String gwserv,
                           java.lang.String programID)
                    throws java.lang.Throwable
Stops server dispatcher.

Parameters:
gwhost -
gwserv -
programID -
Throws:
java.lang.Throwable


Copyright © 2004-2007 Software AG. All Rights Reserved.