public static List<InetSocketAddress> getEmbeddedJournalAddresses(AlluxioConfiguration conf,
      ServiceType serviceType) {
    Preconditions.checkState(
        serviceType == ServiceType.MASTER_RAFT || serviceType == ServiceType.JOB_MASTER_RAFT);
    if (serviceType == ServiceType.MASTER_RAFT) {
      return getMasterEmbeddedJournalAddresses(conf);
    }
    return getJobMasterEmbeddedJournalAddresses(conf);
  }
public static List < InetSocketAddress > getEmbeddedJournalAddresses ( AlluxioConfiguration conf , ServiceType serviceType ) { Preconditions . checkState ( serviceType == ServiceType . MASTER_RAFT || serviceType == ServiceType . JOB_MASTER_RAFT ) ; if ( serviceType == ServiceType . MASTER_RAFT ) { return getMasterEmbeddedJournalAddresses ( conf ) ; } return getJobMasterEmbeddedJournalAddresses ( conf ) ; }
Gets the embedded journal addresses to use for the given service type (either master-raft or
job-master-raft).

@param conf configuration
@param serviceType the service to get addresses for
@return the addresses