1 23 24 31 package com.sun.enterprise.admin.event; 32 33 import com.sun.enterprise.admin.event.BaseDeployEvent; 34 import com.sun.enterprise.server.Constants; 35 36 40 public class ApplicationDeployEvent extends BaseDeployEvent { 41 42 45 static final String eventType = ApplicationDeployEvent.class.getName(); 46 47 50 private boolean forceDeploy = false; 51 52 55 private int loadUnloadAction; 56 57 70 public ApplicationDeployEvent(String instance, String appName, 71 String actionCode) { 72 super(eventType, instance, BaseDeployEvent.APPLICATION, appName, 73 actionCode); 74 } 75 76 80 public ApplicationDeployEvent(String instance, String appName, 81 String actionCode, boolean cascade) { 82 super(eventType, instance, BaseDeployEvent.APPLICATION, appName, 83 actionCode, cascade); 84 } 85 89 public ApplicationDeployEvent(String instance, String appName, 90 String actionCode, boolean cascade, boolean forceDeploy) { 91 super(eventType, instance, BaseDeployEvent.APPLICATION, appName, 92 actionCode, cascade); 93 setForceDeploy(forceDeploy); 95 } 96 97 101 public ApplicationDeployEvent(String instance, String appName, 102 String actionCode, boolean cascade, boolean forceDeploy, 103 int loadUnloadAction) { 104 super(eventType, instance, BaseDeployEvent.APPLICATION, appName, 105 actionCode, cascade); 106 setForceDeploy(forceDeploy); 108 setLoadUnloadAction(loadUnloadAction); 109 } 110 111 public void setForceDeploy(boolean forceDeploy) { 112 this.forceDeploy = forceDeploy; 113 } 114 115 public boolean getForceDeploy(){ 116 return this.forceDeploy; 117 } 118 119 public void setLoadUnloadAction(int loadUnloadAction) { 120 this.loadUnloadAction = loadUnloadAction; 121 } 122 123 public int getLoadUnloadAction(){ 124 return this.loadUnloadAction; 125 } 126 127 130 public String getApplicationName() { 131 return getJ2EEComponentName(); 132 } 133 134 public String toString() { 135 return "ApplicationDeployEvent -- " + this.getAction() + " " + this.getApplicationName(); 136 } 137 } 138 | Popular Tags |