Package com.netflix.governator.lifecycle.warmup

Examples of com.netflix.governator.lifecycle.warmup.WarmUpSession


        Preconditions.checkState(state.compareAndSet(State.LATENT, State.STARTING), "Already started");

        validate();

        long maxMs = (unit != null) ? unit.toMillis(maxWait) : Long.MAX_VALUE;
        WarmUpSession warmUpSession = new WarmUpSession(getWarmUpDriver(), dagManager);
        boolean success = warmUpSession.doImmediate(maxMs);

        new ConfigurationColumnWriter(configurationDocumentation).output(log);

        state.set(State.STARTED);
View Full Code Here


    private void initializeObjectPostStart(Object obj) throws ValidationException
    {
        validate(obj);

        postStartWarmUpSession.compareAndSet(null, new WarmUpSession(getWarmUpDriver(), dagManager));
        WarmUpSession session = postStartWarmUpSession.get();
        session.doInBackground();
    }
View Full Code Here

TOP

Related Classes of com.netflix.governator.lifecycle.warmup.WarmUpSession

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.