Skip to content

Commit

Permalink
unlink with Preloader
Browse files Browse the repository at this point in the history
  • Loading branch information
Li Wang committed Jun 11, 2015
1 parent bbdcfc0 commit a66f440
Show file tree
Hide file tree
Showing 6 changed files with 120 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DeleteRecords/.classpath
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry combineaccessrules="false" kind="src" path="/PreLoader"/>
<classpathentry kind="src" path="src/main/resources"/>
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<attributes>
<attribute name="maven.pomderived" value="true"/>
Expand Down
37 changes: 37 additions & 0 deletions DeleteRecords/src/main/java/io/pivotal/domain/Customer.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
package io.pivotal.domain;

public class Customer {

private Integer customerNumber;
private String firstName;
private String lastName;

public Customer() {
}

public Customer(int customerNumber, String firstName, String lastName) {
super();
this.customerNumber = new Integer(customerNumber);
this.firstName = firstName;
this.lastName = lastName;
}

public Integer getCustomerNumber() {
return customerNumber;
}

public String getFirstName() {
return firstName;
}

public String getLastName() {
return lastName;
}

@Override
public String toString() {
return "Customer [customerNumber=" + customerNumber + ", firstName="
+ firstName + ", lastName=" + lastName + "]";
}

}
22 changes: 22 additions & 0 deletions DeleteRecords/src/main/resources/config/cache.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0"?>
<!DOCTYPE cache PUBLIC
"-//GemStone Systems, Inc.//GemFire Declarative Caching 8.0//EN"
"http://www.gemstone.com/dtd/cache8_0.dtd">

<cache>

<pdx read-serialized="true">
<pdx-serializer>
<class-name>com.gemstone.gemfire.pdx.ReflectionBasedAutoSerializer</class-name>
<parameter name="classes">
<string>io.pivotal.domain.*</string>
</parameter>
</pdx-serializer>
</pdx>

<region name="Customer">
<region-attributes refid="REPLICATE" />
</region>

</cache>

2 changes: 1 addition & 1 deletion QueryRegion/.classpath
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" path="src/main/resources"/>
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry combineaccessrules="false" kind="src" path="/PreLoader"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7">
<attributes>
<attribute name="maven.pomderived" value="true"/>
Expand Down
37 changes: 37 additions & 0 deletions QueryRegion/src/main/java/io/pivotal/domain/Customer.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
package io.pivotal.domain;

public class Customer {

private Integer customerNumber;
private String firstName;
private String lastName;

public Customer() {
}

public Customer(int customerNumber, String firstName, String lastName) {
super();
this.customerNumber = new Integer(customerNumber);
this.firstName = firstName;
this.lastName = lastName;
}

public Integer getCustomerNumber() {
return customerNumber;
}

public String getFirstName() {
return firstName;
}

public String getLastName() {
return lastName;
}

@Override
public String toString() {
return "Customer [customerNumber=" + customerNumber + ", firstName="
+ firstName + ", lastName=" + lastName + "]";
}

}
22 changes: 22 additions & 0 deletions QueryRegion/src/main/resources/config/cache.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0"?>
<!DOCTYPE cache PUBLIC
"-//GemStone Systems, Inc.//GemFire Declarative Caching 8.0//EN"
"http://www.gemstone.com/dtd/cache8_0.dtd">

<cache>

<pdx read-serialized="true">
<pdx-serializer>
<class-name>com.gemstone.gemfire.pdx.ReflectionBasedAutoSerializer</class-name>
<parameter name="classes">
<string>io.pivotal.domain.*</string>
</parameter>
</pdx-serializer>
</pdx>

<region name="Customer">
<region-attributes refid="REPLICATE" />
</region>

</cache>

0 comments on commit a66f440

Please sign in to comment.