Examples of Registry


Examples of java.rmi.registry.Registry

     *
     * @param hostName
     * @throws Exception
     */
    public static void enableHost(String hostName) throws Exception {
        Registry myRegistry = LocateRegistry.getRegistry("127.0.0.1", port);
        com.groupon.odo.proxylib.hostsedit.rmi.Message impl = (com.groupon.odo.proxylib.hostsedit.rmi.Message) myRegistry.lookup(SERVICE_NAME);

        impl.enableHost(hostName);
    }
View Full Code Here

Examples of java.rmi.registry.Registry

     *
     * @param hostName
     * @throws Exception
     */
    public static void disableHost(String hostName) throws Exception {
        Registry myRegistry = LocateRegistry.getRegistry("127.0.0.1", port);
        com.groupon.odo.proxylib.hostsedit.rmi.Message impl = (com.groupon.odo.proxylib.hostsedit.rmi.Message) myRegistry.lookup(SERVICE_NAME);

        impl.disableHost(hostName);
    }
View Full Code Here

Examples of java.rmi.registry.Registry

     *
     * @param hostName
     * @throws Exception
     */
    public static void removeHost(String hostName) throws Exception {
        Registry myRegistry = LocateRegistry.getRegistry("127.0.0.1", port);
        com.groupon.odo.proxylib.hostsedit.rmi.Message impl = (com.groupon.odo.proxylib.hostsedit.rmi.Message) myRegistry.lookup(SERVICE_NAME);

        impl.removeHost(hostName);
    }
View Full Code Here

Examples of javax.microedition.content.Registry

        final String[] actionNames = { "Send to demo app" };
        final ActionNameMap[] actionNameMaps =
                { new ActionNameMap(actions, actionNames, "en") };

        // Get access to the registry
        final Registry registry = Registry.getRegistry(CLASSNAME);

        try {
            // Register as a content handler
            registry.register(CLASSNAME, types, suffixes, actions,
                    actionNameMaps, ID, null);
        } catch (final ContentHandlerException che) {
            System.out.println("Registry#register() threw " + che.toString());
        } catch (final ClassNotFoundException cnfe) {
            System.out.println("Registry#register() threw " + cnfe.toString());
View Full Code Here

Examples of net.geco.model.Registry

    stage.setBaseDir(baseDir);
    stage.loadProperties(loadProperties(baseDir));
  }

  private void importDataIntoRegistry(Stage newStage) {
    Registry registry = new Registry();
    newStage.setRegistry(registry);
    this.registryBuilder.importAllDataregistry,
                      newStage.getBaseDir(),
                      newStage.getZeroHour(),
                      newStage.version12()); // MIGR12
View Full Code Here

Examples of net.sf.fmj.registry.Registry

        PlugInManager.MULTIPLEXER};

    // remove first from FMJ's registry instance.  This is where
    // FMJ's PlugInManager gets its values.  This will be more
    // efficient if PlugInManager is not yet initialized.
    final Registry registry = Registry.getInstance();
   
    for (int type : types)
    {
      final List<String> v = registry.getPluginList(type);
      final List<String> vRemove = removePluginsFromList(flags, v);
      v.removeAll(vRemove);
      registry.setPluginList(type, v);
    }

    // This handles the case where PlugInManager is already initialized,
    // or if we are using JMF's PlugInManager.
    for (int type : types)
View Full Code Here

Examples of org.apache.airavata.registry.api.Registry

    private static Logger log = LoggerFactory.getLogger(SchedulerImpl.class);

    public Provider schedule(InvocationContext context) throws SchedulerException {

        Registry registryService = context.getExecutionContext().getRegistryService();

        /*
         * Load Service
         */
        ServiceDescription serviceDesc = null;
        try {
            serviceDesc = registryService.getServiceDescription(context.getServiceName());
        } catch (RegistryException e2) {
            e2.printStackTrace();
        }

        if (serviceDesc == null)
            throw new SchedulerException("Service Desciption for " + context.getServiceName()
                    + " does not found on resource Catalog " + registryService);

        /*
         * Load host
         */
        HostDescription host = scheduleToHost(registryService, context.getServiceName());

        if (host == null)
            throw new SchedulerException("Host Desciption for " + context.getServiceName()
                    + " does not found on resource Catalog " + registryService);

        /*
         * Load app
         */
        ApplicationDeploymentDescription app = null;
        try {
            app = registryService.getDeploymentDescription(context.getServiceName(), host.getType().getHostName());
        } catch (RegistryException e2) {
            e2.printStackTrace();
        }

        if (app == null)
View Full Code Here

Examples of org.apache.airavata.registry.cpi.Registry

     */
    public List<TaskDetails> createTasks(String experimentId) throws OrchestratorException {
        Experiment experiment = null;
        List<TaskDetails> tasks = new ArrayList<TaskDetails>();
        try {
            Registry newRegistry = orchestratorContext.getNewRegistry();
            experiment = (Experiment) newRegistry.get(RegistryModelType.EXPERIMENT, experimentId);


            WorkflowNodeDetails iDontNeedaNode = ExperimentModelUtil.createWorkflowNode("IDontNeedaNode", null);
            String nodeID = (String) newRegistry.add(ChildDataType.WORKFLOW_NODE_DETAIL, iDontNeedaNode, experimentId);

            TaskDetails taskDetails = ExperimentModelUtil.cloneTaskFromExperiment(experiment);
            taskDetails.setTaskID((String) newRegistry.add(ChildDataType.TASK_DETAIL, taskDetails, nodeID));
            tasks.add(taskDetails);
        } catch (Exception e) {
            throw new OrchestratorException("Error during creating a task");
        }
        return tasks;
View Full Code Here

Examples of org.apache.archiva.redback.components.registry.Registry

    @SuppressWarnings( "unchecked" )
    private Configuration load()
    {
        // TODO: should this be the same as section? make sure unnamed sections still work (eg, sys properties)
        Registry subset = registry.getSubset( KEY );
        if ( subset.getString( "version" ) == null )
        {
            // a little autodetection of v1, even if version is omitted (this was previously allowed)
            if ( subset.getSubset( "repositoryScanning" ).isEmpty() )
            {
                // only for empty, or v < 1
                subset = readDefaultConfiguration();
            }
        }
View Full Code Here

Examples of org.apache.camel.spi.Registry

        }
        return registry;
    }

    public <T> T getRegistry(Class<T> type) {
        Registry reg = getRegistry();

        // unwrap the property placeholder delegate
        if (reg instanceof PropertyPlaceholderDelegateRegistry) {
            reg = ((PropertyPlaceholderDelegateRegistry) reg).getRegistry();
        }

        if (type.isAssignableFrom(reg.getClass())) {
            return type.cast(reg);
        } else if (reg instanceof CompositeRegistry) {
            List<Registry> list = ((CompositeRegistry) reg).getRegistryList();
            for (Registry r : list) {
                if (type.isAssignableFrom(r.getClass())) {
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.