The following document contains the results of PMD's CPD 6.42.0.
File | Project | Line |
---|---|---|
org/waarp/compress/zstdsafe/CompressionParameters.java | Waarp Compression | 39 |
org/waarp/compress/zstdunsafe/CompressionParameters.java | Waarp Compression | 38 |
class CompressionParameters { private static final int MIN_HASH_LOG = 6; public static final int DEFAULT_COMPRESSION_LEVEL = 3; private static final int MAX_COMPRESSION_LEVEL = 22; private final int windowLog; // largest match distance : larger == more compression, more memory needed during decompression private final int chainLog; // fully searched segment : larger == more compression, slower, more memory (useless for fast) private final int hashLog; // dispatch table : larger == faster, more memory private final int searchLog; // nb of searches : larger == more compression, slower private final int searchLength; // match length searched : larger == faster decompression, sometimes less compression private final int targetLength; // acceptable match size for optimal parser (only) : larger == more compression, slower private final Strategy strategy; private static final CompressionParameters[][] DEFAULT_COMPRESSION_PARAMETERS = new CompressionParameters[][] { { // default new CompressionParameters(19, 12, 13, 1, 6, 1, Strategy.FAST), /* base for negative levels */ new CompressionParameters(19, 13, 14, 1, 7, 0, Strategy.FAST), /* level 1 */ new CompressionParameters(19, 15, 16, 1, 6, 0, Strategy.FAST), /* level 2 */ new CompressionParameters(20, 16, 17, 1, 5, 1, Strategy.DFAST), /* level 3 */ new CompressionParameters(20, 18, 18, 1, 5, 1, Strategy.DFAST), /* level 4 */ new CompressionParameters(20, 18, 18, 2, 5, 2, Strategy.GREEDY), /* level 5 */ new CompressionParameters(21, 18, 19, 2, 5, 4, Strategy.LAZY), /* level 6 */ new CompressionParameters(21, 18, 19, 3, 5, 8, Strategy.LAZY2), /* level 7 */ new CompressionParameters(21, 19, 19, 3, 5, 16, Strategy.LAZY2), /* level 8 */ new CompressionParameters(21, 19, 20, 4, 5, 16, Strategy.LAZY2), /* level 9 */ new CompressionParameters(21, 20, 21, 4, 5, 16, Strategy.LAZY2), /* level 10 */ new CompressionParameters(21, 21, 22, 4, 5, 16, Strategy.LAZY2), /* level 11 */ new CompressionParameters(22, 20, 22, 5, 5, 16, Strategy.LAZY2), /* level 12 */ new CompressionParameters(22, 21, 22, 4, 5, 32, Strategy.BTLAZY2), /* level 13 */ new CompressionParameters(22, 21, 22, 5, 5, 32, Strategy.BTLAZY2), /* level 14 */ new CompressionParameters(22, 22, 22, 6, 5, 32, Strategy.BTLAZY2), /* level 15 */ new CompressionParameters(22, 21, 22, 4, 5, 48, Strategy.BTOPT), /* level 16 */ new CompressionParameters(23, 22, 22, 4, 4, 64, Strategy.BTOPT), /* level 17 */ new CompressionParameters(23, 23, 22, 6, 3, 256, Strategy.BTOPT), /* level 18 */ new CompressionParameters(23, 24, 22, 7, 3, 256, Strategy.BTULTRA), /* level 19 */ new CompressionParameters(25, 25, 23, 7, 3, 256, Strategy.BTULTRA), /* level 20 */ new CompressionParameters(26, 26, 24, 7, 3, 512, Strategy.BTULTRA), /* level 21 */ new CompressionParameters(27, 27, 25, 9, 3, 999, Strategy.BTULTRA) /* level 22 */ }, { // for size <= 256 KB new CompressionParameters(18, 12, 13, 1, 5, 1, Strategy.FAST), /* base for negative levels */ new CompressionParameters(18, 13, 14, 1, 6, 0, Strategy.FAST), /* level 1 */ new CompressionParameters(18, 14, 14, 1, 5, 1, Strategy.DFAST), /* level 2 */ new CompressionParameters(18, 16, 16, 1, 4, 1, Strategy.DFAST), /* level 3 */ new CompressionParameters(18, 16, 17, 2, 5, 2, Strategy.GREEDY), /* level 4.*/ new CompressionParameters(18, 18, 18, 3, 5, 2, Strategy.GREEDY), /* level 5.*/ new CompressionParameters(18, 18, 19, 3, 5, 4, Strategy.LAZY), /* level 6.*/ new CompressionParameters(18, 18, 19, 4, 4, 4, Strategy.LAZY), /* level 7 */ new CompressionParameters(18, 18, 19, 4, 4, 8, Strategy.LAZY2), /* level 8 */ new CompressionParameters(18, 18, 19, 5, 4, 8, Strategy.LAZY2), /* level 9 */ new CompressionParameters(18, 18, 19, 6, 4, 8, Strategy.LAZY2), /* level 10 */ new CompressionParameters(18, 18, 19, 5, 4, 16, Strategy.BTLAZY2), /* level 11.*/ new CompressionParameters(18, 19, 19, 6, 4, 16, Strategy.BTLAZY2), /* level 12.*/ new CompressionParameters(18, 19, 19, 8, 4, 16, Strategy.BTLAZY2), /* level 13 */ new CompressionParameters(18, 18, 19, 4, 4, 24, Strategy.BTOPT), /* level 14.*/ new CompressionParameters(18, 18, 19, 4, 3, 24, Strategy.BTOPT), /* level 15.*/ new CompressionParameters(18, 19, 19, 6, 3, 64, Strategy.BTOPT), /* level 16.*/ new CompressionParameters(18, 19, 19, 8, 3, 128, Strategy.BTOPT), /* level 17.*/ new CompressionParameters(18, 19, 19, 10, 3, 256, Strategy.BTOPT), /* level 18.*/ new CompressionParameters(18, 19, 19, 10, 3, 256, Strategy.BTULTRA), /* level 19.*/ new CompressionParameters(18, 19, 19, 11, 3, 512, Strategy.BTULTRA), /* level 20.*/ new CompressionParameters(18, 19, 19, 12, 3, 512, Strategy.BTULTRA), /* level 21.*/ new CompressionParameters(18, 19, 19, 13, 3, 999, Strategy.BTULTRA) /* level 22.*/ }, { // for size <= 128 KB new CompressionParameters(17, 12, 12, 1, 5, 1, Strategy.FAST), /* base for negative levels */ new CompressionParameters(17, 12, 13, 1, 6, 0, Strategy.FAST), /* level 1 */ new CompressionParameters(17, 13, 15, 1, 5, 0, Strategy.FAST), /* level 2 */ new CompressionParameters(17, 15, 16, 2, 5, 1, Strategy.DFAST), /* level 3 */ new CompressionParameters(17, 17, 17, 2, 4, 1, Strategy.DFAST), /* level 4 */ new CompressionParameters(17, 16, 17, 3, 4, 2, Strategy.GREEDY), /* level 5 */ new CompressionParameters(17, 17, 17, 3, 4, 4, Strategy.LAZY), /* level 6 */ new CompressionParameters(17, 17, 17, 3, 4, 8, Strategy.LAZY2), /* level 7 */ new CompressionParameters(17, 17, 17, 4, 4, 8, Strategy.LAZY2), /* level 8 */ new CompressionParameters(17, 17, 17, 5, 4, 8, Strategy.LAZY2), /* level 9 */ new CompressionParameters(17, 17, 17, 6, 4, 8, Strategy.LAZY2), /* level 10 */ new CompressionParameters(17, 17, 17, 7, 4, 8, Strategy.LAZY2), /* level 11 */ new CompressionParameters(17, 18, 17, 6, 4, 16, Strategy.BTLAZY2), /* level 12 */ new CompressionParameters(17, 18, 17, 8, 4, 16, Strategy.BTLAZY2), /* level 13.*/ new CompressionParameters(17, 18, 17, 4, 4, 32, Strategy.BTOPT), /* level 14.*/ new CompressionParameters(17, 18, 17, 6, 3, 64, Strategy.BTOPT), /* level 15.*/ new CompressionParameters(17, 18, 17, 7, 3, 128, Strategy.BTOPT), /* level 16.*/ new CompressionParameters(17, 18, 17, 7, 3, 256, Strategy.BTOPT), /* level 17.*/ new CompressionParameters(17, 18, 17, 8, 3, 256, Strategy.BTOPT), /* level 18.*/ new CompressionParameters(17, 18, 17, 8, 3, 256, Strategy.BTULTRA), /* level 19.*/ new CompressionParameters(17, 18, 17, 9, 3, 256, Strategy.BTULTRA), /* level 20.*/ new CompressionParameters(17, 18, 17, 10, 3, 256, Strategy.BTULTRA), /* level 21.*/ new CompressionParameters(17, 18, 17, 11, 3, 512, Strategy.BTULTRA) /* level 22.*/ }, { // for size <= 16 KB new CompressionParameters(14, 12, 13, 1, 5, 1, Strategy.FAST), /* base for negative levels */ new CompressionParameters(14, 14, 15, 1, 5, 0, Strategy.FAST), /* level 1 */ new CompressionParameters(14, 14, 15, 1, 4, 0, Strategy.FAST), /* level 2 */ new CompressionParameters(14, 14, 14, 2, 4, 1, Strategy.DFAST), /* level 3.*/ new CompressionParameters(14, 14, 14, 4, 4, 2, Strategy.GREEDY), /* level 4.*/ new CompressionParameters(14, 14, 14, 3, 4, 4, Strategy.LAZY), /* level 5.*/ new CompressionParameters(14, 14, 14, 4, 4, 8, Strategy.LAZY2), /* level 6 */ new CompressionParameters(14, 14, 14, 6, 4, 8, Strategy.LAZY2), /* level 7 */ new CompressionParameters(14, 14, 14, 8, 4, 8, Strategy.LAZY2), /* level 8.*/ new CompressionParameters(14, 15, 14, 5, 4, 8, Strategy.BTLAZY2), /* level 9.*/ new CompressionParameters(14, 15, 14, 9, 4, 8, Strategy.BTLAZY2), /* level 10.*/ new CompressionParameters(14, 15, 14, 3, 4, 12, Strategy.BTOPT), /* level 11.*/ new CompressionParameters(14, 15, 14, 6, 3, 16, Strategy.BTOPT), /* level 12.*/ new CompressionParameters(14, 15, 14, 6, 3, 24, Strategy.BTOPT), /* level 13.*/ new CompressionParameters(14, 15, 15, 6, 3, 48, Strategy.BTOPT), /* level 14.*/ new CompressionParameters(14, 15, 15, 6, 3, 64, Strategy.BTOPT), /* level 15.*/ new CompressionParameters(14, 15, 15, 6, 3, 96, Strategy.BTOPT), /* level 16.*/ new CompressionParameters(14, 15, 15, 6, 3, 128, Strategy.BTOPT), /* level 17.*/ new CompressionParameters(14, 15, 15, 8, 3, 256, Strategy.BTOPT), /* level 18.*/ new CompressionParameters(14, 15, 15, 6, 3, 256, Strategy.BTULTRA), /* level 19.*/ new CompressionParameters(14, 15, 15, 8, 3, 256, Strategy.BTULTRA), /* level 20.*/ new CompressionParameters(14, 15, 15, 9, 3, 256, Strategy.BTULTRA), /* level 21.*/ new CompressionParameters(14, 15, 15, 10, 3, 512, Strategy.BTULTRA) /* level 22.*/ } }; public enum Strategy { // from faster to stronger // YC: fast is a "single probe" strategy : at every position, we attempt to find a match, and give up if we don't find any. similar to lz4. FAST(BlockCompressor.UNSUPPORTED), // YC: double_fast is a 2 attempts strategies. They are not symmetrical by the way. One attempt is "normal" while the second one looks for "long matches". It was // empirically found that this was the best trade off. As can be guessed, it's slower than single-attempt, but find more and better matches, so compresses better. DFAST(new DoubleFastBlockCompressor()), // YC: greedy uses a hash chain strategy. Every position is hashed, and all positions with same hash are chained. The algorithm goes through all candidates. There are // diminishing returns in going deeper and deeper, so after a nb of attempts (which can be selected), it abandons the search. The best (longest) match wins. If there is // one winner, it's immediately encoded. GREEDY(BlockCompressor.UNSUPPORTED), // YC: lazy will do something similar to greedy, but will not encode immediately. It will search again at next position, in case it would find something better. // It's actually fairly common to have a small match at position p hiding a more worthy one at position p+1. This obviously increases the search workload. But the // resulting compressed stream generally contains larger matches, hence compresses better. LAZY(BlockCompressor.UNSUPPORTED), // YC: lazy2 is same as lazy, but deeper. It will search at P, P+1 and then P+2 in case it would find something even better. More workload. Better matches. LAZY2(BlockCompressor.UNSUPPORTED), // YC: btlazy2 is like lazy2, but trades the hash chain for a binary tree. This becomes necessary, as the nb of attempts becomes prohibitively expensive. The binary tree // complexity increases with log of search depth, instead of proportionally with search depth. So searching deeper in history quickly becomes the dominant operation. // btlazy2 cuts into that. But it costs 2x more memory. It's also relatively "slow", even when trying to cut its parameters to make it perform faster. So it's really // a high compression strategy. BTLAZY2(BlockCompressor.UNSUPPORTED), // YC: btopt is, well, a hell of lot more complex. // It will compute and find multiple matches per position, will dynamically compare every path from point P to P+N, reverse the graph to find cheapest path, iterate on // batches of overlapping matches, etc. It's much more expensive. But the compression ratio is also much better. BTOPT(BlockCompressor.UNSUPPORTED), // YC: btultra is about the same, but doesn't cut as many corners (btopt "abandons" more quickly unpromising little gains). Slower, stronger. BTULTRA(BlockCompressor.UNSUPPORTED); private final BlockCompressor compressor; Strategy(final BlockCompressor compressor) { this.compressor = compressor; } public BlockCompressor getCompressor() { return compressor; } } public CompressionParameters(final int windowLog, final int chainLog, final int hashLog, final int searchLog, final int searchLength, final int targetLength, final Strategy strategy) { this.windowLog = windowLog; this.chainLog = chainLog; this.hashLog = hashLog; this.searchLog = searchLog; this.searchLength = searchLength; this.targetLength = targetLength; this.strategy = strategy; } public int getWindowLog() { return windowLog; } public int getSearchLength() { return searchLength; } public int getChainLog() { return chainLog; } public int getHashLog() { return hashLog; } public int getSearchLog() { return searchLog; } public int getTargetLength() { return targetLength; } public Strategy getStrategy() { return strategy; } public static CompressionParameters compute(final int compressionLevel, final int inputSize) { final CompressionParameters defaultParameters = getDefaultParameters(compressionLevel, inputSize); int targetLength = defaultParameters.targetLength; int windowLog = defaultParameters.windowLog; int chainLog = defaultParameters.chainLog; int hashLog = defaultParameters.hashLog; final int searchLog = defaultParameters.searchLog; final int searchLength = defaultParameters.searchLength; final Strategy strategy = defaultParameters.strategy; if (compressionLevel < 0) { targetLength = -compressionLevel; // acceleration factor } // resize windowLog if input is small enough, to use less memory final int maxWindowResize = 1 << (MAX_WINDOW_LOG - 1); |
File | Project | Line |
---|---|---|
org/waarp/compress/zstdsafe/ZstdFrameDecompressor.java | Waarp Compression | 45 |
org/waarp/compress/zstdunsafe/ZstdFrameDecompressor.java | Waarp Compression | 46 |
class ZstdFrameDecompressor { private static final int[] DEC_32_TABLE = { 4, 1, 2, 1, 4, 4, 4, 4 }; private static final int[] DEC_64_TABLE = { 0, 0, 0, -1, 0, 1, 2, 3 }; private static final int V07_MAGIC_NUMBER = 0xFD2FB527; private static final int MAX_WINDOW_SIZE = 1 << 23; private static final int[] LITERALS_LENGTH_BASE = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 18, 20, 22, 24, 28, 32, 40, 48, 64, 0x80, 0x100, 0x200, 0x400, 0x800, 0x1000, 0x2000, 0x4000, 0x8000, 0x10000 }; private static final int[] MATCH_LENGTH_BASE = { 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 37, 39, 41, 43, 47, 51, 59, 67, 83, 99, 0x83, 0x103, 0x203, 0x403, 0x803, 0x1003, 0x2003, 0x4003, 0x8003, 0x10003 }; private static final int[] OFFSET_CODES_BASE = { 0, 1, 1, 5, 0xD, 0x1D, 0x3D, 0x7D, 0xFD, 0x1FD, 0x3FD, 0x7FD, 0xFFD, 0x1FFD, 0x3FFD, 0x7FFD, 0xFFFD, 0x1FFFD, 0x3FFFD, 0x7FFFD, 0xFFFFD, 0x1FFFFD, 0x3FFFFD, 0x7FFFFD, 0xFFFFFD, 0x1FFFFFD, 0x3FFFFFD, 0x7FFFFFD, 0xFFFFFFD }; private static final FiniteStateEntropy.Table DEFAULT_LITERALS_LENGTH_TABLE = new FiniteStateEntropy.Table(6, new int[] { 0, 16, 32, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 32, 0, 0, 0, 0, 32, 0, 0, 32, 0, 32, 0, 32, 0, 0, 32, 0, 32, 0, 32, 0, 0, 16, 32, 0, 0, 48, 16, 32, 32, 32, 32, 32, 32, 32, 32, 0, 32, 32, 32, 32, 32, 32, 0, 0, 0, 0 }, new byte[] { 0, 0, 1, 3, 4, 6, 7, 9, 10, 12, 14, 16, 18, 19, 21, 22, 24, 25, 26, 27, 29, 31, 0, 1, 2, 4, 5, 7, 8, 10, 11, 13, 16, 17, 19, 20, 22, 23, 25, 25, 26, 28, 30, 0, 1, 2, 3, 5, 6, 8, 9, 11, 12, 15, 17, 18, 20, 21, 23, 24, 35, 34, 33, 32 }, new byte[] { 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 6, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 5, 5, 5, 5, 5, 5, 4, 4, 5, 6, 6, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 6, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6 }); private static final FiniteStateEntropy.Table DEFAULT_OFFSET_CODES_TABLE = new FiniteStateEntropy.Table(5, new int[] { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 0, 0, 0, 0, 16, 0, 0, 0, 16, 0, 0, 0, 0, 0, 0, 0 }, new byte[] { 0, 6, 9, 15, 21, 3, 7, 12, 18, 23, 5, 8, 14, 20, 2, 7, 11, 17, 22, 4, 8, 13, 19, 1, 6, 10, 16, 28, 27, 26, 25, 24 }, new byte[] { 5, 4, 5, 5, 5, 5, 4, 5, 5, 5, 5, 4, 5, 5, 5, 4, 5, 5, 5, 5, 4, 5, 5, 5, 4, 5, 5, 5, 5, 5, 5, 5 }); private static final FiniteStateEntropy.Table DEFAULT_MATCH_LENGTH_TABLE = new FiniteStateEntropy.Table(6, new int[] { 0, 0, 32, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 0, 32, 0, 32, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 32, 48, 16, 32, 32, 32, 32, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, new byte[] { 0, 1, 2, 3, 5, 6, 8, 10, 13, 16, 19, 22, 25, 28, 31, 33, 35, 37, 39, 41, 43, 45, 1, 2, 3, 4, 6, 7, 9, 12, 15, 18, 21, 24, 27, 30, 32, 34, 36, 38, 40, 42, 44, 1, 1, 2, 4, 5, 7, 8, 11, 14, 17, 20, 23, 26, 29, 52, 51, 50, 49, 48, 47, 46 }, new byte[] { 6, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 }); public static final String NOT_ENOUGH_INPUT_BYTES = "Not enough input bytes"; public static final String OUTPUT_BUFFER_TOO_SMALL = "Output buffer too small"; public static final String EXPECTED_MATCH_LENGTH_TABLE_TO_BE_PRESENT = "Expected match length table to be present"; public static final String INPUT_IS_CORRUPTED = "Input is corrupted"; public static final String VALUE_EXCEEDS_EXPECTED_MAXIMUM_VALUE = "Value exceeds expected maximum value"; private final byte[] literals = new byte[MAX_BLOCK_SIZE + SIZE_OF_LONG]; // extra space to allow for long-at-a-time copy // current buffer containing literals private byte[] literalsBase; |
File | Project | Line |
---|---|---|
org/waarp/compress/zstdsafe/FiniteStateEntropy.java | Waarp Compression | 298 |
org/waarp/compress/zstdunsafe/FiniteStateEntropy.java | Waarp Compression | 304 |
final int scale = 62 - tableLog; final long step = (1L << 62) / total; final long vstep = 1L << (scale - 20); int stillToDistribute = 1 << tableLog; int largest = 0; short largestProbability = 0; final int lowThreshold = total >>> tableLog; for (int symbol = 0; symbol <= maxSymbol; symbol++) { if (counts[symbol] == total) { throw new IllegalArgumentException(); // TODO: should have been RLE-compressed by upper layers } if (counts[symbol] == 0) { normalizedCounts[symbol] = 0; continue; } if (counts[symbol] <= lowThreshold) { normalizedCounts[symbol] = -1; stillToDistribute--; } else { short probability = (short) ((counts[symbol] * step) >>> scale); if (probability < 8) { final long restToBeat = vstep * REST_TO_BEAT[probability]; final long delta = counts[symbol] * step - (((long) probability) << scale); if (delta > restToBeat) { probability++; } } if (probability > largestProbability) { largestProbability = probability; largest = symbol; } normalizedCounts[symbol] = probability; stillToDistribute -= probability; } } if (-stillToDistribute >= (normalizedCounts[largest] >>> 1)) { // corner case. Need another normalization method // TODO size_t const errorCode = FSE_normalizeM2(normalizedCounter, tableLog, count, total, maxSymbolValue); normalizeCounts2(normalizedCounts, tableLog, counts, total, maxSymbol); } else { normalizedCounts[largest] += (short) stillToDistribute; } } private static void normalizeCounts2(final short[] normalizedCounts, final int tableLog, final int[] counts, int total, final int maxSymbol) { int distributed = 0; final int lowThreshold = total >>> tableLog; // minimum count below which frequency in the normalized table is "too small" (~ < 1) int lowOne = (total * 3) >>> (tableLog + 1); // 1.5 * lowThreshold. If count in (lowThreshold, lowOne] => assign frequency 1 for (int i = 0; i <= maxSymbol; i++) { if (counts[i] == 0) { normalizedCounts[i] = 0; } else if (counts[i] <= lowThreshold) { normalizedCounts[i] = -1; distributed++; total -= counts[i]; } else if (counts[i] <= lowOne) { normalizedCounts[i] = 1; distributed++; total -= counts[i]; } else { normalizedCounts[i] = UNASSIGNED; } } final int normalizationFactor = 1 << tableLog; int toDistribute = normalizationFactor - distributed; if ((total / toDistribute) > lowOne) { /* risk of rounding to zero */ lowOne = ((total * 3) / (toDistribute * 2)); for (int i = 0; i <= maxSymbol; i++) { if ((normalizedCounts[i] == UNASSIGNED) && (counts[i] <= lowOne)) { normalizedCounts[i] = 1; distributed++; total -= counts[i]; } } toDistribute = normalizationFactor - distributed; } if (distributed == maxSymbol + 1) { // all values are pretty poor; // probably incompressible data (should have already been detected); // find max, then give all remaining points to max int maxValue = 0; int maxCount = 0; for (int i = 0; i <= maxSymbol; i++) { if (counts[i] > maxCount) { maxValue = i; maxCount = counts[i]; } } normalizedCounts[maxValue] += (short) toDistribute; return; } if (total == 0) { // all of the symbols were low enough for the lowOne or lowThreshold for (int i = 0; toDistribute > 0; i = (i + 1) % (maxSymbol + 1)) { if (normalizedCounts[i] > 0) { toDistribute--; normalizedCounts[i]++; } } return; } // TODO: simplify/document this code final long vStepLog = 62 - tableLog; final long mid = (1L << (vStepLog - 1)) - 1; final long rStep = (((1L << vStepLog) * toDistribute) + mid) / total; /* scale on remaining */ long tmpTotal = mid; for (int i = 0; i <= maxSymbol; i++) { if (normalizedCounts[i] == UNASSIGNED) { final long end = tmpTotal + (counts[i] * rStep); final int sStart = (int) (tmpTotal >>> vStepLog); final int sEnd = (int) (end >>> vStepLog); final int weight = sEnd - sStart; if (weight < 1) { throw new AssertionError(); } normalizedCounts[i] = (short) weight; tmpTotal = end; } } } public static int writeNormalizedCounts(final byte[] outputBase, |
File | Project | Line |
---|---|---|
org/waarp/openr66/protocol/http/adminssl/HttpResponsiveSslHandler.java | Waarp OpenR66 | 1728 |
org/waarp/openr66/protocol/http/adminssl/HttpSslHandler.java | Waarp OpenR66 | 1978 |
Messages.getString("HttpSslHandler.46"); //$NON-NLS-1$ } } else if ("Disconnect".equalsIgnoreCase(act)) { return logout(); } else if ("Block".equalsIgnoreCase(act)) { final boolean block = params.containsKey("blocking"); if (block) { extraInformation = Messages.getString("HttpSslHandler.34"); //$NON-NLS-1$ } else { extraInformation = Messages.getString("HttpSslHandler.35"); //$NON-NLS-1$ } Configuration.configuration.setShutdown(block); } else if ("Shutdown".equalsIgnoreCase(act)) { final String error; if (Configuration.configuration.getShutdownConfiguration().serviceFuture != null) { error = error(Messages.getString("HttpSslHandler.38")); //$NON-NLS-1$ } else { error = error(Messages.getString("HttpSslHandler.37")); //$NON-NLS-1$ } WaarpShutdownHook.setRestart(false); newSession = true; clearSession(); forceClose = true; shutdown = true; return error; } else if ("Restart".equalsIgnoreCase(act)) { String error; if (Configuration.configuration.getShutdownConfiguration().serviceFuture != null) { error = error(Messages.getString("HttpSslHandler.38")); //$NON-NLS-1$ } else { error = error(Messages.getString("HttpSslHandler.39") //$NON-NLS-1$ + Configuration.configuration.getTimeoutCon() * 2 / 1000 + Messages.getString( "HttpSslHandler.40")); //$NON-NLS-1$ } error = error.replace("XXXRELOADHTTPXXX", "HTTP-EQUIV=\"refresh\" CONTENT=\"" + Configuration.configuration.getTimeoutCon() * 2 / 1000 + '"'); WaarpShutdownHook.setRestart(true); newSession = true; clearSession(); forceClose = true; shutdown = true; return error; } else if ("Validate".equalsIgnoreCase(act)) { final String bsessionr = getTrimValue("BSESSR"); long lsessionr = Configuration.configuration.getServerChannelReadLimit(); long lglobalr; long lsessionw; long lglobalw; long delay; try { if (bsessionr != null) { lsessionr = (Long.parseLong(bsessionr) / 10) * 10; } final String bglobalr = getTrimValue("BGLOBR"); lglobalr = Configuration.configuration.getServerGlobalReadLimit(); if (bglobalr != null) { lglobalr = (Long.parseLong(bglobalr) / 10) * 10; } final String bsessionw = getTrimValue("BSESSW"); lsessionw = Configuration.configuration.getServerChannelWriteLimit(); if (bsessionw != null) { lsessionw = (Long.parseLong(bsessionw) / 10) * 10; } final String bglobalw = getTrimValue("BGLOBW"); lglobalw = Configuration.configuration.getServerGlobalWriteLimit(); if (bglobalw != null) { lglobalw = (Long.parseLong(bglobalw) / 10) * 10; } final String dtra = getTrimValue("DTRA"); delay = Configuration.configuration.getDelayLimit(); if (dtra != null) { delay = (Long.parseLong(dtra) / 10) * 10; if (delay < 100) { delay = 100; } } Configuration.configuration.changeNetworkLimit(lglobalw, lglobalr, lsessionw, lsessionr, delay); final String dcomm = getTrimValue("DCOM"); if (dcomm != null) { Configuration.configuration.setDelayCommander( Long.parseLong(dcomm)); if (Configuration.configuration.getDelayCommander() <= 100) { Configuration.configuration.setDelayCommander(100); } Configuration.configuration.reloadCommanderDelay(); } final String dret = getTrimValue("DRET"); if (dret != null) { Configuration.configuration.setDelayRetry(Long.parseLong(dret)); if (Configuration.configuration.getDelayRetry() <= 1000) { Configuration.configuration.setDelayRetry(1000); } } extraInformation = Messages.getString("HttpSslHandler.41"); //$NON-NLS-1$ } catch (final NumberFormatException e) { extraInformation = Messages.getString("HttpSslHandler.42"); //$NON-NLS-1$ } } else if ("HostConfig".equalsIgnoreCase(act)) { |
File | Project | Line |
---|---|---|
org/waarp/compress/zstdsafe/FseCompressionTable.java | Waarp Compression | 86 |
org/waarp/compress/zstdunsafe/FseCompressionTable.java | Waarp Compression | 83 |
new int[MAX_SYMBOL + 2]; // TODO: allocate in workspace cumulative[0] = 0; for (int i = 1; i <= maxSymbol + 1; i++) { if (normalizedCounts[i - 1] == -1) { // Low probability symbol cumulative[i] = cumulative[i - 1] + 1; table[highThreshold--] = (byte) (i - 1); } else { cumulative[i] = cumulative[i - 1] + normalizedCounts[i - 1]; } } cumulative[maxSymbol + 1] = tableSize + 1; // Spread symbols final int position = spreadSymbols(normalizedCounts, maxSymbol, tableSize, highThreshold, table); if (position != 0) { throw new AssertionError("Spread symbols failed"); } // Build table for (int i = 0; i < tableSize; i++) { final byte symbol = table[i]; nextState[cumulative[symbol]++] = (short) (tableSize + i); /* TableU16 : sorted by symbol order; gives next state value */ } // Build symbol transformation table int total = 0; for (int symbol = 0; symbol <= maxSymbol; symbol++) { switch (normalizedCounts[symbol]) { case 0: deltaNumberOfBits[symbol] = ((tableLog + 1) << 16) - tableSize; break; case -1: case 1: deltaNumberOfBits[symbol] = (tableLog << 16) - tableSize; deltaFindState[symbol] = total - 1; total++; break; default: final int maxBitsOut = tableLog - Util.highestBit(normalizedCounts[symbol] - 1); final int minStatePlus = normalizedCounts[symbol] << maxBitsOut; deltaNumberOfBits[symbol] = (maxBitsOut << 16) - minStatePlus; deltaFindState[symbol] = total - normalizedCounts[symbol]; total += normalizedCounts[symbol]; break; } } } public int begin(final byte symbol) { final int outputBits = (deltaNumberOfBits[symbol] + (1 << 15)) >>> 16; final int base = ((outputBits << 16) - deltaNumberOfBits[symbol]) >>> outputBits; return nextState[base + deltaFindState[symbol]]; } public int encode(final BitOutputStream stream, final int state, final int symbol) { final int outputBits = (state + deltaNumberOfBits[symbol]) >>> 16; stream.addBits(state, outputBits); return nextState[(state >>> outputBits) + deltaFindState[symbol]]; } public void finish(final BitOutputStream stream, final int state) { stream.addBits(state, log2Size); stream.flush(); } private static int calculateStep(final int tableSize) { return (tableSize >>> 1) + (tableSize >>> 3) + 3; } public static int spreadSymbols(final short[] normalizedCounters, final int maxSymbolValue, final int tableSize, final int highThreshold, final byte[] symbols) { final int mask = tableSize - 1; final int step = calculateStep(tableSize); int position = 0; for (byte symbol = 0; symbol <= maxSymbolValue; symbol++) { for (int i = 0; i < normalizedCounters[symbol]; i++) { symbols[position] = symbol; do { position = (position + step) & mask; } while (position > highThreshold); } } return position; } } |
File | Project | Line |
---|---|---|
org/waarp/compress/zstdsafe/Huffman.java | Waarp Compression | 252 |
org/waarp/compress/zstdunsafe/Huffman.java | Waarp Compression | 256 |
final int fastOutputLimit = outputLimit - 7; final int tableLog1 = this.tableLog; final byte[] numbersOfBits1 = this.numbersOfBits; final byte[] symbols1 = this.symbols; while (output4 < fastOutputLimit) { stream1bitsConsumed = decodeSymbol(outputBase, output1, stream1bits, stream1bitsConsumed, tableLog1, numbersOfBits1, symbols1); stream2bitsConsumed = decodeSymbol(outputBase, output2, stream2bits, stream2bitsConsumed, tableLog1, numbersOfBits1, symbols1); stream3bitsConsumed = decodeSymbol(outputBase, output3, stream3bits, stream3bitsConsumed, tableLog1, numbersOfBits1, symbols1); stream4bitsConsumed = decodeSymbol(outputBase, output4, stream4bits, stream4bitsConsumed, tableLog1, numbersOfBits1, symbols1); stream1bitsConsumed = decodeSymbol(outputBase, output1 + 1, stream1bits, stream1bitsConsumed, tableLog1, numbersOfBits1, symbols1); stream2bitsConsumed = decodeSymbol(outputBase, output2 + 1, stream2bits, stream2bitsConsumed, tableLog1, numbersOfBits1, symbols1); stream3bitsConsumed = decodeSymbol(outputBase, output3 + 1, stream3bits, stream3bitsConsumed, tableLog1, numbersOfBits1, symbols1); stream4bitsConsumed = decodeSymbol(outputBase, output4 + 1, stream4bits, stream4bitsConsumed, tableLog1, numbersOfBits1, symbols1); stream1bitsConsumed = decodeSymbol(outputBase, output1 + 2, stream1bits, stream1bitsConsumed, tableLog1, numbersOfBits1, symbols1); stream2bitsConsumed = decodeSymbol(outputBase, output2 + 2, stream2bits, stream2bitsConsumed, tableLog1, numbersOfBits1, symbols1); stream3bitsConsumed = decodeSymbol(outputBase, output3 + 2, stream3bits, stream3bitsConsumed, tableLog1, numbersOfBits1, symbols1); stream4bitsConsumed = decodeSymbol(outputBase, output4 + 2, stream4bits, stream4bitsConsumed, tableLog1, numbersOfBits1, symbols1); stream1bitsConsumed = decodeSymbol(outputBase, output1 + 3, stream1bits, stream1bitsConsumed, tableLog1, numbersOfBits1, symbols1); stream2bitsConsumed = decodeSymbol(outputBase, output2 + 3, stream2bits, stream2bitsConsumed, tableLog1, numbersOfBits1, symbols1); stream3bitsConsumed = decodeSymbol(outputBase, output3 + 3, stream3bits, stream3bitsConsumed, tableLog1, numbersOfBits1, symbols1); stream4bitsConsumed = decodeSymbol(outputBase, output4 + 3, stream4bits, stream4bitsConsumed, tableLog1, numbersOfBits1, symbols1); output1 += SIZE_OF_INT; output2 += SIZE_OF_INT; output3 += SIZE_OF_INT; output4 += SIZE_OF_INT; BitInputStream.Loader loader = new BitInputStream.Loader(inputBase, start1, stream1currentAddress, stream1bits, stream1bitsConsumed); boolean done = loader.load(); stream1bitsConsumed = loader.getBitsConsumed(); stream1bits = loader.getBits(); stream1currentAddress = loader.getCurrentAddress(); if (done) { break; } loader = new BitInputStream.Loader(inputBase, start2, stream2currentAddress, stream2bits, stream2bitsConsumed); done = loader.load(); stream2bitsConsumed = loader.getBitsConsumed(); stream2bits = loader.getBits(); stream2currentAddress = loader.getCurrentAddress(); if (done) { break; } loader = new BitInputStream.Loader(inputBase, start3, stream3currentAddress, stream3bits, stream3bitsConsumed); done = loader.load(); stream3bitsConsumed = loader.getBitsConsumed(); stream3bits = loader.getBits(); stream3currentAddress = loader.getCurrentAddress(); if (done) { break; } loader = new BitInputStream.Loader(inputBase, start4, stream4currentAddress, stream4bits, stream4bitsConsumed); done = loader.load(); stream4bitsConsumed = loader.getBitsConsumed(); stream4bits = loader.getBits(); stream4currentAddress = loader.getCurrentAddress(); if (done) { break; } } |
File | Project | Line |
---|---|---|
org/waarp/compress/zstdsafe/SequenceStore.java | Waarp Compression | 39 |
org/waarp/compress/zstdunsafe/SequenceStore.java | Waarp Compression | 40 |
class SequenceStore { public final byte[] literalsBuffer; public int literalsLength; public final int[] offsets; public final int[] literalLengths; public final int[] matchLengths; public int sequenceCount; public final byte[] literalLengthCodes; public final byte[] matchLengthCodes; public final byte[] offsetCodes; public LongField longLengthField; public int longLengthPosition; public enum LongField { LITERAL, MATCH } private static final byte[] LITERAL_LENGTH_CODE = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 17, 17, 18, 18, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 22, 22, 22, 22, 22, 22, 22, 22, 23, 23, 23, 23, 23, 23, 23, 23, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24 }; private static final byte[] MATCH_LENGTH_CODE = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 32, 33, 33, 34, 34, 35, 35, 36, 36, 36, 36, 37, 37, 37, 37, 38, 38, 38, 38, 38, 38, 38, 38, 39, 39, 39, 39, 39, 39, 39, 39, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42 }; public SequenceStore(final int blockSize, final int maxSequences) { offsets = new int[maxSequences]; literalLengths = new int[maxSequences]; matchLengths = new int[maxSequences]; literalLengthCodes = new byte[maxSequences]; matchLengthCodes = new byte[maxSequences]; offsetCodes = new byte[maxSequences]; literalsBuffer = new byte[blockSize]; reset(); } public void appendLiterals(final byte[] inputBase, final int inputAddress, |
File | Project | Line |
---|---|---|
org/waarp/compress/zstdsafe/ZstdFrameDecompressor.java | Waarp Compression | 429 |
org/waarp/compress/zstdunsafe/ZstdFrameDecompressor.java | Waarp Compression | 432 |
final byte[] offsetCodesSymbols = currentOffsetCodesTable1.symbol; while (sequenceCount > 0) { sequenceCount--; final BitInputStream.Loader loader = new BitInputStream.Loader(inputBase, input, currentAddress, bits, bitsConsumed); loader.load(); bitsConsumed = loader.getBitsConsumed(); bits = loader.getBits(); currentAddress = loader.getCurrentAddress(); if (loader.isOverflow()) { verify(sequenceCount == 0, input, "Not all sequences were consumed"); break; } // decode sequence final int literalsLengthCode = literalsLengthSymbols[literalsLengthState]; final int matchLengthCode = matchLengthSymbols[matchLengthState]; final int offsetCode = offsetCodesSymbols[offsetCodesState]; final int literalsLengthBits = LITERALS_LENGTH_BITS[literalsLengthCode]; final int matchLengthBits = MATCH_LENGTH_BITS[matchLengthCode]; int offset = OFFSET_CODES_BASE[offsetCode]; if (offsetCode > 0) { offset += peekBits(bitsConsumed, bits, offsetCode); bitsConsumed += offsetCode; } if (offsetCode <= 1) { if (literalsLengthCode == 0) { offset++; } if (offset != 0) { int temp; if (offset == 3) { temp = previousOffsets1[0] - 1; } else { temp = previousOffsets1[offset]; } if (temp == 0) { temp = 1; } if (offset != 1) { previousOffsets1[2] = previousOffsets1[1]; } previousOffsets1[1] = previousOffsets1[0]; previousOffsets1[0] = temp; offset = temp; } else { offset = previousOffsets1[0]; } } else { previousOffsets1[2] = previousOffsets1[1]; previousOffsets1[1] = previousOffsets1[0]; previousOffsets1[0] = offset; } int matchLength = MATCH_LENGTH_BASE[matchLengthCode]; if (matchLengthCode > 31) { matchLength += peekBits(bitsConsumed, bits, matchLengthBits); bitsConsumed += matchLengthBits; } int literalsLength = LITERALS_LENGTH_BASE[literalsLengthCode]; if (literalsLengthCode > 15) { literalsLength += peekBits(bitsConsumed, bits, literalsLengthBits); bitsConsumed += literalsLengthBits; } final int totalBits = literalsLengthBits + matchLengthBits + offsetCode; if (totalBits > 64 - 7 - (LITERAL_LENGTH_TABLE_LOG + MATCH_LENGTH_TABLE_LOG + OFFSET_TABLE_LOG)) { final BitInputStream.Loader loader1 = new BitInputStream.Loader(inputBase, input, currentAddress, bits, bitsConsumed); loader1.load(); bitsConsumed = loader1.getBitsConsumed(); bits = loader1.getBits(); currentAddress = loader1.getCurrentAddress(); } int numberOfBits; numberOfBits = literalsLengthNumbersOfBits[literalsLengthState]; literalsLengthState = (int) (literalsLengthNewStates[literalsLengthState] + peekBits(bitsConsumed, bits, numberOfBits)); // <= 9 bits bitsConsumed += numberOfBits; numberOfBits = matchLengthNumbersOfBits[matchLengthState]; matchLengthState = (int) (matchLengthNewStates[matchLengthState] + peekBits(bitsConsumed, bits, numberOfBits)); // <= 9 bits bitsConsumed += numberOfBits; numberOfBits = offsetCodesNumbersOfBits[offsetCodesState]; offsetCodesState = (int) (offsetCodesNewStates[offsetCodesState] + peekBits(bitsConsumed, bits, numberOfBits)); // <= 8 bits bitsConsumed += numberOfBits; final int literalOutputLimit = output + literalsLength; |
File | Project | Line |
---|---|---|
org/waarp/compress/zstdsafe/SequenceEncoder.java | Waarp Compression | 277 |
org/waarp/compress/zstdunsafe/SequenceEncoder.java | Waarp Compression | 279 |
new BitOutputStream(outputBase, output, outputLimit - output); final int sequenceCount = sequences.sequenceCount; // first symbols int matchLengthState = matchLengthTable.begin(matchLengthCodes[sequenceCount - 1]); int offsetState = offsetsTable.begin(offsetCodes[sequenceCount - 1]); int literalLengthState = literalLengthTable.begin(literalLengthCodes[sequenceCount - 1]); blockStream.addBits(sequences.literalLengths[sequenceCount - 1], LITERALS_LENGTH_BITS[literalLengthCodes[sequenceCount - 1]]); blockStream.addBits(sequences.matchLengths[sequenceCount - 1], MATCH_LENGTH_BITS[matchLengthCodes[sequenceCount - 1]]); blockStream.addBits(sequences.offsets[sequenceCount - 1], offsetCodes[sequenceCount - 1]); blockStream.flush(); if (sequenceCount >= 2) { for (int n = sequenceCount - 2; n >= 0; n--) { final byte literalLengthCode = literalLengthCodes[n]; final byte offsetCode = offsetCodes[n]; final byte matchLengthCode = matchLengthCodes[n]; final int literalLengthBits = LITERALS_LENGTH_BITS[literalLengthCode]; final int matchLengthBits = MATCH_LENGTH_BITS[matchLengthCode]; // (7) offsetState = offsetsTable.encode(blockStream, offsetState, offsetCode); // 15 matchLengthState = matchLengthTable.encode(blockStream, matchLengthState, matchLengthCode); // 24 literalLengthState = literalLengthTable.encode(blockStream, literalLengthState, literalLengthCode); // 33 if (((int) offsetCode + matchLengthBits + literalLengthBits >= 64 - 7 - (LITERAL_LENGTH_TABLE_LOG + MATCH_LENGTH_TABLE_LOG + OFFSET_TABLE_LOG))) { blockStream.flush(); /* (7)*/ } blockStream.addBits(sequences.literalLengths[n], literalLengthBits); if (((literalLengthBits + matchLengthBits) > 24)) { blockStream.flush(); } blockStream.addBits(sequences.matchLengths[n], matchLengthBits); if (((int) offsetCode + matchLengthBits + literalLengthBits > 56)) { blockStream.flush(); } blockStream.addBits(sequences.offsets[n], offsetCode); // 31 blockStream.flush(); // (7) } } matchLengthTable.finish(blockStream, matchLengthState); offsetsTable.finish(blockStream, offsetState); literalLengthTable.finish(blockStream, literalLengthState); final int streamSize = blockStream.close(); checkArgument(streamSize > 0, "Output buffer too small"); return streamSize; } private static int selectEncodingType(final int largestCount, final int sequenceCount, final int defaultNormalizedCountsLog, final boolean isDefaultTableAllowed, final CompressionParameters.Strategy strategy) { if (largestCount == sequenceCount) { // => all entries are equal if (isDefaultTableAllowed && sequenceCount <= 2) { /* Prefer set_basic over set_rle when there are 2 or fewer symbols, * since RLE uses 1 byte, but set_basic uses 5-6 bits per symbol. * If basic encoding isn't possible, always choose RLE. */ return SEQUENCE_ENCODING_BASIC; } return SEQUENCE_ENCODING_RLE; } if (strategy.ordinal() < CompressionParameters.Strategy.LAZY.ordinal()) { // TODO: more robust check. Maybe encapsulate in strategy objects if (isDefaultTableAllowed) { final int factor = 10 - strategy.ordinal(); // TODO more robust. Move it to strategy final int baseLog = 3; final int minNumberOfSequences = |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 385 |
org/waarp/common/utility/Base64.java | Waarp Common | 463 |
-9, -9, -9, -9, -9, -9, // Decimal 91 - 96 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, // Letters 'a' through 'm' 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n' through 'z' -9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 218 - 230 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 231 - 243 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9 // Decimal 244 - 255 }; /* ******** U R L S A F E B A S E 6 4 A L P H A B E T ******** */ /** * Used in the URL- and Filename-safe dialect described in Section 4 of * RFC3548: * <a href="http://www.faqs.org/rfcs/rfc3548.html">http://www.faqs.org/rfcs/rfc3548.html</a>. * Notice that the * last two bytes become "hyphen" and "underscore" instead of "plus" and * "slash." */ private static final byte[] _URL_SAFE_ALPHABET = { |
File | Project | Line |
---|---|---|
org/waarp/compress/zstdsafe/ZstdFrameCompressor.java | Waarp Compression | 331 |
org/waarp/compress/zstdunsafe/ZstdFrameCompressor.java | Waarp Compression | 334 |
if (largestCount == literalsSize) { // all bytes in input are equal return rleLiterals(outputBase, outputAddress, literals, literalsSize); } else if (largestCount <= (literalsSize >>> 7) + 4) { // heuristic: probably not compressible enough return rawLiterals(outputBase, outputAddress, outputSize, literals, literalsSize); } final HuffmanCompressionTable previousTable = context.getPreviousTable(); final HuffmanCompressionTable table; int serializedTableSize; final boolean reuseTable; final boolean canReuse = previousTable.isValid(counts, maxSymbol); // heuristic: use existing table for small inputs if valid // TODO: move to Strategy final boolean preferReuse = parameters.getStrategy().ordinal() < CompressionParameters.Strategy.LAZY.ordinal() && literalsSize <= 1024; if (preferReuse && canReuse) { table = previousTable; reuseTable = true; serializedTableSize = 0; } else { final HuffmanCompressionTable newTable = context.borrowTemporaryTable(); newTable.initialize(counts, maxSymbol, HuffmanCompressionTable.optimalNumberOfBits( MAX_HUFFMAN_TABLE_LOG, literalsSize, maxSymbol), context.getCompressionTableWorkspace()); serializedTableSize = newTable.write(outputBase, outputAddress + headerSize, outputSize - headerSize, context.getTableWriterWorkspace()); // Check if using previous huffman table is beneficial if (canReuse && previousTable.estimateCompressedSize(counts, maxSymbol) <= serializedTableSize + newTable.estimateCompressedSize(counts, maxSymbol)) { table = previousTable; reuseTable = true; serializedTableSize = 0; context.discardTemporaryTable(); } else { table = newTable; reuseTable = false; } } final int compressedSize; final boolean singleStream = literalsSize < 256; if (singleStream) { compressedSize = HuffmanCompressor.compressSingleStream(outputBase, outputAddress + headerSize + serializedTableSize, outputSize - headerSize - serializedTableSize, literals, literalsAddress, literalsSize, table); } else { compressedSize = HuffmanCompressor.compress4streams(outputBase, outputAddress + headerSize + serializedTableSize, outputSize - headerSize - serializedTableSize, literals, literalsAddress, literalsSize, table); } final int totalSize = serializedTableSize + compressedSize; final int minimumGain = calculateMinimumGain(literalsSize, parameters.getStrategy()); if (compressedSize == 0 || totalSize >= literalsSize - minimumGain) { // incompressible or no savings // discard any temporary table we might have borrowed above context.discardTemporaryTable(); return rawLiterals(outputBase, outputAddress, outputSize, literals, literalsSize); } final int encodingType = reuseTable? TREELESS_LITERALS_BLOCK : COMPRESSED_LITERALS_BLOCK; // Build header switch (headerSize) { case 3: { // 2 - 2 - 10 - 10 final int header = encodingType | ((singleStream? 0 : 1) << 2) | (literalsSize << 4) | (totalSize << 14); put24BitLittleEndian(outputBase, outputAddress, header); break; } case 4: { // 2 - 2 - 14 - 14 final int header = encodingType | (2 << 2) | (literalsSize << 4) | (totalSize << 18); |
File | Project | Line |
---|---|---|
org/waarp/openr66/protocol/http/adminssl/HttpResponsiveSslHandler.java | Waarp OpenR66 | 1971 |
org/waarp/openr66/protocol/http/adminssl/HttpSslHandler.java | Waarp OpenR66 | 2201 |
} boolean getMenu = false; if (params != null && params.containsKey("Logon")) { String name = null; String password = null; List<String> values; if (!params.isEmpty()) { // get values if (params.containsKey("name")) { values = params.get("name"); if (values != null) { name = values.get(0); if (ParametersChecker.isEmpty(name)) { getMenu = true; } } } else { getMenu = true; } // search the nb param if (!getMenu && params.containsKey("passwd")) { values = params.get("passwd"); if (values != null) { password = values.get(0); getMenu = ParametersChecker.isEmpty(password); } else { getMenu = true; } } else { getMenu = true; } } else { getMenu = true; } if (!getMenu && name != null) { logger.debug("Name? {} Passwd? {}", name.equals(Configuration.configuration.getAdminName()), Arrays.equals(password.getBytes(WaarpStringUtils.UTF8), Configuration.configuration.getServerAdminKey())); if (name.equals(Configuration.configuration.getAdminName()) && Arrays.equals(password.getBytes(WaarpStringUtils.UTF8), Configuration.configuration.getServerAdminKey())) { authentHttp.getAuth().specialNoSessionAuth(true, Configuration.configuration.getHostId()); authentHttp.setStatus(70); } else { try { authentHttp.getAuth().connectionHttps(name, FilesystemBasedDigest.passwdCrypt( password.getBytes( WaarpStringUtils.UTF8))); } catch (final Reply530Exception e1) { getMenu = true; } catch (final Reply421Exception e1) { getMenu = true; } } if (!authentHttp.isAuthenticated()) { authentHttp.setStatus(71); logger.info("Still not authenticated: {}", authentHttp); getMenu = true; } logger.debug("Identified: {}:{}", authentHttp.getAuth().isIdentified(), authentHttp.isAuthenticated()); } } else { getMenu = true; } if (getMenu) { String logon = logon(); logon = logon.replaceAll(REPLACEMENT.XXXERRORMESGXXX.toString(), Messages.getString("HttpSslHandler.BadLogin")); responseContent.append(logon); clearSession(); } else { final String index = indexResponsive(); |
File | Project | Line |
---|---|---|
org/waarp/compress/zstdsafe/Constants.java | Waarp Compression | 36 |
org/waarp/compress/zstdunsafe/Constants.java | Waarp Compression | 36 |
class Constants { public static final int SIZE_OF_BYTE = 1; public static final int SIZE_OF_SHORT = 2; public static final int SIZE_OF_INT = 4; public static final int SIZE_OF_LONG = 8; public static final int MAGIC_NUMBER = 0xFD2FB528; public static final int MIN_WINDOW_LOG = 10; public static final int MAX_WINDOW_LOG = 31; public static final int SIZE_OF_BLOCK_HEADER = 3; public static final int MIN_SEQUENCES_SIZE = 1; public static final int MIN_BLOCK_SIZE = 1 // block type tag + 1 // min size of raw or rle length header + MIN_SEQUENCES_SIZE; public static final int MAX_BLOCK_SIZE = 128 * 1024; public static final int REPEATED_OFFSET_COUNT = 3; // block types public static final int RAW_BLOCK = 0; public static final int RLE_BLOCK = 1; public static final int COMPRESSED_BLOCK = 2; // sequence encoding types public static final int SEQUENCE_ENCODING_BASIC = 0; public static final int SEQUENCE_ENCODING_RLE = 1; public static final int SEQUENCE_ENCODING_COMPRESSED = 2; public static final int SEQUENCE_ENCODING_REPEAT = 3; public static final int MAX_LITERALS_LENGTH_SYMBOL = 35; public static final int MAX_MATCH_LENGTH_SYMBOL = 52; public static final int MAX_OFFSET_CODE_SYMBOL = 31; public static final int DEFAULT_MAX_OFFSET_CODE_SYMBOL = 28; public static final int LITERAL_LENGTH_TABLE_LOG = 9; public static final int MATCH_LENGTH_TABLE_LOG = 9; public static final int OFFSET_TABLE_LOG = 8; // literal block types public static final int RAW_LITERALS_BLOCK = 0; public static final int RLE_LITERALS_BLOCK = 1; public static final int COMPRESSED_LITERALS_BLOCK = 2; public static final int TREELESS_LITERALS_BLOCK = 3; public static final int LONG_NUMBER_OF_SEQUENCES = 0x7F00; protected static final int[] LITERALS_LENGTH_BITS = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16 }; protected static final int[] MATCH_LENGTH_BITS = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16 }; private Constants() { } } |
File | Project | Line |
---|---|---|
org/waarp/ftp/simpleimpl/config/FileBasedSslConfiguration.java | Waarp Ftp SimpleServer | 119 |
org/waarp/gateway/ftp/config/FileBasedConfiguration.java | Waarp Gateway Ftp | 1194 |
} else { final String keypath = value.getString(); if (keypath == null || keypath.length() == 0) { logger.error("Bad Key Path"); return false; } value = hashConfig.get(XML_PATH_KEYSTOREPASS); if (value == null || value.isEmpty()) { logger.error("Unable to find KeyStore Passwd"); return false; } final String keystorepass = value.getString(); if (keystorepass == null || keystorepass.length() == 0) { logger.error("Bad KeyStore Passwd"); return false; } value = hashConfig.get(XML_PATH_KEYPASS); if (value == null || value.isEmpty()) { logger.error("Unable to find Key Passwd"); return false; } final String keypass = value.getString(); if (keypass == null || keypass.length() == 0) { logger.error("Bad Key Passwd"); return false; } try { FtpsInitializer.waarpSecureKeyStore = new WaarpSecureKeyStore(keypath, keystorepass, keypass); } catch (final CryptoException e) { logger.error("Bad SecureKeyStore construction"); return false; } } // TrustedKey for OpenR66 server value = hashConfig.get(XML_PATH_TRUSTKEYPATH); if (value == null || value.isEmpty()) { logger.info("Unable to find TRUST Key Path"); FtpsInitializer.waarpSecureKeyStore.initEmptyTrustStore(); } else { final String keypath = value.getString(); if (keypath == null || keypath.length() == 0) { logger.error("Bad TRUST Key Path"); return false; } value = hashConfig.get(XML_PATH_TRUSTKEYSTOREPASS); if (value == null || value.isEmpty()) { logger.error("Unable to find TRUST KeyStore Passwd"); return false; } final String keystorepass = value.getString(); if (keystorepass == null || keystorepass.length() == 0) { logger.error("Bad TRUST KeyStore Passwd"); return false; } boolean useClientAuthent = false; value = hashConfig.get(XML_USECLIENT_AUTHENT); if (value != null && !value.isEmpty()) { useClientAuthent = value.getBoolean(); } try { FtpsInitializer.waarpSecureKeyStore.initTrustStore(keypath, keystorepass, useClientAuthent); } catch (final CryptoException e) { logger.error("Bad TrustKeyStore construction"); return false; } } FtpsInitializer.waarpSslContextFactory = new WaarpSslContextFactory(FtpsInitializer.waarpSecureKeyStore); |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 388 |
org/waarp/common/utility/Base64.java | Waarp Common | 467 |
org/waarp/common/utility/Base64.java | Waarp Common | 546 |
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n' through 'z' -9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 218 - 230 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 231 - 243 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9 // Decimal 244 - 255 }; /* ******** U R L S A F E B A S E 6 4 A L P H A B E T ******** */ /** * Used in the URL- and Filename-safe dialect described in Section 4 of * RFC3548: * <a href="http://www.faqs.org/rfcs/rfc3548.html">http://www.faqs.org/rfcs/rfc3548.html</a>. * Notice that the * last two bytes become "hyphen" and "underscore" instead of "plus" and * "slash." */ private static final byte[] _URL_SAFE_ALPHABET = { |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 388 |
org/waarp/common/utility/Base64.java | Waarp Common | 467 |
org/waarp/common/utility/Base64.java | Waarp Common | 544 |
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n' through 'z' -9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 218 - 230 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 231 - 243 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9 // Decimal 244 - 255 |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 388 |
org/waarp/common/utility/Base64.java | Waarp Common | 469 |
org/waarp/common/utility/Base64.java | Waarp Common | 546 |
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n' through 'z' -9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 218 - 230 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 231 - 243 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9 // Decimal 244 - 255 |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 390 |
org/waarp/common/utility/Base64.java | Waarp Common | 467 |
org/waarp/common/utility/Base64.java | Waarp Common | 544 |
-9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 218 - 230 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 231 - 243 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9 // Decimal 244 - 255 |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 388 |
org/waarp/common/utility/Base64.java | Waarp Common | 469 |
org/waarp/common/utility/Base64.java | Waarp Common | 546 |
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n' through 'z' -9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 218 - 230 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 231 - 243 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9 // Decimal 244 - 255 |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 390 |
org/waarp/common/utility/Base64.java | Waarp Common | 467 |
org/waarp/common/utility/Base64.java | Waarp Common | 544 |
-9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 218 - 230 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 231 - 243 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9 // Decimal 244 - 255 |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 388 |
org/waarp/common/utility/Base64.java | Waarp Common | 469 |
org/waarp/common/utility/Base64.java | Waarp Common | 546 |
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n' through 'z' -9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 218 - 230 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 231 - 243 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9 // Decimal 244 - 255 |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 390 |
org/waarp/common/utility/Base64.java | Waarp Common | 467 |
org/waarp/common/utility/Base64.java | Waarp Common | 544 |
-9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 218 - 230 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 231 - 243 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9 // Decimal 244 - 255 |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 388 |
org/waarp/common/utility/Base64.java | Waarp Common | 469 |
org/waarp/common/utility/Base64.java | Waarp Common | 547 |
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n' through 'z' -9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 218 - 230 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 231 - 243 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9 // Decimal 244 - 255 |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 390 |
org/waarp/common/utility/Base64.java | Waarp Common | 467 |
org/waarp/common/utility/Base64.java | Waarp Common | 544 |
-9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 218 - 230 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 231 - 243 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9 // Decimal 244 - 255 |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 388 |
org/waarp/common/utility/Base64.java | Waarp Common | 470 |
org/waarp/common/utility/Base64.java | Waarp Common | 547 |
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n' through 'z' -9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 218 - 230 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 231 - 243 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9 // Decimal 244 - 255 |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 391 |
org/waarp/common/utility/Base64.java | Waarp Common | 467 |
org/waarp/common/utility/Base64.java | Waarp Common | 544 |
, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 218 - 230 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 231 - 243 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9 // Decimal 244 - 255 |
File | Project | Line |
---|---|---|
org/waarp/gateway/kernel/database/model/DbModelMysqlKernel.java | Waarp Gateway Kernel | 64 |
org/waarp/gateway/kernel/database/model/DbModelPostgresqlKernel.java | Waarp Gateway Kernel | 54 |
final String primaryKey = " PRIMARY KEY "; final String notNull = " NOT NULL "; final DbRequest request = new DbRequest(session); // TRANSLOG StringBuilder action = new StringBuilder(createTableH2 + DbTransferLog.table + '('); final DbTransferLog.Columns[] acolumns = DbTransferLog.Columns.values(); for (int i = 0; i < acolumns.length; i++) { action.append(acolumns[i].name()) .append(DBType.getType(DbTransferLog.dbTypes[i])).append(notNull) .append(", "); } // Several columns for primary key action.append(" CONSTRAINT TRANSLOG_PK " + primaryKey + '('); for (int i = DbTransferLog.NBPRKEY; i > 1; i--) { action.append(acolumns[acolumns.length - i].name()).append(','); } action.append(acolumns[acolumns.length - 1].name()).append("))"); SysErrLogger.FAKE_LOGGER.sysout(action); try { request.query(action.toString()); } catch (final WaarpDatabaseNoConnectionException e) { SysErrLogger.FAKE_LOGGER.ignoreLog(e); return; } catch (final WaarpDatabaseSqlException e) { SysErrLogger.FAKE_LOGGER.ignoreLog(e); // XXX FIX No return } finally { request.close(); } // Index TRANSLOG action = new StringBuilder( "CREATE INDEX IDX_TRANSLOG ON " + DbTransferLog.table + '('); final DbTransferLog.Columns[] icolumns = DbTransferLog.indexes; for (int i = 0; i < icolumns.length - 1; i++) { action.append(icolumns[i].name()).append(", "); } action.append(icolumns[icolumns.length - 1].name()).append(')'); SysErrLogger.FAKE_LOGGER.sysout(action); try { request.query(action.toString()); } catch (final WaarpDatabaseNoConnectionException e) { SysErrLogger.FAKE_LOGGER.ignoreLog(e); return; } catch (final WaarpDatabaseSqlException e) { SysErrLogger.FAKE_LOGGER.ignoreLog(e); // XXX FIX No return } finally { request.close(); } // cptrunner /* * # Table to handle any number of sequences */ action = new StringBuilder("DROP TABLE IF EXISTS Sequences"); |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 388 |
org/waarp/common/utility/Base64.java | Waarp Common | 470 |
org/waarp/common/utility/Base64.java | Waarp Common | 547 |
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n' through 'z' -9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 218 - 230 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 231 - 243 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9 // Decimal 244 - 255 |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 391 |
org/waarp/common/utility/Base64.java | Waarp Common | 467 |
org/waarp/common/utility/Base64.java | Waarp Common | 544 |
, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 218 - 230 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 231 - 243 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9 // Decimal 244 - 255 |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 388 |
org/waarp/common/utility/Base64.java | Waarp Common | 470 |
org/waarp/common/utility/Base64.java | Waarp Common | 547 |
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n' through 'z' -9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 218 - 230 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 231 - 243 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9 // Decimal 244 - 255 |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 391 |
org/waarp/common/utility/Base64.java | Waarp Common | 467 |
org/waarp/common/utility/Base64.java | Waarp Common | 544 |
, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 218 - 230 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 231 - 243 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9 // Decimal 244 - 255 |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 388 |
org/waarp/common/utility/Base64.java | Waarp Common | 470 |
org/waarp/common/utility/Base64.java | Waarp Common | 547 |
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n' through 'z' -9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 218 - 230 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 231 - 243 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9 // Decimal 244 - 255 |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 391 |
org/waarp/common/utility/Base64.java | Waarp Common | 467 |
org/waarp/common/utility/Base64.java | Waarp Common | 544 |
, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 218 - 230 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 231 - 243 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9 // Decimal 244 - 255 |
File | Project | Line |
---|---|---|
org/waarp/gateway/ftp/database/data/DbTransferLog.java | Waarp Gateway Ftp | 603 |
org/waarp/gateway/kernel/database/data/DbTransferLog.java | Waarp Gateway Kernel | 613 |
request += " WHERE " + statusWhereFilter + getLimitWhereCondition() + " ORDER BY " + Columns.SPECIALID.name() + " DESC "; preparedStatement.createPrepareStatement(request); } return preparedStatement; } /** * @param session * * @return the DbPreparedStatement for getting Updated Object * * @throws WaarpDatabaseNoConnectionException * @throws WaarpDatabaseSqlException */ public static DbPreparedStatement getCountInfoPrepareStatement( final DbSession session) throws WaarpDatabaseNoConnectionException, WaarpDatabaseSqlException { final String request = "SELECT COUNT(" + Columns.SPECIALID.name() + ") FROM " + table + " WHERE " + Columns.STARTTRANS.name() + " >= ? AND " + getLimitWhereCondition() + " AND " + Columns.UPDATEDINFO.name() + " = ? "; final DbPreparedStatement pstt = new DbPreparedStatement(session, request); session.addLongTermPreparedStatement(pstt); return pstt; } /** * @param pstt * @param info * @param time * * @return the number of elements (COUNT) from the statement */ public static long getResultCountPrepareStatement( final DbPreparedStatement pstt, final UpdatedInfo info, final long time) { long result = 0; try { finishSelectOrCountPrepareStatement(pstt, time); pstt.getPreparedStatement().setInt(2, info.ordinal()); pstt.executeQuery(); if (pstt.getNext()) { result = pstt.getResultSet().getLong(1); } } catch (final WaarpDatabaseNoConnectionException ignored) { // nothing } catch (final WaarpDatabaseSqlException ignored) { // nothing } catch (final SQLException ignored) { // nothing } finally { pstt.close(); } return result; } /** * @param session * * @return the DbPreparedStatement for getting Runner according to status * ordered by start * * @throws WaarpDatabaseNoConnectionException * @throws WaarpDatabaseSqlException */ public static DbPreparedStatement getCountStatusPrepareStatement( final DbSession session) throws WaarpDatabaseNoConnectionException, WaarpDatabaseSqlException { String request = "SELECT COUNT(" + Columns.SPECIALID.name() + ") FROM " + table; request += " WHERE " + Columns.STARTTRANS.name() + " >= ? "; request += " AND " + Columns.INFOSTATUS.name() + " = ? AND " + getLimitWhereCondition(); final DbPreparedStatement prep = new DbPreparedStatement(session, request); session.addLongTermPreparedStatement(prep); return prep; } /** * @param session * * @return the DbPreparedStatement for getting All according to status * ordered * by start * * @throws WaarpDatabaseNoConnectionException * @throws WaarpDatabaseSqlException */ public static DbPreparedStatement getCountAllPrepareStatement( final DbSession session) throws WaarpDatabaseNoConnectionException, WaarpDatabaseSqlException { String request = "SELECT COUNT(" + Columns.SPECIALID.name() + ") FROM " + table; request += " WHERE " + Columns.STARTTRANS.name() + " >= ? "; request += " AND " + getLimitWhereCondition(); final DbPreparedStatement prep = new DbPreparedStatement(session, request); session.addLongTermPreparedStatement(prep); return prep; } /** * @param pstt * @param error * @param time * * @return the number of elements (COUNT) from the statement */ public static long getResultCountPrepareStatement( final DbPreparedStatement pstt, final ReplyCode error, final long time) { |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 388 |
org/waarp/common/utility/Base64.java | Waarp Common | 470 |
org/waarp/common/utility/Base64.java | Waarp Common | 547 |
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n' through 'z' -9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 218 - 230 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 231 - 243 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9 // Decimal 244 - 255 |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 391 |
org/waarp/common/utility/Base64.java | Waarp Common | 467 |
org/waarp/common/utility/Base64.java | Waarp Common | 544 |
, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 218 - 230 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 231 - 243 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9 // Decimal 244 - 255 |
File | Project | Line |
---|---|---|
org/waarp/compress/zstdsafe/SequenceEncoder.java | Waarp Compression | 41 |
org/waarp/compress/zstdunsafe/SequenceEncoder.java | Waarp Compression | 41 |
class SequenceEncoder { private static final int DEFAULT_LITERAL_LENGTH_NORMALIZED_COUNTS_LOG = 6; private static final short[] DEFAULT_LITERAL_LENGTH_NORMALIZED_COUNTS = { 4, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 2, 1, 1, 1, 1, 1, -1, -1, -1, -1 }; private static final int DEFAULT_MATCH_LENGTH_NORMALIZED_COUNTS_LOG = 6; private static final short[] DEFAULT_MATCH_LENGTH_NORMALIZED_COUNTS = { 1, 4, 3, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, -1, -1, -1, -1, -1, -1, -1 }; private static final int DEFAULT_OFFSET_NORMALIZED_COUNTS_LOG = 5; private static final short[] DEFAULT_OFFSET_NORMALIZED_COUNTS = { 1, 1, 1, 1, 1, 1, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, -1, -1, -1, -1, -1 }; private static final FseCompressionTable DEFAULT_LITERAL_LENGTHS_TABLE = FseCompressionTable.newInstance(DEFAULT_LITERAL_LENGTH_NORMALIZED_COUNTS, MAX_LITERALS_LENGTH_SYMBOL, DEFAULT_LITERAL_LENGTH_NORMALIZED_COUNTS_LOG); private static final FseCompressionTable DEFAULT_MATCH_LENGTHS_TABLE = FseCompressionTable.newInstance(DEFAULT_MATCH_LENGTH_NORMALIZED_COUNTS, MAX_MATCH_LENGTH_SYMBOL, DEFAULT_LITERAL_LENGTH_NORMALIZED_COUNTS_LOG); private static final FseCompressionTable DEFAULT_OFFSETS_TABLE = FseCompressionTable.newInstance(DEFAULT_OFFSET_NORMALIZED_COUNTS, DEFAULT_MAX_OFFSET_CODE_SYMBOL, DEFAULT_OFFSET_NORMALIZED_COUNTS_LOG); public static final String NOT_YET_IMPLEMENTED = "not yet implemented"; private SequenceEncoder() { } public static int compressSequences(final byte[] outputBase, |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 388 |
org/waarp/common/utility/Base64.java | Waarp Common | 470 |
org/waarp/common/utility/Base64.java | Waarp Common | 547 |
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n' through 'z' -9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 218 - 230 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 231 - 243 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9 // Decimal 244 - 255 |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 391 |
org/waarp/common/utility/Base64.java | Waarp Common | 467 |
org/waarp/common/utility/Base64.java | Waarp Common | 544 |
, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 218 - 230 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 231 - 243 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9 // Decimal 244 - 255 |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 388 |
org/waarp/common/utility/Base64.java | Waarp Common | 470 |
org/waarp/common/utility/Base64.java | Waarp Common | 547 |
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n' through 'z' -9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 218 - 230 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 231 - 243 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9 // Decimal 244 - 255 |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 391 |
org/waarp/common/utility/Base64.java | Waarp Common | 467 |
org/waarp/common/utility/Base64.java | Waarp Common | 544 |
, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 218 - 230 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 231 - 243 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9 // Decimal 244 - 255 |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 388 |
org/waarp/common/utility/Base64.java | Waarp Common | 470 |
org/waarp/common/utility/Base64.java | Waarp Common | 547 |
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n' through 'z' -9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 218 - 230 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 391 |
org/waarp/common/utility/Base64.java | Waarp Common | 467 |
org/waarp/common/utility/Base64.java | Waarp Common | 544 |
, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 218 - 230 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 231 - 243 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9 // Decimal 244 - 255 |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 388 |
org/waarp/common/utility/Base64.java | Waarp Common | 470 |
org/waarp/common/utility/Base64.java | Waarp Common | 547 |
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n' through 'z' -9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 218 - 230 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 391 |
org/waarp/common/utility/Base64.java | Waarp Common | 467 |
org/waarp/common/utility/Base64.java | Waarp Common | 544 |
, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 218 - 230 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 231 - 243 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9 // Decimal 244 - 255 |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 388 |
org/waarp/common/utility/Base64.java | Waarp Common | 470 |
org/waarp/common/utility/Base64.java | Waarp Common | 547 |
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n' through 'z' -9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 218 - 230 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 391 |
org/waarp/common/utility/Base64.java | Waarp Common | 467 |
org/waarp/common/utility/Base64.java | Waarp Common | 544 |
, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 218 - 230 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 231 - 243 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9 // Decimal 244 - 255 |
File | Project | Line |
---|---|---|
org/waarp/gateway/ftp/database/data/DbTransferLog.java | Waarp Gateway Ftp | 1003 |
org/waarp/gateway/kernel/database/data/DbTransferLog.java | Waarp Gateway Kernel | 1016 |
} /** * @return the start */ public final Timestamp getStart() { return start; } /** * @return the stop */ public final Timestamp getStop() { return stop; } /* * XXXIDXXX XXXUSERXXX XXXACCTXXX XXXFILEXXX XXXMODEXXX XXXSTATUSXXX XXXINFOXXX XXXUPINFXXX XXXSTARTXXX * XXXSTOPXXX */ private static final String XML_IDX = "IDX"; private static final String XML_USER = "USER"; private static final String XML_ACCT = "ACCT"; private static final String XML_FILE = "FILE"; private static final String XML_MODE = "MODE"; private static final String XML_STATUS = "STATUS"; private static final String XML_INFO = "INFO"; private static final String XML_UPDINFO = "UPDINFO"; private static final String XML_START = "START"; private static final String XML_STOP = "STOP"; private static final String XML_ROOT = "LOGS"; private static final String XML_ENTRY = "LOG"; /** * Structure of the Configuration file */ private static final XmlDecl[] logDecls = { // identity new XmlDecl(XmlType.STRING, XML_IDX), new XmlDecl(XmlType.STRING, XML_USER), new XmlDecl(XmlType.STRING, XML_ACCT), new XmlDecl(XmlType.STRING, XML_FILE), new XmlDecl(XmlType.STRING, XML_MODE), new XmlDecl(XmlType.STRING, XML_STATUS), new XmlDecl(XmlType.STRING, XML_INFO), new XmlDecl(XmlType.STRING, XML_UPDINFO), new XmlDecl(XmlType.STRING, XML_START), new XmlDecl(XmlType.STRING, XML_STOP), }; /** * Global Structure for Server Configuration */ private static final XmlDecl[] logsElements = { new XmlDecl(XML_ENTRY, XmlType.XVAL, XML_ROOT + '/' + XML_ENTRY, logDecls, true) }; /** * @return the associated XmlValue */ private XmlValue[] saveIntoXmlValue() { final XmlValue[] values = new XmlValue[logDecls.length]; for (int i = 0; i < logDecls.length; i++) { values[i] = new XmlValue(logDecls[i]); } try { values[0].setFromString(Long.toString(specialId)); values[1].setFromString(user); values[2].setFromString(account); values[3].setFromString(filename); values[4].setFromString(mode); values[5].setFromString(getErrorInfo().getMesg()); |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 388 |
org/waarp/common/utility/Base64.java | Waarp Common | 470 |
org/waarp/common/utility/Base64.java | Waarp Common | 547 |
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n' through 'z' -9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 218 - 230 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 391 |
org/waarp/common/utility/Base64.java | Waarp Common | 467 |
org/waarp/common/utility/Base64.java | Waarp Common | 544 |
, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 218 - 230 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 231 - 243 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9 // Decimal 244 - 255 |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 388 |
org/waarp/common/utility/Base64.java | Waarp Common | 470 |
org/waarp/common/utility/Base64.java | Waarp Common | 547 |
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n' through 'z' -9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 218 - 230 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 391 |
org/waarp/common/utility/Base64.java | Waarp Common | 467 |
org/waarp/common/utility/Base64.java | Waarp Common | 544 |
, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 218 - 230 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 231 - 243 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9 // Decimal 244 - 255 |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 388 |
org/waarp/common/utility/Base64.java | Waarp Common | 470 |
org/waarp/common/utility/Base64.java | Waarp Common | 547 |
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n' through 'z' -9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 218 - 230 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 391 |
org/waarp/common/utility/Base64.java | Waarp Common | 467 |
org/waarp/common/utility/Base64.java | Waarp Common | 544 |
, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 218 - 230 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 231 - 243 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9 // Decimal 244 - 255 |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 388 |
org/waarp/common/utility/Base64.java | Waarp Common | 472 |
org/waarp/common/utility/Base64.java | Waarp Common | 549 |
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n' through 'z' -9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 218 - 230 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 393 |
org/waarp/common/utility/Base64.java | Waarp Common | 467 |
org/waarp/common/utility/Base64.java | Waarp Common | 544 |
-9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 218 - 230 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 231 - 243 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9 // Decimal 244 - 255 |
File | Project | Line |
---|---|---|
org/waarp/thrift/r66/R66Request.java | Waarp Thrift | 1104 |
org/waarp/thrift/r66/R66Result.java | Waarp Thrift | 1574 |
public final int compareTo(final R66Request other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison; lastComparison = Boolean.valueOf(isSetMode()).compareTo(other.isSetMode()); if (lastComparison != 0) { return lastComparison; } if (isSetMode()) { lastComparison = TBaseHelper.compareTo(mode, other.mode); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetFromuid()).compareTo(other.isSetFromuid()); if (lastComparison != 0) { return lastComparison; } if (isSetFromuid()) { lastComparison = TBaseHelper.compareTo(fromuid, other.fromuid); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetDestuid()).compareTo(other.isSetDestuid()); if (lastComparison != 0) { return lastComparison; } if (isSetDestuid()) { lastComparison = TBaseHelper.compareTo(destuid, other.destuid); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetFile()).compareTo(other.isSetFile()); if (lastComparison != 0) { return lastComparison; } if (isSetFile()) { lastComparison = TBaseHelper.compareTo(file, other.file); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRule()).compareTo(other.isSetRule()); if (lastComparison != 0) { return lastComparison; } if (isSetRule()) { lastComparison = TBaseHelper.compareTo(rule, other.rule); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetInfo()).compareTo(other.isSetInfo()); |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 388 |
org/waarp/common/utility/Base64.java | Waarp Common | 472 |
org/waarp/common/utility/Base64.java | Waarp Common | 549 |
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n' through 'z' -9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 218 - 230 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 393 |
org/waarp/common/utility/Base64.java | Waarp Common | 467 |
org/waarp/common/utility/Base64.java | Waarp Common | 544 |
-9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 218 - 230 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 231 - 243 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9 // Decimal 244 - 255 |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 388 |
org/waarp/common/utility/Base64.java | Waarp Common | 472 |
org/waarp/common/utility/Base64.java | Waarp Common | 549 |
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n' through 'z' -9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 218 - 230 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 393 |
org/waarp/common/utility/Base64.java | Waarp Common | 467 |
org/waarp/common/utility/Base64.java | Waarp Common | 544 |
-9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 218 - 230 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 231 - 243 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9 // Decimal 244 - 255 |
File | Project | Line |
---|---|---|
org/waarp/gateway/ftp/database/data/DbTransferLog.java | Waarp Gateway Ftp | 401 |
org/waarp/gateway/kernel/database/data/DbTransferLog.java | Waarp Gateway Kernel | 392 |
if (specialId == DbConstant.ILLEGALVALUE) { specialId = dbSession.getAdmin().getDbModel().nextSequence(dbSession); logger.debug("Try Insert create a new Id from sequence: {}", specialId); setPrimaryKey(); } setToArray(); final DbPreparedStatement preparedStatement = new DbPreparedStatement(dbSession); try { preparedStatement.createPrepareStatement( "INSERT INTO " + table + " (" + selectAllFields + ") VALUES " + insertAllValues); setValues(preparedStatement, allFields); try { final int count = preparedStatement.executeUpdate(); if (count <= 0) { throw new WaarpDatabaseNoDataException(NO_ROW_FOUND2); } } catch (final WaarpDatabaseSqlException e) { logger.error("Problem while inserting: {}", e.getMessage()); final DbPreparedStatement find = new DbPreparedStatement(dbSession); try { find.createPrepareStatement( "SELECT MAX(" + primaryKey[3].getColumn() + ") FROM " + table + " WHERE " + primaryKey[0].getColumn() + " = ? AND " + primaryKey[1].getColumn() + " = ? AND " + primaryKey[2].getColumn() + " = ? AND " + primaryKey[3].getColumn() + " != ? "); setPrimaryKey(); setValues(find, primaryKey); find.executeQuery(); if (find.getNext()) { final long result; try { result = find.getResultSet().getLong(1); } catch (final SQLException e1) { throw new WaarpDatabaseSqlException(e1); } specialId = result + 1; dbSession.getAdmin().getDbModel() .resetSequence(dbSession, specialId + 1); setToArray(); preparedStatement.close(); setValues(preparedStatement, allFields); final int count = preparedStatement.executeUpdate(); if (count <= 0) { throw new WaarpDatabaseNoDataException(NO_ROW_FOUND2); } } else { throw new WaarpDatabaseNoDataException(NO_ROW_FOUND2); } } finally { find.realClose(); } } isSaved = true; } finally { preparedStatement.realClose(); } } |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 388 |
org/waarp/common/utility/Base64.java | Waarp Common | 472 |
org/waarp/common/utility/Base64.java | Waarp Common | 549 |
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n' through 'z' -9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 218 - 230 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 393 |
org/waarp/common/utility/Base64.java | Waarp Common | 467 |
org/waarp/common/utility/Base64.java | Waarp Common | 544 |
-9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 218 - 230 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 231 - 243 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9 // Decimal 244 - 255 |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 388 |
org/waarp/common/utility/Base64.java | Waarp Common | 472 |
org/waarp/common/utility/Base64.java | Waarp Common | 549 |
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n' through 'z' -9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 218 - 230 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 393 |
org/waarp/common/utility/Base64.java | Waarp Common | 467 |
org/waarp/common/utility/Base64.java | Waarp Common | 544 |
-9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 218 - 230 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 231 - 243 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9 // Decimal 244 - 255 |
File | Project | Line |
---|---|---|
org/waarp/openr66/protocol/http/adminssl/HttpResponsiveSslHandler.java | Waarp OpenR66 | 1287 |
org/waarp/openr66/protocol/http/adminssl/HttpSslHandler.java | Waarp OpenR66 | 1445 |
} int gmode = 0; TRANSFERMODE tmode = null; if ("send".equals(mode)) { tmode = RequestPacket.TRANSFERMODE.SENDMODE; gmode = -2; } else if ("recv".equals(mode)) { tmode = RequestPacket.TRANSFERMODE.RECVMODE; gmode = -1; } else if ("sendmd5".equals(mode)) { tmode = RequestPacket.TRANSFERMODE.SENDMD5MODE; gmode = -2; } else if ("recvmd5".equals(mode)) { tmode = RequestPacket.TRANSFERMODE.RECVMD5MODE; gmode = -1; } else if ("sendth".equals(mode)) { tmode = RequestPacket.TRANSFERMODE.SENDTHROUGHMODE; gmode = -2; } else if ("recvth".equals(mode)) { tmode = RequestPacket.TRANSFERMODE.RECVTHROUGHMODE; gmode = -1; } else if ("sendthmd5".equals(mode)) { tmode = RequestPacket.TRANSFERMODE.SENDMD5THROUGHMODE; gmode = -2; } else if ("recvthmd5".equals(mode)) { tmode = RequestPacket.TRANSFERMODE.RECVMD5THROUGHMODE; gmode = -1; } head = resetOptionRules(head, rule, tmode, gmode); if (logger.isDebugEnabled()) { logger.debug("Recv UpdOrInsert: " + rule + ':' + hostids + ':' + (tmode != null? tmode.ordinal() : 0) + ':' + recvp + ':' + sendp + ':' + archp + ':' + workp + ':' + rpre + ':' + rpost + ':' + rerr + ':' + spre + ':' + spost + ':' + serr); } final DbRule dbrule; try { dbrule = new DbRule(rule, hostids, (tmode != null? tmode.ordinal() : 0), recvp, sendp, archp, workp, rpre, rpost, rerr, spre, spost, serr); if ("Create".equalsIgnoreCase(parm)) { |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 388 |
org/waarp/common/utility/Base64.java | Waarp Common | 472 |
org/waarp/common/utility/Base64.java | Waarp Common | 549 |
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n' through 'z' -9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 218 - 230 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 393 |
org/waarp/common/utility/Base64.java | Waarp Common | 467 |
org/waarp/common/utility/Base64.java | Waarp Common | 544 |
-9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 218 - 230 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 231 - 243 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9 // Decimal 244 - 255 |
File | Project | Line |
---|---|---|
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 801 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 639 |
new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_425, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_426, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_431, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_450, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_451, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_452, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_500, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_501, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_502, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_503, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_504, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_522, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_530, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_532, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_533, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_534, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_535, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_536, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_550, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_551, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_552, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_553 new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY) }; /** * Oper Status (as defined in Net Application SNMP) */ public enum OperStatus { up(1), down(2), halted(3), congested(4), restarting(5), quiescing(6); public final int status; OperStatus(final int status) { this.status = status; } } } |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 388 |
org/waarp/common/utility/Base64.java | Waarp Common | 472 |
org/waarp/common/utility/Base64.java | Waarp Common | 549 |
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n' through 'z' -9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 218 - 230 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 393 |
org/waarp/common/utility/Base64.java | Waarp Common | 467 |
org/waarp/common/utility/Base64.java | Waarp Common | 544 |
-9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 218 - 230 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 231 - 243 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9 // Decimal 244 - 255 |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 388 |
org/waarp/common/utility/Base64.java | Waarp Common | 472 |
org/waarp/common/utility/Base64.java | Waarp Common | 549 |
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n' through 'z' -9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 393 |
org/waarp/common/utility/Base64.java | Waarp Common | 467 |
org/waarp/common/utility/Base64.java | Waarp Common | 544 |
-9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 218 - 230 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 231 - 243 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9 // Decimal 244 - 255 |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 388 |
org/waarp/common/utility/Base64.java | Waarp Common | 472 |
org/waarp/common/utility/Base64.java | Waarp Common | 549 |
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n' through 'z' -9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 393 |
org/waarp/common/utility/Base64.java | Waarp Common | 467 |
org/waarp/common/utility/Base64.java | Waarp Common | 544 |
-9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 218 - 230 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 231 - 243 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9 // Decimal 244 - 255 |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 388 |
org/waarp/common/utility/Base64.java | Waarp Common | 472 |
org/waarp/common/utility/Base64.java | Waarp Common | 549 |
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n' through 'z' -9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 393 |
org/waarp/common/utility/Base64.java | Waarp Common | 467 |
org/waarp/common/utility/Base64.java | Waarp Common | 544 |
-9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 218 - 230 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 231 - 243 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9 // Decimal 244 - 255 |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 345 |
org/waarp/common/utility/Base64.java | Waarp Common | 422 |
private static final byte[] _STANDARD_ALPHABET = { (byte) 'A', (byte) 'B', (byte) 'C', (byte) 'D', (byte) 'E', (byte) 'F', (byte) 'G', (byte) 'H', (byte) 'I', (byte) 'J', (byte) 'K', (byte) 'L', (byte) 'M', (byte) 'N', (byte) 'O', (byte) 'P', (byte) 'Q', (byte) 'R', (byte) 'S', (byte) 'T', (byte) 'U', (byte) 'V', (byte) 'W', (byte) 'X', (byte) 'Y', (byte) 'Z', (byte) 'a', (byte) 'b', (byte) 'c', (byte) 'd', (byte) 'e', (byte) 'f', (byte) 'g', (byte) 'h', (byte) 'i', (byte) 'j', (byte) 'k', (byte) 'l', (byte) 'm', (byte) 'n', (byte) 'o', (byte) 'p', (byte) 'q', (byte) 'r', (byte) 's', (byte) 't', (byte) 'u', (byte) 'v', (byte) 'w', (byte) 'x', (byte) 'y', (byte) 'z', (byte) '0', (byte) '1', (byte) '2', (byte) '3', (byte) '4', (byte) '5', (byte) '6', (byte) '7', (byte) '8', (byte) '9', (byte) '+', (byte) '/' |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 388 |
org/waarp/common/utility/Base64.java | Waarp Common | 472 |
org/waarp/common/utility/Base64.java | Waarp Common | 549 |
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n' through 'z' -9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 393 |
org/waarp/common/utility/Base64.java | Waarp Common | 467 |
org/waarp/common/utility/Base64.java | Waarp Common | 544 |
-9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 218 - 230 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 231 - 243 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9 // Decimal 244 - 255 |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 388 |
org/waarp/common/utility/Base64.java | Waarp Common | 472 |
org/waarp/common/utility/Base64.java | Waarp Common | 549 |
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n' through 'z' -9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 393 |
org/waarp/common/utility/Base64.java | Waarp Common | 467 |
org/waarp/common/utility/Base64.java | Waarp Common | 544 |
-9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 218 - 230 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 231 - 243 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9 // Decimal 244 - 255 |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 388 |
org/waarp/common/utility/Base64.java | Waarp Common | 472 |
org/waarp/common/utility/Base64.java | Waarp Common | 549 |
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n' through 'z' -9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 393 |
org/waarp/common/utility/Base64.java | Waarp Common | 467 |
org/waarp/common/utility/Base64.java | Waarp Common | 544 |
-9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 218 - 230 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 231 - 243 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9 // Decimal 244 - 255 |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 388 |
org/waarp/common/utility/Base64.java | Waarp Common | 474 |
org/waarp/common/utility/Base64.java | Waarp Common | 551 |
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n' through 'z' -9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 395 |
org/waarp/common/utility/Base64.java | Waarp Common | 467 |
org/waarp/common/utility/Base64.java | Waarp Common | 544 |
-9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 218 - 230 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 231 - 243 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9 // Decimal 244 - 255 |
File | Project | Line |
---|---|---|
org/waarp/compress/zstdsafe/XxHash64.java | Waarp Compression | 104 |
org/waarp/compress/zstdunsafe/XxHash64.java | Waarp Compression | 102 |
v4 = mix(v4, getLong(base, address + 24)); address += 32; remaining -= 32; } long hash = rotateLeft(v1, 1) + rotateLeft(v2, 7) + rotateLeft(v3, 12) + rotateLeft(v4, 18); hash = update(hash, v1); hash = update(hash, v2); hash = update(hash, v3); hash = update(hash, v4); return hash; } private static long mix(final long current, final long value) { return rotateLeft(current + value * PRIME64_2, 31) * PRIME64_1; } private static long update(final long hash, final long value) { final long temp = hash ^ mix(0, value); return temp * PRIME64_1 + PRIME64_4; } private static long updateTail(final long hash, final long value) { final long temp = hash ^ mix(0, value); return rotateLeft(temp, 27) * PRIME64_1 + PRIME64_4; } private static long updateTail(final long hash, final int value) { final long unsigned = value & 0xFFFFFFFFL; final long temp = hash ^ (unsigned * PRIME64_1); return rotateLeft(temp, 23) * PRIME64_2 + PRIME64_3; } private static long updateTail(final long hash, final byte value) { final int unsigned = value & 0xFF; final long temp = hash ^ (unsigned * PRIME64_5); return rotateLeft(temp, 11) * PRIME64_1; } private static long finalShuffle(long hash) { hash ^= hash >>> 33; hash *= PRIME64_2; hash ^= hash >>> 29; hash *= PRIME64_3; hash ^= hash >>> 32; return hash; } } |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 388 |
org/waarp/common/utility/Base64.java | Waarp Common | 474 |
org/waarp/common/utility/Base64.java | Waarp Common | 551 |
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n' through 'z' -9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 395 |
org/waarp/common/utility/Base64.java | Waarp Common | 467 |
org/waarp/common/utility/Base64.java | Waarp Common | 544 |
-9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 218 - 230 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 231 - 243 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9 // Decimal 244 - 255 |
File | Project | Line |
---|---|---|
org/waarp/compress/zstdsafe/HuffmanCompressionTable.java | Waarp Compression | 310 |
org/waarp/compress/zstdunsafe/HuffmanCompressionTable.java | Waarp Compression | 312 |
return numberOfBits >>> 3; // convert to bytes } // http://fastcompression.blogspot.com/2015/07/huffman-revisited-part-3-depth-limited.html private static int setMaxHeight(final NodeTable nodeTable, final int lastNonZero, final int maxNumberOfBits, final HuffmanCompressionTableWorkspace workspace) { final int largestBits = nodeTable.numberOfBits[lastNonZero]; if (largestBits <= maxNumberOfBits) { return largestBits; // early exit: no elements > maxNumberOfBits } // there are several too large elements (at least >= 2) int totalCost = 0; final int baseCost = 1 << (largestBits - maxNumberOfBits); int n = lastNonZero; while (nodeTable.numberOfBits[n] > maxNumberOfBits) { totalCost += baseCost - (1 << (largestBits - nodeTable.numberOfBits[n])); nodeTable.numberOfBits[n] = (byte) maxNumberOfBits; n--; } // n stops at nodeTable.numberOfBits[n + offset] <= maxNumberOfBits while (nodeTable.numberOfBits[n] == maxNumberOfBits) { n--; // n ends at index of smallest symbol using < maxNumberOfBits } // renormalize totalCost totalCost >>>= (largestBits - maxNumberOfBits); // note: totalCost is necessarily a multiple of baseCost // repay normalized cost final int noSymbol = 0xF0F0F0F0; final int[] rankLast = workspace.rankLast; Arrays.fill(rankLast, noSymbol); // Get pos of last (smallest) symbol per rank int currentNbBits = maxNumberOfBits; for (int pos = n; pos >= 0; pos--) { if (nodeTable.numberOfBits[pos] >= currentNbBits) { continue; } currentNbBits = nodeTable.numberOfBits[pos]; // < maxNumberOfBits rankLast[maxNumberOfBits - currentNbBits] = pos; } while (totalCost > 0) { int numberOfBitsToDecrease = Util.highestBit(totalCost) + 1; for (; numberOfBitsToDecrease > 1; numberOfBitsToDecrease--) { final int highPosition = rankLast[numberOfBitsToDecrease]; final int lowPosition = rankLast[numberOfBitsToDecrease - 1]; if (highPosition == noSymbol) { continue; } if (lowPosition == noSymbol) { break; } final int highTotal = nodeTable.count[highPosition]; final int lowTotal = 2 * nodeTable.count[lowPosition]; if (highTotal <= lowTotal) { break; } } // only triggered when no more rank 1 symbol left => find closest one (note : there is necessarily at least one !) // HUF_MAX_TABLELOG test just to please gcc 5+; but it should not be necessary while ((numberOfBitsToDecrease <= MAX_TABLE_LOG) && |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 388 |
org/waarp/common/utility/Base64.java | Waarp Common | 474 |
org/waarp/common/utility/Base64.java | Waarp Common | 551 |
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n' through 'z' -9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 395 |
org/waarp/common/utility/Base64.java | Waarp Common | 467 |
org/waarp/common/utility/Base64.java | Waarp Common | 544 |
-9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 218 - 230 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 231 - 243 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9 // Decimal 244 - 255 |
File | Project | Line |
---|---|---|
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 791 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 625 |
public final int getOID() { return ordinal() + 1; } } /** * Error part */ public static final WaarpEntry[] WaarpErrorValues = { // reply_421, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_425, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_426, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_431, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_450, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_451, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_452, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_500, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_501, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_502, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_503, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_504, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_522, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_530, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_532, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_533, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_534, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_535, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_536, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_550, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_551, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_552, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_553 new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY) |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 388 |
org/waarp/common/utility/Base64.java | Waarp Common | 474 |
org/waarp/common/utility/Base64.java | Waarp Common | 551 |
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n' through 'z' -9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 395 |
org/waarp/common/utility/Base64.java | Waarp Common | 467 |
org/waarp/common/utility/Base64.java | Waarp Common | 544 |
-9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 218 - 230 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 231 - 243 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9 // Decimal 244 - 255 |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 388 |
org/waarp/common/utility/Base64.java | Waarp Common | 474 |
org/waarp/common/utility/Base64.java | Waarp Common | 551 |
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n' through 'z' -9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 395 |
org/waarp/common/utility/Base64.java | Waarp Common | 467 |
org/waarp/common/utility/Base64.java | Waarp Common | 544 |
-9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 218 - 230 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 231 - 243 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9 // Decimal 244 - 255 |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 388 |
org/waarp/common/utility/Base64.java | Waarp Common | 474 |
org/waarp/common/utility/Base64.java | Waarp Common | 551 |
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n' through 'z' -9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 395 |
org/waarp/common/utility/Base64.java | Waarp Common | 467 |
org/waarp/common/utility/Base64.java | Waarp Common | 544 |
-9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 218 - 230 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 231 - 243 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9 // Decimal 244 - 255 |
File | Project | Line |
---|---|---|
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 680 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 636 |
new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_125, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_150, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_200, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_202, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_211, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_212, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_213, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_214, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_215, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_220, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_221, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_225, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_226, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_227, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_229, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_230, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_232, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_234, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_250, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_257, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_331, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_332, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_350 new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY) }; /** * Error part */ public enum WaarpErrorValuesIndex { |
File | Project | Line |
---|---|---|
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 672 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 633 |
public static final WaarpEntry[] WaarpDetailedValues = { // reply_000, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_110, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_120, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_125, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_150, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_200, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_202, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_211, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_212, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_213, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_214, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_215, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_220, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_221, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_225, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_226, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_227, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_229, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_230, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_232, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_234, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_250, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_257, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_331, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 388 |
org/waarp/common/utility/Base64.java | Waarp Common | 474 |
org/waarp/common/utility/Base64.java | Waarp Common | 551 |
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n' through 'z' -9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 395 |
org/waarp/common/utility/Base64.java | Waarp Common | 467 |
org/waarp/common/utility/Base64.java | Waarp Common | 544 |
-9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 218 - 230 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 231 - 243 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9 // Decimal 244 - 255 |
File | Project | Line |
---|---|---|
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 677 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 636 |
new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_120, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_125, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_150, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_200, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_202, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_211, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_212, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_213, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_214, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_215, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_220, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_221, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_225, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_226, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_227, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_229, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_230, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_232, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_234, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_250, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_257, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_331, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_332, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 388 |
org/waarp/common/utility/Base64.java | Waarp Common | 474 |
org/waarp/common/utility/Base64.java | Waarp Common | 551 |
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n' through 'z' -9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 395 |
org/waarp/common/utility/Base64.java | Waarp Common | 467 |
org/waarp/common/utility/Base64.java | Waarp Common | 544 |
-9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 218 - 230 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 231 - 243 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9 // Decimal 244 - 255 |
File | Project | Line |
---|---|---|
org/waarp/gateway/kernel/database/model/DbModelH2Kernel.java | Waarp Gateway Kernel | 94 |
org/waarp/gateway/kernel/database/model/DbModelPostgresqlKernel.java | Waarp Gateway Kernel | 87 |
"("); final DbTransferLog.Columns[] icolumns = DbTransferLog.indexes; for (int i = 0; i < icolumns.length - 1; i++) { action.append(icolumns[i].name()).append(", "); } action.append(icolumns[icolumns.length - 1].name()).append(')'); SysErrLogger.FAKE_LOGGER.sysout(action); try { request.query(action.toString()); } catch (final WaarpDatabaseNoConnectionException e) { SysErrLogger.FAKE_LOGGER.ignoreLog(e); return; } catch (final WaarpDatabaseSqlException e) { SysErrLogger.FAKE_LOGGER.ignoreLog(e); // XXX FIX No return } finally { request.close(); } // cptrunner action = new StringBuilder("DROP SEQUENCE IF EXISTS " + DbTransferLog.fieldseq); SysErrLogger.FAKE_LOGGER.sysout(action); try { request.query(action.toString()); } catch (final WaarpDatabaseNoConnectionException e) { SysErrLogger.FAKE_LOGGER.ignoreLog(e); } catch (final WaarpDatabaseSqlException e) { SysErrLogger.FAKE_LOGGER.ignoreLog(e); } finally { request.close(); } } @Override public final void resetSequence(final DbSession session, final long newvalue) { // Nothing since LongUuid } @Override public final long nextSequence(final DbSession dbSession) { return LongUuid.getLongUuid(); } @Override public final boolean upgradeDb(final DbSession session, final String version) { return true; } @Override public final boolean needUpgradeDb(final DbSession session, final String version, final boolean tryFix) { return false; } } |
File | Project | Line |
---|---|---|
org/waarp/thrift/r66/R66Service.java | Waarp Thrift | 1484 |
org/waarp/thrift/r66/R66Service.java | Waarp Thrift | 3332 |
return (infoTransferQuery_args) super.clone(); } /** * The set of fields this struct contains, along with convenience * methods * for finding and manipulating them. */ public enum _Fields implements TFieldIdEnum { REQUEST((short) 1, REQUEST3); private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); static { for (final _Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not * found. */ public static _Fields findByThriftId(final int fieldId) { if (fieldId == 1) { // REQUEST return REQUEST; } return null; } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(final int fieldId) { final _Fields fields = findByThriftId(fieldId); if (fields == null) { throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); } return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(final String name) { return byName.get(name); } private final short thriftId; private final String fieldName; _Fields(final short thriftId, final String fieldName) { this.thriftId = thriftId; this.fieldName = fieldName; } @Override public final short getThriftFieldId() { return thriftId; } @Override public final String getFieldName() { return fieldName; } } // isset id assignments public static final Map<_Fields, FieldMetaData> metaDataMap; static { final Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); tmpMap.put(_Fields.REQUEST, new FieldMetaData("request", TFieldRequirementType.DEFAULT, new StructMetaData(TType.STRUCT, R66Request.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); FieldMetaData.addStructMetaDataMap(infoTransferQuery_args.class, |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 388 |
org/waarp/common/utility/Base64.java | Waarp Common | 474 |
org/waarp/common/utility/Base64.java | Waarp Common | 551 |
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n' through 'z' -9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 395 |
org/waarp/common/utility/Base64.java | Waarp Common | 467 |
org/waarp/common/utility/Base64.java | Waarp Common | 544 |
-9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 218 - 230 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 231 - 243 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9 // Decimal 244 - 255 |
File | Project | Line |
---|---|---|
org/waarp/compress/zstdsafe/HuffmanCompressionTable.java | Waarp Compression | 166 |
org/waarp/compress/zstdunsafe/HuffmanCompressionTable.java | Waarp Compression | 166 |
final int root = MAX_SYMBOL_COUNT + lastNonZero - 1; // fill in sentinels for (int n = current; n <= root; n++) { nodeTable.count[n] = 1 << 30; } // create parents while (current <= root) { final int child1; if (currentLeaf >= 0 && nodeTable.count[currentLeaf] < nodeTable.count[currentNonLeaf]) { child1 = currentLeaf--; } else { child1 = currentNonLeaf++; } final int child2; if (currentLeaf >= 0 && nodeTable.count[currentLeaf] < nodeTable.count[currentNonLeaf]) { child2 = currentLeaf--; } else { child2 = currentNonLeaf++; } nodeTable.count[current] = nodeTable.count[child1] + nodeTable.count[child2]; nodeTable.parents[child1] = current; nodeTable.parents[child2] = current; current++; } // distribute weights nodeTable.numberOfBits[root] = 0; for (int n = root - 1; n >= nonLeafStart; n--) { final short parent = nodeTable.parents[n]; nodeTable.numberOfBits[n] = (byte) (nodeTable.numberOfBits[parent] + 1); } for (int n = 0; n <= lastNonZero; n++) { final short parent = nodeTable.parents[n]; nodeTable.numberOfBits[n] = (byte) (nodeTable.numberOfBits[parent] + 1); } return lastNonZero; } // TODO: consider encoding 2 symbols at a time // - need a table with 256x256 entries with // - the concatenated bits for the corresponding pair of symbols // - the sum of bits for the corresponding pair of symbols // - read 2 symbols at a time from the input public void encodeSymbol(final BitOutputStream output, final int symbol) { output.addBitsFast(values[symbol], numberOfBits[symbol]); } public int write(final byte[] outputBase, final int outputAddress, |
File | Project | Line |
---|---|---|
org/waarp/compress/zstdsafe/HuffmanCompressionTable.java | Waarp Compression | 89 |
org/waarp/compress/zstdunsafe/HuffmanCompressionTable.java | Waarp Compression | 89 |
checkArgument(maxNumberOfBits <= MAX_TABLE_LOG, "Max number of bits larger than max table size"); // populate table final int symbolCount = maxSymbol + 1; for (int node = 0; node < symbolCount; node++) { final int symbol = nodeTable.symbols[node]; numberOfBits[symbol] = nodeTable.numberOfBits[node]; } final short[] entriesPerRank = workspace.entriesPerRank; final short[] valuesPerRank = workspace.valuesPerRank; for (int n = 0; n <= lastNonZero; n++) { entriesPerRank[nodeTable.numberOfBits[n]]++; } // determine starting value per rank short startingValue = 0; for (int rank = maxNumberOfBits; rank > 0; rank--) { valuesPerRank[rank] = startingValue; // get starting value within each rank startingValue += entriesPerRank[rank]; startingValue >>>= 1; } for (int n = 0; n <= maxSymbol; n++) { values[n] = valuesPerRank[numberOfBits[n]]++; // assign value within rank, symbol order } this.maxSymbol = maxSymbol; this.maxNumberOfBits = maxNumberOfBits; } private int buildTree(final int[] counts, final int maxSymbol, final NodeTable nodeTable) { // populate the leaves of the node table from the histogram of counts // in descending order by count, ascending by symbol value. short current = 0; for (int symbol = 0; symbol <= maxSymbol; symbol++) { final int count = counts[symbol]; // simple insertion sort int position = current; while (position > 1 && count > nodeTable.count[position - 1]) { nodeTable.copyNode(position - 1, position); position--; } nodeTable.count[position] = count; nodeTable.symbols[position] = symbol; current++; } int lastNonZero = maxSymbol; while (nodeTable.count[lastNonZero] == 0) { lastNonZero--; } // populate the non-leaf nodes final short nonLeafStart = MAX_SYMBOL_COUNT; |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 388 |
org/waarp/common/utility/Base64.java | Waarp Common | 474 |
org/waarp/common/utility/Base64.java | Waarp Common | 551 |
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n' through 'z' -9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 395 |
org/waarp/common/utility/Base64.java | Waarp Common | 467 |
org/waarp/common/utility/Base64.java | Waarp Common | 544 |
-9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 218 - 230 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 231 - 243 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9 // Decimal 244 - 255 |
File | Project | Line |
---|---|---|
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 683 |
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 801 |
new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_150, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_200, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_202, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_211, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_212, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_213, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_214, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_215, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_220, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_221, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_225, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_226, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_227, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_229, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_230, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_232, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_234, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_250, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_257, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_331, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_332, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_350 new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY) }; /** * Error part */ public enum WaarpErrorValuesIndex { |
File | Project | Line |
---|---|---|
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 672 |
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 799 |
public static final WaarpEntry[] WaarpDetailedValues = { // reply_000, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_110, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_120, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_125, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_150, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_200, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_202, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_211, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_212, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_213, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_214, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_215, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_220, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_221, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_225, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_226, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_227, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_229, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_230, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_232, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_234, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_250, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_257, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 388 |
org/waarp/common/utility/Base64.java | Waarp Common | 474 |
org/waarp/common/utility/Base64.java | Waarp Common | 551 |
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n' through 'z' -9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 395 |
org/waarp/common/utility/Base64.java | Waarp Common | 467 |
org/waarp/common/utility/Base64.java | Waarp Common | 544 |
-9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 218 - 230 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 231 - 243 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9 // Decimal 244 - 255 |
File | Project | Line |
---|---|---|
org/waarp/gateway/kernel/database/model/DbModelMysqlKernel.java | Waarp Gateway Kernel | 78 |
org/waarp/gateway/kernel/database/model/DbModelOracleKernel.java | Waarp Gateway Kernel | 75 |
org/waarp/gateway/kernel/database/model/DbModelPostgresqlKernel.java | Waarp Gateway Kernel | 68 |
action.append(" CONSTRAINT TRANSLOG_PK " + primaryKey + '('); for (int i = DbTransferLog.NBPRKEY; i > 1; i--) { action.append(acolumns[acolumns.length - i].name()).append(','); } action.append(acolumns[acolumns.length - 1].name()).append("))"); SysErrLogger.FAKE_LOGGER.sysout(action); try { request.query(action.toString()); } catch (final WaarpDatabaseNoConnectionException e) { SysErrLogger.FAKE_LOGGER.ignoreLog(e); return; } catch (final WaarpDatabaseSqlException e) { SysErrLogger.FAKE_LOGGER.ignoreLog(e); // XXX FIX No return } finally { request.close(); } // Index TRANSLOG action = new StringBuilder( "CREATE INDEX IDX_TRANSLOG ON " + DbTransferLog.table + '('); final DbTransferLog.Columns[] icolumns = DbTransferLog.indexes; for (int i = 0; i < icolumns.length - 1; i++) { action.append(icolumns[i].name()).append(", "); } action.append(icolumns[icolumns.length - 1].name()).append(')'); SysErrLogger.FAKE_LOGGER.sysout(action); try { request.query(action.toString()); } catch (final WaarpDatabaseNoConnectionException e) { SysErrLogger.FAKE_LOGGER.ignoreLog(e); return; } catch (final WaarpDatabaseSqlException e) { SysErrLogger.FAKE_LOGGER.ignoreLog(e); // XXX FIX No return } finally { request.close(); } // cptrunner /* * # Table to handle any number of sequences */ action = new StringBuilder("DROP TABLE IF EXISTS Sequences"); |
File | Project | Line |
---|---|---|
org/waarp/thrift/r66/R66Request.java | Waarp Thrift | 949 |
org/waarp/thrift/r66/R66Result.java | Waarp Thrift | 1342 |
public final boolean equals(final R66Request that) { if (that == null) { return false; } final boolean this_present_mode = isSetMode(); final boolean that_present_mode = that.isSetMode(); if (this_present_mode || that_present_mode) { if (!(this_present_mode && that_present_mode)) { return false; } if (mode != that.mode) { return false; } } final boolean this_present_fromuid = isSetFromuid(); final boolean that_present_fromuid = that.isSetFromuid(); if (this_present_fromuid || that_present_fromuid) { if (!(this_present_fromuid && that_present_fromuid)) { return false; } if (!fromuid.equals(that.fromuid)) { return false; } } final boolean this_present_destuid = isSetDestuid(); final boolean that_present_destuid = that.isSetDestuid(); if (this_present_destuid || that_present_destuid) { if (!(this_present_destuid && that_present_destuid)) { return false; } if (!destuid.equals(that.destuid)) { return false; } } final boolean this_present_file = isSetFile(); final boolean that_present_file = that.isSetFile(); if (this_present_file || that_present_file) { if (!(this_present_file && that_present_file)) { return false; } if (!file.equals(that.file)) { return false; } } final boolean this_present_rule = isSetRule(); final boolean that_present_rule = that.isSetRule(); if (this_present_rule || that_present_rule) { if (!(this_present_rule && that_present_rule)) { return false; } if (!rule.equals(that.rule)) { return false; } } final boolean this_present_info = isSetInfo(); |
File | Project | Line |
---|---|---|
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 674 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 639 |
new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_110, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_120, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_125, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_150, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_200, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_202, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_211, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_212, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_213, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_214, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_215, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_220, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_221, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_225, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_226, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_227, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_229, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_230, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_232, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_234, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_250, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_257, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), |
File | Project | Line |
---|---|---|
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 677 |
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 680 |
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 801 |
new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_120, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_125, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_150, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_200, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_202, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_211, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_212, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_213, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_214, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_215, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_220, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_221, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_225, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_226, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_227, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_229, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_230, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_232, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_234, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_250, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_257, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_331, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), |
File | Project | Line |
---|---|---|
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 683 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 636 |
new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_150, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_200, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_202, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_211, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_212, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_213, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_214, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_215, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_220, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_221, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_225, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_226, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_227, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_229, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_230, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_232, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_234, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_250, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_257, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_331, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_332, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_350 new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY) |
File | Project | Line |
---|---|---|
org/waarp/compress/zstdsafe/SequenceStore.java | Waarp Compression | 104 |
org/waarp/compress/zstdunsafe/SequenceStore.java | Waarp Compression | 106 |
putLong(literalsBuffer, output, getLong(literalBase, input)); input += SIZE_OF_LONG; output += SIZE_OF_LONG; copied += SIZE_OF_LONG; } while (copied < literalLength); literalsLength += literalLength; if (literalLength > 65535) { longLengthField = LongField.LITERAL; longLengthPosition = sequenceCount; } literalLengths[sequenceCount] = literalLength; offsets[sequenceCount] = offsetCode + 1; if (matchLengthBase > 65535) { longLengthField = LongField.MATCH; longLengthPosition = sequenceCount; } matchLengths[sequenceCount] = matchLengthBase; sequenceCount++; } public void reset() { literalsLength = 0; sequenceCount = 0; longLengthField = null; } public void generateCodes() { for (int i = 0; i < sequenceCount; ++i) { literalLengthCodes[i] = (byte) literalLengthToCode(literalLengths[i]); offsetCodes[i] = (byte) Util.highestBit(offsets[i]); matchLengthCodes[i] = (byte) matchLengthToCode(matchLengths[i]); } if (longLengthField == LongField.LITERAL) { literalLengthCodes[longLengthPosition] = Constants.MAX_LITERALS_LENGTH_SYMBOL; } if (longLengthField == LongField.MATCH) { matchLengthCodes[longLengthPosition] = Constants.MAX_MATCH_LENGTH_SYMBOL; } } private static int literalLengthToCode(final int literalLength) { if (literalLength >= 64) { return Util.highestBit(literalLength) + 19; } else { return LITERAL_LENGTH_CODE[literalLength]; } } /* * matchLengthBase = matchLength - MINMATCH * (that's how it's stored in SequenceStore) */ private static int matchLengthToCode(final int matchLengthBase) { if (matchLengthBase >= 128) { return Util.highestBit(matchLengthBase) + 36; } else { return MATCH_LENGTH_CODE[matchLengthBase]; } } } |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 388 |
org/waarp/common/utility/Base64.java | Waarp Common | 474 |
org/waarp/common/utility/Base64.java | Waarp Common | 551 |
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n' through 'z' -9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 395 |
org/waarp/common/utility/Base64.java | Waarp Common | 467 |
org/waarp/common/utility/Base64.java | Waarp Common | 544 |
-9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 218 - 230 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 231 - 243 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9 // Decimal 244 - 255 |
File | Project | Line |
---|---|---|
org/waarp/gateway/ftp/database/data/DbTransferLog.java | Waarp Gateway Ftp | 223 |
org/waarp/gateway/kernel/database/data/DbTransferLog.java | Waarp Gateway Kernel | 221 |
new DbValue(ReplyCode.REPLY_000_SPECIAL_NOSTATUS.getCode(), Columns.INFOSTATUS.name()), // infostatus.getCode() new DbValue(updatedInfo, Columns.UPDATEDINFO.name()) }; allFields = new DbValue[] { otherFields[0], otherFields[1], otherFields[2], otherFields[3], otherFields[4], otherFields[5], otherFields[6], primaryKey[0], primaryKey[1], primaryKey[2], primaryKey[3] }; } @Override protected final String getSelectAllFields() { return selectAllFields; } @Override protected final String getTable() { return table; } @Override protected final String getInsertAllValues() { return insertAllValues; } @Override protected final String getUpdateAllFields() { return updateAllFields; } @Override protected final void setToArray() throws WaarpDatabaseSqlException { // FILENAME, MODETRANS, // STARTTRANS, STOPTRANS, TRANSINFO // INFOSTATUS, UPDATEDINFO // USERID, ACCOUNTID, SPECIALID validateLength(Types.VARCHAR, filename, infotransf); validateLength(Types.NVARCHAR, mode, user, account, hostid); allFields[Columns.FILENAME.ordinal()].setValue(filename); allFields[Columns.MODETRANS.ordinal()].setValue(mode); allFields[Columns.STARTTRANS.ordinal()].setValue(start); stop = new Timestamp(System.currentTimeMillis()); allFields[Columns.STOPTRANS.ordinal()].setValue(stop); allFields[Columns.TRANSINFO.ordinal()].setValue(infotransf); allFields[Columns.INFOSTATUS.ordinal()].setValue(infostatus.getCode()); |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 388 |
org/waarp/common/utility/Base64.java | Waarp Common | 474 |
org/waarp/common/utility/Base64.java | Waarp Common | 551 |
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n' through 'z' -9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 395 |
org/waarp/common/utility/Base64.java | Waarp Common | 467 |
org/waarp/common/utility/Base64.java | Waarp Common | 544 |
-9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 218 - 230 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 231 - 243 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9 // Decimal 244 - 255 |
File | Project | Line |
---|---|---|
org/waarp/thrift/r66/R66Request.java | Waarp Thrift | 1407 |
org/waarp/thrift/r66/R66Result.java | Waarp Thrift | 1996 |
public final void read(final TProtocol iprot, final R66Request struct) throws TException { TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == TType.STOP) { break; } switch (schemeField.id) { case 1: // MODE if (schemeField.type == TType.I32) { struct.mode = RequestMode.findByValue(iprot.readI32()); struct.setModeIsSet(true); } else { TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // FROMUID if (schemeField.type == TType.STRING) { struct.fromuid = iprot.readString(); struct.setFromuidIsSet(true); } else { TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // DESTUID if (schemeField.type == TType.STRING) { struct.destuid = iprot.readString(); struct.setDestuidIsSet(true); } else { TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // FILE if (schemeField.type == TType.STRING) { struct.file = iprot.readString(); struct.setFileIsSet(true); } else { TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // RULE if (schemeField.type == TType.STRING) { struct.rule = iprot.readString(); struct.setRuleIsSet(true); } else { TProtocolUtil.skip(iprot, schemeField.type); } break; case 10: // INFO |
File | Project | Line |
---|---|---|
org/waarp/openr66/protocol/http/adminssl/HttpSslHandler.java | Waarp OpenR66 | 449 |
org/waarp/openr66/protocol/http/adminssl/HttpSslHandler.java | Waarp OpenR66 | 581 |
body0 = REQUEST.Listing.readBodyHeader(); final String parm = parms.get(0); final boolean isNotReload = !"Reload".equalsIgnoreCase(parm); if (FILTER.equalsIgnoreCase(parm) || !isNotReload) { String startid = getTrimValue(STARTID2); String stopid = getTrimValue(STOPID2); if (isNotReload && startid != null && stopid == null) { stopid = Long.MAX_VALUE + ""; } if (isNotReload && stopid != null && startid == null) { startid = (DbConstantR66.ILLEGALVALUE + 1) + ""; } String start = getValue(START2); String stop = getValue("stop"); final String rule = getTrimValue("rule"); final String req = getTrimValue("req"); final boolean pending; final boolean transfer; final boolean error; final boolean done; boolean all; pending = params.containsKey(PENDING2); transfer = params.containsKey(TRANSFER2); error = params.containsKey(ERROR2); done = params.containsKey("done"); all = params.containsKey("all"); if (pending && transfer && error && done) { all = true; } else if (!(pending || transfer || error || done)) { all = true; } final Timestamp tstart = WaarpStringUtils.fixDate(start); if (tstart != null) { start = tstart.toString(); } final Timestamp tstop = WaarpStringUtils.fixDate(stop, tstart); if (tstop != null) { stop = tstop.toString(); } |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 388 |
org/waarp/common/utility/Base64.java | Waarp Common | 476 |
org/waarp/common/utility/Base64.java | Waarp Common | 553 |
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n' through 'z' -9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 397 |
org/waarp/common/utility/Base64.java | Waarp Common | 467 |
org/waarp/common/utility/Base64.java | Waarp Common | 544 |
-9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 218 - 230 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 231 - 243 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9 // Decimal 244 - 255 |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 388 |
org/waarp/common/utility/Base64.java | Waarp Common | 476 |
org/waarp/common/utility/Base64.java | Waarp Common | 553 |
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n' through 'z' -9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 397 |
org/waarp/common/utility/Base64.java | Waarp Common | 467 |
org/waarp/common/utility/Base64.java | Waarp Common | 544 |
-9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 218 - 230 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 231 - 243 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9 // Decimal 244 - 255 |
File | Project | Line |
---|---|---|
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 674 |
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 804 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 642 |
new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_110, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_120, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_125, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_150, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_200, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_202, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_211, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_212, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_213, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_214, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_215, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_220, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_221, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_225, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_226, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_227, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_229, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_230, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_232, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_234, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_250, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), |
File | Project | Line |
---|---|---|
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 686 |
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 801 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 636 |
new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_200, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_202, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_211, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_212, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_213, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_214, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_215, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_220, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_221, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_225, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_226, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_227, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_229, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_230, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_232, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_234, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_250, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_257, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_331, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_332, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_350 new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY) |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 388 |
org/waarp/common/utility/Base64.java | Waarp Common | 476 |
org/waarp/common/utility/Base64.java | Waarp Common | 553 |
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n' through 'z' -9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 397 |
org/waarp/common/utility/Base64.java | Waarp Common | 467 |
org/waarp/common/utility/Base64.java | Waarp Common | 544 |
-9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 218 - 230 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 231 - 243 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9 // Decimal 244 - 255 |
File | Project | Line |
---|---|---|
org/waarp/gateway/ftp/database/data/DbTransferLog.java | Waarp Gateway Ftp | 120 |
org/waarp/gateway/kernel/database/data/DbTransferLog.java | Waarp Gateway Kernel | 118 |
private int updatedInfo = UpdatedInfo.UNKNOWN.ordinal(); /** * Special For DbTransferLog */ public static final int NBPRKEY = 4; // ALL TABLE SHOULD IMPLEMENT THIS protected static final String selectAllFields = Columns.FILENAME.name() + ',' + Columns.MODETRANS.name() + ',' + Columns.STARTTRANS.name() + ',' + Columns.STOPTRANS.name() + ',' + Columns.TRANSINFO.name() + ',' + Columns.INFOSTATUS.name() + ',' + Columns.UPDATEDINFO.name() + ',' + Columns.USERID.name() + ',' + Columns.ACCOUNTID.name() + ',' + Columns.HOSTID.name() + ',' + Columns.SPECIALID.name(); protected static final String updateAllFields = Columns.FILENAME.name() + "=?," + Columns.MODETRANS.name() + "=?," + Columns.STARTTRANS.name() + "=?," + Columns.STOPTRANS.name() + "=?," + Columns.TRANSINFO.name() + "=?," + Columns.INFOSTATUS.name() + "=?," + Columns.UPDATEDINFO.name() + "=?"; protected static final String insertAllValues = " (?,?,?,?,?,?,?,?,?,?,?) "; private static final Set<Long> clientNoDbSpecialId = new HashSet<Long>(); /** * Insert into database * * @param dbSession * @param user * @param account * @param specialId * @param isSender * @param filename * @param mode * @param infostatus * @param info * @param updatedInfo * * @throws WaarpDatabaseException */ public DbTransferLog(final DbSession dbSession, final String user, final String account, final long specialId, final boolean isSender, final String filename, final String mode, final ReplyCode infostatus, |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 388 |
org/waarp/common/utility/Base64.java | Waarp Common | 476 |
org/waarp/common/utility/Base64.java | Waarp Common | 553 |
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n' through 'z' -9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 397 |
org/waarp/common/utility/Base64.java | Waarp Common | 467 |
org/waarp/common/utility/Base64.java | Waarp Common | 544 |
-9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 218 - 230 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 231 - 243 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9 // Decimal 244 - 255 |
File | Project | Line |
---|---|---|
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 249 |
org/waarp/openr66/protocol/snmp/R66PrivateMib.java | Waarp OpenR66 | 82 |
"Waarp Gateway Ftp: FTP Gateway"); rowInfo.setValue(WaarpDefinitionIndex.applURL.ordinal(), "http://waarp.github.com/Waarp"); rowInfo.setValue(WaarpDefinitionIndex.applApplicationProtocol.ordinal(), applicationProtocol); rowInfo.registerMOs(agent.getServer(), null); // register General info rowGlobal = new WaarpMORow(this, rootOIDWaarpGlobal, WaarpGlobalValues, MibLevel.globalInfo.ordinal()); WaarpMOScalar memoryScalar = rowGlobal.getRow()[WaarpGlobalValuesIndex.memoryTotal.ordinal()]; memoryScalar.setValue(new MemoryGauge32(MemoryType.TotalMemory)); memoryScalar = rowGlobal.getRow()[WaarpGlobalValuesIndex.memoryFree.ordinal()]; memoryScalar.setValue(new MemoryGauge32(MemoryType.FreeMemory)); memoryScalar = rowGlobal.getRow()[WaarpGlobalValuesIndex.memoryUsed.ordinal()]; memoryScalar.setValue(new MemoryGauge32(MemoryType.UsedMemory)); rowGlobal.registerMOs(agent.getServer(), null); // setup UpTime to SysUpTime and change status scalarUptime = rowGlobal.getRow()[WaarpGlobalValuesIndex.applUptime.ordinal()]; scalarUptime.setValue(new WaarpUptime(upTime)); changeStatus(OperStatus.restarting); changeStatus(OperStatus.up); // register Detailed info rowDetailed = new WaarpMORow(this, rootOIDWaarpDetailed, WaarpDetailedValues, MibLevel.detailedInfo.ordinal()); rowDetailed.registerMOs(agent.getServer(), null); // register Error info rowError = new WaarpMORow(this, rootOIDWaarpError, WaarpErrorValues, MibLevel.errorInfo.ordinal()); rowError.registerMOs(agent.getServer(), null); } |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 388 |
org/waarp/common/utility/Base64.java | Waarp Common | 476 |
org/waarp/common/utility/Base64.java | Waarp Common | 553 |
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n' through 'z' -9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 397 |
org/waarp/common/utility/Base64.java | Waarp Common | 467 |
org/waarp/common/utility/Base64.java | Waarp Common | 544 |
-9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 218 - 230 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 231 - 243 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9 // Decimal 244 - 255 |
File | Project | Line |
---|---|---|
org/waarp/thrift/r66/R66Service.java | Waarp Thrift | 1066 |
org/waarp/thrift/r66/R66Service.java | Waarp Thrift | 3746 |
return (transferRequestQuery_result) super.clone(); } /** * The set of fields this struct contains, along with convenience * methods * for finding and manipulating them. */ public enum _Fields implements TFieldIdEnum { SUCCESS((short) 0, SUCCESS3); private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); static { for (final _Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not * found. */ public static _Fields findByThriftId(final int fieldId) { if (fieldId == 0) { // SUCCESS return SUCCESS; } return null; } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(final int fieldId) { final _Fields fields = findByThriftId(fieldId); if (fields == null) { throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); } return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(final String name) { return byName.get(name); } private final short thriftId; private final String fieldName; _Fields(final short thriftId, final String fieldName) { this.thriftId = thriftId; this.fieldName = fieldName; } @Override public final short getThriftFieldId() { return thriftId; } @Override public final String getFieldName() { return fieldName; } } // isset id assignments public static final Map<_Fields, FieldMetaData> metaDataMap; static { final Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new FieldMetaData(SUCCESS3, TFieldRequirementType.DEFAULT, |
File | Project | Line |
---|---|---|
org/waarp/thrift/r66/R66Service.java | Waarp Thrift | 1901 |
org/waarp/thrift/r66/R66Service.java | Waarp Thrift | 3754 |
public enum _Fields implements TFieldIdEnum { SUCCESS((short) 0, SUCCESS3); private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); static { for (final _Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not * found. */ public static _Fields findByThriftId(final int fieldId) { if (fieldId == 0) { // SUCCESS return SUCCESS; } return null; } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(final int fieldId) { final _Fields fields = findByThriftId(fieldId); if (fields == null) { throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); } return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(final String name) { return byName.get(name); } private final short thriftId; private final String fieldName; _Fields(final short thriftId, final String fieldName) { this.thriftId = thriftId; this.fieldName = fieldName; } @Override public final short getThriftFieldId() { return thriftId; } @Override public final String getFieldName() { return fieldName; } } // isset id assignments public static final Map<_Fields, FieldMetaData> metaDataMap; static { final Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, new StructMetaData(TType.STRUCT, |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 388 |
org/waarp/common/utility/Base64.java | Waarp Common | 476 |
org/waarp/common/utility/Base64.java | Waarp Common | 553 |
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n' through 'z' -9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 397 |
org/waarp/common/utility/Base64.java | Waarp Common | 467 |
org/waarp/common/utility/Base64.java | Waarp Common | 544 |
-9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 218 - 230 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 231 - 243 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9 // Decimal 244 - 255 |
File | Project | Line |
---|---|---|
org/waarp/compress/zstdsafe/DoubleFastBlockCompressor.java | Waarp Compression | 277 |
org/waarp/compress/zstdunsafe/DoubleFastBlockCompressor.java | Waarp Compression | 294 |
return hash4(getInt(inputBase, inputAddress), bits); } } private static final int PRIME_4_BYTES = 0x9E3779B1; private static final long PRIME_5_BYTES = 0xCF1BBCDCBBL; private static final long PRIME_6_BYTES = 0xCF1BBCDCBF9BL; private static final long PRIME_7_BYTES = 0xCF1BBCDCBFA563L; private static final long PRIME_8_BYTES = 0xCF1BBCDCB7A56463L; private static int hash4(final int value, final int bits) { return (value * PRIME_4_BYTES) >>> (Integer.SIZE - bits); } private static int hash5(final long value, final int bits) { return (int) (((value << (Long.SIZE - 40)) * PRIME_5_BYTES) >>> (Long.SIZE - bits)); } private static int hash6(final long value, final int bits) { return (int) (((value << (Long.SIZE - 48)) * PRIME_6_BYTES) >>> (Long.SIZE - bits)); } private static int hash7(final long value, final int bits) { return (int) (((value << (Long.SIZE - 56)) * PRIME_7_BYTES) >>> (Long.SIZE - bits)); } private static int hash8(final long value, final int bits) { return (int) ((value * PRIME_8_BYTES) >>> (Long.SIZE - bits)); } } |
File | Project | Line |
---|---|---|
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 674 |
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 807 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 645 |
new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_110, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_120, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_125, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_150, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_200, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_202, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_211, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_212, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_213, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_214, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_215, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_220, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_221, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_225, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_226, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_227, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_229, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_230, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_232, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_234, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), |
File | Project | Line |
---|---|---|
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 689 |
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 801 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 636 |
new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_202, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_211, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_212, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_213, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_214, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_215, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_220, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_221, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_225, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_226, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_227, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_229, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_230, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_232, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_234, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_250, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_257, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_331, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_332, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_350 new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY) |
File | Project | Line |
---|---|---|
org/waarp/openr66/context/R66Session.java | Waarp OpenR66 | 619 |
org/waarp/openr66/context/R66Session.java | Waarp OpenR66 | 731 |
if (runner.getRank() > 0) { // Filename should be get back from runner load from database try { file = (R66File) dir.setFile(runner.getFilename(), true); if (runner.isRecvThrough()) { // no test on file since it does not really exist logger.debug(FILE_IS_IN_THROUGH_MODE, file); } else if (!file.canWrite()) { throw new OpenR66RunnerErrorException(FILE_CANNOT_BE_WRITE); } } catch (final CommandAbstractException e) { throw new OpenR66RunnerErrorException(e); } } else { // New FILENAME if necessary and store it if (createFile) { file = null; String newfilename = runner.getOriginalFilename(); if (newfilename.charAt(1) == ':') { // Windows path newfilename = newfilename.substring(2); } newfilename = R66File.getBasename(newfilename); try { file = dir.setUniqueFile(runner.getSpecialId(), newfilename); runner.setFilename(file.getBasename()); } catch (final CommandAbstractException e) { runner.deleteTempFile(); throw e; } try { if (runner.isRecvThrough()) { // no test on file since it does not really exist logger.debug(FILE_IS_IN_THROUGH_MODE, file); runner.deleteTempFile(); } else if (!file.canWrite()) { runner.deleteTempFile(); throw new OpenR66RunnerErrorException(FILE_CANNOT_BE_WRITE); } } catch (final CommandAbstractException e) { runner.deleteTempFile(); throw new OpenR66RunnerErrorException(e); } } else { throw new OpenR66RunnerErrorException("No file created"); } } |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 388 |
org/waarp/common/utility/Base64.java | Waarp Common | 476 |
org/waarp/common/utility/Base64.java | Waarp Common | 553 |
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n' through 'z' -9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 397 |
org/waarp/common/utility/Base64.java | Waarp Common | 467 |
org/waarp/common/utility/Base64.java | Waarp Common | 544 |
-9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 218 - 230 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 231 - 243 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9 // Decimal 244 - 255 |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 388 |
org/waarp/common/utility/Base64.java | Waarp Common | 476 |
org/waarp/common/utility/Base64.java | Waarp Common | 553 |
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n' through 'z' -9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 397 |
org/waarp/common/utility/Base64.java | Waarp Common | 467 |
org/waarp/common/utility/Base64.java | Waarp Common | 544 |
-9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 218 - 230 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 231 - 243 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9 // Decimal 244 - 255 |
File | Project | Line |
---|---|---|
org/waarp/thrift/r66/R66Service.java | Waarp Thrift | 1074 |
org/waarp/thrift/r66/R66Service.java | Waarp Thrift | 1901 |
public enum _Fields implements TFieldIdEnum { SUCCESS((short) 0, SUCCESS3); private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); static { for (final _Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not * found. */ public static _Fields findByThriftId(final int fieldId) { if (fieldId == 0) { // SUCCESS return SUCCESS; } return null; } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(final int fieldId) { final _Fields fields = findByThriftId(fieldId); if (fields == null) { throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); } return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(final String name) { return byName.get(name); } private final short thriftId; private final String fieldName; _Fields(final short thriftId, final String fieldName) { this.thriftId = thriftId; this.fieldName = fieldName; } @Override public final short getThriftFieldId() { return thriftId; } @Override public final String getFieldName() { return fieldName; } } // isset id assignments public static final Map<_Fields, FieldMetaData> metaDataMap; static { final Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new FieldMetaData(SUCCESS3, TFieldRequirementType.DEFAULT, |
File | Project | Line |
---|---|---|
org/waarp/snmp/WaarpMOFactory.java | Waarp Snmp | 114 |
org/waarp/snmp/WaarpMOFactory.java | Waarp Snmp | 169 |
if (value != null) { switch (type) { case SMIConstants.SYNTAX_INTEGER: // case SMIConstants.SYNTAX_INTEGER32: ((Integer32) var).setValue((Integer) value); break; case SMIConstants.SYNTAX_OCTET_STRING: // case SMIConstants.SYNTAX_BITS: ((OctetString) var).setValue(value.toString()); break; case SMIConstants.SYNTAX_NULL: break; case SMIConstants.SYNTAX_OBJECT_IDENTIFIER: ((OID) var).setValue(value.toString()); break; case SMIConstants.SYNTAX_IPADDRESS: ((IpAddress) var).setValue(value.toString()); break; case SMIConstants.SYNTAX_COUNTER32: ((Counter32) var).setValue((Long) value); break; case SMIConstants.SYNTAX_GAUGE32: // case SMIConstants.SYNTAX_UNSIGNED_INTEGER32: ((Gauge32) var).setValue((Long) value); break; case SMIConstants.SYNTAX_TIMETICKS: if (value instanceof TimeTicks) { ((TimeTicks) var).setValue(value.toString()); } else { ((TimeTicks) var).setValue((Long) value); } break; case SMIConstants.SYNTAX_OPAQUE: ((Opaque) var).setValue((byte[]) value); break; case SMIConstants.SYNTAX_COUNTER64: ((Counter64) var).setValue((Long) value); break; default: throw new IllegalArgumentException( "Unmanaged Type: " + value.getClass()); } } |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 388 |
org/waarp/common/utility/Base64.java | Waarp Common | 476 |
org/waarp/common/utility/Base64.java | Waarp Common | 553 |
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n' through 'z' -9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 397 |
org/waarp/common/utility/Base64.java | Waarp Common | 467 |
org/waarp/common/utility/Base64.java | Waarp Common | 544 |
-9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 218 - 230 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 231 - 243 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9 // Decimal 244 - 255 |
File | Project | Line |
---|---|---|
org/waarp/openr66/database/model/DbModelH2R66.java | Waarp OpenR66 | 121 |
org/waarp/openr66/database/model/DbModelPostgresqlR66.java | Waarp OpenR66 | 139 |
final String primaryKey = " PRIMARY KEY "; final String notNull = " NOT NULL "; // HostConfiguration final StringBuilder action = new StringBuilder(createTableH2 + DbHostConfiguration.table + '('); final DbHostConfiguration.Columns[] chcolumns = DbHostConfiguration.Columns.values(); for (int i = 0; i < chcolumns.length - 1; i++) { action.append(chcolumns[i].name()) .append(DBType.getType(DbHostConfiguration.dbTypes[i])) .append(notNull).append(", "); } action.append(chcolumns[chcolumns.length - 1].name()).append( DBType.getType(DbHostConfiguration.dbTypes[chcolumns.length - 1])) .append(primaryKey).append(')'); SysErrLogger.FAKE_LOGGER.sysout(action); final DbRequest request = new DbRequest(session); try { request.query(action.toString()); } catch (final WaarpDatabaseSqlException e) { SysErrLogger.FAKE_LOGGER.ignoreLog(e); return false; } finally { request.close(); } } if (PartnerConfiguration.isVersion2GEQVersion1(version, R66Versions.V2_4_17.getVersion())) { SysErrLogger.FAKE_LOGGER.sysout( version + " to " + R66Versions.V2_4_17.getVersion() + "? " + true); final String command = |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 388 |
org/waarp/common/utility/Base64.java | Waarp Common | 476 |
org/waarp/common/utility/Base64.java | Waarp Common | 553 |
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n' through 'z' -9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 397 |
org/waarp/common/utility/Base64.java | Waarp Common | 467 |
org/waarp/common/utility/Base64.java | Waarp Common | 544 |
-9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 218 - 230 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 231 - 243 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9 // Decimal 244 - 255 |
File | Project | Line |
---|---|---|
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 674 |
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 810 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 648 |
new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_110, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_120, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_125, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_150, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_200, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_202, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_211, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_212, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_213, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_214, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_215, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_220, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_221, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_225, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_226, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_227, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_229, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_230, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_232, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), |
File | Project | Line |
---|---|---|
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 692 |
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 801 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 636 |
new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_211, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_212, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_213, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_214, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_215, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_220, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_221, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_225, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_226, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_227, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_229, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_230, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_232, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_234, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_250, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_257, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_331, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_332, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_350 new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY) |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 388 |
org/waarp/common/utility/Base64.java | Waarp Common | 476 |
org/waarp/common/utility/Base64.java | Waarp Common | 553 |
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n' through 'z' -9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 397 |
org/waarp/common/utility/Base64.java | Waarp Common | 467 |
org/waarp/common/utility/Base64.java | Waarp Common | 544 |
-9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 218 - 230 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 231 - 243 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9 // Decimal 244 - 255 |
File | Project | Line |
---|---|---|
org/waarp/openr66/protocol/configuration/PartnerConfiguration.java | Waarp OpenR66 | 345 |
org/waarp/openr66/protocol/configuration/PartnerConfiguration.java | Waarp OpenR66 | 397 |
public static boolean isVersion2GEQVersion1(final String version1, final String version2) { if (version1 == null || version2 == null) { return false; } try { final int major1; final int rank1; final int subversion1; String[] vals = version1.split("\\."); major1 = Integer.parseInt(vals[0]); rank1 = Integer.parseInt(vals[1]); final int pos = vals[2].indexOf('-'); if (pos > 0) { subversion1 = Integer.parseInt(vals[2].substring(0, pos)); } else { subversion1 = Integer.parseInt(vals[2]); } final int major2; final int rank2; final int subversion2; vals = version2.split("\\."); major2 = Integer.parseInt(vals[0]); rank2 = Integer.parseInt(vals[1]); final int pos2 = vals[2].indexOf('-'); if (pos2 > 0) { subversion2 = Integer.parseInt(vals[2].substring(0, pos2)); } else { subversion2 = Integer.parseInt(vals[2]); } final boolean b = major1 < major2 || (major1 == major2 && (rank1 < rank2 || (rank1 == rank2 && subversion1 <= |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 388 |
org/waarp/common/utility/Base64.java | Waarp Common | 476 |
org/waarp/common/utility/Base64.java | Waarp Common | 553 |
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n' through 'z' -9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 397 |
org/waarp/common/utility/Base64.java | Waarp Common | 467 |
org/waarp/common/utility/Base64.java | Waarp Common | 544 |
-9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 218 - 230 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 231 - 243 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9 // Decimal 244 - 255 |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 388 |
org/waarp/common/utility/Base64.java | Waarp Common | 476 |
org/waarp/common/utility/Base64.java | Waarp Common | 553 |
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n' through 'z' -9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 397 |
org/waarp/common/utility/Base64.java | Waarp Common | 467 |
org/waarp/common/utility/Base64.java | Waarp Common | 544 |
-9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 218 - 230 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 231 - 243 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9 // Decimal 244 - 255 |
File | Project | Line |
---|---|---|
org/waarp/gateway/ftp/database/data/DbTransferLog.java | Waarp Gateway Ftp | 288 |
org/waarp/gateway/kernel/database/data/DbTransferLog.java | Waarp Gateway Kernel | 282 |
infotransf = (String) allFields[Columns.TRANSINFO.ordinal()].getValue(); updatedInfo = (Integer) allFields[Columns.UPDATEDINFO.ordinal()].getValue(); user = (String) allFields[Columns.USERID.ordinal()].getValue(); account = (String) allFields[Columns.ACCOUNTID.ordinal()].getValue(); hostid = (String) allFields[Columns.HOSTID.ordinal()].getValue(); specialId = (Long) allFields[Columns.SPECIALID.ordinal()].getValue(); } /** * @return The Where condition on Primary Key */ @Override protected final String getWherePrimaryKey() { return primaryKey[0].getColumn() + " = ? AND " + primaryKey[1].getColumn() + " = ? AND " + primaryKey[2].getColumn() + " = ? AND " + primaryKey[3].getColumn() + " = ? "; } /** * Set the primary Key as current value */ @Override protected final void setPrimaryKey() { primaryKey[0].setValue(user); primaryKey[1].setValue(account); primaryKey[2].setValue(hostid); primaryKey[3].setValue(specialId); } /** * @return the condition to limit access to the row concerned by the Host */ private static String getLimitWhereCondition() { return " " + Columns.HOSTID + " = '" + |
File | Project | Line |
---|---|---|
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 253 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 283 |
applicationProtocol); rowInfo.registerMOs(agent.getServer(), null); // register General info rowGlobal = new WaarpMORow(this, rootOIDWaarpGlobal, WaarpGlobalValues, MibLevel.globalInfo.ordinal()); WaarpMOScalar memoryScalar = rowGlobal.getRow()[WaarpGlobalValuesIndex.memoryTotal.ordinal()]; memoryScalar.setValue(new MemoryGauge32(MemoryType.TotalMemory)); memoryScalar = rowGlobal.getRow()[WaarpGlobalValuesIndex.memoryFree.ordinal()]; memoryScalar.setValue(new MemoryGauge32(MemoryType.FreeMemory)); memoryScalar = rowGlobal.getRow()[WaarpGlobalValuesIndex.memoryUsed.ordinal()]; memoryScalar.setValue(new MemoryGauge32(MemoryType.UsedMemory)); rowGlobal.registerMOs(agent.getServer(), null); // setup UpTime to SysUpTime and change status scalarUptime = rowGlobal.getRow()[WaarpGlobalValuesIndex.applUptime.ordinal()]; scalarUptime.setValue(new WaarpUptime(upTime)); changeStatus(OperStatus.restarting); changeStatus(OperStatus.up); // register Detailed info rowDetailed = new WaarpMORow(this, rootOIDWaarpDetailed, WaarpDetailedValues, MibLevel.detailedInfo.ordinal()); rowDetailed.registerMOs(agent.getServer(), null); // register Error info rowError = new WaarpMORow(this, rootOIDWaarpError, WaarpErrorValues, MibLevel.errorInfo.ordinal()); rowError.registerMOs(agent.getServer(), null); } /** * Unregister this MIB */ protected final void agentUnregisterMibs() { |
File | Project | Line |
---|---|---|
org/waarp/common/database/data/AbstractDbData.java | Waarp Common | 327 |
org/waarp/openr66/database/data/AbstractDbDataDao.java | Waarp OpenR66 | 70 |
public static void validateLength(final byte[]... values) throws WaarpDatabaseSqlException { for (final byte[] value : values) { if (value != null && value.length > DbModelAbstract.MAX_BINARY * 2) { throw new WaarpDatabaseSqlException( "BINARY value exceed max size: " + value.length + " (" + DbModelAbstract.MAX_BINARY + ")"); } } } /** * Validate String max length * * @param type between Types.VARCHAR, NVARCHAR, LONGVARCHAR * @param values the values to check against same type * * @throws WaarpDatabaseSqlException if length is not acceptable */ public static void validateLength(final int type, final String... values) throws WaarpDatabaseSqlException { for (final String value : values) { if (value == null) { continue; } switch (type) { case Types.VARCHAR: if (value.length() > DbModelAbstract.MAX_VARCHAR) { throw new WaarpDatabaseSqlException( "VARCHAR value exceed max size: " + value.length() + " (" + DbModelAbstract.MAX_VARCHAR + ")"); } break; case Types.NVARCHAR: if (value.length() > DbModelAbstract.MAX_KEY_VARCHAR) { throw new WaarpDatabaseSqlException( "VARCHAR as KEY value exceed max size: " + value.length() + " (" + DbModelAbstract.MAX_KEY_VARCHAR + ")"); } break; case Types.LONGVARCHAR: if (value.length() > DbModelAbstract.MAX_LONGVARCHAR) { throw new WaarpDatabaseSqlException( "LONGVARCHAR value exceed max size: " + value.length() + " (" + DbModelAbstract.MAX_LONGVARCHAR + ")"); } break; default: break; } } } |
File | Project | Line |
---|---|---|
org/waarp/openr66/protocol/snmp/R66PrivateMib.java | Waarp OpenR66 | 86 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 283 |
applicationProtocol); rowInfo.registerMOs(agent.getServer(), null); // register General info rowGlobal = new WaarpMORow(this, rootOIDWaarpGlobal, WaarpGlobalValues, MibLevel.globalInfo.ordinal()); WaarpMOScalar memoryScalar = rowGlobal.getRow()[WaarpGlobalValuesIndex.memoryTotal.ordinal()]; memoryScalar.setValue(new MemoryGauge32(MemoryType.TotalMemory)); memoryScalar = rowGlobal.getRow()[WaarpGlobalValuesIndex.memoryFree.ordinal()]; memoryScalar.setValue(new MemoryGauge32(MemoryType.FreeMemory)); memoryScalar = rowGlobal.getRow()[WaarpGlobalValuesIndex.memoryUsed.ordinal()]; memoryScalar.setValue(new MemoryGauge32(MemoryType.UsedMemory)); rowGlobal.registerMOs(agent.getServer(), null); // setup UpTime to SysUpTime and change status scalarUptime = rowGlobal.getRow()[WaarpGlobalValuesIndex.applUptime.ordinal()]; scalarUptime.setValue(new WaarpUptime(upTime)); changeStatus(OperStatus.restarting); changeStatus(OperStatus.up); // register Detailed info rowDetailed = new WaarpMORow(this, rootOIDWaarpDetailed, WaarpDetailedValues, MibLevel.detailedInfo.ordinal()); rowDetailed.registerMOs(agent.getServer(), null); // register Error info rowError = new WaarpMORow(this, rootOIDWaarpError, WaarpErrorValues, MibLevel.errorInfo.ordinal()); rowError.registerMOs(agent.getServer(), null); } |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 388 |
org/waarp/common/utility/Base64.java | Waarp Common | 478 |
org/waarp/common/utility/Base64.java | Waarp Common | 555 |
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n' through 'z' -9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 399 |
org/waarp/common/utility/Base64.java | Waarp Common | 467 |
org/waarp/common/utility/Base64.java | Waarp Common | 544 |
-9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 218 - 230 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 231 - 243 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9 // Decimal 244 - 255 |
File | Project | Line |
---|---|---|
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 674 |
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 813 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 651 |
new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_110, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_120, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_125, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_150, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_200, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_202, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_211, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_212, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_213, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_214, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_215, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_220, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_221, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_225, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_226, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_227, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_229, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_230, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), |
File | Project | Line |
---|---|---|
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 695 |
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 801 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 636 |
new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_212, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_213, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_214, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_215, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_220, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_221, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_225, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_226, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_227, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_229, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_230, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_232, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_234, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_250, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_257, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_331, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_332, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_350 new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY) |
File | Project | Line |
---|---|---|
org/waarp/compress/zstdsafe/ZstdSafeCodec.java | Waarp Compression | 106 |
org/waarp/compress/zstdunsafe/ZstdUnsafeCodec.java | Waarp Compression | 107 |
ZstdFrameDecompressor.getDecompressedSize(input, 0, length); final byte[] decompressed = new byte[finalLen]; decompress(input, input.length, decompressed, finalLen); return decompressed; } catch (final Exception e) { throw new MalformedInputException(e); } } @Override public final long compress(final File input, final File output) throws MalformedInputException { InputStream inputStream = null; OutputStream outputStream = null; try { final byte[] buffer; inputStream = new FileInputStream(input); buffer = ByteStreams.toByteArray(inputStream); outputStream = new FileOutputStream(output); final byte[] bufferCompression = new byte[maxCompressedLength(buffer.length)]; final int length = compress(buffer, buffer.length, bufferCompression, bufferCompression.length); outputStream.write(bufferCompression, 0, length); outputStream.flush(); FileUtils.close(outputStream); outputStream = null; return output.length(); } catch (final Exception e) { throw new MalformedInputException(e); } finally { FileUtils.close(inputStream); FileUtils.close(outputStream); } } @Override public final int decompress(final byte[] input, final int inputLength, final byte[] output, final int maxOutputLength) throws MalformedInputException { try { |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 388 |
org/waarp/common/utility/Base64.java | Waarp Common | 478 |
org/waarp/common/utility/Base64.java | Waarp Common | 555 |
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n' through 'z' -9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 399 |
org/waarp/common/utility/Base64.java | Waarp Common | 467 |
org/waarp/common/utility/Base64.java | Waarp Common | 544 |
-9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 218 - 230 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 231 - 243 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9 // Decimal 244 - 255 |
File | Project | Line |
---|---|---|
org/waarp/gateway/ftp/database/data/DbTransferLog.java | Waarp Gateway Ftp | 716 |
org/waarp/gateway/kernel/database/data/DbTransferLog.java | Waarp Gateway Kernel | 727 |
pstt.getPreparedStatement().setInt(2, error.getCode()); pstt.executeQuery(); if (pstt.getNext()) { result = pstt.getResultSet().getLong(1); } } catch (final WaarpDatabaseNoConnectionException ignored) { // nothing } catch (final WaarpDatabaseSqlException ignored) { // nothing } catch (final SQLException ignored) { // nothing } finally { pstt.close(); } return result; } /** * @param pstt * * @return the number of elements (COUNT) from the statement */ public static long getResultCountPrepareStatement( final DbPreparedStatement pstt) { long result = 0; try { pstt.executeQuery(); if (pstt.getNext()) { result = pstt.getResultSet().getLong(1); } } catch (final WaarpDatabaseNoConnectionException ignored) { // nothing } catch (final WaarpDatabaseSqlException ignored) { // nothing } catch (final SQLException ignored) { // nothing } finally { pstt.close(); } return result; } /** * Set the current time in the given updatedPreparedStatement * * @param pstt * * @throws WaarpDatabaseNoConnectionException * @throws WaarpDatabaseSqlException */ public static void finishSelectOrCountPrepareStatement( final DbPreparedStatement pstt) throws WaarpDatabaseNoConnectionException, WaarpDatabaseSqlException { finishSelectOrCountPrepareStatement(pstt, System.currentTimeMillis()); } /** * Set the current time in the given updatedPreparedStatement * * @param pstt * * @throws WaarpDatabaseNoConnectionException * @throws WaarpDatabaseSqlException */ public static void finishSelectOrCountPrepareStatement( final DbPreparedStatement pstt, final long time) throws WaarpDatabaseNoConnectionException, WaarpDatabaseSqlException { final Timestamp startlimit = new Timestamp(time); try { pstt.getPreparedStatement().setTimestamp(1, startlimit); } catch (final SQLException e) { logger.error("Database SQL Error: Cannot set timestamp {}", |
File | Project | Line |
---|---|---|
org/waarp/openr66/proxy/protocol/http/adminssl/HttpSslHandlerProxyR66.java | Waarp Proxy in R66 protocol | 388 |
org/waarp/openr66/protocol/http/adminssl/HttpSslHandler.java | Waarp OpenR66 | 2190 |
getParamsProxy(); if (params == null) { String logon = logon(); logon = logon.replaceAll(REPLACEMENT.XXXERRORMESGXXX.toString(), Messages.getString( "HttpSslHandler.EmptyLogin")); responseContent.append(logon); clearSession(); writeResponse(ctx); return; } } boolean getMenu = false; if (params != null && params.containsKey("Logon")) { String name = null; String password = null; List<String> values; if (!params.isEmpty()) { // get values if (params.containsKey("name")) { values = params.get("name"); if (values != null) { name = values.get(0); if (ParametersChecker.isEmpty(name)) { getMenu = true; } } } else { getMenu = true; } // search the nb param if (!getMenu && params.containsKey("passwd")) { values = params.get("passwd"); if (values != null) { password = values.get(0); getMenu = ParametersChecker.isEmpty(password); } else { getMenu = true; } } else { getMenu = true; } } else { getMenu = true; } if (!getMenu && name != null) { |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 388 |
org/waarp/common/utility/Base64.java | Waarp Common | 478 |
org/waarp/common/utility/Base64.java | Waarp Common | 555 |
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n' through 'z' -9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 399 |
org/waarp/common/utility/Base64.java | Waarp Common | 467 |
org/waarp/common/utility/Base64.java | Waarp Common | 544 |
-9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 218 - 230 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 231 - 243 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9 // Decimal 244 - 255 |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 388 |
org/waarp/common/utility/Base64.java | Waarp Common | 478 |
org/waarp/common/utility/Base64.java | Waarp Common | 555 |
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n' through 'z' -9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 399 |
org/waarp/common/utility/Base64.java | Waarp Common | 467 |
org/waarp/common/utility/Base64.java | Waarp Common | 544 |
-9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 218 - 230 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 231 - 243 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9 // Decimal 244 - 255 |
File | Project | Line |
---|---|---|
org/waarp/ftp/simpleimpl/file/FileBasedAuth.java | Waarp Ftp SimpleServer | 128 |
org/waarp/gateway/ftp/file/FileBasedAuth.java | Waarp Gateway Ftp | 129 |
return new NextCommandReply(FtpCommandCode.ACCT, ReplyCode.REPLY_332_NEED_ACCOUNT_FOR_LOGIN, null); } throw new Reply530Exception("Password is not valid"); } /** * Set the account according to any implementation and could set the * rootFromAuth. If NOOP is returned, * isIdentifed must be TRUE. * * @param account * * @return (NOOP, 230) if the Account is OK, else return the following * command * that must follow and the * associated reply * * @throws Reply421Exception if there is a problem during the * authentication * @throws Reply530Exception if there is a problem during the * authentication */ @Override protected final NextCommandReply setBusinessAccount(final String account) throws Reply530Exception { if (currentAuth == null) { throw new Reply530Exception("ACCT needs a USER first"); } if (currentAuth.isAccountValid(account)) { // logger.debug("Account: {}", account) setIsIdentified(true); logger.info("User {} is authentified with account {}", user, account); return new NextCommandReply(FtpCommandCode.NOOP, ReplyCode.REPLY_230_USER_LOGGED_IN, null); } throw new Reply530Exception("Account is not valid"); } @Override public final boolean isBusinessPathValid(final String newPath) { if (newPath == null) { return false; } return newPath.startsWith(getBusinessPath()); } @Override protected final String setBusinessRootFromAuth() throws Reply421Exception { final String path; if (account == null) { path = DirInterface.SEPARATOR + user; } else { path = DirInterface.SEPARATOR + user + DirInterface.SEPARATOR + account; } final String fullpath = getAbsolutePath(path); final File file = new File(fullpath); if (!file.isDirectory()) { throw new Reply421Exception("Filesystem not ready"); } return path; } @Override public final boolean isAdmin() { |
File | Project | Line |
---|---|---|
org/waarp/common/database/model/DbModelOracle.java | Waarp Common | 223 |
org/waarp/common/database/model/DbModelPostgresql.java | Waarp Common | 118 |
VARBINARY(Types.VARBINARY, " RAW(" + (MAX_BINARY * 2) + ") "), DATE(Types.DATE, " DATE "), TIMESTAMP(Types.TIMESTAMP, " TIMESTAMP(3) "); public final int type; public final String constructor; DBType(final int type, final String constructor) { this.type = type; this.constructor = constructor; } public static String getType(final int sqltype) { switch (sqltype) { case Types.CHAR: return CHAR.constructor; case Types.VARCHAR: return VARCHAR.constructor; case Types.NVARCHAR: return NVARCHAR.constructor; case Types.LONGVARCHAR: return LONGVARCHAR.constructor; case Types.BIT: return BIT.constructor; case Types.TINYINT: return TINYINT.constructor; case Types.SMALLINT: return SMALLINT.constructor; case Types.INTEGER: return INTEGER.constructor; case Types.BIGINT: return BIGINT.constructor; case Types.REAL: return REAL.constructor; case Types.DOUBLE: return DOUBLE.constructor; case Types.VARBINARY: return VARBINARY.constructor; case Types.DATE: return DATE.constructor; case Types.TIMESTAMP: return TIMESTAMP.constructor; default: return null; } } } @Override public void resetSequence(final DbSession session, final long newvalue) throws WaarpDatabaseNoConnectionException { final String action = "DROP SEQUENCE " + DbDataModel.fieldseq; |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 388 |
org/waarp/common/utility/Base64.java | Waarp Common | 478 |
org/waarp/common/utility/Base64.java | Waarp Common | 555 |
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n' through 'z' -9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 399 |
org/waarp/common/utility/Base64.java | Waarp Common | 467 |
org/waarp/common/utility/Base64.java | Waarp Common | 544 |
-9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 218 - 230 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 231 - 243 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9 // Decimal 244 - 255 |
File | Project | Line |
---|---|---|
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 674 |
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 816 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 654 |
new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_110, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_120, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_125, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_150, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_200, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_202, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_211, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_212, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_213, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_214, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_215, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_220, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_221, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_225, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_226, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_227, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_229, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), |
File | Project | Line |
---|---|---|
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 698 |
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 801 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 636 |
new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_213, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_214, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_215, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_220, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_221, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_225, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_226, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_227, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_229, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_230, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_232, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_234, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_250, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_257, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_331, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_332, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_350 new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY) |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 388 |
org/waarp/common/utility/Base64.java | Waarp Common | 478 |
org/waarp/common/utility/Base64.java | Waarp Common | 555 |
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n' through 'z' -9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 399 |
org/waarp/common/utility/Base64.java | Waarp Common | 467 |
org/waarp/common/utility/Base64.java | Waarp Common | 544 |
-9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 218 - 230 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 231 - 243 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9 // Decimal 244 - 255 |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 388 |
org/waarp/common/utility/Base64.java | Waarp Common | 478 |
org/waarp/common/utility/Base64.java | Waarp Common | 555 |
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n' through 'z' -9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 399 |
org/waarp/common/utility/Base64.java | Waarp Common | 467 |
org/waarp/common/utility/Base64.java | Waarp Common | 544 |
-9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 218 - 230 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 231 - 243 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9 // Decimal 244 - 255 |
File | Project | Line |
---|---|---|
org/waarp/thrift/r66/R66Service.java | Waarp Thrift | 766 |
org/waarp/thrift/r66/R66Service.java | Waarp Thrift | 1603 |
org/waarp/thrift/r66/R66Service.java | Waarp Thrift | 3450 |
public final transferRequestQuery_args setRequest( final R66Request request) { this.request = request; return this; } public final void unsetRequest() { request = null; } /** * Returns true if field request is set (has been assigned a value) and * false otherwise */ public final boolean isSetRequest() { return request != null; } public final void setRequestIsSet(final boolean value) { if (!value) { request = null; } } @Override public final void setFieldValue(final _Fields field, final Object value) { if (field == _Fields.REQUEST) { if (value == null) { unsetRequest(); } else { setRequest((R66Request) value); } } } @Override public final Object getFieldValue(final _Fields field) { if (field == _Fields.REQUEST) { return getRequest(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned * a value) and false otherwise */ @Override public final boolean isSet(final _Fields field) { if (field == null) { throw new IllegalArgumentException(); } if (field == _Fields.REQUEST) { return isSetRequest(); } throw new IllegalStateException(); } @Override public final boolean equals(final Object that) { if (that == null) { return false; } if (that instanceof transferRequestQuery_args) { |
File | Project | Line |
---|---|---|
org/waarp/thrift/r66/R66Service.java | Waarp Thrift | 1186 |
org/waarp/thrift/r66/R66Service.java | Waarp Thrift | 2012 |
public final transferRequestQuery_result setSuccess( final R66Result success) { this.success = success; return this; } public final void unsetSuccess() { success = null; } /** * Returns true if field success is set (has been assigned a value) and * false otherwise */ public final boolean isSetSuccess() { return success != null; } public final void setSuccessIsSet(final boolean value) { if (!value) { success = null; } } @Override public final void setFieldValue(final _Fields field, final Object value) { if (field == _Fields.SUCCESS) { if (value == null) { unsetSuccess(); } else { setSuccess((R66Result) value); } } } @Override public final Object getFieldValue(final _Fields field) { if (field == _Fields.SUCCESS) { return getSuccess(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned * a value) and false otherwise */ @Override public final boolean isSet(final _Fields field) { if (field == null) { throw new IllegalArgumentException(); } if (field == _Fields.SUCCESS) { return isSetSuccess(); } throw new IllegalStateException(); } @Override public final boolean equals(final Object that) { if (that == null) { return false; } if (that instanceof transferRequestQuery_result) { |
File | Project | Line |
---|---|---|
org/waarp/thrift/r66/R66Service.java | Waarp Thrift | 1066 |
org/waarp/thrift/r66/R66Service.java | Waarp Thrift | 2933 |
org/waarp/thrift/r66/R66Service.java | Waarp Thrift | 3746 |
return (transferRequestQuery_result) super.clone(); } /** * The set of fields this struct contains, along with convenience * methods * for finding and manipulating them. */ public enum _Fields implements TFieldIdEnum { SUCCESS((short) 0, SUCCESS3); private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); static { for (final _Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not * found. */ public static _Fields findByThriftId(final int fieldId) { if (fieldId == 0) { // SUCCESS return SUCCESS; } return null; } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(final int fieldId) { final _Fields fields = findByThriftId(fieldId); if (fields == null) { throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); } return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(final String name) { return byName.get(name); } private final short thriftId; private final String fieldName; _Fields(final short thriftId, final String fieldName) { this.thriftId = thriftId; this.fieldName = fieldName; } @Override public final short getThriftFieldId() { return thriftId; } @Override public final String getFieldName() { return fieldName; } } |
File | Project | Line |
---|---|---|
org/waarp/gateway/ftp/adminssl/HttpSslHandler.java | Waarp Gateway Ftp | 770 |
org/waarp/openr66/protocol/http/adminssl/HttpSslHandler.java | Waarp OpenR66 | 2494 |
private void writeResponse(final ChannelHandlerContext ctx) { // Convert the response content to a ByteBuf. final ByteBuf buf = Unpooled.copiedBuffer(responseContent.toString(), WaarpStringUtils.UTF8); responseContent.setLength(0); // Decide whether to close the connection or not. final boolean keepAlive = HttpUtil.isKeepAlive(request); final boolean close = HttpHeaderValues.CLOSE.contentEqualsIgnoreCase( request.headers().get(HttpHeaderNames.CONNECTION)) || !keepAlive || forceClose; // Build the response object. final FullHttpResponse response = new DefaultFullHttpResponse(HttpVersion.HTTP_1_1, HttpResponseStatus.OK, buf); response.headers().add(HttpHeaderNames.CONTENT_LENGTH, response.content().readableBytes()); response.headers().set(HttpHeaderNames.CONTENT_TYPE, "text/html"); if (keepAlive) { response.headers() .set(HttpHeaderNames.CONNECTION, HttpHeaderValues.KEEP_ALIVE); } if (!close) { // There's no need to add 'Content-Length' header // if this is the last response. response.headers().set(HttpHeaderNames.CONTENT_LENGTH, String.valueOf(buf.readableBytes())); } handleCookies(response); // Write the response. final ChannelFuture future = ctx.writeAndFlush(response); // Close the connection after the write operation is done if necessary. if (close) { future.addListener(WaarpSslUtility.SSLCLOSE); } if (shutdown) { |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 388 |
org/waarp/common/utility/Base64.java | Waarp Common | 478 |
org/waarp/common/utility/Base64.java | Waarp Common | 555 |
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n' through 'z' -9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 399 |
org/waarp/common/utility/Base64.java | Waarp Common | 467 |
org/waarp/common/utility/Base64.java | Waarp Common | 544 |
-9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 218 - 230 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 231 - 243 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9 // Decimal 244 - 255 |
File | Project | Line |
---|---|---|
org/waarp/thrift/r66/R66Service.java | Waarp Thrift | 860 |
org/waarp/thrift/r66/R66Service.java | Waarp Thrift | 1696 |
org/waarp/thrift/r66/R66Service.java | Waarp Thrift | 3543 |
public final int compareTo(final transferRequestQuery_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison; lastComparison = Boolean.valueOf(isSetRequest()).compareTo(other.isSetRequest()); if (lastComparison != 0) { return lastComparison; } if (isSetRequest()) { lastComparison = TBaseHelper.compareTo(request, other.request); return lastComparison; } return 0; } @Override public final _Fields fieldForId(final int fieldId) { return _Fields.findByThriftId(fieldId); } @Override public final void read(final TProtocol iprot) throws TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } @Override public final void write(final TProtocol oprot) throws TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public final String toString() { final StringBuilder sb = new StringBuilder("transferRequestQuery_args("); |
File | Project | Line |
---|---|---|
org/waarp/thrift/r66/R66Service.java | Waarp Thrift | 1280 |
org/waarp/thrift/r66/R66Service.java | Waarp Thrift | 2105 |
org/waarp/thrift/r66/R66Service.java | Waarp Thrift | 3137 |
org/waarp/thrift/r66/R66Service.java | Waarp Thrift | 3974 |
public final int compareTo(final transferRequestQuery_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = TBaseHelper.compareTo(success, other.success); return lastComparison; } return 0; } @Override public final _Fields fieldForId(final int fieldId) { return _Fields.findByThriftId(fieldId); } @Override public final void read(final TProtocol iprot) throws TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } @Override public final void write(final TProtocol oprot) throws TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public final String toString() { final StringBuilder sb = new StringBuilder("transferRequestQuery_result("); |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 388 |
org/waarp/common/utility/Base64.java | Waarp Common | 478 |
org/waarp/common/utility/Base64.java | Waarp Common | 555 |
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n' through 'z' -9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 399 |
org/waarp/common/utility/Base64.java | Waarp Common | 467 |
org/waarp/common/utility/Base64.java | Waarp Common | 544 |
-9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 218 - 230 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 231 - 243 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9 // Decimal 244 - 255 |
File | Project | Line |
---|---|---|
org/waarp/thrift/r66/R66Request.java | Waarp Thrift | 1266 |
org/waarp/thrift/r66/R66Result.java | Waarp Thrift | 1813 |
final StringBuilder sb = new StringBuilder("R66Request("); sb.append("mode:"); if (mode == null) { sb.append("null"); } else { sb.append(mode); } if (isSetFromuid()) { sb.append(", "); sb.append("fromuid:"); if (fromuid == null) { sb.append("null"); } else { sb.append(fromuid); } } if (isSetDestuid()) { sb.append(", "); sb.append("destuid:"); if (destuid == null) { sb.append("null"); } else { sb.append(destuid); } } if (isSetFile()) { sb.append(", "); sb.append("file:"); if (file == null) { sb.append("null"); } else { sb.append(file); } } if (isSetRule()) { sb.append(", "); sb.append("rule:"); if (rule == null) { sb.append("null"); } else { sb.append(rule); } } if (isSetInfo()) { |
File | Project | Line |
---|---|---|
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 674 |
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 819 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 657 |
new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_110, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_120, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_125, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_150, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_200, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_202, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_211, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_212, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_213, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_214, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_215, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_220, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_221, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_225, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_226, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_227, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), |
File | Project | Line |
---|---|---|
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 701 |
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 801 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 636 |
new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_214, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_215, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_220, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_221, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_225, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_226, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_227, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_229, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_230, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_232, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_234, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_250, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_257, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_331, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_332, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_350 new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY) |
File | Project | Line |
---|---|---|
org/waarp/openr66/configuration/FileBasedConfiguration.java | Waarp OpenR66 | 2070 |
org/waarp/openr66/configuration/FileBasedConfiguration.java | Waarp OpenR66 | 2152 |
public static boolean setConfigurationServerMinimalFromXml( final Configuration config, final String filename) { if (!SystemPropertyUtil.get( R66SystemProperties.OPENR66_STARTUP_DATABASE_CHECK, "").isEmpty()) { logger.warn(IS_DEPRECATED_IN_SYSTEM_PROPERTIES_USE_INSTEAD, R66SystemProperties.OPENR66_STARTUP_DATABASE_CHECK, R66SystemProperties.OPENR66_STARTUP_DATABASE_AUTOUPGRADE); autoupgrade = SystemPropertyUtil.getBoolean( R66SystemProperties.OPENR66_STARTUP_DATABASE_CHECK, false); } else { autoupgrade = SystemPropertyUtil.getBoolean( R66SystemProperties.OPENR66_STARTUP_DATABASE_AUTOUPGRADE, false); } final Document document; // Open config file try { document = XmlUtil.getNewSaxReader().read(filename); } catch (final DocumentException e) { logger.error( Messages.getString(FILE_BASED_CONFIGURATION_CANNOT_READ_XML) + filename + ": {}", e.getMessage()); //$NON-NLS-1$ return false; } if (document == null) { logger.error( Messages.getString(FILE_BASED_CONFIGURATION_CANNOT_READ_XML) + filename); //$NON-NLS-1$ return false; } configuration = XmlUtil.read(document, configServer); hashRootConfig = new XmlRootHash(configuration); if (!loadIdentity(config, hashRootConfig)) { logger.error(CANNOT_LOAD_IDENTITY); return false; } if (!loadDatabase(config, false)) { logger.error(CANNOT_LOAD_DATABASE_CONFIGURATION); return false; } if (!loadDirectory(config)) { |
File | Project | Line |
---|---|---|
org/waarp/thrift/r66/R66Service.java | Waarp Thrift | 1901 |
org/waarp/thrift/r66/R66Service.java | Waarp Thrift | 2941 |
public enum _Fields implements TFieldIdEnum { SUCCESS((short) 0, SUCCESS3); private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); static { for (final _Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not * found. */ public static _Fields findByThriftId(final int fieldId) { if (fieldId == 0) { // SUCCESS return SUCCESS; } return null; } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(final int fieldId) { final _Fields fields = findByThriftId(fieldId); if (fields == null) { throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); } return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(final String name) { return byName.get(name); } private final short thriftId; private final String fieldName; _Fields(final short thriftId, final String fieldName) { this.thriftId = thriftId; this.fieldName = fieldName; } @Override public final short getThriftFieldId() { return thriftId; } @Override public final String getFieldName() { return fieldName; } } |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 388 |
org/waarp/common/utility/Base64.java | Waarp Common | 478 |
org/waarp/common/utility/Base64.java | Waarp Common | 555 |
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n' through 'z' -9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 399 |
org/waarp/common/utility/Base64.java | Waarp Common | 467 |
org/waarp/common/utility/Base64.java | Waarp Common | 544 |
-9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 - 191 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 - 204 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 - 217 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 218 - 230 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 231 - 243 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9 // Decimal 244 - 255 |
File | Project | Line |
---|---|---|
org/waarp/compress/zstdsafe/FseCompressionTable.java | Waarp Compression | 38 |
org/waarp/compress/zstdunsafe/FseCompressionTable.java | Waarp Compression | 36 |
class FseCompressionTable { private final short[] nextState; private final int[] deltaNumberOfBits; private final int[] deltaFindState; private int log2Size; public FseCompressionTable(final int maxTableLog, final int maxSymbol) { nextState = new short[1 << maxTableLog]; deltaNumberOfBits = new int[maxSymbol + 1]; deltaFindState = new int[maxSymbol + 1]; } public static FseCompressionTable newInstance(final short[] normalizedCounts, final int maxSymbol, final int tableLog) { final FseCompressionTable result = new FseCompressionTable(tableLog, maxSymbol); result.initialize(normalizedCounts, maxSymbol, tableLog); return result; } public void initializeRleTable(final int symbol) { log2Size = 0; nextState[0] = 0; nextState[1] = 0; deltaFindState[symbol] = 0; deltaNumberOfBits[symbol] = 0; } public void initialize(final short[] normalizedCounts, final int maxSymbol, final int tableLog) { final int tableSize = 1 << tableLog; final byte[] table = new byte[tableSize]; // TODO: allocate in workspace int highThreshold = tableSize - 1; // TODO: make sure FseCompressionTable has enough size log2Size = tableLog; // For explanations on how to distribute symbol values over the table: // http://fastcompression.blogspot.fr/2014/02/fse-distributing-symbol-values.html // symbol start positions final int[] cumulative = new int[MAX_SYMBOL + 2]; // TODO: allocate in workspace |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 388 |
org/waarp/common/utility/Base64.java | Waarp Common | 399 |
org/waarp/common/utility/Base64.java | Waarp Common | 467 |
org/waarp/common/utility/Base64.java | Waarp Common | 478 |
org/waarp/common/utility/Base64.java | Waarp Common | 544 |
org/waarp/common/utility/Base64.java | Waarp Common | 555 |
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n' through 'z' -9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, |
File | Project | Line |
---|---|---|
org/waarp/openr66/protocol/http/adminssl/HttpSslHandler.java | Waarp OpenR66 | 491 |
org/waarp/openr66/protocol/http/adminssl/HttpSslHandler.java | Waarp OpenR66 | 622 |
DbPreparedStatement preparedStatement = null; try { preparedStatement = DbTaskRunner.getFilterPrepareStatement(dbSession, getLimitRow(), false, startid, stopid, tstart, tstop, rule, req, pending, transfer, error, done, all, seeAll); preparedStatement.executeQuery(); final StringBuilder builder = new StringBuilder(); int i = 0; while (preparedStatement.getNext()) { try { i++; final DbTaskRunner taskRunner = DbTaskRunner.getFromStatementNoRule(preparedStatement); if (isNotReload) { final long specid = taskRunner.getSpecialId(); if (idstart == null || idstart > specid) { idstart = specid; } } final LocalChannelReference lcr = Configuration.configuration.getLocalTransaction() .getFromRequest( taskRunner.getKey()); builder.append(taskRunner.toSpecializedHtml(authentHttp, body, lcr != null? Messages.getString( HTTP_SSL_HANDLER_ACTIVE) : Messages.getString( HTTP_SSL_HANDLER_NOT_ACTIVE))); if (i > getLimitRow()) { break; } } catch (final WaarpDatabaseException e) { // try to continue if possible logger.warn(AN_ERROR_OCCURS_WHILE_ACCESSING_A_RUNNER, e.getMessage()); |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 388 |
org/waarp/common/utility/Base64.java | Waarp Common | 399 |
org/waarp/common/utility/Base64.java | Waarp Common | 467 |
org/waarp/common/utility/Base64.java | Waarp Common | 478 |
org/waarp/common/utility/Base64.java | Waarp Common | 544 |
org/waarp/common/utility/Base64.java | Waarp Common | 555 |
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n' through 'z' -9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, |
File | Project | Line |
---|---|---|
org/waarp/compress/zstdsafe/ZstdFrameDecompressor.java | Waarp Compression | 175 |
org/waarp/compress/zstdunsafe/ZstdFrameDecompressor.java | Waarp Compression | 176 |
final int header = getInt(inputBase, input) & 0xFFFFFF; input += SIZE_OF_BLOCK_HEADER; lastBlock = (header & 1) != 0; final int blockType = (header >>> 1) & 0x3; final int blockSize = (header >>> 3) & 0x1FFFFF; // 21 bits final int decodedSize; switch (blockType) { case RAW_BLOCK: verify(inputAddress + blockSize <= inputLimit, input, NOT_ENOUGH_INPUT_BYTES); decodedSize = decodeRawBlock(inputBase, input, blockSize, outputBase, output, outputLimit); input += blockSize; break; case RLE_BLOCK: verify(inputAddress + 1 <= inputLimit, input, NOT_ENOUGH_INPUT_BYTES); decodedSize = decodeRleBlock(blockSize, inputBase, input, outputBase, output, outputLimit); input += 1; break; case COMPRESSED_BLOCK: verify(inputAddress + blockSize <= inputLimit, input, NOT_ENOUGH_INPUT_BYTES); decodedSize = decodeCompressedBlock(inputBase, input, blockSize, outputBase, output, outputLimit, frameHeader.windowSize, outputAddress); input += blockSize; break; default: throw fail(input, "Invalid block type"); } output += decodedSize; } while (!lastBlock); if (frameHeader.hasChecksum) { final int decodedFrameSize = output - outputStart; |
File | Project | Line |
---|---|---|
org/waarp/thrift/r66/R66Request.java | Waarp Thrift | 1534 |
org/waarp/thrift/r66/R66Result.java | Waarp Thrift | 2179 |
public final void write(final TProtocol oprot, final R66Request struct) throws TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.mode != null) { oprot.writeFieldBegin(MODE_FIELD_DESC); oprot.writeI32(struct.mode.getValue()); oprot.writeFieldEnd(); } if (struct.fromuid != null && struct.isSetFromuid()) { oprot.writeFieldBegin(FROMUID_FIELD_DESC); oprot.writeString(struct.fromuid); oprot.writeFieldEnd(); } if (struct.destuid != null && struct.isSetDestuid()) { oprot.writeFieldBegin(DESTUID_FIELD_DESC); oprot.writeString(struct.destuid); oprot.writeFieldEnd(); } if (struct.file != null && struct.isSetFile()) { oprot.writeFieldBegin(FILE_FIELD_DESC); oprot.writeString(struct.file); oprot.writeFieldEnd(); } if (struct.rule != null && struct.isSetRule()) { oprot.writeFieldBegin(RULE_FIELD_DESC); oprot.writeString(struct.rule); oprot.writeFieldEnd(); } if (struct.info != null && struct.isSetInfo()) { |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 388 |
org/waarp/common/utility/Base64.java | Waarp Common | 399 |
org/waarp/common/utility/Base64.java | Waarp Common | 467 |
org/waarp/common/utility/Base64.java | Waarp Common | 478 |
org/waarp/common/utility/Base64.java | Waarp Common | 544 |
org/waarp/common/utility/Base64.java | Waarp Common | 555 |
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n' through 'z' -9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, |
File | Project | Line |
---|---|---|
org/waarp/compress/zstdsafe/HuffmanCompressionTable.java | Waarp Compression | 378 |
org/waarp/compress/zstdunsafe/HuffmanCompressionTable.java | Waarp Compression | 380 |
while ((numberOfBitsToDecrease <= MAX_TABLE_LOG) && (rankLast[numberOfBitsToDecrease] == noSymbol)) { numberOfBitsToDecrease++; } totalCost -= 1 << (numberOfBitsToDecrease - 1); if (rankLast[numberOfBitsToDecrease - 1] == noSymbol) { rankLast[numberOfBitsToDecrease - 1] = rankLast[numberOfBitsToDecrease]; // this rank is no longer empty } nodeTable.numberOfBits[rankLast[numberOfBitsToDecrease]]++; if (rankLast[numberOfBitsToDecrease] == 0) { /* special case, reached largest symbol */ rankLast[numberOfBitsToDecrease] = noSymbol; } else { rankLast[numberOfBitsToDecrease]--; if (nodeTable.numberOfBits[rankLast[numberOfBitsToDecrease]] != maxNumberOfBits - numberOfBitsToDecrease) { rankLast[numberOfBitsToDecrease] = noSymbol; // this rank is now empty } } } while (totalCost < 0) { // Sometimes, cost correction overshoot if (rankLast[1] == noSymbol) { /* special case : no rank 1 symbol (using maxNumberOfBits-1); let's create one from largest rank 0 (using maxNumberOfBits) */ while (nodeTable.numberOfBits[n] == maxNumberOfBits) { n--; } nodeTable.numberOfBits[n + 1]--; rankLast[1] = n + 1; totalCost++; continue; } nodeTable.numberOfBits[rankLast[1] + 1]--; rankLast[1]++; totalCost++; } return maxNumberOfBits; } /** * All elements within weightTable must be <= Huffman.MAX_TABLE_LOG */ private static int compressWeights(final byte[] outputBase, |
File | Project | Line |
---|---|---|
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 674 |
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 822 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 660 |
new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_110, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_120, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_125, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_150, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_200, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_202, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_211, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_212, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_213, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_214, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_215, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_220, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_221, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_225, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_226, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), |
File | Project | Line |
---|---|---|
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 704 |
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 801 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 636 |
new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_215, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_220, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_221, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_225, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_226, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_227, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_229, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_230, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_232, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_234, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_250, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_257, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_331, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_332, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_350 new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY) |
File | Project | Line |
---|---|---|
org/waarp/openr66/protocol/http/adminssl/HttpResponsiveSslHandler.java | Waarp OpenR66 | 551 |
org/waarp/openr66/protocol/http/adminssl/HttpSslHandler.java | Waarp OpenR66 | 948 |
error = params.containsKey("error"); done = params.containsKey("done"); all = params.containsKey("all"); boolean toPurge = params.containsKey("purge"); if (toPurge) { transfer = false; } if (pending && transfer && error && done) { all = true; } else if (!(pending || transfer || error || done)) { all = true; } final Timestamp tstart = WaarpStringUtils.fixDate(start); if (tstart != null) { start = tstart.toString(); } final Timestamp tstop = WaarpStringUtils.fixDate(stop, tstart); if (tstop != null) { stop = tstop.toString(); } body = resetOptionTransfer(body, "", "", start, stop, rule == null? "" : rule, req == null? "" : req, pending, transfer, error, done, all); boolean isexported = true; // clean a bit the database before exporting try { DbTaskRunner.changeFinishedToDone(); } catch (final WaarpDatabaseNoConnectionException e2) { // should not be } // create export of log and optionally purge them from database DbPreparedStatement getValid = null; NbAndSpecialId nbAndSpecialId = null; final String basename = |
File | Project | Line |
---|---|---|
org/waarp/openr66/protocol/http/restv2/dbhandlers/TransferIdHandler.java | Waarp OpenR66 | 236 |
org/waarp/openr66/protocol/http/restv2/dbhandlers/TransferIdHandler.java | Waarp OpenR66 | 299 |
public final void stopTransfer(final HttpRequest request, final HttpResponder responder, @PathParam(URI_ID) final String uri) throws UnsupportedEncodingException { checkSanity(uri); final String key = URLDecoder.decode(uri, WaarpStringUtils.UTF8.name()); final Pattern pattern = Pattern.compile("(-?\\d+)_(.+)"); final Matcher matcher = pattern.matcher(key); if (!matcher.find()) { responder.sendStatus(NOT_FOUND); return; } final String id = matcher.group(1); final String requested = matcher.group(2); TransferDAO transferDAO = null; try { final long transID = Long.parseLong(id); transferDAO = DAO_FACTORY.getTransferDAO(); if (!transferDAO.exist(transID, serverName(requested), requested, serverName())) { responder.sendStatus(NOT_FOUND); } else { final Transfer transfer = transferDAO.select(transID, serverName(requested), requested, serverName()); final ServerActions actions = new ServerActions(); actions.newSession(); actions.stopTransfer(transfer); |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 388 |
org/waarp/common/utility/Base64.java | Waarp Common | 401 |
org/waarp/common/utility/Base64.java | Waarp Common | 467 |
org/waarp/common/utility/Base64.java | Waarp Common | 480 |
org/waarp/common/utility/Base64.java | Waarp Common | 544 |
org/waarp/common/utility/Base64.java | Waarp Common | 557 |
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n' through 'z' -9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, |
File | Project | Line |
---|---|---|
org/waarp/common/database/model/DbModelCommonMariadbMySql.java | Waarp Common | 61 |
org/waarp/common/database/model/DbModelOracle.java | Waarp Common | 224 |
org/waarp/common/database/model/DbModelPostgresql.java | Waarp Common | 118 |
DATE(Types.DATE, " " + "DATE "), TIMESTAMP(Types.TIMESTAMP, " TIMESTAMP(3) "); public final int type; public final String constructor; DBType(final int type, final String constructor) { this.type = type; this.constructor = constructor; } public static String getType(final int sqltype) { switch (sqltype) { case Types.CHAR: return CHAR.constructor; case Types.VARCHAR: return VARCHAR.constructor; case Types.NVARCHAR: return NVARCHAR.constructor; case Types.LONGVARCHAR: return LONGVARCHAR.constructor; case Types.BIT: return BIT.constructor; case Types.TINYINT: return TINYINT.constructor; case Types.SMALLINT: return SMALLINT.constructor; case Types.INTEGER: return INTEGER.constructor; case Types.BIGINT: return BIGINT.constructor; case Types.REAL: return REAL.constructor; case Types.DOUBLE: return DOUBLE.constructor; case Types.VARBINARY: return VARBINARY.constructor; case Types.DATE: return DATE.constructor; case Types.TIMESTAMP: return TIMESTAMP.constructor; default: return null; } } } |
File | Project | Line |
---|---|---|
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 704 |
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 822 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 501 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 660 |
new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_215, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_220, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_221, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_225, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_226, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_227, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_229, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_230, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_232, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_234, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_250, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_257, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_331, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_332, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_350 new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY) }; /** * Error part */ public enum WaarpErrorValuesIndex { |
File | Project | Line |
---|---|---|
org/waarp/gateway/ftp/database/data/DbTransferLog.java | Waarp Gateway Ftp | 60 |
org/waarp/gateway/kernel/database/data/DbTransferLog.java | Waarp Gateway Kernel | 58 |
private static final String ERROR_DURING_PURGE = "Error during purge"; private static final String NO_ROW_FOUND2 = "No row found"; /** * Internal Logger */ private static final WaarpLogger logger = WaarpLoggerFactory.getLogger(DbTransferLog.class); public enum Columns { FILENAME, MODETRANS, STARTTRANS, STOPTRANS, TRANSINFO, INFOSTATUS, UPDATEDINFO, USERID, ACCOUNTID, HOSTID, SPECIALID } public static final int[] dbTypes = { Types.VARCHAR, Types.NVARCHAR, Types.TIMESTAMP, Types.TIMESTAMP, Types.VARCHAR, Types.INTEGER, Types.INTEGER, Types.NVARCHAR, Types.NVARCHAR, Types.NVARCHAR, Types.BIGINT }; public static final String table = " TRANSFLOG "; public static final String fieldseq = "TRANSSEQ"; public static final Columns[] indexes = { Columns.STARTTRANS, Columns.UPDATEDINFO, Columns.INFOSTATUS }; public static final String XMLRUNNERS = "transferlogs"; public static final String XMLRUNNER = "log"; // Values private String user; private String account; private long specialId; private boolean isSender; private String filename; private String mode; private Timestamp start; private Timestamp stop; private String infotransf; private String hostid; /** * Info status error code */ private ReplyCode infostatus = ReplyCode.REPLY_000_SPECIAL_NOSTATUS; |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 388 |
org/waarp/common/utility/Base64.java | Waarp Common | 401 |
org/waarp/common/utility/Base64.java | Waarp Common | 467 |
org/waarp/common/utility/Base64.java | Waarp Common | 480 |
org/waarp/common/utility/Base64.java | Waarp Common | 544 |
org/waarp/common/utility/Base64.java | Waarp Common | 557 |
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n' through 'z' -9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, |
File | Project | Line |
---|---|---|
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 674 |
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 677 |
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 680 |
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 683 |
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 686 |
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 689 |
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 692 |
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 695 |
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 698 |
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 701 |
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 801 |
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 804 |
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 807 |
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 810 |
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 813 |
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 816 |
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 819 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 501 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 636 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 639 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 642 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 645 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 648 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 651 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 654 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 657 |
new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_110, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_120, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_125, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_150, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_200, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_202, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_211, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_212, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_213, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_214, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_215, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_220, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_221, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_225, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_226, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), |
File | Project | Line |
---|---|---|
org/waarp/compress/zstdsafe/FiniteStateEntropy.java | Waarp Compression | 69 |
org/waarp/compress/zstdunsafe/FiniteStateEntropy.java | Waarp Compression | 67 |
int currentAddress = initializer.getCurrentAddress(); long bits = initializer.getBits(); // initialize first FSE stream int state1 = (int) peekBits(bitsConsumed, bits, table.log2Size); bitsConsumed += table.log2Size; BitInputStream.Loader loader = new BitInputStream.Loader(inputBase, inputAddress, currentAddress, bits, bitsConsumed); loader.load(); bits = loader.getBits(); bitsConsumed = loader.getBitsConsumed(); currentAddress = loader.getCurrentAddress(); // initialize second FSE stream int state2 = (int) peekBits(bitsConsumed, bits, table.log2Size); bitsConsumed += table.log2Size; loader = new BitInputStream.Loader(inputBase, inputAddress, currentAddress, bits, bitsConsumed); loader.load(); bits = loader.getBits(); bitsConsumed = loader.getBitsConsumed(); currentAddress = loader.getCurrentAddress(); final byte[] symbols = table.symbol; final byte[] numbersOfBits = table.numberOfBits; final int[] newStates = table.newState; // decode 4 symbols per loop while (output <= outputLimit - 4) { int numberOfBits; |
File | Project | Line |
---|---|---|
org/waarp/common/file/filesystembased/FilesystemBasedDirImpl.java | Waarp Common | 170 |
org/waarp/openr66/context/filesystem/R66Dir.java | Waarp OpenR66 | 147 |
wildcardFile = new File(rootFile, pathWithWildcard); } // Split wildcard path into subdirectories. final List<String> subdirs = new ArrayList<String>(); while (wildcardFile != null) { final File parent = wildcardFile.getParentFile(); if (parent == null) { subdirs.add(0, wildcardFile.getPath()); break; } subdirs.add(0, wildcardFile.getName()); if (parent.equals(rootFile)) { // End of wildcard path subdirs.add(0, parent.getPath()); break; } wildcardFile = parent; } List<File> basedPaths = new ArrayList<File>(); // First set root basedPaths.add(new File(subdirs.get(0))); int i = 1; // For each wilcard subdirectory while (i < subdirs.size()) { // Set current filter final FileFilter fileFilter = FilesystemBasedCommonsIo.getWildcardFileFilter(subdirs.get(i)); final List<File> newBasedPaths = new ArrayList<File>(); // Look for matches in all the current search paths for (final File dir : basedPaths) { if (dir.isDirectory()) { |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 388 |
org/waarp/common/utility/Base64.java | Waarp Common | 401 |
org/waarp/common/utility/Base64.java | Waarp Common | 467 |
org/waarp/common/utility/Base64.java | Waarp Common | 480 |
org/waarp/common/utility/Base64.java | Waarp Common | 544 |
org/waarp/common/utility/Base64.java | Waarp Common | 557 |
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n' through 'z' -9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, |
File | Project | Line |
---|---|---|
org/waarp/openr66/protocol/http/adminssl/HttpResponsiveSslHandler.java | Waarp OpenR66 | 1876 |
org/waarp/openr66/protocol/http/adminssl/HttpSslHandler.java | Waarp OpenR66 | 2122 |
final ByteBuf content = request.content(); if (content.isReadable()) { final String param = content.toString(WaarpStringUtils.UTF8); final QueryStringDecoder queryStringDecoder2 = new QueryStringDecoder("/?" + param); params = queryStringDecoder2.parameters(); boolean invalidEntry = false; for (final Entry<String, List<String>> paramCheck : params.entrySet()) { try { ParametersChecker.checkSanityString(paramCheck.getValue().toArray( ParametersChecker.ZERO_ARRAY_STRING)); } catch (final InvalidArgumentException e) { logger.error( "Arguments incompatible with Security: " + paramCheck.getKey() + ": {}", e.getMessage()); invalidEntry = true; } } if (invalidEntry) { for (final Entry<String, List<String>> paramCheck : params.entrySet()) { paramCheck.getValue().clear(); } params.clear(); params = null; logger.error("No parameter validated since security issue found"); return; } if (params.containsKey(REFRESH)) { |
File | Project | Line |
---|---|---|
org/waarp/compress/zstdsafe/FseTableReader.java | Waarp Compression | 101 |
org/waarp/compress/zstdunsafe/FseTableReader.java | Waarp Compression | 101 |
bitStream = getInt(inputBase, input) >>> bitCount; } else { bitStream >>>= 2; } } final short max = (short) ((2 * threshold - 1) - remaining); short count; if ((bitStream & (threshold - 1)) < max) { count = (short) (bitStream & (threshold - 1)); bitCount += numberOfBits - 1; } else { count = (short) (bitStream & (2 * threshold - 1)); if (count >= threshold) { count -= max; } bitCount += numberOfBits; } count--; // extra accuracy remaining -= Math.abs(count); normalizedCounters[symbolNumber++] = count; previousIsZero = count == 0; while (remaining < threshold) { numberOfBits--; threshold >>>= 1; } if ((input <= inputLimit - 7) || (input + (bitCount >> 3) <= inputLimit - 4)) { input += bitCount >>> 3; bitCount &= 7; } else { bitCount -= 8 * (inputLimit - 4 - input); |
File | Project | Line |
---|---|---|
org/waarp/compress/zstdsafe/Huffman.java | Waarp Compression | 117 |
org/waarp/compress/zstdunsafe/Huffman.java | Waarp Compression | 116 |
verify(isPowerOf2(rest), input, INPUT_IS_CORRUPTED); final int lastWeight = Util.highestBit(rest) + 1; weights[outputSize] = (byte) lastWeight; ranks[lastWeight]++; final int numberOfSymbols = outputSize + 1; // populate table int nextRankStart = 0; for (int i = 1; i < tableLog + 1; ++i) { final int current = nextRankStart; nextRankStart += ranks[i] << (i - 1); ranks[i] = current; } for (int n = 0; n < numberOfSymbols; n++) { final int weight = weights[n]; final int length = (1 << weight) >> 1; // TODO: 1 << (weight - 1) ?? final byte symbol = (byte) n; final byte numberOfBits = (byte) (tableLog + 1 - weight); for (int i = ranks[weight]; i < ranks[weight] + length; i++) { symbols[i] = symbol; numbersOfBits[i] = numberOfBits; } ranks[weight] += length; } |
File | Project | Line |
---|---|---|
org/waarp/openr66/proxy/protocol/http/adminssl/HttpSslHandlerProxyR66.java | Waarp Proxy in R66 protocol | 218 |
org/waarp/openr66/protocol/http/adminssl/HttpResponsiveSslHandler.java | Waarp OpenR66 | 1656 |
final List<String> action = params.get("ACTION"); for (final String act : action) { if ("Language".equalsIgnoreCase(act)) { lang = getTrimValue("change"); final String sys = getTrimValue("changesys"); Messages.init(new Locale(sys)); extraInformation = Messages.getString("HttpSslHandler.LangIs") + "Web: " + lang + " OpenR66: " //$NON-NLS-1$ + Messages.getSlocale(); } else if ("Level".equalsIgnoreCase(act)) { final String loglevel = getTrimValue("loglevel"); WaarpLogLevel level = WaarpLogLevel.WARN; if ("debug".equalsIgnoreCase(loglevel)) { level = WaarpLogLevel.DEBUG; } else if ("info".equalsIgnoreCase(loglevel)) { level = WaarpLogLevel.INFO; } else if ("warn".equalsIgnoreCase(loglevel)) { level = WaarpLogLevel.WARN; } else if ("error".equalsIgnoreCase(loglevel)) { level = WaarpLogLevel.ERROR; } WaarpLoggerFactory.setLogLevel(level); extraInformation = Messages.getString("HttpSslHandler.LangIs") + level.name(); //$NON-NLS-1$ } else if ("Disconnect".equalsIgnoreCase(act)) { |
File | Project | Line |
---|---|---|
org/waarp/common/database/model/DbModelH2.java | Waarp Common | 243 |
org/waarp/common/database/model/DbModelPostgresql.java | Waarp Common | 178 |
logger.warn("ResetSequences Error", e); } finally { request.close(); } logger.warn(action); } @Override public long nextSequence(final DbSession dbSession) throws WaarpDatabaseNoConnectionException, WaarpDatabaseSqlException, WaarpDatabaseNoDataException { long result; final String action = "SELECT NEXTVAL('" + DbDataModel.fieldseq + "')"; final DbPreparedStatement preparedStatement = new DbPreparedStatement(dbSession); try { preparedStatement.createPrepareStatement(action); // Limit the search preparedStatement.executeQuery(); if (preparedStatement.getNext()) { try { result = preparedStatement.getResultSet().getLong(1); } catch (final SQLException e) { throw new WaarpDatabaseSqlException(e); } return result; } else { throw new WaarpDatabaseNoDataException( "No sequence found. Must be initialized first"); } } finally { preparedStatement.realClose(); } } @Override protected final String validConnectionString() { return "select 1"; } @Override public final String limitRequest(final String allfields, final String request, final int nb) { if (nb == 0) { return request; } return request + " LIMIT " + nb; } } |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 388 |
org/waarp/common/utility/Base64.java | Waarp Common | 401 |
org/waarp/common/utility/Base64.java | Waarp Common | 467 |
org/waarp/common/utility/Base64.java | Waarp Common | 480 |
org/waarp/common/utility/Base64.java | Waarp Common | 544 |
org/waarp/common/utility/Base64.java | Waarp Common | 557 |
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n' through 'z' -9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, |
File | Project | Line |
---|---|---|
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 352 |
org/waarp/openr66/protocol/snmp/R66PrivateMib.java | Waarp OpenR66 | 117 |
} /** * Send a notification (trap or inform) for Shutdown event * * @param message * @param message2 */ public final void notifyStartStop(final String message, final String message2) { if (!TrapLevel.StartStop.isLevelValid(agent.getTrapLevel())) { return; } notify(NotificationElements.TrapShutdown, message, message2); } /** * Send a notification (trap or inform) for Error event * * @param message * @param message2 */ public final void notifyError(final String message, final String message2) { if (!TrapLevel.Alert.isLevelValid(agent.getTrapLevel())) { return; } notify(NotificationElements.TrapError, message, message2); } /** * Send a notification (trap or inform) for Server Overloaded event * * @param message * @param message2 */ public final void notifyOverloaded(final String message, final String message2) { if (!TrapLevel.Warning.isLevelValid(agent.getTrapLevel())) { return; } notify(NotificationElements.TrapOverloaded, message, message2); } /** * Send a notification (trap or inform) for Warning event * * @param message * @param message2 */ public final void notifyWarning(final String message, final String message2) { if (!TrapLevel.Warning.isLevelValid(agent.getTrapLevel())) { return; } notify(NotificationElements.TrapWarning, message, message2); } /** * Send a notification (trap or inform) for Warning/Error event on a single * Transfer Task * * @param message * @param runner */ public final void notifyInfoTask(final String message, |
File | Project | Line |
---|---|---|
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 664 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 561 |
public final int getOID() { return ordinal() + 1; } } /** * Detailed part */ public static final WaarpEntry[] WaarpDetailedValues = { // reply_000, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_110, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_120, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_125, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_150, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_200, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_202, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_211, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_212, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_213, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_214, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_215, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_220, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), |
File | Project | Line |
---|---|---|
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 674 |
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 825 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 505 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 663 |
new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_110, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_120, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_125, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_150, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_200, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_202, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_211, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_212, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_213, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_214, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_215, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_220, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_221, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_225, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), |
File | Project | Line |
---|---|---|
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 707 |
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 801 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 636 |
new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_220, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_221, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_225, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_226, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_227, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_229, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_230, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_232, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_234, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_250, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_257, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_331, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_332, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_350 new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY) |
File | Project | Line |
---|---|---|
org/waarp/openr66/configuration/RuleFileBasedConfiguration.java | Waarp OpenR66 | 570 |
org/waarp/openr66/configuration/RuleFileBasedConfiguration.java | Waarp OpenR66 | 590 |
org/waarp/openr66/configuration/RuleFileBasedConfiguration.java | Waarp OpenR66 | 610 |
org/waarp/openr66/configuration/RuleFileBasedConfiguration.java | Waarp OpenR66 | 630 |
org/waarp/openr66/configuration/RuleFileBasedConfiguration.java | Waarp OpenR66 | 650 |
String[][] array = rule.getRpreTasksArray(); if (array != null) { for (rank = 0; rank < array.length; rank++) { final Element task = new DefaultElement(XTASK); task.add(newElement(DbRule.TASK_TYPE, array[rank][0])); task.add(newElement(DbRule.TASK_PATH, array[rank][1])); task.add(newElement(DbRule.TASK_DELAY, array[rank][2])); if (array[rank].length > 3) { task.add(newElement(DbRule.TASK_COMMENT, array[rank][3])); } if (array[rank].length > 4) { task.add(newElement(DbRule.TASK_RANK, array[rank][4])); } roottasks.add(task); } } tasks.add(roottasks); element.add(tasks); tasks = new DefaultElement(XRPOSTTASKS); |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 388 |
org/waarp/common/utility/Base64.java | Waarp Common | 401 |
org/waarp/common/utility/Base64.java | Waarp Common | 467 |
org/waarp/common/utility/Base64.java | Waarp Common | 480 |
org/waarp/common/utility/Base64.java | Waarp Common | 544 |
org/waarp/common/utility/Base64.java | Waarp Common | 557 |
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n' through 'z' -9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, |
File | Project | Line |
---|---|---|
org/waarp/compress/zstdsafe/Huffman.java | Waarp Compression | 170 |
org/waarp/compress/zstdunsafe/Huffman.java | Waarp Compression | 171 |
final int fastOutputLimit = outputLimit - 4; while (output < fastOutputLimit) { final BitInputStream.Loader loader = new BitInputStream.Loader(inputBase, inputAddress, currentAddress, bits, bitsConsumed); final boolean done = loader.load(); bits = loader.getBits(); bitsConsumed = loader.getBitsConsumed(); currentAddress = loader.getCurrentAddress(); if (done) { break; } bitsConsumed = decodeSymbol(outputBase, output, bits, bitsConsumed, tableLog1, numbersOfBits1, symbols1); bitsConsumed = decodeSymbol(outputBase, output + 1, bits, bitsConsumed, tableLog1, numbersOfBits1, symbols1); bitsConsumed = decodeSymbol(outputBase, output + 2, bits, bitsConsumed, tableLog1, numbersOfBits1, symbols1); bitsConsumed = decodeSymbol(outputBase, output + 3, bits, bitsConsumed, tableLog1, numbersOfBits1, symbols1); output += SIZE_OF_INT; } decodeTail(inputBase, inputAddress, currentAddress, bitsConsumed, bits, outputBase, output, outputLimit); } public void decode4Streams(final byte[] inputBase, final int inputAddress, |
File | Project | Line |
---|---|---|
org/waarp/openr66/protocol/http/rest/handler/HttpRestInformationR66Handler.java | Waarp OpenR66 | 61 |
org/waarp/openr66/protocol/http/rest/handler/HttpRestLogR66Handler.java | Waarp OpenR66 | 62 |
public HttpRestInformationR66Handler(final RestConfiguration config, final METHOD... methods) { super(BASEURI, config, METHOD.OPTIONS); setIntersectionMethods(methods, METHOD.GET); } @Override public final void endParsingRequest(final HttpRestHandler handler, final RestArgument arguments, final RestArgument result, final Object body) throws HttpIncorrectRequestException, HttpInvalidAuthenticationException { try { HttpRestV1Utils.checkSanity(arguments); } catch (final InvalidArgumentException e) { throw new HttpIncorrectRequestException("Issue on values", e); } logger.debug("debug: {} ### {}", arguments, result); if (body != null) { logger.debug("Obj: {}", body); } handler.setWillClose(false); final ServerActions serverHandler = ((HttpRestR66Handler) handler).getServerHandler(); // now action according to body final JsonPacket json = (JsonPacket) body; if (json == null) { result.setDetail("not enough information"); setError(handler, result, HttpResponseStatus.BAD_REQUEST); return; } result.getAnswer() .put(AbstractDbData.JSON_MODEL, RESTHANDLERS.Information.name()); |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 388 |
org/waarp/common/utility/Base64.java | Waarp Common | 401 |
org/waarp/common/utility/Base64.java | Waarp Common | 467 |
org/waarp/common/utility/Base64.java | Waarp Common | 480 |
org/waarp/common/utility/Base64.java | Waarp Common | 544 |
org/waarp/common/utility/Base64.java | Waarp Common | 557 |
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n' through 'z' -9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, |
File | Project | Line |
---|---|---|
org/waarp/openr66/protocol/http/restv2/dbhandlers/TransferIdHandler.java | Waarp OpenR66 | 113 |
org/waarp/openr66/protocol/http/restv2/dbhandlers/TransferIdHandler.java | Waarp OpenR66 | 363 |
public final void getTransfer(final HttpRequest request, final HttpResponder responder, @PathParam(URI_ID) final String uri) throws UnsupportedEncodingException { checkSanity(uri); final String key = URLDecoder.decode(uri, UTF8_CHARSET.name()); final Pattern pattern = Pattern.compile("(-?\\d+)_(.+)"); final Matcher matcher = pattern.matcher(key); if (!matcher.find()) { responder.sendStatus(NOT_FOUND); return; } final String id = matcher.group(1); final String requested = matcher.group(2); TransferDAO transferDAO = null; try { final long transID = Long.parseLong(id); transferDAO = DAO_FACTORY.getTransferDAO(); if (!transferDAO.exist(transID, serverName(requested), requested, serverName())) { responder.sendStatus(NOT_FOUND); } else { final Transfer transfer = transferDAO.select(transID, serverName(requested), requested, serverName()); |
File | Project | Line |
---|---|---|
org/waarp/thrift/r66/R66Request.java | Waarp Thrift | 250 |
org/waarp/thrift/r66/R66Result.java | Waarp Thrift | 308 |
private byte issetBitfield; public static final Map<_Fields, FieldMetaData> metaDataMap; static { final Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); tmpMap.put(_Fields.MODE, new FieldMetaData("mode", TFieldRequirementType.REQUIRED, new EnumMetaData(TType.ENUM, RequestMode.class))); tmpMap.put(_Fields.FROMUID, new FieldMetaData(FROMUID2, TFieldRequirementType.OPTIONAL, new FieldValueMetaData(TType.STRING))); tmpMap.put(_Fields.DESTUID, new FieldMetaData(DESTUID2, TFieldRequirementType.OPTIONAL, new FieldValueMetaData(TType.STRING))); tmpMap.put(_Fields.FILE, new FieldMetaData("file", TFieldRequirementType.OPTIONAL, new FieldValueMetaData(TType.STRING))); tmpMap.put(_Fields.RULE, new FieldMetaData("rule", TFieldRequirementType.OPTIONAL, new FieldValueMetaData(TType.STRING))); tmpMap.put(_Fields.INFO, |
File | Project | Line |
---|---|---|
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 707 |
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 825 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 501 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 663 |
new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_220, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_221, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_225, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_226, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_227, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_229, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_230, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_232, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_234, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_250, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_257, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_331, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_332, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_350 new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY) |
File | Project | Line |
---|---|---|
org/waarp/openr66/configuration/RuleFileBasedConfiguration.java | Waarp OpenR66 | 570 |
org/waarp/openr66/configuration/RuleFileBasedConfiguration.java | Waarp OpenR66 | 590 |
org/waarp/openr66/configuration/RuleFileBasedConfiguration.java | Waarp OpenR66 | 610 |
org/waarp/openr66/configuration/RuleFileBasedConfiguration.java | Waarp OpenR66 | 630 |
org/waarp/openr66/configuration/RuleFileBasedConfiguration.java | Waarp OpenR66 | 650 |
org/waarp/openr66/configuration/RuleFileBasedConfiguration.java | Waarp OpenR66 | 670 |
String[][] array = rule.getRpreTasksArray(); if (array != null) { for (rank = 0; rank < array.length; rank++) { final Element task = new DefaultElement(XTASK); task.add(newElement(DbRule.TASK_TYPE, array[rank][0])); task.add(newElement(DbRule.TASK_PATH, array[rank][1])); task.add(newElement(DbRule.TASK_DELAY, array[rank][2])); if (array[rank].length > 3) { task.add(newElement(DbRule.TASK_COMMENT, array[rank][3])); } if (array[rank].length > 4) { task.add(newElement(DbRule.TASK_RANK, array[rank][4])); } roottasks.add(task); } } tasks.add(roottasks); element.add(tasks); |
File | Project | Line |
---|---|---|
org/waarp/openr66/server/ConfigExport.java | Waarp OpenR66 | 243 |
org/waarp/openr66/server/ConfigImport.java | Waarp OpenR66 | 365 |
"COnfigExport in FAILURE since Host is not found: " + stohost, e); networkTransaction.closeAll(); System.exit(10);//NOSONAR } } else { stohost = Configuration.configuration.getHostSslId(); } transaction.run(); future.awaitOrInterruptible(); final long time2 = System.currentTimeMillis(); final long delay = time2 - time1; final R66Result result = future.getResult(); if (future.isSuccess()) { final boolean useJson = PartnerConfiguration.useJson(stohost); logger.debug("UseJson: {}", useJson); final String message; if (useJson) { message = result.getOther() != null? ((JsonCommandPacket) result.getOther()).getRequest() : "no file"; } else { message = result.getOther() != null? ((ValidPacket) result.getOther()).getSheader() : "no file"; } if (result.getCode() == ErrorCode.Warning) { logger.warn( |
File | Project | Line |
---|---|---|
org/waarp/common/database/model/DbModelCommonMariadbMySql.java | Waarp Common | 62 |
org/waarp/common/database/model/DbModelH2.java | Waarp Common | 181 |
org/waarp/common/database/model/DbModelOracle.java | Waarp Common | 224 |
org/waarp/common/database/model/DbModelPostgresql.java | Waarp Common | 119 |
TIMESTAMP(Types.TIMESTAMP, " TIMESTAMP(3) "); public final int type; public final String constructor; DBType(final int type, final String constructor) { this.type = type; this.constructor = constructor; } public static String getType(final int sqltype) { switch (sqltype) { case Types.CHAR: return CHAR.constructor; case Types.VARCHAR: return VARCHAR.constructor; case Types.NVARCHAR: return NVARCHAR.constructor; case Types.LONGVARCHAR: return LONGVARCHAR.constructor; case Types.BIT: return BIT.constructor; case Types.TINYINT: return TINYINT.constructor; case Types.SMALLINT: return SMALLINT.constructor; case Types.INTEGER: return INTEGER.constructor; case Types.BIGINT: return BIGINT.constructor; case Types.REAL: return REAL.constructor; case Types.DOUBLE: return DOUBLE.constructor; case Types.VARBINARY: return VARBINARY.constructor; case Types.DATE: return DATE.constructor; case Types.TIMESTAMP: return TIMESTAMP.constructor; |
File | Project | Line |
---|---|---|
org/waarp/openr66/proxy/protocol/http/adminssl/HttpSslHandlerProxyR66.java | Waarp Proxy in R66 protocol | 399 |
org/waarp/openr66/protocol/http/adminssl/HttpResponsiveSslHandler.java | Waarp OpenR66 | 1971 |
} boolean getMenu = false; if (params != null && params.containsKey("Logon")) { String name = null; String password = null; List<String> values; if (!params.isEmpty()) { // get values if (params.containsKey("name")) { values = params.get("name"); if (values != null) { name = values.get(0); if (ParametersChecker.isEmpty(name)) { getMenu = true; } } } else { getMenu = true; } // search the nb param if (!getMenu && params.containsKey("passwd")) { values = params.get("passwd"); if (values != null) { password = values.get(0); getMenu = ParametersChecker.isEmpty(password); } else { getMenu = true; } } else { getMenu = true; } } else { getMenu = true; } if (!getMenu && name != null) { |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 388 |
org/waarp/common/utility/Base64.java | Waarp Common | 401 |
org/waarp/common/utility/Base64.java | Waarp Common | 467 |
org/waarp/common/utility/Base64.java | Waarp Common | 480 |
org/waarp/common/utility/Base64.java | Waarp Common | 544 |
org/waarp/common/utility/Base64.java | Waarp Common | 557 |
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n' through 'z' -9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 - 178 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, |
File | Project | Line |
---|---|---|
org/waarp/openr66/database/model/DbModelOracleR66.java | Waarp OpenR66 | 139 |
org/waarp/openr66/database/model/DbModelOracleR66.java | Waarp OpenR66 | 294 |
action = new StringBuilder(createTableH2 + DbHostConfiguration.table + '('); final DbHostConfiguration.Columns[] chcolumns = DbHostConfiguration.Columns.values(); for (int i = 0; i < chcolumns.length - 1; i++) { action.append(chcolumns[i].name()) .append(DBType.getType(DbHostConfiguration.dbTypes[i])) .append(notNull).append(", "); } action.append(chcolumns[chcolumns.length - 1].name()).append( DBType.getType(DbHostConfiguration.dbTypes[chcolumns.length - 1])) .append(notNull).append(','); action.append(constraint + " hostconf_pk " + primaryKey + '(') .append(chcolumns[chcolumns.length - 1].name()).append("))"); SysErrLogger.FAKE_LOGGER.sysout(action); |
File | Project | Line |
---|---|---|
org/waarp/gateway/kernel/rest/client/HttpRestClientHelper.java | Waarp Gateway Kernel | 215 |
org/waarp/gateway/kernel/rest/client/HttpRestClientHelper.java | Waarp Gateway Kernel | 302 |
logger.debug("Uri ready: {}", uri.toASCIIString()); } final FullHttpRequest request; if (json != null) { logger.debug("Add body"); final ByteBuf buffer = Unpooled.wrappedBuffer(json.getBytes(WaarpStringUtils.UTF8)); request = new DefaultFullHttpRequest(HttpVersion.HTTP_1_1, method, uri.toASCIIString(), buffer); request.headers() .set(HttpHeaderNames.CONTENT_LENGTH, buffer.readableBytes()); } else { request = new DefaultFullHttpRequest(HttpVersion.HTTP_1_1, method, uri.toASCIIString()); } // it is legal to add directly header or cookie into the request until finalize request.headers().add(headers); request.headers().set(HttpHeaderNames.HOST, host); if (user != null) { request.headers().set( (CharSequence) RestArgument.REST_ROOT_FIELD.ARG_X_AUTH_USER.field, user); } request.headers().set( (CharSequence) RestArgument.REST_ROOT_FIELD.ARG_X_AUTH_TIMESTAMP.field, |
File | Project | Line |
---|---|---|
org/waarp/compress/zstdsafe/ZstdSafeCodec.java | Waarp Compression | 148 |
org/waarp/compress/zstdunsafe/ZstdUnsafeCodec.java | Waarp Compression | 154 |
maxOutputLength); } catch (final Exception e) { throw new MalformedInputException(e); } } @Override public final long decompress(final File input, final File output) throws MalformedInputException { InputStream inputStream = null; OutputStream outputStream = null; try { final byte[] buffer; inputStream = new FileInputStream(input); final byte[] sourceArray = ByteStreams.toByteArray(inputStream); outputStream = new FileOutputStream(output); buffer = new byte[getDecompressedSize(sourceArray, sourceArray.length)]; final int length = decompress(sourceArray, sourceArray.length, buffer, buffer.length); outputStream.write(buffer, 0, length); outputStream.flush(); FileUtils.close(outputStream); outputStream = null; return output.length(); } catch (final Exception e) { throw new MalformedInputException(e); } finally { FileUtils.close(inputStream); FileUtils.close(outputStream); } } |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 388 |
org/waarp/common/utility/Base64.java | Waarp Common | 401 |
org/waarp/common/utility/Base64.java | Waarp Common | 467 |
org/waarp/common/utility/Base64.java | Waarp Common | 480 |
org/waarp/common/utility/Base64.java | Waarp Common | 544 |
org/waarp/common/utility/Base64.java | Waarp Common | 557 |
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n' through 'z' -9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, |
File | Project | Line |
---|---|---|
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 674 |
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 828 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 508 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 666 |
new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_110, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_120, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_125, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_150, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_200, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_202, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_211, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_212, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_213, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_214, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_215, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_220, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_221, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), |
File | Project | Line |
---|---|---|
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 710 |
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 801 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 636 |
new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_221, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_225, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_226, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_227, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_229, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_230, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_232, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_234, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_250, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_257, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_331, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_332, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_350 new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY) |
File | Project | Line |
---|---|---|
org/waarp/gateway/kernel/database/data/DbTransferLog.java | Waarp Gateway Kernel | 817 |
org/waarp/gateway/kernel/database/data/DbTransferLog.java | Waarp Gateway Kernel | 857 |
final DbSession session, final boolean in) throws WaarpDatabaseNoConnectionException, WaarpDatabaseSqlException { String request = "SELECT COUNT(" + Columns.SPECIALID.name() + ") FROM " + table; final String inCond; if (in) { inCond = " (" + Columns.MODETRANS.name() + " = '" + PageRole.DELETE.name() + "' OR " + Columns.MODETRANS.name() + " = '" + PageRole.PUT.name() + "' OR " + Columns.MODETRANS.name() + " = '" + PageRole.POST.name() + "' OR " + Columns.MODETRANS.name() + " = '" + PageRole.POSTUPLOAD.name() + "') "; } else { inCond = " (" + Columns.MODETRANS.name() + " = '" + PageRole.GETDOWNLOAD.name() + "') "; } request += " WHERE " + inCond; request += " AND " + getLimitWhereCondition() + ' '; request += " AND " + Columns.STARTTRANS.name() + " >= ? "; |
File | Project | Line |
---|---|---|
org/waarp/openr66/protocol/http/adminssl/HttpResponsiveSslHandler.java | Waarp OpenR66 | 1082 |
org/waarp/openr66/protocol/http/adminssl/HttpResponsiveSslHandler.java | Waarp OpenR66 | 1123 |
} else if ("TestConn".equalsIgnoreCase(parm)) { final String host = getTrimValue("host"); if (ParametersChecker.isEmpty(host)) { errorText = Messages.getString("HttpSslHandler.17") + B_CENTER_P2; head = resetOptionHosts(head, "", "", false, true); head = setDbHostAuthJsonData(head, errorText, host, null, false, true); return head.replace(XXXRESULTXXX, errorText) .replace(XXXDATAJSONXXX, "[]"); } final DbHostAuth dbhost; try { dbhost = new DbHostAuth(host); } catch (final WaarpDatabaseException e) { errorText = Messages.getString("HttpSslHandler.17") + e.getMessage() + B_CENTER_P2; //$NON-NLS-1$ head = resetOptionHosts(head, "", "", false, true); head = setDbHostAuthJsonData(head, errorText, host, null, false, true); return head.replace(XXXRESULTXXX, errorText) .replace(XXXDATAJSONXXX, "[]"); } final R66Future result = new R66Future(true); |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 388 |
org/waarp/common/utility/Base64.java | Waarp Common | 401 |
org/waarp/common/utility/Base64.java | Waarp Common | 467 |
org/waarp/common/utility/Base64.java | Waarp Common | 480 |
org/waarp/common/utility/Base64.java | Waarp Common | 544 |
org/waarp/common/utility/Base64.java | Waarp Common | 557 |
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n' through 'z' -9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, |
File | Project | Line |
---|---|---|
org/waarp/gateway/ftp/database/data/DbTransferLog.java | Waarp Gateway Ftp | 910 |
org/waarp/gateway/kernel/database/data/DbTransferLog.java | Waarp Gateway Kernel | 923 |
if (!this.filename.equals(filename)) { this.filename = filename; allFields[Columns.FILENAME.ordinal()].setValue(this.filename); isSaved = false; } } /** * @return the isSender */ public final boolean isSender() { return isSender; } /** * @return the filename */ public final String getFilename() { return filename; } /** * @return the specialId */ public final long getSpecialId() { return specialId; } /** * @return the infotransf */ public final String getInfotransf() { return infotransf; } /** * @param infotransf the infotransf to set */ public final void setInfotransf(final String infotransf) { this.infotransf = infotransf; } /** * @return the user */ public final String getUser() { return user; } /** * @return the account */ public final String getAccount() { return account; } /** * @param stop the stop to set */ public final void setStop(final Timestamp stop) { this.stop = stop; } /** * @return the mode */ public final String getMode() { return mode; } /** * This method is to be called each time an operation is happening on Runner * * @throws WaarpDatabaseException */ public final void saveStatus() throws WaarpDatabaseException { update(); } /** * Clear the runner */ public final void clear() { // nothing } @Override public final String toString() { |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 388 |
org/waarp/common/utility/Base64.java | Waarp Common | 401 |
org/waarp/common/utility/Base64.java | Waarp Common | 467 |
org/waarp/common/utility/Base64.java | Waarp Common | 480 |
org/waarp/common/utility/Base64.java | Waarp Common | 544 |
org/waarp/common/utility/Base64.java | Waarp Common | 557 |
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n' through 'z' -9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, |
File | Project | Line |
---|---|---|
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 516 |
org/waarp/openr66/protocol/snmp/R66PrivateMib.java | Waarp OpenR66 | 362 |
logger.debug("Notify: " + element + ':' + message + ':' + message2); } agent.getNotificationOriginator() .notify(new OctetString("public"), element.getOID(rootOIDWaarpNotif), new VariableBinding[] { new VariableBinding(element.getOID(rootOIDWaarpNotif, 1), new OctetString(element.name())), new VariableBinding(element.getOID(rootOIDWaarpNotif, 1), new OctetString(message)), new VariableBinding(element.getOID(rootOIDWaarpNotif, 1), new OctetString(message2)), new VariableBinding(SnmpConstants.sysDescr, snmpv2.getDescr()), new VariableBinding(SnmpConstants.sysObjectID, snmpv2.getObjectID()), new VariableBinding(SnmpConstants.sysContact, snmpv2.getContact()), new VariableBinding(SnmpConstants.sysName, snmpv2.getName()), new VariableBinding(SnmpConstants.sysLocation, snmpv2.getLocation()) }); } |
File | Project | Line |
---|---|---|
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 710 |
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 828 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 501 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 666 |
new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_221, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_225, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_226, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_227, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_229, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_230, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_232, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_234, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_250, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_257, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_331, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_332, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_350 new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY) |
File | Project | Line |
---|---|---|
org/waarp/gateway/kernel/database/model/DbModelH2Kernel.java | Waarp Gateway Kernel | 64 |
org/waarp/gateway/kernel/database/model/DbModelMysqlKernel.java | Waarp Gateway Kernel | 69 |
org/waarp/gateway/kernel/database/model/DbModelPostgresqlKernel.java | Waarp Gateway Kernel | 59 |
StringBuilder action = new StringBuilder(createTableH2 + DbTransferLog.table + '('); final DbTransferLog.Columns[] acolumns = DbTransferLog.Columns.values(); for (int i = 0; i < acolumns.length; i++) { action.append(acolumns[i].name()) .append(DBType.getType(DbTransferLog.dbTypes[i])).append(notNull) .append(", "); } // Several columns for primary key action.append(" CONSTRAINT TRANSLOG_PK " + primaryKey + '('); for (int i = DbTransferLog.NBPRKEY; i > 1; i--) { action.append(acolumns[acolumns.length - i].name()).append(','); } action.append(acolumns[acolumns.length - 1].name()).append("))"); SysErrLogger.FAKE_LOGGER.sysout(action); |
File | Project | Line |
---|---|---|
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 713 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 571 |
new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_225, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_226, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_227, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_229, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_230, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_232, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_234, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_250, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_257, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_331, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_332, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_350 new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY) }; /** * Error part */ public enum WaarpErrorValuesIndex { |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 388 |
org/waarp/common/utility/Base64.java | Waarp Common | 401 |
org/waarp/common/utility/Base64.java | Waarp Common | 467 |
org/waarp/common/utility/Base64.java | Waarp Common | 480 |
org/waarp/common/utility/Base64.java | Waarp Common | 544 |
org/waarp/common/utility/Base64.java | Waarp Common | 557 |
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n' through 'z' -9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, |
File | Project | Line |
---|---|---|
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 831 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 512 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 571 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 669 |
new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_504, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_522, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_530, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_532, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_533, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_534, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_535, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_536, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_550, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_551, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_552, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_553 new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY) }; /** * Oper Status (as defined in Net Application SNMP) */ public enum OperStatus { |
File | Project | Line |
---|---|---|
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 799 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 569 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 633 |
public static final WaarpEntry[] WaarpErrorValues = { // reply_421, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_425, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_426, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_431, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_450, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_451, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_452, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_500, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_501, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_502, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_503, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_504, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_522, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), |
File | Project | Line |
---|---|---|
org/waarp/openr66/database/data/DbTaskRunner.java | Waarp OpenR66 | 1827 |
org/waarp/openr66/database/data/DbTaskRunner.java | Waarp OpenR66 | 1869 |
final DbSession session, final boolean in) throws WaarpDatabaseNoConnectionException, WaarpDatabaseSqlException { String request = SELECT_COUNT + Columns.SPECIALID.name() + ") FROM " + table; request += " WHERE " + getLimitWhereCondition() + " "; final String requesterd; final String from = Configuration.configuration.getHostId(); final String sfrom = Configuration.configuration.getHostSslId(); if (in) { requesterd = Columns.REQUESTED.name(); } else { requesterd = Columns.REQUESTER.name(); } if (from != null && sfrom != null) { request += AND + requesterd + " IN('" + from + "', '" + sfrom + "') "; } else if (from != null) { request += AND + requesterd + " = '" + from + "' "; } else { request += AND + requesterd + " = '" + sfrom + "' "; } request += AND + Columns.STARTTRANS.name() + " >= ? "; |
File | Project | Line |
---|---|---|
org/waarp/openr66/protocol/localhandler/packet/ErrorPacket.java | Waarp OpenR66 | 85 |
org/waarp/openr66/protocol/localhandler/packet/TestPacket.java | Waarp OpenR66 | 59 |
public ErrorPacket(final String header, final String middle, final int code) { sheader = header; smiddle = middle; this.code = code; } @Override public final boolean hasGlobalBuffer() { return true; } @Override public final synchronized void createAllBuffers( final LocalChannelReference lcr, final int networkHeader) { final byte[] headerBytes = sheader != null? sheader.getBytes(WaarpStringUtils.UTF8) : EMPTY_ARRAY; final int headerSize = headerBytes.length; final byte[] middleBytes = smiddle != null? smiddle.getBytes(WaarpStringUtils.UTF8) : EMPTY_ARRAY; final int middleSize = middleBytes.length; final int endSize = 4; final int globalSize = networkHeader + LOCAL_HEADER_SIZE + headerSize + middleSize + endSize; int offset = networkHeader + LOCAL_HEADER_SIZE; global = ByteBufAllocator.DEFAULT.ioBuffer(globalSize, globalSize); header = WaarpNettyUtil.slice(global, offset, headerSize); |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 388 |
org/waarp/common/utility/Base64.java | Waarp Common | 401 |
org/waarp/common/utility/Base64.java | Waarp Common | 467 |
org/waarp/common/utility/Base64.java | Waarp Common | 480 |
org/waarp/common/utility/Base64.java | Waarp Common | 544 |
org/waarp/common/utility/Base64.java | Waarp Common | 557 |
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n' through 'z' -9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, |
File | Project | Line |
---|---|---|
org/waarp/compress/zstdsafe/FiniteStateEntropy.java | Waarp Compression | 259 |
org/waarp/compress/zstdunsafe/FiniteStateEntropy.java | Waarp Compression | 265 |
state1 = table.encode(stream, state1, inputBase[input]); stream.flush(); } table.finish(stream, state2); table.finish(stream, state1); return stream.close(); } public static int optimalTableLog(final int maxTableLog, final int inputSize, final int maxSymbol) { if (inputSize <= 1) { throw new IllegalArgumentException(); // not supported. Use RLE instead } int result = maxTableLog; result = Math.min(result, Util.highestBit((inputSize - 1)) - 2); // we may be able to reduce accuracy if input is small // Need a minimum to safely represent all symbol values result = Math.max(result, Util.minTableLog(inputSize, maxSymbol)); result = Math.max(result, MIN_TABLE_LOG); result = Math.min(result, MAX_TABLE_LOG); return result; } public static void normalizeCounts(final short[] normalizedCounts, final int tableLog, final int[] counts, final int total, final int maxSymbol) { |
File | Project | Line |
---|---|---|
org/waarp/compress/zstdsafe/Huffman.java | Waarp Compression | 43 |
org/waarp/compress/zstdunsafe/Huffman.java | Waarp Compression | 41 |
class Huffman { public static final int MAX_SYMBOL = 255; public static final int MAX_SYMBOL_COUNT = MAX_SYMBOL + 1; public static final int MAX_TABLE_LOG = 12; public static final int MIN_TABLE_LOG = 5; public static final int MAX_FSE_TABLE_LOG = 6; public static final String NOT_ENOUGH_INPUT_BYTES = "Not enough input bytes"; public static final String INPUT_IS_CORRUPTED = "Input is corrupted"; // stats private final byte[] weights = new byte[MAX_SYMBOL + 1]; private final int[] ranks = new int[MAX_TABLE_LOG + 1]; // table private int tableLog = -1; private final byte[] symbols = new byte[1 << MAX_TABLE_LOG]; private final byte[] numbersOfBits = new byte[1 << MAX_TABLE_LOG]; private final FseTableReader reader = new FseTableReader(); private final FiniteStateEntropy.Table fseTable = new FiniteStateEntropy.Table(MAX_FSE_TABLE_LOG); public boolean isLoaded() { return tableLog != -1; } public int readTable(final byte[] inputBase, final int inputAddress, |
File | Project | Line |
---|---|---|
org/waarp/compress/zstdsafe/NodeTable.java | Waarp Compression | 38 |
org/waarp/compress/zstdunsafe/NodeTable.java | Waarp Compression | 38 |
class NodeTable { final int[] count; final short[] parents; final int[] symbols; final byte[] numberOfBits; public NodeTable(final int size) { count = new int[size]; parents = new short[size]; symbols = new int[size]; numberOfBits = new byte[size]; } public void reset() { Arrays.fill(count, 0); Arrays.fill(parents, (short) 0); Arrays.fill(symbols, 0); Arrays.fill(numberOfBits, (byte) 0); } public void copyNode(final int from, final int to) { count[to] = count[from]; parents[to] = parents[from]; symbols[to] = symbols[from]; numberOfBits[to] = numberOfBits[from]; } } |
File | Project | Line |
---|---|---|
org/waarp/ftp/client/WaarpFtp4jClient.java | Waarp Ftp R66 client | 400 |
org/waarp/ftp/client/WaarpFtpClient.java | Waarp Ftp R66 client | 384 |
} @Override public final boolean store(final String local, final String remote) { return transferFile(local, remote, 1); } @Override public final boolean store(final InputStream local, final String remote) { return transferFile(local, remote, 1); } @Override public final boolean append(final String local, final String remote) { return transferFile(local, remote, 2); } @Override public final boolean append(final InputStream local, final String remote) { return transferFile(local, remote, 2); } @Override public final boolean retrieve(final String local, final String remote) { return transferFile(local, remote, -1); } @Override public final boolean retrieve(final OutputStream local, final String remote) { return transferFile(local, remote); } |
File | Project | Line |
---|---|---|
org/waarp/gateway/ftp/database/data/DbTransferLog.java | Waarp Gateway Ftp | 203 |
org/waarp/gateway/kernel/database/data/DbTransferLog.java | Waarp Gateway Kernel | 201 |
select(); } @Override protected final void initObject() { primaryKey = new DbValue[] { new DbValue(user, Columns.USERID.name()), new DbValue(account, Columns.ACCOUNTID.name()), new DbValue(hostid, Columns.HOSTID.name()), new DbValue(specialId, Columns.SPECIALID.name()) }; otherFields = new DbValue[] { // FILENAME, MODETRANS, // STARTTRANS, STOPTRANS, TRANSINFO // INFOSTATUS, UPDATEDINFO new DbValue(filename, Columns.FILENAME.name()), new DbValue(mode, Columns.MODETRANS.name()), new DbValue(start, Columns.STARTTRANS.name()), new DbValue(stop, Columns.STOPTRANS.name()), new DbValue(infotransf, Columns.TRANSINFO.name()), new DbValue(ReplyCode.REPLY_000_SPECIAL_NOSTATUS.getCode(), |
File | Project | Line |
---|---|---|
org/waarp/gateway/ftp/database/data/DbTransferLog.java | Waarp Gateway Ftp | 1073 |
org/waarp/gateway/kernel/database/data/DbTransferLog.java | Waarp Gateway Kernel | 1086 |
values[5].setFromString(getErrorInfo().getMesg()); values[6].setFromString(infotransf); values[7].setFromString(getUpdatedInfo().name()); values[8].setFromString(start.toString()); values[9].setFromString(stop.toString()); } catch (final InvalidArgumentException e) { return null; } return values; } /** * Save the current DbTransferLog to a file * * @param filename * * @return The message for the HTTPS interface */ public final String saveDbTransferLog(final String filename) { final Document document = XmlUtil.createEmptyDocument(); final XmlValue[] roots = new XmlValue[1]; final XmlValue root = new XmlValue(logsElements[0]); roots[0] = root; String message; final XmlValue[] values = saveIntoXmlValue(); if (values == null) { return "Error during export"; } try { root.addValue(values); } catch (final InvalidObjectException e) { logger.error("Error during Write DbTransferLog file {}", e.getMessage()); |
File | Project | Line |
---|---|---|
org/waarp/openr66/server/LogExport.java | Waarp OpenR66 | 140 |
org/waarp/openr66/server/LogExtendedExport.java | Waarp OpenR66 | 315 |
logger = WaarpLoggerFactory.getLogger(LogExport.class); } if (args.length < 1) { logger.error(INFO_ARGS); return false; } if (!FileBasedConfiguration.setClientConfigurationFromXml( Configuration.configuration, args[0])) { logger.error(INFO_ARGS); return false; } String ssstart = null; String ssstop = null; for (int i = 1; i < args.length; i++) { if ("-purge".equalsIgnoreCase(args[i])) { spurgeLog = true; } else if ("-clean".equalsIgnoreCase(args[i])) { sclean = true; } else if ("-start".equalsIgnoreCase(args[i])) { i++; ssstart = args[i]; } else if ("-stop".equalsIgnoreCase(args[i])) { i++; ssstop = args[i]; } else if ("-host".equalsIgnoreCase(args[i])) { |
File | Project | Line |
---|---|---|
org/waarp/common/database/properties/MariaDBProperties.java | Waarp Common | 40 |
org/waarp/common/database/properties/OracleProperties.java | Waarp Common | 40 |
org/waarp/common/database/properties/PostgreSQLProperties.java | Waarp Common | 41 |
public MariaDBProperties() { // nothing } public static String getProtocolID() { return PROTOCOL; } @Override public final String getDriverName() { return DRIVER_NAME; } @Override public final String getValidationQuery() { return VALIDATION_QUERY; } @Override public final int getMaximumConnections(final Connection connection) throws SQLException { Statement stm = null; ResultSet rs = null; try { stm = connection.createStatement(); rs = stm.executeQuery(MAX_CONNECTION_QUERY); if (!rs.next()) { throw new SQLException("Cannot find max connection"); } return rs.getInt(1); } finally { if (rs != null) { try { rs.close(); } catch (final SQLException ignored) { // nothing } } if (stm != null) { try { stm.close(); } catch (final SQLException ignored) { // nothing } } } } } |
File | Project | Line |
---|---|---|
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 674 |
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 713 |
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 801 |
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 831 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 512 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 636 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 669 |
new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_110, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_120, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_125, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_150, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_200, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_202, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_211, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_212, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_213, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_214, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_215, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_220, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), |
File | Project | Line |
---|---|---|
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 677 |
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 680 |
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 683 |
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 686 |
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 689 |
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 692 |
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 695 |
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 698 |
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 701 |
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 704 |
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 707 |
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 710 |
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 804 |
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 807 |
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 810 |
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 813 |
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 816 |
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 819 |
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 822 |
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 825 |
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 828 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 505 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 508 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 571 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 639 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 642 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 645 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 648 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 651 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 654 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 657 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 660 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 663 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 666 |
new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_120, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_125, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_150, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_200, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_202, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_211, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_212, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_213, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_214, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_215, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_220, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_221, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), |
File | Project | Line |
---|---|---|
org/waarp/thrift/r66/R66Service.java | Waarp Thrift | 1094 |
org/waarp/thrift/r66/R66Service.java | Waarp Thrift | 1512 |
org/waarp/thrift/r66/R66Service.java | Waarp Thrift | 1921 |
org/waarp/thrift/r66/R66Service.java | Waarp Thrift | 3360 |
org/waarp/thrift/r66/R66Service.java | Waarp Thrift | 3774 |
} return null; } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(final int fieldId) { final _Fields fields = findByThriftId(fieldId); if (fields == null) { throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); } return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(final String name) { return byName.get(name); } private final short thriftId; private final String fieldName; _Fields(final short thriftId, final String fieldName) { this.thriftId = thriftId; this.fieldName = fieldName; } @Override public final short getThriftFieldId() { return thriftId; } @Override public final String getFieldName() { return fieldName; } } // isset id assignments public static final Map<_Fields, FieldMetaData> metaDataMap; static { final Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 388 |
org/waarp/common/utility/Base64.java | Waarp Common | 401 |
org/waarp/common/utility/Base64.java | Waarp Common | 467 |
org/waarp/common/utility/Base64.java | Waarp Common | 480 |
org/waarp/common/utility/Base64.java | Waarp Common | 544 |
org/waarp/common/utility/Base64.java | Waarp Common | 557 |
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n' through 'z' -9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, |
File | Project | Line |
---|---|---|
org/waarp/openr66/protocol/http/restv2/dbhandlers/TransferIdHandler.java | Waarp OpenR66 | 176 |
org/waarp/openr66/protocol/http/restv2/dbhandlers/TransferIdHandler.java | Waarp OpenR66 | 241 |
final String key = URLDecoder.decode(uri, WaarpStringUtils.UTF_8); final Pattern pattern = Pattern.compile("(-?\\d+)_(.+)"); final Matcher matcher = pattern.matcher(key); if (!matcher.find()) { responder.sendStatus(NOT_FOUND); return; } final String id = matcher.group(1); final String requested = matcher.group(2); TransferDAO transferDAO = null; try { final long transID = Long.parseLong(id); transferDAO = DAO_FACTORY.getTransferDAO(); if (!transferDAO.exist(transID, serverName(requested), requested, serverName())) { responder.sendStatus(NOT_FOUND); } else { final Transfer transfer = transferDAO.select(transID, serverName(requested), requested, serverName()); final ServerActions actions = new ServerActions(); actions.newSession(); actions.stopTransfer(transfer); |
File | Project | Line |
---|---|---|
org/waarp/thrift/r66/R66Service.java | Waarp Thrift | 1732 |
org/waarp/thrift/r66/R66Service.java | Waarp Thrift | 3579 |
final StringBuilder sb = new StringBuilder("infoTransferQuery_args("); sb.append("request:"); if (request == null) { sb.append("null"); } else { sb.append(request); } sb.append(')'); return sb.toString(); } public final void validate() throws TException { // check for required fields // check for sub-struct validity if (request != null) { request.validate(); } } private void writeObject(final ObjectOutputStream out) throws IOException { try { write(new TCompactProtocol(new TIOStreamTransport(out))); } catch (final TException te) { throw new IOException(te); } } private void readObject(final ObjectInputStream in) throws IOException, ClassNotFoundException { try { read(new TCompactProtocol(new TIOStreamTransport(in))); } catch (final TException te) { throw new IOException(te); } } private static class infoTransferQuery_argsStandardSchemeFactory |
File | Project | Line |
---|---|---|
org/waarp/compress/zstdsafe/FrameHeader.java | Waarp Compression | 46 |
org/waarp/compress/zstdunsafe/FrameHeader.java | Waarp Compression | 47 |
final int contentSize, final int dictionaryId, final boolean hasChecksum) { this.headerSize = headerSize; this.windowSize = windowSize; this.contentSize = contentSize; this.dictionaryId = dictionaryId; this.hasChecksum = hasChecksum; } @Override public boolean equals(final Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } final FrameHeader that = (FrameHeader) o; return headerSize == that.headerSize && windowSize == that.windowSize && contentSize == that.contentSize && dictionaryId == that.dictionaryId && hasChecksum == that.hasChecksum; } @Override public int hashCode() { return Arrays.hashCode(new Object[] { headerSize, windowSize, contentSize, dictionaryId, hasChecksum }); } @Override public String toString() { return new StringBuilder(FrameHeader.class.getSimpleName() + "[").append( |
File | Project | Line |
---|---|---|
org/waarp/openr66/configuration/FileBasedConfiguration.java | Waarp OpenR66 | 2070 |
org/waarp/openr66/configuration/FileBasedConfiguration.java | Waarp OpenR66 | 2152 |
org/waarp/openr66/configuration/FileBasedConfiguration.java | Waarp OpenR66 | 2352 |
org/waarp/openr66/configuration/FileBasedConfiguration.java | Waarp OpenR66 | 2456 |
public static boolean setConfigurationServerMinimalFromXml( final Configuration config, final String filename) { if (!SystemPropertyUtil.get( R66SystemProperties.OPENR66_STARTUP_DATABASE_CHECK, "").isEmpty()) { logger.warn(IS_DEPRECATED_IN_SYSTEM_PROPERTIES_USE_INSTEAD, R66SystemProperties.OPENR66_STARTUP_DATABASE_CHECK, R66SystemProperties.OPENR66_STARTUP_DATABASE_AUTOUPGRADE); autoupgrade = SystemPropertyUtil.getBoolean( R66SystemProperties.OPENR66_STARTUP_DATABASE_CHECK, false); } else { autoupgrade = SystemPropertyUtil.getBoolean( R66SystemProperties.OPENR66_STARTUP_DATABASE_AUTOUPGRADE, false); } final Document document; // Open config file try { document = XmlUtil.getNewSaxReader().read(filename); } catch (final DocumentException e) { logger.error( Messages.getString(FILE_BASED_CONFIGURATION_CANNOT_READ_XML) + filename + ": {}", e.getMessage()); //$NON-NLS-1$ return false; } if (document == null) { logger.error( Messages.getString(FILE_BASED_CONFIGURATION_CANNOT_READ_XML) + filename); //$NON-NLS-1$ return false; } configuration = XmlUtil.read(document, configServer); |
File | Project | Line |
---|---|---|
org/waarp/thrift/r66/R66Request.java | Waarp Thrift | 736 |
org/waarp/thrift/r66/R66Result.java | Waarp Thrift | 1038 |
action = null; } } @Override public final void setFieldValue(final _Fields field, final Object value) { switch (field) { case MODE: if (value == null) { unsetMode(); } else { setMode((RequestMode) value); } break; case FROMUID: if (value == null) { unsetFromuid(); } else { setFromuid((String) value); } break; case DESTUID: if (value == null) { unsetDestuid(); } else { setDestuid((String) value); } break; case FILE: if (value == null) { unsetFile(); } else { setFile((String) value); } break; case RULE: if (value == null) { unsetRule(); } else { setRule((String) value); } break; case INFO: |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 388 |
org/waarp/common/utility/Base64.java | Waarp Common | 403 |
org/waarp/common/utility/Base64.java | Waarp Common | 467 |
org/waarp/common/utility/Base64.java | Waarp Common | 482 |
org/waarp/common/utility/Base64.java | Waarp Common | 544 |
org/waarp/common/utility/Base64.java | Waarp Common | 559 |
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n' through 'z' -9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, |
File | Project | Line |
---|---|---|
org/waarp/openr66/database/model/DbModelFactoryR66.java | Waarp OpenR66 | 644 |
org/waarp/openr66/database/model/DbModelH2R66.java | Waarp OpenR66 | 110 |
final DbSession session, final String version) throws WaarpDatabaseNoConnectionException { if (PartnerConfiguration.isVersion2GEQVersion1( R66Versions.V3_1_0.getVersion(), version)) { return true; } if (PartnerConfiguration.isVersion2GEQVersion1(version, R66Versions.V2_4_13.getVersion())) { SysErrLogger.FAKE_LOGGER.sysout( version + " to " + R66Versions.V2_4_13.getVersion() + "? " + true); final String createTableH2 = "CREATE TABLE IF NOT EXISTS "; final String primaryKey = " PRIMARY KEY "; final String notNull = " NOT NULL "; // HostConfiguration final StringBuilder action = new StringBuilder(createTableH2 + DbHostConfiguration.table + '('); final DbHostConfiguration.Columns[] chcolumns = DbHostConfiguration.Columns.values(); for (int i = 0; i < chcolumns.length - 1; i++) { action.append(chcolumns[i].name()) .append(dbTypeResolver.getType(DbHostConfiguration.dbTypes[i])) |
File | Project | Line |
---|---|---|
org/waarp/common/database/WaarpBasicDataSourceJava6.java | Waarp Common | 15 |
org/waarp/common/database/WaarpBasicDataSourceJava8.java | Waarp Common | 15 |
public WaarpBasicDataSourceJava6() { dataSource = new BasicDataSource(); } @Override public void setDriverClassName(final String driverClassName) { dataSource.setDriverClassName(driverClassName); } @Override public void setUrl(final String url) { dataSource.setUrl(url); } @Override public void setUsername(final String user) { dataSource.setUsername(user); } @Override public void setPassword(final String password) { dataSource.setPassword(password); } @Override public void setDefaultAutoCommit(final boolean autoCommit) { dataSource.setDefaultAutoCommit(autoCommit); } @Override public void setDefaultReadOnly(final boolean readOnly) { dataSource.setDefaultReadOnly(readOnly); } @Override public void setValidationQuery(final String validationQuery) { dataSource.setValidationQuery(validationQuery); } @Override public void setMaxActive(final int maxConnections) { dataSource.setMaxActive(maxConnections); |
File | Project | Line |
---|---|---|
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 713 |
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 831 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 501 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 571 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 669 |
new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_225, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_226, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_227, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_229, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_230, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_232, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_234, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_250, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_257, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_331, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_332, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_350 new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY) |
File | Project | Line |
---|---|---|
org/waarp/openr66/proxy/configuration/FileBasedConfiguration.java | Waarp Proxy in R66 protocol | 141 |
org/waarp/openr66/configuration/FileBasedElements.java | Waarp OpenR66 | 680 |
new XmlDecl(XmlType.LONG, XML_LIMITDELAY), new XmlDecl(XmlType.LONG, XML_DELAYRETRY), new XmlDecl(XmlType.INTEGER, XML_SERVER_THREAD), new XmlDecl(XmlType.INTEGER, XML_CLIENT_THREAD), new XmlDecl(XmlType.LONG, XML_MEMORY_LIMIT), new XmlDecl(XmlType.BOOLEAN, XML_CSTRT_USECPULIMIT), new XmlDecl(XmlType.BOOLEAN, XML_CSTRT_USECPUJDKLIMIT), new XmlDecl(XmlType.DOUBLE, XML_CSTRT_CPULIMIT), new XmlDecl(XmlType.INTEGER, XML_CSTRT_CONNLIMIT), new XmlDecl(XmlType.DOUBLE, XML_CSTRT_LOWCPULIMIT), new XmlDecl(XmlType.DOUBLE, XML_CSTRT_HIGHCPULIMIT), new XmlDecl(XmlType.DOUBLE, XML_CSTRT_PERCENTDECREASE), new XmlDecl(XmlType.LONG, XML_CSTRT_LIMITLOWBANDWIDTH), new XmlDecl(XmlType.LONG, XML_CSTRT_DELAYTHROTTLE), new XmlDecl(XmlType.LONG, XML_TIMEOUTCON), new XmlDecl(XmlType.BOOLEAN, XML_CHECKVERSION) |
File | Project | Line |
---|---|---|
org/waarp/openr66/configuration/FileBasedConfiguration.java | Waarp OpenR66 | 2166 |
org/waarp/openr66/configuration/FileBasedConfiguration.java | Waarp OpenR66 | 2252 |
final Document document; // Open config file try { document = XmlUtil.getNewSaxReader().read(filename); } catch (final DocumentException e) { logger.error( Messages.getString(FILE_BASED_CONFIGURATION_CANNOT_READ_XML) + filename + ": {}", e.getMessage()); //$NON-NLS-1$ return false; } if (document == null) { logger.error( Messages.getString(FILE_BASED_CONFIGURATION_CANNOT_READ_XML) + filename); //$NON-NLS-1$ return false; } configuration = XmlUtil.read(document, configServer); hashRootConfig = new XmlRootHash(configuration); // Now read the configuration if (!loadIdentity(config, hashRootConfig)) { logger.error(CANNOT_LOAD_IDENTITY); return false; } if (!loadDatabase(config, false)) { logger.error(CANNOT_LOAD_DATABASE_CONFIGURATION); return false; } if (!loadServerParam(config)) { logger.error("Cannot load Server Parameters"); return false; } if (!loadDirectory(config)) { |
File | Project | Line |
---|---|---|
org/waarp/openr66/database/model/DbModelFactoryR66.java | Waarp OpenR66 | 254 |
org/waarp/openr66/database/model/DbModelFactoryR66.java | Waarp OpenR66 | 660 |
action = new StringBuilder(createTableH2 + DbHostConfiguration.table + '('); final DbHostConfiguration.Columns[] chcolumns = DbHostConfiguration.Columns.values(); for (int i = 0; i < chcolumns.length - 1; i++) { action.append(chcolumns[i].name()) .append(dbTypeResolver.getType(DbHostConfiguration.dbTypes[i])) .append(notNull).append(", "); } action.append(chcolumns[chcolumns.length - 1].name()).append( dbTypeResolver.getType( DbHostConfiguration.dbTypes[chcolumns.length - 1])) .append(primaryKey).append(')'); SysErrLogger.FAKE_LOGGER.sysout(action); if (executeRequestAction(session, action)) { return null; |
File | Project | Line |
---|---|---|
org/waarp/openr66/protocol/http/adminssl/HttpResponsiveSslHandler.java | Waarp OpenR66 | 2245 |
org/waarp/openr66/protocol/http/adminssl/HttpSslHandler.java | Waarp OpenR66 | 729 |
head, startid, stopid, tstart, tstop, rule, req, pending, transfer, error, seeAll); } } else { DbPreparedStatement preparedStatement = null; try { preparedStatement = DbTaskRunner.getFilterPrepareStatement(dbSession, 0, false, startid, stopid, tstart, tstop, rule, req, pending, transfer, error, false, all, seeAll); preparedStatement.executeQuery(); while (preparedStatement.getNext()) { try { final DbTaskRunner taskRunner = DbTaskRunner.getFromStatement(preparedStatement); final LocalChannelReference lcr = Configuration.configuration.getLocalTransaction() .getFromRequest( taskRunner.getKey()); final R66Result finalResult = TransferUtils.restartTransfer(taskRunner, lcr); final ErrorCode result = finalResult.getCode(); final ErrorCode last = taskRunner.getErrorInfo(); taskRunner.setErrorExecutionStatus(result); |
File | Project | Line |
---|---|---|
org/waarp/openr66/protocol/http/restv2/dbhandlers/TransferIdHandler.java | Waarp OpenR66 | 176 |
org/waarp/openr66/protocol/http/restv2/dbhandlers/TransferIdHandler.java | Waarp OpenR66 | 304 |
final String key = URLDecoder.decode(uri, WaarpStringUtils.UTF_8); final Pattern pattern = Pattern.compile("(-?\\d+)_(.+)"); final Matcher matcher = pattern.matcher(key); if (!matcher.find()) { responder.sendStatus(NOT_FOUND); return; } final String id = matcher.group(1); final String requested = matcher.group(2); TransferDAO transferDAO = null; try { final long transID = Long.parseLong(id); transferDAO = DAO_FACTORY.getTransferDAO(); if (!transferDAO.exist(transID, serverName(requested), requested, serverName())) { responder.sendStatus(NOT_FOUND); } else { final Transfer transfer = transferDAO.select(transID, serverName(requested), requested, serverName()); final ServerActions actions = new ServerActions(); actions.newSession(); actions.stopTransfer(transfer); |
File | Project | Line |
---|---|---|
org/waarp/compress/zstdsafe/ZstdFrameCompressor.java | Waarp Compression | 308 |
org/waarp/compress/zstdunsafe/ZstdFrameCompressor.java | Waarp Compression | 311 |
final int outputAddress, final int outputSize, final byte[] literals, final int literalsSize) { // TODO: move this to Strategy final boolean bypassCompression = (parameters.getStrategy() == CompressionParameters.Strategy.FAST) && (parameters.getTargetLength() > 0); if (bypassCompression || literalsSize <= MINIMUM_LITERALS_SIZE) { return rawLiterals(outputBase, outputAddress, outputSize, literals, literalsSize); } final int headerSize = 3 + (literalsSize >= 1024? 1 : 0) + (literalsSize >= 16384? 1 : 0); checkArgument(headerSize + 1 <= outputSize, OUTPUT_BUFFER_TOO_SMALL); final int[] counts = new int[MAX_SYMBOL_COUNT]; // TODO: preallocate Histogram.count(literals, literalsSize, counts); final int maxSymbol = Histogram.findMaxSymbol(counts, MAX_SYMBOL); final int largestCount = Histogram.findLargestCount(counts, maxSymbol); final int literalsAddress = 0; |
File | Project | Line |
---|---|---|
org/waarp/openr66/protocol/http/rest/handler/HttpRestConfigR66Handler.java | Waarp OpenR66 | 67 |
org/waarp/openr66/protocol/http/rest/handler/HttpRestControlR66Handler.java | Waarp OpenR66 | 75 |
org/waarp/openr66/protocol/http/rest/handler/HttpRestInformationR66Handler.java | Waarp OpenR66 | 64 |
org/waarp/openr66/protocol/http/rest/handler/HttpRestLogR66Handler.java | Waarp OpenR66 | 65 |
setIntersectionMethods(methods, METHOD.GET, METHOD.PUT); } @Override public final void endParsingRequest(final HttpRestHandler handler, final RestArgument arguments, final RestArgument result, final Object body) throws HttpIncorrectRequestException, HttpInvalidAuthenticationException { try { HttpRestV1Utils.checkSanity(arguments); } catch (final InvalidArgumentException e) { throw new HttpIncorrectRequestException("Issue on values", e); } logger.debug("debug: {} ### {}", arguments, result); if (body != null) { logger.debug("Obj: {}", body); } handler.setWillClose(false); final ServerActions serverHandler = ((HttpRestR66Handler) handler).getServerHandler(); // now action according to body final JsonPacket json = (JsonPacket) body; if (json == null) { result.setDetail("not enough information"); setError(handler, result, HttpResponseStatus.BAD_REQUEST); return; } result.getAnswer() .put(AbstractDbData.JSON_MODEL, RESTHANDLERS.Config.name()); |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 388 |
org/waarp/common/utility/Base64.java | Waarp Common | 403 |
org/waarp/common/utility/Base64.java | Waarp Common | 467 |
org/waarp/common/utility/Base64.java | Waarp Common | 482 |
org/waarp/common/utility/Base64.java | Waarp Common | 544 |
org/waarp/common/utility/Base64.java | Waarp Common | 559 |
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n' through 'z' -9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, |
File | Project | Line |
---|---|---|
org/waarp/gateway/ftp/database/data/DbTransferLog.java | Waarp Gateway Ftp | 806 |
org/waarp/gateway/ftp/database/data/DbTransferLog.java | Waarp Gateway Ftp | 845 |
final DbSession session, final boolean in) throws WaarpDatabaseNoConnectionException, WaarpDatabaseSqlException { String request = "SELECT COUNT(" + Columns.SPECIALID.name() + ") FROM " + table; final String inCond; if (in) { inCond = " (" + Columns.MODETRANS.name() + " = '" + FtpCommandCode.APPE.name() + "' OR " + Columns.MODETRANS.name() + " = '" + FtpCommandCode.STOR.name() + "' OR " + Columns.MODETRANS.name() + " = '" + FtpCommandCode.STOU.name() + "') "; } else { inCond = " (" + Columns.MODETRANS.name() + " = '" + FtpCommandCode.RETR.name() + "') "; } request += " WHERE " + inCond; request += " AND " + getLimitWhereCondition() + ' '; request += " AND " + Columns.STARTTRANS.name() + " >= ? "; |
File | Project | Line |
---|---|---|
org/waarp/thrift/r66/R66Service.java | Waarp Thrift | 897 |
org/waarp/thrift/r66/R66Service.java | Waarp Thrift | 1733 |
org/waarp/thrift/r66/R66Service.java | Waarp Thrift | 3580 |
sb.append(REQUEST2); if (request == null) { sb.append("null"); } else { sb.append(request); } sb.append(')'); return sb.toString(); } public final void validate() throws TException { // check for required fields // check for sub-struct validity if (request != null) { request.validate(); } } private void writeObject(final ObjectOutputStream out) throws IOException { try { write(new TCompactProtocol(new TIOStreamTransport(out))); } catch (final TException te) { throw new IOException(te); } } private void readObject(final ObjectInputStream in) throws IOException, ClassNotFoundException { try { read(new TCompactProtocol(new TIOStreamTransport(in))); } catch (final TException te) { throw new IOException(te); } } private static class transferRequestQuery_argsStandardSchemeFactory |
File | Project | Line |
---|---|---|
org/waarp/thrift/r66/R66Service.java | Waarp Thrift | 1318 |
org/waarp/thrift/r66/R66Service.java | Waarp Thrift | 2142 |
sb.append(SUCCESS2); if (success == null) { sb.append("null"); } else { sb.append(success); } sb.append(')'); return sb.toString(); } public final void validate() throws TException { // check for required fields // check for sub-struct validity if (success != null) { success.validate(); } } private void writeObject(final ObjectOutputStream out) throws IOException { try { write(new TCompactProtocol(new TIOStreamTransport(out))); } catch (final TException te) { throw new IOException(te); } } private void readObject(final ObjectInputStream in) throws IOException, ClassNotFoundException { try { read(new TCompactProtocol(new TIOStreamTransport(in))); } catch (final TException te) { throw new IOException(te); } } private static class transferRequestQuery_resultStandardSchemeFactory |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 388 |
org/waarp/common/utility/Base64.java | Waarp Common | 403 |
org/waarp/common/utility/Base64.java | Waarp Common | 467 |
org/waarp/common/utility/Base64.java | Waarp Common | 482 |
org/waarp/common/utility/Base64.java | Waarp Common | 544 |
org/waarp/common/utility/Base64.java | Waarp Common | 559 |
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n' through 'z' -9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, |
File | Project | Line |
---|---|---|
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 674 |
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 716 |
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 801 |
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 834 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 515 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 571 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 574 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 636 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 672 |
new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_110, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_120, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_125, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_150, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_200, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_202, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_211, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_212, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_213, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_214, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_215, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), |
File | Project | Line |
---|---|---|
org/waarp/gateway/ftp/database/data/DbTransferLog.java | Waarp Gateway Ftp | 624 |
org/waarp/gateway/kernel/database/data/DbTransferLog.java | Waarp Gateway Kernel | 634 |
org/waarp/openr66/database/data/DbTaskRunner.java | Waarp OpenR66 | 1668 |
getLimitWhereCondition() + " AND " + Columns.UPDATEDINFO.name() + " = ? "; final DbPreparedStatement pstt = new DbPreparedStatement(session, request); session.addLongTermPreparedStatement(pstt); return pstt; } /** * @param pstt * @param info * @param time * * @return the number of elements (COUNT) from the statement */ public static long getResultCountPrepareStatement( final DbPreparedStatement pstt, final UpdatedInfo info, final long time) { long result = 0; try { finishSelectOrCountPrepareStatement(pstt, time); pstt.getPreparedStatement().setInt(2, info.ordinal()); pstt.executeQuery(); if (pstt.getNext()) { result = pstt.getResultSet().getLong(1); } } catch (final WaarpDatabaseNoConnectionException ignored) { // nothing } catch (final WaarpDatabaseSqlException ignored) { // nothing } catch (final SQLException ignored) { // nothing } finally { pstt.close(); } return result; } /** * @param session * * @return the DbPreparedStatement for getting Runner according to status * ordered by start * * @throws WaarpDatabaseNoConnectionException * @throws WaarpDatabaseSqlException */ public static DbPreparedStatement getCountStatusPrepareStatement( |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 388 |
org/waarp/common/utility/Base64.java | Waarp Common | 403 |
org/waarp/common/utility/Base64.java | Waarp Common | 467 |
org/waarp/common/utility/Base64.java | Waarp Common | 482 |
org/waarp/common/utility/Base64.java | Waarp Common | 544 |
org/waarp/common/utility/Base64.java | Waarp Common | 559 |
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n' through 'z' -9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, |
File | Project | Line |
---|---|---|
org/waarp/compress/zstdsafe/SequenceEncoder.java | Waarp Compression | 133 |
org/waarp/compress/zstdunsafe/SequenceEncoder.java | Waarp Compression | 133 |
output++; workspace.literalLengthTable.initializeRleTable(maxSymbol); literalLengthTable = workspace.literalLengthTable; break; case SEQUENCE_ENCODING_BASIC: literalLengthTable = DEFAULT_LITERAL_LENGTHS_TABLE; break; case SEQUENCE_ENCODING_COMPRESSED: output += buildCompressionTable(workspace.literalLengthTable, outputBase, output, outputLimit, sequenceCount, LITERAL_LENGTH_TABLE_LOG, sequences.literalLengthCodes, workspace.counts, maxSymbol, workspace.normalizedCounts); literalLengthTable = workspace.literalLengthTable; break; default: throw new UnsupportedOperationException(NOT_YET_IMPLEMENTED); } // offsets Histogram.count(sequences.offsetCodes, sequenceCount, workspace.counts); maxSymbol = Histogram.findMaxSymbol(counts, MAX_OFFSET_CODE_SYMBOL); largestCount = Histogram.findLargestCount(counts, maxSymbol); // We can only use the basic table if max <= DEFAULT_MAX_OFFSET_CODE_SYMBOL, otherwise the offsets are too large . final boolean defaultAllowed = maxSymbol < DEFAULT_MAX_OFFSET_CODE_SYMBOL; final int offsetEncodingType = selectEncodingType(largestCount, sequenceCount, DEFAULT_OFFSET_NORMALIZED_COUNTS_LOG, defaultAllowed, strategy); final FseCompressionTable offsetCodeTable; switch (offsetEncodingType) { case SEQUENCE_ENCODING_RLE: |
File | Project | Line |
---|---|---|
org/waarp/compress/zstdsafe/Huffman.java | Waarp Compression | 379 |
org/waarp/compress/zstdunsafe/Huffman.java | Waarp Compression | 383 |
final int outputLimit) { final int tableLog1 = this.tableLog; final byte[] numbersOfBits1 = this.numbersOfBits; final byte[] symbols1 = this.symbols; // closer to the end while (outputAddress < outputLimit) { final BitInputStream.Loader loader = new BitInputStream.Loader(inputBase, startAddress, currentAddress, bits, bitsConsumed); final boolean done = loader.load(); bitsConsumed = loader.getBitsConsumed(); bits = loader.getBits(); currentAddress = loader.getCurrentAddress(); if (done) { break; } bitsConsumed = decodeSymbol(outputBase, outputAddress++, bits, bitsConsumed, tableLog1, numbersOfBits1, symbols1); } // not more data in bit stream, so no need to reload while (outputAddress < outputLimit) { bitsConsumed = decodeSymbol(outputBase, outputAddress++, bits, bitsConsumed, tableLog1, numbersOfBits1, symbols1); } |
File | Project | Line |
---|---|---|
org/waarp/http/protocol/HttpDeleteSession.java | Waarp Http | 79 |
org/waarp/http/protocol/HttpDownloadSession.java | Waarp Http | 156 |
} /** * Reload the DbTaskRunner for this user and rulename * * @param user * @param identifier * * @return the DbTaskRunner, potentially new * * @throws IllegalArgumentException */ private DbTaskRunner getDbTaskRunner(final String user, final String identifier) throws IllegalArgumentException, WaarpDatabaseException { final long specialId = Long.parseLong(identifier); final String requested = Configuration.configuration.getHostId(); DbTaskRunner runner = null; // Try to reload it try { logger.debug("{} {} <-> {}", specialId, user, requested); runner = new DbTaskRunner(specialId, user, requested); } catch (final WaarpDatabaseException e) { logger.debug("{} {} {}", specialId, user, requested); runner = new DbTaskRunner(specialId, requested, user); } runner.setSender(true); try { session.setRunner(runner); } catch (final OpenR66RunnerErrorException e) { logger.debug(e); } session.setReady(true); return runner; } /** * @return the File */ public final File getFile() { |
File | Project | Line |
---|---|---|
org/waarp/openr66/protocol/http/restv2/dbhandlers/TransferIdHandler.java | Waarp OpenR66 | 118 |
org/waarp/openr66/protocol/http/restv2/dbhandlers/TransferIdHandler.java | Waarp OpenR66 | 241 |
org/waarp/openr66/protocol/http/restv2/dbhandlers/TransferIdHandler.java | Waarp OpenR66 | 304 |
final String key = URLDecoder.decode(uri, UTF8_CHARSET.name()); final Pattern pattern = Pattern.compile("(-?\\d+)_(.+)"); final Matcher matcher = pattern.matcher(key); if (!matcher.find()) { responder.sendStatus(NOT_FOUND); return; } final String id = matcher.group(1); final String requested = matcher.group(2); TransferDAO transferDAO = null; try { final long transID = Long.parseLong(id); transferDAO = DAO_FACTORY.getTransferDAO(); if (!transferDAO.exist(transID, serverName(requested), requested, serverName())) { responder.sendStatus(NOT_FOUND); } else { final Transfer transfer = transferDAO.select(transID, serverName(requested), requested, serverName()); final ObjectNode response = TransferConverter.transferToNode(transfer); |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 388 |
org/waarp/common/utility/Base64.java | Waarp Common | 403 |
org/waarp/common/utility/Base64.java | Waarp Common | 467 |
org/waarp/common/utility/Base64.java | Waarp Common | 482 |
org/waarp/common/utility/Base64.java | Waarp Common | 544 |
org/waarp/common/utility/Base64.java | Waarp Common | 559 |
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n' through 'z' -9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, |
File | Project | Line |
---|---|---|
org/waarp/openr66/protocol/http/restv2/dbhandlers/TransferIdHandler.java | Waarp OpenR66 | 241 |
org/waarp/openr66/protocol/http/restv2/dbhandlers/TransferIdHandler.java | Waarp OpenR66 | 304 |
org/waarp/openr66/protocol/http/restv2/dbhandlers/TransferIdHandler.java | Waarp OpenR66 | 368 |
final String key = URLDecoder.decode(uri, WaarpStringUtils.UTF8.name()); final Pattern pattern = Pattern.compile("(-?\\d+)_(.+)"); final Matcher matcher = pattern.matcher(key); if (!matcher.find()) { responder.sendStatus(NOT_FOUND); return; } final String id = matcher.group(1); final String requested = matcher.group(2); TransferDAO transferDAO = null; try { final long transID = Long.parseLong(id); transferDAO = DAO_FACTORY.getTransferDAO(); if (!transferDAO.exist(transID, serverName(requested), requested, serverName())) { responder.sendStatus(NOT_FOUND); } else { final Transfer transfer = transferDAO.select(transID, serverName(requested), requested, serverName()); |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 439 |
org/waarp/common/utility/Base64.java | Waarp Common | 516 |
private static final byte[] _URL_SAFE_DECODABET = { -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 0 - 8 -5, -5, // Whitespace: Tab and Linefeed -9, -9, // Decimal 11 - 12 -5, // Whitespace: Carriage Return -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 14 - 26 -9, -9, -9, -9, -9, // Decimal 27 - 31 -5, // Whitespace: Space -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 33 - 42 -9, // Plus sign at decimal 43 -9, // Decimal 44 |
File | Project | Line |
---|---|---|
org/waarp/gateway/ftp/config/FileBasedConfiguration.java | Waarp Gateway Ftp | 375 |
org/waarp/openr66/proxy/configuration/FileBasedConfiguration.java | Waarp Proxy in R66 protocol | 142 |
org/waarp/openr66/configuration/FileBasedElements.java | Waarp OpenR66 | 681 |
new XmlDecl(XmlType.LONG, XML_LIMITDELAY), new XmlDecl(XmlType.INTEGER, XML_SERVER_THREAD), new XmlDecl(XmlType.INTEGER, XML_CLIENT_THREAD), new XmlDecl(XmlType.LONG, XML_MEMORY_LIMIT), new XmlDecl(XmlType.BOOLEAN, XML_CSTRT_USECPULIMIT), new XmlDecl(XmlType.BOOLEAN, XML_CSTRT_USECPUJDKLIMIT), new XmlDecl(XmlType.DOUBLE, XML_CSTRT_CPULIMIT), new XmlDecl(XmlType.INTEGER, XML_CSTRT_CONNLIMIT), new XmlDecl(XmlType.DOUBLE, XML_CSTRT_LOWCPULIMIT), new XmlDecl(XmlType.DOUBLE, XML_CSTRT_HIGHCPULIMIT), new XmlDecl(XmlType.DOUBLE, XML_CSTRT_PERCENTDECREASE), new XmlDecl(XmlType.LONG, XML_CSTRT_LIMITLOWBANDWIDTH), new XmlDecl(XmlType.LONG, XML_CSTRT_DELAYTHROTTLE), new XmlDecl(XmlType.LONG, XML_TIMEOUTCON), new XmlDecl(XmlType.LONG, XML_DATA_TIMEOUTCON), |
File | Project | Line |
---|---|---|
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 538 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 364 |
} /** * MIB entry levels */ public enum MibLevel { staticInfo, globalInfo, detailedInfo, errorInfo, trapInfo } // From now the MIB definition /** * Notification Elements */ public enum NotificationElements { TrapShutdown(1), TrapError(2), TrapWarning(3), TrapOverloaded(4), InfoTask(5); public final int[] oid; NotificationElements(final int oid) { this.oid = new int[] { oid }; } public final OID getOID(final OID oidBase) { return new OID(oidBase.getValue(), oid); } public final OID getOID(final OID oidBase, final int rank) { final int[] ids = { oid[0], rank }; return new OID(oidBase.getValue(), ids); } } /** * Notification for a task trap */ public enum NotificationTasks { |
File | Project | Line |
---|---|---|
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 716 |
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 834 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 501 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 574 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 672 |
new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_226, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_227, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_229, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_230, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_232, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_234, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_250, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_257, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_331, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_332, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_350 new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY) |
File | Project | Line |
---|---|---|
org/waarp/gateway/kernel/database/model/DbModelH2Kernel.java | Waarp Gateway Kernel | 94 |
org/waarp/gateway/kernel/database/model/DbModelMysqlKernel.java | Waarp Gateway Kernel | 97 |
org/waarp/gateway/kernel/database/model/DbModelOracleKernel.java | Waarp Gateway Kernel | 94 |
"("); final DbTransferLog.Columns[] icolumns = DbTransferLog.indexes; for (int i = 0; i < icolumns.length - 1; i++) { action.append(icolumns[i].name()).append(", "); } action.append(icolumns[icolumns.length - 1].name()).append(')'); SysErrLogger.FAKE_LOGGER.sysout(action); try { request.query(action.toString()); } catch (final WaarpDatabaseNoConnectionException e) { SysErrLogger.FAKE_LOGGER.ignoreLog(e); return; } catch (final WaarpDatabaseSqlException e) { SysErrLogger.FAKE_LOGGER.ignoreLog(e); // XXX FIX No return } finally { request.close(); } // cptrunner action = new StringBuilder("DROP SEQUENCE IF EXISTS " + DbTransferLog.fieldseq); |
File | Project | Line |
---|---|---|
org/waarp/openr66/database/model/DbModelH2R66.java | Waarp OpenR66 | 247 |
org/waarp/openr66/database/model/DbModelOracleR66.java | Waarp OpenR66 | 400 |
" ALTER COLUMN ", " ", " NOT NULL "); try { final String command = "DROP INDEX IF EXISTS IDX_RUNNER "; try { SysErrLogger.FAKE_LOGGER.sysout("Command: " + command); request.query(command); } catch (final WaarpDatabaseNoConnectionException e) { SysErrLogger.FAKE_LOGGER.ignoreLog(e); return false; } catch (final WaarpDatabaseSqlException e) { SysErrLogger.FAKE_LOGGER.ignoreLog(e); // XXX FIX no return } DbModelFactoryR66.createIndex30(dbTypeResolver, request); } finally { request.close(); } } DbHostConfiguration.updateVersionDb(Configuration.configuration.getHostId(), R66Versions.V3_1_0.getVersion()); return true; } @Override public final boolean needUpgradeDb(final DbSession session, final String version, final boolean tryFix) throws WaarpDatabaseNoConnectionException { return DbModelFactoryR66.needUpgradeDbAllDb(dbTypeResolver, session, version); } } |
File | Project | Line |
---|---|---|
org/waarp/compress/zstdsafe/SequenceEncoder.java | Waarp Compression | 171 |
org/waarp/compress/zstdunsafe/SequenceEncoder.java | Waarp Compression | 171 |
output++; workspace.offsetCodeTable.initializeRleTable(maxSymbol); offsetCodeTable = workspace.offsetCodeTable; break; case SEQUENCE_ENCODING_BASIC: offsetCodeTable = DEFAULT_OFFSETS_TABLE; break; case SEQUENCE_ENCODING_COMPRESSED: output += buildCompressionTable(workspace.offsetCodeTable, outputBase, output, output + outputSize, sequenceCount, OFFSET_TABLE_LOG, sequences.offsetCodes, workspace.counts, maxSymbol, workspace.normalizedCounts); offsetCodeTable = workspace.offsetCodeTable; break; default: throw new UnsupportedOperationException(NOT_YET_IMPLEMENTED); } // match lengths Histogram.count(sequences.matchLengthCodes, sequenceCount, workspace.counts); maxSymbol = Histogram.findMaxSymbol(counts, MAX_MATCH_LENGTH_SYMBOL); largestCount = Histogram.findLargestCount(counts, maxSymbol); final int matchLengthEncodingType = selectEncodingType(largestCount, sequenceCount, DEFAULT_MATCH_LENGTH_NORMALIZED_COUNTS_LOG, true, strategy); final FseCompressionTable matchLengthTable; switch (matchLengthEncodingType) { case SEQUENCE_ENCODING_RLE: |
File | Project | Line |
---|---|---|
org/waarp/thrift/r66/R66Service.java | Waarp Thrift | 945 |
org/waarp/thrift/r66/R66Service.java | Waarp Thrift | 1781 |
org/waarp/thrift/r66/R66Service.java | Waarp Thrift | 3628 |
final transferRequestQuery_args struct) throws TException { TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == TType.STOP) { break; } if (schemeField.id == 1) { // REQUEST if (schemeField.type == TType.STRUCT) { struct.request = new R66Request(); struct.request.read(iprot); struct.setRequestIsSet(true); } else { TProtocolUtil.skip(iprot, schemeField.type); } } else { TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the // validate method struct.validate(); } @Override public final void write(final TProtocol oprot, final transferRequestQuery_args struct) |
File | Project | Line |
---|---|---|
org/waarp/thrift/r66/R66Service.java | Waarp Thrift | 1366 |
org/waarp/thrift/r66/R66Service.java | Waarp Thrift | 2190 |
final transferRequestQuery_result struct) throws TException { TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == TType.STOP) { break; } if (schemeField.id == 0) { // SUCCESS if (schemeField.type == TType.STRUCT) { struct.success = new R66Result(); struct.success.read(iprot); struct.setSuccessIsSet(true); } else { TProtocolUtil.skip(iprot, schemeField.type); } } else { TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the // validate method struct.validate(); } @Override public final void write(final TProtocol oprot, final transferRequestQuery_result struct) |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 388 |
org/waarp/common/utility/Base64.java | Waarp Common | 403 |
org/waarp/common/utility/Base64.java | Waarp Common | 467 |
org/waarp/common/utility/Base64.java | Waarp Common | 482 |
org/waarp/common/utility/Base64.java | Waarp Common | 544 |
org/waarp/common/utility/Base64.java | Waarp Common | 559 |
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n' through 'z' -9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, |
File | Project | Line |
---|---|---|
org/waarp/gateway/ftp/database/data/DbTransferLog.java | Waarp Gateway Ftp | 819 |
org/waarp/gateway/kernel/database/data/DbTransferLog.java | Waarp Gateway Kernel | 831 |
FtpCommandCode.RETR.name() + "') "; } request += " WHERE " + inCond; request += " AND " + getLimitWhereCondition() + ' '; request += " AND " + Columns.STARTTRANS.name() + " >= ? "; request += " AND " + Columns.UPDATEDINFO.name() + " = " + UpdatedInfo.INERROR.ordinal(); final DbPreparedStatement prep = new DbPreparedStatement(session, request); session.addLongTermPreparedStatement(prep); return prep; } /** * Running or not transfers are concerned * * @param session * @param in True for Incoming, False for Outgoing * @param running True for Running only, False for all * * @return the DbPreparedStatement for getting Runner according to in or out * going way * * @throws WaarpDatabaseNoConnectionException * @throws WaarpDatabaseSqlException */ public static DbPreparedStatement getCountInOutRunningPrepareStatement( final DbSession session, final boolean in, final boolean running) throws WaarpDatabaseNoConnectionException, WaarpDatabaseSqlException { String request = "SELECT COUNT(" + Columns.SPECIALID.name() + ") FROM " + table; final String inCond; if (in) { inCond = " (" + Columns.MODETRANS.name() + " = '" + |
File | Project | Line |
---|---|---|
org/waarp/openr66/database/model/DbModelH2R66.java | Waarp OpenR66 | 121 |
org/waarp/openr66/database/model/DbModelOracleR66.java | Waarp OpenR66 | 290 |
org/waarp/openr66/database/model/DbModelPostgresqlR66.java | Waarp OpenR66 | 139 |
final String primaryKey = " PRIMARY KEY "; final String notNull = " NOT NULL "; // HostConfiguration final StringBuilder action = new StringBuilder(createTableH2 + DbHostConfiguration.table + '('); final DbHostConfiguration.Columns[] chcolumns = DbHostConfiguration.Columns.values(); for (int i = 0; i < chcolumns.length - 1; i++) { action.append(chcolumns[i].name()) .append(DBType.getType(DbHostConfiguration.dbTypes[i])) .append(notNull).append(", "); } action.append(chcolumns[chcolumns.length - 1].name()).append( DBType.getType(DbHostConfiguration.dbTypes[chcolumns.length - 1])) .append(primaryKey).append(')'); |
File | Project | Line |
---|---|---|
org/waarp/openr66/protocol/http/restv2/dbhandlers/TransferIdHandler.java | Waarp OpenR66 | 118 |
org/waarp/openr66/protocol/http/restv2/dbhandlers/TransferIdHandler.java | Waarp OpenR66 | 176 |
final String key = URLDecoder.decode(uri, UTF8_CHARSET.name()); final Pattern pattern = Pattern.compile("(-?\\d+)_(.+)"); final Matcher matcher = pattern.matcher(key); if (!matcher.find()) { responder.sendStatus(NOT_FOUND); return; } final String id = matcher.group(1); final String requested = matcher.group(2); TransferDAO transferDAO = null; try { final long transID = Long.parseLong(id); transferDAO = DAO_FACTORY.getTransferDAO(); if (!transferDAO.exist(transID, serverName(requested), requested, serverName())) { responder.sendStatus(NOT_FOUND); } else { final Transfer transfer = transferDAO.select(transID, serverName(requested), requested, serverName()); final ObjectNode response = TransferConverter.transferToNode(transfer); |
File | Project | Line |
---|---|---|
org/waarp/openr66/protocol/http/restv2/dbhandlers/TransferIdHandler.java | Waarp OpenR66 | 176 |
org/waarp/openr66/protocol/http/restv2/dbhandlers/TransferIdHandler.java | Waarp OpenR66 | 368 |
final String key = URLDecoder.decode(uri, WaarpStringUtils.UTF_8); final Pattern pattern = Pattern.compile("(-?\\d+)_(.+)"); final Matcher matcher = pattern.matcher(key); if (!matcher.find()) { responder.sendStatus(NOT_FOUND); return; } final String id = matcher.group(1); final String requested = matcher.group(2); TransferDAO transferDAO = null; try { final long transID = Long.parseLong(id); transferDAO = DAO_FACTORY.getTransferDAO(); if (!transferDAO.exist(transID, serverName(requested), requested, serverName())) { responder.sendStatus(NOT_FOUND); } else { final Transfer transfer = transferDAO.select(transID, serverName(requested), requested, serverName()); |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 346 |
org/waarp/common/utility/Base64.java | Waarp Common | 423 |
org/waarp/common/utility/Base64.java | Waarp Common | 501 |
(byte) 'A', (byte) 'B', (byte) 'C', (byte) 'D', (byte) 'E', (byte) 'F', (byte) 'G', (byte) 'H', (byte) 'I', (byte) 'J', (byte) 'K', (byte) 'L', (byte) 'M', (byte) 'N', (byte) 'O', (byte) 'P', (byte) 'Q', (byte) 'R', (byte) 'S', (byte) 'T', (byte) 'U', (byte) 'V', (byte) 'W', (byte) 'X', (byte) 'Y', (byte) 'Z', (byte) 'a', (byte) 'b', (byte) 'c', (byte) 'd', |
File | Project | Line |
---|---|---|
org/waarp/gateway/ftp/database/model/DbModelMariaDbFtp.java | Waarp Gateway Ftp | 42 |
org/waarp/gateway/ftp/database/model/DbModelMysqlFtp.java | Waarp Gateway Ftp | 42 |
public DbModelMariaDbFtp(final String dbserver, final String dbuser, final String dbpasswd) throws WaarpDatabaseNoConnectionException { super(dbserver, dbuser, dbpasswd); } private final ReentrantLock lock = new ReentrantLock(); @Override public final void createTables(final DbSession session) throws WaarpDatabaseNoConnectionException { DbModelMysqlKernel.createTableMonitoring(session); } @Override public final void resetSequence(final DbSession session, final long newvalue) { // Nothing } @Override public long nextSequence(final DbSession dbSession) { return DbModelFactoryFtp.nextSequenceMonitoring(); } @Override public final boolean upgradeDb(final DbSession session, final String version) { return true; } @Override public final boolean needUpgradeDb(final DbSession session, final String version, final boolean tryFix) { return false; } } |
File | Project | Line |
---|---|---|
org/waarp/openr66/protocol/http/adminssl/HttpSslHandler.java | Waarp OpenR66 | 1220 |
org/waarp/openr66/protocol/http/adminssl/HttpSslHandler.java | Waarp OpenR66 | 1258 |
} else if ("TestConn".equalsIgnoreCase(parm)) { final String host = getTrimValue("host"); if (ParametersChecker.isEmpty(host)) { body0 = body1 = body = ""; body = Messages.getString(HTTP_SSL_HANDLER_17); //$NON-NLS-1$ head = resetOptionHosts(head, "", "", false, true); return head + body0 + body + body1 + end; } final DbHostAuth dbhost; try { dbhost = new DbHostAuth(host); } catch (final WaarpDatabaseException e) { body0 = body1 = body = ""; body = Messages.getString(HTTP_SSL_HANDLER_17) + e.getMessage() //$NON-NLS-1$ + B_CENTER_P; head = resetOptionHosts(head, "", "", false, true); return head + body0 + body + body1 + end; } |
File | Project | Line |
---|---|---|
org/waarp/openr66/protocol/http/rest/handler/HttpRestConfigR66Handler.java | Waarp OpenR66 | 64 |
org/waarp/openr66/protocol/http/rest/handler/HttpRestServerR66Handler.java | Waarp OpenR66 | 66 |
public HttpRestConfigR66Handler(final RestConfiguration config, final METHOD... methods) { super(BASEURI, config, METHOD.OPTIONS); setIntersectionMethods(methods, METHOD.GET, METHOD.PUT); } @Override public final void endParsingRequest(final HttpRestHandler handler, final RestArgument arguments, final RestArgument result, final Object body) throws HttpIncorrectRequestException, HttpInvalidAuthenticationException { try { HttpRestV1Utils.checkSanity(arguments); } catch (final InvalidArgumentException e) { throw new HttpIncorrectRequestException("Issue on values", e); } logger.debug("debug: {} ### {}", arguments, result); if (body != null) { logger.debug("Obj: {}", body); } handler.setWillClose(false); final ServerActions serverHandler = ((HttpRestR66Handler) handler).getServerHandler(); |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 388 |
org/waarp/common/utility/Base64.java | Waarp Common | 403 |
org/waarp/common/utility/Base64.java | Waarp Common | 467 |
org/waarp/common/utility/Base64.java | Waarp Common | 482 |
org/waarp/common/utility/Base64.java | Waarp Common | 544 |
org/waarp/common/utility/Base64.java | Waarp Common | 559 |
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n' through 'z' -9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 - 165 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, |
File | Project | Line |
---|---|---|
org/waarp/openr66/configuration/FileBasedConfiguration.java | Waarp OpenR66 | 2084 |
org/waarp/openr66/configuration/FileBasedConfiguration.java | Waarp OpenR66 | 2252 |
final Document document; // Open config file try { document = XmlUtil.getNewSaxReader().read(filename); } catch (final DocumentException e) { logger.error( Messages.getString(FILE_BASED_CONFIGURATION_CANNOT_READ_XML) + filename + ": {}", e.getMessage()); //$NON-NLS-1$ return false; } if (document == null) { logger.error( Messages.getString(FILE_BASED_CONFIGURATION_CANNOT_READ_XML) + filename); //$NON-NLS-1$ return false; } configuration = XmlUtil.read(document, configServer); hashRootConfig = new XmlRootHash(configuration); if (!loadIdentity(config, hashRootConfig)) { logger.error(CANNOT_LOAD_IDENTITY); return false; } if (!loadDatabase(config, false)) { logger.error(CANNOT_LOAD_DATABASE_CONFIGURATION); return false; } if (!loadDirectory(config)) { |
File | Project | Line |
---|---|---|
org/waarp/openr66/protocol/http/adminssl/HttpResponsiveSslHandler.java | Waarp OpenR66 | 2217 |
org/waarp/openr66/protocol/http/adminssl/HttpSslHandler.java | Waarp OpenR66 | 698 |
all = false; if (!(pending || transfer || error)) { all = true; pending = true; transfer = true; error = true; } final Timestamp tstart = WaarpStringUtils.fixDate(start); if (tstart != null) { start = tstart.toString(); } final Timestamp tstop = WaarpStringUtils.fixDate(stop, tstart); if (tstop != null) { stop = tstop.toString(); } head = resetOptionTransfer(head, startid == null? "" : startid, stopid == null? "" : stopid, start, stop, rule == null? "" : rule, req == null? "" : req, pending, transfer, error, false, all); |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 364 |
org/waarp/common/utility/Base64.java | Waarp Common | 439 |
org/waarp/common/utility/Base64.java | Waarp Common | 516 |
private static final byte[] _STANDARD_DECODABET = { -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 0 - 8 -5, -5, // Whitespace: Tab and Linefeed -9, -9, // Decimal 11 - 12 -5, // Whitespace: Carriage Return -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 14 - 26 -9, -9, -9, -9, -9, // Decimal 27 - 31 -5, // Whitespace: Space -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 33 - 42 |
File | Project | Line |
---|---|---|
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 674 |
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 719 |
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 801 |
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 837 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 518 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 571 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 577 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 636 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 675 |
new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_110, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_120, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_125, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_150, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_200, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_202, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_211, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_212, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_213, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_214, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 350 |
org/waarp/common/utility/Base64.java | Waarp Common | 427 |
org/waarp/common/utility/Base64.java | Waarp Common | 506 |
(byte) 'Y', (byte) 'Z', (byte) 'a', (byte) 'b', (byte) 'c', (byte) 'd', (byte) 'e', (byte) 'f', (byte) 'g', (byte) 'h', (byte) 'i', (byte) 'j', (byte) 'k', (byte) 'l', (byte) 'm', (byte) 'n', (byte) 'o', (byte) 'p', (byte) 'q', (byte) 'r', (byte) 's', (byte) 't', (byte) 'u', (byte) 'v', (byte) 'w', (byte) 'x', (byte) 'y', (byte) 'z', (byte) '0', (byte) '1', |
File | Project | Line |
---|---|---|
org/waarp/gateway/ftp/database/data/DbTransferLog.java | Waarp Gateway Ftp | 322 |
org/waarp/gateway/kernel/database/data/DbTransferLog.java | Waarp Gateway Kernel | 315 |
FileBasedConfiguration.fileBasedConfiguration.getHostId() + "' "; } /** * Create a Special Id for NoDb client */ private void createNoDbSpecialId() { synchronized (clientNoDbSpecialId) { // New SpecialId is not possible with No Database Model specialId = System.currentTimeMillis(); Long newOne = specialId; while (clientNoDbSpecialId.contains(newOne)) { newOne = specialId++; } clientNoDbSpecialId.add(newOne); } } /** * Remove a Special Id for NoDb Client */ private void removeNoDbSpecialId() { synchronized (clientNoDbSpecialId) { final Long oldOne = specialId; clientNoDbSpecialId.remove(oldOne); } } @Override public final void delete() throws WaarpDatabaseException { if (dbSession == null) { removeNoDbSpecialId(); return; } super.delete(); } @Override public final void insert() throws WaarpDatabaseException { if (isSaved) { return; } if (dbSession == null) { if (specialId == DbConstant.ILLEGALVALUE) { |
File | Project | Line |
---|---|---|
org/waarp/openr66/configuration/FileBasedConfiguration.java | Waarp OpenR66 | 2210 |
org/waarp/openr66/configuration/FileBasedConfiguration.java | Waarp OpenR66 | 2312 |
logger.error("Cannot load Network configuration"); return false; } if (config.isSaveTaskRunnerWithNoDb()) { // if no database, must load authentication from file if (!loadAuthentication(config)) { logger.error(CANNOT_LOAD_AUTHENTICATION_CONFIGURATION); return false; } } config.setHostAuth(R66Auth.getServerAuth(config.getHostId())); if (config.getHostAuth() == null && config.isUseNOSSL()) { logger.error(CANNOT_FIND_AUTHENTICATION_FOR_CURRENT_HOST); return false; } if (config.getHostSslId() != null) { config.setHostSslAuth(R66Auth.getServerAuth(config.getHostSslId())); if (config.getHostSslAuth() == null && config.isUseSSL()) { logger.error(CANNOT_FIND_SSL_AUTHENTICATION_FOR_CURRENT_HOST); return false; } } loadBusinessWhiteList(config); |
File | Project | Line |
---|---|---|
org/waarp/openr66/context/filesystem/R66File.java | Waarp OpenR66 | 577 |
org/waarp/openr66/context/filesystem/R66File.java | Waarp OpenR66 | 643 |
File newFile = getFileFromPath(path); File parentFile = newFile.getParentFile(); if (parentFile == null) { final String dir = getFullInDir(); if (dir != null) { newFile = new File(dir, newFile.getPath()); parentFile = newFile.getParentFile(); } } if (newFile.exists()) { logger.warn("Target file already exists: " + newFile.getAbsolutePath()); return false; } if (newFile.getAbsolutePath().equals(file.getAbsolutePath())) { // already in the right position isReady = true; return true; } if (parentFile != null && parentFile.canWrite()) { if (renameTo(file, newFile)) { return false; } currentFile = getRelativePath(newFile); |
File | Project | Line |
---|---|---|
org/waarp/openr66/protocol/http/rest/handler/HttpRestBusinessR66Handler.java | Waarp OpenR66 | 65 |
org/waarp/openr66/protocol/http/rest/handler/HttpRestInformationR66Handler.java | Waarp OpenR66 | 61 |
org/waarp/openr66/protocol/http/rest/handler/HttpRestLogR66Handler.java | Waarp OpenR66 | 62 |
public HttpRestBusinessR66Handler(final RestConfiguration config, final METHOD... methods) { super(BASEURI, config, METHOD.OPTIONS); setIntersectionMethods(methods, METHOD.GET); } @Override public final void endParsingRequest(final HttpRestHandler handler, final RestArgument arguments, final RestArgument result, final Object body) throws HttpIncorrectRequestException, HttpInvalidAuthenticationException { try { HttpRestV1Utils.checkSanity(arguments); } catch (final InvalidArgumentException e) { throw new HttpIncorrectRequestException("Issue on values", e); } logger.debug("debug: {} ### {}", arguments, result); if (body != null) { logger.debug("Obj: {}", body); } handler.setWillClose(false); final ServerActions serverHandler = ((HttpRestR66Handler) handler).getServerHandler(); final R66Session session = serverHandler.getSession(); |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 388 |
org/waarp/common/utility/Base64.java | Waarp Common | 403 |
org/waarp/common/utility/Base64.java | Waarp Common | 467 |
org/waarp/common/utility/Base64.java | Waarp Common | 482 |
org/waarp/common/utility/Base64.java | Waarp Common | 544 |
org/waarp/common/utility/Base64.java | Waarp Common | 559 |
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n' through 'z' -9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, |
File | Project | Line |
---|---|---|
org/waarp/openr66/client/Message.java | Waarp OpenR66 | 85 |
org/waarp/openr66/client/RequestInformation.java | Waarp OpenR66 | 92 |
infoArgs = Messages.getString("Message.0") + Messages.getString("Message.OutputFormat"); //$NON-NLS-1$ if (args.length < 5) { logger.error(infoArgs); return false; } if (!FileBasedConfiguration.setClientConfigurationFromXml( Configuration.configuration, args[0])) { logger.error( Messages.getString("Configuration.NeedCorrectConfig")); //$NON-NLS-1$ return false; } for (int i = 1; i < args.length; i++) { if ("-to".equalsIgnoreCase(args[i])) { i++; srequested = args[i]; if (Configuration.configuration.getAliases().containsKey(srequested)) { srequested = Configuration.configuration.getAliases().get(srequested); } } else if ("-msg".equalsIgnoreCase(args[i])) { |
File | Project | Line |
---|---|---|
org/waarp/openr66/database/model/DbModelH2R66.java | Waarp OpenR66 | 250 |
org/waarp/openr66/database/model/DbModelOracleR66.java | Waarp OpenR66 | 403 |
org/waarp/openr66/database/model/DbModelPostgresqlR66.java | Waarp OpenR66 | 257 |
try { SysErrLogger.FAKE_LOGGER.sysout("Command: " + command); request.query(command); } catch (final WaarpDatabaseNoConnectionException e) { SysErrLogger.FAKE_LOGGER.ignoreLog(e); return false; } catch (final WaarpDatabaseSqlException e) { SysErrLogger.FAKE_LOGGER.ignoreLog(e); // XXX FIX no return } DbModelFactoryR66.createIndex30(dbTypeResolver, request); } finally { request.close(); } } DbHostConfiguration.updateVersionDb(Configuration.configuration.getHostId(), R66Versions.V3_1_0.getVersion()); return true; } @Override public final boolean needUpgradeDb(final DbSession session, final String version, final boolean tryFix) throws WaarpDatabaseNoConnectionException { return DbModelFactoryR66.needUpgradeDbAllDb(dbTypeResolver, session, version); } } |
File | Project | Line |
---|---|---|
org/waarp/openr66/protocol/http/adminssl/HttpResponsiveSslHandler.java | Waarp OpenR66 | 1265 |
org/waarp/openr66/protocol/http/adminssl/HttpSslHandler.java | Waarp OpenR66 | 1424 |
if ("Create".equalsIgnoreCase(parm) || "Update".equalsIgnoreCase(parm)) { final String rule = getTrimValue("rule"); final String hostids = getTrimValue("hostids"); final String recvp = getTrimValue("recvp"); final String sendp = getTrimValue("sendp"); final String archp = getTrimValue("archp"); final String workp = getTrimValue("workp"); final String rpre = getTrimValue("rpre"); final String rpost = getTrimValue("rpost"); final String rerr = getTrimValue("rerr"); final String spre = getTrimValue("spre"); final String spost = getTrimValue("spost"); final String serr = getTrimValue("serr"); final String mode = getTrimValue("mode"); if (rule == null || mode == null) { |
File | Project | Line |
---|---|---|
org/waarp/openr66/database/data/DbHostConfiguration.java | Waarp OpenR66 | 726 |
org/waarp/openr66/database/data/DbHostConfiguration.java | Waarp OpenR66 | 926 |
final HashSet<String> set) { if (ParametersChecker.isNotEmpty(source)) { final Document document; StringReader reader = null; try { reader = new StringReader(source); document = XmlUtil.getNewSaxReader().read(reader); } catch (final DocumentException e) { logger.error( "Unable to read the XML Config " + path + " string: " + source + ": {}", e.getMessage()); FileUtils.close(reader); return false; } if (document == null) { logger.error( "Unable to read the XML Config " + path + " string: " + source); FileUtils.close(reader); return false; } final List<Node> list = document.selectNodes(path); for (final Node element : list) { final String sval = element.getText().trim(); |
File | Project | Line |
---|---|---|
org/waarp/openr66/protocol/http/rest/handler/DbConfigurationR66RestMethodHandler.java | Waarp OpenR66 | 120 |
org/waarp/openr66/protocol/http/rest/handler/DbHostAuthR66RestMethodHandler.java | Waarp OpenR66 | 119 |
return new DbConfiguration(arg); } catch (final WaarpDatabaseException e) { throw new HttpIncorrectRequestException( "Issue while inserting into database", e); } } @Override protected final DbPreparedStatement getPreparedStatement( final HttpRestHandler handler, final RestArgument arguments, final RestArgument result, final Object body) throws HttpIncorrectRequestException { try { HttpRestV1Utils.checkSanity(arguments); } catch (final InvalidArgumentException e) { throw new HttpIncorrectRequestException("Issue on values", e); } final ObjectNode arg = arguments.getUriArgs().deepCopy(); arg.setAll(arguments.getBody()); String host = arg.path(FILTER_ARGS.HOSTID.name()).asText(); if (ParametersChecker.isEmpty(host)) { host = null; } |
File | Project | Line |
---|---|---|
org/waarp/compress/zstdsafe/ZstdFrameCompressor.java | Waarp Compression | 188 |
org/waarp/compress/zstdunsafe/ZstdFrameCompressor.java | Waarp Compression | 190 |
int input = inputAddress; final CompressionContext context = new CompressionContext(parameters, inputAddress, remaining); do { checkArgument(outputSize >= SIZE_OF_BLOCK_HEADER + MIN_BLOCK_SIZE, OUTPUT_BUFFER_TOO_SMALL); final int lastBlockFlag = blockSize >= remaining? 1 : 0; blockSize = Math.min(blockSize, remaining); int compressedSize = 0; if (remaining > 0) { compressedSize = compressBlock(inputBase, input, blockSize, outputBase, output + SIZE_OF_BLOCK_HEADER, outputSize - SIZE_OF_BLOCK_HEADER, context, parameters); } if (compressedSize == 0) { // block is not compressible checkArgument(blockSize + SIZE_OF_BLOCK_HEADER <= outputSize, "Output size too small"); final int blockHeader = lastBlockFlag | (RAW_BLOCK << 1) | (blockSize << 3); put24BitLittleEndian(outputBase, output, blockHeader); |
File | Project | Line |
---|---|---|
org/waarp/openr66/database/data/DbTaskRunner.java | Waarp OpenR66 | 1583 |
org/waarp/openr66/database/data/DbTaskRunner.java | Waarp OpenR66 | 1629 |
TransferDAO transferAccess = null; List<Transfer> transfers; try { transferAccess = DAOFactory.getInstance().getTransferDAO(); if (orderByStart) { transfers = transferAccess.find(filters, DBTransferDAO.TRANSFER_START_FIELD, true, limit); } else { transfers = transferAccess.find(filters, limit); } } catch (final DAOConnectionException e) { throw new WaarpDatabaseNoConnectionException(e); } finally { DAOFactory.closeDAO(transferAccess); } final DbTaskRunner[] res = new DbTaskRunner[transfers.size()]; int i = 0; for (final Transfer transfer : transfers) { res[i] = new DbTaskRunner(transfer); i++; } return res; } /** * @param info * @param orderByStart If true, sort on Start ; If false, does not * set the limit on start * @param limit * * @return the DbPreparedStatement for getting Updated Object * * @throws WaarpDatabaseNoConnectionException * @throws WaarpDatabaseSqlException */ public static DbTaskRunner[] getSelectFromInfoPrepareStatement( |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 388 |
org/waarp/common/utility/Base64.java | Waarp Common | 403 |
org/waarp/common/utility/Base64.java | Waarp Common | 467 |
org/waarp/common/utility/Base64.java | Waarp Common | 482 |
org/waarp/common/utility/Base64.java | Waarp Common | 544 |
org/waarp/common/utility/Base64.java | Waarp Common | 559 |
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n' through 'z' -9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, |
File | Project | Line |
---|---|---|
org/waarp/openr66/configuration/FileBasedConfiguration.java | Waarp OpenR66 | 2115 |
org/waarp/openr66/configuration/FileBasedConfiguration.java | Waarp OpenR66 | 2210 |
org/waarp/openr66/configuration/FileBasedConfiguration.java | Waarp OpenR66 | 2312 |
logger.error(CANNOT_LOAD_LIMIT_CONFIGURATION); return false; } if (config.isSaveTaskRunnerWithNoDb()) { // if no database, must load authentication from file if (!loadAuthentication(config)) { logger.error(CANNOT_LOAD_AUTHENTICATION_CONFIGURATION); return false; } } config.setHostAuth(R66Auth.getServerAuth(config.getHostId())); if (config.getHostAuth() == null && config.isUseNOSSL()) { logger.error(CANNOT_FIND_AUTHENTICATION_FOR_CURRENT_HOST); return false; } if (config.getHostSslId() != null) { config.setHostSslAuth(R66Auth.getServerAuth(config.getHostSslId())); if (config.getHostSslAuth() == null && config.isUseSSL()) { logger.error(CANNOT_FIND_SSL_AUTHENTICATION_FOR_CURRENT_HOST); return false; } } |
File | Project | Line |
---|---|---|
org/waarp/openr66/protocol/http/adminssl/HttpSslHandler.java | Waarp OpenR66 | 1082 |
org/waarp/openr66/protocol/http/adminssl/HttpSslHandler.java | Waarp OpenR66 | 1166 |
if (CREATE.equalsIgnoreCase(parm)) { final String host = getTrimValue("host"); final String addr = getTrimValue(ADDRESS); final String port = getTrimValue("port"); final String key = getTrimValue("hostkey"); final boolean ssl; final boolean adminArg; final boolean isclient; final boolean isactive; final boolean isproxified; ssl = params.containsKey("ssl"); adminArg = params.containsKey("admin"); isclient = params.containsKey("isclient"); isactive = params.containsKey("isactive"); isproxified = params.containsKey("isproxified"); if (host == null || addr == null || port == null || key == null) { body0 = body1 = body = ""; body = Messages.getString("HttpSslHandler.13"); //$NON-NLS-1$ |
File | Project | Line |
---|---|---|
org/waarp/thrift/r66/R66Result.java | Waarp Thrift | 252 |
org/waarp/thrift/r66/R66Service.java | Waarp Thrift | 2351 |
default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if * it is not found. */ public static _Fields findByThriftIdOrThrow(final int fieldId) { final _Fields fields = findByThriftId(fieldId); if (fields == null) { throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); } return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(final String name) { return byName.get(name); } private final short thriftId; private final String fieldName; _Fields(final short thriftId, final String fieldName) { this.thriftId = thriftId; this.fieldName = fieldName; } @Override public final short getThriftFieldId() { return thriftId; } @Override public final String getFieldName() { return fieldName; } } // isset id assignments private static final int TID_ISSET_ID = 0; private static final int GLOBALSTEP_ISSET_ID = 1; |
File | Project | Line |
---|---|---|
org/waarp/gateway/ftp/database/data/DbTransferLog.java | Waarp Gateway Ftp | 858 |
org/waarp/gateway/kernel/database/data/DbTransferLog.java | Waarp Gateway Kernel | 871 |
FtpCommandCode.RETR.name() + "') "; } request += " WHERE " + inCond; request += " AND " + getLimitWhereCondition() + ' '; request += " AND " + Columns.STARTTRANS.name() + " >= ? "; if (running) { request += " AND " + Columns.UPDATEDINFO.name() + " = " + UpdatedInfo.RUNNING.ordinal(); } final DbPreparedStatement prep = new DbPreparedStatement(session, request); session.addLongTermPreparedStatement(prep); return prep; } @Override public final void changeUpdatedInfo(final UpdatedInfo info) { updatedInfo = info.ordinal(); allFields[Columns.UPDATEDINFO.ordinal()].setValue(updatedInfo); isSaved = false; } /** * Set the ReplyCode for the UpdatedInfo * * @param code */ public final void setReplyCodeExecutionStatus(final ReplyCode code) { |
File | Project | Line |
---|---|---|
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 719 |
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 837 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 501 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 577 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 675 |
new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_227, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_229, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_230, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_232, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_234, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_250, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_257, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_331, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_332, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_350 new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY) |
File | Project | Line |
---|---|---|
org/waarp/openr66/protocol/http/adminssl/HttpResponsiveSslHandler.java | Waarp OpenR66 | 2089 |
org/waarp/openr66/protocol/http/adminssl/HttpSslHandler.java | Waarp OpenR66 | 2310 |
checkAuthentResponsive(ctx); return; } String find = uriRequest; if (uriRequest.charAt(0) == '/') { find = uriRequest.substring(1); } REQUEST req = REQUEST.index; if (find.length() != 0) { find = find.substring(0, find.indexOf('.')); try { req = REQUEST.valueOf(find); } catch (final IllegalArgumentException e1) { req = REQUEST.index; logger.info("NotFound: {}:{}", find, uriRequest); } } switch (req) { case CancelRestart: if (authentHttp.getAuth().isValidRole(ROLE.TRANSFER)) { responseContent.append(cancelRestart()); |
File | Project | Line |
---|---|---|
org/waarp/openr66/protocol/monitoring/MonitorExporterTransfers.java | Waarp OpenR66 | 186 |
org/waarp/openr66/protocol/monitoring/MonitorExporterTransfers.java | Waarp OpenR66 | 291 |
group); DbHostConfiguration temp = null; try { temp = new DbHostConfiguration(Configuration.configuration.getHostId()); } catch (final WaarpDatabaseException e) {//NOSONAR logger.error(e.getMessage()); } if (temp == null) { DbHostConfiguration.getLastDateTimeMonitoring( Configuration.configuration.getHostId()); try { temp = new DbHostConfiguration(Configuration.configuration.getHostId()); } catch (final WaarpDatabaseException e) {//NOSONAR logger.error(e.getMessage()); } } this.hostConfiguration = temp; lastDateTime = hostConfiguration.getLastDateTimeMonitoring();//NOSONAR if (lastDateTime != null) { lastTimestamp = new Timestamp(lastDateTime.getMillis()); } } |
File | Project | Line |
---|---|---|
org/waarp/openr66/database/model/DbModelFactoryR66.java | Waarp OpenR66 | 428 |
org/waarp/openr66/database/model/DbModelFactoryR66.java | Waarp OpenR66 | 450 |
org/waarp/openr66/database/model/DbModelFactoryR66.java | Waarp OpenR66 | 471 |
final DbConfiguration.Columns[] icolumns = DbConfiguration.indexes; for (int i = 0; i < icolumns.length - 1; i++) { action.append(icolumns[i].name()).append(", "); } action.append(icolumns[icolumns.length - 1].name()).append(')'); SysErrLogger.FAKE_LOGGER.sysout(action); try { request.query(action.toString()); } catch (final WaarpDatabaseNoConnectionException e) { SysErrLogger.FAKE_LOGGER.ignoreLog(e); return false; } catch (final WaarpDatabaseSqlException e) { SysErrLogger.FAKE_LOGGER.ignoreLog(e); // XXX FIX no return } } // Index BusinessDAO/DbHostConfiguration { action = new StringBuilder( createIndex + " IDX_HOSTCONF ON " + DbHostConfiguration.table + '('); |
File | Project | Line |
---|---|---|
org/waarp/openr66/protocol/localhandler/ServerActions.java | Waarp OpenR66 | 355 |
org/waarp/openr66/protocol/localhandler/ServerActions.java | Waarp OpenR66 | 1423 |
private void configImportPacket(final ValidPacket packet) throws OpenR66ProtocolNotAuthenticatedException, OpenR66ProtocolNoCorrectAuthenticationException, OpenR66ProtocolSystemException { session.newState(VALIDOTHER); // Authentication must be the local server or CONFIGADMIN authorization try { if (!session.getAuth().getUser().equals( Configuration.configuration.getHostId(session.getAuth().isSsl())) && !session.getAuth().isValidRole(ROLE.CONFIGADMIN)) { throw new OpenR66ProtocolNoCorrectAuthenticationException( NOT_CORRECTLY_AUTHENTICATED); } } catch (final OpenR66ProtocolNoSslException e1) { throw new OpenR66ProtocolNotAuthenticatedException( NOT_CORRECTLY_AUTHENTICATED_SINCE_SSL_IS_NOT_SUPPORTED, e1); } if (Configuration.configuration.getR66Mib() != null) { Configuration.configuration.getR66Mib().notifyWarning( "Import Configuration Order received", session.getAuth().getUser()); } |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 388 |
org/waarp/common/utility/Base64.java | Waarp Common | 403 |
org/waarp/common/utility/Base64.java | Waarp Common | 467 |
org/waarp/common/utility/Base64.java | Waarp Common | 482 |
org/waarp/common/utility/Base64.java | Waarp Common | 544 |
org/waarp/common/utility/Base64.java | Waarp Common | 559 |
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n' through 'z' -9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, |
File | Project | Line |
---|---|---|
org/waarp/compress/zstdsafe/ZstdFrameDecompressor.java | Waarp Compression | 305 |
org/waarp/compress/zstdunsafe/ZstdFrameDecompressor.java | Waarp Compression | 310 |
final int literalsBlockType = inputBase[input] & 0x3; switch (literalsBlockType) { case RAW_LITERALS_BLOCK: { input += decodeRawLiterals(inputBase, input, inputLimit); break; } case RLE_LITERALS_BLOCK: { input += decodeRleLiterals(inputBase, input, blockSize); break; } case TREELESS_LITERALS_BLOCK: verify(huffman.isLoaded(), input, "Dictionary is corrupted"); case COMPRESSED_LITERALS_BLOCK: { input += decodeCompressedLiterals(inputBase, input, blockSize, literalsBlockType); break; } default: throw fail(input, "Invalid literals block encoding type"); } verify(windowSize <= MAX_WINDOW_SIZE, input, "Window size too large (not yet supported)"); return decompressSequences(inputBase, input, inputAddress + blockSize, outputBase, outputAddress, outputLimit, literalsBase, literalsAddress, literalsLimit, outputAbsoluteBaseAddress); } private int decompressSequences(final byte[] inputBase, |
File | Project | Line |
---|---|---|
org/waarp/openr66/proxy/protocol/http/adminssl/HttpSslHandlerProxyR66.java | Waarp Proxy in R66 protocol | 469 |
org/waarp/openr66/protocol/http/adminssl/HttpResponsiveSslHandler.java | Waarp OpenR66 | 2051 |
configuration.getHostId() + Long.toHexString(RANDOM.nextLong())); sessions.put(admin.value(), authentHttp); authentHttp.setStatus(72); logger.debug("CreateSession: {}:{}", uriRequest, admin); } writeResponse(ctx); } @Override protected void channelRead0(final ChannelHandlerContext ctx, final FullHttpRequest msg) { final FullHttpRequest request = this.request = msg; final QueryStringDecoder queryStringDecoder = new QueryStringDecoder(request.uri()); uriRequest = queryStringDecoder.path(); logger.debug("Msg: {}", uriRequest); if (uriRequest.contains("gre/") || uriRequest.contains("img/") || uriRequest.contains("res/") || uriRequest.contains("favicon.ico")) { |
File | Project | Line |
---|---|---|
org/waarp/openr66/dao/database/h2/H2TransferDAO.java | Waarp OpenR66 | 35 |
org/waarp/openr66/dao/database/oracle/OracleTransferDAO.java | Waarp OpenR66 | 37 |
org/waarp/openr66/dao/database/postgres/PostgreSQLTransferDAO.java | Waarp OpenR66 | 37 |
public H2TransferDAO(final Connection con) throws DAOConnectionException { super(con); } @Override protected final long getNextId() throws DAOConnectionException { PreparedStatement ps = null; ResultSet rs = null; try { ps = connection.prepareStatement(SQL_GET_ID); rs = ps.executeQuery(); if (rs.next()) { return rs.getLong(1); } else { throw new DAOConnectionException( "Error no id available, you should purge the database."); } } catch (final SQLException e) { throw new DAOConnectionException(e); } finally { try { if (rs != null) { rs.close(); } } catch (final SQLException e) { // ignore } closeStatement(ps); } } } |
File | Project | Line |
---|---|---|
org/waarp/openr66/database/model/DbModelH2R66.java | Waarp OpenR66 | 125 |
org/waarp/openr66/database/model/DbModelOracleR66.java | Waarp OpenR66 | 139 |
org/waarp/openr66/database/model/DbModelPostgresqlR66.java | Waarp OpenR66 | 143 |
final StringBuilder action = new StringBuilder(createTableH2 + DbHostConfiguration.table + '('); final DbHostConfiguration.Columns[] chcolumns = DbHostConfiguration.Columns.values(); for (int i = 0; i < chcolumns.length - 1; i++) { action.append(chcolumns[i].name()) .append(DBType.getType(DbHostConfiguration.dbTypes[i])) .append(notNull).append(", "); } action.append(chcolumns[chcolumns.length - 1].name()).append( DBType.getType(DbHostConfiguration.dbTypes[chcolumns.length - 1])) .append(primaryKey).append(')'); |
File | Project | Line |
---|---|---|
org/waarp/openr66/protocol/http/rest/handler/DbConfigurationR66RestMethodHandler.java | Waarp OpenR66 | 231 |
org/waarp/openr66/protocol/http/rest/handler/DbHostConfigurationR66RestMethodHandler.java | Waarp OpenR66 | 250 |
node3.put(column.name(), DbConfiguration.dbTypes[column.ordinal()]); } node2 = RestArgument.fillDetailedAllow(METHOD.POST, path, COMMAND_TYPE.CREATE.name(), node3, node1); node.add(node2); } node2 = RestArgument.fillDetailedAllow(METHOD.OPTIONS, path, COMMAND_TYPE.OPTIONS.name(), null, null); node.add(node2); return node; } @Override public final String getPrimaryPropertyName() { return Columns.HOSTID.name(); } @Override protected final void put(final HttpRestHandler handler, final RestArgument arguments, final RestArgument result, final Object body) throws HttpIncorrectRequestException, HttpInvalidAuthenticationException, HttpNotFoundRequestException { |
File | Project | Line |
---|---|---|
org/waarp/compress/zstdsafe/HuffmanCompressionContext.java | Waarp Compression | 36 |
org/waarp/compress/zstdunsafe/HuffmanCompressionContext.java | Waarp Compression | 36 |
class HuffmanCompressionContext { private final HuffmanTableWriterWorkspace tableWriterWorkspace = new HuffmanTableWriterWorkspace(); private final HuffmanCompressionTableWorkspace compressionTableWorkspace = new HuffmanCompressionTableWorkspace(); private HuffmanCompressionTable previousTable = new HuffmanCompressionTable(Huffman.MAX_SYMBOL_COUNT); private HuffmanCompressionTable temporaryTable = new HuffmanCompressionTable(Huffman.MAX_SYMBOL_COUNT); private HuffmanCompressionTable previousCandidate = previousTable; private HuffmanCompressionTable temporaryCandidate = temporaryTable; public HuffmanCompressionTable getPreviousTable() { return previousTable; } public HuffmanCompressionTable borrowTemporaryTable() { previousCandidate = temporaryTable; temporaryCandidate = previousTable; return temporaryTable; } public void discardTemporaryTable() { previousCandidate = previousTable; temporaryCandidate = temporaryTable; } public void saveChanges() { temporaryTable = temporaryCandidate; previousTable = previousCandidate; } public HuffmanCompressionTableWorkspace getCompressionTableWorkspace() { return compressionTableWorkspace; } public HuffmanTableWriterWorkspace getTableWriterWorkspace() { return tableWriterWorkspace; } } |
File | Project | Line |
---|---|---|
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 425 |
org/waarp/openr66/protocol/snmp/R66PrivateMib.java | Waarp OpenR66 | 182 |
long delay = (runner.getStart().getTime() - agent.getUptimeSystemTime()) / 10; if (delay < 0) { delay = 0; } agent.getNotificationOriginator().notify(new OctetString("public"), NotificationElements.InfoTask.getOID( rootOIDWaarpNotif), new VariableBinding[] { new VariableBinding( NotificationElements.InfoTask.getOID( rootOIDWaarpNotif, 1), new OctetString( NotificationElements.InfoTask.name())), new VariableBinding( NotificationElements.InfoTask.getOID( rootOIDWaarpNotif, 1), new OctetString(message)), // Start of Task new VariableBinding( NotificationElements.InfoTask.getOID( rootOIDWaarpNotif, NotificationTasks.filenameInfo.getOID()), |
File | Project | Line |
---|---|---|
org/waarp/openr66/protocol/http/HttpFormattedHandler.java | Waarp OpenR66 | 281 |
org/waarp/openr66/protocol/http/adminssl/HttpResponsiveSslHandler.java | Waarp OpenR66 | 1881 |
org/waarp/openr66/protocol/http/adminssl/HttpSslHandler.java | Waarp OpenR66 | 2127 |
params = queryStringDecoder.parameters(); boolean invalidEntry = false; for (final Entry<String, List<String>> paramCheck : params.entrySet()) { try { ParametersChecker.checkSanityString(paramCheck.getValue().toArray( ParametersChecker.ZERO_ARRAY_STRING)); } catch (final InvalidArgumentException e) { logger.error( "Arguments incompatible with Security: " + paramCheck.getKey() + ": {}", e.getMessage()); invalidEntry = true; } } if (invalidEntry) { for (final Entry<String, List<String>> paramCheck : params.entrySet()) { paramCheck.getValue().clear(); } params.clear(); |
File | Project | Line |
---|---|---|
org/waarp/openr66/protocol/http/rest/handler/DbConfigurationR66RestMethodHandler.java | Waarp OpenR66 | 187 |
org/waarp/openr66/protocol/http/rest/handler/DbHostAuthR66RestMethodHandler.java | Waarp OpenR66 | 192 |
org/waarp/openr66/protocol/http/rest/handler/DbHostConfigurationR66RestMethodHandler.java | Waarp OpenR66 | 206 |
DbConfiguration.Columns.HOSTID.name(), HOST_ID_AS_VARCHAR_IN_URI_AS + path + "/id"), node1); node.add(node2); node3 = JsonHandler.createObjectNode(); for (final FILTER_ARGS arg : FILTER_ARGS.values()) { node3.put(arg.name(), arg.type); } node2 = RestArgument.fillDetailedAllow(METHOD.GET, path, COMMAND_TYPE.MULTIGET.name(), node3, JsonHandler.createArrayNode() .add(node1)); node.add(node2); } if (methods.contains(METHOD.PUT)) { node3 = JsonHandler.createObjectNode(); node3.put(DbConfiguration.Columns.HOSTID.name(), |
File | Project | Line |
---|---|---|
org/waarp/thrift/r66/R66Request.java | Waarp Thrift | 199 |
org/waarp/thrift/r66/R66Result.java | Waarp Thrift | 252 |
org/waarp/thrift/r66/R66Service.java | Waarp Thrift | 2351 |
default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if * it is not found. */ public static _Fields findByThriftIdOrThrow(final int fieldId) { final _Fields fields = findByThriftId(fieldId); if (fields == null) { throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); } return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(final String name) { return byName.get(name); } private final short thriftId; private final String fieldName; _Fields(final short thriftId, final String fieldName) { this.thriftId = thriftId; this.fieldName = fieldName; } @Override public final short getThriftFieldId() { return thriftId; } @Override public final String getFieldName() { return fieldName; } } // isset id assignments private static final int MD_5_ISSET_ID = 0; |
File | Project | Line |
---|---|---|
org/waarp/thrift/r66/R66Service.java | Waarp Thrift | 688 |
org/waarp/thrift/r66/R66Service.java | Waarp Thrift | 1525 |
org/waarp/thrift/r66/R66Service.java | Waarp Thrift | 3373 |
throw new IllegalArgumentException(FIELD + fieldId + DOESN_T_EXIST); } return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(final String name) { return byName.get(name); } private final short thriftId; private final String fieldName; _Fields(final short thriftId, final String fieldName) { this.thriftId = thriftId; this.fieldName = fieldName; } @Override public final short getThriftFieldId() { return thriftId; } @Override public final String getFieldName() { return fieldName; } } // isset id assignments public static final Map<_Fields, FieldMetaData> metaDataMap; static { final Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); tmpMap.put(_Fields.REQUEST, new FieldMetaData(REQUEST3, TFieldRequirementType.DEFAULT, |
File | Project | Line |
---|---|---|
org/waarp/compress/zstdsafe/FiniteStateEntropy.java | Waarp Compression | 570 |
org/waarp/compress/zstdunsafe/FiniteStateEntropy.java | Waarp Compression | 576 |
public Table(final int log2Capacity) { final int capacity = 1 << log2Capacity; newState = new int[capacity]; symbol = new byte[capacity]; numberOfBits = new byte[capacity]; } public Table(final int log2Size, final int[] newState, final byte[] symbol, final byte[] numberOfBits) { final int size = 1 << log2Size; if (newState.length != size || symbol.length != size || numberOfBits.length != size) { throw new IllegalArgumentException( "Expected arrays to match provided size"); } this.log2Size = log2Size; this.newState = newState; this.symbol = symbol; this.numberOfBits = numberOfBits; } } } |
File | Project | Line |
---|---|---|
org/waarp/openr66/protocol/http/adminssl/HttpSslHandler.java | Waarp OpenR66 | 848 |
org/waarp/openr66/protocol/http/adminssl/HttpSslHandler.java | Waarp OpenR66 | 894 |
body = REQUEST.CancelRestart.readBody(); body = taskRunner.toSpecializedHtml(authentHttp, body, lcr != null? Messages.getString(HTTP_SSL_HANDLER_ACTIVE) //$NON-NLS-1$ : Messages.getString(HTTP_SSL_HANDLER_NOT_ACTIVE)); //$NON-NLS-1$ final String tstart = taskRunner.getStart().toString(); final String tstop = taskRunner.getStop().toString(); head = resetOptionTransfer(head, String.valueOf( taskRunner.getSpecialId() - 1), String.valueOf( taskRunner.getSpecialId() + 1), tstart, tstop, taskRunner.getRuleId(), taskRunner.getRequested(), false, false, false, false, true); |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 388 |
org/waarp/common/utility/Base64.java | Waarp Common | 403 |
org/waarp/common/utility/Base64.java | Waarp Common | 467 |
org/waarp/common/utility/Base64.java | Waarp Common | 482 |
org/waarp/common/utility/Base64.java | Waarp Common | 544 |
org/waarp/common/utility/Base64.java | Waarp Common | 559 |
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n' through 'z' -9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, |
File | Project | Line |
---|---|---|
org/waarp/openr66/protocol/http/adminssl/HttpReponsiveSslInitializer.java | Waarp OpenR66 | 39 |
org/waarp/openr66/protocol/http/adminssl/HttpSslInitializer.java | Waarp OpenR66 | 38 |
public HttpReponsiveSslInitializer(final boolean useHttpCompression) { this.useHttpCompression = useHttpCompression; } @Override protected void initChannel(final SocketChannel ch) { final ChannelPipeline pipeline = ch.pipeline(); // Add SSL handler first to encrypt and decrypt everything. final SslHandler sslhandler = Configuration.getWaarpSslContextFactory() .createHandlerServer(false, ch); pipeline.addLast("ssl", sslhandler); pipeline.addLast("decoder", new HttpServerCodec()); pipeline.addLast("aggregator", new HttpObjectAggregator( Configuration.configuration.getMaxGlobalMemory())); pipeline.addLast("streamer", new ChunkedWriteHandler()); if (useHttpCompression) { pipeline.addLast("deflater", new HttpContentCompressor()); } pipeline.addLast("handler", new HttpResponsiveSslHandler()); |
File | Project | Line |
---|---|---|
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 674 |
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 722 |
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 801 |
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 840 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 521 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 571 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 580 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 636 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 678 |
new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_110, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_120, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_125, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_150, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_200, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_202, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_211, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_212, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_213, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), |
File | Project | Line |
---|---|---|
org/waarp/thrift/r66/R66Request.java | Waarp Thrift | 1222 |
org/waarp/thrift/r66/R66Result.java | Waarp Thrift | 1628 |
lastComparison = TBaseHelper.compareTo(notrace, other.notrace); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTid()).compareTo(other.isSetTid()); if (lastComparison != 0) { return lastComparison; } if (isSetTid()) { lastComparison = TBaseHelper.compareTo(tid, other.tid); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetAction()).compareTo(other.isSetAction()); if (lastComparison != 0) { return lastComparison; } if (isSetAction()) { lastComparison = TBaseHelper.compareTo(action, other.action); |
File | Project | Line |
---|---|---|
org/waarp/openr66/configuration/FileBasedConfiguration.java | Waarp OpenR66 | 2013 |
org/waarp/openr66/configuration/FileBasedConfiguration.java | Waarp OpenR66 | 2251 |
final boolean initdb) { final Document document; // Open config file try { document = XmlUtil.getNewSaxReader().read(filename); } catch (final DocumentException e) { logger.error( Messages.getString(FILE_BASED_CONFIGURATION_CANNOT_READ_XML) + filename + ": {}", e.getMessage()); //$NON-NLS-1$ return false; } if (document == null) { logger.error( Messages.getString(FILE_BASED_CONFIGURATION_CANNOT_READ_XML) + filename); //$NON-NLS-1$ return false; } configuration = XmlUtil.read(document, configServer); hashRootConfig = new XmlRootHash(configuration); if (!loadIdentity(config, hashRootConfig)) { logger.error(CANNOT_LOAD_IDENTITY); return false; } if (!loadDatabase(config, initdb)) { |
File | Project | Line |
---|---|---|
org/waarp/openr66/database/model/DbModelFactoryR66.java | Waarp OpenR66 | 225 |
org/waarp/openr66/database/model/DbModelOracleR66.java | Waarp OpenR66 | 99 |
} try { final DbMultipleMonitor multipleMonitor = new DbMultipleMonitor(Configuration.configuration.getHostId(), 0, 0, 0); if (!multipleMonitor.exist()) { multipleMonitor.insert(); } } catch (final WaarpDatabaseException e1) { SysErrLogger.FAKE_LOGGER.ignoreLog(e1); } // Configuration action = new StringBuilder(createTableH2 + DbConfiguration.table + '('); final DbConfiguration.Columns[] ccolumns = DbConfiguration.Columns.values(); for (int i = 0; i < ccolumns.length - 1; i++) { action.append(ccolumns[i].name()) .append(dbTypeResolver.getType(DbConfiguration.dbTypes[i])) |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 388 |
org/waarp/common/utility/Base64.java | Waarp Common | 403 |
org/waarp/common/utility/Base64.java | Waarp Common | 467 |
org/waarp/common/utility/Base64.java | Waarp Common | 482 |
org/waarp/common/utility/Base64.java | Waarp Common | 544 |
org/waarp/common/utility/Base64.java | Waarp Common | 559 |
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n' through 'z' -9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, |
File | Project | Line |
---|---|---|
org/waarp/ftp/simpleimpl/file/FileBasedAuth.java | Waarp Ftp SimpleServer | 57 |
org/waarp/gateway/ftp/file/FileBasedAuth.java | Waarp Gateway Ftp | 67 |
public FileBasedAuth(final FtpSession session) { super(session); } @Override protected final void businessClean() { currentAuth = null; } /** * @param user the user to set * * @return (NOOP, 230) if the user is OK, else return the following command * that must follow (usually PASS) and * the associated reply * * @throws Reply421Exception if there is a problem during the * authentication * @throws Reply530Exception if there is a problem during the * authentication */ @Override protected final NextCommandReply setBusinessUser(final String user) throws Reply530Exception { final SimpleAuth auth = ((FileBasedConfiguration) ((FtpSession) getSession()).getConfiguration()).getSimpleAuth( user); if (auth == null) { setIsIdentified(false); currentAuth = null; throw new Reply530Exception("User name not allowed"); } currentAuth = auth; // logger.debug("User: {}", user) return new NextCommandReply(FtpCommandCode.PASS, ReplyCode.REPLY_331_USER_NAME_OKAY_NEED_PASSWORD, null); } /** * Set the password according to any implementation and could set the * rootFromAuth. If NOOP is returned, * isIdentifed must be TRUE. A special case is implemented for test user. * * @param password * * @return (NOOP, 230) if the Password is OK, else return the following * command that must follow (usually ACCT) * and the associated reply * * @throws Reply421Exception if there is a problem during the * authentication * @throws Reply530Exception if there is a problem during the * authentication */ @Override protected final NextCommandReply setBusinessPassword(final String password) throws Reply421Exception, Reply530Exception { |
File | Project | Line |
---|---|---|
org/waarp/gateway/kernel/rest/client/HttpRestClientHelper.java | Waarp Gateway Kernel | 178 |
org/waarp/gateway/kernel/rest/client/HttpRestClientHelper.java | Waarp Gateway Kernel | 274 |
final String pwd, final Map<String, String> uriArgs, final String json) { // Prepare the HTTP request. logger.debug("Prepare request: {}:{}:{}", method, addedUri, json); final RestFuture future = channel.attr(HttpRestClientSimpleResponseHandler.RESTARGUMENT).get(); final QueryStringEncoder encoder; if (addedUri != null) { encoder = new QueryStringEncoder(baseUri + addedUri); } else { encoder = new QueryStringEncoder(baseUri); } // add Form attribute if (uriArgs != null) { for (final Entry<String, String> elt : uriArgs.entrySet()) { encoder.addParam(elt.getKey(), elt.getValue()); } } final String[] result; |
File | Project | Line |
---|---|---|
org/waarp/openr66/dao/database/DBTransferDAO.java | Waarp OpenR66 | 196 |
org/waarp/openr66/dao/database/DBTransferDAO.java | Waarp OpenR66 | 212 |
return new Object[] { transfer.getId(), transfer.getGlobalStep().ordinal(), transfer.getLastGlobalStep().ordinal(), transfer.getStep(), transfer.getRank(), transfer.getBlockSize(), transfer.getTransferMode(), transfer.getUpdatedInfo().ordinal(), transfer.getStepStatus().getCode(), transfer.getInfoStatus().getCode(), transfer.getRetrieveMode(), transfer.getIsMoved(), transfer.getStart(), transfer.getStop(), transfer.getOwnerRequest(), transfer.getRequested(), |
File | Project | Line |
---|---|---|
org/waarp/thrift/r66/R66Request.java | Waarp Thrift | 202 |
org/waarp/thrift/r66/R66Result.java | Waarp Thrift | 255 |
org/waarp/thrift/r66/R66Service.java | Waarp Thrift | 2354 |
org/waarp/thrift/r66/R66Service.java | Waarp Thrift | 2963 |
} /** * Find the _Fields constant that matches fieldId, throwing an exception * if * it is not found. */ public static _Fields findByThriftIdOrThrow(final int fieldId) { final _Fields fields = findByThriftId(fieldId); if (fields == null) { throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); } return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(final String name) { return byName.get(name); } private final short thriftId; private final String fieldName; _Fields(final short thriftId, final String fieldName) { this.thriftId = thriftId; this.fieldName = fieldName; } @Override public final short getThriftFieldId() { return thriftId; } @Override public final String getFieldName() { return fieldName; } } // isset id assignments private static final int MD_5_ISSET_ID = 0; |
File | Project | Line |
---|---|---|
org/waarp/thrift/r66/R66Request.java | Waarp Thrift | 1706 |
org/waarp/thrift/r66/R66Result.java | Waarp Thrift | 2422 |
final BitSet incoming = iprot.readBitSet(12); if (incoming.get(0)) { struct.fromuid = iprot.readString(); struct.setFromuidIsSet(true); } if (incoming.get(1)) { struct.destuid = iprot.readString(); struct.setDestuidIsSet(true); } if (incoming.get(2)) { struct.file = iprot.readString(); struct.setFileIsSet(true); } if (incoming.get(3)) { struct.rule = iprot.readString(); struct.setRuleIsSet(true); } if (incoming.get(4)) { struct.info = iprot.readString(); |
File | Project | Line |
---|---|---|
org/waarp/thrift/r66/R66Service.java | Waarp Thrift | 688 |
org/waarp/thrift/r66/R66Service.java | Waarp Thrift | 1107 |
org/waarp/thrift/r66/R66Service.java | Waarp Thrift | 1934 |
org/waarp/thrift/r66/R66Service.java | Waarp Thrift | 3787 |
throw new IllegalArgumentException(FIELD + fieldId + DOESN_T_EXIST); } return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(final String name) { return byName.get(name); } private final short thriftId; private final String fieldName; _Fields(final short thriftId, final String fieldName) { this.thriftId = thriftId; this.fieldName = fieldName; } @Override public final short getThriftFieldId() { return thriftId; } @Override public final String getFieldName() { return fieldName; } } // isset id assignments public static final Map<_Fields, FieldMetaData> metaDataMap; static { final Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class); tmpMap.put(_Fields.REQUEST, |
File | Project | Line |
---|---|---|
org/waarp/compress/zstdsafe/FiniteStateEntropy.java | Waarp Compression | 512 |
org/waarp/compress/zstdunsafe/FiniteStateEntropy.java | Waarp Compression | 518 |
output += SIZE_OF_SHORT; bitStream >>>= Short.SIZE; bitCount -= Short.SIZE; } } int count = normalizedCounts[symbol++]; final int max = (2 * threshold - 1) - remaining; remaining -= count < 0? -count : count; count++; /* +1 for extra accuracy */ if (count >= threshold) { count += max; } bitStream |= count << bitCount; bitCount += tableBitCount; bitCount -= (count < max? 1 : 0); previousIs0 = (count == 1); if (remaining < 1) { throw new AssertionError(); } while (remaining < threshold) { tableBitCount--; threshold >>= 1; } // flush bitstream if necessary if (bitCount > 16) { |
File | Project | Line |
---|---|---|
org/waarp/openr66/configuration/FileBasedConfiguration.java | Waarp OpenR66 | 2014 |
org/waarp/openr66/configuration/FileBasedConfiguration.java | Waarp OpenR66 | 2084 |
org/waarp/openr66/configuration/FileBasedConfiguration.java | Waarp OpenR66 | 2166 |
final Document document; // Open config file try { document = XmlUtil.getNewSaxReader().read(filename); } catch (final DocumentException e) { logger.error( Messages.getString(FILE_BASED_CONFIGURATION_CANNOT_READ_XML) + filename + ": {}", e.getMessage()); //$NON-NLS-1$ return false; } if (document == null) { logger.error( Messages.getString(FILE_BASED_CONFIGURATION_CANNOT_READ_XML) + filename); //$NON-NLS-1$ return false; } configuration = XmlUtil.read(document, configServer); hashRootConfig = new XmlRootHash(configuration); if (!loadIdentity(config, hashRootConfig)) { logger.error(CANNOT_LOAD_IDENTITY); return false; } if (!loadDatabase(config, initdb)) { |
File | Project | Line |
---|---|---|
org/waarp/openr66/database/model/DbModelFactoryR66.java | Waarp OpenR66 | 428 |
org/waarp/openr66/database/model/DbModelFactoryR66.java | Waarp OpenR66 | 450 |
org/waarp/openr66/database/model/DbModelFactoryR66.java | Waarp OpenR66 | 471 |
org/waarp/openr66/database/model/DbModelFactoryR66.java | Waarp OpenR66 | 492 |
final DbConfiguration.Columns[] icolumns = DbConfiguration.indexes; for (int i = 0; i < icolumns.length - 1; i++) { action.append(icolumns[i].name()).append(", "); } action.append(icolumns[icolumns.length - 1].name()).append(')'); SysErrLogger.FAKE_LOGGER.sysout(action); try { request.query(action.toString()); } catch (final WaarpDatabaseNoConnectionException e) { SysErrLogger.FAKE_LOGGER.ignoreLog(e); return false; } catch (final WaarpDatabaseSqlException e) { SysErrLogger.FAKE_LOGGER.ignoreLog(e); // XXX FIX no return } } |
File | Project | Line |
---|---|---|
org/waarp/thrift/r66/R66Service.java | Waarp Thrift | 1512 |
org/waarp/thrift/r66/R66Service.java | Waarp Thrift | 2961 |
org/waarp/thrift/r66/R66Service.java | Waarp Thrift | 3360 |
} return null; } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(final int fieldId) { final _Fields fields = findByThriftId(fieldId); if (fields == null) { throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); } return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(final String name) { return byName.get(name); } private final short thriftId; private final String fieldName; _Fields(final short thriftId, final String fieldName) { this.thriftId = thriftId; this.fieldName = fieldName; } @Override public final short getThriftFieldId() { return thriftId; } @Override public final String getFieldName() { return fieldName; } } |
File | Project | Line |
---|---|---|
org/waarp/compress/zstdsafe/ZstdFrameCompressor.java | Waarp Compression | 87 |
org/waarp/compress/zstdunsafe/ZstdFrameCompressor.java | Waarp Compression | 88 |
output++; if (!singleSegment) { final int base = Integer.highestOneBit(windowSize); final int exponent = 32 - Integer.numberOfLeadingZeros(base) - 1; if (exponent < MIN_WINDOW_LOG) { throw new IllegalArgumentException( "Minimum window size is " + (1 << MIN_WINDOW_LOG)); } final int remainder = windowSize - base; if (remainder % (base / 8) != 0) { throw new IllegalArgumentException( "Window size of magnitude 2^" + exponent + " must be multiple of " + (base / 8)); } // mantissa is guaranteed to be between 0-7 final int mantissa = remainder / (base / 8); final int encoded = ((exponent - MIN_WINDOW_LOG) << 3) | mantissa; |
File | Project | Line |
---|---|---|
org/waarp/openr66/proxy/configuration/FileBasedConfiguration.java | Waarp Proxy in R66 protocol | 162 |
org/waarp/openr66/configuration/FileBasedElements.java | Waarp OpenR66 | 832 |
private static final XmlDecl[] configServer = { new XmlDecl(XML_IDENTITY, XmlType.XVAL, XML_ROOT + XML_IDENTITY, configIdentityDecls, false), new XmlDecl(XML_SERVER, XmlType.XVAL, XML_ROOT + XML_SERVER, configServerParamDecls, false), new XmlDecl(XML_NETWORK, XmlType.XVAL, XML_ROOT + XML_NETWORK, configNetworkServerDecls, false), new XmlDecl(XML_SSL, XmlType.XVAL, XML_ROOT + XML_SSL, configSslDecls, false), new XmlDecl(XML_DIRECTORY, XmlType.XVAL, XML_ROOT + XML_DIRECTORY, configDirectoryDecls, false), new XmlDecl(XML_LIMIT, XmlType.XVAL, XML_ROOT + XML_LIMIT, configLimitDecls, false) |
File | Project | Line |
---|---|---|
org/waarp/thrift/r66/R66Request.java | Waarp Thrift | 1243 |
org/waarp/thrift/r66/R66Result.java | Waarp Thrift | 1790 |
org/waarp/thrift/r66/R66Service.java | Waarp Thrift | 873 |
org/waarp/thrift/r66/R66Service.java | Waarp Thrift | 1293 |
org/waarp/thrift/r66/R66Service.java | Waarp Thrift | 1709 |
org/waarp/thrift/r66/R66Service.java | Waarp Thrift | 2118 |
org/waarp/thrift/r66/R66Service.java | Waarp Thrift | 2689 |
org/waarp/thrift/r66/R66Service.java | Waarp Thrift | 3150 |
org/waarp/thrift/r66/R66Service.java | Waarp Thrift | 3556 |
org/waarp/thrift/r66/R66Service.java | Waarp Thrift | 3987 |
lastComparison = TBaseHelper.compareTo(action, other.action); return lastComparison; } return 0; } @Override public final _Fields fieldForId(final int fieldId) { return _Fields.findByThriftId(fieldId); } @Override public final void read(final TProtocol iprot) throws TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } @Override public final void write(final TProtocol oprot) throws TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public final String toString() { final StringBuilder sb = new StringBuilder("R66Request("); |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 388 |
org/waarp/common/utility/Base64.java | Waarp Common | 403 |
org/waarp/common/utility/Base64.java | Waarp Common | 467 |
org/waarp/common/utility/Base64.java | Waarp Common | 482 |
org/waarp/common/utility/Base64.java | Waarp Common | 544 |
org/waarp/common/utility/Base64.java | Waarp Common | 559 |
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n' through 'z' -9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, |
File | Project | Line |
---|---|---|
org/waarp/common/utility/SystemPropertyUtil.java | Waarp Common | 270 |
org/waarp/common/utility/SystemPropertyUtil.java | Waarp Common | 400 |
public static boolean get(final String key, final boolean def) { ParametersChecker.checkParameter("Key", key); String value = PROPS.getProperty(key); if (value == null) { return def; } value = value.trim().toLowerCase(); if (value.isEmpty()) { return true; } if ("true".equals(value) || "yes".equals(value) || "1".equals(value)) { return true; } if ("false".equals(value) || "no".equals(value) || "0".equals(value)) { return false; } |
File | Project | Line |
---|---|---|
org/waarp/compress/zstdsafe/FseTableReader.java | Waarp Compression | 144 |
org/waarp/compress/zstdunsafe/FseTableReader.java | Waarp Compression | 145 |
verify(maxSymbol <= MAX_SYMBOL, input, "Max symbol value too large (too many symbols for FSE)"); input += (bitCount + 7) >> 3; // populate decoding table final int symbolCount = maxSymbol + 1; final int tableSize = 1 << tableLog; int highThreshold = tableSize - 1; table.log2Size = tableLog; for (byte symbol = 0; symbol < symbolCount; symbol++) { if (normalizedCounters[symbol] == -1) { table.symbol[highThreshold--] = symbol; nextSymbol[symbol] = 1; } else { nextSymbol[symbol] = normalizedCounters[symbol]; } } final int position = FseCompressionTable.spreadSymbols(normalizedCounters, maxSymbol, tableSize, highThreshold, table.symbol); |
File | Project | Line |
---|---|---|
org/waarp/gateway/ftp/exec/JavaExecutorWaarpFtp4jClient.java | Waarp Gateway Ftp | 146 |
org/waarp/openr66/context/task/FtpTransferTask.java | Waarp OpenR66 | 178 |
Thread.sleep(FtpInternalConfiguration.RETRYINMS); } catch (final InterruptedException e) {// NOSONAR // Ignore } if (!ftpClient.changeDir(ftpArgs.getCwd())) { logger.warn("Cannot change od directory: " + ftpArgs.getCwd()); } } if (ftpArgs.getPreArgs() != null) { final String[] result = ftpClient.executeCommand(ftpArgs.getPreArgs()); for (final String string : result) { logger.debug("PRE: {}", string); } } if (!ftpClient.transferFile(ftpArgs.getFilepath(), ftpArgs.getFilename(), ftpArgs.getCodeCommand())) { |
File | Project | Line |
---|---|---|
org/waarp/openr66/configuration/FileBasedConfiguration.java | Waarp OpenR66 | 505 |
org/waarp/openr66/configuration/FileBasedConfiguration.java | Waarp OpenR66 | 721 |
Messages.getString("FileBasedConfiguration.MMOff")); //$NON-NLS-1$ } } value = hashConfig.get(XML_BUSINESS_FACTORY); if (value != null && !value.isEmpty()) { try { ParametersChecker.checkSanityString(value.getString()); } catch (final InvalidArgumentException e) { logger.error("Bad Business Factory class: {}", e.getMessage()); return false; } try { config.setR66BusinessFactory( (R66BusinessFactoryInterface) WaarpSystemUtil.newInstance( value.getString()));//NOSONAR } catch (final Exception e) { logger.error("Bad Business Factory class: {}", e.getMessage()); return false; } } return true; } finally { hashConfig.clear(); |
File | Project | Line |
---|---|---|
org/waarp/thrift/r66/R66Service.java | Waarp Thrift | 2728 |
org/waarp/thrift/r66/R66Service.java | Waarp Thrift | 3174 |
sb.append("tid:").append(tid); sb.append(')'); return sb.toString(); } public final void validate() throws TException { // check for required fields // check for sub-struct validity } private void writeObject(final ObjectOutputStream out) throws IOException { try { write(new TCompactProtocol(new TIOStreamTransport(out))); } catch (final TException te) { throw new IOException(te); } } private void readObject(final ObjectInputStream in) throws IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java serialization is wacky, // and doesn't call the default constructor. issetBitfield = 0; read(new TCompactProtocol(new TIOStreamTransport(in))); } catch (final TException te) { throw new IOException(te); } } private static class isStillRunning_argsStandardSchemeFactory |
File | Project | Line |
---|---|---|
org/waarp/compress/zstdsafe/HuffmanCompressionTable.java | Waarp Compression | 41 |
org/waarp/compress/zstdunsafe/HuffmanCompressionTable.java | Waarp Compression | 38 |
final class HuffmanCompressionTable { private final short[] values; private final byte[] numberOfBits; private int maxSymbol; private int maxNumberOfBits; public HuffmanCompressionTable(final int capacity) { this.values = new short[capacity]; this.numberOfBits = new byte[capacity]; } public static int optimalNumberOfBits(final int maxNumberOfBits, final int inputSize, final int maxSymbol) { if (inputSize <= 1) { throw new IllegalArgumentException(); // not supported. Use RLE instead } int result = maxNumberOfBits; result = Math.min(result, Util.highestBit((inputSize - 1)) - 1); // we may be able to reduce accuracy if input is small // Need a minimum to safely represent all symbol values result = Math.max(result, minTableLog(inputSize, maxSymbol)); |
File | Project | Line |
---|---|---|
org/waarp/compress/zstdsafe/ZstdFrameDecompressor.java | Waarp Compression | 375 |
org/waarp/compress/zstdunsafe/ZstdFrameDecompressor.java | Waarp Compression | 381 |
final int literalsLengthType = (type & 0xFF) >>> 6; final int offsetCodesType = (type >>> 4) & 0x3; final int matchLengthType = (type >>> 2) & 0x3; input = computeLiteralsTable(literalsLengthType, inputBase, input, inputLimit); input = computeOffsetsTable(offsetCodesType, inputBase, input, inputLimit); input = computeMatchLengthTable(matchLengthType, inputBase, input, inputLimit); // decompress sequences final BitInputStream.Initializer initializer = new BitInputStream.Initializer(inputBase, input, inputLimit); initializer.initialize(); int bitsConsumed = initializer.getBitsConsumed(); long bits = initializer.getBits(); |
File | Project | Line |
---|---|---|
org/waarp/compress/zstdsafe/ZstdSafeCodec.java | Waarp Compression | 75 |
org/waarp/compress/zstdunsafe/ZstdUnsafeCodec.java | Waarp Compression | 73 |
} @Override public final byte[] compress(final byte[] input, final int length) { try { final int len = maxCompressedLength(length); final byte[] temp = new byte[len]; final int finalLen = compress(input, input.length, temp, len); return Arrays.copyOf(temp, finalLen); } catch (final Exception e) { throw new MalformedInputException(e); } } @Override public final int compress(final byte[] input, final int inputLength, final byte[] output, final int maxOutputLength) { try { |
File | Project | Line |
---|---|---|
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 479 |
org/waarp/openr66/protocol/snmp/R66PrivateMib.java | Waarp OpenR66 | 283 |
runner.getAccount())), new VariableBinding( NotificationElements.InfoTask.getOID( rootOIDWaarpNotif, NotificationTasks.specialIdInfo.getOID()), new OctetString( String.valueOf( runner.getSpecialId()))), // End of Task new VariableBinding( SnmpConstants.sysDescr, snmpv2.getDescr()), new VariableBinding( SnmpConstants.sysObjectID, snmpv2.getObjectID()), new VariableBinding( SnmpConstants.sysContact, snmpv2.getContact()), new VariableBinding( SnmpConstants.sysName, snmpv2.getName()), new VariableBinding( SnmpConstants.sysLocation, snmpv2.getLocation()) }); } |
File | Project | Line |
---|---|---|
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 722 |
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 840 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 501 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 580 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 678 |
new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_229, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_230, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_232, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_234, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_250, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_257, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_331, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_332, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_350 new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY) |
File | Project | Line |
---|---|---|
org/waarp/openr66/database/model/DbModelH2R66.java | Waarp OpenR66 | 101 |
org/waarp/openr66/database/model/DbModelOracleR66.java | Waarp OpenR66 | 269 |
} finally { request.close(); } DbHostConfiguration.updateVersionDb(Configuration.configuration.getHostId(), R66Versions.V3_1_0.getVersion()); } @Override public final boolean upgradeDb(final DbSession session, final String version) throws WaarpDatabaseNoConnectionException { if (PartnerConfiguration.isVersion2GEQVersion1( R66Versions.V3_1_0.getVersion(), version)) { return true; } if (PartnerConfiguration.isVersion2GEQVersion1(version, R66Versions.V2_4_13.getVersion())) { SysErrLogger.FAKE_LOGGER.sysout( version + " to " + R66Versions.V2_4_13.getVersion() + "? " + true); final String createTableH2 = "CREATE TABLE IF NOT EXISTS "; |
File | Project | Line |
---|---|---|
org/waarp/openr66/database/model/DbModelMariadbR66.java | Waarp OpenR66 | 39 |
org/waarp/openr66/database/model/DbModelMysqlR66.java | Waarp OpenR66 | 39 |
public DbModelMariadbR66(final String dbserver, final String dbuser, final String dbpasswd) throws WaarpDatabaseNoConnectionException { super(dbserver, dbuser, dbpasswd); } @Override public final void createTables(final DbSession session) throws WaarpDatabaseNoConnectionException { DbModelFactoryR66.createTableMariaDbMySQL(dbTypeResolver, session); } @Override public final boolean upgradeDb(final DbSession session, final String version) throws WaarpDatabaseNoConnectionException { return DbModelFactoryR66.upgradeDbMariaDbMySQL(dbTypeResolver, session, version); } @Override public final boolean needUpgradeDb(final DbSession session, final String version, final boolean tryFix) throws WaarpDatabaseNoConnectionException { return DbModelFactoryR66.needUpgradeDbAllDb(dbTypeResolver, session, version); } } |
File | Project | Line |
---|---|---|
org/waarp/thrift/r66/R66Request.java | Waarp Thrift | 202 |
org/waarp/thrift/r66/R66Result.java | Waarp Thrift | 255 |
org/waarp/thrift/r66/R66Service.java | Waarp Thrift | 1096 |
org/waarp/thrift/r66/R66Service.java | Waarp Thrift | 1514 |
org/waarp/thrift/r66/R66Service.java | Waarp Thrift | 1923 |
org/waarp/thrift/r66/R66Service.java | Waarp Thrift | 2354 |
org/waarp/thrift/r66/R66Service.java | Waarp Thrift | 3362 |
org/waarp/thrift/r66/R66Service.java | Waarp Thrift | 3776 |
} /** * Find the _Fields constant that matches fieldId, throwing an exception * if * it is not found. */ public static _Fields findByThriftIdOrThrow(final int fieldId) { final _Fields fields = findByThriftId(fieldId); if (fields == null) { throw new IllegalArgumentException( "Field " + fieldId + " doesn't exist!"); } return fields; } /** * Find the _Fields constant that matches name, or null if its not * found. */ public static _Fields findByName(final String name) { return byName.get(name); } private final short thriftId; private final String fieldName; _Fields(final short thriftId, final String fieldName) { this.thriftId = thriftId; this.fieldName = fieldName; } @Override public final short getThriftFieldId() { return thriftId; } @Override public final String getFieldName() { return fieldName; } } |
File | Project | Line |
---|---|---|
org/waarp/common/crypto/DynamicKeyManager.java | Waarp Common | 80 |
org/waarp/common/crypto/KeyManager.java | Waarp Common | 70 |
FileInputStream inputStream; try { inputStream = new FileInputStream(file); } catch (final FileNotFoundException e) { // should not be wrong.add(filename); continue; } int read = 1; int offset = 0; while (read > 0) { try { read = inputStream.read(key, offset, len); } catch (final IOException e) { wrong.add(filename); read = -2; break; } offset += read; if (offset < len) { len -= read; } else { break; } } FileUtils.close(inputStream); if (read < -1) { // wrong continue; } final String infFilename = filename + INFEXTENSION; |
File | Project | Line |
---|---|---|
org/waarp/common/database/model/DbModelH2.java | Waarp Common | 113 |
org/waarp/common/database/model/DbModelMysql.java | Waarp Common | 208 |
protected DbModelH2() throws WaarpDatabaseNoConnectionException { if (DbModelFactory.classLoaded.contains(type.name())) { return; } try { DriverManager.registerDriver(new Driver()); DbModelFactory.classLoaded.add(type.name()); } catch (final SQLException e) { // SQLException logger.error( "Cannot register Driver " + type.name() + ' ' + e.getMessage()); DbConstant.error(e); throw new WaarpDatabaseNoConnectionException( "Cannot load database drive:" + type.name(), e); } } @Override public final void releaseResources() { if (pool != null) { |
File | Project | Line |
---|---|---|
org/waarp/openr66/database/model/DbModelH2R66.java | Waarp OpenR66 | 229 |
org/waarp/openr66/database/model/DbModelPostgresqlR66.java | Waarp OpenR66 | 236 |
request = new DbRequest(session); try { SysErrLogger.FAKE_LOGGER.sysout("Command: " + command); request.query(command); } catch (final WaarpDatabaseSqlException e) { SysErrLogger.FAKE_LOGGER.ignoreLog(e); return false; } finally { request.close(); } } if (PartnerConfiguration.isVersion2GTVersion1(version, R66Versions.V3_0_4.getVersion())) { SysErrLogger.FAKE_LOGGER.sysout( version + " to " + R66Versions.V3_0_4.getVersion() + "? " + true); final DbRequest request = new DbRequest(session); // Change Type for all Tables DbModelFactoryR66.upgradeTable30(dbTypeResolver, request, " ALTER COLUMN ", " ", " NOT NULL "); |
File | Project | Line |
---|---|---|
org/waarp/openr66/database/model/DbModelOracleR66.java | Waarp OpenR66 | 382 |
org/waarp/openr66/database/model/DbModelPostgresqlR66.java | Waarp OpenR66 | 236 |
final DbRequest request = new DbRequest(session); try { SysErrLogger.FAKE_LOGGER.sysout("Command: " + command); request.query(command); } catch (final WaarpDatabaseSqlException e) { SysErrLogger.FAKE_LOGGER.ignoreLog(e); return false; } finally { request.close(); } } if (PartnerConfiguration.isVersion2GTVersion1(version, R66Versions.V3_0_4.getVersion())) { SysErrLogger.FAKE_LOGGER.sysout( version + " to " + R66Versions.V3_0_4.getVersion() + "? " + true); final DbRequest request = new DbRequest(session); // Change Type for all Tables DbModelFactoryR66.upgradeTable30(dbTypeResolver, request, " MODIFY ", " ", |
File | Project | Line |
---|---|---|
org/waarp/openr66/protocol/http/rest/handler/DbConfigurationR66RestMethodHandler.java | Waarp OpenR66 | 188 |
org/waarp/openr66/protocol/http/rest/handler/DbHostAuthR66RestMethodHandler.java | Waarp OpenR66 | 193 |
org/waarp/openr66/protocol/http/rest/handler/DbHostConfigurationR66RestMethodHandler.java | Waarp OpenR66 | 207 |
org/waarp/openr66/protocol/http/rest/handler/DbRuleR66RestMethodHandler.java | Waarp OpenR66 | 184 |
HOST_ID_AS_VARCHAR_IN_URI_AS + path + "/id"), node1); node.add(node2); node3 = JsonHandler.createObjectNode(); for (final FILTER_ARGS arg : FILTER_ARGS.values()) { node3.put(arg.name(), arg.type); } node2 = RestArgument.fillDetailedAllow(METHOD.GET, path, COMMAND_TYPE.MULTIGET.name(), node3, JsonHandler.createArrayNode() .add(node1)); node.add(node2); } if (methods.contains(METHOD.PUT)) { node3 = JsonHandler.createObjectNode(); node3.put(DbConfiguration.Columns.HOSTID.name(), |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 388 |
org/waarp/common/utility/Base64.java | Waarp Common | 405 |
org/waarp/common/utility/Base64.java | Waarp Common | 467 |
org/waarp/common/utility/Base64.java | Waarp Common | 484 |
org/waarp/common/utility/Base64.java | Waarp Common | 544 |
org/waarp/common/utility/Base64.java | Waarp Common | 561 |
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n' through 'z' -9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, |
File | Project | Line |
---|---|---|
org/waarp/openr66/protocol/http/adminssl/HttpSslHandler.java | Waarp OpenR66 | 530 |
org/waarp/openr66/protocol/http/adminssl/HttpSslHandler.java | Waarp OpenR66 | 660 |
endText.append(e.getMessage()).append("</BR>"); } } preparedStatement.realClose(); body = builder.toString(); } catch (final WaarpDatabaseException e) { if (preparedStatement != null) { preparedStatement.realClose(); } logger.warn(OPEN_R66_WEB_ERROR, e.getMessage()); } head = resetOptionTransfer(head, startid == null? idstart != null? idstart.toString() : "" : startid, stopid == null? "" : stopid, start, stop, rule == null? "" : rule, req == null? "" : req, pending, transfer, error, done, all); |
File | Project | Line |
---|---|---|
org/waarp/thrift/r66/R66Request.java | Waarp Thrift | 1500 |
org/waarp/thrift/r66/R66Result.java | Waarp Thrift | 2041 |
struct.setNotraceIsSet(true); } else { TProtocolUtil.skip(iprot, schemeField.type); } break; case 20: // TID if (schemeField.type == TType.I64) { struct.tid = iprot.readI64(); struct.setTidIsSet(true); } else { TProtocolUtil.skip(iprot, schemeField.type); } break; case 21: // ACTION if (schemeField.type == TType.I32) { struct.action = Action.findByValue(iprot.readI32()); struct.setActionIsSet(true); } else { TProtocolUtil.skip(iprot, schemeField.type); } break; |
File | Project | Line |
---|---|---|
org/waarp/openr66/proxy/network/NetworkServerInitializerProxy.java | Waarp Proxy in R66 protocol | 44 |
org/waarp/openr66/proxy/network/ssl/NetworkSslServerInitializerProxy.java | Waarp Proxy in R66 protocol | 61 |
final ChannelPipeline pipeline = ch.pipeline(); pipeline.addLast(TIMEOUT, new IdleStateHandler(true, 0, 0, configuration.getTimeoutCon(), TimeUnit.MILLISECONDS)); final GlobalTrafficShapingHandler handler = configuration.getGlobalTrafficShapingHandler(); if (handler != null) { pipeline.addLast(LIMITGLOBAL, handler); } pipeline.addLast(LIMITCHANNEL, new ChannelTrafficShapingHandler( configuration.getServerChannelWriteLimit(), configuration.getServerChannelReadLimit(), configuration.getDelayLimit(), configuration.getTimeoutCon())); pipeline.addLast(NETWORK_CODEC, new NetworkPacketCodec()); pipeline.addLast(configuration.getHandlerGroup(), NETWORK_HANDLER, new NetworkServerHandler(server)); |
File | Project | Line |
---|---|---|
org/waarp/openr66/database/model/DbModelH2R66.java | Waarp OpenR66 | 229 |
org/waarp/openr66/database/model/DbModelOracleR66.java | Waarp OpenR66 | 382 |
request = new DbRequest(session); try { SysErrLogger.FAKE_LOGGER.sysout("Command: " + command); request.query(command); } catch (final WaarpDatabaseSqlException e) { SysErrLogger.FAKE_LOGGER.ignoreLog(e); return false; } finally { request.close(); } } if (PartnerConfiguration.isVersion2GTVersion1(version, R66Versions.V3_0_4.getVersion())) { SysErrLogger.FAKE_LOGGER.sysout( version + " to " + R66Versions.V3_0_4.getVersion() + "? " + true); final DbRequest request = new DbRequest(session); // Change Type for all Tables DbModelFactoryR66.upgradeTable30(dbTypeResolver, request, |
File | Project | Line |
---|---|---|
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 334 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 346 |
} /** * Change the status and the LastChange Timeticks * * @param status */ public final void changeStatus(final OperStatus status) { final WaarpMOScalar statusScalar = rowGlobal.getRow()[WaarpGlobalValuesIndex.applOperStatus.ordinal()]; final Integer32 var = (Integer32) statusScalar.getValue(); if (var.getValue() != status.status) { var.setValue(status.status); final WaarpMOScalar lastTimeScalar = rowGlobal.getRow()[WaarpGlobalValuesIndex.applLastChange.ordinal()]; final TimeTicks time = (TimeTicks) lastTimeScalar.getValue(); time.setValue(upTime.get().getValue()); } } /** * Send a notification (trap or inform) for Shutdown event * * @param message * @param message2 */ public final void notifyStartStop(final String message, |
File | Project | Line |
---|---|---|
org/waarp/openr66/database/data/DbHostConfiguration.java | Waarp OpenR66 | 1014 |
org/waarp/openr66/database/data/DbHostConfiguration.java | Waarp OpenR66 | 1048 |
final String[] oldAlias = config.getReverseAliases().get(entry.getKey()); final int size = oldAlias == null? 0 : oldAlias.length; final String[] alias = new String[entry.getValue().size() + size]; int i = 0; if (oldAlias != null) { System.arraycopy(oldAlias, 0, alias, 0, size); } for (final String namealias : entry.getValue()) { config.getAliases().put(namealias, entry.getKey()); |
File | Project | Line |
---|---|---|
org/waarp/openr66/protocol/http/HttpFormattedHandler.java | Waarp OpenR66 | 852 |
org/waarp/openr66/protocol/http/adminssl/HttpSslHandler.java | Waarp OpenR66 | 2455 |
if (cookie.name().equalsIgnoreCase(I18NEXT)) { i18nextFound = true; cookie.setValue(lang); response.headers().add(HttpHeaderNames.SET_COOKIE, ServerCookieEncoder.LAX.encode(cookie)); } else { response.headers().add(HttpHeaderNames.SET_COOKIE, ServerCookieEncoder.LAX.encode(cookie)); } } if (!i18nextFound) { final Cookie cookie = new DefaultCookie(I18NEXT, lang); response.headers().add(HttpHeaderNames.SET_COOKIE, ServerCookieEncoder.LAX.encode(cookie)); } |
File | Project | Line |
---|---|---|
org/waarp/openr66/protocol/http/adminssl/HttpResponsiveSslHandler.java | Waarp OpenR66 | 329 |
org/waarp/openr66/protocol/http/adminssl/HttpSslHandler.java | Waarp OpenR66 | 781 |
errorText = restartOrStopAll.getErrorText(); } else if ("Cancel".equalsIgnoreCase(parm) || "CancelClean".equalsIgnoreCase(parm) || "Stop".equalsIgnoreCase(parm)) { // Cancel or Stop final boolean stop = "Stop".equalsIgnoreCase(parm); final String specid = getValue("specid"); final String reqd = getValue("reqd"); final String reqr = getValue("reqr"); final LocalChannelReference lcr = Configuration.configuration.getLocalTransaction().getFromRequest( reqd + ' ' + reqr + ' ' + specid); // stop the current transfer ErrorCode result; final long lspecid; try { lspecid = Long.parseLong(specid); } catch (final NumberFormatException e) { |
File | Project | Line |
---|---|---|
org/waarp/thrift/r66/R66Service.java | Waarp Thrift | 1216 |
org/waarp/thrift/r66/R66Service.java | Waarp Thrift | 2041 |
org/waarp/thrift/r66/R66Service.java | Waarp Thrift | 3910 |
setSuccess((R66Result) value); } } } @Override public final Object getFieldValue(final _Fields field) { if (field == _Fields.SUCCESS) { return getSuccess(); } throw new IllegalStateException(); } /** * Returns true if field corresponding to fieldID is set (has been * assigned * a value) and false otherwise */ @Override public final boolean isSet(final _Fields field) { if (field == null) { throw new IllegalArgumentException(); } if (field == _Fields.SUCCESS) { return isSetSuccess(); } throw new IllegalStateException(); } @Override public final boolean equals(final Object that) { if (that == null) { return false; } if (that instanceof transferRequestQuery_result) { |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 388 |
org/waarp/common/utility/Base64.java | Waarp Common | 405 |
org/waarp/common/utility/Base64.java | Waarp Common | 467 |
org/waarp/common/utility/Base64.java | Waarp Common | 484 |
org/waarp/common/utility/Base64.java | Waarp Common | 544 |
org/waarp/common/utility/Base64.java | Waarp Common | 561 |
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n' through 'z' -9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, |
File | Project | Line |
---|---|---|
org/waarp/openr66/context/task/ExecMoveTask.java | Waarp OpenR66 | 91 |
org/waarp/openr66/context/task/ExecOutputTask.java | Waarp OpenR66 | 98 |
move(result.getStatus(), result.getResult(), finalname); localExecClient.disconnect(); return; } // else continue } final PrepareCommandExec prepareCommandExec = new PrepareCommandExec(this, finalname, false, waitForValidation).invoke(); if (prepareCommandExec.isError()) { return; } final CommandLine commandLine = prepareCommandExec.getCommandLine(); final DefaultExecutor defaultExecutor = prepareCommandExec.getDefaultExecutor(); final PipedInputStream inputStream = prepareCommandExec.getInputStream(); final PipedOutputStream outputStream = prepareCommandExec.getOutputStream(); final PumpStreamHandler pumpStreamHandler = prepareCommandExec.getPumpStreamHandler(); final ExecuteWatchdog watchdog = prepareCommandExec.getWatchdog(); final LastLineReader lastLineReader = new LastLineReader(inputStream); |
File | Project | Line |
---|---|---|
org/waarp/openr66/context/task/RescheduleTransferTask.java | Waarp OpenR66 | 337 |
org/waarp/openr66/context/task/RescheduleTransferTask.java | Waarp OpenR66 | 384 |
final String[] elmts = args[i].split(";"); boolean startModified = false; String[] values = elmts[0].split(":"); Calendar start = getCalendar(values); if (start != null) { startModified = true; } else { start = Calendar.getInstance(); } boolean stopModified = false; values = elmts[1].split(":"); Calendar stop = getCalendar(values); if (stop != null) { stopModified = true; } else { stop = Calendar.getInstance(); } logger.debug("Dates before check: Not between {} and {}", |
File | Project | Line |
---|---|---|
org/waarp/openr66/database/model/DbModelH2R66.java | Waarp OpenR66 | 136 |
org/waarp/openr66/database/model/DbModelOracleR66.java | Waarp OpenR66 | 307 |
.append(primaryKey).append(')'); SysErrLogger.FAKE_LOGGER.sysout(action); final DbRequest request = new DbRequest(session); try { request.query(action.toString()); } catch (final WaarpDatabaseSqlException e) { SysErrLogger.FAKE_LOGGER.ignoreLog(e); return false; } finally { request.close(); } } if (PartnerConfiguration.isVersion2GEQVersion1(version, R66Versions.V2_4_17.getVersion())) { SysErrLogger.FAKE_LOGGER.sysout( version + " to " + R66Versions.V2_4_17.getVersion() + "? " + true); final String command = "ALTER TABLE " + DbTaskRunner.table + " ADD COLUMN IF NOT EXISTS " + |
File | Project | Line |
---|---|---|
org/waarp/openr66/protocol/utils/TransferUtils.java | Waarp OpenR66 | 350 |
org/waarp/openr66/protocol/utils/TransferUtils.java | Waarp OpenR66 | 486 |
public static void stopSelectedTransfers(final DbSession dbSession, final int limit, final Object map, final R66Session session, final String body, final String startid, final String stopid, final Timestamp tstart, final Timestamp tstop, final String rule, final String req, final boolean pending, final boolean transfer, final boolean error, final String host) { if (dbSession == null || dbSession.isDisActive()) { // do it without DB if (ClientRunner.activeRunners != null) { for (final ClientRunner runner : ClientRunner.activeRunners) { final DbTaskRunner taskRunner = runner.getTaskRunner(); stopOneTransfer(taskRunner, map, session, body); |
File | Project | Line |
---|---|---|
org/waarp/compress/zstdsafe/ZstdFrameDecompressor.java | Waarp Compression | 962 |
org/waarp/compress/zstdunsafe/ZstdFrameDecompressor.java | Waarp Compression | 982 |
final int frameHeaderDescriptor = inputBase[input++] & 0xFF; final boolean singleSegment = (frameHeaderDescriptor & 0x20) != 0; final int dictionaryDescriptor = frameHeaderDescriptor & 0x3; final int contentSizeDescriptor = frameHeaderDescriptor >>> 6; final int headerSize = 1 + (singleSegment? 0 : 1) + (dictionaryDescriptor == 0? 0 : (1 << (dictionaryDescriptor - 1))) + (contentSizeDescriptor == 0? (singleSegment? 1 : 0) : (1 << contentSizeDescriptor)); verify(headerSize <= inputLimit - inputAddress, input, NOT_ENOUGH_INPUT_BYTES); // decode window size int windowSize = -1; if (!singleSegment) { final int windowDescriptor = inputBase[input++] & 0xFF; |
File | Project | Line |
---|---|---|
org/waarp/gateway/ftp/adminssl/HttpSslHandler.java | Waarp Gateway Ftp | 303 |
org/waarp/gateway/ftp/adminssl/HttpSslHandler.java | Waarp Gateway Ftp | 351 |
final String system = REQUEST.Rule.readFileUnique(); final StringBuilder builder = new StringBuilder(system); final CommandExecutor exec = AbstractExecutor.getCommandExecutor(); WaarpStringUtils.replace(builder, "XXXSTCXXX", exec.getStorType() + ' ' + exec.pstorCMD); WaarpStringUtils.replace(builder, "XXXSTDXXX", Long.toString(exec.getPstorDelay())); WaarpStringUtils.replace(builder, "XXXRTCXXX", exec.getRetrType() + ' ' + exec.pretrCMD); WaarpStringUtils.replace(builder, "XXXRTDXXX", Long.toString(exec.getPretrDelay())); |
File | Project | Line |
---|---|---|
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 674 |
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 725 |
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 801 |
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 843 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 524 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 571 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 583 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 636 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 681 |
new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_110, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_120, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_125, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_150, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_200, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_202, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_211, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_212, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 376 |
org/waarp/common/utility/Base64.java | Waarp Common | 453 |
63, // Slash at decimal 47 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, // Numbers zero through nine -9, -9, -9, // Decimal 58 - 60 -1, // Equals sign at decimal 61 -9, -9, -9, // Decimal 62 - 64 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, // Letters 'A' through 'N' 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, // Letters 'O' through 'Z' -9, -9, -9, -9, -9, -9, // Decimal 91 - 96 |
File | Project | Line |
---|---|---|
org/waarp/gateway/kernel/database/model/DbModelMysqlKernel.java | Waarp Gateway Kernel | 64 |
org/waarp/gateway/kernel/database/model/DbModelOracleKernel.java | Waarp Gateway Kernel | 61 |
org/waarp/gateway/kernel/database/model/DbModelPostgresqlKernel.java | Waarp Gateway Kernel | 54 |
final String primaryKey = " PRIMARY KEY "; final String notNull = " NOT NULL "; final DbRequest request = new DbRequest(session); // TRANSLOG StringBuilder action = new StringBuilder(createTableH2 + DbTransferLog.table + '('); final DbTransferLog.Columns[] acolumns = DbTransferLog.Columns.values(); for (int i = 0; i < acolumns.length; i++) { action.append(acolumns[i].name()) .append(DBType.getType(DbTransferLog.dbTypes[i])).append(notNull) .append(", "); } // Several columns for primary key action.append(" CONSTRAINT TRANSLOG_PK " + primaryKey + '('); |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 388 |
org/waarp/common/utility/Base64.java | Waarp Common | 405 |
org/waarp/common/utility/Base64.java | Waarp Common | 467 |
org/waarp/common/utility/Base64.java | Waarp Common | 484 |
org/waarp/common/utility/Base64.java | Waarp Common | 544 |
org/waarp/common/utility/Base64.java | Waarp Common | 561 |
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n' through 'z' -9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, |
File | Project | Line |
---|---|---|
org/waarp/compress/zstdsafe/SequenceEncoder.java | Waarp Compression | 240 |
org/waarp/compress/zstdunsafe/SequenceEncoder.java | Waarp Compression | 241 |
final int outputLimit, int sequenceCount, final int maxTableLog, final byte[] codes, final int[] counts, final int maxSymbol, final short[] normalizedCounts) { final int tableLog = optimalTableLog(maxTableLog, sequenceCount, maxSymbol); // this is a minor optimization. The last symbol is embedded in the initial FSE state, so it's not part of the bitstream. We can omit it from the // statistics (but only if its count is > 1). This makes the statistics a tiny bit more accurate. if (counts[codes[sequenceCount - 1]] > 1) { counts[codes[sequenceCount - 1]]--; sequenceCount--; } FiniteStateEntropy.normalizeCounts(normalizedCounts, tableLog, counts, sequenceCount, maxSymbol); table.initialize(normalizedCounts, maxSymbol, tableLog); return FiniteStateEntropy.writeNormalizedCounts(outputBase, output, |
File | Project | Line |
---|---|---|
org/waarp/openr66/protocol/localhandler/ServerActions.java | Waarp OpenR66 | 2194 |
org/waarp/openr66/protocol/localhandler/ServerActions.java | Waarp OpenR66 | 2226 |
final LocalChannelReference lcr = getLocalChannelReference(transfer); if (lcr == null) { // Transfer is not running transfer.setUpdatedInfo(UpdatedInfo.INERROR); transfer.setTransferInfo(code.getCode()); return new R66Result(session, true, ErrorCode.CompleteOk, session.getRunner()); } final ErrorPacket error = new ErrorPacket(code.name() + ' ' + transfer.getRank(), code.getCode(), ErrorPacket.FORWARDCLOSECODE); try { LocalServerHandler.channelRead0(lcr, error); } catch (final Exception e) { logger.error("Cannot stop transfer (" + transfer + ')', e); |
File | Project | Line |
---|---|---|
org/waarp/thrift/r66/R66Request.java | Waarp Thrift | 82 |
org/waarp/thrift/r66/R66Result.java | Waarp Thrift | 92 |
private static final TStruct STRUCT_DESC = new TStruct("R66Request"); private static final TField MODE_FIELD_DESC = new TField("mode", TType.I32, (short) 1); private static final TField FROMUID_FIELD_DESC = new TField(FROMUID2, TType.STRING, (short) 2); private static final TField DESTUID_FIELD_DESC = new TField(DESTUID2, TType.STRING, (short) 3); private static final TField FILE_FIELD_DESC = new TField("file", TType.STRING, (short) 4); private static final TField RULE_FIELD_DESC = new TField("rule", TType.STRING, (short) 5); private static final TField INFO_FIELD_DESC = |
File | Project | Line |
---|---|---|
org/waarp/common/tar/TarUtility.java | Waarp Common | 241 |
org/waarp/common/tar/ZipUtility.java | Waarp Common | 239 |
" option=3 means tar and source is a list of files comma separated"); System.exit(1);//NOSONAR } final int option = Integer.parseInt(args[0]); final String tarfile = args[1]; final String tarsource = args[2]; final String[] tarfiles; if (option == 3) { tarfiles = args[2].split(","); final File[] files = new File[tarfiles.length]; for (int i = 0; i < tarfiles.length; i++) { files[i] = new File(tarfiles[i]); } if (createTarFromFiles(files, tarfile)) { |
File | Project | Line |
---|---|---|
org/waarp/thrift/r66/R66Service.java | Waarp Thrift | 659 |
org/waarp/thrift/r66/R66Service.java | Waarp Thrift | 1495 |
org/waarp/thrift/r66/R66Service.java | Waarp Thrift | 3343 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); static { for (final _Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its * not * found. */ public static _Fields findByThriftId(final int fieldId) { if (fieldId == 1) { // REQUEST return REQUEST; } return null; } /** * Find the _Fields constant that matches fieldId, throwing an * exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(final int fieldId) { final _Fields fields = findByThriftId(fieldId); if (fields == null) { throw new IllegalArgumentException(FIELD + fieldId + DOESN_T_EXIST); |
File | Project | Line |
---|---|---|
org/waarp/common/xml/XmlUtil.java | Waarp Common | 318 |
org/waarp/common/xml/XmlUtil.java | Waarp Common | 509 |
for (int i = 0; i < pathes.length - 1; i++) { final String nodename = pathes[i]; if (!nodename.isEmpty()) { final Element exist = current.element(nodename); if (exist == null) { current = current.addElement(nodename); } else { current = exist; } } } final String nodename = pathes[pathes.length - 1]; if (!nodename.isEmpty()) { current = current.addElement(nodename); } return current; } /** * @param ref * @param path * * @return the parent element associated with the path relatively to the * referent element * * @throws DocumentException */ public static Element getParentElement(final Element ref, final String path) |
File | Project | Line |
---|---|---|
org/waarp/gateway/ftp/snmp/FtpVariableFactory.java | Waarp Gateway Ftp | 36 |
org/waarp/snmp/utils/WaarpDefaultVariableFactory.java | Waarp Snmp | 40 |
public class FtpVariableFactory implements WaarpInterfaceVariableFactory { @Override public final Variable getVariable(final OID oid, final int type, final int mibLevel, final int entry) { final Variable var; switch (type) { case SMIConstants.SYNTAX_INTEGER: // case SMIConstants.SYNTAX_INTEGER32: var = new Integer32(); break; case SMIConstants.SYNTAX_OCTET_STRING: // case SMIConstants.SYNTAX_BITS: var = new OctetString(); break; case SMIConstants.SYNTAX_NULL: var = new Null(); break; case SMIConstants.SYNTAX_OBJECT_IDENTIFIER: var = new OID(); break; case SMIConstants.SYNTAX_IPADDRESS: var = new IpAddress(); break; case SMIConstants.SYNTAX_COUNTER32: var = new FtpCounter32(mibLevel, entry); |
File | Project | Line |
---|---|---|
org/waarp/openr66/proxy/network/NetworkServerHandler.java | Waarp Proxy in R66 protocol | 270 |
org/waarp/openr66/protocol/networkhandler/NetworkServerHandler.java | Waarp OpenR66 | 456 |
logger.debug("Proxy Network Channel Exception: {}", channel.id(), cause); if (cause instanceof ReadTimeoutException) { final ReadTimeoutException exception = (ReadTimeoutException) cause; // No read for too long logger.error("ReadTimeout so Will close NETWORK channel {}", exception.getClass().getName() + " : " + exception.getMessage()); ChannelCloseTimer.closeFutureChannel(channel); return; } if (cause instanceof BindException) { // received when not yet connected logger.debug("BindException"); ChannelCloseTimer.closeFutureChannel(channel); return; } final OpenR66Exception exception = OpenR66ExceptionTrappedFactory.getExceptionFromTrappedException(channel, cause); if (exception != null) { if (exception instanceof OpenR66ProtocolBusinessNoWriteBackException) { |
File | Project | Line |
---|---|---|
org/waarp/openr66/protocol/http/adminssl/HttpResponsiveSslHandler.java | Waarp OpenR66 | 276 |
org/waarp/openr66/protocol/http/adminssl/HttpSslHandler.java | Waarp OpenR66 | 472 |
org/waarp/openr66/protocol/http/adminssl/HttpSslHandler.java | Waarp OpenR66 | 604 |
error = params.containsKey("error"); done = params.containsKey("done"); all = params.containsKey("all"); if (pending && transfer && error && done) { all = true; } else if (!(pending || transfer || error || done)) { all = true; } final Timestamp tstart = WaarpStringUtils.fixDate(start); if (tstart != null) { start = tstart.toString(); } final Timestamp tstop = WaarpStringUtils.fixDate(stop, tstart); if (tstop != null) { stop = tstop.toString(); } |
File | Project | Line |
---|---|---|
org/waarp/common/crypto/ssl/WaarpSecureKeyStore.java | Waarp Common | 107 |
org/waarp/common/crypto/ssl/WaarpSecureKeyStore.java | Waarp Common | 198 |
keyStore.load(null, getKeyStorePassword()); } catch (final NoSuchAlgorithmException e) { logger.error(CANNOT_CREATE_KEY_STORE_INSTANCE, e); throw new CryptoException(CANNOT_CREATE_KEY_STORE_INSTANCE, e); } catch (final CertificateException e) { logger.error(CANNOT_CREATE_KEY_STORE_INSTANCE, e); throw new CryptoException(CANNOT_CREATE_KEY_STORE_INSTANCE, e); } catch (final FileNotFoundException e) { logger.error(CANNOT_CREATE_KEY_STORE_INSTANCE, e); throw new CryptoException(CANNOT_CREATE_KEY_STORE_INSTANCE, e); } catch (final IOException e) { logger.error(CANNOT_CREATE_KEY_STORE_INSTANCE, e); throw new CryptoException(CANNOT_CREATE_KEY_STORE_INSTANCE, e); } |
File | Project | Line |
---|---|---|
org/waarp/common/utility/Base64.java | Waarp Common | 388 |
org/waarp/common/utility/Base64.java | Waarp Common | 405 |
org/waarp/common/utility/Base64.java | Waarp Common | 467 |
org/waarp/common/utility/Base64.java | Waarp Common | 484 |
org/waarp/common/utility/Base64.java | Waarp Common | 544 |
org/waarp/common/utility/Base64.java | Waarp Common | 561 |
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n' through 'z' -9, -9, -9, -9, -9 // Decimal 123 - 127 , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 - 139 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 - 152 -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, |
File | Project | Line |
---|---|---|
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 183 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 212 |
applicationProtocolBase = srootOIDWaarp + ".1.1.4."; ggObjectId = new OID(srootOIDWaarp); applicationProtocol = new OID(applicationProtocolBase + port); rootOIDWaarp = new OID(srootOIDWaarp); rootOIDWaarpInfo = new OID(srootOIDWaarp + ".1"); rootOIDWaarpGlobal = new OID(srootOIDWaarp + ".2"); rootOIDWaarpGlobalUptime = new OID( rootOIDWaarpGlobal + "." + WaarpGlobalValuesIndex.applUptime.getOID() + ".0"); rootOIDWaarpDetailed = new OID(srootOIDWaarp + ".3"); rootOIDWaarpError = new OID(srootOIDWaarp + ".4"); rootOIDWaarpNotif = new OID(srootOIDWaarp + ".5.1"); rootOIDWaarpNotifStartOrShutdown = new OID(srootOIDWaarp + ".5.1.1.1"); } |
File | Project | Line |
---|---|---|
org/waarp/openr66/commander/Commander.java | Waarp OpenR66 | 322 |
org/waarp/openr66/commander/Commander.java | Waarp OpenR66 | 356 |
final DbConfiguration configuration = configurations[i]; if (configuration.isOwnConfiguration()) { configuration.updateConfiguration(); } if (multipleMonitor != null) { // update the configuration in HA mode if (multipleMonitor.checkUpdateConfig()) { configuration.changeUpdatedInfo( AbstractDbData.UpdatedInfo.NOTUPDATED); configuration.update(); logger.debug(CONFIG, multipleMonitor); } else { configuration.update(); logger.debug(CONFIG, multipleMonitor); } } else { configuration.changeUpdatedInfo(AbstractDbData.UpdatedInfo.NOTUPDATED); configuration.update(); } i++; } } private void checkHostConfiguration(final DbMultipleMonitor multipleMonitor) |
File | Project | Line |
---|---|---|
org/waarp/openr66/database/model/DbModelOracleR66.java | Waarp OpenR66 | 307 |
org/waarp/openr66/database/model/DbModelPostgresqlR66.java | Waarp OpenR66 | 154 |
.append(chcolumns[chcolumns.length - 1].name()).append("))"); SysErrLogger.FAKE_LOGGER.sysout(action); final DbRequest request = new DbRequest(session); try { request.query(action.toString()); } catch (final WaarpDatabaseSqlException e) { SysErrLogger.FAKE_LOGGER.ignoreLog(e); return false; } finally { request.close(); } } if (PartnerConfiguration.isVersion2GEQVersion1(version, R66Versions.V2_4_17.getVersion())) { SysErrLogger.FAKE_LOGGER.sysout( version + " to " + R66Versions.V2_4_17.getVersion() + "? " + true); final String command = "ALTER TABLE " + DbTaskRunner.table + " ADD ( " + |
File | Project | Line |
---|---|---|
org/waarp/openr66/protocol/http/rest/handler/HttpRestBusinessR66Handler.java | Waarp OpenR66 | 68 |
org/waarp/openr66/protocol/http/rest/handler/HttpRestConfigR66Handler.java | Waarp OpenR66 | 67 |
org/waarp/openr66/protocol/http/rest/handler/HttpRestControlR66Handler.java | Waarp OpenR66 | 75 |
setIntersectionMethods(methods, METHOD.GET); } @Override public final void endParsingRequest(final HttpRestHandler handler, final RestArgument arguments, final RestArgument result, final Object body) throws HttpIncorrectRequestException, HttpInvalidAuthenticationException { try { HttpRestV1Utils.checkSanity(arguments); } catch (final InvalidArgumentException e) { throw new HttpIncorrectRequestException("Issue on values", e); } logger.debug("debug: {} ### {}", arguments, result); if (body != null) { logger.debug("Obj: {}", body); } handler.setWillClose(false); final ServerActions serverHandler = ((HttpRestR66Handler) handler).getServerHandler(); final R66Session session = serverHandler.getSession(); |
File | Project | Line |
---|---|---|
org/waarp/common/crypto/DynamicKeyManager.java | Waarp Common | 65 |
org/waarp/common/crypto/KeyManager.java | Waarp Common | 56 |
public final List<String> initFromList(final List<String> keys) { final LinkedList<String> wrong = new LinkedList<String>(); for (final String filename : keys) { final File file = new File(filename); if (file.canRead()) { final String basename = file.getName(); final int lastpos = basename.lastIndexOf('.'); if (lastpos <= 0) { wrong.add(filename); continue; } final String firstname = basename.substring(0, lastpos); |
File | Project | Line |
---|---|---|
org/waarp/gateway/ftp/config/FileBasedConfiguration.java | Waarp Gateway Ftp | 925 |
org/waarp/openr66/configuration/FileBasedConfiguration.java | Waarp OpenR66 | 1043 |
} boolean useCpuLimit = false; boolean useCpuLimitJDK = false; double cpulimit = 1.0; value = hashConfig.get(XML_CSTRT_USECPULIMIT); if (value != null && !value.isEmpty()) { useCpuLimit = value.getBoolean(); value = hashConfig.get(XML_CSTRT_USECPUJDKLIMIT); if (value != null && !value.isEmpty()) { useCpuLimitJDK = value.getBoolean(); } value = hashConfig.get(XML_CSTRT_CPULIMIT); if (value != null && !value.isEmpty()) { cpulimit = value.getDouble(); |
File | Project | Line |
---|---|---|
org/waarp/gateway/ftp/database/data/DbTransferLog.java | Waarp Gateway Ftp | 568 |
org/waarp/gateway/kernel/database/data/DbTransferLog.java | Waarp Gateway Kernel | 578 |
request += " WHERE " + statusWhereFilter + Columns.STARTTRANS.name() + " >= ? AND " + Columns.STARTTRANS.name() + " <= ? AND " + getLimitWhereCondition() + " ORDER BY " + Columns.SPECIALID.name() + " DESC "; preparedStatement.createPrepareStatement(request); try { preparedStatement.getPreparedStatement().setTimestamp(1, start); preparedStatement.getPreparedStatement().setTimestamp(2, stop); } catch (final SQLException e) { preparedStatement.realClose(); throw new WaarpDatabaseSqlException(e); } } else if (start != null) { request += " WHERE " + statusWhereFilter + Columns.STARTTRANS.name() + |
File | Project | Line |
---|---|---|
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 725 |
org/waarp/gateway/ftp/snmp/FtpPrivateMib.java | Waarp Gateway Ftp | 843 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 501 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 583 |
org/waarp/snmp/r66/WaarpPrivateMib.java | Waarp Snmp | 681 |
new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_230, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_232, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_234, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_250, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_257, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_331, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_332, new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY), // reply_350 new WaarpEntry(SMIConstants.SYNTAX_GAUGE32, MOAccessImpl.ACCESS_READ_ONLY) |
File | Project | Line |
---|---|---|
org/waarp/openr66/protocol/http/rest/handler/DbConfigurationR66RestMethodHandler.java | Waarp OpenR66 | 265 |
org/waarp/openr66/protocol/http/rest/handler/DbHostConfigurationR66RestMethodHandler.java | Waarp OpenR66 | 281 |
item.updateConfiguration(); } } @Override protected final void checkAuthorization(final HttpRestHandler handler, final RestArgument arguments, final RestArgument result, final METHOD method) throws HttpForbiddenRequestException { try { HttpRestV1Utils.checkSanity(arguments); } catch (final InvalidArgumentException e) { throw new HttpForbiddenRequestException("Issue on values", e); } final HttpRestR66Handler r66handler = (HttpRestR66Handler) handler; final R66Session session = r66handler.getServerHandler().getSession(); if (!session.getAuth().isValidRole(ROLE.CONFIGADMIN)) { throw new HttpForbiddenRequestException( "Partner must have ConfigAdmin role"); } } } |
File | Project | Line |
---|---|---|
org/waarp/openr66/protocol/http/rest/handler/HttpRestBusinessR66Handler.java | Waarp OpenR66 | 68 |
org/waarp/openr66/protocol/http/rest/handler/HttpRestControlR66Handler.java | Waarp OpenR66 | 75 |
org/waarp/openr66/protocol/http/rest/handler/HttpRestInformationR66Handler.java | Waarp OpenR66 | 64 |
org/waarp/openr66/protocol/http/rest/handler/HttpRestLogR66Handler.java | Waarp OpenR66 | 65 |
org/waarp/openr66/protocol/http/rest/handler/HttpRestServerR66Handler.java | Waarp OpenR66 | 69 |
setIntersectionMethods(methods, METHOD.GET); } @Override public final void endParsingRequest(final HttpRestHandler handler, final RestArgument arguments, final RestArgument result, final Object body) throws HttpIncorrectRequestException, HttpInvalidAuthenticationException { try { HttpRestV1Utils.checkSanity(arguments); } catch (final InvalidArgumentException e) { throw new HttpIncorrectRequestException("Issue on values", e); } logger.debug("debug: {} ### {}", arguments, result); if (body != null) { logger.debug("Obj: {}", body); } handler.setWillClose(false); final ServerActions serverHandler = ((HttpRestR66Handler) handler).getServerHandler(); |
File | Project | Line |
---|---|---|
org/waarp/common/database/model/DbModelH2.java | Waarp Common | 113 |
org/waarp/common/database/model/DbModelMariadb.java | Waarp Common | 152 |
org/waarp/common/database/model/DbModelMysql.java | Waarp Common | 208 |
protected DbModelH2() throws WaarpDatabaseNoConnectionException { if (DbModelFactory.classLoaded.contains(type.name())) { return; } try { DriverManager.registerDriver(new Driver()); DbModelFactory.classLoaded.add(type.name()); } catch (final SQLException e) { // SQLException logger.error( "Cannot register Driver " + type.name() + ' ' + e.getMessage()); DbConstant.error(e); throw new WaarpDatabaseNoConnectionException( "Cannot load database drive:" + type.name(), e); } } @Override public final void releaseResources() { |
File | Project | Line |
---|---|---|
org/waarp/common/xml/XmlUtil.java | Waarp Common | 431 |
org/waarp/common/xml/XmlUtil.java | Waarp Common | 488 |
public static Element addOrGetElement(final Document doc, final String path) { final String[] pathes = path.split("/"); int rank; for (rank = 0; rank < pathes.length; rank++) { if (!pathes[rank].isEmpty()) { break; // found } } if (rank >= pathes.length) { return null; // Should not be ! } Element current = (Element) doc.selectSingleNode(pathes[rank]); if (current == null) { current = doc.addElement(pathes[rank]); } |
File | Project | Line |
---|---|---|
org/waarp/ftp/simpleimpl/control/SimpleBusinessHandler.java | Waarp Ftp SimpleServer | 133 |
org/waarp/gateway/ftp/control/ExecBusinessHandler.java | Waarp Gateway Ftp | 481 |
builder.append("\nEnd"); return builder.toString(); } @Override public final String getOptsMessage(final String[] args) throws CommandAbstractException { if (args.length > 0) { if (args[0].equalsIgnoreCase(FtpCommandCode.MLST.name()) || args[0].equalsIgnoreCase(FtpCommandCode.MLSD.name())) { return getMLSxOptsMessage(args); } throw new Reply502Exception("OPTS not implemented for " + args[0]); } throw new Reply502Exception("OPTS not implemented"); } @Override public AbstractCommand getSpecializedSiteCommand(final FtpSession session, |
File | Project | Line |
---|---|---|
org/waarp/openr66/protocol/http/adminssl/HttpResponsiveSslHandler.java | Waarp OpenR66 | 1553 |
org/waarp/openr66/protocol/http/adminssl/HttpSslHandler.java | Waarp OpenR66 | 1710 |
if (ParametersChecker.isNotEmpty(name)) { // name is specified uri = request.uri(); if (istatus != 0) { uri += "&status=" + istatus; } final StringBuilder builder = SpooledInformTask.buildSpooledUniqueTable(uri, name); return spooled.replace("XXXSPOOLEDXXX", builder.toString()); } else { if (istatus != 0) { uri += "&status=" + istatus; } final StringBuilder builder = SpooledInformTask.buildSpooledTable(detailed, istatus, uri); return spooled.replace("XXXSPOOLEDXXX", builder.toString()); } } |
File | Project | Line |
---|---|---|
org/waarp/openr66/protocol/utils/TransferUtils.java | Waarp OpenR66 | 368 |
org/waarp/openr66/protocol/utils/TransferUtils.java | Waarp OpenR66 | 505 |
stopOneTransfer(taskRunner, map, session, body); } } if (CommanderNoDb.todoList != null) { CommanderNoDb.todoList.clear(); } return; } DbPreparedStatement preparedStatement = null; try { preparedStatement = DbTaskRunner.getFilterPrepareStatement(dbSession, limit, true, startid, stopid, tstart, tstop, rule, req, pending, transfer, error, false, false, host); preparedStatement.executeQuery(); while (preparedStatement.getNext()) { final DbTaskRunner taskRunner = DbTaskRunner.getFromStatement(preparedStatement); stopOneTransfer(taskRunner, map, session, body); |