|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.hazelcast.client.HazelcastClient
public class HazelcastClient
Hazelcast Client enables you to do all Hazelcast operations without being a member of the cluster. It connects to one of the cluster members and delegates all cluster wide operations to it. When the connected cluster member dies, client will automatically switch to another live member.
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public InRunnable getInRunnable()
public OutRunnable getOutRunnable()
public static HazelcastClient newHazelcastClient(String groupName,
String groupPassword,
String... addresses)
groupName - Group name of a cluster that client will connectgroupPassword - Group Password of a cluster that client will connect.addresses - Addresses of Cluster Members that client will choose one to connect. If the connected member
dies client will switch to the next one in the list.
An address is in the form ip:port. If you will not specify the port, it will assume the default one, 5701.
ex: "10.90.0.1", "10.90.0.2:5702"
public static HazelcastClient newHazelcastClient(ClientProperties properties,
String... addresses)
properties - Client Propertiesaddresses - Addresses of Cluster Members that client will choose one to connect. If the connected member
dies client will switch to the next one in the list.
An address is in the form ip:port. If you will not specify the port, it will assume the default one, 5701.
ex: "10.90.0.1", "10.90.0.2:5702"
public static HazelcastClient newHazelcastClient(ClientProperties properties,
List<String> addresses)
properties - Client Propertiesaddresses - List of addresses of Cluster Members that client will choose one to connect. If the connected member
dies client will switch to the next one in the list.
An address is in the form ip:port. If you will not specify the port, it will assume the default one, 5701.
ex: "10.90.0.1", "10.90.0.2:5702"
public static HazelcastClient newHazelcastClient(String groupName,
String groupPassword,
boolean shuffle,
String... addresses)
groupName - Group name of a cluster that client will connectgroupPassword - Group Password of a cluster that client will connect.shuffle - Specifies whether to shuffle the list of addressesaddresses - Addresses of Cluster Members that client will choose one to connect. If the connected member
dies client will switch to the next one in the list.
An address is in the form ip:port. If you will not specify the port, it will assume the default one, 5701.
ex: "10.90.0.1", "10.90.0.2:5702"
public static HazelcastClient newHazelcastClient(ClientProperties properties,
boolean shuffle,
String... addresses)
properties - Client Propertiesshuffle - Specifies whether to shuffle the list of addressesaddresses - Addresses of Cluster Members that client will choose one to connect. If the connected member
dies client will switch to the next one in the list.
An address is in the form ip:port. If you will not specify the port, it will assume the default one, 5701.
ex: "10.90.0.1", "10.90.0.2:5702"
public static HazelcastClient newHazelcastClient(String groupName,
String groupPassword,
boolean shuffle,
InetSocketAddress... addresses)
groupName - Group name of a cluster that client will connectgroupPassword - Group Password of a cluster that client will connect.shuffle - Specifies whether to shuffle the list of addressesaddresses - InetSocketAddress of Cluster Members that client will choose one to connect. If the connected member
dies client will switch to the next one in the list.
public static HazelcastClient newHazelcastClient(ClientProperties clientProperties,
boolean shuffle,
InetSocketAddress... addresses)
clientProperties - Client Propertiesshuffle - Specifies whether to shuffle the list of addressesaddresses - InetSocketAddress of Cluster Members that client will choose one to connect. If the connected member
dies client will switch to the next one in the list.
public static HazelcastClient newHazelcastClient(String groupName,
String groupPassword,
String address)
groupName - Group name of a cluster that client will connectgroupPassword - Group Password of a cluster that client will connect.address - Address of one of the members
public static HazelcastClient newHazelcastClient(ClientProperties clientProperties,
String address)
clientProperties - Client Propertiesaddress - Address of one of the members
public Config getConfig()
getConfig in interface HazelcastInstancepublic PartitionService getPartitionService()
getPartitionService in interface HazelcastInstancepublic LoggingService getLoggingService()
getLoggingService in interface HazelcastInstancepublic <K,V> IMap<K,V> getMap(String name)
getMap in interface HazelcastInstancepublic <K,V,E> Object getClientProxy(Object o)
public Transaction getTransaction()
getTransaction in interface HazelcastInstancepublic ConnectionManager getConnectionManager()
public void addInstanceListener(InstanceListener instanceListener)
addInstanceListener in interface HazelcastInstancepublic Cluster getCluster()
getCluster in interface HazelcastInstancepublic ClientProperties getProperties()
public ExecutorService getExecutorService()
getExecutorService in interface HazelcastInstancepublic ExecutorService getExecutorService(String name)
getExecutorService in interface HazelcastInstancepublic IdGenerator getIdGenerator(String name)
getIdGenerator in interface HazelcastInstancepublic AtomicNumber getAtomicNumber(String name)
getAtomicNumber in interface HazelcastInstancepublic ICountDownLatch getCountDownLatch(String name)
getCountDownLatch in interface HazelcastInstancepublic ISemaphore getSemaphore(String name)
getSemaphore in interface HazelcastInstancepublic Collection<Instance> getInstances()
getInstances in interface HazelcastInstancepublic <E> IList<E> getList(String name)
getList in interface HazelcastInstancepublic ILock getLock(Object obj)
getLock in interface HazelcastInstancepublic <K,V> MultiMap<K,V> getMultiMap(String name)
getMultiMap in interface HazelcastInstancepublic String getName()
getName in interface HazelcastInstancepublic <E> IQueue<E> getQueue(String name)
getQueue in interface HazelcastInstancepublic <E> ISet<E> getSet(String name)
getSet in interface HazelcastInstancepublic <E> ITopic<E> getTopic(String name)
getTopic in interface HazelcastInstancepublic void removeInstanceListener(InstanceListener instanceListener)
removeInstanceListener in interface HazelcastInstancepublic void shutdown()
shutdown in interface HazelcastInstancepublic boolean isActive()
protected void destroy(String proxyName)
public void restart()
restart in interface HazelcastInstancepublic LifecycleService getLifecycleService()
getLifecycleService in interface HazelcastInstance
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||