Java EE 5 SDK

com.sun.appserv.management.deploy
Class DeploymentProgressImpl

java.lang.Object
  extended by com.sun.appserv.management.base.MapCapableBase
      extended by com.sun.appserv.management.deploy.DeploymentProgressImpl
All Implemented Interfaces:
MapCapable, DeploymentProgress

public final class DeploymentProgressImpl
extends MapCapableBase
implements DeploymentProgress

Use DeploymentSupport to create a new instance of this class.


Field Summary
 
Fields inherited from interface com.sun.appserv.management.deploy.DeploymentProgress
DEPLOYMENT_PROGRESS_CLASS_NAME, DESCRIPTION_KEY, LOCALIZED_DESCRIPTION_KEY_BASE, PROGRESS_PERCENT_KEY
 
Fields inherited from interface com.sun.appserv.management.base.MapCapable
MAP_CAPABLE_CLASS_NAME_KEY
 
Constructor Summary
DeploymentProgressImpl(byte progressPercent, String description, Map<String,T> other)
          Create a new instance with explicit params
DeploymentProgressImpl(DeploymentProgress src)
          Create a new instance based on another.
DeploymentProgressImpl(Map<String,T> m)
          Create a new instance.
 
Method Summary
 String getDescription()
           
 String getLocalizedDescription(Locale locale)
           
static String getLocalizedDescriptionKey(Locale locale)
           
 String getMapClassName()
          Return the type name which will be paired with MAP_CAPABLE_CLASS_NAME_KEY.
 byte getProgressPercent()
           
protected  boolean validate()
          Return true if internal state is valid, false otherwise.
 
Methods inherited from class com.sun.appserv.management.base.MapCapableBase
asMap, asMapHook, checkInJavaUtil, checkLegalObject, checkLegalObject, checkValidType, equals, getboolean, getBoolean, getByte, getField, getFile, getInteger, getMap, getObject, getString, getStringArray, hashCode, illegalObject, makeImmutable, putAll, putField, putFieldHook, toString, validateNullOrOfType, validateThrow
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.sun.appserv.management.base.MapCapable
asMap
 

Constructor Detail

DeploymentProgressImpl

public DeploymentProgressImpl(DeploymentProgress src)
Create a new instance based on another.


DeploymentProgressImpl

public DeploymentProgressImpl(byte progressPercent,
                              String description,
                              Map<String,T> other)
Create a new instance with explicit params

Parameters:
progressPercent -
description -
other - other values, see this( Map m )

DeploymentProgressImpl

public DeploymentProgressImpl(Map<String,T> m)
Create a new instance. The Map must contain the following keyed values:

The map may contain also contain localized descriptions. See DeploymentProgress.LOCALIZED_DESCRIPTION_KEY_BASE.

Parameters:
m - a Map representing a DeploymentProgress
Method Detail

validate

protected boolean validate()
Description copied from class: MapCapableBase
Return true if internal state is valid, false otherwise.

Specified by:
validate in class MapCapableBase

getMapClassName

public String getMapClassName()
Description copied from class: MapCapableBase
Return the type name which will be paired with MAP_CAPABLE_CLASS_NAME_KEY.

Specified by:
getMapClassName in interface MapCapable
Overrides:
getMapClassName in class MapCapableBase

getLocalizedDescriptionKey

public static String getLocalizedDescriptionKey(Locale locale)

getProgressPercent

public byte getProgressPercent()
Specified by:
getProgressPercent in interface DeploymentProgress
Returns:
the deployment progress number between 0 and 100 (deployment finished). This number is purely indicative and cannot be used to calculate actual remaining time

getDescription

public String getDescription()
Specified by:
getDescription in interface DeploymentProgress
Returns:
the last meaningful description of the current deployment operation

getLocalizedDescription

public String getLocalizedDescription(Locale locale)
Specified by:
getLocalizedDescription in interface DeploymentProgress
Returns:
the last meaningful localized description of the current deployment operation.

Java EE 5 SDK

Submit a bug or feature

Copyright 2006 Sun Microsystems, Inc. All rights reserved.