This file contains 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 Service { | |
String name; | |
String type; | |
int numInstances; | |
ServiceLifecycle lifecycle; | |
Map<String, Object> customCommands; | |
} |
This file contains 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 parse( | |
String recipeFile, List<String> classpath, | |
Map<String, Object> properties, ServiceContext context) { | |
// add POJO base class, and classpath | |
cc = new CompilerConfiguration(); | |
cc.setScriptBaseClass( BaseDslScript.class.getName() ); | |
cc.setClasspathList(classpath); | |
// inject default imports |
This file contains 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
minAllowedInstances 1 | |
maxAllowedInstances 2 | |
scalingRules ([ scalingRule { | |
serviceStatistics { | |
metric "Total Requests Count" | |
movingTimeRangeInSeconds 20 | |
statistics Statistics.maximumThroughput | |
} |
This file contains 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
install-application c:/cloudify/examples/azure/travel |
This file contains 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
azure:bootstrap-app -azure-pwd 123456 -azure-svc mytraveldemo c:/cloudify/examples/azure/travel |
NewerOlder