Class ImportOptions

  • All Implemented Interfaces:
    Serializable

    public final class ImportOptions
    extends Object
    implements Serializable

    Additional options that can be specified when importing a declarative config bundle.

    The default values for these options are as follows:

    dryrun

    false

    waitForSync

    false

    raEntityReconfiguration

    doNotDeactivate

    Since:
    Rhino 3.0.0
    See Also:
    Serialized Form
    • Constructor Detail

      • ImportOptions

        public ImportOptions()
    • Method Detail

      • setDryrun

        public void setDryrun​(boolean dryrun)

        Set the flag indicating whether or not the import should be treated as a dry run. A dry run validates the import operation and returns a result as if the import would be applied but does not actually commit any changes to the SLEE.

        Parameters:
        dryrun - true if the import should be treated as a dry run, false otherwise.
        Since:
        Rhino 3.0.0
      • isDryrun

        public boolean isDryrun()

        Get the flag indicating whether or not the import should be treated as a dry run.

        Returns:
        true if the import should be treated as a dry run, false otherwise.
        Since:
        Rhino 3.0.0
      • setWaitForSync

        public void setWaitForSync​(boolean waitForSync)

        Set the flag indicating whether or not the import call should wait until desired state changes have been written to persistant storage. The default behaviour is to return as soon as the reconfiguration transaction has ended.

        Parameters:
        waitForSync - true if the import process should wait for changes to be synced, false otherwise.
        Since:
        Rhino 3.0.0
      • isWaitForSync

        public boolean isWaitForSync()

        Get the flag indicating whether or not the import call should wait until desired state changes have been written to persistant storage.

        Returns:
        true if the import process should wait for changes to be synced, false otherwise.
        Since:
        Rhino 3.0.0
      • getResourceAdaptorEntityReconfigurationAction

        public ImportOptions.ResourceAdaptorEntityReconfigurationAction getResourceAdaptorEntityReconfigurationAction()

        Get the option indicating how to handle reconfiguration of resource adaptor entities that do not supprt active reconfiguration.

        Returns:
        the action to take if the configuration bundle contains configuration properties for a resource adaptor entity of a type that does not support active reconfiguration.
        Since:
        Rhino 3.0.0
      • setResourceAdaptorEntityReconfigurationAction

        public void setResourceAdaptorEntityReconfigurationAction​(ImportOptions.ResourceAdaptorEntityReconfigurationAction resourceAdaptorEntityReconfigurationAction)

        Set the option indicating how to handle reconfiguration of resource adaptor entities that do not supprt active reconfiguration.

        Parameters:
        resourceAdaptorEntityReconfigurationAction - the action to take if the configuration bundle contains configuration properties for a resource adaptor entity of a type that does not support active reconfiguration.
        Since:
        Rhino 3.0.0
      • clone

        public Object clone()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object