public class AppRegistry extends Object
UriRegistry
that operates on higher level
AppRegistration
objects and supports on-demand loading of Resource
s.
Stores AppRegistration with up to two keys:
Constructor and Description |
---|
AppRegistry(org.springframework.cloud.deployer.resource.registry.UriRegistry uriRegistry,
org.springframework.core.io.ResourceLoader resourceLoader) |
Modifier and Type | Method and Description |
---|---|
void |
delete(String name,
ApplicationType type)
Deletes an
AppRegistration . |
AppRegistration |
find(String name,
ApplicationType type) |
List<AppRegistration> |
findAll() |
org.springframework.data.domain.Page<AppRegistration> |
findAll(org.springframework.data.domain.Pageable pageable) |
List<AppRegistration> |
importAll(boolean overwrite,
org.springframework.core.io.Resource... resources) |
AppRegistration |
save(String name,
ApplicationType type,
URI uri,
URI metadataUri) |
public AppRegistry(org.springframework.cloud.deployer.resource.registry.UriRegistry uriRegistry, org.springframework.core.io.ResourceLoader resourceLoader)
public AppRegistration find(String name, ApplicationType type)
public List<AppRegistration> findAll()
public org.springframework.data.domain.Page<AppRegistration> findAll(org.springframework.data.domain.Pageable pageable)
public AppRegistration save(String name, ApplicationType type, URI uri, URI metadataUri)
public List<AppRegistration> importAll(boolean overwrite, org.springframework.core.io.Resource... resources)
public void delete(String name, ApplicationType type)
AppRegistration
. If the AppRegistration
does not exist,
a NoSuchAppRegistrationException
will be thrown.name
- Name of the AppRegistration to deletetype
- Type of the AppRegistration to deleteCopyright © 2019 Pivotal Software, Inc.. All rights reserved.