Logs out metadata information.

@param metadata
164016
public void log(final Metadata metadata) {
        final StringBuilder sb = new StringBuilder();

        for (final MetadataItem item : metadata.getGroupList()) {
            sb.append(LINE);
            sb.append(NEWLINE);
            sb.append(LINE);
            sb.append("Group: " + item.getName());
            sb.append(NEWLINE);
            for (MetadataElement element : item.getElements()) {
                sb.append("  Element  : " + element.getName());
                sb.append(NEWLINE);
                sb.append("  Type     : " + element.getType());
                sb.append(NEWLINE);
                sb.append("  MinOccurs: " + element.getMinOccurs());
                sb.append(NEWLINE);
                sb.append("  MaxOccurs: " + element.getMaxOccurs());
                sb.append(NEWLINE);
                sb.append("  IsAttr   : " + element.getIsAttribute());
                sb.append(NEWLINE);
                sb.append(NEWLINE);
            }

            for (MetadataElement element : item.getReferences()) {
                sb.append("  Ref      : " + element.getRef());
                sb.append(NEWLINE);
            }
            sb.append(NEWLINE);

        }

        for (MetadataEnum enumItem : metadata.getEnumList()) {
            sb.append(LINE);
            sb.append(NEWLINE);
            sb.append("Enum: " + enumItem.getName());
            sb.append(NEWLINE);
            for (String enumValue : enumItem.getValueList()) {
                sb.append("  Value    : " + enumValue);
                sb.append(NEWLINE);
            }
            sb.append(NEWLINE);
        }

        for (MetadataItem item : metadata.getClassList()) {
            sb.append(LINE);
            sb.append(NEWLINE);
            sb.append("Class: " + item.getName());
            sb.append(NEWLINE);
            for (MetadataElement element : item.getElements()) {
                sb.append("  Element  : " + element.getName());
                sb.append(NEWLINE);
                sb.append("  Type     : " + element.getType());
                sb.append(NEWLINE);
                sb.append("  MinOccurs: " + element.getMinOccurs());
                sb.append(NEWLINE);
                sb.append("  MaxOccurs: " + element.getMaxOccurs());
                sb.append(NEWLINE);
                sb.append("  IsAttr   : " + element.getIsAttribute());
                sb.append(NEWLINE);
                sb.append(NEWLINE);
            }

            for (MetadataElement element : item.getReferences()) {
                sb.append("  Ref      : " + element.getRef());
                sb.append(NEWLINE);
            }
            sb.append(NEWLINE);
        }

        for (MetadataItem dataType : metadata.getDataTypeList()) {
            sb.append(LINE);
            sb.append(NEWLINE);
            sb.append("Name    : " + dataType.getName());
            sb.append(NEWLINE);
            sb.append("MappedTo: " + dataType.getMappedTo());
            sb.append(NEWLINE);
        }

        // Log
        log.info(sb.toString());
    }
724295
private void initialize(Map<String, Object> metadata) {
        if (metadata == null) {
            metadata = new HashMap<String, Object>();
        }
        metadata.put(REQUEST_ID, generateRequestID());
        this.metadata = metadata;
    }
1233192
public void logout() {
        if (vimService != null) {
            try {
                serviceInstance.getSessionManager().logout();
            }
            catch (Exception e) {
                System.err.println("Failed to disconnect...");
            }
            vimService = null;
            serviceInstance = null;
        }
    }
1200859
public Application withMetadata(java.util.Map<String, String> metadata) {
        setMetadata(metadata);
        return this;
    }
238491
private static void onDestroyDBResources(EntityManagerFactory emf,EntityManager em) {
		if(emf != null)
		{
			emf.close();
		}
		
		if(em != null)
		{
			em.close();
		}
	}
254951
public void usage(@Nullable GlobalMetadata global, CommandGroupMetadata group, StringBuilder out)
    {
        usage(global, group, new UsagePrinter(out, columnSize));
    }
447750
public static void logout() {

        CmsObject cms = A_CmsUI.getCmsObject();
        if (UI.getCurrent() instanceof CmsAppWorkplaceUi) {
            ((CmsAppWorkplaceUi)UI.getCurrent()).onWindowClose();
        }
        String loggedInUser = cms.getRequestContext().getCurrentUser().getName();
        UI.getCurrent().getSession().close();
        String loginLink = OpenCms.getLinkManager().substituteLinkForUnknownTarget(
            cms,
            CmsWorkplaceLoginHandler.LOGIN_HANDLER,
            false);
        VaadinService.getCurrentRequest().getWrappedSession().invalidate();
        Page.getCurrent().setLocation(loginLink);
        // logout was successful
        if (LOG.isInfoEnabled()) {
            LOG.info(
                org.opencms.jsp.Messages.get().getBundle().key(
                    org.opencms.jsp.Messages.LOG_LOGOUT_SUCCESFUL_3,
                    loggedInUser,
                    "{workplace logout option}",
                    cms.getRequestContext().getRemoteAddress()));
        }
    }
908351
@Override
    public void endMetaData(MetaData metadata)
    {
        this.builder.addBlock(new MetaDataBlock(this.builder.endBlockList(), metadata));
    }
671150
public void writeMetaData( long metaDataOffset , int metaData ) throws JournalException
    {
    	// Refuse any further operation in case of previous failure
    	if (failing)
    		throw new JournalException("Store journal is failing");
    	
        synchronized (journalWriteQueue)
        {
        	if (traceEnabled)
        		log.trace("["+baseName+"] #"+currentTransactionId+" Queueing metadata write : offset="+metaDataOffset+" metaData="+metaData+" / queueSize="+(journalWriteQueue.size()+1));
        	
        	MetaDataWriteOperation op = new MetaDataWriteOperation(currentTransactionId,
												                   metaDataOffset, 
												                   metaData);
        	unflushedJournalSize += op.size();
            journalWriteQueue.addLast(op);
            totalPendingOperations++;
        }
    }
225483
function forcePublicMetadata(metadata) {
        delete metadata.isProtected;
        delete metadata.isPrivate;
        metadata.isPublic = metadata.forcedPublic = true;
    }
1039798
@Override
    public void logout(boolean force, String target, String message) {
        log.trace("Logging Out");
        IContextManager contextManager = ContextManager.getInstance();

        if (contextManager == null) {
            logout(target, message);
        } else {
            contextManager.reset(force, (response) -> {
                if (force || !response.rejected()) {
                    logout(target, message);
                }
            });
        }
708679
private void writeChunkMetaData(final BAMIndexMetaData metaData) {
      codec.writeInt(GenomicIndexUtil.MAX_BINS);
      final int nChunk = 2;
      codec.writeInt(nChunk);
      codec.writeLong(metaData.getFirstOffset());
      codec.writeLong(metaData.getLastOffset());
      codec.writeLong(metaData.getAlignedRecordCount());
      codec.writeLong(metaData.getUnalignedRecordCount());

  }
1264810
public static void unregisterLogListener(@NonNull final Context context, @NonNull final DfuLogListener listener) {
		if (mLogBroadcastReceiver != null) {
			final boolean empty = mLogBroadcastReceiver.removeLogListener(listener);

			if (empty) {
				LocalBroadcastManager.getInstance(context).unregisterReceiver(mLogBroadcastReceiver);
				mLogBroadcastReceiver = null;
			}
		}
	}
1192979
def clear(self):
        
        for f in [x['content'] for x in self.metadata.values()]:
            os.remove(f)

        self.metadata = {}
        self._flush()
327082
public static void populateMetadata(AbstractComputeInstanceMetadata instanceMetadata, Map<?, ?> metadata) {
        if (metadata != null) {
            Map<String, String> finalMetadata = new HashMap<>(metadata.size());
            for (Map.Entry<?, ?> entry : metadata.entrySet()) {
                Object key = entry.getKey();
                Object value = entry.getValue();
                if (value instanceof String) {
                    finalMetadata.put(key.toString(), value.toString());
                }
            }
            instanceMetadata.setMetadata(finalMetadata);
        }
    }
75280
private void publishMetadata(String metadataValue, int branchId, Path metadataOutputPath)
      throws IOException {
    try {
      if (metadataOutputPath == null) {
        LOG.info("Metadata output path not set for branch " + String.valueOf(branchId) + ", not publishing.");
        return;
      }

      if (metadataValue == null) {
        LOG.info("No metadata collected for branch " + String.valueOf(branchId) + ", not publishing.");
        return;
      }

      FileSystem fs = this.metaDataWriterFileSystemByBranches.get(branchId);

        if (!fs.exists(metadataOutputPath.getParent())) {
          WriterUtils.mkdirsWithRecursivePermissionWithRetry(fs, metadataOutputPath, this.permissions.get(branchId), retrierConfig);
        }

      //Delete the file if metadata already exists
      if (fs.exists(metadataOutputPath)) {
        HadoopUtils.deletePath(fs, metadataOutputPath, false);
      }
      LOG.info("Writing metadata for branch " + String.valueOf(branchId) + " to " + metadataOutputPath.toString());
      try (FSDataOutputStream outputStream = fs.create(metadataOutputPath)) {
        outputStream.write(metadataValue.getBytes(StandardCharsets.UTF_8));
      }
    } catch (IOException e) {
      LOG.error("Metadata file is not generated: " + e, e);
    }
  }
154570
def delete_metadata(self, href=None):
        """"""

        # Argument error checking.
        assert href is not None

        raw_result = self.delete(href)

        if raw_result.status != 204:
            raise APIException(raw_result.status, raw_result.json)