Examples of StoreProperties


Examples of net.sf.joafip.store.entity.StoreProperties

  public StoreForTest(final int currentDataModelIdentifier,
      final InputStreamAndSource dataModelConversionDefInputStream,
      final String path, final int pageSize, final int maxPage,
      final boolean garbageManagement, final boolean crashSafeMode)
      throws StoreException {
    final StoreProperties storeProperties = new StoreProperties();
    storeProperties.setDataModelIdentifier(currentDataModelIdentifier);
    storeProperties
        .setDataModelConversionDefInputStream(dataModelConversionDefInputStream);
    storeProperties
        .setFileAccessMode(EnumFileAccessMode.MAPPED_RANDOM_FILE_ACCESS);
    storeProperties.setMaxBufferSize(8 * 1024);
    storeProperties.setMaxNumberOfBuffer(32);
    storeProperties.setPathName(path);
    storeProperties.setGarbageManagement(garbageManagement);
    storeProperties.setCrashSafeMode(crashSafeMode);
    storeProperties.setUseCacheMode(true);
    storeProperties.setMaxPage(maxPage);
    storeProperties.setPageSize(pageSize);
    store = new Store(storeProperties);
  }
View Full Code Here

Examples of net.sf.joafip.store.entity.StoreProperties

    }
  }

  private void run() throws HeapException {

    final StoreProperties storeProperties = new StoreProperties();

    final EnumFileAccessMode fileAccessMode = EnumFileAccessMode.NIO_RANDOM_FILE_ACCESS;

    final String toUseDataFileName = AbstractStoreDelegatingToDataManager.STORE_DATA;
    final String pathName = AbstractPerfService.RUNTIME_DIR;
    final File dataFile = new File(pathName, toUseDataFileName);

    final boolean useCacheMode = true;
    final boolean crashSafeMode = false;

    final boolean manageNodeIndex = false;

    final boolean deleteRenaming = storeProperties.isDeleteRenaming();
    final boolean clearResizeFile = storeProperties.isClearResizeFile();
    final int maxFileOperationRetry = storeProperties
        .getMaxFileOperationRetry();
    final int fileOperationRetryMsDelay = storeProperties
        .getFileOperationRetryMsDelay();

    final File openFileTraceFile = new File(pathName,
        AbstractStoreDelegatingToDataManager.TRACE_FILE);
View Full Code Here

Examples of org.glassfish.web.deployment.runtime.StoreProperties

                        }
                    }
                }
            }

            StoreProperties storeBean = smBean.getStoreProperties();
            if ((storeBean != null) && (storeBean.sizeWebProperty() > 0)) {
                for (WebProperty prop : storeBean.getWebProperty()) {
                    String name = prop.getAttributeValue(WebProperty.NAME);
                    String value = prop.getAttributeValue(WebProperty.VALUE)
                    if (name.equalsIgnoreCase("reapIntervalSeconds")) {
                        try {
                            storeReapInterval = Integer.parseInt(value);
View Full Code Here

Examples of org.glassfish.web.deployment.runtime.StoreProperties

     * (this is the value from sun-web.xml if defined
     * @param smBean the session manager config bean
     */   
    protected String getPersistenceScope(SessionManager smBean) {
        String persistenceScope = null;
        StoreProperties storeBean = smBean.getStoreProperties();
        if ((storeBean != null) && (storeBean.sizeWebProperty() > 0)) {
            WebProperty[] props = storeBean.getWebProperty();
            for (int i = 0; i < props.length; i++) {
                String name = props[i].getAttributeValue(WebProperty.NAME);
                String value = props[i].getAttributeValue(WebProperty.VALUE);
                if (name.equalsIgnoreCase("persistenceScope")) {
                    persistenceScope = value;
View Full Code Here

Examples of org.glassfish.web.deployment.runtime.StoreProperties

     * (this is the value from sun-web.xml if defined
     * @param smBean the session manager config bean
     */   
    protected String getPersistenceScope(SessionManager smBean) {
        String persistenceScope = null;
        StoreProperties storeBean = smBean.getStoreProperties();
        if ((storeBean != null) && (storeBean.sizeWebProperty() > 0)) {
            WebProperty[] props = storeBean.getWebProperty();
            for (int i = 0; i < props.length; i++) {
                String name = props[i].getAttributeValue(WebProperty.NAME);
                String value = props[i].getAttributeValue(WebProperty.VALUE);
                if (name.equalsIgnoreCase("persistenceScope")) {
                    persistenceScope = value;
View Full Code Here

Examples of org.glassfish.web.deployment.runtime.StoreProperties

                        }
                    }
                }
            }

            StoreProperties storeBean = smBean.getStoreProperties();
            if ((storeBean != null) && (storeBean.sizeWebProperty() > 0)) {
                for (WebProperty prop : storeBean.getWebProperty()) {
                    String name = prop.getAttributeValue(WebProperty.NAME);
                    String value = prop.getAttributeValue(WebProperty.VALUE)
                    if (name.equalsIgnoreCase("reapIntervalSeconds")) {
                        try {
                            storeReapInterval = Integer.parseInt(value);
View Full Code Here

Examples of org.glassfish.web.deployment.runtime.StoreProperties

                        }
                    }
                }
            }

            StoreProperties storeBean = smBean.getStoreProperties();
            if ((storeBean != null) && (storeBean.sizeWebProperty() > 0)) {
                for (WebProperty prop : storeBean.getWebProperty()) {
                    String name = prop.getAttributeValue(WebProperty.NAME);
                    String value = prop.getAttributeValue(WebProperty.VALUE)
                    if (name.equalsIgnoreCase("reapIntervalSeconds")) {
                        try {
                            storeReapInterval = Integer.parseInt(value);
View Full Code Here

Examples of org.glassfish.web.deployment.runtime.StoreProperties

     * (this is the value from sun-web.xml if defined
     * @param smBean the session manager config bean
     */   
    protected String getPersistenceScope(SessionManager smBean) {
        String persistenceScope = null;
        StoreProperties storeBean = smBean.getStoreProperties();
        if ((storeBean != null) && (storeBean.sizeWebProperty() > 0)) {
            WebProperty[] props = storeBean.getWebProperty();
            for (int i = 0; i < props.length; i++) {
                String name = props[i].getAttributeValue(WebProperty.NAME);
                String value = props[i].getAttributeValue(WebProperty.VALUE);
                if (name.equalsIgnoreCase("persistenceScope")) {
                    persistenceScope = value;
View Full Code Here

Examples of org.glassfish.web.deployment.runtime.StoreProperties

     * @return the descriptor instance to associate with this XMLNode
     */
    @Override
    public StoreProperties getDescriptor() {
        if (descriptor==null) {
            descriptor = new StoreProperties();
        }
        return descriptor;
    }
View Full Code Here

Examples of org.glassfish.web.deployment.runtime.StoreProperties

                        }
                    }
                }
            }

            StoreProperties storeBean = smBean.getStoreProperties();
            if ((storeBean != null) && (storeBean.sizeWebProperty() > 0)) {
                for (WebProperty prop : storeBean.getWebProperty()) {
                    String name = prop.getAttributeValue(WebProperty.NAME);
                    String value = prop.getAttributeValue(WebProperty.VALUE)
                    if (name.equalsIgnoreCase("reapIntervalSeconds")) {
                        try {
                            storeReapInterval = Integer.parseInt(value);
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.