|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ResourceFactoryManagerLocal
| Method Summary | |
|---|---|
void |
checkForTimedOutRequests()
Will check to see if any in progress resource creation jobs are taking too long to finish and if so marks them as failed. |
void |
completeCreateResource(CreateResourceResponse response)
For documentation, see ResourceFactoryServerService.completeCreateResource(org.rhq.core.clientapi.agent.inventory.CreateResourceResponse)
. |
void |
completeDeleteResourceRequest(DeleteResourceResponse response)
For documentation, see ResourceFactoryServerService.completeDeleteResourceRequest(org.rhq.core.clientapi.agent.inventory.DeleteResourceResponse)
. |
CreateResourceHistory |
createPackageBackedResource(Subject subject,
int parentResourceId,
int newResourceTypeId,
String newResourceName,
Configuration pluginConfiguration,
String packageName,
String packageVersion,
Integer architectureId,
Configuration deploymentTimeConfiguration,
byte[] packageBits)
|
CreateResourceHistory |
createPackageBackedResourceViaPackageVersion(Subject subject,
int parentResourceId,
int newResourceTypeId,
String newResourceName,
Configuration pluginConfiguration,
Configuration deploymentTimeConfiguration,
int packageVersionId)
|
CreateResourceHistory |
createResource(Subject subject,
int parentResourceId,
int resourceTypeId,
String resourceName,
Configuration pluginConfiguration,
Configuration resourceConfiguration)
|
CreateResourceHistory |
createResource(Subject user,
int parentResourceId,
int newResourceTypeId,
String newResourceName,
Configuration pluginConfiguration,
String packageName,
String packageVersion,
Integer architectureId,
Configuration deploymentTimeConfiguration,
InputStream packageBitStream)
Creates a new physical resource. |
CreateResourceHistory |
createResource(Subject user,
int parentResourceId,
int newResourceTypeId,
String newResourceName,
Configuration pluginConfiguration,
String packageName,
String packageVersion,
Integer architectureId,
Configuration deploymentTimeConfiguration,
InputStream packageBitStream,
Map<String,String> packageUploadDetails)
|
DeleteResourceHistory |
deleteResource(Subject subject,
int resourceId)
|
List<DeleteResourceHistory> |
deleteResources(Subject subject,
int[] resourceIds)
|
PageList<CreateResourceHistory> |
findCreateChildResourceHistory(Subject subject,
int parentResourceId,
Long beginDate,
Long endDate,
PageControl pageControl)
|
PageList<DeleteResourceHistory> |
findDeleteChildResourceHistory(Subject subject,
int parentResourceId,
Long beginDate,
Long endDate,
PageControl pageControl)
|
int |
getCreateChildResourceHistoryCount(int parentResourceId,
Long beginDate,
Long endDate)
Returns the number of requests to create a new child resource under the specified parent known to the system. |
CreateResourceHistory |
getCreateHistoryItem(int historyItemId)
Returns the history item corresponding to the specified ID. |
int |
getDeleteChildResourceHistoryCount(int parentResourceId,
Long beginDate,
Long endDate)
Returns the number of requests to delete a child resource from the specified parent resource. |
CreateResourceHistory |
persistCreateHistory(Subject user,
int parentResourceId,
int resourceTypeId,
String createResourceName,
Configuration configuration)
Persists a record in the resource history to indicate a request has been made to create a configuration-backed resource. |
CreateResourceHistory |
persistCreateHistory(Subject user,
int parentResourceId,
int resourceTypeId,
String createResourceName,
PackageVersion packageVersion,
Configuration deploymentTimeConfiguration)
Persists a record in the resource history to indicate a request has been made to create an package-backed resource. |
DeleteResourceHistory |
persistDeleteHistory(Subject user,
int resourceId)
Persists a record in the resource history to indicate a request has been made to delete a resource. |
| Method Detail |
|---|
void completeCreateResource(CreateResourceResponse response)
ResourceFactoryServerService.completeCreateResource(org.rhq.core.clientapi.agent.inventory.CreateResourceResponse)
.
void completeDeleteResourceRequest(DeleteResourceResponse response)
ResourceFactoryServerService.completeDeleteResourceRequest(org.rhq.core.clientapi.agent.inventory.DeleteResourceResponse)
.
CreateResourceHistory createResource(Subject user,
int parentResourceId,
int newResourceTypeId,
String newResourceName,
Configuration pluginConfiguration,
String packageName,
String packageVersion,
Integer architectureId,
Configuration deploymentTimeConfiguration,
InputStream packageBitStream)
CreateDeletePolicy.BOTH or
CreateDeletePolicy.CREATE_ONLY. If this call is made for a resource type that cannot be created based on
this policy, the plugin container will throw an exception. This call should only be made for resource types that
are defined with a creation data type of ResourceCreationDataType.CONTENT. If this call is made for a
resource type that cannot be created via an package, the plugin container will throw an exception.
user - user requesting the creationparentResourceId - parent resource under which the new resource should be creatednewResourceTypeId - identifies the type of resource being creatednewResourceName - name of the resource being createdpluginConfiguration - optional plugin configuration that may be needed in order to create the new
resourcepackageName - name of the package that will be created as a result of this resource createpackageVersion - machine formatted identifier of the specific version of the packagearchitectureId - ID of the architecture of the package, null indicates NoArch (any)deploymentTimeConfiguration - dictates how the package will be deployedpackageBitStream - content of the package to create
CreateResourceHistory createResource(Subject user,
int parentResourceId,
int newResourceTypeId,
String newResourceName,
Configuration pluginConfiguration,
String packageName,
String packageVersion,
Integer architectureId,
Configuration deploymentTimeConfiguration,
InputStream packageBitStream,
Map<String,String> packageUploadDetails)
CreateResourceHistory getCreateHistoryItem(int historyItemId)
historyItemId - identifies the history item to return
null if the id does not have a corresponding item
int getCreateChildResourceHistoryCount(int parentResourceId,
Long beginDate,
Long endDate)
parentResourceId - resource to check for child resource creation requestsbeginDate - filter used to show only results occurring after this epoch millis parameter, nullableendDate - filter used to show only results occurring before this epoch millis parameter, nullable
int getDeleteChildResourceHistoryCount(int parentResourceId,
Long beginDate,
Long endDate)
parentResourceId - resource to check for child resource delete requestsbeginDate - filter used to show only results occurring after this epoch millis parameter, nullableendDate - filter used to show only results occurring before this epoch millis parameter, nullable
CreateResourceHistory persistCreateHistory(Subject user,
int parentResourceId,
int resourceTypeId,
String createResourceName,
Configuration configuration)
user - user performing the createparentResourceId - parent resource under which the resource should be createdresourceTypeId - type of resource being createdcreateResourceName - name of the resource being createdconfiguration - resource configuration of the new resource
CreateResourceHistory persistCreateHistory(Subject user,
int parentResourceId,
int resourceTypeId,
String createResourceName,
PackageVersion packageVersion,
Configuration deploymentTimeConfiguration)
user - user performing the createparentResourceId - parent resource under which the resource should be createdresourceTypeId - type of resource being createdcreateResourceName - name of the resource being createdpackageVersion - package version being installeddeploymentTimeConfiguration - configuration of the package used when installing
DeleteResourceHistory persistDeleteHistory(Subject user,
int resourceId)
user - use performing the deleteresourceId - resource being deleted
void checkForTimedOutRequests()
CreateResourceHistory createResource(Subject subject,
int parentResourceId,
int resourceTypeId,
String resourceName,
Configuration pluginConfiguration,
Configuration resourceConfiguration)
ResourceFactoryManagerRemote.createResource(Subject,int,int,String,Configuration,Configuration)
CreateResourceHistory createPackageBackedResource(Subject subject,
int parentResourceId,
int newResourceTypeId,
String newResourceName,
Configuration pluginConfiguration,
String packageName,
String packageVersion,
Integer architectureId,
Configuration deploymentTimeConfiguration,
byte[] packageBits)
ResourceFactoryManagerRemote.createPackageBackedResource(Subject,int,int,String,Configuration,String,String,Integer,Configuration,byte[])
CreateResourceHistory createPackageBackedResourceViaPackageVersion(Subject subject,
int parentResourceId,
int newResourceTypeId,
String newResourceName,
Configuration pluginConfiguration,
Configuration deploymentTimeConfiguration,
int packageVersionId)
DeleteResourceHistory deleteResource(Subject subject,
int resourceId)
ResourceFactoryManagerRemote.deleteResource(Subject,int)
List<DeleteResourceHistory> deleteResources(Subject subject,
int[] resourceIds)
ResourceFactoryManagerRemote.deleteResources(Subject,int[])
PageList<CreateResourceHistory> findCreateChildResourceHistory(Subject subject,
int parentResourceId,
Long beginDate,
Long endDate,
PageControl pageControl)
PageList<DeleteResourceHistory> findDeleteChildResourceHistory(Subject subject,
int parentResourceId,
Long beginDate,
Long endDate,
PageControl pageControl)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||