|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ResourceFactoryManagerRemote
| Method Summary | |
|---|---|
CreateResourceHistory |
createPackageBackedResource(Subject subject,
int parentResourceId,
int newResourceTypeId,
String newResourceName,
Configuration pluginConfiguration,
String packageName,
String packageVersion,
Integer architectureId,
Configuration deploymentTimeConfiguration,
byte[] packageBits,
Integer timeout)
Creates a new physical resource. |
CreateResourceHistory |
createPackageBackedResourceViaPackageVersion(Subject subject,
int parentResourceId,
int newResourceTypeId,
String newResourceName,
Configuration pluginConfiguration,
Configuration deploymentTimeConfiguration,
int packageVersionId,
Integer timeout)
Creates a new physical resource. |
CreateResourceHistory |
createResource(Subject subject,
int parentResourceId,
int resourceTypeId,
String resourceName,
Configuration pluginConfiguration,
Configuration resourceConfiguration,
Integer timeout)
Creates a new physical resource. |
DeleteResourceHistory |
deleteResource(Subject subject,
int resourceId)
Deletes a physical resource from the agent machine. |
List<DeleteResourceHistory> |
deleteResources(Subject subject,
int[] resourceIds)
Deletes physical resources from the agent machine. |
PageList<CreateResourceHistory> |
findCreateChildResourceHistory(Subject subject,
int parentResourceId,
Long beginDate,
Long endDate,
PageControl pageControl)
Returns a pagination enabled list of requests for the creation of new child resources to the specified parent. |
PageList<DeleteResourceHistory> |
findDeleteChildResourceHistory(Subject subject,
int parentResourceId,
Long beginDate,
Long endDate,
PageControl pageControl)
Returns a pagination enabled list of requests to delete a child resource on the specified parent. |
| Method Detail |
|---|
CreateResourceHistory createResource(Subject subject,
int parentResourceId,
int resourceTypeId,
String resourceName,
Configuration pluginConfiguration,
Configuration resourceConfiguration,
Integer timeout)
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.CONFIGURATION. If this call is made for
a resource type that cannot be created via a configuration, the plugin container will throw an exception.
subject - user requesting the creationparentResourceId - parent resource under which the new resource should be createdresourceTypeId - type of resource to createresourceName - name of the resource being createdpluginConfiguration - optional plugin configuration that may be needed in order to create the new resourceresourceConfiguration - resource configuration for the new resourcetimeout - number of milliseconds before the agent suffers a timeout when creating the resource. If null uses default.
CreateResourceHistory createPackageBackedResource(Subject subject,
int parentResourceId,
int newResourceTypeId,
String newResourceName,
Configuration pluginConfiguration,
String packageName,
String packageVersion,
Integer architectureId,
Configuration deploymentTimeConfiguration,
byte[] packageBits,
Integer timeout)
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.
subject - user requesting the creationparentResourceId - parent resource under which the new resource should be creatednewResourceTypeId - identifies the type of resource being creatednewResourceName - Ignored, pass null. This is determined from the package.pluginConfiguration - 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 - The string version of the package. If null will be set to system timestamp (long)architectureId - Id of the target architecture of the package, null indicates NoArch (any).deploymentTimeConfiguration - dictates how the package will be deployedpackageBits - content of the package to createtimeout - number of milliseconds before the agent suffers a timeout when creating the resource. If null uses default.
CreateResourceHistory createPackageBackedResourceViaPackageVersion(Subject subject,
int parentResourceId,
int newResourceTypeId,
String newResourceName,
Configuration pluginConfiguration,
Configuration deploymentTimeConfiguration,
int packageVersionId,
Integer timeout)
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.
subject - user requesting the creationparentResourceId - parent resource under which the new resource should be creatednewResourceTypeId - identifies the type of resource being creatednewResourceName - Ignored, pass null. This is determined from the package.pluginConfiguration - optional plugin configuration that may be needed in order to create the new
resourcedeploymentTimeConfiguration - dictates how the package will be deployedpackageVersionId - An existing package version to back this resourcetimeout - number of milliseconds before the agent suffers a timeout when creating the resource. If null uses default.
DeleteResourceHistory deleteResource(Subject subject,
int resourceId)
subject - user requesting the deletion. must have resource delete perm on the resource.resourceId - resource being deleted
List<DeleteResourceHistory> deleteResources(Subject subject,
int[] resourceIds)
subject - user requesting the deletion. must have resource delete perm on the resources.resourceIds - the resources being deleted
PageList<CreateResourceHistory> findCreateChildResourceHistory(Subject subject,
int parentResourceId,
Long beginDate,
Long endDate,
PageControl pageControl)
subject - the user making the requestparentResourceId - resource to check for child resource creationsbeginDate - 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, nullablepageControl - control for pagination
PageList<DeleteResourceHistory> findDeleteChildResourceHistory(Subject subject,
int parentResourceId,
Long beginDate,
Long endDate,
PageControl pageControl)
subject - the user making the requestparentResourceId - resource to check for deleted child resourcesbeginDate - filter used to show only results occurring after this epoch millis parameter, nullableendate - filter used to show only results occurring before this epoch millis parameter, nullablepageControl - control for pagination
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||