Class ResourceConfig

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      int getClassId()
      Returns type identifier for this class.
      int getFactoryId()
      Returns DataSerializableFactory factory ID for this class.
      java.lang.String getId()
      Returns the ID of the resource that will be used to form the IMap key under which it will be stored in the Jet cluster.
      ResourceType getResourceType()
      Returns the type of the resource.
      java.net.URL getUrl()
      Returns the URL at which the resource is available.
      int hashCode()  
      void readData​(ObjectDataInput in)
      Reads fields from the input stream
      java.lang.String toString()  
      void writeData​(ObjectDataOutput out)
      Writes object fields to output stream
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Method Detail

      • getUrl

        @Nonnull
        public java.net.URL getUrl()
        Returns the URL at which the resource is available. Resolved on the local machine during job submission.
      • getId

        @Nonnull
        public java.lang.String getId()
        Returns the ID of the resource that will be used to form the IMap key under which it will be stored in the Jet cluster.
      • getResourceType

        @Nonnull
        public ResourceType getResourceType()
        Returns the type of the resource.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • writeData

        public void writeData​(ObjectDataOutput out)
                       throws java.io.IOException
        Description copied from interface: DataSerializable
        Writes object fields to output stream
        Specified by:
        writeData in interface DataSerializable
        Parameters:
        out - output
        Throws:
        java.io.IOException - if an I/O error occurs. In particular, an IOException may be thrown if the output stream has been closed.
      • readData

        public void readData​(ObjectDataInput in)
                      throws java.io.IOException
        Description copied from interface: DataSerializable
        Reads fields from the input stream
        Specified by:
        readData in interface DataSerializable
        Parameters:
        in - input
        Throws:
        java.io.IOException - if an I/O error occurs. In particular, an IOException may be thrown if the input stream has been closed.