Class TPT.TPTState

  • Enclosing class:
    TPT

    private static class TPT.TPTState
    extends java.lang.Object
    An inner class that holds the third party state for a particular site. It designates whether a transfer needs to be third party or not, and in addition whether it needs to be executed remotely or locally.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int ALL_TPT_REMOTE
      The constant to denote that all transfers are to be executed on the remote site.
      static int ALL_TPT_TYPE
      The constant to denote that all transfers are to be third party.
      static int INTER_TPT_REMOTE
      The constant to denote that an inter site transfer is to be executed on the remote site.
      static int INTER_TPT_TYPE
      The constant to denote that an inter site transfer is to be third party.
      private int mState
      Stores the state as an integer.
      static int STAGE_IN_TPT_REMOTE
      The constant to denote that a stage-in transfer is to be executed on the remote site.
      static int STAGE_IN_TPT_TYPE
      The constant to denote that a stage-in transfer is to be third party.
      static int STAGE_OUT_TPT_REMOTE
      The constant to denote that a stage-out transfer is to be executed on the remote site.
      static int STAGE_OUT_TPT_TYPE
      The constant to denote that a stage-out transfer is to be third party.
    • Constructor Summary

      Constructors 
      Constructor Description
      TPTState()
      The default constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean get​(int type)
      Returns a boolean indicating whether the attribute passed is set in the transfer state or not.
      int getState()
      Returns the state.
      void set​(int type)
      Sets a type of transfer to be third party.
      java.lang.String toString()
      Returns a textual description of the state as (stageinRemote,interRemote,stageoutRemote,stageinTPT,interTPT,stageOutTPT).
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • STAGE_IN_TPT_TYPE

        public static final int STAGE_IN_TPT_TYPE
        The constant to denote that a stage-in transfer is to be third party.
        See Also:
        Constant Field Values
      • INTER_TPT_TYPE

        public static final int INTER_TPT_TYPE
        The constant to denote that an inter site transfer is to be third party.
        See Also:
        Constant Field Values
      • STAGE_OUT_TPT_TYPE

        public static final int STAGE_OUT_TPT_TYPE
        The constant to denote that a stage-out transfer is to be third party.
        See Also:
        Constant Field Values
      • ALL_TPT_TYPE

        public static final int ALL_TPT_TYPE
        The constant to denote that all transfers are to be third party.
        See Also:
        Constant Field Values
      • STAGE_IN_TPT_REMOTE

        public static final int STAGE_IN_TPT_REMOTE
        The constant to denote that a stage-in transfer is to be executed on the remote site.
        See Also:
        Constant Field Values
      • INTER_TPT_REMOTE

        public static final int INTER_TPT_REMOTE
        The constant to denote that an inter site transfer is to be executed on the remote site.
        See Also:
        Constant Field Values
      • STAGE_OUT_TPT_REMOTE

        public static final int STAGE_OUT_TPT_REMOTE
        The constant to denote that a stage-out transfer is to be executed on the remote site.
        See Also:
        Constant Field Values
      • ALL_TPT_REMOTE

        public static final int ALL_TPT_REMOTE
        The constant to denote that all transfers are to be executed on the remote site.
        See Also:
        Constant Field Values
      • mState

        private int mState
        Stores the state as an integer.
    • Constructor Detail

      • TPTState

        public TPTState()
        The default constructor.
    • Method Detail

      • getState

        public int getState()
        Returns the state.
        Returns:
        the state as an int
      • set

        public void set​(int type)
        Sets a type of transfer to be third party.
        Parameters:
        type - the type of transfer to be set TPT
      • get

        public boolean get​(int type)
        Returns a boolean indicating whether the attribute passed is set in the transfer state or not. The attribute types are as constants in this class.
        Parameters:
        type - the attribute type.
      • toString

        public java.lang.String toString()
        Returns a textual description of the state as (stageinRemote,interRemote,stageoutRemote,stageinTPT,interTPT,stageOutTPT).
        Overrides:
        toString in class java.lang.Object
        Returns:
        the textual description.