Examples of ServiceContext


Examples of org.huihoo.willow.client.ServiceContext

  {
    Socket socket=new Socket("localhost",2126);
    BufferedInputStream bis = new BufferedInputStream(socket.getInputStream());
    ObjectInputStream in = new ObjectInputStream(bis);
    MarshalledObject stub = (MarshalledObject) in.readObject();
    ServiceContext server = (ServiceContext) stub.get();
   
    System.err.println("server="+server);
    socket.close();
  }
View Full Code Here

Examples of org.jboss.system.ServiceContext

               ServiceControllerMBean.class, false);
   }

   public String getStateString(ObjectName serviceName)
   {
      ServiceContext ctx = scmb.getServiceContext(serviceName);
      return ctx.getStateString();
   }
View Full Code Here

Examples of org.jboss.system.ServiceContext

      scmb.remove(serviceName);
   }

   public boolean isStarted(ObjectName serviceName)
   {
      ServiceContext sc = scmb.getServiceContext(serviceName);
      return sc.state == ServiceContext.RUNNING;
   }
View Full Code Here

Examples of org.jboss.system.ServiceContext

      return sc.state == ServiceContext.RUNNING;
   }
  
   public boolean isCreated(ObjectName serviceName)
   {
      ServiceContext sc = scmb.getServiceContext(serviceName);
      return sc.state == ServiceContext.CREATED;
   }
View Full Code Here

Examples of org.jboss.system.ServiceContext

      return sc.state == ServiceContext.CREATED;
   }
  
   public boolean isStopped(ObjectName serviceName)
   {
      ServiceContext sc = scmb.getServiceContext(serviceName);
      return sc.state == ServiceContext.STOPPED;
   }
View Full Code Here

Examples of org.jboss.system.ServiceContext

      return sc.state == ServiceContext.STOPPED;
   }
  
   public boolean isDestroyed(ObjectName serviceName)
   {
      ServiceContext sc = scmb.getServiceContext(serviceName);
      return sc.state == ServiceContext.DESTROYED;
   }
View Full Code Here

Examples of org.jboss.system.ServiceContext

      return sc.state == ServiceContext.DESTROYED;
   }
  
   public boolean isFailed(ObjectName serviceName)
   {
      ServiceContext sc = scmb.getServiceContext(serviceName);
      return sc.state == ServiceContext.FAILED;
   }
View Full Code Here

Examples of org.jboss.system.ServiceContext

   public List<ServiceContext> listIncompletelyDeployed()
   {
      List<ServiceContext> id = new ArrayList<ServiceContext>();
      for (Iterator<ServiceContext> i = installedServices.iterator(); i.hasNext();)
      {
         ServiceContext sc = i.next();
         if ( sc.state != ServiceContext.CREATED &&
              sc.state != ServiceContext.RUNNING &&
              sc.state != ServiceContext.STOPPED &&
              sc.state != ServiceContext.DESTROYED )
         {
View Full Code Here

Examples of org.jboss.system.ServiceContext

   public List<ObjectName> listDeployedNames()
   {
      List<ObjectName> names = new ArrayList<ObjectName>(installedServices.size());
      for (Iterator<ServiceContext> i = installedServices.iterator(); i.hasNext();)
      {
         ServiceContext ctx = i.next();
         names.add(ctx.objectName);
      }

      return names;
   }
View Full Code Here

Examples of org.jboss.system.ServiceContext

         log.warn("Ignoring request to register null service: ", new Exception("STACKTRACE"));
         return;
      }
     
      log.debug("Registering service " + serviceName);
      ServiceContext ctx = createServiceContext(serviceName);

      register(ctx, depends);
   }
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.