public interface AppRegistryCommon
AppRegistry
and the new
DefaultAppRegistryService
This interface bride is required to enable SCDF working both in classic or skipper
mode.Modifier and Type | Method and Description |
---|---|
boolean |
appExist(String name,
ApplicationType type)
Checks if an application with such name and type exists and is set as default.
|
AppRegistration |
find(String name,
ApplicationType type) |
default AppRegistration |
find(String name,
ApplicationType type,
String version) |
List<AppRegistration> |
findAll() |
org.springframework.core.io.Resource |
getAppMetadataResource(AppRegistration appRegistration)
Converts application's metadata URI into Spring resource object.
|
org.springframework.core.io.Resource |
getAppResource(AppRegistration appRegistration)
Converts application's URI into Spring resource object.
|
List<AppRegistration> |
importAll(boolean overwrite,
org.springframework.core.io.Resource... resources)
Import bulk of applications from input load files
|
AppRegistration |
save(AppRegistration app)
Save an
AppRegistration instance. |
boolean appExist(String name, ApplicationType type)
name
- applicaiton nametype
- applicaiton typeList<AppRegistration> findAll()
AppRegistration
's including multiple version for the same
application.AppRegistration find(String name, ApplicationType type)
name
- application nametype
- application typdefault AppRegistration find(String name, ApplicationType type, String version)
name
- application nametype
- application typetype
- application versionList<AppRegistration> importAll(boolean overwrite, org.springframework.core.io.Resource... resources)
overwrite
- if set to true this command will override and existing application
with same name:type:version If set to false operation will throw an exception in the
application already exists.resources
- list of input load filesorg.springframework.core.io.Resource getAppResource(AppRegistration appRegistration)
appRegistration
- Resource
instance that corresponds to application's URIorg.springframework.core.io.Resource getAppMetadataResource(AppRegistration appRegistration)
appRegistration
- Resource
instance that corresponds to application's metdata URIAppRegistration save(AppRegistration app)
AppRegistration
instance.app
- appRegistration to saveCopyright © 2019 Pivotal Software, Inc.. All rights reserved.