이 콘텐츠는 선택한 언어로 제공되지 않습니다.
13.4. The Hot Rod Interface Connector
- The
hotrod-connector
element, which defines the configuration for a Hot Rod based connector. - The
memcached-connector
element, which defines the configuration for a memcached based connector. - The
rest-connector
element, which defines the configuration for a REST interface based connector.
<socket-binding-group />
, and exposing the caches declared in the local
container, using defaults for all other settings. The following examples show how to connect to Hot Rod, Memcached, and REST servers.
hotrod
socket binding.
<hotrod-connector socket-binding="hotrod" cache-container="local" />
<hotrod-connector socket-binding="hotrod" cache-container="local" />
<topology-state-transfer />
child element to the connector as follows:
<hotrod-connector socket-binding="hotrod" cache-container="local"> <topology-state-transfer lazy-retrieval="false" lock-timeout="1000" replication-timeout="5000" /> </hotrod-connector>
<hotrod-connector socket-binding="hotrod" cache-container="local">
<topology-state-transfer lazy-retrieval="false" lock-timeout="1000" replication-timeout="5000" />
</hotrod-connector>
Note
13.4.1. Configure Hot Rod Connectors 링크 복사링크가 클립보드에 복사되었습니다!
hotrod-connector
and topology-state-transfer
elements must be configured based on the following procedure.
Procedure 13.1. Configuring Hot Rod Connectors for Remote Client-Server Mode
The
hotrod-connector
ElementThehotrod-connector
element defines the configuration elements for use with Hot Rod.The
socket-binding
ParameterThesocket-binding
parameter specifies the socket binding port used by the Hot Rod connector. This is a mandatory parameter.<subsystem xmlns="urn:infinispan:server:endpoint:6.1"> <hotrod-connector socket-binding="hotrod" />
<subsystem xmlns="urn:infinispan:server:endpoint:6.1"> <hotrod-connector socket-binding="hotrod" />
Copy to Clipboard Copied! Toggle word wrap Toggle overflow The
cache-container
ParameterThecache-container
parameter names the cache container used by the Hot Rod connector. This is a mandatory parameter.<subsystem xmlns="urn:infinispan:server:endpoint:6.1"> <hotrod-connector socket-binding="hotrod" cache-container="local" />
<subsystem xmlns="urn:infinispan:server:endpoint:6.1"> <hotrod-connector socket-binding="hotrod" cache-container="local" />
Copy to Clipboard Copied! Toggle word wrap Toggle overflow The
worker-threads
ParameterTheworker-threads
parameter specifies the number of worker threads available for the Hot Rod connector. The default value for this parameter is160
. This is an optional parameter.<subsystem xmlns="urn:infinispan:server:endpoint:6.1"> <hotrod-connector socket-binding="hotrod" cache-container="local" worker-threads="${VALUE}" />
<subsystem xmlns="urn:infinispan:server:endpoint:6.1"> <hotrod-connector socket-binding="hotrod" cache-container="local" worker-threads="${VALUE}" />
Copy to Clipboard Copied! Toggle word wrap Toggle overflow The
idle-timeout
ParameterTheidle-timeout
parameter specifies the time (in milliseconds) the connector can remain idle before the connection times out. The default value for this parameter is-1
, which means that no timeout period is set. This is an optional parameter.<subsystem xmlns="urn:infinispan:server:endpoint:6.1"> <hotrod-connector socket-binding="hotrod" cache-container="local" worker-threads="${VALUE}" idle-timeout="${VALUE}"/>
<subsystem xmlns="urn:infinispan:server:endpoint:6.1"> <hotrod-connector socket-binding="hotrod" cache-container="local" worker-threads="${VALUE}" idle-timeout="${VALUE}"/>
Copy to Clipboard Copied! Toggle word wrap Toggle overflow The
tcp-nodelay
ParameterThetcp-nodelay
parameter specifies whether TCP packets will be delayed and sent out in batches. Valid values for this parameter aretrue
andfalse
. The default value for this parameter istrue
. This is an optional parameter.Copy to Clipboard Copied! Toggle word wrap Toggle overflow The
send-buffer-size
ParameterThesend-buffer-size
parameter indicates the size of the send buffer for the Hot Rod connector. The default value for this parameter is the size of the TCP stack buffer. This is an optional parameter.Copy to Clipboard Copied! Toggle word wrap Toggle overflow The
receive-buffer-size
ParameterThereceive-buffer-size
parameter indicates the size of the receive buffer for the Hot Rod connector. The default value for this parameter is the size of the TCP stack buffer. This is an optional parameter.Copy to Clipboard Copied! Toggle word wrap Toggle overflow
The
topology-state-transfer
ElementThetopology-state-transfer
element specifies the topology state transfer configurations for the Hot Rod connector. This element can only occur once within ahotrod-connector
element.The
lock-timeout
ParameterThelock-timeout
parameter specifies the time (in milliseconds) after which the operation attempting to obtain a lock times out. The default value for this parameter is10
seconds. This is an optional parameter.Copy to Clipboard Copied! Toggle word wrap Toggle overflow The
replication-timeout
ParameterThereplication-timeout
parameter specifies the time (in milliseconds) after which the replication operation times out. The default value for this parameter is10
seconds. This is an optional parameter.Copy to Clipboard Copied! Toggle word wrap Toggle overflow The
external-host
ParameterTheexternal-host
parameter specifies the hostname sent by the Hot Rod server to clients listed in the topology information. The default value for this parameter is the host address. This is an optional parameter.Copy to Clipboard Copied! Toggle word wrap Toggle overflow The
external-port
ParameterTheexternal-port
parameter specifies the port sent by the Hot Rod server to clients listed in the topology information. The default value for this parameter is the configured port. This is an optional parameter.Copy to Clipboard Copied! Toggle word wrap Toggle overflow The
lazy-retrieval
ParameterThelazy-retrieval
parameter indicates whether the Hot Rod connector will carry out retrieval operations lazily. The default value for this parameter istrue
. This is an optional parameter.Copy to Clipboard Copied! Toggle word wrap Toggle overflow The
await-initial-transfer
ParameterTheawait-initial-transfer
parameter specifies whether the initial state retrieval happens immediately at startup. This parameter only applies whenlazy-retrieval
is set tofalse
. This default value for this parameter istrue
.Copy to Clipboard Copied! Toggle word wrap Toggle overflow