Skip to content
Gigaspaces Logo Gigaspaces Logo
  • Technology
    • Our Technologies
      • In-Memory Data Grid
      • Data Integration
      • Data Operations by Multiple Access Methods
      • Unified Data Model
      • Event-Driven Architecture
      • Kubernetes
      • Multi-Region Replication
      • Security
      • Storage Tiering
    • Data Lakes or Digital Integration Hubs: Which one is better suited to solve the “IT GAP”?
      vid-icon Blog

      Enterprises, more than ever, require modernization of their backend and middleware architecture to improve performance for the digital age, facilitate lower TCO of their infrastructure, and optimize the moving parts of the IT and digital services departments.

      Learn More
    • Contact Us
    • Free Trial
  • Products & Solutions
    • Products
      • Smart DIH
      • Smart Cache
    • Industry Solutions
      • Financial Services
      • Insurance
      • Retail and eCommerce
      • Telecommunications
      • Transportation
    • Performance Benefits of HPE Superdome Flex Server with GigaSpaces
      vid-icon Whitepaper

      Learn about the combination of HPE Superdome Flex server and GigaSpaces in-memory data processing delivers extreme performance; in more than 99% of cases, latency was less than one millisecond for a data query.

      DOWNLOAD
    • Contact Us
    • Free Trial
  • Resources
    • Content Hub
      • Webinars
      • Videos
      • Solution Briefs & Whitepapers
      • Customer Case Studies
      • Use Cases
      • Events
      • Analyst Reports
    • col3
      • Blog
      • Technical Documentation
    • Digital Integration Hub: The Architecture of Digital Transformation
      vid-icon Blog

      Learn how a Digital Integration Hub (DIH) connects to multiple systems of record and data stores regardless of whether they reside and aggregates operational data into a low-latency data fabric, supporting modernization initiatives by offloading from legacy architecture and providing a decoupled API layer to power modern on-line applications.

      LEARN MORE
    • Contact Us
    • Free Trial
  • Company
    • Col1
      • About
      • Customers
      • Management
      • Board Members
      • Investors
      • Events
      • News
      • Careers
    • col2
      • Partners
      • OEM Partners
      • System Integrators
      • Technology Partners
      • Value Added Resellers
    • col3
      • Support & Services
      • University
      • Services
      • Support
    • Getting Digital Transformation Right with Avanza Bank
      webinar-icon On-Demand Webinar

      Watch the webinar for a compelling and insightful talk with Joakim Sahlström, CTO at Avanza Bank, who shares his vision for banks in the digital age and how you can simultenously overcome architectural challenges while successfully leveraging new technologies to develop and deploy innovative digital services.

      WATCH NOW
    • Contact Us
    • Free Trial
  • Free Trial
  • Contact Us
  • Technology
    • Our Technologies
      • In-Memory Data Grid
      • Data Integration
      • Data Operations by Multiple Access Methods
      • Unified Data Model
      • Event-Driven Architecture
      • Kubernetes
      • Multi-Region Replication
      • Security
      • Storage Tiering
    • Data Lakes or Digital Integration Hubs: Which one is better suited to solve the “IT GAP”?
      vid-icon Blog

      Enterprises, more than ever, require modernization of their backend and middleware architecture to improve performance for the digital age, facilitate lower TCO of their infrastructure, and optimize the moving parts of the IT and digital services departments.

      Learn More
    • Contact Us
    • Free Trial
  • Products & Solutions
    • Products
      • Smart DIH
      • Smart Cache
    • Industry Solutions
      • Financial Services
      • Insurance
      • Retail and eCommerce
      • Telecommunications
      • Transportation
    • Performance Benefits of HPE Superdome Flex Server with GigaSpaces
      vid-icon Whitepaper

      Learn about the combination of HPE Superdome Flex server and GigaSpaces in-memory data processing delivers extreme performance; in more than 99% of cases, latency was less than one millisecond for a data query.

      DOWNLOAD
    • Contact Us
    • Free Trial
  • Resources
    • Content Hub
      • Webinars
      • Videos
      • Solution Briefs & Whitepapers
      • Customer Case Studies
      • Use Cases
      • Events
      • Analyst Reports
    • col3
      • Blog
      • Technical Documentation
    • Digital Integration Hub: The Architecture of Digital Transformation
      vid-icon Blog

      Learn how a Digital Integration Hub (DIH) connects to multiple systems of record and data stores regardless of whether they reside and aggregates operational data into a low-latency data fabric, supporting modernization initiatives by offloading from legacy architecture and providing a decoupled API layer to power modern on-line applications.

      LEARN MORE
    • Contact Us
    • Free Trial
  • Company
    • Col1
      • About
      • Customers
      • Management
      • Board Members
      • Investors
      • Events
      • News
      • Careers
    • col2
      • Partners
      • OEM Partners
      • System Integrators
      • Technology Partners
      • Value Added Resellers
    • col3
      • Support & Services
      • University
      • Services
      • Support
    • Getting Digital Transformation Right with Avanza Bank
      webinar-icon On-Demand Webinar

      Watch the webinar for a compelling and insightful talk with Joakim Sahlström, CTO at Avanza Bank, who shares his vision for banks in the digital age and how you can simultenously overcome architectural challenges while successfully leveraging new technologies to develop and deploy innovative digital services.

      WATCH NOW
    • Contact Us
    • Free Trial
  • Free Trial
  • Contact Us
  • Technology
    • In-Memory Data Grid
    • Data Integration
    • Event-Driven Architecture
    • Kubernetes
    • Data Operations by Multiple Access Methods
    • Multi-Region Replication
    • Security
    • Storage Tiering
    • Unified Data Model
  • Products & Solutions
    • Products
      • Smart DIH
      • Smart Cache
    • Solutions
      • Industry
        • Financial Services
        • Insurance
        • Retail and eCommerce
        • Telecommunications
        • Transportations
    • Roles
      • Architects
      • CXOs
      • Product Teams
    • Contact Us
    • Try Free
  • Resources
    • Resource Hub
      • Webinars
      • Demos
      • Solution Briefs & Whitepapers
      • Customer Case Studies
      • Benchmarks
      • Cost Reduction Calculators
      • Analyst Reports
    • Blog
    • Technical Documentation
    • Contact Us
    • Try Free
  • Company
    • About
    • Management
    • Customers
    • Board Members
    • Investors
    • Events
    • News
    • Careers
    • Partners
      • OEM Partners
      • System Integrators
      • Technology Partners
      • Value Added Resellers
    • Support & Services
      • University
      • Services
      • Support
  • Contact Us
  • Try Free

HelloWorld — a bonus readme

Subscribe to our blog!

Subscribe for Updates
Close
Back

HelloWorld — a bonus readme

6min. read
Owen November 4, 2008

When you download the GigaSpacesXAP product (currently at version 6.6.1) you get a few really nice examples.

With those examples come some very detailed instructions and explanations as to how to use GigaSpaces. These instructions are found in the “docs” subfolder under the example root and are written in rich HTML with beautiful screenshots and graphics to help guide the reader.

Example:

GS_HOME/examples/helloworld/docs

Despite the existence of these terrific resources, for some people who are new to the GigaSpaces experience, it might be helpful to have a set of instructions in the traditional readme.txt file. ( I can be so old fashioned sometimes…)

I created the following in the hopes that it will prove useful and speed up the adoption of this wonderful application platform known as GigaSpacesXAP.

Here goes…
(Imagine this readme is located in the root of the helloworld example like this:

GS_HOME/examples/helloworld/readme )

The Owen Taylor supplementary HelloWorld README for the GigaSpacesXAP6.6.1 helloworld example:

 


Hello and welcome to Space-based Computing!
This example shows the basic interaction between a processing unit (where objects are processed) and a simple client that feeds the processing unit with objects to be processed.
There are two ways to run this example: (provided as scripts in this directory)
The first way is simplest and shows the processing unit running in one process and the Feed running in another. Neither of the processes are managed and no clustering technology is employed to provide fail-over or scaling.
To try out the example in this simple way read and follow the first set of instructions below.
[To try out the more complex topology, read and follow the second set of instructions below.]
_______________________________________
FIRST SET OF INSTRUCTIONS::
_______________________________________
This example does the following:
1) starts the processing unit containing the processor and a space
[this is where the work of processing information goes on]
2) Starts the client-side Feeder
[this populates the system with 1000 objects to be processed]
Instructions:
1) Ensure you have GigaSpacesXAP6.6 or higher
2) Ensure you have JDK1.5
3) Navigate to the directory containing this example readme file
Execute the following
> build.sh dist
It will:
a) Build the application and create the jar file versions of the deployment units
Next Execute:
> ../../bin/puInstance.sh ./processor/pu/hello-processor.jar
This will:
b) Start the space-side system which includes a processor and a space
Edit the build.xml file so that this line:
<target name=”run-feeder” depends=”dist”>
Is changed to equal this:
<target name=”run-feeder” depends=””>
Next Execute:
> build.sh run-feeder
This will:
c) Start the client-side Feeder which populates the system with 1000 objects
If you want to use a GUI to examine what is running, execute:
>../../bin/gs-ui.sh
If you want to feed more information into the system,
you can execute the
> build.sh run-feeder
more than once.
Note: If you wish to open the three Eclipse projects that make up the source for
this example in Eclipse, be aware that they use a variable GS_HOME that must be
configured in your Eclipse workspace. It should point to the install
directory/folder of GigaSpacesXAP6.6.1
_______________________________________
SECOND SET OF INSTRUCTIONS::
_______________________________________
This example does the following:
1) Starts the GigaSpacesXAP runtime environment (Service Grid)
2) Deploys the space-side system as a “cluster” which is split into 4 processing units:
2 partitions
(which divide the total work up between them)
2 dedicated backups
(one for each active partition)
3) Starts the client-side Feeder
[this populates the entire system with 1000 objects to be processed]
Instructions:
1) Ensure you have GigaSpacesXAP6.6 or higher
2) Ensure you have JDK1.5
3) Navigate to the directory containing this example readme file
Execute the following:
> build.sh dist
It will:
a) Build the application and create the jar file versions of the deployment units
Next Execute: (add piping to a log file if you like)
> ../../bin/gsc.sh &
> ../../bin/gsc.sh &
> ../../bin/gsm.sh &
This will:
b) Start the service grid which is the Gigaspaces application server runtime environment
Next Execute:
> ../../bin/gs-ui.sh &
This will:
c) Start the gs-ui so you can see when the service grid is started
(Switch to the middle tab on the left-hand side of the GUI called “Deployments,Details” and you should see two boxes in the bottom left of the screen. Those are your empty GSC runtime containers.)
Edit the build.xml file so that this section:
<macrodef name=”deploy”>
<attribute name=”name”/>
<sequential>
<java classname=”org.openspaces.pu.container.servicegrid.deploy.Deploy” fork=”false”>
<classpath refid=”all-libs”/>
<arg value=”-groups”/>
<arg value=”${groups}”/>
<arg value=”-timeout”/>
<arg value=”15000″/>
<arg value=”@{name}”/>
</java>
</sequential>
</macrodef>
Is changed to equal this:
<macrodef name=”deploy”>
<attribute name=”name”/>
<sequential>
<java classname=”org.openspaces.pu.container.servicegrid.deploy.Deploy” fork=”false”>
<classpath refid=”all-libs”/>
<arg value=”-groups”/>
<arg value=”${groups}”/>
<arg value=”-timeout”/>
<arg value=”90000″/>
<arg value=”-locators”/>
<arg value=”localhost”/> <!– assumes GSM is on same host as you–>
<arg value=”-cluster”/>
<arg value=”schema=partitioned-sync2backup”/>
<arg value=”total_members=2,1″/>
<arg value=”@{name}”/>
</java>
</sequential>
</macrodef>
This edit changes the topology of the application being deployed so that there will be 2 primary active instances and 2 backup instances deployed into the service grid.
Next Execute:
> build.sh deploy-processor
This will deploy the newly re-defined 2 primary spaces and accompanying workers and their backup service instances into the service grid (you will see them appear in the gs-ui GUI)
Wait for all the nodes to appear. (There should be 2 nodes with a ‘p’ for primary and 2 nodes with a ‘b’ for backup)
This can take a while… (up to 2 minutes the first time depending on the machine and network)
Next Execute:
> build.sh run-feeder
This will:
c) Start the client-side Feeder which populates the system with 1000 objects
If you want to feed more information into the system,
you can execute the
> build.sh run-feeder
more than once.
Note: If you wish to open the three Eclipse projects that make up the source for
this example in Eclipse, be aware that they use a variable GS_HOME that must be
configured in your Eclipse workspace. It should point to the install
directory/folder of GigaSpacesXAP6.6.1
HTH
Owen.

SHARE:

Share this Article

Tags:

Hybrid Cloud Cloud Machine Learning Cloud Services Business Continuity financial services

Subscribe to Our Blog



PRODUCTS & SOLUTIONS

  • Products
    • Smart DIH
    • Smart Cache
  • Solutions
  • Industry
    • Financial Services
    • Digital Banks
    • Insurance
    • Retail and eCommerce
    • Telecommunications
    • Transportation
  • Technical
    • Operational BI
    • Mainframe & AS/400 Modernization
    • In Memory Data Grid
    • Hybrid Cloud Data Fabric
    • Multi-Tiered Storage
    • Kubernetes Deployment
    • Streaming Analytics for Stateful Apps

RESOURCES

  • Resource Hub
  • Webinars
  • Blogs
  • Demos
  • Solution Briefs & Whitepapers
  • Customer Case Studies
  • Use Cases
  • Benchmarks
  • Analyst Reports
  • Technical Documentation

COMPANY

  • About
  • Customers
  • Management
  • Board Members
  • Investors
  • News
  • Events
  • Careers
  • Contact Us
  • Book A Demo
  • Try GigaSpaces For Free
  • Partners
  • OEM Partners
  • System Integrators
  • Value Added Resellers
  • Technology Partners
  • Support & Services
  • University
  • Services
  • Support
Copyright © GigaSpaces 2021 All rights reserved | Privacy Policy
LinkedIn