Class MirrorContext
java.lang.Object
com.linecorp.centraldogma.server.mirror.MirrorContext
A context of a mirror.
-
Constructor Summary
ConstructorDescriptionMirrorContext
(String id, boolean enabled, com.cronutils.model.Cron schedule, MirrorDirection direction, Credential credential, Repository localRepo, String localPath, URI remoteUri, String gitignore, String zone) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionReturns the credential of this mirror.Returns the direction of this mirror.boolean
enabled()
Returns whether this mirror is enabled or not.Returns the gitignore of this mirror.id()
Returns the ID of this mirror.Returns the local path of this mirror.Returns the local repository of this mirror.Returns the remote URI of this mirror.com.cronutils.model.Cron
schedule()
Returns the cron schedule of this mirror.toString()
zone()
Returns the zone where this mirror is pinned.
-
Constructor Details
-
MirrorContext
public MirrorContext(String id, boolean enabled, @Nullable com.cronutils.model.Cron schedule, MirrorDirection direction, Credential credential, Repository localRepo, String localPath, URI remoteUri, @Nullable String gitignore, @Nullable String zone) Creates a new instance.
-
-
Method Details
-
id
Returns the ID of this mirror. -
enabled
public boolean enabled()Returns whether this mirror is enabled or not. -
schedule
@Nullable public com.cronutils.model.Cron schedule()Returns the cron schedule of this mirror.null
if this mirror is not scheduled automatically. -
direction
Returns the direction of this mirror. -
credential
Returns the credential of this mirror. -
localRepo
Returns the local repository of this mirror. -
localPath
Returns the local path of this mirror. -
remoteUri
Returns the remote URI of this mirror. -
gitignore
Returns the gitignore of this mirror. -
zone
Returns the zone where this mirror is pinned. -
toString
-