|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.figure8.join.businessfacades.environment.DefaultResourceManager
public class DefaultResourceManager
Default implementation of ResourceManager.
| Constructor Summary | |
|---|---|
DefaultResourceManager()
Creates a new DefaultResourceManager. |
|
| 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 traking 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 ResourceVersion within datastore (create or update) |
void |
setEISMappingDao(EISMappingDao eisMappingDao)
|
void |
setMachineDao(MachineDao machineDao)
|
void |
setResourceDao(ResourceDao resourceDao)
|
void |
setResourceMappingDao(ResourceMappingDao resourceMappingDao)
|
void |
setResourceTypeDao(ResourceTypeDao resourceTypeDao)
|
void |
setResourceVersionDao(ResourceVersionDao resourceVersionDao)
|
void |
setVersionedResourceUpdateDao(VersionedResourceUpdateDao resourceUpdateDao)
|
void |
updateResource(VersionedResource resource,
ResourceVersion version)
Update a versioned resource using a resource version |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultResourceManager()
| Method Detail |
|---|
public void setMachineDao(MachineDao machineDao)
machineDao - The MachineDao implementation to use.public void setResourceDao(ResourceDao resourceDao)
resourceDao - The ResourceDao implementation to use.public void setResourceTypeDao(ResourceTypeDao resourceTypeDao)
resourceTypeDao - The ResourceTypeDao implementation to use.public void setResourceMappingDao(ResourceMappingDao resourceMappingDao)
resourceMappingDao - The ResourceMappingDao implementation to usepublic void setResourceVersionDao(ResourceVersionDao resourceVersionDao)
resourceVersionDao - The ResourceVersionDao implementation to usepublic void setVersionedResourceUpdateDao(VersionedResourceUpdateDao resourceUpdateDao)
resourceUpdateDao - The VersionedResourceUpdateDao implementation to usepublic void setEISMappingDao(EISMappingDao eisMappingDao)
eisMappingDao - The EISMappingDao implementation to use
public void saveResourceType(AbstractResourceType type)
throws DuplicateEntityException
AbstractResourceTypes) can be saved at that time.
saveResourceType in interface ResourceManagertype - The ResourceType to save
DuplicateEntityException - if a ResourceType with same key already existspublic java.util.List getResourceTypes(java.lang.String category)
getResourceTypes in interface ResourceManagercategory - The category resource types whould belong to
org.figure8.join.businessobjects.environment.ResourceType of this categorypublic java.util.List getResourceTypes()
getResourceTypes in interface ResourceManagerorg.figure8.join.businessobjects.environment.ResourceTypepublic ResourceType getResourceType(java.lang.String key)
getResourceType in interface ResourceManagerkey - The unique key identifier of the ResourceType
public void saveResource(AbstractResource resource)
throws DuplicateEntityException
AbstractResources) can be saved at that time.
saveResource in interface ResourceManagerresource - The Resource to save
DuplicateEntityException - if a resource wiht same key already existspublic java.util.List getResources(AbstractResourceType resourceType)
getResources in interface ResourceManagerresourceType - The type resources should belong to
org.figure8.join.businessobjects.environment.Resource of this typepublic java.util.List getResources(java.lang.String category)
getResources in interface ResourceManagercategory - The category resources should belong to
org.figure8.join.businessobjects.environment.Resource of this categorypublic Resource getResource(java.lang.String name)
getResource in interface ResourceManagername - The name of the Resource to retrieve
public Resource getResource(long id)
getResource in interface ResourceManagerid - The identifier of Resource to retrieve
public GatewayTrackingView getGatewayTrackingView(java.lang.String name,
java.util.Date startDate,
java.util.Date endDate)
getGatewayTrackingView in interface ResourceManagername - 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
public VersionedResource getVersionedResource(java.lang.String name,
java.util.Date configDate)
getVersionedResource in interface ResourceManagername - The name of resource to retrieve configuration forconfigDate - The date to get resource configuration
public VersionedResourceTrackingView getVersionedResourceTrackingView(java.lang.String name,
java.util.Date startDate,
java.util.Date endDate)
getVersionedResourceTrackingView in interface ResourceManagername - 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
public void saveResourceVersion(ResourceVersion version)
throws DuplicateEntityException
saveResourceVersion in interface ResourceManagerversion - The resource version to save
DuplicateEntityException - is a resource with same name already existspublic java.util.List getResourceVersions(VersionedResourceType resourceType)
getResourceVersions in interface ResourceManagerresourceType - The VersionedResourceType to get versions for
org.figure8.join.businessobjects.environment.ResourceVersionpublic ResourceVersion getResourceVersion(java.lang.String name)
getResourceVersion in interface ResourceManagername - The name of ResourceVersion to retrieve
public ResourceVersion getResourceVersion(long id)
getResourceVersion in interface ResourceManagerid - The unique identifier of ResourceVersion to retrieve
public void updateResource(VersionedResource resource,
ResourceVersion version)
updateResource in interface ResourceManagerresource - The VersionedResource to updateversion - The ResourceVersion to use for update
public void saveMachine(Machine machine)
throws DuplicateEntityException
saveMachine in interface ResourceManagermachine - The Machine to save
DuplicateEntityException - if a machine with same name already exists.public java.util.List getMachines()
getMachines in interface ResourceManagerorg.figure8.join.businessobjects.environment.Machinepublic Machine getMachine(long id)
getMachine in interface ResourceManagerid - The identifier ot Machine to retrieve
public ResourceMapping getResourceMapping(long id)
getResourceMapping in interface ResourceManagerid - The unique identifier of mapping to retrieve
public void mapResourceOnEnvironment(AbstractResource resource,
PhysicalEnvironment environment)
mapResourceOnEnvironment in interface ResourceManagerresource - The infrastructure resource to map onto environemntenvironment - The physical environment to be mapped with resourcepublic void closeResourceMapping(ResourceMapping mapping)
closeResourceMapping in interface ResourceManagermapping - The ResourceMapping to closepublic EISMapping getEISMapping(long id)
getEISMapping in interface ResourceManagerid - The unique identifier of mapping to retrieve
public void mapEISOnGateway(EIS eis,
Gateway gateway)
mapEISOnGateway in interface ResourceManagereis - The EIS to map onto gatewaygateway - The gateway to be mapped with EISpublic void closeEISMapping(EISMapping mapping)
closeEISMapping in interface ResourceManagermapping - The EISMapping to close
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||