2/41
List of Examples
2-1 Examples of Constructing String Objects
2-2 Constructing String Objects with the "<<" Operator
2-3 Autoboxing Examples
2-4 Type Safe Casting Examples
2-5 Down Casting Examples
2-6 Object Type Checking with the instanceof<H> Function
2-7 Indexing an Array
2-8 Storing Managed Object Instances
2-9 A Try/Catch Block with Managed Exceptions
2-10 An Interface Defined by interface_spec
2-11 A Derived Interface Defined by interface_spec
2-12 An Implementation Defined by cloneable_spec
2-13 Defining a Class Without the use of specs
2-14 Using specs to Define a Class
2-15 Creating a Runnable Instance and Spawning a Thread
2-16 A Sample COH_SYNCHRONIZED Macro Code Block
2-17 Thread-safe Handle
2-18 Thread-safe Handle as a Non-Managed Class
2-19 Sample Thread Dump
2-20 Data Returned by a Heap Analyzer
2-21 Results from a Memory Corruption Run
3-1 A Non-Managed Class
3-2 Managed Class using Serialization
3-3 Instances of a Class Wrapped with Managed<T>
3-4 A Managed Class that Implements PortableObject
3-5 A Managed Class without Managed<T>
3-6 A non-PortableObject Version of a Managed Class
3-7 An External Class Responsible for Serialization
4-1 Sample Run of the build.cmd File
4-2 Cache Configuration for Two Clustered Services
4-3 A Caching Scheme that Connects to a Remote Coherence Cluster
4-4 Setting the Configuration File Location
4-5 Creating a Coherence Cache Factory
4-6 Configuring a CacheFactory and a Local Member
4-7 Setting the Cache Configuration File Location for the Server/Cluster
4-8 Sample Operational Configuration
4-9 Operational Configuration File that Includes a Logger
4-10 Sample Command to Start the DefaultCacheServer
5-1 Using the EqualsFilter Method
5-2 Using the GreaterEqualsFilter Method
5-3 Using the LikeFilter Method
5-4 Using the AndFilter Method
5-5 Using the OrFilter Method
6-1 Sample Command to Start the Proxy Service and the Cache Server
7-1 Local Cache Configuration
8-1 Reference to a Configured Near Cache
9-1 Using Filters for Querying
9-2 Placing a Listener into a Continuous Query Cache
9-3 Creating a Continuous Query Cache with a Filter and a Listener
9-4 Processing the Data, then Adding the Listener
9-5 Adding the Listener, then Processing the Data
10-1 Querying Cache Content
10-2 Using the LimitFilter Method
10-3 Indexing a Queryable Attribute
10-4 Selecting Entries of a Cache that Satisfy a Particular Filter
10-5 Selecting and Sorting Entries
10-6 Using the keySet Form of a Query
10-7 Indexing and Querying Multi-Value Attributes
10-8 Using a ChainedExtractor Implementation
11-1 Sample Remote Invocation Scheme Configuration
11-2 Reference to a Remote Invocation Service
12-1 Excerpt from the coherence::util::MapListener Class File
12-2 Excerpt from coherence::util::MapEvent
12-3 ObservableMap methods
12-4 Example MapListener implementation
12-5 Printing Events
12-6 Holding a Reference to a Listener
12-7 Removing a Reference to a Listener
12-8 Using MultiplexingMapListener to Route Events
12-9 Printing Events that Occur Against a Specified Integer Key
12-10 Triggering an Event for a Specified Integer Key Value
12-11 Adding a Listener with a Filter that Allows only Deleted Events
12-12 Inserting and Removing Data from the Cache
12-13 Inserting, Updating, and Removing a Value
12-14 Requesting Only "Lite" Events
12-15 Filtering for Cache Events
12-16 Filtering for Specialized Events
12-17 Communicating Only Specialized Events over the Network
12-18 Differentiating Between Client-Induced and Synthetic Events
14-1 Configuration of a Default Cache Server for Coherence*Extend
14-2 Configuration to Connect to a Remote Coherence Cluster
15-1 A User-Defined Portable Class
15-2 A User-Defined Class in Java
15-3 Storing Mapping Informaiton in the POF User Type Configuration File
15-4 Using a Serializer in the Cache Configuration File
15-5 Specifying a POF Configuration File
15-6 Cluster-side POF Configuration File
15-7 Configuring the Server to Use the POF Configuration
15-8 Modifying a Class to Support Class Evolution
15-9 Modifying a Java Type Class to Support Class Evolution
15-10 An Implementation of IPofSerializer for the .NET Type
15-11 An Implementation of PofSerializer for the Java Type Class
15-12 Registering the IPofSerializer Implementation of the .NET Type
15-13 Registering the PofSerializer Implementation of the Java Type
15-14 Sample Application Configuration File
15-15 Configuring a Factory for INamedCache Instances
15-16 Configuring a ConfigurableCacheFactory Implementation
15-17 Specifying a Different Cache Configuration Desriptor File
15-18 Configuring a Logger
15-19 Querying Keys on a Particular Value
15-20 Filtering on an Inserted Object
15-21 Filtering on Removed Object
15-22 Filtering on a Changed Object
15-23 Retrieving Keys Equal to a Numeric Value
15-24 Retrieving Keys Greater Than or Equal To a Numeric Value
15-25 Retrieving Keys Based on a String Value
15-26 Retrieving Keys Based on a Case-Sensitive String Value
15-27 Retrieving Cache Entries Greater Than a Numeric Value
15-28 Retrieving Cache Entries Based on a String Value
15-29 Conditional Put of a Key Value Based on a Numeric Value
15-30 Setting a Key Value Based on a Numeric Value
15-31 Returning the Size of the Cache
15-32 Returning an IDictionary
15-33 Command to Launch a Coherence Default Cache Server
16-1 Configuring a Local Cache
16-2 Obtaining a Reference to a Local Cache
16-3 Obtaining and Releasing a Reference to a Local Cache
17-1 Obtaining a Reference to a Near Cache
17-2 Obtaining and Releasing a Reference to a Near Cache
18-1 Obtaining and Releasing a Reference to a Continuous Query Cache
18-2 Caching Only the Keys in a Continuous Query Cache
18-3 Placing a Listener on a Continuous Query Cache
18-4 Processing Data, then Placing the Listener
18-5 Placing the Listener, then Processing Data
18-6 Providing the Listener During Continuous Query Cache Construction
18-7 Making a Continuous Query Cache Read-Only
19-1 Configuring a Remote Invocation Service
19-2 Obtaining a Reference to a Remote Invocation Service
19-3 Executing an Agent on a Grid Node
20-1 Marshalling and Executing a Call on the UI Thread
20-2 Calling Methods in Response to a Cache Event
21-1 Modifying an ASP.NET Application to use CoherenceSessionStore
21-2 Adding Support for the Session _OnEnd Event
21-3 Adding Support for CoherenceShutdownModule
22-1 Methods on the IWrapperStreamFactory Interface
22-2 Configuring a Filter
22-3 Attaching a Filter to a Service
22-4 Setting the Config Property for a Filter that Implements IXmlConfigurable
23-1 Sample App.config File
23-2 Sample coherence.xml File for .NET
23-3 Sample cache-config.xml File for .NET
23-4 Sample pof-config.xml File for .NET
23-5 Sample Class that Implements IPortableObject
23-6 Adding Listeners
23-7 Adding Events
23-8 Adding Cache Event Handlers
23-9 Adding Helper Methods for Event Handlers
24-1 Sample Web.config Configuration File
24-2 Sample coherence.xml Configuration File
24-3 Sample cache-config.xml Configuration File
24-4 Sample pof-config.xml Configuration File
24-5 Code for the GridView Data Control
24-6 ObjectDataSource Code
24-7 Redirecting a User to an Error Page
24-8 Sample Business Object Definition File
24-9 Providing Data to the Data Bind Control
24-10 Event Handler to Provide Data to the Data Bind Control
24-11 Method to Refresh the Grid View
24-12 Method to Handle Page Load Events
24-13 Retrieving a Business Object from the Cache through a Specified Key
24-14 Event Handler for a "Save" Button
24-15 Event Handler for a :Clear" Button
24-16 Event Handler for a "Search" Button
24-17 Event Handler for a "Clear Filter" Button
26-1 TopLink Essentials-related Classes and Interfaces
26-2 Sample persistence.xml File for TopLink Essentials
26-3 Instantiating the Project and Passing to the SessionManager
26-4 Assigning Named Caches to a TopLink Caching Scheme
27-1 JPA-related Classes and Interfaces
27-2 Sample persistence.xml File for JPA
27-3 Assigning Named Caches to a JPA Caching Scheme
28-1 Specifying a Coherence Provider Class
29-1 Sample coherence-cache-config.xml File for Hibernate
29-2 Sample coherence-cache-config.xml File that Uses {cache-name} Macro
29-3 Sample coherence-cache-config.xml File with Generalized Mappings
A-1 Code for the Console Sample Application
A-2 Header Code for the ContactInfo Sample Application
A-3 C++ Code for the ContactInfo Sample Application
A-4 Header Code for the PortableContactInfo Applications
A-5 C++ Code for the PortableContactInfo Application
A-6 Code for the ContactInfo Data Object
A-7 Code for the HelloGrid Sample Application