Package com.uc4.api.objects
Class SAPConnectionRFC
java.lang.Object
com.uc4.api.objects.SAPConnectionRFC
This class can be used to read or set the RFC connection data
for SAP Connection objects.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumSAP BW Extended Monitoring.static enumXAL version.static enumXBP version. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSAPConnectionRFC(com.uc4.util.XMLDocument doc, ConnectionAttributes session) Creates a newSAPConnectionRFCfrom the specified XML document. -
Method Summary
Modifier and TypeMethodDescriptionReturns the application server if a direct connection has been used.Returns the status of the extended monitoring of Info Packages.intReturns the number of checks repeated status checks if the extended Info Package monitoring has been set to REPEAT_CHECK.intReturns the number of runs for data request checksintReturns the SAP client.Returns the DestinationReturns the Gateway Host.Returns the Gateway Service.getGroup()Returns the GROUP.intReturns the IPak Change parameter.Returns the logon language.getLogin()Returns the LoginintReturns the maximum number of concurrent RFC connections to the SAP system.Returns the Message Server.Returns the program idReturns the SAP router string.getSID()Returns the system id of the SAP System.Returns the SNC library.Returns the SNC "MyName" value.Returns the SNC Partner name.intReturns the QOP value for the SNC encryption.intReturns the blocksize for the transfer of spool lists.intReturns the system number or-1if not set.intReturns the SAP client.Returns the name of the UC4 department.Returns the name of the UC4 user.getUser()Returns the name of the batch user.Returns the name of the monitor.Returns the name of the monitor set.Returns the short name of the XAL monitor.Returns the XAL Version, DEFAULT if not set.intReturns the XBP auditlevel (0= Minimal, 3= Trace) Depending on the auditlevel the XMI log will contain more or less entries.Returns the XBP Version.booleanReturnstrueif the SMSE function modules should be used.booleanReturnstrueif the uc4 function modules should be used.booleanReturnstrueif process chains can be executed in parallel.booleanReturn if one SAP job can contain multiple steps.booleanReturn if events in the history should be confirmed after processed by the agentbooleanReturnstrueif SNC is enabled, false otherwise.booleanReturnstrueif SNC SSO is enabled, false otherwise.booleanbooleanReturnstrueif the SAP system log should be transfered in case of an error.voidsetAllowSMSEInterface(boolean allow) Enables or disables the use of the SMSE function modules.voidsetAllowUc4Interface(boolean allow) Enables or disables the use of the UC4 function modules.voidsetBIChainsParallel(boolean par) Enables or disables the parallel execution of the same chain in one SAP Agent.voidSets the status of the extended monitoring of Info Packages.voidsetBIRepeatChecks(int runs) Sets the number of checks repeated status checks if the extended Info Package monitoring has been set to REPEAT_CHECK.voidsetBIRepeatChecks(String runs) Sets the number of checks repeated status checks if the extended Info Package monitoring has been set to REPEAT_CHECK, allows null and empty string.voidsetBIRepeatDataRequestChecks(int runs) Sets the number of runs for data request checks.voidSets the number of runs for data request checks, allows null and empty string.voidsetClient(int client) Sets the logon client.voidsetCollapseSteps(boolean collapse) Enables or disables the use of multiple steps in one SAP job.voidsetConfirmEventHistory(boolean confirm) Enables or disables if events in the history should be confirmed after processed by the agentvoidsetDestination(String set) Sets the Destination.voidsetDirectConnection(String ashost, int sysNr, String sid, String router) Sets up a direct connection to the SAP system.voidsetGatewayHost(String set) Sets the gateway host.voidsetGatewayService(String set) Sets the gateway service.voidsetIPakChange(int change) Sets the value of the IPak Change parameter.voidsetLanguage(String lang) Sets the logon language (for example DE or EN) ornullif not usedvoidsetLoadBalancedConnection(String sid, String messageServer, String group, String router) Sets up a load balanced connection the SAP system.voidsetLogin(UC4ObjectName login) Sets the login.voidsetMaxConnectionCount(int count) Sets the maximum number of concurrent RFC connections.voidsetMaxConnectionCount(String count) Sets the maximum number of concurrent RFC connections, allows null and empty string.voidsetPassword(String pass) Sets the password of the logon user.voidsetProgramId(String set) Sets the program id.voidsetSNCEnable(boolean enable) Enables or disables the SNC mode.voidSets the path to the SNC library.voidsetSNCMyName(String myName) Sets the SNC "MyName" value.voidsetSNCPartnerName(String partnerName) Sets the SNC Partner name.voidsetSNCQOP(int qop) Sets the QOP level for the SNC encryption.voidsetSpoolBlocksize(int kilobytes) Sets the blocksize for the transfer of spool lists.voidsetSpoolBlocksize(String kilobytes) Sets the block size for the transfer of spool lists, allows null and empty string.voidsetSSOEnable(boolean enable) Enables or disables the SNC SSO.voidsetUC4Client(int client) Sets the UC4 client.voidsetUC4Client(String client) Sets the UC4 client, allows null and empty stringvoidsetUC4Department(String set) Sets the name of the UC4 department.voidsetUC4Password(String set) Sets the UC4 password.voidsetUC4User(String set) Sets the name of the UC4 user.voidSets the user name for the batch user.voidsetXALMonitor(String monitor) Sets the name of the XAL monitor.voidsetXALMonitorSet(String set) Sets the name of the XAL monitor set.voidsetXALMonitorShortName(String name) Sets the short name of the XAL monitor.voidsetXALSystemLog(boolean enable) Enables or disables the transfer of the XAL system log.voidsetXALVersion(SAPConnectionRFC.XALVersion version) Sets the version of the XAL interface.voidsetXBPAuditlevel(int level) Sets the XBP audit level (0 == minimal, 3 == Trace).voidsetXBPVersion(SAPConnectionRFC.XBPVersion version) Sets the version of the XBP Interface.protected voidstore(com.uc4.util.XMLDocument doc, Element objectElement, ConnectionAttributes session, String ocvType) Saves the content of this instance in the specified DOM document
-
Constructor Details
-
SAPConnectionRFC
Creates a newSAPConnectionRFCfrom the specified XML document.- Parameters:
doc- XML document
-
-
Method Details
-
setBIChainsParallel
public void setBIChainsParallel(boolean par) Enables or disables the parallel execution of the same chain in one SAP Agent.- Parameters:
par- true if BI chains are allowed to run in parallel
-
setSNCEnable
public void setSNCEnable(boolean enable) Enables or disables the SNC mode.- Parameters:
enable- true if SNC should be enabled, false if it should be disabled.
-
isSNCEnabled
public boolean isSNCEnabled()Returnstrueif SNC is enabled, false otherwise. If the vlaue has not been set yet,falseis returned.- Returns:
- SNC enabled
-
setSSOEnable
public void setSSOEnable(boolean enable) Enables or disables the SNC SSO.- Parameters:
enable- true if SNC SSO should be enabled, false if it should be disabled.
-
isSSOEnabled
public boolean isSSOEnabled()Returnstrueif SNC SSO is enabled, false otherwise. If the value has not been set yet,falseis returned.- Returns:
- SNC enabled
-
setSNCLib
Sets the path to the SNC library.- Parameters:
lib- SNC library
-
getSNCLib
Returns the SNC library.- Returns:
- Path to the SNC library
-
setLogin
Sets the login.- Parameters:
login- the new login ornullif not used
-
getLogin
Returns the Login- Returns:
- Login or
nullif not set
-
setSpoolBlocksize
public void setSpoolBlocksize(int kilobytes) Sets the blocksize for the transfer of spool lists.- Parameters:
kilobytes- Block size in kilobytes
-
setSpoolBlocksize
Sets the block size for the transfer of spool lists, allows null and empty string.- Parameters:
kilobytes- kilobytes Block size in kilobytes
-
getSpoolBlocksize
public int getSpoolBlocksize()Returns the blocksize for the transfer of spool lists.- Returns:
- Block size in kilobytes
-
setSNCMyName
Sets the SNC "MyName" value.- Parameters:
myName- My name
-
getSNCMyName
Returns the SNC "MyName" value.- Returns:
- My name
-
setSNCPartnerName
Sets the SNC Partner name.- Parameters:
partnerName- name
-
getSNCPartnerName
Returns the SNC Partner name.- Returns:
- name
-
setSNCQOP
public void setSNCQOP(int qop) Sets the QOP level for the SNC encryption.- Parameters:
qop- Integer between one and nine
-
getSNCQOP
public int getSNCQOP()Returns the QOP value for the SNC encryption.- Returns:
- Integer from one to nine
-
setBIRepeatChecks
public void setBIRepeatChecks(int runs) Sets the number of checks repeated status checks if the extended Info Package monitoring has been set to REPEAT_CHECK.- Parameters:
runs- Number of checks
-
setBIRepeatChecks
Sets the number of checks repeated status checks if the extended Info Package monitoring has been set to REPEAT_CHECK, allows null and empty string.- Parameters:
runs- runs Number of checks
-
getBIRepeatChecks
public int getBIRepeatChecks()Returns the number of checks repeated status checks if the extended Info Package monitoring has been set to REPEAT_CHECK.- Returns:
- Number of checks
-
setBIExtendedMonitoring
Sets the status of the extended monitoring of Info Packages.- Parameters:
ext- Enumeration containing the extended monitoring
-
getBIRepeatDataRequestChecks
public int getBIRepeatDataRequestChecks()Returns the number of runs for data request checks- Returns:
- Number of runs
-
setBIRepeatDataRequestChecks
public void setBIRepeatDataRequestChecks(int runs) Sets the number of runs for data request checks.- Parameters:
runs- Number of runs
-
setBIRepeatDataRequestChecks
Sets the number of runs for data request checks, allows null and empty string.- Parameters:
runs- runs Number of runs
-
getBIExtendedMonitoring
Returns the status of the extended monitoring of Info Packages.- Returns:
- Enumeration containing the status
-
isBIChainsParallel
public boolean isBIChainsParallel()Returnstrueif process chains can be executed in parallel.- Returns:
- true if parallel executions of chains are allowed
-
setXBPAuditlevel
public void setXBPAuditlevel(int level) Sets the XBP audit level (0 == minimal, 3 == Trace).- Parameters:
level- Audit level
-
setIPakChange
public void setIPakChange(int change) Sets the value of the IPak Change parameter.- Parameters:
change- IPak change
-
getIPakChange
public int getIPakChange()Returns the IPak Change parameter.- Returns:
- IPak Change
-
setXALVersion
Sets the version of the XAL interface. Currently only 1.0 and the default can be set.- Parameters:
version- XAL version
-
setXALSystemLog
public void setXALSystemLog(boolean enable) Enables or disables the transfer of the XAL system log. This method returnsfalseif no value has been set yet.- Parameters:
enable- true if the log should be transfered in case of an error, false otherwise
-
setXALMonitor
Sets the name of the XAL monitor.- Parameters:
monitor- Name of the XAL monitor
-
getXALMonitor
Returns the name of the monitor.- Returns:
- the name of the monitor
-
setXALMonitorSet
Sets the name of the XAL monitor set.- Parameters:
set- the name of the monitor set.
-
getXALMonitorSet
Returns the name of the monitor set.- Returns:
- Name of the monitor set.
-
setXALMonitorShortName
Sets the short name of the XAL monitor.- Parameters:
name- Short name of the XAL Monitor
-
getXALMonitorShortName
Returns the short name of the XAL monitor.- Returns:
- Short name of the XAL Monitor
-
isXALSystemLog
public boolean isXALSystemLog()Returnstrueif the SAP system log should be transfered in case of an error. This method returnsfalseif a value has not been set yet.- Returns:
- true if the system log should be transfered, false otherwise
-
getXALVersion
Returns the XAL Version, DEFAULT if not set.- Returns:
- The XAL Version
-
getXBPAuditlevel
public int getXBPAuditlevel()Returns the XBP auditlevel (0= Minimal, 3= Trace) Depending on the auditlevel the XMI log will contain more or less entries.- Returns:
- XBP Auditlevel as integer
-
isCollapseSteps
public boolean isCollapseSteps()Return if one SAP job can contain multiple steps.- Returns:
- true if one SAP job can contain more than one step, false otherwise
-
setCollapseSteps
public void setCollapseSteps(boolean collapse) Enables or disables the use of multiple steps in one SAP job.- Parameters:
collapse- if true one SAP job can contain more than one step, if false each created SAP Job will only have one step
-
isConfirmEventHistory
public boolean isConfirmEventHistory()Return if events in the history should be confirmed after processed by the agent- Returns:
- true if event history should be confirmed
-
setConfirmEventHistory
public void setConfirmEventHistory(boolean confirm) Enables or disables if events in the history should be confirmed after processed by the agent- Parameters:
confirm- true if events in the history should be confirmed, false if not (events then always get status "new")
-
isAllowUc4Interface
public boolean isAllowUc4Interface()Returnstrueif the uc4 function modules should be used. If the value has not been set yet,falseis returned.- Returns:
- true if the uc4 function modules should be used, false otherwise
-
setAllowUc4Interface
public void setAllowUc4Interface(boolean allow) Enables or disables the use of the UC4 function modules.- Parameters:
allow- true if the uc4 function modules should be used, false if only XBP function modules should be called
-
getXBPVersion
Returns the XBP Version.- Returns:
- Version of the XBP interface, DEFAULT if not set.
-
setXBPVersion
Sets the version of the XBP Interface.- Parameters:
version- XBP Version
-
setUser
Sets the user name for the batch user.- Parameters:
user- User name
-
getUser
Returns the name of the batch user.- Returns:
- name of the CPIC user
-
setClient
public void setClient(int client) Sets the logon client.- Parameters:
client- Integer between 0 and 999 or-1if not used
-
getClient
public int getClient()Returns the SAP client.- Returns:
- client or
-1if not set
-
setLanguage
Sets the logon language (for example DE or EN) ornullif not used- Parameters:
lang- Language
-
getLanguage
Returns the logon language.- Returns:
- Logon language
-
getGroup
Returns the GROUP.- Returns:
- group
-
setPassword
Sets the password of the logon user.- Parameters:
pass- Password
-
getMaxConnectionCount
public int getMaxConnectionCount()Returns the maximum number of concurrent RFC connections to the SAP system.- Returns:
- Max rfc connection or
-1if not set
-
setMaxConnectionCount
public void setMaxConnectionCount(int count) Sets the maximum number of concurrent RFC connections.- Parameters:
count- Max rfc connection
-
setMaxConnectionCount
Sets the maximum number of concurrent RFC connections, allows null and empty string.- Parameters:
count- Max rfc connection
-
setDirectConnection
Sets up a direct connection to the SAP system.- Parameters:
ashost- Name of the application server host ornullif not usedsysNr- Systm number 0-99 or-1if not usedsid- System ID ornullif not usedrouter- SAP router String ornullif not used
-
getAsHost
Returns the application server if a direct connection has been used.- Returns:
- Hostname of the application server
-
getSystemNumber
public int getSystemNumber()Returns the system number or-1if not set.- Returns:
- System number
-
getSID
Returns the system id of the SAP System.- Returns:
- SID
-
getSAPRouter
Returns the SAP router string.- Returns:
- SAP router string
-
isAllowSMSEInterface
public boolean isAllowSMSEInterface()Returnstrueif the SMSE function modules should be used. If the value has not been set yet,falseis returned.- Returns:
- true if the SMSE function modules should be used, false otherwise
-
setAllowSMSEInterface
public void setAllowSMSEInterface(boolean allow) Enables or disables the use of the SMSE function modules.- Parameters:
allow- true if the SMSE function modules should be used
-
setUC4Client
public void setUC4Client(int client) Sets the UC4 client.- Parameters:
client- Integer between 0 and 9999 or-1if not used
-
setUC4Client
Sets the UC4 client, allows null and empty string- Parameters:
client- Integer between 0 and 9999 or-1if not used
-
getUC4Client
public int getUC4Client()Returns the SAP client.- Returns:
- client or
-1if not set
-
setUC4User
Sets the name of the UC4 user.- Parameters:
set- the name of the UC4 user.
-
getUC4User
Returns the name of the UC4 user.- Returns:
- Name of the UC4 user.
-
setUC4Department
Sets the name of the UC4 department.- Parameters:
set- the name of the UC4 department.
-
getUC4Department
Returns the name of the UC4 department.- Returns:
- Name of the UC4 department.
-
setUC4Password
Sets the UC4 password.- Parameters:
set- the UC4 password.
-
setGatewayHost
Sets the gateway host.- Parameters:
set- the gateway host.
-
getGatewayHost
Returns the Gateway Host.- Returns:
- Gateway Host.
-
setGatewayService
Sets the gateway service.- Parameters:
set- the gateway service.
-
getGatewayService
Returns the Gateway Service.- Returns:
- Gateway Service.
-
setProgramId
Sets the program id.- Parameters:
set- the program id.
-
getProgramId
Returns the program id- Returns:
- program id.
-
setDestination
Sets the Destination.- Parameters:
set- the Destination.
-
getDestination
Returns the Destination- Returns:
- Destination.
-
setLoadBalancedConnection
public void setLoadBalancedConnection(String sid, String messageServer, String group, String router) Sets up a load balanced connection the SAP system.- Parameters:
sid- SID ornullif not usedmessageServer- Host name of the message server ornullif not usedgroup- Group name ornullif not usedrouter- SAP router String ornullif not used
-
getMessageServer
Returns the Message Server.- Returns:
- message server
-
isUseLoadBalancing
public boolean isUseLoadBalancing()- Returns:
trueif load balancing is set, false otherwise
-
store
protected void store(com.uc4.util.XMLDocument doc, Element objectElement, ConnectionAttributes session, String ocvType) Saves the content of this instance in the specified DOM document- Parameters:
doc- XML DocumentobjectElement- Parent element
-