|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 usepublic void saveResourceType(AbstractResourceType type) throws DuplicateEntityException
AbstractResourceType
s) can be saved at that time.
saveResourceType
in interface ResourceManager
type
- The ResourceType to save
DuplicateEntityException
- if a ResourceType with same key already existspublic java.util.List getResourceTypes(java.lang.String category)
getResourceTypes
in interface ResourceManager
category
- The category resource types whould belong to
org.figure8.join.businessobjects.environment.ResourceType
of this categorypublic java.util.List getResourceTypes()
getResourceTypes
in interface ResourceManager
org.figure8.join.businessobjects.environment.ResourceType
public ResourceType getResourceType(java.lang.String key)
getResourceType
in interface ResourceManager
key
- The unique key identifier of the ResourceType
public void saveResource(AbstractResource resource) throws DuplicateEntityException
AbstractResource
s) can be saved at that time.
saveResource
in interface ResourceManager
resource
- The Resource to save
DuplicateEntityException
- if a resource wiht same key already existspublic java.util.List getResources(AbstractResourceType resourceType)
getResources
in interface ResourceManager
resourceType
- 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 ResourceManager
category
- The category resources should belong to
org.figure8.join.businessobjects.environment.Resource
of this categorypublic Resource getResource(java.lang.String name)
getResource
in interface ResourceManager
name
- The name of the Resource to retrieve
public Resource getResource(long id)
getResource
in interface ResourceManager
id
- The identifier of Resource to retrieve
public GatewayTrackingView getGatewayTrackingView(java.lang.String name, java.util.Date startDate, java.util.Date endDate)
getGatewayTrackingView
in interface ResourceManager
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
public VersionedResource getVersionedResource(java.lang.String name, java.util.Date configDate)
getVersionedResource
in interface ResourceManager
name
- 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 ResourceManager
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
public void saveResourceVersion(ResourceVersion version) throws DuplicateEntityException
saveResourceVersion
in interface ResourceManager
version
- The resource version to save
DuplicateEntityException
- is a resource with same name already existspublic java.util.List getResourceVersions(VersionedResourceType resourceType)
getResourceVersions
in interface ResourceManager
resourceType
- The VersionedResourceType to get versions for
org.figure8.join.businessobjects.environment.ResourceVersion
public ResourceVersion getResourceVersion(java.lang.String name)
getResourceVersion
in interface ResourceManager
name
- The name of ResourceVersion to retrieve
public ResourceVersion getResourceVersion(long id)
getResourceVersion
in interface ResourceManager
id
- The unique identifier of ResourceVersion to retrieve
public void updateResource(VersionedResource resource, ResourceVersion version)
updateResource
in interface ResourceManager
resource
- The VersionedResource to updateversion
- The ResourceVersion to use for updatepublic void saveMachine(Machine machine) throws DuplicateEntityException
saveMachine
in interface ResourceManager
machine
- The Machine to save
DuplicateEntityException
- if a machine with same name already exists.public java.util.List getMachines()
getMachines
in interface ResourceManager
org.figure8.join.businessobjects.environment.Machine
public Machine getMachine(long id)
getMachine
in interface ResourceManager
id
- The identifier ot Machine to retrieve
public ResourceMapping getResourceMapping(long id)
getResourceMapping
in interface ResourceManager
id
- The unique identifier of mapping to retrieve
public void mapResourceOnEnvironment(AbstractResource resource, PhysicalEnvironment environment)
mapResourceOnEnvironment
in interface ResourceManager
resource
- The infrastructure resource to map onto environemntenvironment
- The physical environment to be mapped with resourcepublic void closeResourceMapping(ResourceMapping mapping)
closeResourceMapping
in interface ResourceManager
mapping
- The ResourceMapping to closepublic EISMapping getEISMapping(long id)
getEISMapping
in interface ResourceManager
id
- The unique identifier of mapping to retrieve
public void mapEISOnGateway(EIS eis, Gateway gateway)
mapEISOnGateway
in interface ResourceManager
eis
- The EIS to map onto gatewaygateway
- The gateway to be mapped with EISpublic void closeEISMapping(EISMapping mapping)
closeEISMapping
in interface ResourceManager
mapping
- The EISMapping to close
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |