This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<% | |
var msg="Hi Jaggery"; | |
print(msg); | |
%> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<service name="HelloService"> | |
<description> | |
Simple implementation of a HelloService. | |
</description> | |
<parameter name="ServiceClass"> | |
HelloService | |
</parameter> | |
<operation name="sayHello"> | |
<messagereceiver class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"> | |
</messagereceiver> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class HelloService { | |
public String sayHello(String name) { | |
System.out.println("Hello " + name); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"type" : "postgresql", | |
"provider" : "data", | |
"host" : "stratos.com", | |
"displayName" : "postgresql", | |
"description" : "postgresql Cartridge", | |
"version" : "7", | |
"multiTenant" : "false", | |
"portMapping" : [ | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
postgresql::server::db { 'stratos-postgres-sample': | |
user = 'root', | |
password = postgresql_password('root', 'root'), | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class {'phppgadmin': | |
db_host = 'localhost', | |
db_port = '5432', | |
owned_only = false, | |
extra_login_security = false | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class { 'postgresql::server': | |
ip_mask_deny_postgres_user = '0.0.0.0/32', | |
ip_mask_allow_all_users = '0.0.0.0/0', | |
listen_addresses = '*', | |
manage_firewall = true, | |
postgres_password = 'postgres' | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Multiple Network Interfaces Support in Apache Stratos | |
----------------------------------------------------- | |
Apache Stratos now supports assigning any number of floting IPs to any interface of your cartridge VM instances. This feature is implemented using Jclouds openstack-neutron APIs. Most importantly it is not breaking existing features. You can still use openstack with nova networking environment and stratos will use Jclouds openstack-nova networking APIs to the networking stuffs as previous. If you have openstack with neutron networking environment, you can get benefit from this feature. | |
How do you tell Stratos which openstack networking API to use? | |
--------------------------------------------------------- | |
Which openstack networking API to be used is configurable via cloud-controller xml. | |
```json | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class CartridgeAgentUtils { | |
private static final Log log = LogFactory.getLog(CartridgeAgentUtils.class); | |
public static List<String> splitUsingTokenizer(String string, String delimiter) { | |
StringTokenizer tokenizer = new StringTokenizer(string, delimiter); | |
List<String> list = new ArrayList<String>(string.length()); | |
while (tokenizer.hasMoreTokens()) { | |
list.add(tokenizer.nextToken().trim()); | |
} | |
return list; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<% | |
application.put('account', | |
{ | |
'admin' : { | |
'name':'Rajkumar', | |
'accountNumber':'8008006514', | |
'accountType':'Saving', | |
'balance':'LKR 28,256.00', |