Examples of Service


Examples of net.sf.minuteProject.configuration.bean.model.webservice.Service

    return services;
  }

  private static Service getService(com.sun.tools.ws.processor.model.Service s) {
//    s.getPorts().get(0).;
    Service service = new WsdlServiceMetro(s);
    return service;
  }
View Full Code Here

Examples of net.sf.minuteProject.configuration.bean.service.Service

    }   
  }
 
  public void complementService() {
    Database database = model.getDataModel().getDatabase();
    Service service = model.getBusinessModel().getService();
    if (service!=null) {
      List <Scope> scopes = service.getScopes();
      if (scopes!=null) {
        for (Scope scope : model.getBusinessModel().getService().getScopes()) {
          net.sf.minuteProject.configuration.bean.model.data.Table table = TableUtils.getTable(database, scope.getEntity());
          if (table!=null)
            scope.setTableEntity(table);
View Full Code Here

Examples of net.sf.minuteProject.loader.mapping.node.Service

      if (generatorBean instanceof Bean) {
        Bean bean = (Bean)generatorBean;
        return bean.isInPackage();
      }
      if (generatorBean instanceof Service) {
        Service service = (Service)generatorBean;
        return service.isInPackage();
      }     
      return false;   
  }
View Full Code Here

Examples of nexj.core.meta.integration.service.Service

   /**
    * Starts the service flow.
    */
   public Instance invoke(Metaclass metaclass, String sName, Object message, String sOutput, Pair args, ActionContext actx) throws IntegrationException
   {
      Service service = (Service)getFlow(sName);
      boolean bSecure = m_context.isSecure();

      if (bSecure && service.getPrivilege() != null &&
         !m_context.getPrivilegeSet().contains(service.getPrivilege()))
      {
         throw new SecurityViolationException("err.integration.service.unauthorized",
            new Object[]{service.getFullName()});
      }

      if (service.getInterface() != null)
      {
         MessageTable table = service.getInterface().getRequestTable();
        
         if (!(message instanceof TransferObject) ||
            table.getMessageCount() != 0 && table.findMessage(((TransferObject)message).getClassName()) == null)
         {
            throw new IntegrationException("err.integration.service.inputMessage", new Object[]{service.getFullName()});
         }
      }

      if (s_logger.isDebugEnabled())
      {
         s_logger.debug("Invoking " + service);
      }

      Instance instance = null;

      try
      {
         m_context.setSecure(false);
         instance = new Instance(metaclass, m_context);

         State state = new State(service, true);

         state.setReservedValue(0, instance);
         state.setReservedValue(1, state);
         state.setValue(Service.OUTPUT, sOutput);
         state.setToken(service, message);

         int i = 0;

         for (Pair pair = args; pair != null; pair = pair.getNext())
         {
            if (i >= service.getArgumentCount())
            {
               i = -1;
               break;
            }
           
            state.setValue(service.getArgument(i++), pair.getHead());
         }

         if (i != service.getArgumentCount())
         {
            throw new IntegrationException("err.integration.service.argCount",
               new Object[]{Primitive.createInteger(Pair.length(args)),
                  Primitive.createInteger(service.getArgumentCount())});
         }

         instance.setNew();
         instance.setValue("name", service.getName());
         instance.setValue("version", Primitive.createInteger(service.getVersion()));
         instance.setValue("oid", EMPTY_BINARY);
         instance.setValue("class", "");
         instance.setValue("local", GUIDUtil.generateGUID());
         instance.setValue("object", null);
         instance.setValue("state", state);
View Full Code Here

Examples of nl.clockwork.mule.ebms.model.ebxml.Service

    to.setType(receivingPartyInfo.getPartyId().get(0).getType());
    to.setValue(receivingPartyInfo.getPartyId().get(0).getValue());
    messageHeader.getTo().getPartyId().add(to);
    messageHeader.getTo().setRole(receivingPartyInfo.getCollaborationRole().get(0).getRole().getName());
   
    messageHeader.setService(new Service());
    messageHeader.getService().setType(sendingPartyInfo.getCollaborationRole().get(0).getServiceBinding().getService().getType());
    messageHeader.getService().setValue(sendingPartyInfo.getCollaborationRole().get(0).getServiceBinding().getService().getValue());
    messageHeader.setAction(sendingPartyInfo.getCollaborationRole().get(0).getServiceBinding().getCanSend().get(0).getThisPartyActionBinding().getAction());

    messageHeader.setMessageData(new MessageData());
View Full Code Here

Examples of org.activemq.service.Service

     *
     * @param executor the executor or null if one is not created yet
     */
    public static void stopExecutor(Executor executor) throws InterruptedException, JMSException {
        if (executor instanceof Service) {
            Service service = (Service) executor;
            service.stop();
        }
        else if (executor instanceof PooledExecutor) {
            PooledExecutor pe = (PooledExecutor) executor;
            pe.shutdownAfterProcessingCurrentlyQueuedTasks();
            //pe.shutdownNow();
View Full Code Here

Examples of org.andromda.metafacades.uml.Service

    /**
     * @see org.andromda.metafacades.uml.ServiceOperation#getService()
     */
    protected Object handleGetService()
    {
        Service owner = null;
        if (this.getOwner() instanceof Service)
        {
            owner = (Service)this.getOwner();
        }
        return owner;
View Full Code Here

Examples of org.apache.abdera.model.Service

    assertEquals(dateTime.getTime(), now.getTime());
    dateTime = factory.newPublished();
    dateTime.setString(AtomDate.format(now));
    assertEquals(dateTime.getString(), AtomDate.format(now));
    assertEquals(dateTime.getDate(), now);
    Service service = factory.newService();
    assertNotNull(service);
    Source source = factory.newSource();
    assertNotNull(source);
    el = factory.newElement(Constants.NAME);
    assertNotNull(el);
View Full Code Here

Examples of org.apache.activemq.Service

    /**
     * Stops a list of services
     */
    public void stopServices(List services) {
        for (Iterator iter = services.iterator(); iter.hasNext();) {
            Service service = (Service) iter.next();
            stop(service);
        }
    }
View Full Code Here

Examples of org.apache.ambari.server.state.Service

    cluster.addConfig(config);
    cluster.addDesiredConfig("_test", config);
   
   
    clusters.mapHostsToCluster(hostNames, clusterName);
    Service hdfs = cluster.addService(serviceName);
    hdfs.persist();
    hdfs.addServiceComponent(Role.DATANODE.name()).persist();
    hdfs.getServiceComponent(Role.DATANODE.name()).addServiceComponentHost(hostname1).persist();
    hdfs.addServiceComponent(Role.NAMENODE.name()).persist();
    hdfs.getServiceComponent(Role.NAMENODE.name()).addServiceComponentHost(hostname1).persist();
    hdfs.addServiceComponent(Role.SECONDARY_NAMENODE.name()).persist();
    hdfs.getServiceComponent(Role.SECONDARY_NAMENODE.name()).addServiceComponentHost(hostname1).persist();

    ActionQueue aq = new ActionQueue();
    ActionManager am = mock(ActionManager.class);
    HeartbeatMonitor hm = new HeartbeatMonitor(clusters, aq, am,
      heartbeatMonitorWakeupIntervalMS, injector);
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.