|
© 2001 BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.bea.p13n.management.data.DirectoryDataSync
This class synchronizes a directory on disk with a running WLS server.
Constructor Summary | |
DirectoryDataSync(java.lang.String rootDirectory,
java.lang.String url,
java.lang.String realm,
java.lang.String login,
java.lang.String password,
com.bea.p13n.management.data.repository.SynchronizationListener listener)
Creates an object capable of synchronizing the data in a directory on the file system with that within a running WLS server. |
Method Summary | |
static void |
main(java.lang.String[] args)
Main method for running the directory synchronization utility. |
void |
sync(java.lang.String syncMode)
Synchronizes the data on the file system with that in a running WLS server instance. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public DirectoryDataSync(java.lang.String rootDirectory, java.lang.String url, java.lang.String realm, java.lang.String login, java.lang.String password, com.bea.p13n.management.data.repository.SynchronizationListener listener) throws java.lang.NumberFormatException, DataManagementException, java.lang.IllegalArgumentException
sync
method to perform the synchronization.
rootDirectory
- the root directory on the file system to be sychronizedurl
- the synchronization URL in the form http://localhost:7501/datasync/DataSyncServletrealm
- the realm in which the user should be authenticated.login
- the login name to use for HTTP authentication.password
- the password to use for HTTP authentication.listener
- the SynchronizationListener on which to make perform callbacks as results
of a data synchronization are parsed.Method Detail |
public void sync(java.lang.String syncMode) throws com.bea.p13n.management.data.message.MessageException, com.bea.p13n.management.data.repository.PersistenceException
syncMode
- the mode to use. One of: SynchronizerFactory.ONE_WAY_FROM_CLIENT
("one-way-from-client") or SynchronizerFactory.REFRESH_FROM_CLIENT ("refresh-from-client")
The ONE_WAY_FROM_CLIENT mode will only send the created/updated or deleted files to the server to minimize bandwidth.
The REFRESH_FROM_CLIENT mode will clear the data from the server and send all the data on the file system. This mode should be used to recover from an earlier failure.
public static void main(java.lang.String[] args) throws java.lang.Exception
|
© 2001 BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |