/** * add a string line to the bottom of the context * @param value string line * @return this builder */ public Builder addContext(final String value) { context.add(value); return this; }
/** * add a long value to the bottom of the context * * @param name context name * @param value context value * @return this builder */ public Builder addContext(final String name, final long value) { context.add(name, value); return this; }
/** * add NodeEndpoint identity to the context. * <p>if the context already has a node endpoint identity, the new identity will be ignored * * @param endpoint node endpoint identity */ public Builder addIdentity(final CoordinationProtos.NodeEndpoint endpoint) { context.add(endpoint); return this; }
/** * add a double value to the bottom of the context * * @param name context name * @param value context value * @return this builder */ public Builder addContext(final String name, final double value) { context.add(name, value); return this; }
/** * adds a sring value to the bottom of the context list * @param context context name * @param value context value */ void add(String context, String value) { add(context + " " + value); }
/** * adds a long value to the bottom of the context list * @param context context name * @param value context value */ void add(String context, long value) { add(context + " " + value); }
/** * adds a double to the bottom of the context list * @param context context name * @param value context value */ void add(String context, double value) { add(context + " " + value); }
/** * add a string value to the bottom of the context * * @param name context name * @param value context value * @return this builder */ public Builder addContext(final String name, final String value) { context.add(name, value); return this; }
/** * add a string line to the bottom of the context * @param value string line * @return this builder */ public Builder addContext(final String value, Object... args) { context.add(String.format(value, args)); return this; }