16 #ifndef HAZELCAST_CLIENT
17 #define HAZELCAST_CLIENT
19 #include "hazelcast/client/proxy/RingbufferImpl.h"
20 #include "hazelcast/client/IMap.h"
21 #include "hazelcast/client/MultiMap.h"
22 #include "hazelcast/client/IQueue.h"
23 #include "hazelcast/client/ISet.h"
24 #include "hazelcast/client/IList.h"
25 #include "hazelcast/client/ITopic.h"
26 #include "hazelcast/client/TransactionOptions.h"
27 #include "hazelcast/client/TransactionContext.h"
28 #include "hazelcast/client/Cluster.h"
29 #include "hazelcast/client/ClientConfig.h"
30 #include "hazelcast/client/ClientProperties.h"
31 #include "hazelcast/client/spi/InvocationService.h"
32 #include "hazelcast/client/spi/PartitionService.h"
33 #include "hazelcast/client/spi/ServerListenerService.h"
34 #include "hazelcast/client/spi/LifecycleService.h"
35 #include "hazelcast/client/connection/ConnectionManager.h"
36 #include "hazelcast/client/Ringbuffer.h"
37 #include "hazelcast/client/ReliableTopic.h"
39 #if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64)
41 #pragma warning(disable: 4251) //for dll export
404 namespace connection {
405 class ConnectionManager;
408 namespace serialization {
410 class SerializationService;
416 class InvocationService;
418 class ClusterService;
420 class PartitionService;
422 class LifecycleService;
424 class ServerListenerService;
434 class ICountDownLatch;
440 class TransactionContext;
442 class TransactionOptions;
454 friend class spi::ClientContext;
477 T t(name, &(clientContext));
491 template<
typename K,
typename V>
493 return getDistributedObject<IMap<K, V> >(name);
502 template<
typename K,
typename V>
504 return getDistributedObject<MultiMap<K, V> >(name);
515 return getDistributedObject<IQueue<E> >(name);
528 return getDistributedObject<ISet<E> >(name);
540 return getDistributedObject<IList<E> >(name);
551 return getDistributedObject<ITopic<E> >(name);
562 boost::shared_ptr<Ringbuffer<topic::impl::reliable::ReliableTopicMessage> > rb =
563 getRingbuffer<topic::impl::reliable::ReliableTopicMessage>(TOPIC_RB_PREFIX + name);
564 return boost::shared_ptr<ReliableTopic<E> >(
new ReliableTopic<E>(name, &clientContext, rb));
575 IdGenerator getIdGenerator(
const std::string& name);
584 IAtomicLong getIAtomicLong(
const std::string& name);
620 ILock getILock(
const std::string& name);
628 template <
typename E>
630 return boost::shared_ptr<Ringbuffer<E> >(
new proxy::RingbufferImpl<E>(name, &clientContext));
640 ISemaphore getISemaphore(
const std::string& name);
699 spi::ClientContext clientContext;
700 spi::LifecycleService lifecycleService;
701 serialization::pimpl::SerializationService serializationService;
702 connection::ConnectionManager connectionManager;
703 spi::ClusterService clusterService;
704 spi::PartitionService partitionService;
705 spi::InvocationService invocationService;
706 spi::ServerListenerService serverListenerService;
713 const std::string TOPIC_RB_PREFIX;
719 #if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64)
Contains the configuration for a Hazelcast transaction.
Definition: TransactionOptions.h:67
Concurrent, blocking, distributed, observable, client queue.
Definition: IQueue.h:38
ITopic< E > getTopic(const std::string &name)
Returns the distributed topic instance with the specified name and entry type E.
Definition: HazelcastClient.h:550
Cluster-wide unique id generator.
Definition: IdGenerator.h:42
IQueue< E > getQueue(const std::string &name)
Returns the distributed queue instance with the specified name and entry type E.
Definition: HazelcastClient.h:514
IAtomicLong is a distributed atomic long implementation.
Definition: IAtomicLong.h:38
ICountDownLatch is a backed-up distributed alternative to the java.util.concurrent.CountDownLatch java.util.concurrent.CountDownLatch.
Definition: ICountDownLatch.h:62
MultiMap< K, V > getMultiMap(const std::string &name)
Returns the distributed multimap instance with the specified name.
Definition: HazelcastClient.h:503
boost::shared_ptr< ReliableTopic< E > > getReliableTopic(const std::string &name)
Returns the distributed topic instance with the specified name and entry type E.
Definition: HazelcastClient.h:561
IList< E > getList(const std::string &name)
Returns the distributed list instance with the specified name.
Definition: HazelcastClient.h:539
A specialized distributed map client whose keys can be associated with multiple values.
Definition: MultiMap.h:41
Re-entrant Lock, Distributed client implementation of Lock.
Definition: ILock.h:43
Client Properties is an internal class.
Definition: ClientProperties.h:71
Concurrent, distributed , client implementation of std::list.
Definition: IList.h:42
Concurrent, distributed client implementation of std::unordered_set.
Definition: ISet.h:36
Hazelcast provides distribution mechanism for publishing messages that are delivered to multiple subs...
Definition: ITopic.h:41
Hazelcast provides distribution mechanism for publishing messages that are delivered to multiple subs...
Definition: ReliableTopic.h:45
boost::shared_ptr< Ringbuffer< E > > getRingbuffer(const std::string &name)
Returns the distributed Ringbuffer instance with the specified name.
Definition: HazelcastClient.h:629
Hazelcast cluster interface.
Definition: Cluster.h:38
ISet< E > getSet(const std::string &name)
Returns the distributed set instance with the specified name and entry type E.
Definition: HazelcastClient.h:527
Listener object for listening lifecycle events of hazelcast instance.
Definition: LifecycleListener.h:44
IMap< K, V > getMap(const std::string &name)
Definition: HazelcastClient.h:492
Concurrent, distributed, observable and queryable map client.
Definition: IMap.h:58
ISemaphore is a backed-up distributed alternative to the java.util.concurrent.Semaphore.
Definition: ISemaphore.h:57
HazelcastClient configuration class.
Definition: ClientConfig.h:49
Hazelcast Client enables you to do all Hazelcast operations without being a member of the cluster...
Definition: HazelcastClient.h:453
Provides a context to do transactional operations; so beginning/committing transactions, but also retrieving transactional data-structures like the TransactionalMap.
Definition: TransactionContext.h:52
T getDistributedObject(const std::string &name)
Definition: HazelcastClient.h:476