Class MirrorContext
java.lang.Object
com.linecorp.centraldogma.server.mirror.MirrorContext
A context of a mirror.
-
Constructor Summary
ConstructorsConstructorDescriptionMirrorContext(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 Summary
Modifier and TypeMethodDescriptionReturns the credential of this mirror.Returns the direction of this mirror.booleanenabled()Returns whether this mirror is enabled or not.@Nullable StringReturns 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.@Nullable com.cronutils.model.Cronschedule()Returns the cron schedule of this mirror.toString()@Nullable Stringzone()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
public @Nullable com.cronutils.model.Cron schedule()Returns the cron schedule of this mirror.nullif 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
-