Package org.gridgain.grid

Examples of org.gridgain.grid.GridGainState


        final ConcurrentMap<String, GridGainState> states = new ConcurrentHashMap<>();

        G.addListener(new GridGainListener() {
            @Override public void onStateChange(@Nullable String name, GridGainState state) {
                if (state == STARTED) {
                    GridGainState state0 = states.put(maskNull(name), STARTED);

                    assert state0 == null;
                }
                else {
                    assert state == STOPPED;
View Full Code Here


     */
    public static GridGainState state(@Nullable String name) {
        GridNamedInstance grid = name != null ? grids.get(name) : dfltGrid;

        if (grid == null) {
            GridGainState state = name != null ? gridStates.get(name) : dfltGridState;

            return state != null ? state : STOPPED;
        }

        return grid.state();
View Full Code Here

TOP

Related Classes of org.gridgain.grid.GridGainState

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.