|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ResourceManager
This is a business interfaces providing methods for managing resources used by software project integration team. This manager also allows to manage mapping done between resources and physical environments.
Method Summary | |
---|---|
void |
closeEISMapping(EISMapping mapping)
Closes the specified EISMapping. |
void |
closeResourceMapping(ResourceMapping mapping)
Closes the specified ResourceMapping. |
EISMapping |
getEISMapping(long id)
Retrieve an EISMapping using its unique identifier |
GatewayTrackingView |
getGatewayTrackingView(java.lang.String name,
java.util.Date startDate,
java.util.Date endDate)
Get a configuration changes tracking view for a specified gateway on a specified time period (between start date and end date included). |
Machine |
getMachine(long id)
Retrieve the Machine having the specified identifier |
java.util.List |
getMachines()
Retrieve the available machines used by integration team. |
Resource |
getResource(long id)
Retrieve the Resource hanving the specified identifier |
Resource |
getResource(java.lang.String name)
Retrieve the Resource having the specified name |
ResourceMapping |
getResourceMapping(long id)
Retrieve a ResourceMapping using its unique identifier |
java.util.List |
getResources(AbstractResourceType resourceType)
Retrieve resources having the specified resource type |
java.util.List |
getResources(java.lang.String category)
Retrieve resources corresponding to specified category |
ResourceType |
getResourceType(java.lang.String key)
Retrieve the ResourceType having the specified key |
java.util.List |
getResourceTypes()
Retrieve all defined resource types |
java.util.List |
getResourceTypes(java.lang.String category)
Retrieve ResourceTypes corresponding to specified category |
ResourceVersion |
getResourceVersion(long id)
Retrieve the ResourceVersion having this identifier |
ResourceVersion |
getResourceVersion(java.lang.String name)
Retrieve the ResourceVersion having the specified name |
java.util.List |
getResourceVersions(VersionedResourceType resourceType)
Retrieve the available resource versions for a resource type |
VersionedResource |
getVersionedResource(java.lang.String name,
java.util.Date configDate)
Get a view representing versioned resource configuration at a specified date |
VersionedResourceTrackingView |
getVersionedResourceTrackingView(java.lang.String name,
java.util.Date startDate,
java.util.Date endDate)
Get a version updates tracking view for a specified versioned resource on a specified time period (between start date and end date included). |
void |
mapEISOnGateway(EIS eis,
Gateway gateway)
Create a new mapping of an EIS onto a gateway. |
void |
mapResourceOnEnvironment(AbstractResource resource,
PhysicalEnvironment environment)
Create a new mapping of an infrastructure resource onto a physical one. |
void |
saveMachine(Machine machine)
Save a Machine within datastore (create or update) |
void |
saveResource(AbstractResource resource)
Save a Resource within datastore (create or update). |
void |
saveResourceType(AbstractResourceType type)
Save a ResourceType within datastore (create or update). |
void |
saveResourceVersion(ResourceVersion version)
Save a RsourceVersion within datastore (create or update) |
void |
updateResource(VersionedResource resource,
ResourceVersion version)
Update a versioned resource using a resource version |
Method Detail |
---|
void saveResourceType(AbstractResourceType type) throws DuplicateEntityException
AbstractResourceType
s) can be saved at that time.
type
- The ResourceType to save
DuplicateEntityException
- if a ResourceType with same key already existsjava.util.List getResourceTypes(java.lang.String category)
category
- The category resource types whould belong to
org.figure8.join.businessobjects.environment.ResourceType
of this categoryjava.util.List getResourceTypes()
org.figure8.join.businessobjects.environment.ResourceType
ResourceType getResourceType(java.lang.String key)
key
- The unique key identifier of the ResourceType
void saveResource(AbstractResource resource) throws DuplicateEntityException
AbstractResource
s) can be saved at that time.
resource
- The Resource to save
DuplicateEntityException
- if a resource wiht same key already existsjava.util.List getResources(AbstractResourceType resourceType)
resourceType
- The type resources should belong to
org.figure8.join.businessobjects.environment.Resource
of this typejava.util.List getResources(java.lang.String category)
category
- The category resources should belong to
org.figure8.join.businessobjects.environment.Resource
of this categoryResource getResource(java.lang.String name)
name
- The name of the Resource to retrieve
Resource getResource(long id)
id
- The identifier of Resource to retrieve
GatewayTrackingView getGatewayTrackingView(java.lang.String name, java.util.Date startDate, java.util.Date endDate)
name
- The name of gateway to retrieve a tracking view forstartDate
- The date to start the configuration changes trackingendDate
- The date to end the configuration changes tracking
VersionedResource getVersionedResource(java.lang.String name, java.util.Date configDate)
name
- The name of resource to retrieve configuration forconfigDate
- The date to get resource configuration
VersionedResourceTrackingView getVersionedResourceTrackingView(java.lang.String name, java.util.Date startDate, java.util.Date endDate)
name
- The name of resource to retrieve a tracking view forstartDate
- The date to start the resource version updates trackingendDate
- The date to end the resource version updates tracking
void saveResourceVersion(ResourceVersion version) throws DuplicateEntityException
version
- The resource version to save
DuplicateEntityException
- is a resource with same name already existsjava.util.List getResourceVersions(VersionedResourceType resourceType)
resourceType
- The VersionedResourceType to get versions for
org.figure8.join.businessobjects.environment.ResourceVersion
ResourceVersion getResourceVersion(java.lang.String name)
name
- The name of ResourceVersion to retrieve
ResourceVersion getResourceVersion(long id)
id
- The unique identifier of ResourceVersion to retrieve
void updateResource(VersionedResource resource, ResourceVersion version)
resource
- The VersionedResource to updateversion
- The ResourceVersion to use for updatevoid saveMachine(Machine machine) throws DuplicateEntityException
machine
- The machine to save
DuplicateEntityException
- if a machine with same name already existsjava.util.List getMachines()
org.figure8.join.businessobjects.environment.Machine
Machine getMachine(long id)
id
- The identifier ot Machine to retrieve
ResourceMapping getResourceMapping(long id)
id
- The unique identifier of mapping to retrieve
void mapResourceOnEnvironment(AbstractResource resource, PhysicalEnvironment environment)
resource
- The infrastructure resource to map onto environemntenvironment
- The physical environment to be mapped with resourcevoid closeResourceMapping(ResourceMapping mapping)
mapping
- The ResourceMapping to closeEISMapping getEISMapping(long id)
id
- The unique identifier of mapping to retrieve
void mapEISOnGateway(EIS eis, Gateway gateway)
eis
- The EIS to map onto gatewaygateway
- The gateway to be mapped with EISvoid closeEISMapping(EISMapping mapping)
mapping
- The EISMapping to close
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |