public interface ResourceFactoryManagerRemote
| Modifier and Type | Method and Description |
|---|---|
org.rhq.core.domain.resource.CreateResourceHistory |
createPackageBackedResource(org.rhq.core.domain.auth.Subject subject,
int parentResourceId,
int newResourceTypeId,
String newResourceName,
org.rhq.core.domain.configuration.Configuration pluginConfiguration,
String packageName,
String packageVersion,
Integer architectureId,
org.rhq.core.domain.configuration.Configuration deploymentTimeConfiguration,
byte[] packageBits,
Integer timeout)
Creates a new physical resource.
|
org.rhq.core.domain.resource.CreateResourceHistory |
createPackageBackedResourceViaPackageVersion(org.rhq.core.domain.auth.Subject subject,
int parentResourceId,
int newResourceTypeId,
String newResourceName,
org.rhq.core.domain.configuration.Configuration pluginConfiguration,
org.rhq.core.domain.configuration.Configuration deploymentTimeConfiguration,
int packageVersionId,
Integer timeout)
Creates a new physical resource.
|
org.rhq.core.domain.resource.CreateResourceHistory |
createResource(org.rhq.core.domain.auth.Subject subject,
int parentResourceId,
int resourceTypeId,
String resourceName,
org.rhq.core.domain.configuration.Configuration pluginConfiguration,
org.rhq.core.domain.configuration.Configuration resourceConfiguration,
Integer timeout)
Creates a new physical resource.
|
org.rhq.core.domain.resource.DeleteResourceHistory |
deleteResource(org.rhq.core.domain.auth.Subject subject,
int resourceId)
Deletes a physical resource from the agent machine.
|
List<org.rhq.core.domain.resource.DeleteResourceHistory> |
deleteResources(org.rhq.core.domain.auth.Subject subject,
int[] resourceIds)
Deletes physical resources from the agent machine.
|
org.rhq.core.domain.util.PageList<org.rhq.core.domain.resource.CreateResourceHistory> |
findCreateChildResourceHistory(org.rhq.core.domain.auth.Subject subject,
int parentResourceId,
Long beginDate,
Long endDate,
org.rhq.core.domain.util.PageControl pageControl)
Returns a pagination enabled list of requests for the creation of new child resources to the specified parent.
|
org.rhq.core.domain.util.PageList<org.rhq.core.domain.resource.DeleteResourceHistory> |
findDeleteChildResourceHistory(org.rhq.core.domain.auth.Subject subject,
int parentResourceId,
Long beginDate,
Long endDate,
org.rhq.core.domain.util.PageControl pageControl)
Returns a pagination enabled list of requests to delete a child resource on the specified parent.
|
org.rhq.core.domain.resource.CreateResourceHistory createResource(org.rhq.core.domain.auth.Subject subject,
int parentResourceId,
int resourceTypeId,
String resourceName,
org.rhq.core.domain.configuration.Configuration pluginConfiguration,
org.rhq.core.domain.configuration.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.org.rhq.core.domain.resource.CreateResourceHistory createPackageBackedResource(org.rhq.core.domain.auth.Subject subject,
int parentResourceId,
int newResourceTypeId,
String newResourceName,
org.rhq.core.domain.configuration.Configuration pluginConfiguration,
String packageName,
String packageVersion,
Integer architectureId,
org.rhq.core.domain.configuration.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.org.rhq.core.domain.resource.CreateResourceHistory createPackageBackedResourceViaPackageVersion(org.rhq.core.domain.auth.Subject subject,
int parentResourceId,
int newResourceTypeId,
String newResourceName,
org.rhq.core.domain.configuration.Configuration pluginConfiguration,
org.rhq.core.domain.configuration.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.org.rhq.core.domain.resource.DeleteResourceHistory deleteResource(org.rhq.core.domain.auth.Subject subject,
int resourceId)
subject - user requesting the deletion. must have resource delete perm on the resource.resourceId - resource being deletedList<org.rhq.core.domain.resource.DeleteResourceHistory> deleteResources(org.rhq.core.domain.auth.Subject subject, int[] resourceIds)
subject - user requesting the deletion. must have resource delete perm on the resources.resourceIds - the resources being deletedorg.rhq.core.domain.util.PageList<org.rhq.core.domain.resource.CreateResourceHistory> findCreateChildResourceHistory(org.rhq.core.domain.auth.Subject subject,
int parentResourceId,
Long beginDate,
Long endDate,
org.rhq.core.domain.util.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 paginationorg.rhq.core.domain.util.PageList<org.rhq.core.domain.resource.DeleteResourceHistory> findDeleteChildResourceHistory(org.rhq.core.domain.auth.Subject subject,
int parentResourceId,
Long beginDate,
Long endDate,
org.rhq.core.domain.util.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 paginationCopyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.