16 #ifndef HAZELCAST_CLIENT
17 #define HAZELCAST_CLIENT
19 #include "hazelcast/client/map/impl/ClientMapProxyFactory.h"
20 #include "hazelcast/client/internal/nearcache/NearCacheManager.h"
21 #include "hazelcast/client/proxy/RingbufferImpl.h"
22 #include "hazelcast/client/IMap.h"
23 #include "hazelcast/client/MultiMap.h"
24 #include "hazelcast/client/IQueue.h"
25 #include "hazelcast/client/ISet.h"
26 #include "hazelcast/client/IList.h"
27 #include "hazelcast/client/ITopic.h"
28 #include "hazelcast/client/TransactionOptions.h"
29 #include "hazelcast/client/TransactionContext.h"
30 #include "hazelcast/client/Cluster.h"
31 #include "hazelcast/client/ClientConfig.h"
32 #include "hazelcast/client/ClientProperties.h"
33 #include "hazelcast/client/spi/InvocationService.h"
34 #include "hazelcast/client/spi/PartitionService.h"
35 #include "hazelcast/client/spi/ServerListenerService.h"
36 #include "hazelcast/client/spi/LifecycleService.h"
37 #include "hazelcast/client/spi/ProxyManager.h"
38 #include "hazelcast/client/connection/ConnectionManager.h"
39 #include "hazelcast/client/Ringbuffer.h"
40 #include "hazelcast/client/ReliableTopic.h"
42 #if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64)
44 #pragma warning(disable: 4251) //for dll export
407 namespace connection {
408 class ConnectionManager;
411 namespace serialization {
413 class SerializationService;
419 class InvocationService;
421 class ClusterService;
423 class PartitionService;
425 class LifecycleService;
427 class ServerListenerService;
429 class ClientProxyFactory;
439 class ICountDownLatch;
445 class TransactionContext;
447 class TransactionOptions;
459 friend class spi::ClientContext;
482 T t(name, &(clientContext));
496 template<
typename K,
typename V>
498 map::impl::ClientMapProxyFactory<K, V> factory(&clientContext);
499 boost::shared_ptr<spi::ClientProxy> proxy =
511 template<
typename K,
typename V>
513 return getDistributedObject<MultiMap<K, V> >(name);
524 return getDistributedObject<IQueue<E> >(name);
537 return getDistributedObject<ISet<E> >(name);
549 return getDistributedObject<IList<E> >(name);
560 return getDistributedObject<ITopic<E> >(name);
571 boost::shared_ptr<Ringbuffer<topic::impl::reliable::ReliableTopicMessage> > rb =
572 getRingbuffer<topic::impl::reliable::ReliableTopicMessage>(TOPIC_RB_PREFIX + name);
573 return boost::shared_ptr<ReliableTopic<E> >(
new ReliableTopic<E>(name, &clientContext, rb));
584 IdGenerator getIdGenerator(
const std::string& name);
593 IAtomicLong getIAtomicLong(
const std::string& name);
629 ILock getILock(
const std::string& name);
637 template <
typename E>
639 return boost::shared_ptr<Ringbuffer<E> >(
new proxy::RingbufferImpl<E>(name, &clientContext));
649 ISemaphore getISemaphore(
const std::string& name);
707 serialization::pimpl::SerializationService &getSerializationService();
709 boost::shared_ptr<spi::ClientProxy> getDistributedObjectForService(
const std::string &serviceName,
710 const std::string &name,
711 spi::ClientProxyFactory &factory);
715 spi::ClientContext clientContext;
716 spi::LifecycleService lifecycleService;
717 serialization::pimpl::SerializationService serializationService;
718 connection::ConnectionManager connectionManager;
720 spi::ClusterService clusterService;
721 spi::PartitionService partitionService;
722 spi::InvocationService invocationService;
723 spi::ServerListenerService serverListenerService;
725 spi::ProxyManager proxyManager;
731 const std::string TOPIC_RB_PREFIX;
737 #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:559
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:523
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:512
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:570
IList< E > getList(const std::string &name)
Returns the distributed list instance with the specified name.
Definition: HazelcastClient.h:548
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:40
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:638
Hazelcast cluster interface.
Definition: Cluster.h:38
NearCacheManager is the contract point to manage all existing NearCache instances.
Definition: NearCacheManager.h:40
ISet< E > getSet(const std::string &name)
Returns the distributed set instance with the specified name and entry type E.
Definition: HazelcastClient.h:536
Listener object for listening lifecycle events of hazelcast instance.
Definition: LifecycleListener.h:44
IMap< K, V > getMap(const std::string &name)
Definition: HazelcastClient.h:497
Concurrent, distributed, observable and queryable map client.
Definition: IMap.h:65
ISemaphore is a backed-up distributed alternative to the java.util.concurrent.Semaphore.
Definition: ISemaphore.h:56
HazelcastClient configuration class.
Definition: ClientConfig.h:51
Hazelcast Client enables you to do all Hazelcast operations without being a member of the cluster...
Definition: HazelcastClient.h:458
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:481