|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@Contract public interface ServiceOrchestrator
The Orchestration Engine (OE) component in a PaaS runtime performs the following functions during deployment of an archive.
| Nested Class Summary | |
|---|---|
static class |
ServiceOrchestrator.ReconfigAction
|
| Method Summary | |
|---|---|
void |
deployApplication(String appName,
ReadableArchive cloudArchive)
Deploys an application archive into the PaaS runtime. |
ServiceDescription |
getServiceDescription(String appName,
String service)
given the application-name and service-name, retrieve the service-description info. |
ServiceMetadata |
getServices(ReadableArchive archive)
Provides the ServiceMetadata associated with an application
archive. |
boolean |
scaleService(String appName,
String svcName,
int scaleCount,
AllocationStrategy allocStrategy)
Scales the size of a Service up or down as per the provided scalingFactor. |
| Method Detail |
|---|
void deployApplication(String appName,
ReadableArchive cloudArchive)
ApplicationLifecycleInterceptor
and hence this can be removed later once we move to the deploy
command fully.
appName - the name of the application as it should be referenced
in the PaaS consolecloudArchive - the application archive
ServiceMetadata getServices(ReadableArchive archive)
throws Exception
ServiceMetadata associated with an application
archive. This is used by GUI and the IDE plugin to get the service
dependencies and default ServiceDescriptions associated
that the OE and SPEs have discovered for the provided application archive.
archive - Application archive
ServiceMetadata of the application discovered
by OE and SPEs.
Exception
boolean scaleService(String appName,
String svcName,
int scaleCount,
AllocationStrategy allocStrategy)
appName - Name of the applicationsvcName - Names of the service to be scaledscaleCount - Number of units of the Service that needs to be scaled.
A positive number for scaling up and a negative number for scaling down.allocStrategy - The allocationStrategy that needs to be utilized
to scale the Service. The allocationStrategy implementation that is
provided could be used to spawn a new instance in a less-loaded/underutilized
machine in the ServerPool. This could be null, if the default
allocation strategy needs to be employed.
ServiceDescription getServiceDescription(String appName,
String service)
appName - application-nameservice - service-name
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||