Class RfcServiceList
- All Implemented Interfaces:
AdaptrisComponent
,ComponentLifecycle
,ComponentLifecycleExtension
,ConfigComment
,ConnectedService
,EventHandlerAware
,com.adaptris.core.licensing.LicensedComponent
,MessageEventGenerator
,Service
,ServiceCollection
,StateManagedComponent
,Iterable<Service>
,Collection<Service>
,List<Service>
ServiceCollection
that creates a JCoDestination instance at the start of the execution of the service list and
stores it in object metadata.
Other than the creation of the JCoDestination at the start of execution, all other behaviour is the same as ServiceList
which
this class extends.
The rationale behind this service collection implementation is to allow multiple producers that share the same underlying RFC
configuration. Embedded StandaloneProducer and StandaloneRequestor implementations do not need to have RfcConnections associated with
them as they will be able to use the JCoDestination from metadata. For a stateful RFC call sequence you can then configure the first and
last services in this service list to be StatefulSessionStart
and StatefulSessionEnd
respectively. Between
StatefulSessionStart
and StatefulSessionEnd
the same underlying connection will be used for all function calls.
- See Also:
In the adapter configuration file this class is aliased as sapjco3-rfc-service-list which is the preferred alternative to the fully qualified classname when building your configuration.
License Required: ENTERPRISE
-
Field Summary
Fields inherited from class com.adaptris.core.ServiceCollectionImp
eventHandler, log
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected void
doClose()
protected void
doInit()
protected void
doStart()
protected void
doStop()
boolean
isEnabled
(com.adaptris.core.licensing.License license) void
prepare()
void
Set the connection that will be used by allRfcProducer
instances in this service list.Methods inherited from class com.adaptris.core.ServiceList
getAllowForwardSearch, setAllowForwardSearch
Methods inherited from class com.adaptris.core.ServiceListBase
haltProcessing
Methods inherited from class com.adaptris.core.ServiceCollectionImp
add, add, addAll, addAll, addService, changeState, clear, close, continueOnFailure, createName, createQualifier, doService, enabled, enforceRequirements, enforceRequirements, get, getComments, getContinueOnFail, getEnabled, getIsTrackingEndpoint, getOutOfStateHandler, getRestartAffectedServiceOnException, getServices, getUniqueId, handleException, indexOf, init, isBranching, isTrackingEndpoint, iterator, lastIndexOf, listIterator, listIterator, registerEventHandler, remove, requestClose, requestInit, requestStart, requestStop, retrieveComponentState, set, setComments, setContinueOnFail, setEnabled, setIsTrackingEndpoint, setOutOfStateHandler, setRestartAffectedServiceOnException, setServices, setUniqueId, size, start, stop, subList, withServices
Methods inherited from class java.util.AbstractCollection
contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.adaptris.core.AdaptrisComponent
getUniqueId
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface com.adaptris.core.ComponentLifecycle
close, init, start, stop
Methods inherited from interface com.adaptris.core.ConfigComment
getComments, setComments
Methods inherited from interface java.util.List
contains, containsAll, equals, hashCode, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
Methods inherited from interface com.adaptris.core.MessageEventGenerator
createName, createQualifier, isTrackingEndpoint
Methods inherited from interface com.adaptris.core.Service
continueOnFailure, doService, enabled, isBranching, setUniqueId
Methods inherited from interface com.adaptris.core.StateManagedComponent
changeState, requestClose, requestInit, requestStart, requestStop, retrieveComponentState
-
Constructor Details
-
RfcServiceList
public RfcServiceList() -
RfcServiceList
-
-
Method Details
-
applyServices
- Overrides:
applyServices
in classServiceList
- Throws:
ServiceException
-
doInit
- Overrides:
doInit
in classServiceList
- Throws:
CoreException
-
doStart
- Overrides:
doStart
in classServiceListBase
- Throws:
CoreException
-
doStop
protected void doStop()- Overrides:
doStop
in classServiceListBase
-
doClose
protected void doClose()- Overrides:
doClose
in classServiceListBase
-
prepare
- Specified by:
prepare
in interfaceComponentLifecycleExtension
- Overrides:
prepare
in classServiceCollectionImp
- Throws:
CoreException
-
isEnabled
public boolean isEnabled(com.adaptris.core.licensing.License license) - Specified by:
isEnabled
in interfacecom.adaptris.core.licensing.LicensedComponent
-
getConnection
- Specified by:
getConnection
in interfaceConnectedService
-
setConnection
Set the connection that will be used by allRfcProducer
instances in this service list.So that we can use
*SharedConnection
, this is marked as a standardAdaptrisConnection
, however you should only use a concreteRfcConnection
instance or aSharedConnection
.- Specified by:
setConnection
in interfaceConnectedService
-