Package com.sun.enterprise.admin.event

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


       
        // 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

       
        // 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

    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

TOP

Related Classes of com.sun.enterprise.admin.event.ShutdownEvent

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.