Examples of GridGgfsMode


Examples of org.gridgain.grid.ggfs.GridGgfsMode

                A.ensure(!props.isEmpty(), "!props.isEmpty()");

                if (log.isDebugEnabled())
                    log.debug("Set file properties [path=" + path + ", props=" + props + ']');

                GridGgfsMode mode = modeRslvr.resolveMode(path);

                if (mode == PROXY)
                    throw new GridException("PROXY mode cannot be used in GGFS directly: " + path);
                else if (mode != PRIMARY) {
                    assert mode == DUAL_SYNC || mode == DUAL_ASYNC;
View Full Code Here

Examples of org.gridgain.grid.ggfs.GridGgfsMode

                A.notNull(dest, "dest");

                if (log.isDebugEnabled())
                    log.debug("Rename file [src=" + src + ", dest=" + dest + ']');

                GridGgfsMode mode = modeRslvr.resolveMode(src);
                Set<GridGgfsMode> childrenModes = modeRslvr.resolveChildrenModes(src);

                if (mode == PROXY)
                    throw new GridException("PROXY mode cannot be used in GGFS directly: " + src);
View Full Code Here

Examples of org.gridgain.grid.ggfs.GridGgfsMode

                A.notNull(path, "path");

                if (log.isDebugEnabled())
                    log.debug("Deleting file [path=" + path + ", recursive=" + recursive + ']');

                GridGgfsMode mode = modeRslvr.resolveMode(path);
                Set<GridGgfsMode> childrenModes = modeRslvr.resolveChildrenModes(path);

                if (mode == PROXY)
                    throw new GridException("PROXY mode cannot be used in GGFS directly: " + path);
View Full Code Here

Examples of org.gridgain.grid.ggfs.GridGgfsMode

                    log.debug("Make directories: " + path);

                if (props == null)
                    props = DFLT_DIR_META;

                GridGgfsMode mode = modeRslvr.resolveMode(path);

                if (mode == PROXY)
                    throw new GridException("PROXY mode cannot be used in GGFS directly: " + path);
                else if (mode != PRIMARY) {
                    assert mode == DUAL_SYNC || mode == DUAL_ASYNC;
View Full Code Here

Examples of org.gridgain.grid.ggfs.GridGgfsMode

                A.notNull(path, "path");

                if (log.isDebugEnabled())
                    log.debug("List directory: " + path);

                GridGgfsMode mode = modeRslvr.resolveMode(path);

                if (mode == PROXY)
                    throw new GridException("PROXY mode cannot be used in GGFS directly: " + path);

                Set<GridGgfsMode> childrenModes = modeRslvr.resolveChildrenModes(path);
View Full Code Here

Examples of org.gridgain.grid.ggfs.GridGgfsMode

                A.notNull(path, "path");

                if (log.isDebugEnabled())
                    log.debug("List directory details: " + path);

                GridGgfsMode mode = modeRslvr.resolveMode(path);

                if (mode == PROXY)
                    throw new GridException("PROXY mode cannot be used in GGFS directly: " + path);

                Set<GridGgfsMode> childrenModes = modeRslvr.resolveChildrenModes(path);
View Full Code Here

Examples of org.gridgain.grid.ggfs.GridGgfsMode

                    log.debug("Open file for reading [path=" + path + ", bufSize=" + bufSize + ']');

                if (bufSize == 0)
                    bufSize = cfg.getStreamBufferSize();

                GridGgfsMode mode = modeRslvr.resolveMode(path);

                if (mode == PROXY)
                    throw new GridException("PROXY mode cannot be used in GGFS directly: " + path);
                else if (mode != PRIMARY) {
                    assert mode == DUAL_SYNC || mode == DUAL_ASYNC;
View Full Code Here

Examples of org.gridgain.grid.ggfs.GridGgfsMode

                if (log.isDebugEnabled())
                    log.debug("Open file for writing [path=" + path + ", bufSize=" + bufSize + ", overwrite=" +
                        overwrite + ", props=" + props + ']');

                GridGgfsMode mode = modeRslvr.resolveMode(path);

                GridGgfsFileWorkerBatch batch = null;

                if (mode == PROXY)
                    throw new GridException("PROXY mode cannot be used in GGFS directly: " + path);
View Full Code Here

Examples of org.gridgain.grid.ggfs.GridGgfsMode

                if (log.isDebugEnabled())
                    log.debug("Open file for appending [path=" + path + ", bufSize=" + bufSize + ", create=" + create +
                        ", props=" + props + ']');

                GridGgfsMode mode = modeRslvr.resolveMode(path);

                GridGgfsFileWorkerBatch batch = null;

                if (mode == PROXY)
                    throw new GridException("PROXY mode cannot be used in GGFS directly: " + path);
View Full Code Here

Examples of org.gridgain.grid.ggfs.GridGgfsMode

                A.ensure(len >= 0, "len >= 0");

                if (log.isDebugEnabled())
                    log.debug("Get affinity for file block [path=" + path + ", start=" + start + ", len=" + len + ']');

                GridGgfsMode mode = modeRslvr.resolveMode(path);

                if (mode == PROXY)
                    throw new GridException("PROXY mode cannot be used in GGFS directly: " + path);

                // Check memory first.
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.