|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.waveset.object.PersistentObject
com.waveset.object.Service
An abstract class used by the Role to reference resource and application objects.
Both the Resource
and Application
classes
will extend this class, so they can be treated in a uniform way.
An appliication is simply a collection of resources.
Nested Class Summary |
Nested classes inherited from class com.waveset.object.PersistentObject |
PersistentObject.Comparator, PersistentObject.InitialInstance |
Field Summary | |
static java.lang.String |
code_id
|
Fields inherited from class com.waveset.object.PersistentObject |
_trace, trace |
Constructor Summary | |
Service()
|
Method Summary | |
static void |
checkForReferenceCycles(Service service,
java.util.Stack history)
Recursively walk down a reference chain, watching for cycles. |
void |
dumpSummary(java.lang.String file)
|
void |
findApplications(java.util.List list)
see findResources. |
void |
findApplications(java.util.List list,
boolean checkForCycles)
The call that recurses - takes a boolean check flag so that only has to be done once. |
protected java.util.Collection |
findResourceAssignments(java.util.Collection assignments)
Traverse the hierarchy of Services contained in this object, constructing a set of possibly qualified Resource references. |
void |
findResources(java.util.List list)
Recursively walk a tree of Services building up a list of Resource references. |
void |
findRoleAttributes(java.util.List list)
Return all of the role attributes associated with all of the applications associated with this service. |
void |
findRoleExclusions(java.util.Map map)
Return all of the role exclusions associated with all of the roles associated with this service. |
void |
findRoles(java.util.List list)
see findResources. |
void |
findRoles(java.util.List list,
boolean checkForCycles)
The call that recurses - takes a boolean check flag so that only has to be done once. |
void |
findServices(java.util.List list)
see findResources. |
void |
findServices(java.util.List list,
boolean checkForCycles)
The call that recurses - takes a boolean check flag so that only has to be done once. |
static java.util.Set |
getFlatResourceAssignments(java.util.List services,
ObjectCache cache,
java.util.Set assigns)
Given a list of Services or service references, calculate a flat list of resolved ResourceAssignment objects. |
java.util.Set |
getFlatResourceAssignments(java.util.Set assigns)
Calculate a flat collection of resolved Resource objects referenced directly or indirectly by this service. |
void |
getFlatResources(java.util.List resources)
Calculate a flat list of resolved Resource objects referenced directly or indirectly by this service. |
static void |
getFlatResources(java.util.List services,
ObjectCache cache,
java.util.List resources)
Given a list of Services or service references, calculate a flat list of resolved Resource objects. |
static java.util.Set |
getFlatResources(java.util.List services,
ObjectCache cache,
java.util.Set resources)
|
java.util.Set |
getFlatResources(java.util.Set resources)
|
abstract java.util.Set |
getResourceAssignmentRefs()
Return the set of possibly qualified resource object references encapsulated by this Service and any Service it contains. |
abstract java.util.Set |
getResourceAssignments()
Return the set of ResourceAssignments encapsulated by this Service and any Services it contains. |
abstract java.util.List |
getResourceRefs()
Return a flattened list of resource object references encapsulated by this Service and any Service it contains. |
abstract Resource[] |
getResources()
Return a flattened array of resolved resource objects encapsulated by this service and any Service it contains. |
abstract java.util.List |
getServiceRefs()
Return a list of Service object references encapsulated by this service. |
abstract Service[] |
getServices()
Return an array of resolved service objects, immediately referenced by this object. |
boolean |
isOrdered()
Override this if this service is a container and order is important. |
java.lang.String |
toIdentityString()
|
java.lang.String |
toVerboseString()
|
java.lang.String |
toVerboseString(java.lang.String indent)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String code_id
Constructor Detail |
public Service()
Method Detail |
public abstract java.util.List getServiceRefs()
public abstract Service[] getServices() throws WavesetException
WavesetException
public abstract java.util.List getResourceRefs() throws WavesetException
WavesetException
public abstract java.util.Set getResourceAssignmentRefs() throws WavesetException
WavesetException
public abstract Resource[] getResources() throws WavesetException
WavesetException
public abstract java.util.Set getResourceAssignments() throws WavesetException
WavesetException
public void findResources(java.util.List list) throws WavesetException
We don't really need to filter duplicates, the Provisioner will tolerate duplicates, but lets go ahead while we're here to cut down on resolution overhead.
WavesetException
protected java.util.Collection findResourceAssignments(java.util.Collection assignments) throws WavesetException
WavesetException
public void findApplications(java.util.List list) throws WavesetException
WavesetException
public void findApplications(java.util.List list, boolean checkForCycles) throws WavesetException
WavesetException
public void findRoles(java.util.List list) throws WavesetException
WavesetException
public void findRoles(java.util.List list, boolean checkForCycles) throws WavesetException
WavesetException
public void findServices(java.util.List list) throws WavesetException
WavesetException
public void findServices(java.util.List list, boolean checkForCycles) throws WavesetException
WavesetException
public void findRoleAttributes(java.util.List list) throws WavesetException
list
- an existing list to add found role attributes to
WavesetException
public void findRoleExclusions(java.util.Map map) throws WavesetException
map
- an existing Map to add found role exclusions to. The map
is keyed by excluded role name and the values are the
roles that contain the exclusion
WavesetException
public static void checkForReferenceCycles(Service service, java.util.Stack history) throws WavesetException
service
- the service to check for cycleshistory
- a Stack of Services that contain service. Pass null
to check a top level service.
WavesetException
public void getFlatResources(java.util.List resources) throws WavesetException
WavesetException
public java.util.Set getFlatResources(java.util.Set resources) throws WavesetException
WavesetException
public java.util.Set getFlatResourceAssignments(java.util.Set assigns) throws WavesetException
WavesetException
public static void getFlatResources(java.util.List services, ObjectCache cache, java.util.List resources) throws WavesetException
// This has become the core resource flattener, we don't really // need everything else above, but you have to be careful about // removing things.
WavesetException
public static java.util.Set getFlatResources(java.util.List services, ObjectCache cache, java.util.Set resources) throws WavesetException
WavesetException
public static java.util.Set getFlatResourceAssignments(java.util.List services, ObjectCache cache, java.util.Set assigns) throws WavesetException
WavesetException
public boolean isOrdered()
public void dumpSummary(java.lang.String file)
public java.lang.String toIdentityString()
public java.lang.String toVerboseString()
public java.lang.String toVerboseString(java.lang.String indent)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |