Package org.jboss.remoting

Examples of org.jboss.remoting.Client$InvokerDestructionTimerTask


    * @param dtID the deployment id
    * @throws Exception
    */
   public void remove(DeploymentID dtID) throws Exception
   {
      Client client = getClient();
      try
      {
         log.debug("Begin remove: " + dtID);
         invoke(client, "remove", createArgs(dtID));
         log.debug("End remove");
      }
      finally
      {
         client.disconnect();
      }     
   }
View Full Code Here


    */
   private Client getClient() throws Exception
   {
      log.debug("Calling remoting server with locator of: " + locator);

      Client remotingClient = new Client(locator, subsystem);
      remotingClient.connect();
      return remotingClient;
   }
View Full Code Here

         // Now onto creating transport interceptor
         ClassLoader loader = (ClassLoader) invocation.getMetaData(REMOTING, LOADER);
         String subsystem = (String) invocation.getMetaData(REMOTING, SUBSYSTEM);

         Client client = null;
         try
         {
            if (loader != null)
            {
               client = new Client(loader, locator, subsystem, null);
            }
            else
            {
               client = new Client(locator, subsystem);
            }
         }
         catch (Exception e)
         {
            throw new RuntimeException("Could not create remoting client.", e);
View Full Code Here

    */
   public void deploy(TargetModuleID targetModuleID) throws Exception
   {
      TargetModuleIDImpl moduleID = (TargetModuleIDImpl)targetModuleID;
      SerializableTargetModuleID smoduleID = new SerializableTargetModuleID(moduleID);
      Client client = getClient();
      log.info("Begin deploy: " + moduleID);
      transferDeployment(client, smoduleID);
      log.info("End deploy");
      client.disconnect();
   }
View Full Code Here

   /**
    * Start a given module
    */
   public void start(TargetModuleID targetModuleID) throws Exception
   {
      Client client = getClient();
      URL url = new URL(targetModuleID.getModuleID());
      log.debug("Start: " + url);
      HashMap<String, String> args = new HashMap<String, String>(1);
      args.put("moduleID", url.toExternalForm());
      log.info("Begin start: " + url);
View Full Code Here

   /**
    * Stop a given module
    */
   public void stop(TargetModuleID targetModuleID) throws Exception
   {
      Client client = getClient();
      URL url = new URL(targetModuleID.getModuleID());
      log.debug("Start: " + url);
      HashMap<String, String> args = new HashMap<String, String>(1);
      args.put("moduleID", url.toExternalForm());
      log.info("Begin stop: " + url);
View Full Code Here

   /**
    * Undeploy a given module
    */
   public void undeploy(TargetModuleID targetModuleID) throws Exception
   {
      Client client = getClient();
      URL url = new URL(targetModuleID.getModuleID());
      log.debug("Start: " + url);
      HashMap<String, String> args = new HashMap<String, String>(1);
      args.put("moduleID", url.toExternalForm());
      log.info("Begin undeploy: " + url);
View Full Code Here

    */
   public TargetModuleID[] getAvailableModules(ModuleType moduleType) throws TargetException
   {
      try
      {
         Client client = getClient();
         HashMap<String, Integer> args = new HashMap<String, Integer>(1);
         args.put("moduleType", moduleType.getValue());
         SerializableTargetModuleID[] modules = (SerializableTargetModuleID[])
            invoke(client, "getAvailableModules", args);
         List<TargetModuleID> list = new ArrayList<TargetModuleID>();
View Full Code Here

   {
      String locatorURI = deployURI.toString();
      InvokerLocator locator = new InvokerLocator(locatorURI);
      log.debug("Calling remoting server with locator uri of: " + locatorURI);

      Client remotingClient = new Client(locator, REMOTING_SUBSYSTEM);
      remotingClient.connect();
      return remotingClient;
   }
View Full Code Here

      {        
         remotingConnection = new JMSRemotingConnection(serverLocatorURI, clientPing, strictTck, new ConsolidatedRemotingConnectionListener(), sendAcksAsync);
        
         remotingConnection.start();
  
         Client client = remotingConnection.getRemotingClient();
        
         String remotingSessionId = client.getSessionId();
        
         String clientVMId = JMSClientVMIdentifier.instance;
           
         ConnectionFactoryCreateConnectionDelegateRequest req =
            new ConnectionFactoryCreateConnectionDelegateRequest(id, v,
                                                                 remotingSessionId, clientVMId,
                                                                 username, password, failedNodeID);
          
         ResponseSupport rs = (ResponseSupport)client.invoke(req, null);
        
         res = (CreateConnectionResult)rs.getResponse();
      }
      catch (Throwable t)
      {
View Full Code Here

TOP

Related Classes of org.jboss.remoting.Client$InvokerDestructionTimerTask

Copyright © 2018 www.massapicom. 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.