public class VMMSyncParameters
extends java.lang.Object
These are the key/value pairs from the ldapsyncparams table for this cron task instance.
If change polling is not supported for this instance then there will be no data.
The value for parameter "CheckPoint" is a string containing one or more repository IDs and its associated checkpoint,
delimited with bars and equals signs, for example
AD1=123|AD2=456
indicates that for the repository AD1, the checkpoint is 123, and for the repository AD2, the checkpoint is 456.
At this point, there is only one parameter, VMMSynchronizer.CHECKPOINT
.
Constructor and Description |
---|
VMMSyncParameters() |
Modifier and Type | Method and Description |
---|---|
commonj.sdo.DataObject |
checkpointMapToObject(java.util.HashMap<java.lang.String,java.lang.String> cpMap,
commonj.sdo.DataObject controlDO,
boolean fullSync)
Given a ChangeControl DataObject to be sent to VMM, construct child DataObject(s) containing the
checkpoint(s) to start searching from.
|
java.lang.String |
checkpointMapToString(java.util.HashMap in)
Given a HashMap of checkpoints, return a string suitable for storing in ldapsyncparams.
|
java.util.HashMap<java.lang.String,java.lang.String> |
checkpointObjectToMap(commonj.sdo.DataObject inDO)
Given a DataObject returned from VMM, construct a HashMap keyed by repository ID
with value equal to string representation of the checkpoint.
|
java.util.HashMap<java.lang.String,java.lang.String> |
checkpointStringToMap(java.lang.String in)
Given a checkpoint string value from ldapsyncparams, return a HashMap keyed by repository ID
with value equal to string representation of the checkpoint.
|
java.lang.String |
get(java.lang.String parameterName)
Returns the value of the parameter.
|
java.util.Iterator |
getParameters()
Returns an Iterator object to iterate over the list
of parameters.
|
void |
put(java.lang.String parameterName,
java.lang.String value)
Puts the parameter and its value in a cache.
|
int |
size()
Returns the number of parameters.
|
public java.lang.String get(java.lang.String parameterName)
parameterName
- name of the parameter for which
value is needed.public void put(java.lang.String parameterName, java.lang.String value)
parameterName
- name of the parametervalue
- the value of the parameter,
which can be null.public java.util.Iterator getParameters()
public java.lang.String checkpointMapToString(java.util.HashMap in)
in
- HashMap of checkpointspublic java.util.HashMap<java.lang.String,java.lang.String> checkpointStringToMap(java.lang.String in)
in
- String specifying checkpoint, value from ldapsyncparams table.public java.util.HashMap<java.lang.String,java.lang.String> checkpointObjectToMap(commonj.sdo.DataObject inDO) throws VMMSyncException
inDO
- ChangeResponseControl DataObject containing the checkpoint(s)VMMSyncException
public commonj.sdo.DataObject checkpointMapToObject(java.util.HashMap<java.lang.String,java.lang.String> cpMap, commonj.sdo.DataObject controlDO, boolean fullSync) throws VMMSyncException
VMMSyncException
VMMSynchronizer.lastCheckPoint
public int size()