Flare Test Page
Test page for Flare migration
Heading 1
Heading 2
Heading 3
Heading 4
Heading 5
Text
Formatting
This is emphasized text.
This is bold text.
This is monospaced
text.
This is red text.
This is blue text.
This is green text.
Lists
- Unordered list item
- Unordered list item
- Unordered list item
- Ordered list item
- Ordered list item
- Ordered list item
- Ordered list item
Links
Macros
Description | Macro | Output |
---|---|---|
Latest XAP Release file name | {{%version “build-filename”%}} | gigaspaces-xap-12.2.1-ga-b18100.zip |
Latest XAP Release home dir | {{%version “gshome-directory”%}} | gigaspaces-xap-12.2.1-ga-b18100 |
Latest Default Lookup Group | {{%version “default-lookup-group”%}} | xap-12.2.1 |
Latest XAP Maven | {{%version “maven-version”%}} 12.2.1 | 12.2.1 |
JAR versions
Description | Macro | Output |
---|---|---|
spring | {{%version “spring”%}} | 4.1 |
antlr4-runtime | {{%version “antlr4-runtime”%}} | 4.0 |
mongo-java-driver | {{%version “mongo-java-driver”%}} | 3.2.0 |
mongo-datasource | {{%version “mongo-datasource”%}} | 10.0.0-SNAPSHOT |
openjpa | {{%version “openjpa”%}} | 2.0.1 |
Anchor
Should inherently convert to html links.
Icons
This is an Info icon.
This is an Exclamation icon.
Layouts
Table
Header1 | Header2 | Header3 |
---|---|---|
column1 | column2 | column3 |
column1 | column2 | column3 |
column1 | column2 | column3 |
Tabbed Pane
Contents of the first tab.
Contents of the second tab.
Accordion
private int age;
private String name;
Some Text
More Text
Section with Two Columns
The polling event container is an implementation of the polling consumer pattern which uses the Space to receive events. A polling event operation is mainly used when simulating Queue semantics or when using the master-worker design pattern.
Image Popup - Convert to Thumbnail
Youtube Video
Video links should be hidden.
Panels
Note
This is a note panel
Tip
This is a tip panel
Attention
This is an attention panel
Important
This is an important panel
Refer
This is a refer panel. See also yada yada yada
Links
Testing external link Mule Site to see how this works.
Java Docs
.NET Docs
JIRA
Code Samples
SQL
create table users(
username varchar_ignorecase(50) not null primary key,
password varchar_ignorecase(50) not null,
enabled boolean not null);
create table authorities (
username varchar_ignorecase(50) not null,
authority varchar_ignorecase(50) not null,
constraint fk_authorities_users foreign key(username) references users(username));
create unique index ix_auth_username on authorities (username,authority);
---
Group Authorities (if enabled)
create table groups (
id bigint generated by default as identity(start with 0) primary key,
group_name varchar_ignorecase(50) not null);
create table group_authorities (
group_id bigint not null,
authority varchar(50) not null,
constraint fk_group_authorities_group foreign key(group_id) references groups(id));
create table group_members (
id bigint generated by default as identity(start with 0) primary key,
username varchar(50) not null,
group_id bigint not null,
constraint fk_group_members_group foreign key(group_id) references groups(id));
Java
public void pu() {
Admin admin = new AdminFactory().addGroup("myGroup").createAdmin();
// wait till things get discovered (you can also use specific waitFor)
for (ProcessingUnit processingUnit : admin.getProcessingUnits()) {
System.out.println("Processing Unit: " + processingUnit.getName()
+ " status: " + processingUnit.getStatus());
if (processingUnit.isManaged()) {
System.out.println(" -> Managing GSM: "
+ processingUnit.getManagingGridServiceManager()
.getUid());
} else {
System.out.println(" -> Managing GSM: NA");
}
for (GridServiceManager backupGSM : processingUnit
.getBackupGridServiceManagers()) {
System.out.println(" -> Backup GSM: " + backupGSM.getUid());
}
for (ProcessingUnitInstance processingUnitInstance : processingUnit) {
System.out.println(" ["
+ processingUnitInstance.getClusterInfo()
+ "] on GSC ["
+ processingUnitInstance.getGridServiceContainer()
.getUid() + "]");
if (processingUnitInstance.isEmbeddedSpaces()) {
System.out.println(" -> Embedded Space ["
+ processingUnitInstance.getSpaceInstance()
.getUid() + "]");
}
Map<String, ServiceDetails> services = processingUnitInstance.getServiceDetailsByServiceId();
for (ServiceDetails details : services.values()) {
System.out.println(" -> Service " + details);
}
}
}
}
XML
<os-core:embedded-space id="space" space-name="mySpace">
<os-core:properties>
<props>
<prop key="cluster-config.groups.group.async-replication.repl-chunk-size">1000</prop>
</props>
</os-core:properties>
</os-core:embedded-space>
<os-core:embedded-space id="space" space-name="mySpace">
<os-core:properties>
<props>
<prop key="cluster-config.groups.group.repl-policy.replication-mode">async</prop>
</props>
</os-core:properties>
</os-core:embedded-space>
Bash/Shell
-Dcom.gs.lrmi.filter.factory=com.gigaspaces.lrmi.nio.filters.SSLFilterFactory
-Dcom.gs.lrmi.filter.security.keystore=keystore.ks
-Dcom.gs.lrmi.filter.security.password=password
2018-04-15 09:45:54,832 [main] INFO - Initializing connection to space jini://*/*/space
2018-04-15 09:45:54,872 [main] INFO - Connection to space has been initialized
2018-04-15 09:45:54,902 [main] DEBUG - Creating prepared statement for query: SELECT e.firstName, e.age FROM Person e WHERE e.age = ?
2018-04-15 09:45:55,439 [main] DEBUG - Looking for XAP tables ...
2018-04-15 09:45:55,464 [main] DEBUG - Found registered types in the space [java.lang.Object, Person]
2018-04-15 09:45:55,465 [main] TRACE - Found [2] space types
2018-04-15 09:45:55,465 [main] TRACE - Registering table: Person
2018-04-15 09:45:55,466 [main] DEBUG - Looking for 'Person' table row type
2018-04-15 09:45:55,493 [main] DEBUG - 'Person' table row type is RecordType(JavaType(class java.lang.Integer) age, VARCHAR(65535) firstName, JavaType(class java.util.UUID) id)
2018-04-15 09:45:55,493 [main] DEBUG - 'Person' table routing field is 'id'
2018-04-15 09:45:56,150 [main] DEBUG - Executing XAP query: SELECT * FROM Person WHERE age = ? Projection: [firstName, age] Parameters: [20]
| John | 20 |
| Eric | 20 |
C Sharp (.NET)
void MyEventHandler(object sender, BatchDataEventArgs<Data> e)
{
Data[] batch = e.Data;
// handle event
}
public class SimpleListener
{
...
[DataEventHandler]
public Data ProcessData(Data event)
{
//process Data here and return processed data
}
}