Hazelcast文档

Hazelcast is a clustering and highly scalable data distribution platform for Java. Hazelcast helps architects and developers to easily design and develop faster, highly scalable and reliable applications for their businesses.

Hazelcast 2.0

Document Link:http://www.hazelcast.com/docs/2.0/manual/single_html/

API Overview: http://www.hazelcast.com/javadoc/overview-summary.html

Code Examples: http://code.google.com/p/hazelcast/source/browse/trunk/hazelcast/src/main/java/com/hazelcast/examples/

1. Introduction
2. Distributed Data Structures
2.1. Distributed Queue
2.2. Distributed Topic
2.3. Distributed Map
2.3.1. Backups
2.3.2. Eviction
2.3.3. Persistence
2.3.4. Query
2.3.5. Near Cache
2.3.6. Entry Statistics
2.4. Distributed MultiMap
2.5. Distributed Set
2.6. Distributed List
2.7. Distributed Lock
2.8. Distributed Events   
3. Elastic Memory (Enterprise Edition Only)
4. Security (Enterprise Edition Only)
4.1. Credentials
4.2. ClusterLoginModule
4.3. Cluster Member Security
4.4. Native Client Security
4.4.1. Authentication
4.4.2. Authorization
4.4.3. Permissions
5. Data Affinity
6. Monitoring with JMX
7. Cluster Utilities
7.1. Cluster Interface
7.2. Cluster-wide Id Generator
7.3. Super Client
8. Transactions
8.1. Transaction Interface
8.2. J2EE Integration
8.2.1. Resource Adapter Configuration
8.2.2. Sample Glassfish v3 Web Application Configuration
8.2.3. Sample JBoss Web Application Configuration
9. Distributed Executor Service (已读到此位置)
9.1. Distributed Execution
9.2. Execution Cancellation
9.3. Execution Callback
10. Http Session Clustering with HazelcastWM
11. WAN Replication
12. Encryption
13. Configuration
13.1. Configuring Hazelcast for full TCP/IP cluster
13.2. Configuring Hazelcast for EC2 Auto Discovery
13.3. Creating Separate Clusters
13.4. Specifying network interfaces
13.5. Network Partitioning (Split-Brain Syndrome)
13.6. Wildcard Configuration
13.7. Advanced Configuration Properties
13.8. Logging Configuration
14. Hibernate Second Level Cache
15. Spring Integration
16. Clients
16.1. Native Client
16.1.1. Java Client
16.1.2. CSharp Client
16.2. Memcache Client
16.3. Rest Client
17. Internals
17.1. Internals 1: Threads
17.2. Internals 2: Serialization
17.3. Internals 3: Cluster Membership
17.4. Internals 4: Distributed Map
18. Miscellaneous
18.1. Common Gotchas
18.2. Testing Cluster
18.3. Planned Features
18.4. Release Notes

List of Tables

13.1.  Properties Table
附:Scala代码示例(Pub/Sub 和 事件监听):

import com.hazelcast.core.ITopic
import com.hazelcast.core.Hazelcast
import com.hazelcast.core.MessageListener
import com.hazelcast.core.InstanceListener
import com.hazelcast.core.InstanceEvent

class SampleMessage extends MessageListener[String] {

  def onMessage(msg: String): Unit = {
    System.out.println("Message received = " + msg)
  }
  
}


class SampleInstance extends InstanceListener {
  
  def instanceCreated(event: InstanceEvent): Unit = {
    val instance = event.getInstance()
    System.out.println("Created " + instance.getInstanceType() + "," + instance.getId())
  }
  
  def instanceDestroyed(event: InstanceEvent): Unit = {
    val instance = event.getInstance()
    System.out.println("Destroyed " + instance.getInstanceType() + "," + instance.getId())
  }
  
}

object Sample {
  
  def main(args : Array[String]) : Unit = {
    
    import scala.collection.JavaConversions._
    
    // test case for MessageListener
    
    val sampleMessage = new SampleMessage()
    val topic = Hazelcast.getTopic[String]("default")
    topic.addMessageListener(sampleMessage)
    topic.publish ("my-message-object")
    
    // test case for InstanceListener
    val sampleInstance = new SampleInstance()
    Hazelcast.addInstanceListener(sampleInstance)
    val instances = Hazelcast.getInstances().toList
    System.out.println("The length of instances is: " + instances.length)
    instances.foreach(instance => {
      System.out.println(instance.getInstanceType() + "," + instance.getId())
    })
  }
}

你可能感兴趣的:(serialization,Security,encryption,authorization,transactions,credentials)