public class PersistenceManagerImpl extends Object implements PersistenceManager
Constructor and Description |
---|
PersistenceManagerImpl(ClusterController controller)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
RequestStatus |
create(ResourceInstance resource,
RequestBody requestBody)
Create resources.
|
protected Request |
createControllerRequest(RequestBody body) |
RequestStatus |
delete(ResourceInstance resource,
RequestBody requestBody) |
RequestStatus |
update(ResourceInstance resource,
RequestBody requestBody) |
public PersistenceManagerImpl(ClusterController controller)
controller
- the cluster controllerpublic RequestStatus create(ResourceInstance resource, RequestBody requestBody) throws UnsupportedPropertyException, SystemException, ResourceAlreadyExistsException, NoSuchParentResourceException
PersistenceManager
create
in interface PersistenceManager
resource
- associated resource representationrequestBody
- body of the current requestUnsupportedPropertyException
SystemException
ResourceAlreadyExistsException
NoSuchParentResourceException
public RequestStatus update(ResourceInstance resource, RequestBody requestBody) throws UnsupportedPropertyException, SystemException, NoSuchParentResourceException, NoSuchResourceException
update
in interface PersistenceManager
resource
- associated resource representationrequestBody
- body of the current requestUnsupportedPropertyException
SystemException
NoSuchParentResourceException
NoSuchResourceException
public RequestStatus delete(ResourceInstance resource, RequestBody requestBody) throws UnsupportedPropertyException, SystemException, NoSuchParentResourceException, NoSuchResourceException
delete
in interface PersistenceManager
resource
- associated resource representationrequestBody
- body of the current requestUnsupportedPropertyException
SystemException
NoSuchParentResourceException
NoSuchResourceException
protected Request createControllerRequest(RequestBody body)
Copyright © 2022 Apache Software Foundation. All rights reserved.