Package org.wso2.carbon.registry.core

Examples of org.wso2.carbon.registry.core.CollectionImpl.discard()


                //*****************************//
                long queryEnd = System.nanoTime();
                long queryTime = queryEnd - queryStart;
                System.out.println("CSV," + threadName + "," + "query," + queryTime / 1000000);

                r2.discard();

                long deleteStart = System.nanoTime();
                //*****************************//
                registry.delete(basePath + i + "/s1/a1");
                //*****************************//
 
View Full Code Here


                //*****************************//
                long queryEnd = System.nanoTime();
                long queryTime = queryEnd - queryStart;
                System.out.println("CSV," + threadName + "," + "query," + queryTime / 1000000);

                r2.discard();

                //System.out.println("~~~~~begin delete~~~~~");
                long deleteStart = System.nanoTime();
                //*****************************//
                registry.delete(basePath + i + "/s1/a1");
View Full Code Here

        } else if (TopicConstants.SUBSCRIPTIONS_MEDIA_TYPE.equals(r.getMediaType())) {

            Collection subcriptions = (Collection) registry.get(childPath);
            String[] subscriptionPaths = (String[]) subcriptions.getContent();
            subcriptions.discard();
            for (String subscription: subscriptionPaths) {
                processTopicChild(subscription, endpointList, topicList, registry);
            }
        }
        r.discard();
View Full Code Here

                //*****************************//
                long queryEnd = System.nanoTime();
                long queryTime = queryEnd - queryStart;
                System.out.println("CSV," + threadName + "," + "query," + queryTime / 1000000);

                r2.discard();

                //System.out.println("~~~~~begin delete~~~~~");
                long deleteStart = System.nanoTime();
                //*****************************//
                registry.delete(basePath + i + "/s1/a1");
View Full Code Here

                            axisModule.addParameter(parameter);
                        }
                    }
                    resource.discard();
                }
                parameters.discard();
            }
            axisModule.getPolicySubject().clear();

            // Load policies from registry into AxisModule.
            String modulePath = PersistenceUtils.getResourcePath(axisModule);
View Full Code Here

                        Policy policy = PolicyEngine.getPolicy(resource.getContentStream());
                        axisModule.getPolicySubject().attachPolicy(policy);
                    }
                    resource.discard();
                }
                policies.discard();
            }

            PersistenceUtils.handleGlobalParams(axisModule, moduleResource);
            configRegistry.commitTransaction();
View Full Code Here

                            ad.addParameter(parameter);
                        }
                    }
                    param.discard();
                }
                adParameters.discard();
            }
        }
    }

    /**
 
View Full Code Here

                        versionResource.discard();
                        break;
                    }
                    versionResource.discard();
                }
                moduleVersions.discard();
            }
        }
        if (existingModule == null) {
            throw new CarbonException("Axis Module not found for resource path : " + modulePath);
        }
View Full Code Here

                    "used to store the resources required by the carbon server.";
            systemCollection.setDescription(systemDescription);
            registry.put(RegistryUtils.getAbsolutePath(
                    registry.getRegistryContext(), RegistryConstants.SYSTEM_COLLECTION_BASE_PATH),
                    systemCollection);
            systemCollection.discard();

            CollectionImpl localRepositoryCollection = (CollectionImpl) registry.newCollection();
            String localRepositoryDescription =
                    "Local data repository of the carbon server. This " +
                            "collection is used to store the resources local to this carbon " +
View Full Code Here

                            "server instance.";
            localRepositoryCollection.setDescription(localRepositoryDescription);
            registry.put(RegistryUtils.getAbsolutePath(
                    registry.getRegistryContext(), RegistryConstants.LOCAL_REPOSITORY_BASE_PATH),
                    localRepositoryCollection);
            localRepositoryCollection.discard();

            CollectionImpl configRegistryCollection = (CollectionImpl) registry.newCollection();
            String configRegistryDescription = "Configuration registry of the carbon server. " +
                    "This collection is used to store the resources of this product cluster.";
            configRegistryCollection.setDescription(configRegistryDescription);
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.