public class ApiSnapshotPolicy extends Object
Constructor and Description |
---|
ApiSnapshotPolicy() |
ApiSnapshotPolicy(String name,
String description,
long hourlySnapshots,
long dailySnapshots,
long weeklySnapshots,
long monthlySnapshots,
long yearlySnapshots) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
boolean |
getAlertOnAbort()
Whether to alert on abort of snapshot creation/deletion activity.
|
boolean |
getAlertOnFail()
Whether to alert on failure of snapshot creation/deletion activity.
|
boolean |
getAlertOnStart()
Whether to alert on start of snapshot creation/deletion activity.
|
boolean |
getAlertOnSuccess()
Whether to alert on successful completion of snapshot creation/deletion
activity.
|
long |
getDailySnapshots()
Number of daily snapshots to be retained.
|
byte |
getDayOfMonth()
Day of the month that monthly and yearly snapshots should be created.
|
byte |
getDayOfWeek()
Day of the week that weekly snapshots should be created.
|
String |
getDescription()
Description of the snapshot policy.
|
ApiHBaseSnapshotPolicyArguments |
getHBaseArguments()
Arguments specific to HBase snapshot policies.
|
ApiHdfsSnapshotPolicyArguments |
getHdfsArguments()
Arguments specific to Hdfs snapshot policies.
|
long |
getHourlySnapshots()
Number of hourly snapshots to be retained.
|
byte |
getHourOfDay()
Hour in the day that daily, weekly, monthly and yearly snapshots should be
created.
|
List<Byte> |
getHoursForHourlySnapshots()
Hours of the day that hourly snapshots should be created.
|
ApiSnapshotCommand |
getLastCommand()
Latest command of this policy.
|
ApiSnapshotCommand |
getLastSuccessfulCommand()
Last successful command of this policy.
|
byte |
getMinuteOfHour()
Minute in the hour that hourly, daily, weekly, monthly and yearly
snapshots should be created.
|
long |
getMonthlySnapshots()
Number of monthly snapshots to be retained.
|
byte |
getMonthOfYear()
Month of the year that yearly snapshots should be created.
|
String |
getName()
Name of the snapshot policy.
|
Boolean |
getPaused()
Whether to pause a snapshot policy, available since V11.
|
long |
getWeeklySnapshots()
Number of weekly snapshots to be retained.
|
long |
getYearlySnapshots()
Number of yearly snapshots to be retained.
|
int |
hashCode() |
void |
setAlertOnAbort(boolean alertOnAbort) |
void |
setAlertOnFail(boolean alertOnFail) |
void |
setAlertOnStart(boolean alertOnStart) |
void |
setAlertOnSuccess(boolean alertOnSuccess) |
void |
setDailySnapshots(long dailySnapshots) |
void |
setDayOfMonth(byte dayOfMonth) |
void |
setDayOfWeek(byte dayOfWeek) |
void |
setDescription(String description) |
void |
setHBaseArguments(ApiHBaseSnapshotPolicyArguments hbaseArguments) |
void |
setHdfsArguments(ApiHdfsSnapshotPolicyArguments hdfsArguments) |
void |
setHourlySnapshots(long hourlySnapshots) |
void |
setHourOfDay(byte hourOfDay) |
void |
setHoursForHourlySnapshots(List<Byte> hours) |
void |
setLastCommand(ApiSnapshotCommand lastCommand) |
void |
setLastSuccessfulCommand(ApiSnapshotCommand lastSuccessfulCommand) |
void |
setMinuteOfHour(byte minuteOfHour) |
void |
setMonthlySnapshots(long monthlySnapshots) |
void |
setMonthOfYear(byte monthOfYear) |
void |
setName(String name) |
void |
setPaused(Boolean paused) |
void |
setWeeklySnapshots(long weeklySnapshots) |
void |
setYearlySnapshots(long yearlySnapshots) |
String |
toString() |
public String getName()
public void setName(String name)
public String getDescription()
public void setDescription(String description)
public long getHourlySnapshots()
public void setHourlySnapshots(long hourlySnapshots)
public long getDailySnapshots()
public void setDailySnapshots(long dailySnapshots)
public long getWeeklySnapshots()
public void setWeeklySnapshots(long weeklySnapshots)
public long getMonthlySnapshots()
public void setMonthlySnapshots(long monthlySnapshots)
public long getYearlySnapshots()
public void setYearlySnapshots(long yearlySnapshots)
public byte getMinuteOfHour()
public void setMinuteOfHour(byte minuteOfHour)
public List<Byte> getHoursForHourlySnapshots()
public byte getHourOfDay()
public void setHourOfDay(byte hourOfDay)
public byte getDayOfWeek()
public void setDayOfWeek(byte dayOfWeek)
public byte getDayOfMonth()
public void setDayOfMonth(byte dayOfMonth)
public byte getMonthOfYear()
public void setMonthOfYear(byte monthOfYear)
public boolean getAlertOnStart()
public void setAlertOnStart(boolean alertOnStart)
public boolean getAlertOnSuccess()
public void setAlertOnSuccess(boolean alertOnSuccess)
public boolean getAlertOnFail()
public void setAlertOnFail(boolean alertOnFail)
public boolean getAlertOnAbort()
public void setAlertOnAbort(boolean alertOnAbort)
public ApiHBaseSnapshotPolicyArguments getHBaseArguments()
public void setHBaseArguments(ApiHBaseSnapshotPolicyArguments hbaseArguments)
public ApiHdfsSnapshotPolicyArguments getHdfsArguments()
public void setHdfsArguments(ApiHdfsSnapshotPolicyArguments hdfsArguments)
public ApiSnapshotCommand getLastCommand()
public void setLastCommand(ApiSnapshotCommand lastCommand)
public ApiSnapshotCommand getLastSuccessfulCommand()
public void setLastSuccessfulCommand(ApiSnapshotCommand lastSuccessfulCommand)
public Boolean getPaused()
public void setPaused(Boolean paused)
Copyright © Cloudera, Inc. Released under Apache License, Version 2.0.