public interface IRSyncable extends IBinaryCapability
| Modifier and Type | Interface and Description |
|---|---|
static class |
IRSyncable.Delete
Deletes extraneous files from destination directories when rsync'ing.
|
static class |
IRSyncable.Exclude
Excludes some files/directories that match the given patterns when rsync'ing
the remote pod and the local deployment directory.
|
static class |
IRSyncable.GitFolderExclude
Does not sync .git folders when rsync'ing
|
static class |
IRSyncable.LocalPeer |
static class |
IRSyncable.NoPerms
Avoids transferring file permissions when rsync'ing
|
static class |
IRSyncable.Peer |
static class |
IRSyncable.PodPeer |
IBinaryCapability.OpenShiftBinaryOption, IBinaryCapability.SkipTlsVerify| Modifier and Type | Field and Description |
|---|---|
static IBinaryCapability.OpenShiftBinaryOption |
DELETE
option to delete delete extraneous files from destination directories
|
static IBinaryCapability.OpenShiftBinaryOption |
EXCLUDE_GIT_FOLDER
option to skip verifying the certificates during TLS connection
establishment.
|
static IBinaryCapability.OpenShiftBinaryOption |
NO_PERMS
option to not transfer file permissions.
|
OPENSHIFT_BINARY_LOCATION, SKIP_TLS_VERIFY| Modifier and Type | Method and Description |
|---|---|
void |
await()
Blocks until the process is done.
|
static IBinaryCapability.OpenShiftBinaryOption |
exclude(String... expressions)
option to exclude files/folders that match the given expressions
|
int |
exitValue() |
boolean |
isDone()
Indicates if the
Process completed or not |
void |
stop()
Stops rsync'ing, forcibly if necessary.
|
InputStream |
sync(IRSyncable.Peer source,
IRSyncable.Peer destination,
IBinaryCapability.OpenShiftBinaryOption... options)
Synchronizes the give
destination with the given source |
getName, isSupportedstatic final IBinaryCapability.OpenShiftBinaryOption EXCLUDE_GIT_FOLDER
static final IBinaryCapability.OpenShiftBinaryOption NO_PERMS
static final IBinaryCapability.OpenShiftBinaryOption DELETE
static IBinaryCapability.OpenShiftBinaryOption exclude(String... expressions)
InputStream sync(IRSyncable.Peer source, IRSyncable.Peer destination, IBinaryCapability.OpenShiftBinaryOption... options)
destination with the given sourcesource - the source of the rsyncdestination - the destination of the rsyncoptions - the options to pass to the underlying oc rsync commandProcess streams to be displayed in a console.void stop()
boolean isDone()
Process completed or nottrue if the Process completed,
false otherwise.int exitValue()
Process exit value when it completed, -1 if it's
still runningvoid await()
throws InterruptedException
InterruptedException - if the current thread is interrupted while waitingCopyright © 2020 Red Hat, Inc. All Rights Reserved.