com.sap.mdm.repository.commands
Class SynchronizeSlaveRepositoryCommand

java.lang.Object
  extended bycom.sap.mdm.commands.AbstractCommandBase
      extended bycom.sap.mdm.commands.AbstractCommand
          extended bycom.sap.mdm.session.AbstractSessionCommand
              extended bycom.sap.mdm.session.AbstractRepositorySessionCommand
                  extended bycom.sap.mdm.repository.commands.SynchronizeSlaveRepositoryCommand
All Implemented Interfaces:
Command, PassportSupport

public class SynchronizeSlaveRepositoryCommand
extends AbstractRepositorySessionCommand

A command for synchronizing the slave repository to the master repository. At the end of the synchronization, the slave repository is up-to-date to the time the synchronization started. Changes to the master repository while the synchronization is running will not be part of the synchronization run. Those changes will be in the next synchronization.

See Also:
CreateSlaveRepositoryCommand

Constructor Summary
SynchronizeSlaveRepositoryCommand(ConnectionAccessor connection)
          Creates a new instance of this command.
SynchronizeSlaveRepositoryCommand(RepositorySessionContext ctx)
          Creates a new instance of this command by context.
 
Method Summary
 long getDelay()
          Returns the delay interval between master-changes.
 int getMasterChangeId()
          Deprecated. it never did work correctly
 int getSlaveChangeId()
          Deprecated. it never did work correctly
 boolean isMoreChanges()
          Indicates additional changes to the master repository after the synchronization process started.
 void setDelay(long delay)
          Specifies the delay interval between master-changes (optional).
 
Methods inherited from class com.sap.mdm.commands.AbstractCommand
getSession, setSession
 
Methods inherited from class com.sap.mdm.commands.AbstractCommandBase
execute, getPassport, isCommandComplete, setPassport
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SynchronizeSlaveRepositoryCommand

public SynchronizeSlaveRepositoryCommand(ConnectionAccessor connection)
Creates a new instance of this command.

Parameters:
connection - the connections to the server.

SynchronizeSlaveRepositoryCommand

public SynchronizeSlaveRepositoryCommand(RepositorySessionContext ctx)
                                  throws ConnectionException,
                                         SessionException
Creates a new instance of this command by context.

Parameters:
ctx - the repository session context.
Method Detail

getMasterChangeId

public int getMasterChangeId()
Deprecated. it never did work correctly

Returns:
Returns the master change Id.

getSlaveChangeId

public int getSlaveChangeId()
Deprecated. it never did work correctly

Returns:
Returns the slave change Id.

isMoreChanges

public boolean isMoreChanges()
Indicates additional changes to the master repository after the synchronization process started.

Returns:
indicates more changes

setDelay

public void setDelay(long delay)
Specifies the delay interval between master-changes (optional). The default is no delay, zero. The minimum delay is zero. The maximum is 600,000 milliseconds (10 minutes).

Parameters:
delay - the delay in milliseconds
See Also:
SP06

getDelay

public long getDelay()
Returns the delay interval between master-changes.

Returns:
the delay in milliseconds
See Also:
SP06


Copyright 2004-2007 by SAP AG. All Rights Reserved.

SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary.

These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies (SAP Group) for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.