1 23 24 package com.sun.appserv.management.deploy; 25 26 import java.io.IOException ; 27 import java.io.Serializable ; 28 import java.util.Map ; 29 30 import javax.management.Notification ; 31 32 import com.sun.appserv.management.base.XTypes; 33 import com.sun.appserv.management.base.AMX; 34 import com.sun.appserv.management.base.Utility; 35 import com.sun.appserv.management.base.Singleton; 36 import com.sun.appserv.management.base.Util; 37 38 109 public interface DeploymentMgr extends AMX, Utility, Singleton 110 { 111 112 public static final String J2EE_TYPE = XTypes.DEPLOYMENT_MGR; 113 114 117 public static final String KEY_PREFIX = XTypes.DEPLOYMENT_MGR + "."; 118 119 123 public final String NOTIF_DEPLOYMENT_ID_KEY = KEY_PREFIX + "DeploymentID"; 124 125 131 public final String NOTIF_DEPLOYMENT_COMPLETED_STATUS_KEY = 132 KEY_PREFIX + "DeploymentCompletedStatus"; 133 134 140 public final String NOTIF_DEPLOYMENT_PROGRESS_KEY = 141 KEY_PREFIX + "DeploymentProgress"; 142 143 144 148 public final String DEPLOYMENT_STARTED_NOTIFICATION_TYPE = 149 XTypes.DEPLOYMENT_MGR + ".DeploymentStarted"; 150 151 155 public final String DEPLOYMENT_COMPLETED_NOTIFICATION_TYPE = 156 XTypes.DEPLOYMENT_MGR + ".DeploymentCompleted"; 157 158 163 public final String DEPLOYMENT_ABORTED_NOTIFICATION_TYPE = 164 XTypes.DEPLOYMENT_MGR + ".DeploymentAborted"; 165 166 170 public final String DEPLOYMENT_PROGRESS_NOTIFICATION_TYPE = 171 XTypes.DEPLOYMENT_MGR + ".DeploymentProgress"; 172 173 178 public static final String STUBS_JARFILENAME = "STUBSJAVAFILENAME"; 179 180 185 public static final String DEPLOY_OPTION_FORCE_KEY = KEY_PREFIX + "Force"; 186 187 198 public static final String DEPLOY_OPTION_CASCADE_KEY = KEY_PREFIX + "Cascade"; 199 200 205 public static final String DEPLOY_OPTION_VERIFY_KEY = KEY_PREFIX + "Verify"; 206 207 212 public static final String DEPLOY_OPTION_ENABLE_KEY = KEY_PREFIX + "Enable"; 213 214 218 public static final String DEPLOY_OPTION_CONTEXT_ROOT_KEY = KEY_PREFIX + "ContextRoot"; 219 220 225 public static final String DEPLOY_OPTION_NAME_KEY = KEY_PREFIX + "Name"; 226 227 231 public static final String DEPLOY_OPTION_DESCRIPTION_KEY = KEY_PREFIX + "Description"; 232 233 238 public static final String DEPLOY_OPTION_GENERATE_RMI_STUBS_KEY = KEY_PREFIX + "GenerateRMIStubs"; 239 240 248 public static final String DEPLOY_OPTION_AVAILABILITY_ENABLED_KEY = KEY_PREFIX + "AvailabilityEnabled"; 249 250 251 256 public static final String DEPLOY_OPTION_JAVA_WEB_START_ENABLED_KEY = 257 KEY_PREFIX + "JavaWebStartEnabled"; 258 259 265 public static final String DEPLOY_OPTION_LIBRARIES_KEY = 266 KEY_PREFIX + "Libraries"; 267 268 276 public Object initiateFileUpload( long totalSize ) 277 throws IOException ; 278 279 280 287 public Object initiateFileUpload( String name, long totalSize ) 288 throws IOException ; 289 290 298 public boolean uploadBytes(Object uploadID, byte[] bytes) 299 throws IOException ; 300 301 302 308 public Object initDeploy(); 309 310 338 public void startDeploy( Object deployID, Object uploadID, Object planUploadID, Map <String ,String > options); 339 340 341 367 public <T1 extends Serializable ,T2 extends Serializable > void startDeploy( 368 Object deployID, 369 Map <String ,T1> source, 370 Map <String ,T2> plan, 371 Map <String ,String > options); 372 373 374 392 public Notification [] takeNotifications( final Object deployID); 393 394 405 public boolean abortDeploy(Object deployID); 406 407 421 public Map <String ,Serializable > getFinalDeploymentStatus(Object deployID); 422 423 424 433 public Map <String ,Serializable > undeploy(String moduleID, Map <String ,String > optionalParams); 434 435 447 public Object initiateFileDownload(String moduleID, String fileName) 448 throws IOException ; 449 450 455 public long getDownloadLength( final Object downloadID ); 456 457 458 461 public static final int MAX_DOWNLOAD_CHUNK_SIZE = 5 * 1024 * 1024; 462 463 478 public byte[] downloadBytes( Object downloadID, int requestSize ) 479 throws IOException ; 480 481 482 483 484 } 485 | Popular Tags |