@NoImplement public class DefaultToolingService extends Object implements ToolingService
ToolingService.| Modifier and Type | Class and Description |
|---|---|
static class |
DefaultToolingService.DomainMavenReactorResolver |
| Modifier and Type | Field and Description |
|---|---|
protected org.slf4j.Logger |
logger |
DEPLOYMENT_DOMAIN_NAME_REF| Constructor and Description |
|---|
DefaultToolingService(org.mule.runtime.module.deployment.impl.internal.domain.DomainRepository domainRepository,
org.mule.runtime.module.deployment.impl.internal.domain.DefaultDomainFactory domainFactory,
org.mule.runtime.module.deployment.impl.internal.application.DefaultApplicationFactory applicationFactory,
org.mule.runtime.module.deployment.impl.internal.artifact.AbstractDeployableDescriptorFactory<org.mule.runtime.api.deployment.meta.MuleApplicationModel,org.mule.runtime.deployment.model.api.application.ApplicationDescriptor> applicationDescriptorFactory) |
| Modifier and Type | Method and Description |
|---|---|
org.mule.runtime.deployment.model.api.application.Application |
createApplication(byte[] appContent)
Creates an application but from the content byte[], see
ToolingService.createApplication(File) for more details. |
org.mule.runtime.deployment.model.api.application.Application |
createApplication(byte[] appContent,
Optional<Properties> deploymentProperties)
Creates an application but from the content byte[], see
ToolingService.createApplication(File, Optional) for more details. |
org.mule.runtime.deployment.model.api.application.Application |
createApplication(File applicationLocation)
Creates an
Application from a set of resources. |
org.mule.runtime.deployment.model.api.application.Application |
createApplication(File applicationLocation,
Optional<Properties> deploymentProperties)
Creates an
Application from a set of resources. |
org.mule.runtime.api.deployment.meta.MuleApplicationModel.MuleApplicationModelBuilder |
createArtifactModelBuilder(File artifactFolder,
org.mule.runtime.module.artifact.api.descriptor.AbstractArtifactDescriptorFactory<org.mule.runtime.api.deployment.meta.MuleApplicationModel,org.mule.runtime.deployment.model.api.application.ApplicationDescriptor> applicationDescriptorFactory)
Creates a
MuleApplicationModel.MuleApplicationModelBuilder for the application from its artifact folder. |
org.mule.runtime.deployment.model.api.domain.Domain |
createDomain(byte[] domainContent)
Creates a domain but from the content byte[], see
ToolingService.createDomain(File) for more details. |
org.mule.runtime.deployment.model.api.domain.Domain |
createDomain(byte[] domainContent,
Optional<Properties> deploymentProperties)
Creates a domain but from the content byte[], see
ToolingService.createDomain(File) for more details. |
org.mule.runtime.deployment.model.api.domain.Domain |
createDomain(File domainLocation)
Creates a
Domain from a set of resources. |
org.mule.runtime.deployment.model.api.domain.Domain |
createDomain(File domainLocation,
Optional<Properties> deploymentProperties)
Creates a
Domain from a set of resources. |
String |
getUniqueIdString(String type)
Generates a unique id for an artifact (domain or application).
|
void |
initialise() |
ConnectivityTestingServiceBuilder |
newConnectivityTestingServiceBuilder()
Provides a service to create a connectivity testing service using a builder which can be used to configured resources of a
dynamically created artifact
|
DeclarationSessionBuilder |
newDeclarationSessionBuilder()
Provides a
DeclarationSessionBuilder to create a
DeclarationSession by providing required configuration elements. |
void |
stop() |
public DefaultToolingService(org.mule.runtime.module.deployment.impl.internal.domain.DomainRepository domainRepository,
org.mule.runtime.module.deployment.impl.internal.domain.DefaultDomainFactory domainFactory,
org.mule.runtime.module.deployment.impl.internal.application.DefaultApplicationFactory applicationFactory,
org.mule.runtime.module.deployment.impl.internal.artifact.AbstractDeployableDescriptorFactory<org.mule.runtime.api.deployment.meta.MuleApplicationModel,org.mule.runtime.deployment.model.api.application.ApplicationDescriptor> applicationDescriptorFactory)
domainRepository - DomainRepository to look up for already deployed domains.domainFactory - factory for creating the DomainapplicationFactory - factory for creating the ApplicationapplicationDescriptorFactory - AbstractDeployableDescriptorFactory to load the application descriptor.public ConnectivityTestingServiceBuilder newConnectivityTestingServiceBuilder()
newConnectivityTestingServiceBuilder in interface ToolingServiceConnectivityTestingServicepublic DeclarationSessionBuilder newDeclarationSessionBuilder()
ToolingServiceDeclarationSessionBuilder to create a
DeclarationSession by providing required configuration elements.newDeclarationSessionBuilder in interface ToolingServiceDeclarationSessionpublic org.mule.runtime.deployment.model.api.application.Application createApplication(File applicationLocation) throws IOException
Application from a set of resources.
The created application will be created lazily meaning that the application resources will be created based on the different
request made to the application.
Only requested components will be executed. All sources for flows will be stop unless they are requested to be started by the
client.
If a domain dependency is defined for the application it will be deployed. Both domain and application will be deployed using
a random unique identifier allowing to get multiple deployments of both application and domain. Be aware that resources
(ports, file system, etc) are shared so in those cases where resources are needed by the application or domain a deployment
exception could happen.
The application will be deployed using
MuleDeploymentProperties.MULE_MUTE_APP_LOGS_DEPLOYMENT_PROPERTY so the application
logs are muted.createApplication in interface ToolingServiceapplicationLocation - location of the application content. The application content may be a folder holding an exploded
structure for an application or may be a zip file containing the resources of the application.IOExceptionpublic org.mule.runtime.deployment.model.api.application.Application createApplication(File applicationLocation, Optional<Properties> deploymentProperties) throws IOException
Application from a set of resources.
The created application will be created lazily meaning that the application resources will be created based on the different
request made to the application.
Only requested components will be executed. All sources for flows will be stop unless they are requested to be started by the
client.
If a domain dependency is defined for the application it will be deployed. Both domain and application will be deployed using
a random unique identifier allowing to get multiple deployments of both application and domain. Be aware that resources
(ports, file system, etc) are shared so in those cases where resources are needed by the application or domain a deployment
exception could happen.
The application will be deployed using
MuleDeploymentProperties.MULE_MUTE_APP_LOGS_DEPLOYMENT_PROPERTY so the application
logs are muted.createApplication in interface ToolingServiceapplicationLocation - location of the application content. The application content may be a folder holding an exploded
structure for an application or may be a zip file containing the resources of the application.deploymentProperties - defines the deployment properties to be used when deploying the application.IOExceptionpublic org.mule.runtime.api.deployment.meta.MuleApplicationModel.MuleApplicationModelBuilder createArtifactModelBuilder(File artifactFolder, org.mule.runtime.module.artifact.api.descriptor.AbstractArtifactDescriptorFactory<org.mule.runtime.api.deployment.meta.MuleApplicationModel,org.mule.runtime.deployment.model.api.application.ApplicationDescriptor> applicationDescriptorFactory)
MuleApplicationModel.MuleApplicationModelBuilder for the application from its artifact folder.artifactFolder - location of the application root folder.MuleApplicationModel.MuleApplicationModelBuilder.public org.mule.runtime.deployment.model.api.application.Application createApplication(byte[] appContent)
throws IOException
ToolingService.createApplication(File) for more details.createApplication in interface ToolingServiceappContent - the content of the application.IOExceptionpublic org.mule.runtime.deployment.model.api.application.Application createApplication(byte[] appContent,
Optional<Properties> deploymentProperties)
throws IOException
ToolingService.createApplication(File, Optional) for more details.createApplication in interface ToolingServiceappContent - the content of the application.deploymentProperties - defines the deployment properties to be used when deploying the application.IOExceptionpublic org.mule.runtime.deployment.model.api.domain.Domain createDomain(File domainLocation) throws IOException
Domain from a set of resources.
The created domain will be created lazily meaning that the domain resources will be created based on the different request
made to the domain.
Only requested components will be executed. All sources for flows will be stop unless they are requested to be started by the
client.
Be aware that resources (ports, file system, etc) are shared so in those cases where resources are needed by the domain a
deployment exception could happen.
The domain will be deployed using
MuleDeploymentProperties.MULE_MUTE_APP_LOGS_DEPLOYMENT_PROPERTY so the domain logs
are muted.createDomain in interface ToolingServicedomainLocation - location of the domain content. The domain content may be a folder holding an exploded structure for an
domain or may be a jar file containing the resources of the domain.IOExceptionpublic org.mule.runtime.deployment.model.api.domain.Domain createDomain(File domainLocation, Optional<Properties> deploymentProperties) throws IOException
ToolingServiceDomain from a set of resources.
The created domain will be created lazily meaning that the domain resources will be created based on the different request
made to the domain.
Only requested components will be executed. All sources for flows will be stop unless they are requested to be started by the
client.
Be aware that resources (ports, file system, etc) are shared so in those cases where resources are needed by the domain a
deployment exception could happen.
The domain will be deployed using
MuleDeploymentProperties.MULE_MUTE_APP_LOGS_DEPLOYMENT_PROPERTY so the domain logs
are muted.createDomain in interface ToolingServicedomainLocation - location of the domain content. The domain content may be a folder holding an exploded structure
for an domain or may be a jar file containing the resources of the domain.deploymentProperties - defines the deployment properties to be used when deploying the domain.IOExceptionpublic org.mule.runtime.deployment.model.api.domain.Domain createDomain(byte[] domainContent)
throws IOException
ToolingService.createDomain(File) for more details.createDomain in interface ToolingServicedomainContent - the content of the domain.IOExceptionpublic org.mule.runtime.deployment.model.api.domain.Domain createDomain(byte[] domainContent,
Optional<Properties> deploymentProperties)
throws IOException
ToolingServiceToolingService.createDomain(File) for more details.createDomain in interface ToolingServicedomainContent - the content of the domain.deploymentProperties - defines the deployment properties to be used when deploying the application.IOExceptionpublic void initialise()
throws org.mule.runtime.api.lifecycle.InitialisationException
initialise in interface org.mule.runtime.api.lifecycle.Initialisableinitialise in interface ToolingServiceorg.mule.runtime.api.lifecycle.InitialisationExceptionpublic void stop()
throws org.mule.runtime.api.exception.MuleException
stop in interface org.mule.runtime.api.lifecycle.Stoppablestop in interface ToolingServiceorg.mule.runtime.api.exception.MuleExceptionCopyright © 2003–2022 MuleSoft, Inc.. All rights reserved.