ttomcat-1778514358873.zip-extract/apache-tomcat-11.0.18-src/java/org/apache/catalina/ha/deploy/FileMessage.java

Path
ttomcat-1778514358873.zip-extract/apache-tomcat-11.0.18-src/java/org/apache/catalina/ha/deploy/FileMessage.java
Status
scanned
Type
file
Name
FileMessage.java
Extension
.java
Programming language
Java
Mime type
text/plain
File type
ASCII text, with CRLF line terminators
Tag

      
    
Rootfs path

      
    
Size
2599 (2.5 KB)
MD5
b26921a2d827258e0f66e55bdc384451
SHA1
e57870fd26c16aae41ee9ad1c4ad2b0f3ab1c892
SHA256
1fcb6de518b1e65a2638e40b182d52dc727969bd87d2fcde3b04f366de973652
SHA512

      
    
SHA1_git
680c17b6678fe75beb2d33ca7b0992296b61eca8
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
FileMessage.java | 2.5 KB |

/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.catalina.ha.deploy; import java.io.Serial; import org.apache.catalina.ha.ClusterMessageBase; import org.apache.catalina.tribes.Member; /** * Contains the data for a file being transferred over TCP, this is essentially a fragment of a file, read and written * by the FileMessageFactory. */ public class FileMessage extends ClusterMessageBase { @Serial private static final long serialVersionUID = 2L; private int messageNumber; private byte[] data; private int dataLength; private long totalNrOfMsgs; private final String fileName; private final String contextName; public FileMessage(Member source, String fileName, String contextName) { this.address = source; this.fileName = fileName; this.contextName = contextName; } public int getMessageNumber() { return messageNumber; } public void setMessageNumber(int messageNumber) { this.messageNumber = messageNumber; } public long getTotalNrOfMsgs() { return totalNrOfMsgs; } public void setTotalNrOfMsgs(long totalNrOfMsgs) { this.totalNrOfMsgs = totalNrOfMsgs; } public byte[] getData() { return data; } public void setData(byte[] data, int length) { this.data = data; this.dataLength = length; } public int getDataLength() { return dataLength; } @Override public String getUniqueId() { return getFileName() + "#-#" + getMessageNumber() + "#-#" + System.currentTimeMillis(); } public String getFileName() { return fileName; } public String getContextName() { return contextName; } }
Detected license expression
apache-2.0
Detected license expression (SPDX)
Apache-2.0
Percentage of license text
42.81
Copyrights

      
    
Holders

      
    
Authors

      
    
License detections License expression License expression SPDX
apache_2_0-4bde3f57-78aa-4201-96bf-531cba09e7de apache-2.0 Apache-2.0
URL Start line End line
http://www.apache.org/licenses/LICENSE-2.0 9 9