Package com.sun.enterprise.admin.server.core.channel

Examples of com.sun.enterprise.admin.server.core.channel.RMIClient.sendNotification()


      ShutdownEvent shutdownEvent = new ShutdownEvent(SERVER_INSTANCE, "true");
      getLogger().log(Level.INFO,
          "sending notification to server..." +
          SERVER_INSTANCE);
      AdminEventResult result = rmiClient.sendNotification(shutdownEvent);
      getLogger().log(Level.INFO,
          "server.shutdown_complete");

  } catch(Exception e) {
      getLogger().log(Level.SEVERE, "j2eerunner.initError", e);
View Full Code Here


        // domains set the instance name to "server" -- but not in the RepositoryConfig
        if(!ok(instanceName))
            instanceName = "server";
       
      ShutdownEvent shutdownEvent = new ShutdownEvent(instanceName, stopInstancesOverride);
      AdminEventResult result = rmiClient.sendNotification(shutdownEvent);
        waitUntilStopped(60);
        postStop();
    }

    public boolean stopInstanceWithinTime(int timeout) throws InstanceException
View Full Code Here

        // domains set the instance name to "server" -- but not in the RepositoryConfig
        if(!ok(instanceName))
            instanceName = "server";
       
  ShutdownEvent shutdownEvent = new ShutdownEvent(instanceName, "true");
  AdminEventResult result = rmiClient.sendNotification(shutdownEvent);
        waitUntilStopped(timeout);
        if (isInstanceNotRunning()) {
            postStop();
            return true;
        } else return false;
View Full Code Here

        try {
            getLogger().log(Level.INFO, "nodeAgent.sending-stop");
            String agentName = getConfig().getRepositoryName();
            RMIClient rmiClient = AdminChannel.getRMIClient(agentName);               
            ShutdownEvent shutdownEvent = new ShutdownEvent(agentName, "true");    
            AdminEventResult result = rmiClient.sendNotification(shutdownEvent);           
        } catch(Exception ex) {        
            getLogger().log(Level.WARNING, "nodeAgent.exception", ex);
            System.exit(1);
       
    }      
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.