Accordion


Accordion


private int age;
private String name;
 

fdslfsdkfldkfdsf dsfsdf sdfsdfdsf

fdslfsdkfldkfdsf dsfsdf sdfsdfdsf

Accordion 2


private int age;
private String name;

Some Text goes here

Some Text goes here

Complexe Accordion

The following deploys a processing unit jar file named data-processor.jar using the sync_replicated cluster schema with 2 instances (total_members).

gs> deploy -cluster schema=sync_replicated total_members=2 data-processor.jar

The following deploys a processing unit archive called data-processor.jar using deployment properties file called pu.properties.

gs> deploy -properties file://config/pu.properties data-processor.jar

The following deploys a processing unit archive called data-processor.jar direct injecting the properties.

gs> deploy -properties embed://DB_username=postgres;DB_password=pass mirror

Using the following pu configuration:

<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
    <property name="driverClassName" value="org.postgresql.Driver"/>
    <property name="url" value="jdbc:postgresql:presence"/>
    <property name="username" value="${DB_username}"/>
    <property name="password" value="${DB_password}"/>
</bean>

The following deploys a processing unit archive called data-processor.jar using an SLA element read from an external sla.xml file.

gs> deploy -sla file://config/sla.xml data-processor.jar

The following example deploys a partitioned-sync2backup space cluster with the name mySpace for both the processing unit and the Space it contains.

deploy -cluster schema=partitioned-sync2backup total_members=2,1 -override-name mySpace -properties embed://dataGridName=mySpace myPUFolder
Tip

Multiple deployment properties can be injected by having ; between each property - see below example:

>gs deploy -cluster schema=partitioned-sync2backup total_members=10,1
-properties "embed://dataGridName=myIMDG;space-config.proxy.router.active-server-lookup-timeout=5000;space-config.engine.max_threads=256;mypropA=aaa;mypropB=bbb" -override-name myPU /tmp/myPu.jar
Important

Multiple deployment properties can be injected by having ; between each property - see below example:

>gs deploy -cluster schema=partitioned-sync2backup total_members=10,1
-properties "embed://dataGridName=myIMDG;space-config.proxy.router.active-server-lookup-timeout=5000;space-config.engine.max_threads=256;mypropA=aaa;mypropB=bbb" -override-name myPU /tmp/myPu.jar

Accordion with Table

Keyname Required Type Description
type yes string The node type of this node template.
properties no dict The properties of the node template matching its node type properties schema.
instances no dict Instances configuration.
interfaces no interfaces Used for mapping plugins to interfaces operation or for specifying inputs for already mapped node type operations.
relationships no relationships Used for specifying the relationships this node template has with other node templates.

Accordion with Tabs

Keyname Required Type Description
type yes string The node type of this node template.
properties no dict The properties of the node template matching its node type properties schema.
instances no dict Instances configuration.
interfaces no interfaces Used for mapping plugins to interfaces operation or for specifying inputs for already mapped node type operations.
relationships no relationships Used for specifying the relationships this node template has with other node templates.
Note
Note that this example uses the basic authentication configuration but, Shiro has various authenticator types see [realm modules](http://shiro.apache.org/static/1.2.1/apidocs/org/apache/shiro/authc/class-use/AuthenticationException.html)