public class PropertiesBasedEJBClientConfiguration extends Object implements EJBClientConfiguration
EJBClientConfiguration
which is configured through Properties
. Some well known
properties will be looked for in the Properties
that is passed to the constructor
,
for setting up the configurationsEJBClientConfiguration.ClusterConfiguration, EJBClientConfiguration.ClusterNodeConfiguration, EJBClientConfiguration.CommonConnectionCreationConfiguration, EJBClientConfiguration.RemotingConnectionConfiguration
Constructor and Description |
---|
PropertiesBasedEJBClientConfiguration(Properties properties) |
Modifier and Type | Method and Description |
---|---|
CallbackHandler |
getCallbackHandler()
Returns the default
CallbackHandler that will be used while creating remoting connections. |
EJBClientConfiguration.ClusterConfiguration |
getClusterConfiguration(String clusterName)
Returns a cluster configuration corresponding to the passed
clusterName . |
Iterator<EJBClientConfiguration.RemotingConnectionConfiguration> |
getConnectionConfigurations()
Returns the connection configurations.
|
DeploymentNodeSelector |
getDeploymentNodeSelector()
Returns the
DeploymentNodeSelector to be used for the EJBClientContext created
out of this EJBClientConfiguration . |
OptionMap |
getEndpointCreationOptions()
Returns the endpoint creation
options that will be used for creating the remoting
endpoint. |
String |
getEndpointName()
Returns the endpoint name to be used for creating the remoting endpoint.
|
long |
getInvocationTimeout()
Returns the timeout, in milliseconds, that will be used for EJB invocations.
|
long |
getReconnectTasksTimeout()
Returns the wait timeout, in milliseconds, that will be used when the reconnect tasks are submitted.
|
OptionMap |
getRemoteConnectionProviderCreationOptions()
Returns the
options that will be used for creating a remote connection provider. |
public PropertiesBasedEJBClientConfiguration(Properties properties)
public String getEndpointName()
EJBClientConfiguration
getEndpointName
in interface EJBClientConfiguration
public OptionMap getEndpointCreationOptions()
EJBClientConfiguration
options
that will be used for creating the remoting
endpoint. This method must not return null.getEndpointCreationOptions
in interface EJBClientConfiguration
public OptionMap getRemoteConnectionProviderCreationOptions()
EJBClientConfiguration
options
that will be used for creating a remote connection provider.
This method must not return null.getRemoteConnectionProviderCreationOptions
in interface EJBClientConfiguration
public CallbackHandler getCallbackHandler()
EJBClientConfiguration
CallbackHandler
that will be used while creating remoting connections.
Individual connection configurations, cluster configurations, cluster node configurations can override
the CallbackHandler
to be used while creating the connections
This method must not return null.getCallbackHandler
in interface EJBClientConfiguration
public Iterator<EJBClientConfiguration.RemotingConnectionConfiguration> getConnectionConfigurations()
EJBClientConfiguration
Iterator
getConnectionConfigurations
in interface EJBClientConfiguration
public EJBClientConfiguration.ClusterConfiguration getClusterConfiguration(String clusterName)
EJBClientConfiguration
clusterName
.
Returns null if no such cluster configuration exists.getClusterConfiguration
in interface EJBClientConfiguration
clusterName
- The name of the clusterpublic long getInvocationTimeout()
EJBClientConfiguration
getInvocationTimeout
in interface EJBClientConfiguration
public long getReconnectTasksTimeout()
EJBClientConfiguration
getReconnectTasksTimeout
in interface EJBClientConfiguration
public DeploymentNodeSelector getDeploymentNodeSelector()
EJBClientConfiguration
DeploymentNodeSelector
to be used for the EJBClientContext
created
out of this EJBClientConfiguration
. If this method returns null, then it's upto the implementation
to use some default DeploymentNodeSelector
getDeploymentNodeSelector
in interface EJBClientConfiguration
Copyright © 2016 JBoss by Red Hat. All rights reserved.