public final class SystemScope extends Scope
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
TYPE
The constant for
Scope.getScopeType(). |
| Modifier and Type | Method and Description |
|---|---|
static SystemScope |
create(boolean singleHostPerRole,
java.lang.String[] beHostRoles)
Creates system scope targeting given backend hosts or roles.
|
java.lang.String[] |
getBeHostRoles()
Returns array of the target backend host roles defined in this scope.
|
java.lang.String |
getScopeType()
Returns a string identification of the scope type.
|
boolean |
isSingleHostPerRole()
Tells whether single or all backend hosts with the supplied role(s) (see
getBeHostRoles())
should execute the Task or Rule. |
java.lang.String |
toString() |
public static final java.lang.String TYPE
Scope.getScopeType().public static SystemScope create(boolean singleHostPerRole, java.lang.String[] beHostRoles)
singleBeHost - defines whether single or all backend hosts with the supplied (by beHostRoles parameter)
role(s) should execute the Task or Rule.beTargets - array of the target backend host roles.
Elements of the array can be one of Roles.CC, Roles.MS, Roles.RAS,
or id of particular Management Server. Also, array of concrete backend host ids can be provided - in such
a case, the singleHostPerRole parameter is ignored.public java.lang.String[] getBeHostRoles()
public boolean isSingleHostPerRole()
getBeHostRoles())
should execute the Task or Rule. This method is applicable for System-scopes.public java.lang.String getScopeType()
ScopegetScopeType in class Scopepublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2019 Bosch Software Innovations GmbH. All Rights Reserved.