com.microstrategy.web.objects.WebProjectManipulator |
The WebProjectManipulator interface represents the behavior of an
object that can change properties of a project within a Cluster. An
object of this type obtained from a WebClusterMembership
object
will affect a project on all servers within the membership cluster. And
object of this type obtained from a WebClusterMember
object
will only affect the project for that specific member.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract void |
applyChanges(WebProjectInstance project)
Applies all changes to the project specified by project.
| ||||||||||
abstract void |
setAction(int action)
Sets the action to be applied to the project.
| ||||||||||
abstract void |
setMaxWait(int maxWaitSeconds)
Sets the maximum amount of time, in seconds, the API will wait
Currently, only supported for Loading project especially when project is offline pending.
| ||||||||||
abstract void |
setStatus(int status)
Sets the status to be used when the change is applied
|
Applies all changes to the project specified by project.
project | Project that manipulations will affect |
---|
WebObjectsException |
---|
Sets the action to be applied to the project. Uses the status set in setStatus(int)
.
If the action is DssXmlOpenProject
, the status is set directly.
If the action is DssXmlIdleProject
, the status bits are set.
If the action is DssXmlResumeProject
, the status bits are reset.
action | Action to be performed on the project. Value must be from
EnumDSSXMLProjectActions .
|
---|
Sets the maximum amount of time, in seconds, the API will wait Currently, only supported for Loading project especially when project is offline pending. It would wait for project status to change to offline and then load the project. This can be used to provide an upper bound on synchronous execution time. the command will be blocked for given timeout duration until the project status is changed (and thus has performance impact)
maxWaitSeconds | timeout in seconds |
---|
Sets the status to be used when the change is applied
status | Status of the project. Value must be from
EnumDSSXMLProjectStatus .
|
---|