public class ConfObjectDelta extends ConfObject
RequestRegisterNotification
);EventObjectUpdated
protocol messages containing "delta" data in
EventObjectUpdated.getObjectDelta()
value.
ConfObjectDelta hostDelta = new ConfObjectDelta(metadata, CfgObjectType.CFGHost);
ConfObject obj = (ConfObject) hostDelta.getOrCreatePropertyValue("deltaHost");
obj.setPropertyValue("DBID", objDbid); // - required
obj.setPropertyValue("name", "new-host-name"); // - to set new host name (if needed)
obj.setPropertyValue("IPaddress", "21.21.21.21"); // - to change ip address (if needed)
RequestUpdateObject reqUpdate = RequestUpdateObject.create();
reqUpdate.setObjectDelta(hostDelta);
Message resp = protocol.request(reqUpdate);
if (resp instanceof EventObjectUpdated) {
// The object has been updated
} else if (resp instanceof EventError) {
log.error("Error on object update: "
+ CfgUtilities.getErrorCode(((EventError) resp).getErrorCode())
+ "\tDescription: " + ((EventError) resp).getDescription());
}
Constructor | Description |
---|---|
ConfObjectDelta(CfgDescriptionObjectDelta metadata) |
Constructor for creation of uninitialized delta object container of particular type.
|
ConfObjectDelta(CfgMetadata metadata,
CfgObjectType objType) |
Constructor for creation of uninitialized delta object container of particular type.
|
Modifier and Type | Method | Description |
---|---|---|
CfgDescriptionObjectDelta |
getClassInfo() |
Returns reference to the delta object class MetaData description.
|
java.lang.Integer |
getObjectDbid() |
Configuration objects DBID uniquely identifies configuration object of a particular type on particular
configuration server.
|
getObjectType
checkTypeCompatibility, clone, createChildElement, equals, getAttributeInfo, getOrCreatePropertyValue, getPropertyInfo, getPropertyValue, getPropertyValue, hashCode, setPropertyValue, setPropertyValue, toString, toString, toStringContentHelper, toStringHelper
public ConfObjectDelta(CfgDescriptionObjectDelta metadata)
metadata
- configuration object class MetaData.ConfObjectAttributeException
- if given MetaData is null or there is some problem
with its usage for this data structure.public ConfObjectDelta(CfgMetadata metadata, CfgObjectType objType)
metadata
- actual configuration server MetaData.objType
- configuration object type.java.lang.NullPointerException
- if given MetaData is null.ConfObjectAttributeException
- if referred MetaData does not contain description
of given object type or there is some problem with its usage for this data structure.public CfgDescriptionObjectDelta getClassInfo()
getClassInfo
in class ConfObject
public java.lang.Integer getObjectDbid()
ConfObject
[object type, object DBID]
uniquely specifies
particular configuration object in configuration server database.
This value is been assigned by configuration server at moment of the object creation
and can't be changed during its whole life cycle.
This method is a helper to find the DBID value in the object properties or
properties of child structures depending on this object type.getObjectDbid
in class ConfObject
Send comments on this topicTechpubs.webadmin@genesys.com.
Document version: 9.0.006.00
Copyright © 2006–2019 Genesys Telecommunications Laboratories, Inc. All rights reserved.