Package com.adaptris.core.jcsmp.solace
Class SolaceJcsmpConnection
java.lang.Object
com.adaptris.core.AdaptrisConnectionImp
com.adaptris.core.AllowsRetriesConnection
com.adaptris.core.jcsmp.solace.SolaceJcsmpConnection
- All Implemented Interfaces:
AdaptrisComponent
,AdaptrisConnection
,ComponentLifecycle
,ComponentLifecycleExtension
,SolaceJcsmpSessionCreator
,StateManagedComponent
@ComponentProfile(summary="A Solace native JCSMP connection used to create JCSMP sessions to your Solace appliance.",
tag="connection,solace,jcsmp",
since="3.9.3")
public class SolaceJcsmpConnection
extends AllowsRetriesConnection
implements SolaceJcsmpSessionCreator
The Interlok AdaptrisConnection
that will allow us to connect to your Solace router via the JCSMP api.
Simply supply the host, vpn name, user and password.
In the adapter configuration file this class is aliased as solace-jcsmp-connection which is the preferred alternative to the fully qualified classname when building your configuration.
-
Field Summary
Fields inherited from class com.adaptris.core.AdaptrisConnectionImp
log
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
protected void
com.solacesystems.jcsmp.JCSMPSession
How would you like to be authenticated when connecting to Solace.getHost()
The tcp address to your Solace router, such as "tcp://localhost:55555".getVpn()
The Solace VPN name, such as "default".protected void
protected void
void
setAdditionalDebug
(Boolean additionalDebug) void
setAdvancedProperties
(SolaceJcsmpAdvancedConnectionProperties advancedProperties) void
setAuthenticationProvider
(AuthenticationProvider authenticationProvider) How would you like to be authenticated when connecting to Solace.void
The tcp address to your Solace router, such as "tcp://localhost:55555".void
The Solace VPN name, such as "default".protected void
protected void
Methods inherited from class com.adaptris.core.AllowsRetriesConnection
connectionAttempts, connectionRetryInterval, createLoggingStatement, getConnectionAttempts, getConnectionRetryInterval, logWarning, setConnectionAttempts, setConnectionRetryInterval
Methods inherited from class com.adaptris.core.AdaptrisConnectionImp
addExceptionListener, addMessageConsumer, addMessageProducer, changeState, cloneForTesting, close, connectionErrorHandler, getConnectionErrorHandler, getUniqueId, getWorkersFirstOnShutdown, init, prepare, requestClose, requestInit, requestStart, requestStop, retrieveComponentState, retrieveConnection, retrieveExceptionListeners, retrieveMessageConsumers, retrieveMessageProducers, setConnectionErrorHandler, setUniqueId, setWorkersFirstOnShutdown, start, stop, workersFirstOnShutdown
-
Constructor Details
-
SolaceJcsmpConnection
public SolaceJcsmpConnection()
-
-
Method Details
-
createSession
- Specified by:
createSession
in interfaceSolaceJcsmpSessionCreator
- Throws:
Exception
-
prepareConnection
- Specified by:
prepareConnection
in classAdaptrisConnectionImp
- Throws:
CoreException
-
initConnection
- Specified by:
initConnection
in classAdaptrisConnectionImp
- Throws:
CoreException
-
startConnection
- Specified by:
startConnection
in classAdaptrisConnectionImp
- Throws:
CoreException
-
stopConnection
protected void stopConnection()- Specified by:
stopConnection
in classAdaptrisConnectionImp
-
closeConnection
protected void closeConnection()- Specified by:
closeConnection
in classAdaptrisConnectionImp
-
additionalDebug
protected boolean additionalDebug() -
getHost
The tcp address to your Solace router, such as "tcp://localhost:55555". -
setHost
The tcp address to your Solace router, such as "tcp://localhost:55555".- Parameters:
host
-
-
getVpn
The Solace VPN name, such as "default". -
setVpn
The Solace VPN name, such as "default".- Parameters:
vpn
-
-
getAuthenticationProvider
How would you like to be authenticated when connecting to Solace. -
setAuthenticationProvider
How would you like to be authenticated when connecting to Solace. -
getAdditionalDebug
-
setAdditionalDebug
-
getAdvancedProperties
-
setAdvancedProperties
-