Package org.infinispan.query.remote

Examples of org.infinispan.query.remote.ProtobufMetadataManagerMBean


                                                + ObjectName.quote("DefaultCacheManager")
                                                + ",component=" + ProtobufMetadataManager.OBJECT_NAME);

      byte[] descriptor = readClasspathResource("/bank.protobin");
      MBeanServer mBeanServer = PerThreadMBeanServerLookup.getThreadMBeanServer();
      ProtobufMetadataManagerMBean protobufMetadataManagerMBean = JMX.newMBeanProxy(mBeanServer, objName, ProtobufMetadataManagerMBean.class);
      protobufMetadataManagerMBean.registerProtofile(descriptor);

      //initialize client-side serialization context
      MarshallerRegistration.registerMarshallers(ProtoStreamMarshaller.getSerializationContext(remoteCacheManager));
      server = PerThreadMBeanServerLookup.getThreadMBeanServer();
View Full Code Here


                                                + ObjectName.quote("DefaultCacheManager")
                                                + ",component=" + ProtobufMetadataManager.OBJECT_NAME);

      byte[] descriptor = readClasspathResource("/sample_bank_account/bank.protobin");
      MBeanServer mBeanServer = PerThreadMBeanServerLookup.getThreadMBeanServer();
      ProtobufMetadataManagerMBean protobufMetadataManagerMBean = JMX.newMBeanProxy(mBeanServer, objName, ProtobufMetadataManagerMBean.class);
      protobufMetadataManagerMBean.registerProtofile(descriptor);

      //initialize client-side serialization context
      MarshallerRegistration.registerMarshallers(ProtoStreamMarshaller.getSerializationContext(remoteCacheManager));
      server = PerThreadMBeanServerLookup.getThreadMBeanServer();
View Full Code Here

      ObjectName objName = new ObjectName(JMX_DOMAIN + ":type=RemoteQuery,name="
                                                + ObjectName.quote("DefaultCacheManager")
                                                + ",component=" + ProtobufMetadataManager.OBJECT_NAME);

      MBeanServer mBeanServer = PerThreadMBeanServerLookup.getThreadMBeanServer();
      ProtobufMetadataManagerMBean protobufMetadataManagerMBean = JMX.newMBeanProxy(mBeanServer, objName, ProtobufMetadataManagerMBean.class);
      protobufMetadataManagerMBean.registerProtofiles(
              new String[]{"bank.proto","indexing.proto","descriptor.proto"},
              new String[]{
                      read("/sample_bank_account/bank.proto"),
                      read("/infinispan/indexing.proto"),
                      read("/google/protobuf/descriptor.proto")
View Full Code Here

      remoteCache = remoteCacheManager.getCache(TEST_CACHE_NAME);

      mBeanServer = PerThreadMBeanServerLookup.getThreadMBeanServer();

      ProtobufMetadataManagerMBean protobufMetadataManagerMBean = JMX.newMBeanProxy(mBeanServer, getProtobufMetadataManagerObjectName(), ProtobufMetadataManagerMBean.class);
      protobufMetadataManagerMBean.registerProtofiles(
            new String[]{"bank.proto", "indexing.proto", "descriptor.proto"},
            new String[]{
                  read("/sample_bank_account/bank.proto"),
                  read("/infinispan/indexing.proto"),
                  read("/google/protobuf/descriptor.proto")
View Full Code Here

      remoteCache = remoteCacheManager.getCache(TEST_CACHE_NAME);

      mBeanServer = PerThreadMBeanServerLookup.getThreadMBeanServer();

      ProtobufMetadataManagerMBean protobufMetadataManagerMBean = JMX.newMBeanProxy(mBeanServer, getProtobufMetadataManagerObjectName(), ProtobufMetadataManagerMBean.class);
      protobufMetadataManagerMBean.registerProtofiles(
            new String[]{"sample_bank_account/bank.proto", "infinispan/indexing.proto", "google/protobuf/descriptor.proto"},
            new String[]{
                  read("/sample_bank_account/bank.proto"),
                  read("/infinispan/indexing.proto"),
                  read("/google/protobuf/descriptor.proto")
View Full Code Here

TOP

Related Classes of org.infinispan.query.remote.ProtobufMetadataManagerMBean

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.