public interface BaseFramework
Modifier and Type | Method and Description |
---|---|
void |
deleteObject(ObjectStateHolder osh)
Enqueue the object on the framework for deletion.
|
void |
deleteObjects(ObjectStateHolderVector deletedObjects)
Updates the framework with the CI objects deleted by a pattern while the
pattern is still running.
|
void |
flushObjects()
Sends all the objects waiting for update, creation and deletion to the server and clears the cache.
|
java.lang.String |
getParameter(java.lang.String paramName)
Returns the value of the specified parameter defined on the pattern XML.
|
java.lang.String |
getTriggerCIData(java.lang.String attributeName)
Returns the value of the specified attribute from the CI that triggered the discovery
|
java.lang.String[] |
getTriggerCIDataAsList(java.lang.String attributeName)
Returns the values of the specified attribute from the CI that triggered the discovery
|
void |
reportError(int msgCode,
java.lang.String[] params)
Reports an error during a script run and marks the trigger failed.
|
void |
reportError(java.lang.String message)
Reports an error during a script run and marks the trigger failed.
|
void |
reportFatal(int msgCode,
java.lang.String[] params)
Reports a fatal error message on this trigger CI to the user interface during a script run.
|
void |
reportFatal(java.lang.String message)
Writes a fatal error message on this trigger CI to the user interface during a script run.
|
void |
reportWarning(int msgCode,
java.lang.String[] params)
Reports a warning on this trigger CI during a script run.
|
void |
reportWarning(java.lang.String message)
Writes a warning on this trigger CI during a script run.
|
void |
sendObject(ObjectStateHolder osh)
Enqueue the object on the framework for create or update.
|
void |
sendObjects(ObjectStateHolderVector discoveredObjects)
Updates the framework with the CI objects created by a pattern while the
pattern is still running.
|
java.lang.String getTriggerCIData(java.lang.String attributeName)
attributeName
- The attribute namejava.lang.String[] getTriggerCIDataAsList(java.lang.String attributeName)
attributeName
- The attribute namejava.lang.String getParameter(java.lang.String paramName)
paramName
- The parameter namevoid reportError(java.lang.String message)
reportError
is displayed on the
user interface and is written to the log file. If the UCMDB is configured
to create communication logs, a file is created for this message.
message
and the session parameters
in effect at the time of the reportError
invocation.
reportError
clears the previous
error.message
- The error messagereportWarning(String)
,
reportFatal(String)
void reportFatal(java.lang.String message)
message
- The error messagereportError(String)
,
reportWarning(String)
void reportWarning(java.lang.String message)
reportError
.message
- The warning messagereportFatal(String)
,
reportError(String)
void sendObject(ObjectStateHolder osh)
osh
- The object to sendvoid deleteObject(ObjectStateHolder osh)
osh
- The object to deletedeleteObjects(ObjectStateHolderVector)
void sendObjects(ObjectStateHolderVector discoveredObjects)
sendObjects
does not wait for
the script to complete and return the newly created CIs.
It is designed for use in a script where the
results are expected to be very large. Using sendObjects
helps avoid OutOfMemory errors that can occur when the probe when stores
too many results in memory. sendObjects
. For example, after each
sendObjects
invocation, clear the
ObjectStateHolderVector
instance or use a new
ObjectStateHolderVector
object.discoveredObjects
- A vector of the objects that have been
discovered at the time of the sendObjects
invocationvoid deleteObjects(ObjectStateHolderVector deletedObjects)
deleteObjects
collects the deleted objects and sends them to the server
before the script run is finished. deletedObjects
- A Vector of Objects of the objects the probe has
marked for deletion at the time of the
deleteObjects
invocationsendObjects(appilog.common.system.types.vectors.ObjectStateHolderVector)
void flushObjects()
void reportError(int msgCode, java.lang.String[] params)
msgCode
- the code of the error messageparams
- the parameters required for this error message (null - if no parameters are required)void reportWarning(int msgCode, java.lang.String[] params)
msgCode
- the code of the error messageparams
- the parameters required for this error message (null - if no parameters are required)void reportFatal(int msgCode, java.lang.String[] params)
msgCode
- the code of the error messageparams
- the parameters required for this error message (null - if no parameters are required)Documentation Feedback
Copyright 2012 Micro Focus or one of its affiliates.