|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--com.bea.ales.management.ResourceManager
This class manages resources. It provides methods to create, delete, rename and find resources.
| Field Summary | |
static int |
BINDING_TYPE_ALL
Specifies any binding type. |
static int |
BINDING_TYPE_BOUND
Specifies unbound binding type. |
static int |
BINDING_TYPE_UNBOUND
Specifies bound binding type. |
| Method Summary | |
Resource |
create(java.lang.String resourceName)
Create the resource by fully qualified name. |
Resource |
create(java.lang.String resourceName,
java.lang.String description,
boolean isBinding,
boolean isDistPoint,
boolean isAllowVirtualResource)
Create resource by fully qualified name. |
Resource |
get(java.lang.String resourceName)
Get a resource by fully qualified name. |
ResourceQueryResult |
getBindingNodes(java.lang.String queryString,
int bindingType)
Find all binding resources in the system which has the specified binding type and matches the given the filter string. |
ResourceQueryResult |
getDistributionPoints(java.lang.String queryString)
Find all distribution points in the system which matches the given the filter string. |
Resource |
getParent(java.lang.String childResName)
Get the parent for the specified resource. |
void |
remove(Resource res,
boolean isCascade)
Remove the resource and all its children. |
void |
remove(java.lang.String resourceName,
boolean isCascade)
Remove the resource by fully qualified name and all its children . |
void |
rename(Resource res,
java.lang.String newRelativeName)
Rename the resource to the given name. |
| Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Field Detail |
public static final int BINDING_TYPE_ALL
public static final int BINDING_TYPE_BOUND
public static final int BINDING_TYPE_UNBOUND
| Method Detail |
public Resource create(java.lang.String resourceName)
throws ManagementException
resourceName - the fully qualified resource name.
public Resource create(java.lang.String resourceName,
java.lang.String description,
boolean isBinding,
boolean isDistPoint,
boolean isAllowVirtualResource)
throws ManagementException
resourceName - the fully qualified resource name.description - description for the resource.isBinding - This parameter is only useful for DefaultApp, it will be ignored with other application.
For default application, true if the resource is a binding node, or false if not.isDistPoint - true if the resource is a distribution point, or false if not.isAllowVirtualResource - true if the resource is virtual resource, or false if not.
public Resource get(java.lang.String resourceName)
throws ManagementException
resourceName - the fully qualified name of the resource.
public void remove(java.lang.String resourceName,
boolean isCascade)
throws ManagementException
resourceName - the fully qualified name of the resource to be removed.isCacade - true for removing the resource and all its related policies, or false
for only removing resource
public void remove(Resource res,
boolean isCascade)
throws ManagementException
res - the resource instance to be removedisCacade - true for removing the resource and all its related policies, or false
for only removing resource
public void rename(Resource res,
java.lang.String newRelativeName)
throws ManagementException
res - the resource instance to be renamednewRelativeName - the new relative name for the resource
public Resource getParent(java.lang.String childResName)
throws ManagementException
childResName - fully qualified resource name of the child.
public ResourceQueryResult getBindingNodes(java.lang.String queryString,
int bindingType)
throws ManagementException
queryString - the pattern that the resources matches.bindingType - one of the following value BINDING_TYPE_ALL and BINDING_TYPE_UNBOUND or
BINDING_TYPE_BOUND
public ResourceQueryResult getDistributionPoints(java.lang.String queryString)
throws ManagementException
queryString - the pattern that the resources matches.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||