Class TableModule

  • All Implemented Interfaces:
    com.microsoft.azure.toolkit.lib.common.model.AzResourceModule<Table>, com.microsoft.azure.toolkit.lib.common.model.Refreshable

    public class TableModule
    extends com.microsoft.azure.toolkit.lib.common.model.AbstractAzResourceModule<Table,​StorageAccount,​com.azure.data.tables.TableClient>
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface com.microsoft.azure.toolkit.lib.common.model.AzResourceModule

        com.microsoft.azure.toolkit.lib.common.model.AzResourceModule.None
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private com.azure.data.tables.TableServiceClient client  
      static String NAME  
      • Fields inherited from class com.microsoft.azure.toolkit.lib.common.model.AbstractAzResourceModule

        parent
      • Fields inherited from interface com.microsoft.azure.toolkit.lib.common.model.AzResourceModule

        NONE
    • Method Detail

      • invalidateCache

        protected void invalidateCache()
        Overrides:
        invalidateCache in class com.microsoft.azure.toolkit.lib.common.model.AbstractAzResourceModule<Table,​StorageAccount,​com.azure.data.tables.TableClient>
      • getTableServiceClient

        @Nullable
        com.azure.data.tables.TableServiceClient getTableServiceClient()
      • loadResourcePagesFromAzure

        @Nonnull
        protected Iterator<? extends com.azure.core.util.paging.ContinuablePage<String,​com.azure.data.tables.TableClient>> loadResourcePagesFromAzure()
        Overrides:
        loadResourcePagesFromAzure in class com.microsoft.azure.toolkit.lib.common.model.AbstractAzResourceModule<Table,​StorageAccount,​com.azure.data.tables.TableClient>
      • loadResourcesFromAzure

        @Nonnull
        protected java.util.stream.Stream<com.azure.data.tables.TableClient> loadResourcesFromAzure()
        Overrides:
        loadResourcesFromAzure in class com.microsoft.azure.toolkit.lib.common.model.AbstractAzResourceModule<Table,​StorageAccount,​com.azure.data.tables.TableClient>
      • loadResourceFromAzure

        @Nullable
        protected com.azure.data.tables.TableClient loadResourceFromAzure​(@Nonnull
                                                                          String name,
                                                                          @Nullable
                                                                          String resourceGroup)
        Overrides:
        loadResourceFromAzure in class com.microsoft.azure.toolkit.lib.common.model.AbstractAzResourceModule<Table,​StorageAccount,​com.azure.data.tables.TableClient>
      • deleteResourceFromAzure

        protected void deleteResourceFromAzure​(@Nonnull
                                               String resourceId)
        Overrides:
        deleteResourceFromAzure in class com.microsoft.azure.toolkit.lib.common.model.AbstractAzResourceModule<Table,​StorageAccount,​com.azure.data.tables.TableClient>
      • newResource

        @Nonnull
        protected Table newResource​(@Nonnull
                                    com.azure.data.tables.TableClient r)
        Specified by:
        newResource in class com.microsoft.azure.toolkit.lib.common.model.AbstractAzResourceModule<Table,​StorageAccount,​com.azure.data.tables.TableClient>
      • getResourceTypeName

        @Nonnull
        public String getResourceTypeName()
        Specified by:
        getResourceTypeName in interface com.microsoft.azure.toolkit.lib.common.model.AzResourceModule<Table>
        Overrides:
        getResourceTypeName in class com.microsoft.azure.toolkit.lib.common.model.AbstractAzResourceModule<Table,​StorageAccount,​com.azure.data.tables.TableClient>