Java EE 5 SDK

com.sun.appserv.management.deploy
Class DeploymentSourceImpl

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

public final class DeploymentSourceImpl
extends MapCapableBase
implements DeploymentSource


Field Summary
static String ARCHIVE_FILE_KEY
          Key corresponding to getArchive()
static String ENTRIES_ADDED_KEY
          Key corresponding to getEntriesAdded()
static String ENTRIES_DELETED_KEY
          Key corresponding to getEntriesDeleted()
static String ENTRIES_REMOVED_KEY
          Key corresponding to getEntriesRemoved()
static String IS_COMPLETE_ARCHIVE_KEY
          Key corresponding to isComplete()
 
Fields inherited from interface com.sun.appserv.management.deploy.DeploymentSource
DEPLOYMENT_SOURCE_CLASS_NAME
 
Fields inherited from interface com.sun.appserv.management.base.MapCapable
MAP_CAPABLE_CLASS_NAME_KEY
 
Constructor Summary
DeploymentSourceImpl(DeploymentSource src)
           
DeploymentSourceImpl(Map<String,T> m)
           
DeploymentSourceImpl(String archiveFile, boolean isCompleteArchive, String[] entriesAdded, String[] entriesRemoved, String[] entriesDeleted, Map<String,T> other)
           
 
Method Summary
 File getArchive()
          (Optional)
 JarInputStream getArchiveAsStream()
           
 String[] getEntriesAdded()
          In case of a partial delivery.
 String[] getEntriesDeleted()
          In case of a partial delivery.
 String[] getEntriesRemoved()
          In case of a partial archive delivery.
 String getMapClassName()
          Return the type name which will be paired with MAP_CAPABLE_CLASS_NAME_KEY.
 boolean isCompleteArchive()
           
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
 

Field Detail

ARCHIVE_FILE_KEY

public static final String ARCHIVE_FILE_KEY
Key corresponding to getArchive()

See Also:
Constant Field Values

IS_COMPLETE_ARCHIVE_KEY

public static final String IS_COMPLETE_ARCHIVE_KEY
Key corresponding to isComplete()

See Also:
Constant Field Values

ENTRIES_ADDED_KEY

public static final String ENTRIES_ADDED_KEY
Key corresponding to getEntriesAdded()

See Also:
Constant Field Values

ENTRIES_REMOVED_KEY

public static final String ENTRIES_REMOVED_KEY
Key corresponding to getEntriesRemoved()

See Also:
Constant Field Values

ENTRIES_DELETED_KEY

public static final String ENTRIES_DELETED_KEY
Key corresponding to getEntriesDeleted()

See Also:
Constant Field Values
Constructor Detail

DeploymentSourceImpl

public DeploymentSourceImpl(DeploymentSource src)

DeploymentSourceImpl

public DeploymentSourceImpl(Map<String,T> m)

DeploymentSourceImpl

public DeploymentSourceImpl(String archiveFile,
                            boolean isCompleteArchive,
                            String[] entriesAdded,
                            String[] entriesRemoved,
                            String[] entriesDeleted,
                            Map<String,T> other)
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

getArchive

public File getArchive()
Description copied from interface: DeploymentSource
(Optional)

Specified by:
getArchive in interface DeploymentSource
Returns:
the archive as a file handle if possible otherwise return null.

getArchiveAsStream

public JarInputStream getArchiveAsStream()
                                  throws IOException
Specified by:
getArchiveAsStream in interface DeploymentSource
Returns:
a JarInputStream on the archive.
Throws:
IOException

isCompleteArchive

public boolean isCompleteArchive()
Specified by:
isCompleteArchive in interface DeploymentSource
Returns:
true if this archive is complete or false if it is a partial delivery (redeploy).

getEntriesAdded

public String[] getEntriesAdded()
Description copied from interface: DeploymentSource
In case of a partial delivery.

Specified by:
getEntriesAdded in interface DeploymentSource
Returns:
entries added iterator

getEntriesRemoved

public String[] getEntriesRemoved()
Description copied from interface: DeploymentSource
In case of a partial archive delivery.

Specified by:
getEntriesRemoved in interface DeploymentSource
Returns:
entries removed iterator

getEntriesDeleted

public String[] getEntriesDeleted()
Description copied from interface: DeploymentSource
In case of a partial delivery.

Specified by:
getEntriesDeleted in interface DeploymentSource
Returns:
entries deleted iterator

Java EE 5 SDK

Submit a bug or feature

Copyright 2006 Sun Microsystems, Inc. All rights reserved.