Examples of dispose()


Examples of org.apache.jackrabbit.core.config.FileSystemConfig.dispose()

                lockMgr = null;
            }

            // close workspace file system
            FileSystemConfig fsConfig = config.getFileSystemConfig();
            fsConfig.dispose();
            fs = null;

            // reset idle timestamp
            idleTimestamp = 0;
View Full Code Here

Examples of org.apache.jackrabbit.jcr2spi.state.ItemState.MergeResult.dispose()

            if (currentStatus == Status.INVALIDATED) {
                currentState.setStatus(Status.EXISTING);
            } else if (mergeResult.modified()) {
                currentState.setStatus(Status.MODIFIED);
            } // else: not modified. just leave status as it is.
            mergeResult.dispose();
        }
    }

    /**
     * {@inheritDoc}<br>
 
View Full Code Here

Examples of org.apache.jackrabbit.mk.api.MicroKernel.dispose()

            e.printStackTrace(System.out);
            head = mk.commit("/", move, head, null);
            head = mk.commit("/", set, head, null);
        }
        System.out.println();
        mk.dispose();
    }

}
View Full Code Here

Examples of org.apache.jackrabbit.mk.core.MicroKernelImpl.dispose()

        Runtime.getRuntime().addShutdownHook(new Thread(new Runnable() {
            @Override
            public void run() {
                server.stop();
                mk.dispose();
            }
        }, "ShutdownHook"));
    }

}
View Full Code Here

Examples of org.apache.jackrabbit.oak.plugins.document.DocumentMK.dispose()

            executor.execute(task);
        }
        executor.shutdown();
        executor.awaitTermination(10, TimeUnit.MINUTES);
        for (DocumentMK mk : mks) {
            mk.dispose();
        }
    }

    private StringBuilder buildPyramidDiff(String startingPoint,
            int index, int numberOfChildren, long nodesNumber,
View Full Code Here

Examples of org.apache.jackrabbit.oak.plugins.document.DocumentNodeStore.dispose()

                                    new RepositoryUpgrade(source, target);
                            upgrade.setCopyBinariesByReference(
                                    options.has("datastore"));
                            upgrade.copy(null);
                        } finally {
                            target.dispose();
                        }
                    } finally {
                        client.close();
                    }
                } else {
View Full Code Here

Examples of org.apache.jackrabbit.oak.plugins.document.util.MapFactory.dispose()

                    lastRev = null;
                }
            }
        } finally {
            if (tmpFactory != null) {
                tmpFactory.dispose();
            }
        }
    }

    @Override
View Full Code Here

Examples of org.apache.jackrabbit.oak.plugins.mongomk.MongoMK.dispose()

                .setMongoDB(con.getDB())
                .setClusterId(1).open();
        Session session = new Jcr(mk).createRepository().login(
                new SimpleCredentials("admin", "admin".toCharArray()));
        session.logout();
        mk.dispose(); // closes connection as well
    }


    private static void ensureIndex(Node root, String propertyName)
            throws RepositoryException {
View Full Code Here

Examples of org.apache.jackrabbit.server.util.RequestData.dispose()

                    throw new JcrDavException((RepositoryException) cause);
                } else {
                    throw new DavException(DavServletResponse.SC_BAD_REQUEST, "Invalid diff format.");
                }
            } finally {
                data.dispose();
            }
        } else {
            super.doPost(webdavRequest, webdavResponse, davResource);
        }
    }
View Full Code Here

Examples of org.apache.james.core.MailImpl.dispose()

            if (recipientCollection != null) {
                recipientCollection.clear();
            }
            recipientCollection = null;
            if (mail != null) {
                mail.dispose();
            }
            mail = null;
            if (headersIn != null) {
                try {
                    headersIn.close();
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.