Class DefaultRFCDestination
- java.lang.Object
-
- de.hybris.platform.sap.core.configuration.rfc.impl.DefaultRFCDestination
-
- All Implemented Interfaces:
RFCDestination
public class DefaultRFCDestination extends java.lang.Object implements RFCDestination
-
-
Constructor Summary
Constructors Constructor Description DefaultRFCDestination()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetBackendType()Returns the backend type.java.lang.StringgetClient()Returns the client.java.lang.BooleangetConnectionType()Returns the type of connection (server or group connection).java.lang.StringgetGroup()Returns the logon group name.java.lang.StringgetInstance()Returns the instance number of the application server (for server connection only).java.lang.BooleangetJcoClientDelta()Returns the indicator for table parameter delta management (1 - enable [default] or 0 - disable).java.lang.StringgetJcoCPICTrace()Returns the CPIC trace (-1 [take over environment value 'CPIC_TRACE'], 0 no trace, 1,2,3 different trace levels).java.lang.StringgetJcoMsServ()Returns the SAP message server or port number.java.lang.StringgetJcoSAPRouter()Returns the SAP router string to use for networks being protected by a firewall.java.lang.StringgetJcoTraceLevel()Returns the JCo trace level (0-10).java.lang.StringgetJcoTracePath()Returns the JCo trace path (null, stdout, stderr or an existing path are allowed).java.lang.StringgetMaxConnections()Returns the maximum number of connections.java.lang.StringgetMaxWaitTime()Returns the maximum waiting time in milliseconds.java.lang.StringgetMessageServer()Returns the message server (for group connection).java.lang.StringgetPassword()Returns the password.java.lang.BooleangetPooledConnectionMode()Returns the indicator whether a pooled connection mode is enabled.java.lang.StringgetPoolSize()Returns the pool size.java.util.Collection<RFCDestinationAttributeModel>getRFCDestinationAttributes()Returns the additional Attributes for RFC Destination.java.lang.StringgetRfcDestinationName()Returns the RFC destination name.java.lang.StringgetSid()Returns the system id.java.lang.StringgetSncPartnerName()Returns SNC name of the communication partner (application server).java.lang.StringgetSncQOP()Returns the SNC security level / quality of service.java.lang.StringgetTargetHost()Returns the host name of the target application server (for server connection) or the message server (for group connection).java.lang.StringgetUserid()Returns the user id.java.lang.BooleanisJcoRFCTraceEnabled()Returns the indicator whether JCo RFC trace is enabled (0 or 1).booleanisOffline()Returns the offline indicator.java.lang.BooleanisSncEnabled()Returns the indicator whether SNC is enabled.voidsetAdditionalAttributes(java.util.Collection<RFCDestinationAttributeModel> additionalAttributes)Sets the additional attributes.voidsetBackendType(java.lang.String backendType)Sets the backend type.voidsetClient(java.lang.String client)Sets the client.voidsetConnectionType(java.lang.Boolean connectionType)Sets the connection type.voidsetGroup(java.lang.String group)Sets the logon group name.voidsetInstance(java.lang.String instance)Sets the instance number.voidsetJcoClientDelta(java.lang.Boolean jcoClientDelta)Sets the client delta switch.voidsetJcoCPICTrace(java.lang.String jcoCPICTrace)Sets the JCo CPIC trace.voidsetJcoMsServ(java.lang.String jcoMsServ)Sets the JCo message server.voidsetJcoRFCTrace(java.lang.String jcoRFCTrace)Sets the JCo trace.voidsetJcoSAPRouter(java.lang.String jcoSAPRouter)Sets the SAP router.voidsetJcoTraceLevel(java.lang.String jcoTraceLevel)Sets the JCo trace level.voidsetJcoTracePath(java.lang.String jcoTracePath)Sets the JCo trace path.voidsetMaxConnections(java.lang.String maxConnections)Sets the maximum number of connections.voidsetMaxWaitTime(java.lang.String maxWaitTime)Sets the maximum waiting time.voidsetMessageServer(java.lang.String messageServer)Sets the message server (for group connection).voidsetOffline(boolean offline)Sets the offline indicator.voidsetPassword(java.lang.String password)Sets the password.voidsetPooledConnectionMode(java.lang.Boolean pooledConnectionMode)Sets the pooled connection activation indicator.voidsetPoolSize(java.lang.String poolSize)Sets the connection pool size.voidsetRfcDestinationName(java.lang.String rfcDestinationName)Sets the RFC destination name.voidsetSid(java.lang.String sid)Sets the system id.voidsetSncMode(boolean sncMode)Sets the SNC activation indicator.voidsetSncPartnerName(java.lang.String sncPartnerName)Sets the SNC communication partner name (application server).voidsetSncQOP(java.lang.String sncQOP)Sets the SNC security level.voidsetTargetHost(java.lang.String targetHost)Sets the target host.voidsetUserid(java.lang.String userid)Sets the user id.java.lang.StringtoString()
-
-
-
Method Detail
-
getPassword
public java.lang.String getPassword()
Description copied from interface:RFCDestinationReturns the password.- Specified by:
getPasswordin interfaceRFCDestination- Returns:
- the password
-
setPassword
public void setPassword(java.lang.String password)
Sets the password.- Parameters:
password- the password to set
-
getSid
public java.lang.String getSid()
Description copied from interface:RFCDestinationReturns the system id.- Specified by:
getSidin interfaceRFCDestination- Returns:
- the sid
-
setSid
public void setSid(java.lang.String sid)
Sets the system id.- Parameters:
sid- the sid to set
-
getGroup
public java.lang.String getGroup()
Description copied from interface:RFCDestinationReturns the logon group name.- Specified by:
getGroupin interfaceRFCDestination- Returns:
- the group
-
setGroup
public void setGroup(java.lang.String group)
Sets the logon group name.- Parameters:
group- the group to set
-
getPoolSize
public java.lang.String getPoolSize()
Description copied from interface:RFCDestinationReturns the pool size.- Specified by:
getPoolSizein interfaceRFCDestination- Returns:
- the poolSize
-
setPoolSize
public void setPoolSize(java.lang.String poolSize)
Sets the connection pool size.- Parameters:
poolSize- the poolSize to set
-
getClient
public java.lang.String getClient()
Description copied from interface:RFCDestinationReturns the client.- Specified by:
getClientin interfaceRFCDestination- Returns:
- the client
-
setClient
public void setClient(java.lang.String client)
Sets the client.- Parameters:
client- the client to set
-
getMaxWaitTime
public java.lang.String getMaxWaitTime()
Description copied from interface:RFCDestinationReturns the maximum waiting time in milliseconds.- Specified by:
getMaxWaitTimein interfaceRFCDestination- Returns:
- the maxWaitTime
-
setMaxWaitTime
public void setMaxWaitTime(java.lang.String maxWaitTime)
Sets the maximum waiting time.- Parameters:
maxWaitTime- the maxWaitTime to set
-
getTargetHost
public java.lang.String getTargetHost()
Description copied from interface:RFCDestinationReturns the host name of the target application server (for server connection) or the message server (for group connection).- Specified by:
getTargetHostin interfaceRFCDestination- Returns:
- the targetHost
-
setTargetHost
public void setTargetHost(java.lang.String targetHost)
Sets the target host.- Parameters:
targetHost- the targetHost to set
-
getUserid
public java.lang.String getUserid()
Description copied from interface:RFCDestinationReturns the user id.- Specified by:
getUseridin interfaceRFCDestination- Returns:
- the userid
-
setUserid
public void setUserid(java.lang.String userid)
Sets the user id.- Parameters:
userid- the userid to set
-
getPooledConnectionMode
public java.lang.Boolean getPooledConnectionMode()
Description copied from interface:RFCDestinationReturns the indicator whether a pooled connection mode is enabled.- Specified by:
getPooledConnectionModein interfaceRFCDestination- Returns:
- the pooledConnectionMode
-
setPooledConnectionMode
public void setPooledConnectionMode(java.lang.Boolean pooledConnectionMode)
Sets the pooled connection activation indicator.- Parameters:
pooledConnectionMode- the pooledConnectionMode to set
-
getMessageServer
public java.lang.String getMessageServer()
Description copied from interface:RFCDestinationReturns the message server (for group connection).- Specified by:
getMessageServerin interfaceRFCDestination- Returns:
- the messageServer
-
setMessageServer
public void setMessageServer(java.lang.String messageServer)
Sets the message server (for group connection).- Parameters:
messageServer- the messageServer to set
-
getInstance
public java.lang.String getInstance()
Description copied from interface:RFCDestinationReturns the instance number of the application server (for server connection only).- Specified by:
getInstancein interfaceRFCDestination- Returns:
- the instance
-
setInstance
public void setInstance(java.lang.String instance)
Sets the instance number.- Parameters:
instance- the instance to set
-
getMaxConnections
public java.lang.String getMaxConnections()
Description copied from interface:RFCDestinationReturns the maximum number of connections.- Specified by:
getMaxConnectionsin interfaceRFCDestination- Returns:
- the maxConnections
-
setMaxConnections
public void setMaxConnections(java.lang.String maxConnections)
Sets the maximum number of connections.- Parameters:
maxConnections- the maxConnections to set
-
getRfcDestinationName
public java.lang.String getRfcDestinationName()
Description copied from interface:RFCDestinationReturns the RFC destination name.- Specified by:
getRfcDestinationNamein interfaceRFCDestination- Returns:
- the rfcDestinationName
-
setRfcDestinationName
public void setRfcDestinationName(java.lang.String rfcDestinationName)
Sets the RFC destination name.- Parameters:
rfcDestinationName- the rfcDestinationName to set
-
getConnectionType
public java.lang.Boolean getConnectionType()
Description copied from interface:RFCDestinationReturns the type of connection (server or group connection).- Specified by:
getConnectionTypein interfaceRFCDestination- Returns:
- the connectionType
-
setConnectionType
public void setConnectionType(java.lang.Boolean connectionType)
Sets the connection type.- Parameters:
connectionType- the connectionType to set
-
getJcoTraceLevel
public java.lang.String getJcoTraceLevel()
Description copied from interface:RFCDestinationReturns the JCo trace level (0-10).- Specified by:
getJcoTraceLevelin interfaceRFCDestination- Returns:
- the jcoTraceLevel - Turns on the JCo trace. Allowed levels are [0 .. 10]
-
setJcoTraceLevel
public void setJcoTraceLevel(java.lang.String jcoTraceLevel)
Sets the JCo trace level.- Parameters:
jcoTraceLevel- the jcoTraceLevel to set
-
getJcoTracePath
public java.lang.String getJcoTracePath()
Description copied from interface:RFCDestinationReturns the JCo trace path (null, stdout, stderr or an existing path are allowed).- Specified by:
getJcoTracePathin interfaceRFCDestination- Returns:
- the jcoTracePath
-
setJcoTracePath
public void setJcoTracePath(java.lang.String jcoTracePath)
Sets the JCo trace path.- Parameters:
jcoTracePath- the jcoTracePath to set
-
isJcoRFCTraceEnabled
public java.lang.Boolean isJcoRFCTraceEnabled()
Description copied from interface:RFCDestinationReturns the indicator whether JCo RFC trace is enabled (0 or 1).- Specified by:
isJcoRFCTraceEnabledin interfaceRFCDestination- Returns:
- the jcoRFCTrace
-
setJcoRFCTrace
public void setJcoRFCTrace(java.lang.String jcoRFCTrace)
Sets the JCo trace.- Parameters:
jcoRFCTrace- the jcoRFCTrace to set
-
getJcoCPICTrace
public java.lang.String getJcoCPICTrace()
Description copied from interface:RFCDestinationReturns the CPIC trace (-1 [take over environment value 'CPIC_TRACE'], 0 no trace, 1,2,3 different trace levels).- Specified by:
getJcoCPICTracein interfaceRFCDestination- Returns:
- the jcoCPICTrace - Enable/disable CPIC trace
-
setJcoCPICTrace
public void setJcoCPICTrace(java.lang.String jcoCPICTrace)
Sets the JCo CPIC trace.- Parameters:
jcoCPICTrace- the jcoCPICTrace to set
-
getJcoMsServ
public java.lang.String getJcoMsServ()
Description copied from interface:RFCDestinationReturns the SAP message server or port number.- Specified by:
getJcoMsServin interfaceRFCDestination- Returns:
- the jcoMsServ
-
setJcoMsServ
public void setJcoMsServ(java.lang.String jcoMsServ)
Sets the JCo message server.- Parameters:
jcoMsServ- the jcoMsServ to set
-
getJcoSAPRouter
public java.lang.String getJcoSAPRouter()
Description copied from interface:RFCDestinationReturns the SAP router string to use for networks being protected by a firewall.- Specified by:
getJcoSAPRouterin interfaceRFCDestination- Returns:
- the jcoSAPRouter string
-
setJcoSAPRouter
public void setJcoSAPRouter(java.lang.String jcoSAPRouter)
Sets the SAP router.- Parameters:
jcoSAPRouter- the jcoSAPRouter to set
-
getJcoClientDelta
public java.lang.Boolean getJcoClientDelta()
Description copied from interface:RFCDestinationReturns the indicator for table parameter delta management (1 - enable [default] or 0 - disable).- Specified by:
getJcoClientDeltain interfaceRFCDestination- Returns:
- the jcoClientDelta indicator
-
setJcoClientDelta
public void setJcoClientDelta(java.lang.Boolean jcoClientDelta)
Sets the client delta switch.- Parameters:
jcoClientDelta- the jcoClientDelta to set
-
getBackendType
public java.lang.String getBackendType()
Description copied from interface:RFCDestinationReturns the backend type.- Specified by:
getBackendTypein interfaceRFCDestination- Returns:
- the backend Type
-
setBackendType
public void setBackendType(java.lang.String backendType)
Sets the backend type.- Parameters:
backendType- the backend type
-
isSncEnabled
public java.lang.Boolean isSncEnabled()
Description copied from interface:RFCDestinationReturns the indicator whether SNC is enabled.- Specified by:
isSncEnabledin interfaceRFCDestination- Returns:
- true, if SNC is enabled
-
setSncMode
public void setSncMode(boolean sncMode)
Sets the SNC activation indicator.- Parameters:
sncMode- SNC activation indicator
-
getSncQOP
public java.lang.String getSncQOP()
Description copied from interface:RFCDestinationReturns the SNC security level / quality of service.- Specified by:
getSncQOPin interfaceRFCDestination- Returns:
- SNC security level / quality of service
-
setSncQOP
public void setSncQOP(java.lang.String sncQOP)
Sets the SNC security level.- Parameters:
sncQOP- SNC security level
-
getSncPartnerName
public java.lang.String getSncPartnerName()
Description copied from interface:RFCDestinationReturns SNC name of the communication partner (application server).- Specified by:
getSncPartnerNamein interfaceRFCDestination- Returns:
- name of SNC partner
-
setSncPartnerName
public void setSncPartnerName(java.lang.String sncPartnerName)
Sets the SNC communication partner name (application server).- Parameters:
sncPartnerName- SNC partner name
-
isOffline
public boolean isOffline()
Description copied from interface:RFCDestinationReturns the offline indicator.- Specified by:
isOfflinein interfaceRFCDestination- Returns:
- true if offline
-
setOffline
public void setOffline(boolean offline)
Sets the offline indicator.- Parameters:
offline- offline indicator
-
getRFCDestinationAttributes
public java.util.Collection<RFCDestinationAttributeModel> getRFCDestinationAttributes()
Description copied from interface:RFCDestinationReturns the additional Attributes for RFC Destination.- Specified by:
getRFCDestinationAttributesin interfaceRFCDestination- Returns:
- the collection of attributes
-
setAdditionalAttributes
public void setAdditionalAttributes(java.util.Collection<RFCDestinationAttributeModel> additionalAttributes)
Sets the additional attributes.- Parameters:
additionalAttributes- the additional attributes to set
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-