public class SummaryOutput extends Object
Constructor and Description |
---|
SummaryOutput(MasterInfo masterInfo,
BlockMasterInfo blockMasterInfo)
Creates a new instance of
SummaryOutput . |
Modifier and Type | Method and Description |
---|---|
long |
getFreeCapacityBytes()
Get free capacity in bytes.
|
int |
getLiveWorkers()
Get live workers.
|
int |
getLostWorkers()
Get lost workers.
|
String |
getMasterAddress()
Get master address.
|
List<alluxio.cli.fsadmin.report.SummaryOutput.SerializableMasterVersion> |
getMasterVersions()
Get master versions.
|
List<String> |
getRaftJournalAddress()
Get raft journal address.
|
int |
getRpcPort()
Get rpc port.
|
long |
getStartTime()
Get started time.
|
Map<String,Long> |
getTotalCapacityOnTiers()
Get capacity by tiers.
|
long |
getUptimeDuration()
Get time running.
|
Map<String,Long> |
getUsedCapacityOnTiers()
Get used capacity by tiers.
|
String |
getVersion()
Get Alluxio version.
|
int |
getWebPort()
Get web port.
|
List<String> |
getZookeeperAddress()
Get zookeeper address.
|
boolean |
isSafeMode()
Get if in safe mode.
|
boolean |
isUseRaftJournal()
Get if Alluxio uses raft journal.
|
boolean |
isUseZookeeper()
Get if zookeeper is running.
|
void |
setFreeCapacityBytes(long freeCapacityBytes)
Set free capacity in bytes.
|
void |
setLiveWorkers(int liveWorkers)
Set live workers.
|
void |
setLostWorkers(int lostWorkers)
Set lost workers.
|
void |
setMasterAddress(String masterAddress)
Set master address.
|
void |
setMasterVersions(List<alluxio.cli.fsadmin.report.SummaryOutput.SerializableMasterVersion> masterVersions)
Set master versions.
|
void |
setRaftJournalAddress(List<String> raftJournalAddress)
Set raft journal address.
|
void |
setRpcPort(int rpcPort)
Set rpc port.
|
void |
setSafeMode(boolean safeMode)
Set if in safe mode.
|
void |
setStartTime(long startTime)
Set started time.
|
void |
setTotalCapacityOnTiers(Map<String,Long> totalCapacityOnTiers)
Get capacity by tiers.
|
void |
setUptimeDuration(long uptimeDuration)
Set time running.
|
void |
setUsedCapacityOnTiers(Map<String,Long> usedCapacityOnTiers)
Set used capacity by tiers.
|
void |
setUseRaftJournal(boolean useRaftJournal)
Set if Alluxio uses raft journal.
|
void |
setUseZookeeper(boolean useZookeeper)
Set if zookeeper is running.
|
void |
setVersion(String version)
Set Alluxio version.
|
void |
setWebPort(int webPort)
Set web port.
|
void |
setZookeeperAddress(List<String> zookeeperAddress)
Set zookeeper address.
|
public SummaryOutput(MasterInfo masterInfo, BlockMasterInfo blockMasterInfo)
SummaryOutput
.masterInfo
- given master infoblockMasterInfo
- given block master infopublic String getMasterAddress()
public void setMasterAddress(String masterAddress)
masterAddress
- master addresspublic int getWebPort()
public void setWebPort(int webPort)
webPort
- web portpublic int getRpcPort()
public void setRpcPort(int rpcPort)
rpcPort
- rpc portpublic long getStartTime()
public void setStartTime(long startTime)
startTime
- started timepublic long getUptimeDuration()
public void setUptimeDuration(long uptimeDuration)
uptimeDuration
- time runningpublic String getVersion()
public void setVersion(String version)
version
- Alluxio versionpublic boolean isSafeMode()
public void setSafeMode(boolean safeMode)
safeMode
- if in safe modepublic List<String> getZookeeperAddress()
public void setZookeeperAddress(List<String> zookeeperAddress)
zookeeperAddress
- zookeeper addresspublic boolean isUseZookeeper()
public void setUseZookeeper(boolean useZookeeper)
useZookeeper
- if zookeeper is runningpublic List<String> getRaftJournalAddress()
public void setRaftJournalAddress(List<String> raftJournalAddress)
raftJournalAddress
- raft journal addresspublic boolean isUseRaftJournal()
public void setUseRaftJournal(boolean useRaftJournal)
useRaftJournal
- if Alluxio uses raft journalpublic List<alluxio.cli.fsadmin.report.SummaryOutput.SerializableMasterVersion> getMasterVersions()
public void setMasterVersions(List<alluxio.cli.fsadmin.report.SummaryOutput.SerializableMasterVersion> masterVersions)
masterVersions
- master versionspublic int getLiveWorkers()
public void setLiveWorkers(int liveWorkers)
liveWorkers
- live workerspublic int getLostWorkers()
public void setLostWorkers(int lostWorkers)
lostWorkers
- lost workerspublic long getFreeCapacityBytes()
public void setFreeCapacityBytes(long freeCapacityBytes)
freeCapacityBytes
- free capacitypublic Map<String,Long> getTotalCapacityOnTiers()
public void setTotalCapacityOnTiers(Map<String,Long> totalCapacityOnTiers)
totalCapacityOnTiers
- capacity by tierspublic Map<String,Long> getUsedCapacityOnTiers()
Copyright © 2023. All Rights Reserved.