geode

Spring Data Gemfire locator

℡╲_俬逩灬. 提交于 2019-12-24 03:07:35
问题 I'm trying to set up a Gemfire cluster using Spring Data Gemfire. I can start a locator via gfsh and I can start a server via Spring. The problem is, I can't find a way to start a locator via Spring. 回答1: Probably the simplest, easiest way is to start an "embedded" Locator in a Server. I use this technique quite frequently when testing or starting a standalone cluster with 1 or more Spring-configured GemFire Servers. The configuration looks like the following... <util:properties id=

c# winform delegates for n subforms

北城以北 提交于 2019-12-14 00:07:09
问题 I have a C# main form that opens up C# sub forms in separate tabs. Each tab is simply an instance of the same sub form so the tab code is like: SubForm sf = new SubForm(); TabPage tp = new TabPage(); tp.Controls.Add(sf); tabControl.TabPages.Add(tp); There can be n tabs and subforms. Then each new subform instance has a delegate to handle external event updates, like so: public partial class SubForm : Form { ... form setup ... internal void DoStuff(value v) { if (InvokeRequired) { // Generic

Spring Data GemFire: CustomExpiry Examples

自作多情 提交于 2019-12-13 04:43:05
问题 I am using Pivotal GemFire 9.1.1 and Spring Data GemFire 2.0.7.RELEASE. I have a token that will be stored in a GemFire Region with a String Key and a Map<String,String> Value. The expiration of the token (i.e. entry in the GemFire Region) should be dynamic dependent on a few business scenarios. I could find Pivotal GemFire documentation for CustomExpiry whereas I could not find any proper example/documentation on Spring Data GemFire ( <gfe:custom-entry-ttl> ). Please share if there is a

If gemfire.properties is specified then Geode locator fails to start

纵饮孤独 提交于 2019-12-12 05:33:28
问题 I am working through the SSL example which means starting the locator using the properties files instead of default. So it's start locator --name=IsLocator --properties-file=..\config\gemfire.properties --security-properties-file=..\config\gfsecurity.properties Then whether the SSL is set in the properties files or not, this causes the locator process to terminate with an error The Locator process terminated unexpectedly with exit status 1. Please refer to the log file in D:\Geode\bin

How can I make the “CacheListenerAdapter” work in ASP.NET?

心不动则不痛 提交于 2019-12-11 17:24:42
问题 I have set up apache geode and I am using Pivotal.Gemfire.dll to set up the cache listener by extending CacheListenerAdapter . Problem is, the below never fires when listening to the region with the correct key: public override void AfterCreate(EntryEvent<TKey, TVal> ev) { //code } This does, however, work in a desktop application (Console.app/WinForms) but not in web application (MVC/WebForms) If someone could help me or point me to the correct documentation page, I would really appreciate,

registering PDX type in type registry with Geode C# native client

一个人想着一个人 提交于 2019-12-11 15:08:37
问题 I am trying to implement a very simple PDX autoserialization in Geode. I've created a domain class of my own with a zero arg constructor: public class TestPdx { public string Test1 { get; set; } public string Test2 { get; set; } public string Test3 { get; set; } public TestPdx() { } } Now I want this class to auto serialize. I start a server cache with the following cache.xml where I attempt to register this type for auto PDX: <?xml version="1.0" encoding="UTF-8"?> <cache xmlns:xsi="http:/

Apache calcite geode JDBC adapte not working with Gemfire 8.x and 9.X

≯℡__Kan透↙ 提交于 2019-12-11 14:49:42
问题 I am trying to connect Gemfire 8.2 using apache calcite geode adopter. As per following logs its connectied properly but while try to execute query getting exception . Note : http://calcite.apache.org/news/2018/03/19/release-1.16.0/ Moreover, a new adapter to read data from Apache Geode was added in this release. In addition, more progress has been made for the existing adapters 1) Connection class package com.khan.vaquar; import java.sql.Connection; import java.sql.DriverManager; import java

minimal test with apache geode

风流意气都作罢 提交于 2019-12-11 09:41:59
问题 I would like to extend geode with custom binary data (serialization). Is there any documentation about how to kickoff a minimal setup/system using geode? I saw a docker image but didn't find any docs on this. It would be more than enough for me to have a c++ client which can push and query the stored (~30 GB of) data by a key. Thank you very much for your help! 回答1: Checkout... https://cwiki.apache.org/confluence/display/GEODE/Index#Index-Geodein5minutes There is more information on the Geode

Docker Geode remote locator

杀马特。学长 韩版系。学妹 提交于 2019-12-11 08:38:18
问题 I have 2 hosts on which I am running Docker, I have successfully started a Geode Locator and Server on my first host. However, when I try to start a new Geode locator on the 2nd server: start server --name=aloha --locators=myCache[10334] I get the following error: [info 2017/11/18 10:44:17.228 UTC aloha <main> tid=0x1] Starting membership services [info 2017/11/18 10:44:17.304 UTC aloha <main> tid=0x1] JGroups channel created (took 76ms) [info 2017/11/18 10:44:17.317 UTC aloha <main> tid=0x1]

Configuring and Using Geode Regions and Locks for Atomic Data Structures

Deadly 提交于 2019-12-11 03:06:22
问题 I am currently using Spring Boot Starter 1.4.2.RELEASE, and Geode Core 1.0.0-incubating via Maven, against a local Docker configuration consisting of a Geode Locator, and 2 cache nodes. I've consulted the documentation here: http://geode.apache.org/docs/guide/developing/distributed_regions/locking_in_global_regions.html I have configured a cache.xml file for use with my application like so: <?xml version="1.0" encoding="UTF-8"?> <client-cache xmlns="http://geode.apache.org/schema/cache" xmlns