Class ImportSyncBundleCommand

  • All Implemented Interfaces:
    org.glassfish.hk2.api.PostConstruct

    @Service(name="import-sync-bundle")
    @PerLookup
    public class ImportSyncBundleCommand
    extends LocalInstanceCommand
    This is a local command that unbundles the bundle generated by export-sync-bundle. import-sync-bundle applies the content under ${com.sun.aas.instanceRoot}/ directory. Synchronization cookie with DAS's timestamp should be created. It also creates das.properties (if not present) under agent dir (ex. installRoot/glassfish4/glassfish/nodes//agent/config/das.properties). Before running this command the instance should already have been registered in DAS (server element created in DAS domain.xml) by running create-instance. This command does not validate --node or instance_name. For upgrade - this command creates a new instance filesystem if it does not exist. and completes DAS registration by setting rendezvousOccurred=true. For manual sync - this command creates a new instance filesystem or updates the directories of an existing instance (remove existing application, generated, config, docroot, lib dir first and explode the zip) and completes registration with DAS by setting rendezvousOccurred=true. If setting of rendezvousOccurred=true with DAS fails, the command does not not fail. Only a warning is printed out in the command output. We provide the exact "asadmin set command" in this warning so that user can run that command on DAS to change the rendezvousOccurred property for the server instance. Usage: import-sync-bundle [--node node_name] [--nodedir node_path] --file xyz-sync-bundle.zip instance_name --node name of the node; this is optional. The command fails if there is more than one node under the default location (installRoot/glassfish4/glassfish/nodes//) --nodedir parent dir where node is created; this is optional. Default location is installRoot/glassfish4/glassfish/nodes/ --file sync bundle created by export-sync-bundle instance_name name of the server instance
    • Field Detail

      • nodeParam

        protected String nodeParam
    • Constructor Detail

      • ImportSyncBundleCommand

        public ImportSyncBundleCommand()