/** * @throws GridException If failed. */ public final void onKernalStart() throws GridException { onKernalStart0(); if (log != null && log.isDebugEnabled()) log.debug(kernalStartInfo()); }
/** * @param cancel Cancel flag. */ public final void onKernalStop(boolean cancel) { if (!starting.get()) // Ignoring attempt to stop manager that has never been started. return; onKernalStop0(cancel); if (log != null && log.isDebugEnabled()) log.debug(kernalStopInfo()); }
/** * Called when GGFS processor is started. * * @param ggfsCtx GGFS context. */ public void start(GridGgfsContext ggfsCtx) throws GridException { if (!starting.compareAndSet(false, true)) assert false : "Method start is called more than once for manager: " + this; assert ggfsCtx != null; this.ggfsCtx = ggfsCtx; log = ggfsCtx.kernalContext().log(getClass()); start0(); if (log != null && log.isDebugEnabled()) log.debug(startInfo()); }
/** {@inheritDoc} */ @Override public void onKernalStart() throws GridException { if (ctx.config().isDaemon()) return; if (!Boolean.getBoolean(GridSystemProperties.GG_SKIP_CONFIGURATION_CONSISTENCY_CHECK)) { for (GridNode n : ctx.discovery().remoteNodes()) checkGgfsOnRemoteNode(n); } for (GridGgfsContext ggfsCtx : ggfsCache.values()) for (GridGgfsManager mgr : ggfsCtx.managers()) mgr.onKernalStart(); }
/** {@inheritDoc} */ @Override public void onKernalStop(boolean cancel) { for (GridGgfsContext ggfsCtx : ggfsCache.values()) { if (log.isDebugEnabled()) log.debug("Stopping ggfs: " + ggfsCtx.configuration().getName()); List<GridGgfsManager> mgrs = ggfsCtx.managers(); for (ListIterator<GridGgfsManager> it = mgrs.listIterator(mgrs.size()); it.hasPrevious();) { GridGgfsManager mgr = it.previous(); mgr.onKernalStop(cancel); } } if (log.isDebugEnabled()) log.debug("Finished executing GGFS processor onKernalStop() callback."); }
/** {@inheritDoc} */ @Override public void stop(boolean cancel) { // Stop GGFS instances. for (GridGgfsContext ggfsCtx : ggfsCache.values()) { if (log.isDebugEnabled()) log.debug("Stopping ggfs: " + ggfsCtx.configuration().getName()); List<GridGgfsManager> mgrs = ggfsCtx.managers(); for (ListIterator<GridGgfsManager> it = mgrs.listIterator(mgrs.size()); it.hasPrevious();) { GridGgfsManager mgr = it.previous(); mgr.stop(cancel); } ggfsCtx.ggfs().stop(); } ggfsCache.clear(); if (log.isDebugEnabled()) log.debug("GGFS processor stopped."); }
mgr.start(ggfsCtx);
/** {@inheritDoc} */ @Override public void onKernalStart() throws GridException { if (ctx.config().isDaemon()) return; if (!getBoolean(GG_SKIP_CONFIGURATION_CONSISTENCY_CHECK)) { for (GridNode n : ctx.discovery().remoteNodes()) checkGgfsOnRemoteNode(n); } for (GridGgfsContext ggfsCtx : ggfsCache.values()) for (GridGgfsManager mgr : ggfsCtx.managers()) mgr.onKernalStart(); }
/** {@inheritDoc} */ @Override public void onKernalStop(boolean cancel) { for (GridGgfsContext ggfsCtx : ggfsCache.values()) { if (log.isDebugEnabled()) log.debug("Stopping ggfs: " + ggfsCtx.configuration().getName()); List<GridGgfsManager> mgrs = ggfsCtx.managers(); for (ListIterator<GridGgfsManager> it = mgrs.listIterator(mgrs.size()); it.hasPrevious();) { GridGgfsManager mgr = it.previous(); mgr.onKernalStop(cancel); } } if (log.isDebugEnabled()) log.debug("Finished executing GGFS processor onKernalStop() callback."); }
/** {@inheritDoc} */ @Override public void stop(boolean cancel) { // Stop GGFS instances. for (GridGgfsContext ggfsCtx : ggfsCache.values()) { if (log.isDebugEnabled()) log.debug("Stopping ggfs: " + ggfsCtx.configuration().getName()); List<GridGgfsManager> mgrs = ggfsCtx.managers(); for (ListIterator<GridGgfsManager> it = mgrs.listIterator(mgrs.size()); it.hasPrevious();) { GridGgfsManager mgr = it.previous(); mgr.stop(cancel); } ggfsCtx.ggfs().stop(); } ggfsCache.clear(); if (log.isDebugEnabled()) log.debug("GGFS processor stopped."); }
mgr.start(ggfsCtx);
/** * @param cancel Cancel flag. */ public final void onKernalStop(boolean cancel) { if (!starting.get()) // Ignoring attempt to stop manager that has never been started. return; onKernalStop0(cancel); if (log != null && log.isDebugEnabled()) log.debug(kernalStopInfo()); }
/** * @throws GridException If failed. */ public final void onKernalStart() throws GridException { onKernalStart0(); if (log != null && log.isDebugEnabled()) log.debug(kernalStartInfo()); }
/** * Called when GGFS processor is started. * * @param ggfsCtx GGFS context. */ public void start(GridGgfsContext ggfsCtx) throws GridException { if (!starting.compareAndSet(false, true)) assert false : "Method start is called more than once for manager: " + this; assert ggfsCtx != null; this.ggfsCtx = ggfsCtx; log = ggfsCtx.kernalContext().log(getClass()); start0(); if (log != null && log.isDebugEnabled()) log.debug(startInfo()); }