Package mpi

Class Info

  • All Implemented Interfaces:
    java.lang.Cloneable, Freeable

    public final class Info
    extends java.lang.Object
    implements Freeable, java.lang.Cloneable
    This class represents MPI_Info.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected long handle  
      protected static long NULL  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
        Info()
      Java binding of the MPI operation MPI_INFO_CREATE.
      protected Info​(long handle)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Info clone()
      Java binding of the MPI operation MPI_INFO_DUP.
      void delete​(java.lang.String key)
      Java binding of the MPI operation MPI_INFO_DELETE.
      Info dup()
      Java binding of the MPI operation MPI_INFO_DUP.
      void free()
      Java binding of the MPI operation MPI_INFO_FREE.
      java.lang.String get​(java.lang.String key)
      Java binding of the MPI operation MPI_INFO_GET.
      java.lang.String getKey​(int i)
      Java binding of the MPI operation MPI_INFO_GET_NTHKEY.
      boolean isNull()
      Tests if the info object is MPI_INFO_NULL (has been freed).
      protected static Info newEnv()  
      void set​(java.lang.String key, java.lang.String value)
      Java binding of the MPI operation MPI_INFO_SET.
      int size()
      Java binding of the MPI operation MPI_INFO_GET_NKEYS.
      • Methods inherited from class java.lang.Object

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

      • handle

        protected long handle
      • NULL

        protected static final long NULL
    • Constructor Detail

      • Info

        public Info()
             throws MPIException
        Java binding of the MPI operation MPI_INFO_CREATE.
        Throws:
        MPIException - Signals that an MPI exception of some sort has occurred.
      • Info

        protected Info​(long handle)
    • Method Detail

      • newEnv

        protected static Info newEnv()
      • set

        public void set​(java.lang.String key,
                        java.lang.String value)
                 throws MPIException
        Java binding of the MPI operation MPI_INFO_SET.
        Parameters:
        key - key
        value - value
        Throws:
        MPIException - Signals that an MPI exception of some sort has occurred.
      • get

        public java.lang.String get​(java.lang.String key)
                             throws MPIException
        Java binding of the MPI operation MPI_INFO_GET.
        Parameters:
        key - key
        Returns:
        value or null if key is not defined
        Throws:
        MPIException - Signals that an MPI exception of some sort has occurred.
      • delete

        public void delete​(java.lang.String key)
                    throws MPIException
        Java binding of the MPI operation MPI_INFO_DELETE.
        Parameters:
        key - key
        Throws:
        MPIException - Signals that an MPI exception of some sort has occurred.
      • size

        public int size()
                 throws MPIException
        Java binding of the MPI operation MPI_INFO_GET_NKEYS.
        Returns:
        number of defined keys
        Throws:
        MPIException - Signals that an MPI exception of some sort has occurred.
      • getKey

        public java.lang.String getKey​(int i)
                                throws MPIException
        Java binding of the MPI operation MPI_INFO_GET_NTHKEY.
        Parameters:
        i - key number
        Returns:
        key
        Throws:
        MPIException - Signals that an MPI exception of some sort has occurred.
      • clone

        public Info clone()
        Java binding of the MPI operation MPI_INFO_DUP.

        It is recommended to use dup() instead of clone() because the last can't throw an MPIException.

        Overrides:
        clone in class java.lang.Object
        Returns:
        info object
      • dup

        public Info dup()
                 throws MPIException
        Java binding of the MPI operation MPI_INFO_DUP.
        Returns:
        info object
        Throws:
        MPIException - Signals that an MPI exception of some sort has occurred.
      • free

        public void free()
                  throws MPIException
        Java binding of the MPI operation MPI_INFO_FREE.
        Specified by:
        free in interface Freeable
        Throws:
        MPIException - Signals that an MPI exception of some sort has occurred.
      • isNull

        public boolean isNull()
        Tests if the info object is MPI_INFO_NULL (has been freed).
        Returns:
        true if the info object is MPI_INFO_NULL, false otherwise.