Examples of ShutdownEvent


Examples of com.sun.enterprise.admin.event.ShutdownEvent

      RMIClient rmiClient = new RMIClient(
            true,
            getStubFilePath(),
            getSeedFilePath());

      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,
View Full Code Here

Examples of com.sun.enterprise.admin.event.ShutdownEvent

       
        // 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();
    }
View Full Code Here

Examples of com.sun.enterprise.admin.event.ShutdownEvent

       
        // 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;
View Full Code Here

Examples of com.sun.enterprise.admin.event.ShutdownEvent

    private static void shutdown() {       
        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

Examples of org.octabyte.fxshell.terminal.event.ShutdownEvent

    }

    @Override
    public void stop() throws Exception {
        super.stop();
        terminal.onTerminalEvent(new ShutdownEvent());
    }
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.