2/53
List of Examples
1-1 Typical Cache Operations in a Java Program
1-2 Sample Cache Configuration File
1-3 cache-scheme Definition for a Distributed Cache
1-4 Mapping to a Distributed Cache
1-5 Configuration for a Distributed Cache
1-6 Output from Starting a Coherence Server
1-7 Output from the help Command
1-8 Output from the info Command
1-9 Putting a Value into the Cache
1-10 Retrieving a Value from the Cache
1-11 Specifying a Distributed Cache in the cache-config File
1-12 Running SimpleCacheExplorer.java with a Distributed Cache
1-13 Adding an Eviction Policy to a cache-config File
1-14 Running SimpleCacheExplorer.java with an Eviction Policy
2-1 Applying Locking Operations on a Cache
2-2 Updating the Cache in a Transaction
2-3 Configuration for a JCA Container
2-4 Concurrency Control without Using EntryProcessors
2-5 Concurrency Control Using EntryProcessors
3-1 A Query for a Continuous Query Cache
3-2 Getting Data for the Continuous Query Cache
3-3 Constructing the Continuous Query Cache
3-4 A Constructor that Allows the CacheValues Property
3-5 Setting the CacheValues Property
3-6 Adding a Listener to a Continuous Query Cache
3-7 Processing Continuous Query Cache Entries and Adding a Listener
3-8 Adding a Listener Before Processing Continuous Query Cache Entries
3-9 Providing a Listener When Constructing the Continuous Query Cache
3-10 Making the Continuous Query Cache Read-Only
4-1 Creating a MapTriggerListener in the coherence-cache-config.xml File
4-2 A MapTriggerListener Registering a MapTrigger with a Named Cache
4-3 A MapTrigger Class
4-4 Calling a MapTrigger and Passing it to a Named Cache
5-1 Creating a Key Association
5-2 A Custom KeyAssociator
5-3 Configuring a Key Associator
5-4 Using Affinity for a More Efficient Query
6-1 Querying the Cache with a Filter
6-2 Using LimitFilter Class to Limit the Amount of Data Sent to the Client
6-3 Indexing a Queryable Attribute
6-4 Querying the Near Cache
6-5 Equality Filter
6-6 Filter that Constructs a ReflectionExtractor
6-7 Selecting Cache Entries that Satisfy a Filter
6-8 Selecting and Sorting Cache Entries that Satisfy a Filter
6-9 Using a keySet Query Format
6-10 Querying on Multi-Value Attributes
6-11 Chaining Invocation Methods
8-1 Enabling a Filter for all Network Traffic
8-2 Declaring a Filter in the tangosol-coherence.xml File
8-3 Attaching the Filter to a Service
8-4 Adding the Filter to All Services
8-5 Configuration for a Custom Filter
8-6 Configuring a setConfig Call for a Filter
9-1 Sample Task Time and Task Hung Configuration
9-2 Sample Client Request Timeout Configuration
9-3 Exception Thrown by a TaskTimeout
10-1 Configuring the Cache to use SpringAwareCacheFactory in the Override File
10-2 Configuring a SpringAwareCacheFactory Programmatically
10-3 Defining a SpringAwareCacheFactory in an Application Context
10-4 Configuring a CacheFactory in an Application Context
10-5 Configuring a CacheStore in an Application Context
10-6 Configuring Setter Injection to Set Properties on the Bean
10-7 SpringAwareCacheFactory.java
11-1 Implementing a Custom Eviction Policy
11-2 Custom Eviction Policy in a coherence-cache-config.xml File
13-1 Pre-Loading a Cache
13-2 Pre-Loading a Cache Using ConcurrentMap.putAll
13-3 Using a Filter to Query a Cache
13-4 Processing Query Results in Batches
13-5 A Sample Bulk Loading Program
13-6 Terminal Output from the Bulk Loading Program
13-7 Retrieving Storage-Enabled Members of the Cache
13-8 Routine to Get a List of Files Assigned to a Cache Member
13-9 Class to Load Each Member of the Cache
13-10 Server Response from the Sample Distributed Loading Application
16-1 Command to Determine a Multicast Address
16-2 Sequential Multicast Packets Sent by the Multicast Test Utility
16-3 Sample Multicast Test Results from Server A
16-4 Sample Multicast Test Results on Server B
16-5 Command to Set Machine Routing Table
17-1 Command to Start a Listener
17-2 Output from Starting a Listener
17-3 Command to Start a Publisher
17-4 Datagram Test-Starting a Listener and a Publisher on a Server
17-5 Sample Publisher Report
17-6 Sample Lifetime Statistics
17-7 Running Datagram Test in Bi-Directional Mode
18-1 Client-Side Cache Configuration Descriptor for Extend-JMS
18-2 Cluster-Side Cache Configuration Descriptor for Extend-JMS
18-3 jndi.properties Values for a WebLogic Server Acting as a JMS Provider
18-4 Ant Script to Create JMS Resources and Deploy on a WebLogic Server
18-5 Windows Command to Start the Default Cache Server for the Cluster-Side
18-6 UNIX Command to Start the Default Cache Server for the Cluster-Side
18-7 Windows Command to Start the Client Application
18-8 UNIX Command to Start the Client Application
18-9 Coherence*Extend Client Descriptor that uses Extend-TCP
18-10 Cluster-Side Cache Configuration Descriptor for Extend-TCP
18-11 Command to Start a Client Application that Uses Extend-TCP
18-12 Sample Coherence*Extend Application
18-13 Client-Side Configuration to Encrypt Network Traffic
18-14 Cluster-Side Proxy Scheme Configuration
18-15 Client-Side Configuration to Allow Read-only Access to the Cache
18-16 Client Configuration to Allow NamedCache Locking
18-17 Client Configuration to Allow Locking for Partitioned or Replicated Caches
18-18 Client Configuration to Disable Proxy Service
18-19 Client Configuration to Prevent Cache Access
20-1 Message Indicating OS Failed to Allocate the Full Buffer Size
20-2 Log Message from a Linux Timesource
20-3 Message Indicating a Communication Delay
20-4 Message Indicating Target Cluster Node is in Garbage Collection Mode
21-1 Single Server Mode Configuration
21-2 Command to Start Coherence in Single Server Mode
23-1 System Properties for Reporter on the "Management" Node
23-2 System Properties for Reporter on the "Managed" Node
23-3 System Properties for Reporter in Distributed Mode on the "Managing" Node
23-4 System Properties for Reporter in Distributed Mode on the "Managed" Node
24-1 Including an Attribute Obtained from a Query Pattern
24-2 Including Part of an ObjectName Key in a Report
24-3 Including Information from a Composite Attribute in a Report
24-4 Including Information from Multiple MBeans in a Report
24-5 Including Execution Time in a Report
24-6 Including the Report Batch/Count in a Report
24-7 Including the Execution Node
24-8 Including a Constant Numeric Value in a Report
24-9 Including a Constant String in a Report
24-10 Including a List of the Cluster's NodeIDs and RoleNames in a Report
24-11 Using an Equals Filter for a Report
24-12 Defining a "Greater Than" Filter for a Report
24-13 Defining a "Less Than" Filter for a Report
24-14 Defining an "And" Filter for a Report
24-15 Defining an "Or" Filter for a Report
24-16 Defining a "Not Equals" Filter for a Report
24-17 Adding Column Values and Including Results in a Different Column
24-18 Subtracting Column Values and Including Results in a Different Column
24-19 Multiplying Column Values and Including Results in a Different Column
24-20 Dividing Column Values and Including Results in a Different Column
24-21 Adding the Values in a Column
24-22 Calculating the Average of Values in a Column
24-23 Finding the Maximum Value in a Column
24-24 Finding the Minimum Value in a Column
24-25 Delta Calculation for an Attribute
24-26 Delta Calculation for an Attribute with an Alternate Delta Key
25-1 Format of a Report Batch Configuration File (report-group.xml)
27-1 tangosol.coherence.management.report.autostart System Property
27-2 tangosol.coherence.management.report.group System Property
28-1 Using an MBean to Create a Query Node
28-2 Getting an MBean for the Memory System of a Java Virtual Machine
28-3 Executing a JMX Query and Creating an MBean on the MBean Server
28-4 System Property to Load an MBean
29-1 Adding a Standard MBean to Coherence Programatically
A-1 Verifying Hardware Configuration
A-2 Sample Coherence License Configuration
D-1 Configuring Two Different Distributed Schemes
D-2 Configuring Equivalent Scheme Definitions
D-3 Multiple Schemes Reusing the Same Base Definition
F-1 Configuration for a Local, In-memory Cache
F-2 Configuration for a NIO In-memory Cache
F-3 Configuration for a Size Limited, In-memory, Local Cache
F-4 Configuration for an In-memory Cache with Expiring Entries
F-5 Configuration to Define a Cache on Disk
F-6 Configuration for a Size Limited Cache on Disk
F-7 Configuration for Persistent cache on disk
F-8 Configuration for Persistent cache on disk with Berkeley DB
F-9 Configuration for In-memory Cache with Disk Based Overflow
F-10 Configuration for the Cache of a Database
F-11 Configuration for a Replicated Cache
F-12 Configuration for a Replicated Cache with Overflow
F-13 Configuration for a Partitioned Cache
F-14 Configuration for a Partitioned Cache with Overflow
F-15 Configuration for a Partitioned Cache of a Database
F-16 Configuration for a Partitioned Cache with a Serializer
F-17 Configuration for a Local Cache of a Partitioned Cache
G-1 Implementation of the CacheStore Interface
G-2 Main.java - Interacting with a Controllable CacheStore
G-3 CacheStoreAware.java interface
H-1 Operational Configuration Deployment Descriptor DOCTYPE Declaration
H-2 Configuration for Two Well-Known-Addresses
I-1 Sample init-param Configuration
I-2 Another Sample init-param Configuration
J-1 Format of a POF User Type Configuration File (pof-config.xml)
K-1 Format and Nesting of MBean Configuration Elements
M-1 Log for a Multicast Outage
N-1 Disabling Storage in tangosol-coherence-override.xml
N-2 Casting an ArrayList Object
N-3 Assigning a ArrayList Collection Object to a List Java Interface
N-4 Embedding an ArrayList Collection Object
N-5 Configuring a POFSerializer for a Distributed Cache
O-1 Trade Object Defining Three Properties
O-2 Mapping a cache-mapping to a caching-scheme with Unlimited Capacity
O-3 Adding an Index to the Price Property
O-4 Perform a Parallel Aggregation Across all JVMs in the Grid