public static StrictPreemptionContract NewInstance(ICollection <PreemptionContainer
                                                                        > containers)
        {
            StrictPreemptionContract contract = Org.Apache.Hadoop.Yarn.Util.Records.NewRecord
                                                <StrictPreemptionContract>();

            contract.SetContainers(containers);
            return(contract);
        }
예제 #2
0
        public static PreemptionMessage NewInstance(StrictPreemptionContract set, PreemptionContract
                                                    contract)
        {
            PreemptionMessage message = Org.Apache.Hadoop.Yarn.Util.Records.NewRecord <PreemptionMessage
                                                                                       >();

            message.SetStrictContract(set);
            message.SetContract(contract);
            return(message);
        }
예제 #3
0
 public abstract void SetStrictContract(StrictPreemptionContract set);