repo_name
stringlengths 4
116
| path
stringlengths 3
942
| size
stringlengths 1
7
| content
stringlengths 3
1.05M
| license
stringclasses 15
values |
---|---|---|---|---|
google/google-authenticator-libpam
|
examples/demo.c
|
4991
|
// Demo wrapper for the PAM module. This is part of the Google Authenticator
// project.
//
// Copyright 2011 Google Inc.
// Author: Markus Gutschke
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
#include "config.h"
#include <assert.h>
#include <fcntl.h>
#include <security/pam_appl.h>
#include <security/pam_modules.h>
#include <setjmp.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/resource.h>
#include <sys/time.h>
#include <termios.h>
#include <unistd.h>
#if !defined(PAM_BAD_ITEM)
// FreeBSD does not know about PAM_BAD_ITEM. And PAM_SYMBOL_ERR is an "enum",
// we can't test for it at compile-time.
#define PAM_BAD_ITEM PAM_SYMBOL_ERR
#endif
static struct termios old_termios;
static int jmpbuf_valid;
static sigjmp_buf jmpbuf;
static int conversation(int num_msg, PAM_CONST struct pam_message **msg,
struct pam_response **resp, void *appdata_ptr) {
if (num_msg == 1 &&
(msg[0]->msg_style == PAM_PROMPT_ECHO_OFF ||
msg[0]->msg_style == PAM_PROMPT_ECHO_ON)) {
*resp = malloc(sizeof(struct pam_response));
assert(*resp);
(*resp)->resp = calloc(1024, 1);
struct termios termios = old_termios;
if (msg[0]->msg_style == PAM_PROMPT_ECHO_OFF) {
termios.c_lflag &= ~(ECHO|ECHONL);
}
sigsetjmp(jmpbuf, 1);
jmpbuf_valid = 1;
sigset_t mask;
sigemptyset(&mask);
sigaddset(&mask, SIGTSTP);
assert(!sigprocmask(SIG_UNBLOCK, &mask, NULL));
printf("%s ", msg[0]->msg);
assert(!tcsetattr(0, TCSAFLUSH, &termios));
assert(fgets((*resp)->resp, 1024, stdin));
assert(!tcsetattr(0, TCSAFLUSH, &old_termios));
puts("");
assert(!sigprocmask(SIG_BLOCK, &mask, NULL));
jmpbuf_valid = 0;
char *ptr = strrchr((*resp)->resp, '\n');
if (ptr) {
*ptr = '\000';
}
(*resp)->resp_retcode = 0;
return PAM_SUCCESS;
}
if (num_msg == 1 && msg[0]->msg_style == PAM_ERROR_MSG) {
printf("Error message to user: %s\n", msg[0]->msg);
return PAM_SUCCESS;
}
return PAM_CONV_ERR;
}
#ifdef sun
#define PAM_CONST
#else
#define PAM_CONST const
#endif
int pam_get_user(pam_handle_t *pamh, PAM_CONST char **user,
const char *prompt) {
return pam_get_item(pamh, PAM_USER, (void *)user);
}
int pam_get_item(const pam_handle_t *pamh, int item_type,
PAM_CONST void **item) {
switch (item_type) {
case PAM_SERVICE: {
static const char service[] = "google_authenticator_demo";
*item = service;
return PAM_SUCCESS;
}
case PAM_USER: {
char *user = getenv("USER");
*item = user;
return PAM_SUCCESS;
}
case PAM_CONV: {
static struct pam_conv conv = { .conv = conversation }, *p_conv = &conv;
*item = p_conv;
return PAM_SUCCESS;
}
default:
return PAM_BAD_ITEM;
}
}
int pam_set_item(pam_handle_t *pamh, int item_type,
const void *item) {
switch (item_type) {
case PAM_AUTHTOK:
return PAM_SUCCESS;
default:
return PAM_BAD_ITEM;
}
}
static void print_diagnostics(int signo) {
extern const char *get_error_msg(void);
assert(!tcsetattr(0, TCSAFLUSH, &old_termios));
fprintf(stderr, "%s\n", get_error_msg());
_exit(1);
}
static void reset_console(int signo) {
assert(!tcsetattr(0, TCSAFLUSH, &old_termios));
puts("");
_exit(1);
}
static void stop(int signo) {
assert(!tcsetattr(0, TCSAFLUSH, &old_termios));
puts("");
raise(SIGSTOP);
}
static void cont(int signo) {
if (jmpbuf_valid) {
siglongjmp(jmpbuf, 0);
}
}
int main(int argc, char *argv[]) {
extern int pam_sm_authenticate(pam_handle_t *, int, int, const char **);
// Try to redirect stdio to /dev/tty
int fd = open("/dev/tty", O_RDWR);
if (fd >= 0) {
dup2(fd, 0);
dup2(fd, 1);
dup2(fd, 2);
close(fd);
}
// Disable core files
assert(!setrlimit(RLIMIT_CORE, (struct rlimit []){ { 0, 0 } }));
// Set up error and job control handlers
assert(!tcgetattr(0, &old_termios));
sigset_t mask;
sigemptyset(&mask);
sigaddset(&mask, SIGTSTP);
assert(!sigprocmask(SIG_BLOCK, &mask, NULL));
assert(!signal(SIGABRT, print_diagnostics));
assert(!signal(SIGINT, reset_console));
assert(!signal(SIGTSTP, stop));
assert(!signal(SIGCONT, cont));
// Attempt login
if (pam_sm_authenticate(NULL, 0, argc-1, (const char **)argv+1)
!= PAM_SUCCESS) {
fprintf(stderr, "Login failed\n");
abort();
}
return 0;
}
|
apache-2.0
|
phoenixsbk/kvmmgr
|
README.md
|
9
|
# kvmmgr
|
apache-2.0
|
mdoering/backbone
|
life/Plantae/Magnoliophyta/Magnoliopsida/Rosales/Rosaceae/Aruncus/Aruncus dioicus/Spiraea aruncus aruncus/README.md
|
170
|
# Spiraea aruncus var. aruncus VARIETY
#### Status
ACCEPTED
#### According to
NUB Generator [autonym]
#### Published in
null
#### Original name
null
### Remarks
null
|
apache-2.0
|
stweil/tesseract-ocr.github.io
|
4.0.0-beta.1/a00878.html
|
5430
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>tesseract: /home/stweil/src/github/tesseract-ocr/tesseract/classify/trainingsampleset.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">tesseract
 <span id="projectnumber">4.00.00dev</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('a00878.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div class="header">
<div class="summary">
<a href="#nested-classes">Classes</a> |
<a href="#namespaces">Namespaces</a> </div>
<div class="headertitle">
<div class="title">trainingsampleset.h File Reference</div> </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include "<a class="el" href="a00494_source.html">bitvector.h</a>"</code><br />
<code>#include "<a class="el" href="a00536_source.html">genericvector.h</a>"</code><br />
<code>#include "<a class="el" href="a00554_source.html">indexmapbidi.h</a>"</code><br />
<code>#include "<a class="el" href="a00323_source.html">matrix.h</a>"</code><br />
<code>#include "<a class="el" href="a00860_source.html">shapetable.h</a>"</code><br />
<code>#include "<a class="el" href="a00872_source.html">trainingsample.h</a>"</code><br />
</div>
<p><a href="a00878_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="a04346.html">tesseract::TrainingSampleSet</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="namespaces"></a>
Namespaces</h2></td></tr>
<tr class="memitem:a01744"><td class="memItemLeft" align="right" valign="top">  </td><td class="memItemRight" valign="bottom"><a class="el" href="a01744.html">tesseract</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
</table>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="dir_31c6146c13abcc5d811ec2a212816f48.html">classify</a></li><li class="navelem"><a class="el" href="a00878.html">trainingsampleset.h</a></li>
<li class="footer">Generated on Wed Mar 28 2018 19:53:41 for tesseract by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
</ul>
</div>
</body>
</html>
|
apache-2.0
|
Ken-Richard/tincan_nodejs
|
config/environment.js
|
385
|
module.exports = function(app, express) {
app.configure(function() {
app.use(express.logger());
});
app.configure('development', function() {
app.use(express.errorHandler({
dumpExceptions: true,
showStack: true
}));
});
app.configure('production', function() {
app.use(express.errorHandler());
});
};
|
apache-2.0
|
ahars/dataviz-jhipster
|
src/main/java/com/ahars/domain/util/FixedH2Dialect.java
|
251
|
package com.ahars.domain.util;
import java.sql.Types;
import org.hibernate.dialect.H2Dialect;
public class FixedH2Dialect extends H2Dialect {
public FixedH2Dialect() {
super();
registerColumnType( Types.FLOAT, "real" );
}
}
|
apache-2.0
|
eug48/hapi-fhir
|
hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ExpressionNode.java
|
17778
|
package org.hl7.fhir.instance.model;
import java.util.*;
import org.hl7.fhir.instance.utils.IWorkerContext;
import org.hl7.fhir.utilities.Utilities;
public class ExpressionNode {
public enum Kind {
Name, Function, Constant, Group
}
public static class SourceLocation {
private int line;
private int column;
public SourceLocation(int line, int column) {
super();
this.line = line;
this.column = column;
}
public int getLine() {
return line;
}
public int getColumn() {
return column;
}
public void setLine(int line) {
this.line = line;
}
public void setColumn(int column) {
this.column = column;
}
public String toString() {
return Integer.toString(line)+", "+Integer.toString(column);
}
}
public enum Function {
Custom,
Empty, Not, Exists, SubsetOf, SupersetOf, IsDistinct, Distinct, Count, Where, Select, All, Repeat, Item /*implicit from name[]*/, As, Is, Single,
First, Last, Tail, Skip, Take, Iif, ToInteger, ToDecimal, ToString, Substring, StartsWith, EndsWith, Matches, ReplaceMatches, Contains, Replace, Length,
Children, Descendants, MemberOf, Trace, Today, Now, Resolve, Extension;
public static Function fromCode(String name) {
if (name.equals("empty")) return Function.Empty;
if (name.equals("not")) return Function.Not;
if (name.equals("exists")) return Function.Exists;
if (name.equals("subsetOf")) return Function.SubsetOf;
if (name.equals("supersetOf")) return Function.SupersetOf;
if (name.equals("isDistinct")) return Function.IsDistinct;
if (name.equals("distinct")) return Function.Distinct;
if (name.equals("count")) return Function.Count;
if (name.equals("where")) return Function.Where;
if (name.equals("select")) return Function.Select;
if (name.equals("all")) return Function.All;
if (name.equals("repeat")) return Function.Repeat;
if (name.equals("item")) return Function.Item;
if (name.equals("as")) return Function.As;
if (name.equals("is")) return Function.Is;
if (name.equals("single")) return Function.Single;
if (name.equals("first")) return Function.First;
if (name.equals("last")) return Function.Last;
if (name.equals("tail")) return Function.Tail;
if (name.equals("skip")) return Function.Skip;
if (name.equals("take")) return Function.Take;
if (name.equals("iif")) return Function.Iif;
if (name.equals("toInteger")) return Function.ToInteger;
if (name.equals("toDecimal")) return Function.ToDecimal;
if (name.equals("toString")) return Function.ToString;
if (name.equals("substring")) return Function.Substring;
if (name.equals("startsWith")) return Function.StartsWith;
if (name.equals("endsWith")) return Function.EndsWith;
if (name.equals("matches")) return Function.Matches;
if (name.equals("replaceMatches")) return Function.ReplaceMatches;
if (name.equals("contains")) return Function.Contains;
if (name.equals("replace")) return Function.Replace;
if (name.equals("length")) return Function.Length;
if (name.equals("children")) return Function.Children;
if (name.equals("descendants")) return Function.Descendants;
if (name.equals("memberOf")) return Function.MemberOf;
if (name.equals("trace")) return Function.Trace;
if (name.equals("today")) return Function.Today;
if (name.equals("now")) return Function.Now;
if (name.equals("resolve")) return Function.Resolve;
if (name.equals("extension")) return Function.Extension;
return null;
}
public String toCode() {
switch (this) {
case Empty : return "empty";
case Not : return "not";
case Exists : return "exists";
case SubsetOf : return "subsetOf";
case SupersetOf : return "supersetOf";
case IsDistinct : return "isDistinct";
case Distinct : return "distinct";
case Count : return "count";
case Where : return "where";
case Select : return "select";
case All : return "all";
case Repeat : return "repeat";
case Item : return "item";
case As : return "as";
case Is : return "is";
case Single : return "single";
case First : return "first";
case Last : return "last";
case Tail : return "tail";
case Skip : return "skip";
case Take : return "take";
case Iif : return "iif";
case ToInteger : return "toInteger";
case ToDecimal : return "toDecimal";
case ToString : return "toString";
case Substring : return "substring";
case StartsWith : return "startsWith";
case EndsWith : return "endsWith";
case Matches : return "matches";
case ReplaceMatches : return "replaceMatches";
case Contains : return "contains";
case Replace : return "replace";
case Length : return "length";
case Children : return "children";
case Descendants : return "descendants";
case MemberOf : return "memberOf";
case Trace : return "trace";
case Today : return "today";
case Now : return "now";
case Resolve : return "resolve";
case Extension : return "extension";
default: return "??";
}
}
}
public enum Operation {
Equals, Equivalent, NotEquals, NotEquivalent, LessThen, Greater, LessOrEqual, GreaterOrEqual, Is, As, Union, Or, And, Xor, Implies,
Times, DivideBy, Plus, Minus, Concatenate, Div, Mod, In, Contains;
public static Operation fromCode(String name) {
if (Utilities.noString(name))
return null;
if (name.equals("="))
return Operation.Equals;
if (name.equals("~"))
return Operation.Equivalent;
if (name.equals("!="))
return Operation.NotEquals;
if (name.equals("!~"))
return Operation.NotEquivalent;
if (name.equals(">"))
return Operation.Greater;
if (name.equals("<"))
return Operation.LessThen;
if (name.equals(">="))
return Operation.GreaterOrEqual;
if (name.equals("<="))
return Operation.LessOrEqual;
if (name.equals("|"))
return Operation.Union;
if (name.equals("or"))
return Operation.Or;
if (name.equals("and"))
return Operation.And;
if (name.equals("xor"))
return Operation.Xor;
if (name.equals("is"))
return Operation.Is;
if (name.equals("as"))
return Operation.As;
if (name.equals("*"))
return Operation.Times;
if (name.equals("/"))
return Operation.DivideBy;
if (name.equals("+"))
return Operation.Plus;
if (name.equals("-"))
return Operation.Minus;
if (name.equals("&"))
return Operation.Concatenate;
if (name.equals("implies"))
return Operation.Implies;
if (name.equals("div"))
return Operation.Div;
if (name.equals("mod"))
return Operation.Mod;
if (name.equals("in"))
return Operation.In;
if (name.equals("contains"))
return Operation.Contains;
return null;
}
public String toCode() {
switch (this) {
case Equals : return "=";
case Equivalent : return "~";
case NotEquals : return "!=";
case NotEquivalent : return "!~";
case Greater : return ">";
case LessThen : return "<";
case GreaterOrEqual : return ">=";
case LessOrEqual : return "<=";
case Union : return "|";
case Or : return "or";
case And : return "and";
case Xor : return "xor";
case Times : return "*";
case DivideBy : return "/";
case Plus : return "+";
case Minus : return "-";
case Concatenate : return "&";
case Implies : return "implies";
case Is : return "is";
case As : return "as";
case Div : return "div";
case Mod : return "mod";
case In : return "in";
case Contains : return "contains";
default: return "??";
}
}
}
public enum CollectionStatus {
SINGLETON, ORDERED, UNORDERED
}
public static class TypeDetails {
@Override
public String toString() {
return (collectionStatus == null ? "" : collectionStatus.toString())+(types == null ? "[]" : types.toString());
}
private Set<String> types = new HashSet<String>();
private CollectionStatus collectionStatus;
public TypeDetails(CollectionStatus collectionStatus, String... names) {
super();
this.collectionStatus = collectionStatus;
for (String n : names)
this.types.add(n);
}
public TypeDetails(CollectionStatus collectionStatus, Set<String> names) {
super();
this.collectionStatus = collectionStatus;
for (String n : names)
this.types.add(n);
}
public void addType(String n) {
this.types.add(n);
}
public void addTypes(Collection<String> n) {
this.types.addAll(n);
}
public boolean hasType(IWorkerContext context, String... tn) {
for (String t: tn)
if (types.contains(t))
return true;
for (String t: tn) {
StructureDefinition sd = context.fetchResource(StructureDefinition.class, "http://hl7.org/fhir/StructureDefinition/"+t);
while (sd != null) {
if (types.contains(sd.getId()))
return true;
if (sd.hasBase())
sd = context.fetchResource(StructureDefinition.class, sd.getBase());
else
sd = null;
}
}
return false;
}
public void update(TypeDetails source) {
types.addAll(source.types);
if (collectionStatus == null)
collectionStatus = source.collectionStatus;
else if (source.collectionStatus == CollectionStatus.UNORDERED)
collectionStatus = source.collectionStatus;
else
collectionStatus = CollectionStatus.ORDERED;
}
public TypeDetails union(TypeDetails right) {
TypeDetails result = new TypeDetails(null);
if (right.collectionStatus == CollectionStatus.UNORDERED || collectionStatus == CollectionStatus.UNORDERED)
result.collectionStatus = CollectionStatus.UNORDERED;
else
result.collectionStatus = CollectionStatus.ORDERED;
result.types.addAll(types);
result.types.addAll(right.types);
return result;
}
public boolean hasNoTypes() {
return types.isEmpty();
}
public Set<String> getTypes() {
return types;
}
public TypeDetails toSingleton() {
TypeDetails result = new TypeDetails(CollectionStatus.SINGLETON);
result.types.addAll(types);
return result;
}
public CollectionStatus getCollectionStatus() {
return collectionStatus;
}
public boolean hasType(Set<String> tn) {
for (String t: tn)
if (types.contains(t))
return true;
return false;
}
public String describe() {
return types.toString();
}
public String getType() {
for (String t : types)
return t;
return null;
}
}
//the expression will have one of either name or constant
private String uniqueId;
private Kind kind;
private String name;
private String constant;
private Function function;
private List<ExpressionNode> parameters; // will be created if there is a function
private ExpressionNode inner;
private ExpressionNode group;
private Operation operation;
private boolean proximal; // a proximal operation is the first in the sequence of operations. This is significant when evaluating the outcomes
private ExpressionNode opNext;
private SourceLocation start;
private SourceLocation end;
private SourceLocation opStart;
private SourceLocation opEnd;
private TypeDetails types;
private TypeDetails opTypes;
public ExpressionNode(int uniqueId) {
super();
this.uniqueId = Integer.toString(uniqueId);
}
public String toString() {
StringBuilder b = new StringBuilder();
switch (kind) {
case Name:
b.append(name);
break;
case Function:
if (function == Function.Item)
b.append("[");
else {
b.append(name);
b.append("(");
}
boolean first = true;
for (ExpressionNode n : parameters) {
if (first)
first = false;
else
b.append(", ");
b.append(n.toString());
}
if (function == Function.Item)
b.append("]");
else {
b.append(")");
}
break;
case Constant:
b.append(Utilities.escapeJava(constant));
break;
case Group:
b.append("(");
b.append(group.toString());
b.append(")");
}
if (inner != null) {
b.append(".");
b.append(inner.toString());
}
if (operation != null) {
b.append(" ");
b.append(operation.toCode());
b.append(" ");
b.append(opNext.toString());
}
return b.toString();
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getConstant() {
return constant;
}
public void setConstant(String constant) {
this.constant = constant;
}
public Function getFunction() {
return function;
}
public void setFunction(Function function) {
this.function = function;
if (parameters == null)
parameters = new ArrayList<ExpressionNode>();
}
public boolean isProximal() {
return proximal;
}
public void setProximal(boolean proximal) {
this.proximal = proximal;
}
public Operation getOperation() {
return operation;
}
public void setOperation(Operation operation) {
this.operation = operation;
}
public ExpressionNode getInner() {
return inner;
}
public void setInner(ExpressionNode value) {
this.inner = value;
}
public ExpressionNode getOpNext() {
return opNext;
}
public void setOpNext(ExpressionNode value) {
this.opNext = value;
}
public List<ExpressionNode> getParameters() {
return parameters;
}
public boolean checkName() {
if (!name.startsWith("$"))
return true;
else
return name.equals("$this");
}
public Kind getKind() {
return kind;
}
public void setKind(Kind kind) {
this.kind = kind;
}
public ExpressionNode getGroup() {
return group;
}
public void setGroup(ExpressionNode group) {
this.group = group;
}
public SourceLocation getStart() {
return start;
}
public void setStart(SourceLocation start) {
this.start = start;
}
public SourceLocation getEnd() {
return end;
}
public void setEnd(SourceLocation end) {
this.end = end;
}
public SourceLocation getOpStart() {
return opStart;
}
public void setOpStart(SourceLocation opStart) {
this.opStart = opStart;
}
public SourceLocation getOpEnd() {
return opEnd;
}
public void setOpEnd(SourceLocation opEnd) {
this.opEnd = opEnd;
}
public String getUniqueId() {
return uniqueId;
}
public int parameterCount() {
if (parameters == null)
return 0;
else
return parameters.size();
}
public String Canonical() {
StringBuilder b = new StringBuilder();
write(b);
return b.toString();
}
public String summary() {
switch (kind) {
case Name: return uniqueId+": "+name;
case Function: return uniqueId+": "+function.toString()+"()";
case Constant: return uniqueId+": "+constant;
case Group: return uniqueId+": (Group)";
}
return "??";
}
private void write(StringBuilder b) {
switch (kind) {
case Name:
b.append(name);
break;
case Constant:
b.append(constant);
break;
case Function:
b.append(function.toCode());
b.append('(');
boolean f = true;
for (ExpressionNode n : parameters) {
if (f)
f = false;
else
b.append(", ");
n.write(b);
}
b.append(')');
break;
case Group:
b.append('(');
group.write(b);
b.append(')');
}
if (inner != null) {
b.append('.');
inner.write(b);
}
if (operation != null) {
b.append(' ');
b.append(operation.toCode());
b.append(' ');
opNext.write(b);
}
}
public String check() {
switch (kind) {
case Name:
if (Utilities.noString(name))
return "No Name provided @ "+location();
break;
case Function:
if (function == null)
return "No Function id provided @ "+location();
for (ExpressionNode n : parameters) {
String msg = n.check();
if (msg != null)
return msg;
}
break;
case Constant:
if (Utilities.noString(constant))
return "No Constant provided @ "+location();
break;
case Group:
if (group == null)
return "No Group provided @ "+location();
else {
String msg = group.check();
if (msg != null)
return msg;
}
}
if (inner != null) {
String msg = inner.check();
if (msg != null)
return msg;
}
if (operation == null) {
if (opNext != null)
return "Next provided when it shouldn't be @ "+location();
}
else {
if (opNext == null)
return "No Next provided @ "+location();
else
opNext.check();
}
return null;
}
private String location() {
return Integer.toString(start.line)+", "+Integer.toString(start.column);
}
public TypeDetails getTypes() {
return types;
}
public void setTypes(TypeDetails types) {
this.types = types;
}
public TypeDetails getOpTypes() {
return opTypes;
}
public void setOpTypes(TypeDetails opTypes) {
this.opTypes = opTypes;
}
}
|
apache-2.0
|
mogoweb/365browser
|
app/src/main/java/org/chromium/chrome/browser/password_manager/AccountChooserDialog.java
|
14683
|
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.chrome.browser.password_manager;
import android.app.Activity;
import android.content.Context;
import android.content.DialogInterface;
import android.content.res.Resources;
import android.graphics.Bitmap;
import android.support.v7.app.AlertDialog;
import android.text.SpannableString;
import android.text.Spanned;
import android.text.TextUtils;
import android.text.method.LinkMovementMethod;
import android.text.style.ClickableSpan;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.MeasureSpec;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.ImageButton;
import android.widget.ImageView;
import android.widget.ListView;
import android.widget.TextView;
import org.chromium.base.ApiCompatibilityUtils;
import org.chromium.base.annotations.CalledByNative;
import org.chromium.chrome.R;
import org.chromium.chrome.browser.signin.AccountManagementFragment;
import org.chromium.components.url_formatter.UrlFormatter;
import org.chromium.ui.base.WindowAndroid;
import org.chromium.ui.widget.Toast;
/**
* A dialog offers the user the ability to choose credentials for authentication. User is
* presented with username along with avatar and full name in case they are available.
* Native counterpart should be notified about credentials user have chosen and also if user
* haven't chosen anything.
*/
public class AccountChooserDialog
implements DialogInterface.OnClickListener, DialogInterface.OnDismissListener {
private final Context mContext;
private final Credential[] mCredentials;
/**
* Title of the dialog, contains Smart Lock branding for the Smart Lock users.
*/
private final String mTitle;
private final int mTitleLinkStart;
private final int mTitleLinkEnd;
private final String mOrigin;
private final String mSigninButtonText;
private ArrayAdapter<Credential> mAdapter;
private boolean mIsDestroyed;
private boolean mWasDismissedByNative;
/**
* Holds the reference to the credentials which were chosen by the user.
*/
private Credential mCredential;
private long mNativeAccountChooserDialog;
private AlertDialog mDialog;
/**
* True, if credentials were selected via "Sign In" button instead of clicking on the credential
* itself.
*/
private boolean mSigninButtonClicked;
private AccountChooserDialog(Context context, long nativeAccountChooserDialog,
Credential[] credentials, String title, int titleLinkStart, int titleLinkEnd,
String origin, String signinButtonText) {
mNativeAccountChooserDialog = nativeAccountChooserDialog;
mContext = context;
mCredentials = credentials.clone();
mTitle = title;
mTitleLinkStart = titleLinkStart;
mTitleLinkEnd = titleLinkEnd;
mOrigin = origin;
mSigninButtonText = signinButtonText;
mSigninButtonClicked = false;
}
/**
* Creates and shows the dialog which allows user to choose credentials for login.
* @param credentials Credentials to display in the dialog.
* @param title Title message for the dialog, which can contain Smart Lock branding.
* @param titleLinkStart Start of a link in case title contains Smart Lock branding.
* @param titleLinkEnd End of a link in case title contains Smart Lock branding.
* @param origin Address of the web page, where dialog was triggered.
*/
@CalledByNative
private static AccountChooserDialog createAndShowAccountChooser(WindowAndroid windowAndroid,
long nativeAccountChooserDialog, Credential[] credentials, String title,
int titleLinkStart, int titleLinkEnd, String origin, String signinButtonText) {
Activity activity = windowAndroid.getActivity().get();
if (activity == null) return null;
AccountChooserDialog chooser =
new AccountChooserDialog(activity, nativeAccountChooserDialog, credentials, title,
titleLinkStart, titleLinkEnd, origin, signinButtonText);
chooser.show();
return chooser;
}
private ArrayAdapter<Credential> generateAccountsArrayAdapter(
Context context, Credential[] credentials) {
return new ArrayAdapter<Credential>(context, 0 /* resource */, credentials) {
@Override
public View getView(int position, View convertView, ViewGroup parent) {
if (convertView == null) {
LayoutInflater inflater = LayoutInflater.from(getContext());
convertView =
inflater.inflate(R.layout.account_chooser_dialog_item, parent, false);
}
convertView.setTag(position);
Credential credential = getItem(position);
ImageView avatarView = (ImageView) convertView.findViewById(R.id.profile_image);
Bitmap avatar = credential.getAvatar();
if (avatar != null) {
avatarView.setImageBitmap(avatar);
} else {
avatarView.setImageResource(R.drawable.account_management_no_picture);
}
TextView mainNameView = (TextView) convertView.findViewById(R.id.main_name);
TextView secondaryNameView =
(TextView) convertView.findViewById(R.id.secondary_name);
if (credential.getFederation().isEmpty()) {
// Not federated credentials case
if (credential.getDisplayName().isEmpty()) {
mainNameView.setText(credential.getUsername());
secondaryNameView.setVisibility(View.GONE);
} else {
mainNameView.setText(credential.getDisplayName());
secondaryNameView.setText(credential.getUsername());
secondaryNameView.setVisibility(View.VISIBLE);
}
} else {
mainNameView.setText(credential.getUsername());
secondaryNameView.setText(credential.getFederation());
secondaryNameView.setVisibility(View.VISIBLE);
}
ImageButton pslInfoButton =
(ImageButton) convertView.findViewById(R.id.psl_info_btn);
final String originUrl = credential.getOriginUrl();
if (!originUrl.isEmpty()) {
pslInfoButton.setVisibility(View.VISIBLE);
pslInfoButton.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
showTooltip(
view,
UrlFormatter.formatUrlForSecurityDisplay(
originUrl, true /* showScheme */),
R.layout.material_tooltip);
}
});
}
return convertView;
}
};
}
private void show() {
View titleView =
LayoutInflater.from(mContext).inflate(R.layout.account_chooser_dialog_title, null);
TextView origin = (TextView) titleView.findViewById(R.id.origin);
origin.setText(mOrigin);
TextView titleMessageText = (TextView) titleView.findViewById(R.id.title);
if (mTitleLinkStart != 0 && mTitleLinkEnd != 0) {
SpannableString spanableTitle = new SpannableString(mTitle);
spanableTitle.setSpan(new ClickableSpan() {
@Override
public void onClick(View view) {
nativeOnLinkClicked(mNativeAccountChooserDialog);
mDialog.dismiss();
}
}, mTitleLinkStart, mTitleLinkEnd, Spanned.SPAN_INCLUSIVE_INCLUSIVE);
titleMessageText.setText(spanableTitle, TextView.BufferType.SPANNABLE);
titleMessageText.setMovementMethod(LinkMovementMethod.getInstance());
} else {
titleMessageText.setText(mTitle);
}
mAdapter = generateAccountsArrayAdapter(mContext, mCredentials);
final AlertDialog.Builder builder =
new AlertDialog.Builder(mContext, R.style.AlertDialogTheme)
.setCustomTitle(titleView)
.setNegativeButton(R.string.cancel, this)
.setAdapter(mAdapter, new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int item) {
mCredential = mCredentials[item];
}
});
if (!TextUtils.isEmpty(mSigninButtonText)) {
builder.setPositiveButton(mSigninButtonText, this);
}
mDialog = builder.create();
mDialog.setOnDismissListener(this);
mDialog.show();
}
private void showTooltip(View view, String message, int layoutId) {
Context context = view.getContext();
Resources resources = context.getResources();
LayoutInflater inflater = LayoutInflater.from(context);
TextView text = (TextView) inflater.inflate(layoutId, null);
text.setText(message);
text.announceForAccessibility(message);
// This is a work-around for a bug on Android versions KitKat and below
// (http://crbug.com/693076). The tooltip wouldn't be shown otherwise.
if (android.os.Build.VERSION.SDK_INT < android.os.Build.VERSION_CODES.LOLLIPOP) {
text.setSingleLine(false);
}
// The tooltip should be shown above and to the left (right for RTL) of the info button.
// In order to do so the tooltip's location on the screen is determined. This location is
// specified with regard to the top left corner and ignores RTL layouts. For this reason the
// location of the tooltip is also specified as offsets to the top left corner of the
// screen. Since the tooltip should be shown above the info button, the height of the
// tooltip needs to be measured. Furthermore, the height of the statusbar is ignored when
// obtaining the icon's screen location, but must be considered when specifying a y offset.
// In addition, the measured width is needed in LTR layout, so that the right end of the
// tooltip aligns with the right end of the info icon.
final int[] screenPos = new int[2];
view.getLocationOnScreen(screenPos);
text.measure(MeasureSpec.makeMeasureSpec(0, View.MeasureSpec.UNSPECIFIED),
MeasureSpec.makeMeasureSpec(0, View.MeasureSpec.UNSPECIFIED));
final int width = view.getWidth();
final int xOffset = ApiCompatibilityUtils.isLayoutRtl(view)
? screenPos[0]
: screenPos[0] + width - text.getMeasuredWidth();
final int statusBarHeightResourceId =
resources.getIdentifier("status_bar_height", "dimen", "android");
final int statusBarHeight = statusBarHeightResourceId > 0
? resources.getDimensionPixelSize(statusBarHeightResourceId)
: 0;
final int tooltipMargin = resources.getDimensionPixelSize(R.dimen.psl_info_tooltip_margin);
final int yOffset =
screenPos[1] - tooltipMargin - statusBarHeight - text.getMeasuredHeight();
// The xOffset is with regard to the left edge of the screen. Gravity.LEFT is deprecated,
// which is why the following line is necessary.
final int xGravity = ApiCompatibilityUtils.isLayoutRtl(view) ? Gravity.END : Gravity.START;
Toast toast = new Toast(context);
toast.setGravity(Gravity.TOP | xGravity, xOffset, yOffset);
toast.setDuration(Toast.LENGTH_SHORT);
toast.setView(text);
toast.show();
}
@CalledByNative
private void imageFetchComplete(int index, Bitmap avatarBitmap) {
if (mIsDestroyed) return;
assert index >= 0 && index < mCredentials.length;
assert mCredentials[index] != null;
avatarBitmap = AccountManagementFragment.makeRoundUserPicture(avatarBitmap);
mCredentials[index].setBitmap(avatarBitmap);
ListView view = mDialog.getListView();
if (index >= view.getFirstVisiblePosition() && index <= view.getLastVisiblePosition()) {
// Profile image is in the visible range.
View credentialView = view.getChildAt(index - view.getFirstVisiblePosition());
if (credentialView == null) return;
ImageView avatar = (ImageView) credentialView.findViewById(R.id.profile_image);
avatar.setImageBitmap(avatarBitmap);
}
}
private void destroy() {
assert mNativeAccountChooserDialog != 0;
assert !mIsDestroyed;
mIsDestroyed = true;
nativeDestroy(mNativeAccountChooserDialog);
mNativeAccountChooserDialog = 0;
mDialog = null;
}
@CalledByNative
private void dismissDialog() {
assert !mWasDismissedByNative;
mWasDismissedByNative = true;
mDialog.dismiss();
}
@Override
public void onClick(DialogInterface dialog, int whichButton) {
if (whichButton == DialogInterface.BUTTON_POSITIVE) {
mCredential = mCredentials[0];
mSigninButtonClicked = true;
}
}
@Override
public void onDismiss(DialogInterface dialog) {
if (!mWasDismissedByNative) {
if (mCredential != null) {
nativeOnCredentialClicked(mNativeAccountChooserDialog, mCredential.getIndex(),
mSigninButtonClicked);
} else {
nativeCancelDialog(mNativeAccountChooserDialog);
}
}
destroy();
}
private native void nativeOnCredentialClicked(long nativeAccountChooserDialogAndroid,
int credentialId, boolean signinButtonClicked);
private native void nativeCancelDialog(long nativeAccountChooserDialogAndroid);
private native void nativeDestroy(long nativeAccountChooserDialogAndroid);
private native void nativeOnLinkClicked(long nativeAccountChooserDialogAndroid);
}
|
apache-2.0
|
wildfly-swarm/wildfly-swarm-javadocs
|
2.7.0.Final/apidocs/org/wildfly/swarm/config/undertow/servlet_container/MimeMappingSupplier.html
|
9692
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_151) on Wed Jun 10 13:52:48 MST 2020 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>MimeMappingSupplier (BOM: * : All 2.7.0.Final API)</title>
<meta name="date" content="2020-06-10">
<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="MimeMappingSupplier (BOM: * : All 2.7.0.Final API)";
}
}
catch(err) {
}
//-->
var methods = {"i0":6};
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],4:["t3","Abstract Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/MimeMappingSupplier.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../../help-doc.html">Help</a></li>
</ul>
<div class="aboutLanguage">Thorntail API, 2.7.0.Final</div>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../../org/wildfly/swarm/config/undertow/servlet_container/MimeMappingConsumer.html" title="interface in org.wildfly.swarm.config.undertow.servlet_container"><span class="typeNameLink">Prev Class</span></a></li>
<li><a href="../../../../../../org/wildfly/swarm/config/undertow/servlet_container/PersistentSessionsSetting.html" title="class in org.wildfly.swarm.config.undertow.servlet_container"><span class="typeNameLink">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../../index.html?org/wildfly/swarm/config/undertow/servlet_container/MimeMappingSupplier.html" target="_top">Frames</a></li>
<li><a href="MimeMappingSupplier.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary: </li>
<li>Nested | </li>
<li>Field | </li>
<li>Constr | </li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail: </li>
<li>Field | </li>
<li>Constr | </li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">org.wildfly.swarm.config.undertow.servlet_container</div>
<h2 title="Interface MimeMappingSupplier" class="title">Interface MimeMappingSupplier<T extends <a href="../../../../../../org/wildfly/swarm/config/undertow/servlet_container/MimeMapping.html" title="class in org.wildfly.swarm.config.undertow.servlet_container">MimeMapping</a>></h2>
</div>
<div class="contentContainer">
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>Functional Interface:</dt>
<dd>This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.</dd>
</dl>
<hr>
<br>
<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/FunctionalInterface.html?is-external=true" title="class or interface in java.lang">@FunctionalInterface</a>
public interface <span class="typeNameLabel">MimeMappingSupplier<T extends <a href="../../../../../../org/wildfly/swarm/config/undertow/servlet_container/MimeMapping.html" title="class in org.wildfly.swarm.config.undertow.servlet_container">MimeMapping</a>></span></pre>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method.summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t3" class="tableTab"><span><a href="javascript:show(4);">Abstract Methods</a></span><span class="tabEnd"> </span></span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code><a href="../../../../../../org/wildfly/swarm/config/undertow/servlet_container/MimeMapping.html" title="class in org.wildfly.swarm.config.undertow.servlet_container">MimeMapping</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/wildfly/swarm/config/undertow/servlet_container/MimeMappingSupplier.html#get--">get</a></span>()</code>
<div class="block">Constructed instance of MimeMapping resource</div>
</td>
</tr>
</table>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="get--">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>get</h4>
<pre><a href="../../../../../../org/wildfly/swarm/config/undertow/servlet_container/MimeMapping.html" title="class in org.wildfly.swarm.config.undertow.servlet_container">MimeMapping</a> get()</pre>
<div class="block">Constructed instance of MimeMapping resource</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The instance</dd>
</dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/MimeMappingSupplier.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../../help-doc.html">Help</a></li>
</ul>
<div class="aboutLanguage">Thorntail API, 2.7.0.Final</div>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../../org/wildfly/swarm/config/undertow/servlet_container/MimeMappingConsumer.html" title="interface in org.wildfly.swarm.config.undertow.servlet_container"><span class="typeNameLink">Prev Class</span></a></li>
<li><a href="../../../../../../org/wildfly/swarm/config/undertow/servlet_container/PersistentSessionsSetting.html" title="class in org.wildfly.swarm.config.undertow.servlet_container"><span class="typeNameLink">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../../index.html?org/wildfly/swarm/config/undertow/servlet_container/MimeMappingSupplier.html" target="_top">Frames</a></li>
<li><a href="MimeMappingSupplier.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary: </li>
<li>Nested | </li>
<li>Field | </li>
<li>Constr | </li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail: </li>
<li>Field | </li>
<li>Constr | </li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small>Copyright © 2020 <a href="http://www.jboss.org">JBoss by Red Hat</a>. All rights reserved.</small></p>
</body>
</html>
|
apache-2.0
|
wildfly-swarm/wildfly-swarm-javadocs
|
2.5.0.Final/apidocs/org/wildfly/swarm/ee/security/detect/package-tree.html
|
5480
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_151) on Wed Jul 17 13:50:47 MST 2019 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>org.wildfly.swarm.ee.security.detect Class Hierarchy (BOM: * : All 2.5.0.Final API)</title>
<meta name="date" content="2019-07-17">
<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="org.wildfly.swarm.ee.security.detect Class Hierarchy (BOM: * : All 2.5.0.Final API)";
}
}
catch(err) {
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li>Class</li>
<li>Use</li>
<li class="navBarCell1Rev">Tree</li>
<li><a href="../../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../../help-doc.html">Help</a></li>
</ul>
<div class="aboutLanguage">Thorntail API, 2.5.0.Final</div>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../../org/wildfly/swarm/ee/security/package-tree.html">Prev</a></li>
<li><a href="../../../../../../org/wildfly/swarm/ejb/package-tree.html">Next</a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../../index.html?org/wildfly/swarm/ee/security/detect/package-tree.html" target="_top">Frames</a></li>
<li><a href="package-tree.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<div class="header">
<h1 class="title">Hierarchy For Package org.wildfly.swarm.ee.security.detect</h1>
<span class="packageHierarchyLabel">Package Hierarchies:</span>
<ul class="horizontal">
<li><a href="../../../../../../overview-tree.html">All Packages</a></li>
</ul>
</div>
<div class="contentContainer">
<h2 title="Class Hierarchy">Class Hierarchy</h2>
<ul>
<li type="circle">java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang"><span class="typeNameLink">Object</span></a>
<ul>
<li type="circle">PackageFractionDetector
<ul>
<li type="circle">org.wildfly.swarm.ee.security.detect.<a href="../../../../../../org/wildfly/swarm/ee/security/detect/EESecurityPackageDetector.html" title="class in org.wildfly.swarm.ee.security.detect"><span class="typeNameLink">EESecurityPackageDetector</span></a></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li>Class</li>
<li>Use</li>
<li class="navBarCell1Rev">Tree</li>
<li><a href="../../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../../help-doc.html">Help</a></li>
</ul>
<div class="aboutLanguage">Thorntail API, 2.5.0.Final</div>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../../org/wildfly/swarm/ee/security/package-tree.html">Prev</a></li>
<li><a href="../../../../../../org/wildfly/swarm/ejb/package-tree.html">Next</a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../../index.html?org/wildfly/swarm/ee/security/detect/package-tree.html" target="_top">Frames</a></li>
<li><a href="package-tree.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small>Copyright © 2019 <a href="http://www.jboss.org">JBoss by Red Hat</a>. All rights reserved.</small></p>
</body>
</html>
|
apache-2.0
|
imtoantran/beleza
|
Views/spaCMS/promotion/js/spaCMS_promotion.js
|
21895
|
$(document).ready(function() {
PromotionGroup.init();
PromotionGroup.loadImage();
$('#add-new-promotion').on('click', function(){
PromotionGroup.addNew();
})
$('#update-promotion').on('click', function(){
PromotionGroup.update();
})
// date picker
$('#promotion-add-end-date').datepicker({
format: "dd/mm/yyyy"
});
$('#promotion-add-start-date').datepicker({
format: "dd/mm/yyyy"
});
$('#promotion-update-start-date').datepicker({
format: "dd/mm/yyyy"
});
$('#promotion-update-end-date').datepicker({
format: "dd/mm/yyyy"
});
//editor
CKEDITOR.replace('promotionContent');
CKEDITOR.replace('promotionContentUpdate');
});
var PromotionGroup = function () {
// load list promotion
var loadListPromotion = function() {
var html = '';
$.ajax({
url: URL + 'spaCMS/promotion/xhrLoad_promotion_list',
type: 'get',
dataType: 'json',
})
.done(function(data) {
$('span#promotion-title-spa').text('DANH SÁCH TIN KHUYẾN MÃI');
if(data['list'].length >0 ){
$('#promotion-mesage-list').hide('fast');
var totalPublish = 0;
$.each(data['list'], function(k, val){
totalPublish = (val.promotion_state == 1)? totalPublish+1 : totalPublish;
var state = (val.promotion_state == 0)? "button-other": "hide";
var nowDay = new Date();
var endDay = val.promotion_end_date;
var createDay = val.promotion_create_date;
var end_Day = val.promotion_end_date;
var startDay = val.promotion_start_date;
var strMark = "";
strMark = (new Date(end_Day) < new Date())? "color: red; text-decoration: line-through;" : "";
createDay = createDay.substr(8, 2)+'/'+ createDay.substr(5, 2)+'/'+createDay.substr(0, 4);
startDay = startDay.substr(8, 2)+'/'+ startDay.substr(5, 2)+'/'+startDay.substr(0, 4);
end_Day = end_Day.substr(8, 2)+'/'+ end_Day.substr(5, 2)+'/'+end_Day.substr(0, 4);
// var promotion_img = JSON.parse(val.promotion_img);
html += '<li class="row promotion-list-item" data-toggle="modal" data-target="#updatePromotion" data-id-promotion="'+val.promotion_id+'">';
html += '<div class="col-md-5" style="font-weight: 600; color: #888;">'+val.promotion_title+'</div>';
html += '<div class="col-md-2 created-date">'+createDay+'</div>';
html += '<div class="col-md-2">'+startDay+'</div>';
html += '<div class="col-md-2 end-date" style="'+strMark+'">'+end_Day+'</div>';
// html += '<div class="col-md-1">'+totalDay+'</div>';
html += '<div class="col-md-1 text-right" style="padding:0px;">';
html += '<button class="button '+state+' promotion-items-publish" data-promotion-id="'+val.promotion_id+'" title="Kích hoạt"> ';
html += '<i class="fa fa-check"></i>';
html += '</button> ';
html += '<button class="button button-secondary redeem promotion-items-delete" data-promotion-id="'+val.promotion_id+'" title="Xóa"> ';
html += '<i class="fa fa-trash"></i>';
html += '</button>';
html += '</div>';
html += '</li>';
});
html += '<input class="input-hide-state" type="hidden" value="'+totalPublish+'">';
$('#promotion-content').html(html);
}else{
$('#promotion-content').html('');
$('#promotion-mesage-list').fadeIn('fast');
}
})
.always(function(){
$('.promotion-items-delete').on('click',function(e){
var id_promotion = $(this).attr('data-promotion-id');
e.stopPropagation();
var cfr = confirm('Bạn có muốn xóa promotion này không?');
if(cfr == true){
deletePromotion(id_promotion);
}
});
$('.promotion-items-publish').on('click',function(e){
var id_promotion = $(this).attr('data-promotion-id');
var self = $(this);
var state = 1; // kich hoat
e.stopPropagation();
if($('input.input-hide-state').val() >4){
alert('Chỉ hiển thị được 5 promotion.');
}else{
publishPromotion(id_promotion, state);
}
});
$('.btn-close-modal').on('click',function (){
$(".modal").modal('hide');
})
$('#refres-promotion').on('click', function(){
refresh();
});
$('li.promotion-list-item').on('click', function(){
var self = $(this);
var id_promotion = self.attr('data-id-promotion');
$.ajax({
url: URL + 'spaCMS/promotion/xhrLoad_promotion_item',
type: 'post',
dataType: 'json',
data: {promotion_id: id_promotion},
})
.done(function(data) {
$.each(data, function(index, value) {
var title = value.promotion_title;
var id_promotion = value.promotion_id;
// img
var image = JSON.parse(value.promotion_img);
var img = image.img;
var thumbnail = image.thumbnail;
//date
var sDate = value.promotion_start_date;
sDate = sDate.replace(/-/g,' ');
var startDate = new Date(sDate);
var endDate = value.promotion_end_date;
endDate = new Date(endDate.replace(/-/g,' '));
var mainUpdate = $('#updatePromotion');
mainUpdate.find('#promotion-update-title').val(title);
mainUpdate.attr('data-id-promotion', id_promotion);
$('#promotion-update-start-date').datepicker('update',startDate);
$('#promotion-update-end-date').datepicker('update',endDate);
CKEDITOR.instances.promotionContentUpdate.setData(value.promotion_content);
var items = $('#ListIM_editUS');
var caller = $('#iM_editUS');
// ktra so luong hinh anh da co
caller.hide();
var out = null;
var html = '<li class="single-picture">';
html += '<div class="single-picture-wrapper">';
html += '<img id="user_slide_thumbnail" src=":img_thumbnail" data-img=":data-image" style="width:100px; height:70px;">';
html += '<input type="hidden" name="user_service_image[]" value=":image">';
html += '</div>';
html += '<div class="del_image icons-delete2"></div>';
html += '</li>';
out = html.replace(':img_thumbnail', thumbnail);
out = out.replace(':data-image', img);
out = out.replace(':image', img);
items.html(out);
// del image
$('.del_image').on("click", function(){
var self = $(this).parent();
// self.attr("disabled","disabled");
self.remove();
// Truong hop dac biet, ktra so luong hinh anh da co
var childrens = items.children().length;
if(childrens < 5) {
caller.fadeIn();
}
});
});
})
.always(function() {
});
})
});
}
function loadAsidePublish() {
var html = '';
$.ajax({
url: URL + 'spaCMS/promotion/xhrLoad_promotion_publish',
type: 'post',
dataType: 'json',
data: {promotion_state: 1},
})
.done(function(respon) {
if(respon.length > 0){
$.each(respon, function(index, val) {
// img
var title = val.promotion_title;
var image = JSON.parse(val.promotion_img);
var img = image.img;
var thumbnail = image.thumbnail;
html += '<div class="promotion-item-publish">';
html += '<div class="row-fluid">';
html += '<div class="promotion-item-puslish-title col-md-12">';
html += '<i class="fa fa-bullhorn"></i>';
html += '<span>'+title+'</span>';
html += '</div>';
// html += '<div class="col-sm-1">';
html += '<button class="btn btn-black promotion-items-change-publish" data-promotion-id="'+val.promotion_id+'" title="Tạm ngưng"> <i class="fa fa-close"></i></button>';
html += '</div>';
// html += '</div>';
html += '<div class="promotion-item-publish-img row-fluid">';
html += '<img class="pic" alt="" src="'+thumbnail+'"> ';
html += '</div>';
html += '</div>';
}); //end each
}else{
html +='<div class="row-fluid" style="padding:5px;padding: 5px; border: 1px solid #d88c8a;background-color: #F7E4E4;"><span><i class="fa fa-warning" style="color: #ffcc00;"></i> Hiện tại không có quảng cáo nào hiển thị.</span></div>';
}
$('.promotion-item-publish-wrap').html(html);
})
.fail(function() {
console.log("error");
})
.always(function() {
$('.promotion-items-change-publish').on('click', function(){
var promotion_id = $(this).attr('data-promotion-id');
publishPromotion(promotion_id,0);
});
});
}
// add new promotion
var addNewPromotion = function() {
var title = $('#promotion-add-title').val();
var now = new Date();
month = now.getMonth()+1;
var start_day = $('#promotion-add-start-date').val();
if(start_day.length >0){
start_day = start_day.substring(6,10)+'-'+start_day.substring(3,5)+'-'+start_day.substring(0,2)+' 00:00:00';
}else{
start_day = now.getFullYear()+'-'+month+'-'+now.getDate()+' 00:00:00';
}
var end_day = $('#promotion-add-end-date').val();
if(end_day.length >0){
end_day = end_day.substring(6,10)+'-'+end_day.substring(3,5)+'-'+end_day.substring(0,2)+' 00:00:00';
}else{
end_day = now.getFullYear()+'-'+month+'-'+now.getDate()+' 00:00:00';
}
var url_img = "";
var tagImg = $('#user_slide_thumbnail');
if(tagImg[0]){
var img = tagImg.attr('data-img');
var thumbnail = tagImg.attr('src');
url_img={};
url_img.img = img;
url_img.thumbnail = thumbnail;
}else{
url_img={};
url_img.img = URL+'/public/assets/img/noimage.jpg';
url_img.thumbnail = URL+'/public/assets/img/noimage.jpg';
}
var content = CKEDITOR.instances.promotionContent.getData();
var message = $('.promotion-message');
var jdata = {"title": title, "start_date": start_day, "end_date": end_day, "url_img": JSON.stringify(url_img), "content": content};
if(title.length<4){
message.text('Tiêu đề phải hơn 4 kí tự.').fadeIn('fast');
return false;
}else{
$.ajax({
url: URL + 'spaCMS/promotion/xhrInsert_promotion_item',
type: 'post',
dataType: 'json',
data: jdata,
})
.done(function(respon) {
if(respon === 1){
alert('Thêm promotion thành công.')
}else{
alert('Thêm promotion thất bại, bạn vui lòng thử lại.')
}
})
.fail(function() {
})
.always(function() {
loadListPromotion();
$(".modal").modal('hide');
refresh();
});
}
}
//delete Promotion
var deletePromotion = function(id_promotion) {
$.ajax({
url: URL + 'spaCMS/promotion/xhrDelete_promotion_item',
type: 'post',
dataType: 'json',
data: {'id_promotion': id_promotion},
})
.done(function(respon) {
if(respon==0){
alert('Xóa promotion thất bại, Xin vui lòng kiểm tra lại');
}
})
.fail(function(error) {
console.log("error: "+error);
})
.always(function() {
loadListPromotion();
loadAsidePublish();
});
}
var publishPromotion = function(id_promotion,state){
$.ajax({
url: URL + 'spaCMS/promotion/xhrPublish_promotion_item',
type: 'post',
dataType: 'json',
data: {'id_promotion': id_promotion, 'state_promotion': state},
})
.done(function(respon) {
if(respon == 0){
alert('Kích hoạt promotion thất bại, Xin vui lòng kiểm tra lại');
}
})
.fail(function(error) {
console.log("error: "+error);
})
.always(function() {
loadListPromotion();
loadAsidePublish()
});
}
// update Promotion
var updatePromotion = function(){
var title = $('#promotion-update-title').val();
var id_promotion = $('#updatePromotion').attr('data-id-promotion');
var start_day = $('#promotion-update-start-date').val();
var end_day = $('#promotion-update-end-date').val();
var now = new Date();
var month = now.getMonth()+1;
if( end_day.length >0 ){
end_day = end_day.substring(6,10)+'-'+end_day.substring(3,5)+'-'+end_day.substring(0,2)+' 00:00:00';
} else {
end_day = now.getFullYear()+'-'+month+'-'+now.getDate()+' 00:00:00';
}
if( start_day.length >0 ){
start_day = start_day.substring(6,10)+'-'+start_day.substring(3,5)+'-'+start_day.substring(0,2)+' 00:00:00';
} else {
start_day = now.getFullYear()+'-'+month+'-'+now.getDate()+' 00:00:00';
}
var url_img = "";
var tagImg = $('#user_slide_thumbnail');
if(tagImg[0]){
var img = tagImg.attr('data-img');
var thumbnail = tagImg.attr('src');
// url_img = '{"img": "'+img+'", "thumbnail": "'+thumbnail+'"}';
url_img={};
url_img.img = img;
url_img.thumbnail = thumbnail;
}else{
url_img={};
url_img.img = URL+'/public/assets/img/noimage.jpg';
url_img.thumbnail = URL+'/public/assets/img/noimage.jpg';
}
var content = CKEDITOR.instances.promotionContentUpdate.getData();
var message = $('.promotion-message');
var jdata = {"id_promotion": id_promotion, "title": title, "start_date": start_day, "end_date": end_day, "url_img": JSON.stringify(url_img), "content": content};
if(title.length<4){
message.text('Tiêu đề phải hơn 4 kí tự.').fadeIn('fast');
return false;
}else{
$.ajax({
url: URL + 'spaCMS/promotion/xhrUpdate_promotion_item',
type: 'post',
dataType: 'json',
data: jdata,
})
.done(function(respon) {
if(respon === 1){
alert('Cập nhật promotion thành công.')
}else{
alert('Cập nhật promotion thất bại, bạn vui lòng thử lại.')
}
})
.fail(function() {
console.log("error");
})
.always(function() {
loadListPromotion();
loadAsidePublish();
$(".modal").modal('hide');
});
}
}
// refresh form promotion
var refresh = function(){
var frmPromotion = $('#form-promotion');
frmPromotion.find('input#promotion-add-title').val('');
frmPromotion.find('input#promotion-add-end-date').val('');
frmPromotion.find('input#promotion-add-end-date').val('');
frmPromotion.find('span.promotion-message').fadeOut('fast').text('');
CKEDITOR.instances.promotionContent.setData('');
// del image
var self = $('.del_image').parent();
self.remove();
$('#iM_addUS').fadeIn('fast');
}
// Image Manager
var imageManager = function() {
// Gán thuộc tính cover_id tương ứng
$('#iM_editUS').click(function(){
$('#imageManager_saveChange').attr('cover_id','editUS');
});
$('#iM_addUS').click(function(){
$('#imageManager_saveChange').attr('cover_id','addUS');
});
// <!-- Save Change -->
$('#imageManager_saveChange').on('click', function(evt) {
evt.preventDefault();
// Define position insert to image
var cover_id = $(this).attr('cover_id');
// Define selected image
var radio_checked = $("input:radio[name='iM-radio']:checked"); // Radio checked
// image and thumbnail_image
var image = radio_checked.val();
var thumbnail = radio_checked.attr('data-image');
// Truong hop dac biet
if(cover_id == 'addUS') {
var caller = $('#iM_addUS');
var items = $('#ListIM_addUS');
}
else if(cover_id == 'editUS') {
var caller = $('#iM_editUS');
var items = $('#ListIM_editUS');
}
// ktra so luong hinh anh da co
var childrens = items.children().length + 1;
if(childrens == 1) {
caller.hide();
}
var out = null;
var html = '<li class="single-picture">';
html += '<div class="single-picture-wrapper">';
html += '<img id="user_slide_thumbnail" src=":img_thumbnail" data-img=":data-image" style="width:100px; height:60px;">';
html += '<input type="hidden" name="user_service_image[]" value=":image">';
html += '</div>';
html += '<div class="del_image icons-delete2"></div>';
html += '</li>';
out = html.replace(':img_thumbnail', thumbnail);
out = out.replace(':data-image', image);
out = out.replace(':image', image);
items.html(out);
// del image
$('.del_image').on("click", function(){
var self = $(this).parent();
// self.attr("disabled","disabled");
self.remove();
// Truong hop dac biet, ktra so luong hinh anh da co
var childrens = items.children().length;
if(childrens < 1) {
caller.fadeIn();
}
});
// Hide Modal
$("#imageManager_modal").modal('hide');
});
}
return {
init: function() { loadListPromotion(); loadAsidePublish();},
addNew: function(){ addNewPromotion(); },
update: function(){ updatePromotion(); },
loadImage: function(){ imageManager(); }
}
var refresh = function() {
console.log('refresh');
}
}();
// function offsetDay(dayStart, dayEnd){
// var offset = dayEnd.getTime() - dayStart.getTime();
// console.log(dayEnd.getTime()+'-'+dayStart.getTime());
// // lấy độ lệch của 2 mốc thời gian, đơn vị tính là millisecond
// var totalDays = Math.round(offset / 1000 / 60 / 60 / 24);
// console.log(dayStart.getTime());
// return totalDays;
// }
|
apache-2.0
|
OrBin/SynClock-Android
|
src/orbin/deskclock/HandleApiCalls.java
|
21891
|
/*
* Copyright (C) 2010 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package orbin.deskclock;
import android.app.Activity;
import android.content.ContentResolver;
import android.content.Context;
import android.content.Intent;
import android.media.RingtoneManager;
import android.net.Uri;
import android.os.AsyncTask;
import android.os.Bundle;
import android.os.Looper;
import android.os.Parcelable;
import android.provider.AlarmClock;
import android.text.TextUtils;
import android.text.format.DateFormat;
import orbin.deskclock.alarms.AlarmStateManager;
import orbin.deskclock.data.DataModel;
import orbin.deskclock.data.Timer;
import orbin.deskclock.events.Events;
import orbin.deskclock.provider.Alarm;
import orbin.deskclock.provider.AlarmInstance;
import orbin.deskclock.provider.DaysOfWeek;
import orbin.deskclock.timer.TimerFragment;
import orbin.deskclock.uidata.UiDataModel;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Iterator;
import java.util.List;
import static android.text.format.DateUtils.SECOND_IN_MILLIS;
import static orbin.deskclock.uidata.UiDataModel.Tab.ALARMS;
import static orbin.deskclock.uidata.UiDataModel.Tab.TIMERS;
/**
* This activity is never visible. It processes all public intents defined by {@link AlarmClock}
* that apply to alarms and timers. Its definition in AndroidManifest.xml requires callers to hold
* the com.android.alarm.permission.SET_ALARM permission to complete the requested action.
*/
public class HandleApiCalls extends Activity {
private Context mAppContext;
@Override
protected void onCreate(Bundle icicle) {
try {
super.onCreate(icicle);
mAppContext = getApplicationContext();
final Intent intent = getIntent();
final String action = intent == null ? null : intent.getAction();
if (action == null) {
return;
}
switch (action) {
case AlarmClock.ACTION_SET_ALARM:
handleSetAlarm(intent);
break;
case AlarmClock.ACTION_SHOW_ALARMS:
handleShowAlarms();
break;
case AlarmClock.ACTION_SET_TIMER:
handleSetTimer(intent);
break;
case AlarmClock.ACTION_DISMISS_ALARM:
handleDismissAlarm(intent);
break;
case AlarmClock.ACTION_SNOOZE_ALARM:
handleSnoozeAlarm();
}
} finally {
finish();
}
}
private void handleDismissAlarm(Intent intent) {
// Change to the alarms tab.
UiDataModel.getUiDataModel().setSelectedTab(ALARMS);
// Open DeskClock which is now positioned on the alarms tab.
startActivity(new Intent(mAppContext, DeskClock.class));
new DismissAlarmAsync(mAppContext, intent, this).execute();
}
public static void dismissAlarm(Alarm alarm, Context context, Activity activity) {
// only allow on background thread
if (Looper.myLooper() == Looper.getMainLooper()) {
throw new IllegalStateException("dismissAlarm must be called on a " +
"background thread");
}
final AlarmInstance alarmInstance = AlarmInstance.getNextUpcomingInstanceByAlarmId(
context.getContentResolver(), alarm.id);
if (alarmInstance == null) {
final String reason = context.getString(R.string.no_alarm_scheduled_for_this_time);
Voice.notifyFailure(activity, reason);
LogUtils.i(reason);
return;
}
final String time = DateFormat.getTimeFormat(context).format(
alarmInstance.getAlarmTime().getTime());
if (Utils.isAlarmWithin24Hours(alarmInstance)) {
AlarmStateManager.setPreDismissState(context, alarmInstance);
final String reason = context.getString(R.string.alarm_is_dismissed, time);
LogUtils.i(reason);
Voice.notifySuccess(activity, reason);
Events.sendAlarmEvent(R.string.action_dismiss, R.string.label_intent);
} else {
final String reason = context.getString(
R.string.alarm_cant_be_dismissed_still_more_than_24_hours_away, time);
Voice.notifyFailure(activity, reason);
LogUtils.i(reason);
}
}
private static class DismissAlarmAsync extends AsyncTask<Void, Void, Void> {
private final Context mContext;
private final Intent mIntent;
private final Activity mActivity;
public DismissAlarmAsync(Context context, Intent intent, Activity activity) {
mContext = context;
mIntent = intent;
mActivity = activity;
}
@Override
protected Void doInBackground(Void... parameters) {
final List<Alarm> alarms = getEnabledAlarms(mContext);
if (alarms.isEmpty()) {
final String reason = mContext.getString(R.string.no_scheduled_alarms);
LogUtils.i(reason);
Voice.notifyFailure(mActivity, reason);
return null;
}
// remove Alarms in MISSED, DISMISSED, and PREDISMISSED states
for (Iterator<Alarm> i = alarms.iterator(); i.hasNext();) {
final AlarmInstance alarmInstance = AlarmInstance.getNextUpcomingInstanceByAlarmId(
mContext.getContentResolver(), i.next().id);
if (alarmInstance == null ||
alarmInstance.mAlarmState > AlarmInstance.FIRED_STATE) {
i.remove();
}
}
final String searchMode = mIntent.getStringExtra(AlarmClock.EXTRA_ALARM_SEARCH_MODE);
if (searchMode == null && alarms.size() > 1) {
// shows the UI where user picks which alarm they want to DISMISS
final Intent pickSelectionIntent = new Intent(mContext,
AlarmSelectionActivity.class)
.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
.putExtra(AlarmSelectionActivity.EXTRA_ALARMS,
alarms.toArray(new Parcelable[alarms.size()]));
mContext.startActivity(pickSelectionIntent);
Voice.notifySuccess(mActivity, mContext.getString(R.string.pick_alarm_to_dismiss));
return null;
}
// fetch the alarms that are specified by the intent
final FetchMatchingAlarmsAction fmaa =
new FetchMatchingAlarmsAction(mContext, alarms, mIntent, mActivity);
fmaa.run();
final List<Alarm> matchingAlarms = fmaa.getMatchingAlarms();
// If there are multiple matching alarms and it wasn't expected
// disambiguate what the user meant
if (!AlarmClock.ALARM_SEARCH_MODE_ALL.equals(searchMode) && matchingAlarms.size() > 1) {
final Intent pickSelectionIntent = new Intent(mContext, AlarmSelectionActivity.class)
.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
.putExtra(AlarmSelectionActivity.EXTRA_ALARMS,
matchingAlarms.toArray(new Parcelable[matchingAlarms.size()]));
mContext.startActivity(pickSelectionIntent);
Voice.notifySuccess(mActivity, mContext.getString(R.string.pick_alarm_to_dismiss));
return null;
}
// Apply the action to the matching alarms
for (Alarm alarm : matchingAlarms) {
dismissAlarm(alarm, mContext, mActivity);
LogUtils.i("Alarm %s is dismissed", alarm);
}
return null;
}
private static List<Alarm> getEnabledAlarms(Context context) {
final String selection = String.format("%s=?", Alarm.ENABLED);
final String[] args = { "1" };
return Alarm.getAlarms(context.getContentResolver(), selection, args);
}
}
private void handleSnoozeAlarm() {
new SnoozeAlarmAsync(mAppContext, this).execute();
}
private static class SnoozeAlarmAsync extends AsyncTask<Void, Void, Void> {
private final Context mContext;
private final Activity mActivity;
public SnoozeAlarmAsync(Context context, Activity activity) {
mContext = context;
mActivity = activity;
}
@Override
protected Void doInBackground(Void... parameters) {
final List<AlarmInstance> alarmInstances = AlarmInstance.getInstancesByState(
mContext.getContentResolver(), AlarmInstance.FIRED_STATE);
if (alarmInstances.isEmpty()) {
final String reason = mContext.getString(R.string.no_firing_alarms);
LogUtils.i(reason);
Voice.notifyFailure(mActivity, reason);
return null;
}
for (AlarmInstance firingAlarmInstance : alarmInstances) {
snoozeAlarm(firingAlarmInstance, mContext, mActivity);
}
return null;
}
}
static void snoozeAlarm(AlarmInstance alarmInstance, Context context, Activity activity) {
// only allow on background thread
if (Looper.myLooper() == Looper.getMainLooper()) {
throw new IllegalStateException("snoozeAlarm must be called on a " +
"background thread");
}
final String time = DateFormat.getTimeFormat(context).format(
alarmInstance.getAlarmTime().getTime());
final String reason = context.getString(R.string.alarm_is_snoozed, time);
LogUtils.i(reason);
Voice.notifySuccess(activity, reason);
AlarmStateManager.setSnoozeState(context, alarmInstance, true);
LogUtils.i("Snooze %d:%d", alarmInstance.mHour, alarmInstance.mMinute);
Events.sendAlarmEvent(R.string.action_snooze, R.string.label_intent);
}
/***
* Processes the SET_ALARM intent
* @param intent Intent passed to the app
*/
private void handleSetAlarm(Intent intent) {
// If not provided or invalid, show UI
final int hour = intent.getIntExtra(AlarmClock.EXTRA_HOUR, -1);
// If not provided, use zero. If it is provided, make sure it's valid, otherwise, show UI
final int minutes;
if (intent.hasExtra(AlarmClock.EXTRA_MINUTES)) {
minutes = intent.getIntExtra(AlarmClock.EXTRA_MINUTES, -1);
} else {
minutes = 0;
}
if (hour < 0 || hour > 23 || minutes < 0 || minutes > 59) {
// Change to the alarms tab.
UiDataModel.getUiDataModel().setSelectedTab(ALARMS);
// Intent has no time or an invalid time, open the alarm creation UI.
final Intent createAlarm = Alarm.createIntent(this, DeskClock.class, Alarm.INVALID_ID)
.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
.putExtra(AlarmClockFragment.ALARM_CREATE_NEW_INTENT_EXTRA, true);
// Open DeskClock which is now positioned on the alarms tab.
startActivity(createAlarm);
Voice.notifyFailure(this, getString(R.string.invalid_time, hour, minutes, " "));
LogUtils.i("HandleApiCalls no/invalid time; opening UI");
return;
}
Events.sendAlarmEvent(R.string.action_create, R.string.label_intent);
final boolean skipUi = intent.getBooleanExtra(AlarmClock.EXTRA_SKIP_UI, false);
final StringBuilder selection = new StringBuilder();
final List<String> args = new ArrayList<>();
setSelectionFromIntent(intent, hour, minutes, selection, args);
// Update existing alarm matching the selection criteria; see setSelectionFromIntent.
final ContentResolver cr = getContentResolver();
final List<Alarm> alarms = Alarm.getAlarms(cr,
selection.toString(),
args.toArray(new String[args.size()]));
if (!alarms.isEmpty()) {
final Alarm alarm = alarms.get(0);
alarm.enabled = true;
Alarm.updateAlarm(cr, alarm);
// Delete all old instances and create a new one with updated values
AlarmStateManager.deleteAllInstances(this, alarm.id);
setupInstance(alarm.createInstanceAfter(Calendar.getInstance()), skipUi);
LogUtils.i("HandleApiCalls deleted old, created new alarm: %s", alarm);
return;
}
// Otherwise insert a new alarm.
final String message = getMessageFromIntent(intent);
final DaysOfWeek daysOfWeek = getDaysFromIntent(intent);
final boolean vibrate = intent.getBooleanExtra(AlarmClock.EXTRA_VIBRATE, true);
final String alert = intent.getStringExtra(AlarmClock.EXTRA_RINGTONE);
Alarm alarm = new Alarm(hour, minutes);
alarm.enabled = true;
alarm.label = message;
alarm.daysOfWeek = daysOfWeek;
alarm.vibrate = vibrate;
if (alert != null) {
if (AlarmClock.VALUE_RINGTONE_SILENT.equals(alert) || alert.isEmpty()) {
alarm.alert = Alarm.NO_RINGTONE_URI;
} else {
alarm.alert = Uri.parse(alert);
}
}
alarm.deleteAfterUse = !daysOfWeek.isRepeating() && skipUi;
alarm = Alarm.addAlarm(cr, alarm);
final AlarmInstance alarmInstance = alarm.createInstanceAfter(Calendar.getInstance());
setupInstance(alarmInstance, skipUi);
final String time = DateFormat.getTimeFormat(mAppContext).format(
alarmInstance.getAlarmTime().getTime());
Voice.notifySuccess(this, getString(R.string.alarm_is_set, time));
LogUtils.i("HandleApiCalls set up alarm: %s", alarm);
}
private void handleShowAlarms() {
// Change to the alarms tab.
UiDataModel.getUiDataModel().setSelectedTab(ALARMS);
// Open DeskClock which is now positioned on the alarms tab.
startActivity(new Intent(this, DeskClock.class));
Events.sendAlarmEvent(R.string.action_show, R.string.label_intent);
LogUtils.i("HandleApiCalls show alarms");
}
private void handleSetTimer(Intent intent) {
// If no length is supplied, show the timer setup view.
if (!intent.hasExtra(AlarmClock.EXTRA_LENGTH)) {
// Change to the timers tab.
UiDataModel.getUiDataModel().setSelectedTab(TIMERS);
// Open DeskClock which is now positioned on the timers tab and show the timer setup.
startActivity(TimerFragment.createTimerSetupIntent(this));
LogUtils.i("HandleApiCalls showing timer setup");
return;
}
// Verify that the timer length is between one second and one day.
final long lengthMillis = SECOND_IN_MILLIS * intent.getIntExtra(AlarmClock.EXTRA_LENGTH, 0);
if (lengthMillis < Timer.MIN_LENGTH || lengthMillis > Timer.MAX_LENGTH) {
Voice.notifyFailure(this, getString(R.string.invalid_timer_length));
LogUtils.i("Invalid timer length requested: " + lengthMillis);
return;
}
final String label = getMessageFromIntent(intent);
final boolean skipUi = intent.getBooleanExtra(AlarmClock.EXTRA_SKIP_UI, false);
// Attempt to reuse an existing timer that is Reset with the same length and label.
Timer timer = null;
for (Timer t : DataModel.getDataModel().getTimers()) {
if (!t.isReset()) { continue; }
if (t.getLength() != lengthMillis) { continue; }
if (!TextUtils.equals(label, t.getLabel())) { continue; }
timer = t;
break;
}
// Create a new timer if one could not be reused.
if (timer == null) {
timer = DataModel.getDataModel().addTimer(lengthMillis, label, skipUi);
Events.sendTimerEvent(R.string.action_create, R.string.label_intent);
}
// Start the selected timer.
DataModel.getDataModel().startTimer(timer);
Events.sendTimerEvent(R.string.action_start, R.string.label_intent);
Voice.notifySuccess(this, getString(R.string.timer_created));
// If not instructed to skip the UI, display the running timer.
if (!skipUi) {
// Change to the timers tab.
UiDataModel.getUiDataModel().setSelectedTab(TIMERS);
// Open DeskClock which is now positioned on the timers tab.
startActivity(new Intent(this, DeskClock.class)
.putExtra(HandleDeskClockApiCalls.EXTRA_TIMER_ID, timer.getId()));
}
}
private void setupInstance(AlarmInstance instance, boolean skipUi) {
instance = AlarmInstance.addInstance(this.getContentResolver(), instance);
AlarmStateManager.registerInstance(this, instance, true);
AlarmUtils.popAlarmSetToast(this, instance.getAlarmTime().getTimeInMillis());
if (!skipUi) {
// Change to the alarms tab.
UiDataModel.getUiDataModel().setSelectedTab(ALARMS);
// Open DeskClock which is now positioned on the alarms tab.
final Intent showAlarm = Alarm.createIntent(this, DeskClock.class, instance.mAlarmId)
.putExtra(AlarmClockFragment.SCROLL_TO_ALARM_INTENT_EXTRA, instance.mAlarmId)
.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(showAlarm);
}
}
private static String getMessageFromIntent(Intent intent) {
final String message = intent.getStringExtra(AlarmClock.EXTRA_MESSAGE);
return message == null ? "" : message;
}
private static DaysOfWeek getDaysFromIntent(Intent intent) {
final DaysOfWeek daysOfWeek = new DaysOfWeek(0);
final ArrayList<Integer> days = intent.getIntegerArrayListExtra(AlarmClock.EXTRA_DAYS);
if (days != null) {
final int[] daysArray = new int[days.size()];
for (int i = 0; i < days.size(); i++) {
daysArray[i] = days.get(i);
}
daysOfWeek.setDaysOfWeek(true, daysArray);
} else {
// API says to use an ArrayList<Integer> but we allow the user to use a int[] too.
final int[] daysArray = intent.getIntArrayExtra(AlarmClock.EXTRA_DAYS);
if (daysArray != null) {
daysOfWeek.setDaysOfWeek(true, daysArray);
}
}
return daysOfWeek;
}
/**
* Assemble a database where clause to search for an alarm matching the given {@code hour} and
* {@code minutes} as well as all of the optional information within the {@code intent}
* including:
*
* <ul>
* <li>alarm message</li>
* <li>repeat days</li>
* <li>vibration setting</li>
* <li>ringtone uri</li>
* </ul>
*
* @param intent contains details of the alarm to be located
* @param hour the hour of the day of the alarm
* @param minutes the minute of the hour of the alarm
* @param selection an out parameter containing a SQL where clause
* @param args an out parameter containing the values to substitute into the {@code selection}
*/
private void setSelectionFromIntent(
Intent intent,
int hour,
int minutes,
StringBuilder selection,
List<String> args) {
selection.append(Alarm.HOUR).append("=?");
args.add(String.valueOf(hour));
selection.append(" AND ").append(Alarm.MINUTES).append("=?");
args.add(String.valueOf(minutes));
if (intent.hasExtra(AlarmClock.EXTRA_MESSAGE)) {
selection.append(" AND ").append(Alarm.LABEL).append("=?");
args.add(getMessageFromIntent(intent));
}
// Days is treated differently that other fields because if days is not specified, it
// explicitly means "not recurring".
selection.append(" AND ").append(Alarm.DAYS_OF_WEEK).append("=?");
args.add(String.valueOf(intent.hasExtra(AlarmClock.EXTRA_DAYS)
? getDaysFromIntent(intent).getBitSet() : DaysOfWeek.NO_DAYS_SET));
if (intent.hasExtra(AlarmClock.EXTRA_VIBRATE)) {
selection.append(" AND ").append(Alarm.VIBRATE).append("=?");
args.add(intent.getBooleanExtra(AlarmClock.EXTRA_VIBRATE, false) ? "1" : "0");
}
if (intent.hasExtra(AlarmClock.EXTRA_RINGTONE)) {
selection.append(" AND ").append(Alarm.RINGTONE).append("=?");
String ringTone = intent.getStringExtra(AlarmClock.EXTRA_RINGTONE);
if (ringTone == null) {
// If the intent explicitly specified a NULL ringtone, treat it as the default
// ringtone.
ringTone = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_ALARM).toString();
} else if (AlarmClock.VALUE_RINGTONE_SILENT.equals(ringTone) || ringTone.isEmpty()) {
ringTone = Alarm.NO_RINGTONE;
}
args.add(ringTone);
}
}
}
|
apache-2.0
|
wuhongjun/atom-empire-demo
|
src/main/java/com/atom/empire/das/osite/auto/records/OSiteTBO.java
|
533
|
package com.atom.empire.das.osite.auto.records;
import org.apache.empire.db.DBRecord;
import com.atom.empire.das.osite.auto.OSiteTable;
public abstract class OSiteTBO<T extends OSiteTable> extends DBRecord {
private static final long serialVersionUID = 1L;
public OSiteTBO(T table) {
super(table);
}
/**
* Returns the table this record is based upon.
* @return The table this record is based upon.
*/
@SuppressWarnings("unchecked")
public T getTable() {
return (T)super.getRowSet();
}
}
|
apache-2.0
|
jslhs/clBLAS
|
src/library/blas/generic/common.c
|
22637
|
/* ************************************************************************
* Copyright 2013 Advanced Micro Devices, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* ************************************************************************/
#include <string.h>
#include <stdlib.h>
#include <clBLAS.h>
#include <clkern.h>
#include <cltypes.h>
#include <stdio.h>
#include "clblas-internal.h"
#if defined(DUMP_CLBLAS_KERNELS) && !defined(KEEP_CLBLAS_KERNEL_SOURCES)
#define KEEP_CLBLAS_KERNEL_SOURCES
#endif
int clblasInitialized = 0;
CLBlasSolvers clblasSolvers[BLAS_FUNCTIONS_NUMBER];
struct KernelCache *clblasKernelCache = NULL;
enum {
BUILD_LOG_SIZE = 65536
};
static __inline void
storeErrorCode(cl_int *error, cl_int code)
{
if (error != NULL) {
*error = code;
}
}
#ifndef PRINT_BUILD_ERRORS
#define PRINT_BUILD_ERRORS
#endif
#ifdef PRINT_BUILD_ERRORS
static char
*allocBuildLog(void)
{
char *log;
log = malloc(BUILD_LOG_SIZE);
if (log) {
log[0] = '\0';
}
return log;
}
static void
freeBuildLog(char *buildLog)
{
free(buildLog);
}
static void
printBuildError(
cl_int error,
cl_device_id device,
SolverKgen kgen,
const SubproblemDim *dims,
const PGranularity *pgran,
const CLBLASKernExtra *kextra,
const char *source,
const char *buildLog)
{
char name[128];
char dimStr[1024];
char pgranStr[1024];
char *p;
MemoryPattern *mempat = NULL;
unsigned int i, j;
const char *s;
name[0] = '\0';
clGetDeviceInfo(device, CL_DEVICE_NAME, sizeof(name), name, NULL);
// lookup memory pattern
s = NULL;
for (i = 0; i < BLAS_FUNCTIONS_NUMBER; i++) {
for (j = 0; j < clblasSolvers[i].nrPatterns; j++) {
mempat = &clblasSolvers[i].memPatterns[j];
if (kgen == mempat->sops->genKernel) {
s = kernelTypeString(kextra->kernType);
break;
}
}
if (s != NULL) {
break;
}
}
// sprintf Subproblem dimensions
p = dimStr;
for (i = 0; i < mempat->nrLevels; i++) {
p = sprintfGranulation(p, dims, i);
strcat(p, "; ");
p += strlen(p);
}
// sprintf data parallelism granularity
sprintf(pgranStr, "pgran->wgDim = %d, pgran->wgSize[0] = %u, "
"pgran->wgSize[1] = %u, pgran->wfSize = %u",
pgran->wgDim, pgran->wgSize[0], pgran->wgSize[1],
pgran->wfSize);
fprintf(stderr, "\n========================================================\n\n");
fprintf(stderr, "AN INTERNAL KERNEL BUILD ERROR OCCURRED!\n");
fprintf(stderr, "device name = %s\n", name);
fprintf(stderr, "error = %d\n", error);
fprintf(stderr, "memory pattern = %s, %s kernel generator\n", mempat->name, s);
fprintf(stderr, "Subproblem dimensions: %s\n", dimStr);
fprintf(stderr, "Parallelism granularity: %s\n", pgranStr);
fprintf(stderr, "Kernel extra flags: %u\n", kextra->flags);
fprintf(stderr, "Source:\n\n%s\n\n", source);
fprintf(stderr, "--------------------------------------------------------\n\n");
if (buildLog) {
fprintf(stderr, "Build log:\n\n%s\n", buildLog);
}
else {
fprintf(stderr, "Build log is unavailable\n");
}
fprintf(stderr, "========================================================\n\n");
}
#else /* PRINT_BUILD_ERRORS */
static __inline char*
allocBuildLog(void)
{
/* stub, do nothing */
return NULL;
}
#define freeBuildLog(log) /* stub, do nothing */
#define printBuildError(error, device, kgen, \
dims, pgran, kextra, source, buildLog) /* stub, do nothing */
#endif /* !PRINT_BUILD_ERRORS */
static void
extraDtor(struct Kernel *kernel)
{
if (kernel->extra != NULL) {
free(kernel->extra);
kernel->extra = NULL;
}
}
static char
*sprintfDim(
char *buf,
size_t dim,
const char *dimName,
int level,
bool first)
{
if (!first) {
strcat(buf, ", ");
buf += strlen(buf);
}
if (dim == SUBDIM_UNUSED) {
sprintf(buf, "dims[%d].%s = SUBDIM_UNUSED", level, dimName);
}
else {
sprintf(buf, "dims[%d].%s = %lu", level, dimName, dim);
}
buf += strlen(buf);
return buf;
}
const char VISIBILITY_HIDDEN
*kernelTypeString(CLBlasKernelType ktype)
{
switch (ktype) {
case CLBLAS_COMPUTING_KERNEL:
return "computing";
case CLBLAS_PREP_A_KERNEL:
return "preparative for matrix A";
case CLBLAS_PREP_B_KERNEL:
return "preparative for matrix B";
default:
return NULL;
}
}
/*
* Assign a scalar multiplied on a matrix a kernel argument
*/
void VISIBILITY_HIDDEN
assignScalarKarg(KernelArg *arg, const void *value, DataType dtype)
{
arg->typeSize = dtypeSize(dtype);
memcpy(arg->arg.data, value, arg->typeSize);
}
void VISIBILITY_HIDDEN
calcGlobalThreads(
size_t globalThreads[2],
const SubproblemDim *wgDim,
const PGranularity *pgran,
size_t M,
size_t N)
{
globalThreads[1] = 1;
if ((wgDim->itemX != SUBDIM_UNUSED) &&
(wgDim->itemY != SUBDIM_UNUSED)) {
size_t groupWorkX, groupWorkY;
size_t nrGroupsX, nrGroupsY;
int nrDims;
groupWorkX = wgDim->itemX;
groupWorkY = wgDim->itemY;
nrGroupsX = N / groupWorkX;
if (N % groupWorkX) {
nrGroupsX++;
}
nrGroupsY = M / groupWorkY;
if (M % groupWorkY) {
nrGroupsY++;
}
nrDims = (pgran == NULL) ? 1 : pgran->wgDim;
if (nrDims == 1) {
globalThreads[0] = nrGroupsX * nrGroupsY;
}
else {
globalThreads[0] = nrGroupsY;
globalThreads[1] = nrGroupsX;
}
}
else {
size_t totalWork, groupWork;
if (wgDim->itemX != SUBDIM_UNUSED) {
totalWork = N;
groupWork = wgDim->itemX;
}
else {
totalWork = M;
groupWork = wgDim->itemY;
}
globalThreads[0] = totalWork / groupWork;
if (totalWork % groupWork) {
globalThreads[0]++;
}
}
if (pgran != NULL) {
globalThreads[0] *= pgran->wgSize[0];
globalThreads[1] *= pgran->wgSize[1];
}
}
cl_int VISIBILITY_HIDDEN
getKernelContext(cl_kernel kernel, cl_context *context)
{
cl_int err;
cl_context ctx;
err = clGetKernelInfo(kernel, CL_KERNEL_CONTEXT,
sizeof(cl_context), &ctx, NULL);
if (err != CL_SUCCESS)
return err;
if (context != NULL)
*context = ctx;
return err;
}
cl_int VISIBILITY_HIDDEN
getQueueContext(cl_command_queue queue, cl_context *context)
{
cl_int err;
cl_context ctx;
err = clGetCommandQueueInfo(queue, CL_QUEUE_CONTEXT,
sizeof(cl_context), &ctx, NULL);
if (err != CL_SUCCESS)
return err;
if (context != NULL)
*context = ctx;
return err;
}
cl_int VISIBILITY_HIDDEN
getQueueDevice(cl_command_queue queue, cl_device_id *device)
{
cl_int err;
cl_device_id dev;
err = clGetCommandQueueInfo(queue, CL_QUEUE_DEVICE,
sizeof(cl_device_id), &dev, NULL);
if (err != CL_SUCCESS)
return err;
if (device != NULL)
*device = dev;
return err;
}
cl_int VISIBILITY_HIDDEN
getQueueProperties(
cl_command_queue queue,
cl_command_queue_properties *props)
{
cl_int err;
cl_command_queue_properties p;
err = clGetCommandQueueInfo(queue, CL_QUEUE_PROPERTIES,
sizeof(cl_command_queue_properties), &p, NULL);
if (err != CL_SUCCESS)
return err;
if (props != NULL)
*props = p;
return err;
}
Kernel VISIBILITY_HIDDEN
*loadKernel( const unsigned char** buffer,
size_t sizeBuffer,
KernelKey *key,
const CLBLASKernExtra *extra,
cl_int *error)
{
cl_int status = CL_SUCCESS;
Kernel* kernel;
kernel = allocKernel();
if (kernel == NULL) {
return NULL;
}
kernel->program = createClProgramWithBinary(key->context,
key->device,
(unsigned char*)*buffer,
sizeBuffer,
&status);
if (status == CL_SUCCESS) {
kernel->extraSize = sizeof(CLBLASKernExtra);
kernel->extra = calloc(1, kernel->extraSize);
*(CLBLASKernExtra*)(kernel->extra) = *extra;
kernel->dtor = extraDtor;
}
else {
putKernel(NULL, kernel);
storeErrorCode(error, status);
kernel = NULL;
}
return kernel;
}
#if !defined(DUMP_CLBLAS_KERNELS)
/*
* Drop the program's source so as to consume memory as few as possible
* at caching
*/
static cl_int
dropProgramSource(cl_program *program, cl_context ctx, cl_device_id devID)
{
size_t size;
unsigned char *bin;
cl_program p = *program;
cl_int err;
size = getProgramBinarySize(p);
bin = getProgramBinary(p);
/*
* Don't release the original program until a new one is created
* in order to retain its own reference to the context if it is
* released by user
*/
p = createClProgramWithBinary(ctx, devID, bin, size, &err);
if (err == CL_SUCCESS) {
clReleaseProgram(*program);
*program = p;
}
free(bin);
return err;
}
#endif /* !DUMP_CLBLAS_KERNELS */
Kernel
*makeKernel(
cl_device_id device,
cl_context context,
SolverKgen kernelGenerator,
const SubproblemDim *dims,
const PGranularity *pgran,
const CLBLASKernExtra *extra,
const char *buildOpts,
cl_int *error)
{
cl_int err;
char *source;
ssize_t size;
Kernel *kernel;
char *log;
#ifdef DEBUG_2
printf("Make kernel called\n");
printf("x : %d, y : %d, itemX: %d, itemY: %d\n", dims->x, dims->y, dims->itemX, dims->itemY);
printf("PG : wgSize[0] : %d, wgSize[1] : %d, wfSize: %d\n", pgran->wgSize[0], pgran->wgSize[1], pgran->wfSize);
#endif
size = kernelGenerator(NULL, 0, dims, pgran, (void*)extra);
if (size < 0) {
storeErrorCode(error, CL_OUT_OF_HOST_MEMORY);
return NULL;
}
source = calloc(1, size);
if (source == NULL) {
storeErrorCode(error, CL_OUT_OF_HOST_MEMORY);
return NULL;
}
if (kernelGenerator(source, size, dims, pgran, (void*)extra) != size) {
free(source);
storeErrorCode(error, CL_OUT_OF_HOST_MEMORY);
return NULL;
}
kernel = allocKernel();
if (kernel == NULL) {
free(source);
storeErrorCode(error, CL_OUT_OF_HOST_MEMORY);
return NULL;
}
log = allocBuildLog();
//#define DEBUG_2
#ifdef DEBUG_2
printf("Build Options used %s \n", buildOpts);
printf("Source kernel used %s \n", source);
#endif
#undef DEBUG_2
kernel->program = buildClProgram(source, buildOpts, context, device,
log, BUILD_LOG_SIZE, &err);
if (err != CL_SUCCESS) {
printBuildError(err, device, kernelGenerator, dims,
pgran, extra, source, log);
freeBuildLog(log);
putKernel(NULL, kernel);
free(source);
storeErrorCode(error, err);
return NULL;
}
else
{
// #define DEBUG_2
#ifdef DEBUG_2
printf("Kernel compilation succeeded\n");
#endif
#undef DEBUG_2
}
freeBuildLog(log);
free(source);
#if !defined(KEEP_CLBLAS_KERNEL_SOURCES)
if (err == CL_SUCCESS) {
err = dropProgramSource(&kernel->program, context, device);
}
#endif /* !DUMP_CLBLAS_KERNELS */
if (err != CL_SUCCESS) {
putKernel(NULL, kernel);
storeErrorCode(error, err);
return NULL;
}
kernel->extraSize = sizeof(CLBLASKernExtra);
kernel->extra = calloc(1, kernel->extraSize);
*(CLBLASKernExtra*)(kernel->extra) = *extra;
kernel->dtor = extraDtor;
storeErrorCode(error, CL_SUCCESS);
return kernel;
}
void
setupBuildOpts(
char opts[BUILD_OPTS_MAXLEN],
cl_device_id devID,
MemoryPattern *mempat)
{
TargetDevice target;
target.id = devID;
identifyDevice(&target);
opts[0] = '\0';
#if !defined NDEBUG
strcpy(opts, "-g ");
#endif /* NDEBUG */
if (target.ident.vendor == VENDOR_NVIDIA &&
!strcmp(mempat->name, "2-staged cached global memory based "
"block trsm")) {
strcat(opts, "-cl-opt-disable");
}
}
char VISIBILITY_HIDDEN
*sprintfGranulation(char *buf, const SubproblemDim *dim, int level)
{
buf = sprintfDim(buf, dim[level].itemY, "itemY", level, true);
buf = sprintfDim(buf, dim[level].itemX, "itemX", level, false);
buf = sprintfDim(buf, dim[level].y, "y", level, false);
buf = sprintfDim(buf, dim[level].x, "x", level, false);
buf = sprintfDim(buf, dim[level].bwidth, "bwidth", level, false);
strcat(buf, "; ");
buf += strlen(buf);
return buf;
}
clblasStatus VISIBILITY_HIDDEN
checkMatrixSizes(
DataType dtype,
clblasOrder order,
clblasTranspose transA,
size_t M,
size_t N,
cl_mem A,
size_t offA,
size_t lda, // lda is passed as zero for packed matrices
ErrorCodeSet err )
{
size_t memSize, matrSize, tsize, memUsed;
size_t unusedTail = 0;
bool tra;
if ((M == 0) || (N == 0)) {
return clblasInvalidDim;
}
tsize = dtypeSize(dtype);
tra = (order == clblasRowMajor && transA != clblasNoTrans) ||
(order == clblasColumnMajor && transA == clblasNoTrans);
if( lda > 0 ) // For Non-packed matrices
{
if (tra) {
if (lda < M) {
switch( err )
{
case A_MAT_ERRSET:
return clblasInvalidLeadDimA;
case B_MAT_ERRSET:
return clblasInvalidLeadDimB;
case C_MAT_ERRSET:
return clblasInvalidLeadDimC;
default:
return clblasNotImplemented;
}
}
matrSize = ((N - 1) * lda + M) * tsize;
unusedTail = ( lda - N ) * tsize;
}
else {
if (lda < N) {
switch( err )
{
case A_MAT_ERRSET:
return clblasInvalidLeadDimA;
case B_MAT_ERRSET:
return clblasInvalidLeadDimB;
case C_MAT_ERRSET:
return clblasInvalidLeadDimC;
default:
return clblasNotImplemented;
}
}
matrSize = ((M - 1) * lda + N) * tsize;
unusedTail = ( lda - M ) * tsize;
}
}
else { // For the case of packed matrices
matrSize = ((M * (N+1)) / 2) * tsize;
}
offA *= tsize;
if (clGetMemObjectInfo(A, CL_MEM_SIZE, sizeof(memSize), &memSize, NULL) !=
CL_SUCCESS) {
switch( err )
{
case A_MAT_ERRSET:
return clblasInvalidMatA;
case B_MAT_ERRSET:
return clblasInvalidMatB;
case C_MAT_ERRSET:
return clblasInvalidMatC;
default:
return clblasNotImplemented;
}
}
// It is possible to allocate a buffer, and set up lda & ldb such that it looks like it will access outside of the allocated buffer, but if
// M & N are kept small enough, no out of bounds access will occur. Compensate for the offset values and the unused tail memory caused by lda & ldb.
// Ex: BuffSize=6 floats, M=1, N=2, lda=ldb=3, offA = 0, offB = 2 : |A[0,0]|unused|B[0,0]|A[0,1]|unused|B[0,1]|
memUsed = (( offA + matrSize ) > unusedTail) ? offA + matrSize - unusedTail: 0;
if (( memUsed > memSize ) || (offA + matrSize < offA)) {
switch( err )
{
case A_MAT_ERRSET:
return clblasInsufficientMemMatA;
case B_MAT_ERRSET:
return clblasInsufficientMemMatB;
case C_MAT_ERRSET:
return clblasInsufficientMemMatC;
default:
return clblasNotImplemented;
}
}
return clblasSuccess;
}
clblasStatus VISIBILITY_HIDDEN
checkBandedMatrixSizes(
DataType dtype,
clblasOrder order,
clblasTranspose transA,
size_t M,
size_t N,
size_t KL,
size_t KU,
cl_mem A,
size_t offA,
size_t lda,
ErrorCodeSet err )
{
size_t memSize, matrSize, tsize, K, memUsed;
size_t unusedTail = 0;
bool tra;
if ((M == 0) || (N == 0)) {
return clblasInvalidDim;
}
tsize = dtypeSize(dtype);
K = KL + KU + 1;
tra = (order == clblasRowMajor && transA != clblasNoTrans) ||
(order == clblasColumnMajor && transA == clblasNoTrans);
if (lda < K) {
switch( err )
{
case A_MAT_ERRSET:
return clblasInvalidLeadDimA;
case B_MAT_ERRSET:
return clblasInvalidLeadDimB;
case C_MAT_ERRSET:
return clblasInvalidLeadDimC;
default:
return clblasNotImplemented;
}
}
if (tra) {
matrSize = ((N - 1) * lda + K) * tsize;
unusedTail = ( lda - N ) * tsize;
}
else {
matrSize = ((M - 1) * lda + K) * tsize;
unusedTail = ( lda - M ) * tsize;
}
offA *= tsize;
if (clGetMemObjectInfo(A, CL_MEM_SIZE, sizeof(memSize), &memSize, NULL) !=
CL_SUCCESS) {
switch( err )
{
case A_MAT_ERRSET:
return clblasInvalidMatA;
case B_MAT_ERRSET:
return clblasInvalidMatB;
case C_MAT_ERRSET:
return clblasInvalidMatC;
default:
return clblasNotImplemented;
}
}
// It is possible to allocate a buffer, and set up lda & ldb such that it looks like it will access outside of the allocated buffer, but if
// M & N are kept small, no out of bounds access will occur. Compensate for the offset values and the unused tail memory caused by lda & ldb.
// Ex: BuffSize=6 floats, M=1, N=2, lda=ldb=3, offA = 0, offB = 2 : |A[0,0]|unused|B[0,0]|A[0,1]|unused|B[0,1]|
memUsed = (( offA + matrSize ) > unusedTail) ? offA + matrSize - unusedTail: 0;
if (memUsed > memSize) {
switch( err )
{
case A_MAT_ERRSET:
return clblasInsufficientMemMatA;
case B_MAT_ERRSET:
return clblasInsufficientMemMatB;
case C_MAT_ERRSET:
return clblasInsufficientMemMatC;
default:
return clblasNotImplemented;
}
}
return clblasSuccess;
}
clblasStatus VISIBILITY_HIDDEN
checkVectorSizes(
DataType dtype,
size_t N,
cl_mem x,
size_t offx,
int incx,
ErrorCodeSet err )
{
size_t memSize, sizev;
size_t tsize;
if (N == 0) {
return clblasInvalidDim;
}
if (incx == 0) {
switch( err )
{
case X_VEC_ERRSET:
return clblasInvalidIncX;
case Y_VEC_ERRSET:
return clblasInvalidIncY;
default:
return clblasNotImplemented;
}
}
if (clGetMemObjectInfo(x, CL_MEM_SIZE, sizeof(memSize), &memSize, NULL) !=
CL_SUCCESS) {
switch( err )
{
case X_VEC_ERRSET:
return clblasInvalidVecX;
case Y_VEC_ERRSET:
return clblasInvalidVecY;
default:
return clblasNotImplemented;
}
}
tsize = dtypeSize(dtype);
sizev = ((N - 1) * abs(incx) + 1) * tsize;
offx *= tsize;
if ((offx + sizev > memSize) || (offx + sizev < offx)) {
switch( err )
{
case X_VEC_ERRSET:
return clblasInsufficientMemVecX;
case Y_VEC_ERRSET:
return clblasInsufficientMemVecY;
default:
return clblasNotImplemented;
}
}
return clblasSuccess;
}
clblasStatus
checkMemObjects(
cl_mem A,
cl_mem B,
cl_mem C,
bool checkC,
ErrorCodeSet errA,
ErrorCodeSet errB,
ErrorCodeSet errC )
{
cl_mem_object_type mobjType = 0;
if (!clGetMemObjectInfo(A, CL_MEM_TYPE, sizeof(mobjType), &mobjType, NULL) &&
(mobjType != CL_MEM_OBJECT_BUFFER)) {
switch( errA )
{
case A_MAT_ERRSET:
return clblasInvalidMatA;
case B_MAT_ERRSET:
return clblasInvalidMatB;
case C_MAT_ERRSET:
return clblasInvalidMatC;
case X_VEC_ERRSET:
return clblasInvalidVecX;
case Y_VEC_ERRSET:
return clblasInvalidVecY;
default:
return clblasNotImplemented;
}
}
mobjType = 0;
if (!clGetMemObjectInfo(B, CL_MEM_TYPE, sizeof(mobjType), &mobjType, NULL) &&
(mobjType != CL_MEM_OBJECT_BUFFER)) {
switch( errB )
{
case A_MAT_ERRSET:
return clblasInvalidMatA;
case B_MAT_ERRSET:
return clblasInvalidMatB;
case C_MAT_ERRSET:
return clblasInvalidMatC;
case X_VEC_ERRSET:
return clblasInvalidVecX;
case Y_VEC_ERRSET:
return clblasInvalidVecY;
default:
return clblasNotImplemented;
}
}
mobjType = 0;
if (checkC && !clGetMemObjectInfo(C, CL_MEM_TYPE, sizeof(mobjType),
&mobjType, NULL) &&
(mobjType != CL_MEM_OBJECT_BUFFER)) {
switch( errC )
{
case A_MAT_ERRSET:
return clblasInvalidMatA;
case B_MAT_ERRSET:
return clblasInvalidMatB;
case C_MAT_ERRSET:
return clblasInvalidMatC;
case X_VEC_ERRSET:
return clblasInvalidVecX;
case Y_VEC_ERRSET:
return clblasInvalidVecY;
default:
return clblasNotImplemented;
}
}
return clblasSuccess;
}
|
apache-2.0
|
stdlib-js/stdlib
|
lib/node_modules/@stdlib/random/base/erlang/lib/index.js
|
1304
|
/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
'use strict';
/**
* Erlang distributed pseudorandom numbers.
*
* @module @stdlib/random/base/erlang
*
* @example
* var erlang = require( '@stdlib/random/base/erlang' );
*
* var v = erlang( 3, 2.5 );
* // returns <number>
*
* @example
* var factory = require( '@stdlib/random/base/erlang' ).factory;
*
* var erlang = factory( 8, 5.9, {
* 'seed': 297
* });
*
* var v = erlang();
* // returns <number>
*/
// MODULES //
var setReadOnly = require( '@stdlib/utils/define-nonenumerable-read-only-property' );
var erlang = require( './main.js' );
var factory = require( './factory.js' );
// MAIN //
setReadOnly( erlang, 'factory', factory );
// EXPORTS //
module.exports = erlang;
|
apache-2.0
|
Dakror/SpamWars
|
src/main/java/de/dakror/spamwars/net/packet/Packet01Disconnect.java
|
1729
|
/*******************************************************************************
* Copyright 2015 Maximilian Stark | Dakror <[email protected]>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
******************************************************************************/
package de.dakror.spamwars.net.packet;
/**
* @author Dakror
*/
public class Packet01Disconnect extends Packet {
public enum Cause {
SERVER_CLOSED("Der Server wurde geschlossen."),
USER_DISCONNECT("Spiel beendet."),
;
private String description;
private Cause(String desc) {
description = desc;
}
public String getDescription() {
return description;
}
}
private Cause cause;
private String username;
public Packet01Disconnect(byte[] data) {
super(1);
String[] s = readData(data).split(":");
username = s[0];
cause = Cause.values()[Integer.parseInt(s[1])];
}
public Packet01Disconnect(String username, Cause cause) {
super(1);
this.username = username;
this.cause = cause;
}
@Override
public byte[] getPacketData() {
return (username + ":" + cause.ordinal()).getBytes();
}
public String getUsername() {
return username;
}
public Cause getCause() {
return cause;
}
}
|
apache-2.0
|
mdoering/backbone
|
life/Plantae/Magnoliophyta/Magnoliopsida/Asterales/Asteraceae/Verbesina macrophylla/README.md
|
181
|
# Verbesina macrophylla S.F.Blake SPECIES
#### Status
ACCEPTED
#### According to
International Plant Names Index
#### Published in
null
#### Original name
null
### Remarks
null
|
apache-2.0
|
probcomp/cgpm
|
src/crosscat/statedoc.py
|
8646
|
# -*- coding: utf-8 -*-
# Copyright (c) 2015-2016 MIT Probabilistic Computing Project
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
def load_docstrings(module):
module.State.__init__.__func__.__doc__ = """
Construct a State.
Parameters
----------
X : np.ndarray
Data matrix, each row is an observation and each column a variable.
outputs : list<int>, optional
Unique non-negative ID for each column in X, and used to refer to
the column for all future queries. Defaults to range(0, X.shape[1])
inputs : list<int>, optional
Currently unsupported.
cctypes : list<str>
Data type of each column, see `utils.config` for valid cctypes.
distargs : list<dict>, optional
See the documentation for each DistributionGpm for its distargs.
Zv : dict(int:int), optional
Assignment of output columns to views, where Zv[k] is the
view assignment for column k. Defaults to sampling from CRP.
Zrv : dict(int:list<int>), optional
Assignment of rows to clusters in each view, where Zrv[k] is
the Zr for View k. If specified, then Zv must also be specified.
Defaults to sampling from CRP.
Cd : list(list<int>), optional
List of marginal dependence constraints for columns. Each element in
the list is a list of columns which are to be in the same view. Each
column can only be in one such list i.e. [[1,2,5],[1,5]] is not
allowed.
Ci : list(tuple<int>), optional
List of marginal independence constraints for columns.
Each element in the list is a 2-tuple of columns that must be
independent, i.e. [(1,2),(1,3)].
Rd : dict(int:Cd), optional
Dictionary of dependence constraints for rows, wrt.
Each entry is (col: Cd), where col is a column number and Cd is a
list of dependence constraints for the rows with respect to that
column (see doc for Cd).
Ri : dict(int:Cid), optional
Dictionary of independence constraints for rows, wrt.
Each entry is (col: Ci), where col is a column number and Ci is a
list of independence constraints for the rows with respect to that
column (see doc for Ci).
iterations : dict(str:int), optional
Metadata holding the number of iters each kernel has been run.
loom_path: str, optional
Path to a loom project compatible with this State.
rng : np.random.RandomState, optional.
Source of entropy.
"""
# --------------------------------------------------------------------------
# Observe
module.State.incorporate_dim.__func__.__doc__ = """
Incorporate a new Dim into this State.
Parameters
----------
T : list
Data with length self.n_rows().
outputs : list[int]
Identity of the variable modeled by this dim, must be non-negative
and cannot collide with State.outputs. Only univariate outputs
currently supported, so the list be a singleton.
cctype, distargs:
refer to State.__init__
v : int, optional
Index of the view to assign the data. If 0 <= v < len(state.views)
then insert into an existing View. If v = len(state.views) then
singleton view will be created with a partition from the CRP prior.
If unspecified, will be sampled.
"""
# --------------------------------------------------------------------------
# Schema updates.
module.State.update_cctype.__func__.__doc__ = """
Update the distribution type of self.dims[col] to cctype.
Parameters
----------
col : int
Index of column to update.
cctype, distargs:
refer to State.__init__
"""
# --------------------------------------------------------------------------
# Compositions
module.State.compose_cgpm.__func__.__doc__ = """
Compose a CGPM with this object.
Parameters
----------
cgpm : cgpm.cgpm.CGpm object
The `CGpm` object to compose.
Returns
-------
token : int
A unique token representing the composed cgpm, to be used
by `State.decompose_cgpm`.
"""
module.State.decompose_cgpm.__func__.__doc__ = """
Decompose a previously composed CGPM.
Parameters
----------
token : int
The unique token representing the composed cgpm, returned from
`State.compose_cgpm`.
"""
# --------------------------------------------------------------------------
# logpdf_score
module.State.logpdf_score.__func__.__doc__ = """
Compute joint density of all latents and the incorporated data.
Returns
-------
logpdf_score : float
The log score is P(X,Z) = P(X|Z)P(Z) where X is the observed data
and Z is the entirety of the latent state in the CGPM.
"""
# --------------------------------------------------------------------------
# Mutual information
module.State.mutual_information.__func__.__doc__ = """
Computes the mutual information MI(col0:col1|constraints).
Mutual information with constraints can be of the form:
- MI(X:Y|Z=z): CMI at a fixed conditioning value.
- MI(X:Y|Z): expected CMI E_Z[MI(X:Y|Z)] under Z.
- MI(X:Y|Z, W=w): expected CMI E_Z[MI(X:Y|Z,W=w)] under Z.
This function supports all three forms. The CMI is computed under the
posterior predictive joint distributions.
Parameters
----------
col0, col1 : list<int>
Columns to comptue MI. If all columns in `col0` are equivalent
to columns in `col` then entropy is returned, otherwise they must
be disjoint and the CMI is returned
constraints : list(tuple), optional
A list of pairs (col, val) of observed values to condition on. If
`val` is None, then `col` is marginalized over.
T : int, optional.
Number of samples to use in the outer (marginalization) estimator.
N : int, optional.
Number of samples to use in the inner Monte Carlo estimator.
Returns
-------
mi : float
A point estimate of the mutual information.
Examples
-------
# Compute MI(X:Y)
>>> State.mutual_information(col_x, col_y)
# Compute MI(X:Y|Z=1)
>>> State.mutual_information(col_x, col_y, {col_z: 1})
# Compute MI(X:Y|W)
>>> State.mutual_information(col_x, col_y, {col_w:None})
# Compute MI(X:Y|Z=1, W)
>>> State.mutual_information(col_x, col_y, {col_z: 1, col_w:None})
"""
# --------------------------------------------------------------------------
# Inference
module.State.transition.__func__.__doc__ = """
Run targeted inference kernels.
Parameters
----------
N : int, optional
Number of iterations to transition. Default 1.
S : float, optional
Number of seconds to transition. If both N and S set then min used.
kernels : list<{'alpha', 'view_alphas', 'column_params', 'column_hypers'
'rows', 'columns'}>, optional
List of inference kernels to run in this transition. Default all.
views, rows, cols : list<int>, optional
View, row and column numbers to apply the kernels. Default all.
checkpoint : int, optional
Number of transitions between recording inference diagnostics
from the latent state (such as logscore and row/column partitions).
Defaults to no checkpointing.
progress : boolean, optional
Show a progress bar for number of target iterations or elapsed time.
"""
|
apache-2.0
|
richkadel/jsfunction-gwt
|
jsfunction-gwt-main/src/main/java/jsfunction/gwt/returns/JsResultOrError.java
|
825
|
package jsfunction.gwt.returns;
import jsfunction.gwt.JsFunction;
import com.google.gwt.core.client.JavaScriptObject;
/**
* This is the JavaScriptObject type returned from JsFunction.create(JsReturn).
* It can be passed as an argument to a JavaScript function, which then returns
* its results asynchronously by calling "arg.result(someResult)". If the
* JavaScript function encounters an error or exception, it can return that
* as a JavaScript "Error" class via "arg.error(new Error('message'))" (or simply
* "arg.error(caughtError)").
*
* @author richkadel
*/
public final class JsResultOrError extends JavaScriptObject {
protected JsResultOrError() {}
public native JsFunction resultFunction() /*-{ return this.result }-*/;
public native JsFunction errorFunction() /*-{ return this.error }-*/;
}
|
apache-2.0
|
gmrodrigues/crate
|
sql/src/test/java/io/crate/integrationtests/TransportSQLActionClassLifecycleTest.java
|
30721
|
/*
* Licensed to CRATE Technology GmbH ("Crate") under one or more contributor
* license agreements. See the NOTICE file distributed with this work for
* additional information regarding copyright ownership. Crate licenses
* this file to you under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. You may
* obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* However, if you have executed another commercial license agreement
* with Crate these terms will supersede the license and you may use the
* software solely pursuant to the terms of the relevant commercial agreement.
*/
package io.crate.integrationtests;
import io.crate.Build;
import io.crate.Version;
import io.crate.action.sql.SQLActionException;
import io.crate.action.sql.SQLResponse;
import io.crate.metadata.settings.CrateSettings;
import io.crate.test.integration.ClassLifecycleIntegrationTest;
import io.crate.testing.SQLTransportExecutor;
import io.crate.testing.TestingHelpers;
import org.elasticsearch.common.os.OsUtils;
import org.hamcrest.Matchers;
import org.junit.*;
import org.junit.rules.ExpectedException;
import org.junit.rules.TemporaryFolder;
import java.nio.charset.StandardCharsets;
import java.nio.file.DirectoryStream;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.TreeMap;
import static org.hamcrest.Matchers.*;
import static org.hamcrest.core.Is.is;
public class TransportSQLActionClassLifecycleTest extends ClassLifecycleIntegrationTest {
@Rule
public TemporaryFolder folder = new TemporaryFolder();
private static boolean dataInitialized = false;
private static SQLTransportExecutor executor;
@Rule
public ExpectedException expectedException = ExpectedException.none();
@Before
public void initTestData() throws Exception {
synchronized (SysShardsTest.class) {
if (dataInitialized) {
return;
}
executor = SQLTransportExecutor.create(ClassLifecycleIntegrationTest.GLOBAL_CLUSTER);
Setup setup = new Setup(executor);
setup.partitionTableSetup();
setup.groupBySetup();
dataInitialized = true;
}
}
@After
public void resetSettings() throws Exception {
// reset stats settings in case of some tests changed it and failed without resetting.
executor.exec("reset global stats.enabled, stats.jobs_log_size, stats.operations_log_size");
}
@AfterClass
public synchronized static void after() throws Exception {
if (executor != null) {
executor = null;
}
}
@Test
public void testSelectNonExistentGlobalExpression() throws Exception {
expectedException.expect(SQLActionException.class);
expectedException.expectMessage("Cannot resolve relation 'suess.cluster'");
executor.exec("select count(race), suess.cluster.name from characters");
}
@Test
public void testSelectOrderByNullSortingASC() throws Exception {
SQLResponse response = executor.exec("select age from characters order by age");
assertEquals(32, response.rows()[0][0]);
assertEquals(34, response.rows()[1][0]);
assertEquals(43, response.rows()[2][0]);
assertEquals(112, response.rows()[3][0]);
assertEquals(null, response.rows()[4][0]);
assertEquals(null, response.rows()[5][0]);
assertEquals(null, response.rows()[6][0]);
}
@Test
public void testSelectDoc() throws Exception {
SQLResponse response = executor.exec("select _doc from characters order by name desc limit 1");
assertArrayEquals(new String[]{"_doc"}, response.cols());
Map<String, Object> _doc = new TreeMap<>((Map)response.rows()[0][0]);
assertEquals(
"{age=32, birthdate=276912000000, details={job=Mathematician}, " +
"gender=female, name=Trillian, race=Human}",
_doc.toString());
}
@Test
public void testSelectRaw() throws Exception {
SQLResponse response = executor.exec("select _raw from characters order by name desc limit 1");
assertEquals(
"{\"race\":\"Human\",\"gender\":\"female\",\"age\":32,\"birthdate\":276912000000," +
"\"name\":\"Trillian\",\"details\":{\"job\":\"Mathematician\"}}\n",
TestingHelpers.printedTable(response.rows()));
}
@Test
public void testSelectRawWithGrouping() throws Exception {
SQLResponse response = executor.exec("select name, _raw from characters " +
"group by _raw, name order by name desc limit 1");
assertEquals(
"Trillian| {\"race\":\"Human\",\"gender\":\"female\",\"age\":32,\"birthdate\":276912000000," +
"\"name\":\"Trillian\",\"details\":{\"job\":\"Mathematician\"}}\n",
TestingHelpers.printedTable(response.rows()));
}
@Test
public void testSelectOrderByNullSortingDESC() throws Exception {
SQLResponse response = executor.exec("select age from characters order by age desc");
assertEquals(null, response.rows()[0][0]);
assertEquals(null, response.rows()[1][0]);
assertEquals(null, response.rows()[2][0]);
assertEquals(112, response.rows()[3][0]);
assertEquals(43, response.rows()[4][0]);
assertEquals(34, response.rows()[5][0]);
assertEquals(32, response.rows()[6][0]);
}
@Test
public void testSelectGroupByOrderByNullSortingASC() throws Exception {
SQLResponse response = executor.exec("select age from characters group by age order by age");
assertEquals(32, response.rows()[0][0]);
assertEquals(34, response.rows()[1][0]);
assertEquals(43, response.rows()[2][0]);
assertEquals(112, response.rows()[3][0]);
assertEquals(null, response.rows()[4][0]);
}
@Test
public void testSelectGroupByOrderByNullSortingDESC() throws Exception {
SQLResponse response = executor.exec("select age from characters group by age order by age desc");
assertEquals(null, response.rows()[0][0]);
assertEquals(112, response.rows()[1][0]);
assertEquals(43, response.rows()[2][0]);
assertEquals(34, response.rows()[3][0]);
assertEquals(32, response.rows()[4][0]);
}
@Test
public void testGlobalAggregateSimple() throws Exception {
SQLResponse response = executor.exec("select max(age) from characters");
assertEquals(1, response.rowCount());
assertEquals("max(age)", response.cols()[0]);
assertEquals(112, response.rows()[0][0]);
response = executor.exec("select min(name) from characters");
assertEquals(1, response.rowCount());
assertEquals("min(name)", response.cols()[0]);
assertEquals("Anjie", response.rows()[0][0]);
response = executor.exec("select avg(age) as median_age from characters");
assertEquals(1, response.rowCount());
assertEquals("median_age", response.cols()[0]);
assertEquals(55.25d, response.rows()[0][0]);
response = executor.exec("select sum(age) as sum_age from characters");
assertEquals(1, response.rowCount());
assertEquals("sum_age", response.cols()[0]);
assertEquals(221.0d, response.rows()[0][0]);
}
@Test
public void testGlobalAggregateWithoutNulls() throws Exception {
SQLResponse firstResp = executor.exec("select sum(age) from characters");
SQLResponse secondResp = executor.exec("select sum(age) from characters where age is not null");
assertEquals(
firstResp.rowCount(),
secondResp.rowCount()
);
assertEquals(
firstResp.rows()[0][0],
secondResp.rows()[0][0]
);
}
@Test
public void testGlobalAggregateNullRowWithoutMatchingRows() throws Exception {
SQLResponse response = executor.exec(
"select sum(age), avg(age) from characters where characters.age > 112");
assertEquals(1, response.rowCount());
assertNull(response.rows()[0][0]);
assertNull(response.rows()[0][1]);
response = executor.exec("select sum(age) from characters limit 0");
assertEquals(0, response.rowCount());
}
@Test
public void testGlobalAggregateMany() throws Exception {
SQLResponse response = executor.exec("select sum(age), min(age), max(age), avg(age) from characters");
assertEquals(1, response.rowCount());
assertEquals(221.0d, response.rows()[0][0]);
assertEquals(32, response.rows()[0][1]);
assertEquals(112, response.rows()[0][2]);
assertEquals(55.25d, response.rows()[0][3]);
}
@Test(expected = SQLActionException.class)
public void selectMultiGetRequestFromNonExistentTable() throws Exception {
executor.exec("SELECT * FROM \"non_existent\" WHERE \"_id\" in (?,?)", new Object[]{"1", "2"});
}
@Test
public void testGroupByNestedObject() throws Exception {
SQLResponse response = executor.exec("select count(*), details['job'] from characters " +
"group by details['job'] order by count(*), details['job']");
assertEquals(3, response.rowCount());
assertEquals(1L, response.rows()[0][0]);
assertEquals("Mathematician", response.rows()[0][1]);
assertEquals(1L, response.rows()[1][0]);
assertEquals("Sandwitch Maker", response.rows()[1][1]);
assertEquals(5L, response.rows()[2][0]);
assertNull(null, response.rows()[2][1]);
}
@Test
public void testCountWithGroupByOrderOnKeyDescAndLimit() throws Exception {
SQLResponse response = executor.exec(
"select count(*), race from characters group by race order by race desc limit 2");
assertEquals(2L, response.rowCount());
assertEquals(2L, response.rows()[0][0]);
assertEquals("Vogon", response.rows()[0][1]);
assertEquals(4L, response.rows()[1][0]);
assertEquals("Human", response.rows()[1][1]);
}
@Test
public void testCountWithGroupByOrderOnKeyAscAndLimit() throws Exception {
SQLResponse response = executor.exec(
"select count(*), race from characters group by race order by race asc limit 2");
assertEquals(2, response.rowCount());
assertEquals(1L, response.rows()[0][0]);
assertEquals("Android", response.rows()[0][1]);
assertEquals(4L, response.rows()[1][0]);
assertEquals("Human", response.rows()[1][1]);
}
@Test
public void testCountWithGroupByNullArgs() throws Exception {
SQLResponse response = executor.exec("select count(*), race from characters group by race", new Object[]{null});
assertEquals(3, response.rowCount());
assertThat(response.duration(), greaterThanOrEqualTo(0L));
}
@Test
public void testGroupByAndOrderByAlias() throws Exception {
SQLResponse response = executor.exec(
"select characters.race as test_race from characters group by characters.race order by characters.race");
assertEquals(3, response.rowCount());
response = executor.exec(
"select characters.race as test_race from characters group by characters.race order by test_race");
assertEquals(3, response.rowCount());
}
@Test
public void testCountWithGroupByWithWhereClause() throws Exception {
SQLResponse response = executor.exec(
"select count(*), race from characters where race = 'Human' group by race");
assertEquals(1, response.rowCount());
}
@Test
public void testCountWithGroupByOrderOnAggAscFuncAndLimit() throws Exception {
SQLResponse response = executor.exec("select count(*), race from characters " +
"group by race order by count(*) asc limit ?",
new Object[]{2});
assertEquals(2, response.rowCount());
assertEquals(1L, response.rows()[0][0]);
assertEquals("Android", response.rows()[0][1]);
assertEquals(2L, response.rows()[1][0]);
assertEquals("Vogon", response.rows()[1][1]);
}
@Test
public void testCountWithGroupByOrderOnAggAscFuncAndSecondColumnAndLimit() throws Exception {
SQLResponse response = executor.exec("select count(*), gender, race from characters " +
"group by race, gender order by count(*) desc, race, gender asc limit 2");
assertEquals(2L, response.rowCount());
assertEquals(2L, response.rows()[0][0]);
assertEquals("female", response.rows()[0][1]);
assertEquals("Human", response.rows()[0][2]);
assertEquals(2L, response.rows()[1][0]);
assertEquals("male", response.rows()[1][1]);
assertEquals("Human", response.rows()[1][2]);
}
@Test
public void testCountWithGroupByOrderOnAggAscFuncAndSecondColumnAndLimitAndOffset() throws Exception {
SQLResponse response = executor.exec("select count(*), gender, race from characters " +
"group by race, gender order by count(*) desc, race asc limit 2 offset 2");
assertEquals(2, response.rowCount());
assertEquals(2L, response.rows()[0][0]);
assertEquals("male", response.rows()[0][1]);
assertEquals("Vogon", response.rows()[0][2]);
assertEquals(1L, response.rows()[1][0]);
assertEquals("male", response.rows()[1][1]);
assertEquals("Android", response.rows()[1][2]);
}
@Test
public void testCountWithGroupByOrderOnAggAscFuncAndSecondColumnAndLimitAndTooLargeOffset() throws Exception {
SQLResponse response = executor.exec("select count(*), gender, race from characters " +
"group by race, gender order by count(*) desc, race asc limit 2 offset 20");
assertEquals(0, response.rows().length);
assertEquals(0, response.rowCount());
}
@Test
public void testCountWithGroupByOrderOnAggDescFuncAndLimit() throws Exception {
SQLResponse response = executor.exec(
"select count(*), race from characters group by race order by count(*) desc limit 2");
assertEquals(2, response.rowCount());
assertEquals(4L, response.rows()[0][0]);
assertEquals("Human", response.rows()[0][1]);
assertEquals(2L, response.rows()[1][0]);
assertEquals("Vogon", response.rows()[1][1]);
}
@Test
public void testDateRange() throws Exception {
SQLResponse response = executor.exec("select * from characters where birthdate > '1970-01-01'");
assertThat(response.rowCount(), Matchers.is(2L));
}
@Test
public void testOrderByNullsFirstAndLast() throws Exception {
SQLResponse response = executor.exec(
"select details['job'] from characters order by details['job'] nulls first limit 1");
assertNull(response.rows()[0][0]);
response = executor.exec(
"select details['job'] from characters order by details['job'] desc nulls first limit 1");
assertNull(response.rows()[0][0]);
response = executor.exec(
"select details['job'] from characters order by details['job'] nulls last");
assertNull(response.rows()[((Long) response.rowCount()).intValue() - 1][0]);
response = executor.exec(
"select details['job'] from characters order by details['job'] desc nulls last");
assertNull(response.rows()[((Long) response.rowCount()).intValue() - 1][0]);
response = executor.exec(
"select distinct details['job'] from characters order by details['job'] desc nulls last");
assertNull(response.rows()[((Long) response.rowCount()).intValue() - 1][0]);
}
@Test
public void testCopyToDirectoryOnPartitionedTableWithPartitionClause() throws Exception {
String uriTemplate = Paths.get(folder.getRoot().toURI()).toUri().toString();
SQLResponse response = executor.exec("copy parted partition (date='2014-01-01') to DIRECTORY ?", uriTemplate);
assertThat(response.rowCount(), is(2L));
List<String> lines = new ArrayList<>(2);
DirectoryStream<Path> stream = Files.newDirectoryStream(Paths.get(folder.getRoot().toURI()), "*.json");
for (Path entry : stream) {
lines.addAll(Files.readAllLines(entry, StandardCharsets.UTF_8));
}
assertThat(lines.size(), is(2));
for (String line : lines) {
assertTrue(line.contains("2") || line.contains("1"));
assertFalse(line.contains("1388534400000")); // date column not included in export
assertThat(line, startsWith("{"));
assertThat(line, endsWith("}"));
}
}
@Test
public void testCopyToDirectoryOnPartitionedTableWithoutPartitionClause() throws Exception {
String uriTemplate = Paths.get(folder.getRoot().toURI()).toUri().toString();
SQLResponse response = executor.exec("copy parted to DIRECTORY ?", uriTemplate);
assertThat(response.rowCount(), is(5L));
List<String> lines = new ArrayList<>(5);
DirectoryStream<Path> stream = Files.newDirectoryStream(Paths.get(folder.getRoot().toURI()), "*.json");
for (Path entry : stream) {
lines.addAll(Files.readAllLines(entry, StandardCharsets.UTF_8));
}
assertThat(lines.size(), is(5));
for (String line : lines) {
// date column included in output
if (!line.contains("1388534400000")) {
assertTrue(line.contains("1391212800000"));
}
assertThat(line, startsWith("{"));
assertThat(line, endsWith("}"));
}
}
@Test
public void testArithmeticFunctions() throws Exception {
SQLResponse response = executor.exec("select ((2 * 4 - 2 + 1) / 2) % 3 from sys.cluster");
assertThat(response.cols()[0], is("(((((2 * 4) - 2) + 1) / 2) % 3)"));
assertThat((Long) response.rows()[0][0], is(0L));
response = executor.exec("select ((2 * 4.0 - 2 + 1) / 2) % 3 from sys.cluster");
assertThat((Double) response.rows()[0][0], is(0.5));
response = executor.exec("select ? + 2 from sys.cluster", 1);
assertThat((Long) response.rows()[0][0], is(3L));
if (!OsUtils.WINDOWS) {
response = executor.exec("select load['1'] + load['5'], load['1'], load['5'] from sys.nodes limit 1");
assertEquals(response.rows()[0][0], (Double) response.rows()[0][1] + (Double) response.rows()[0][2]);
}
}
@Test
public void testJobLog() throws Exception {
executor.exec("select name from sys.cluster");
SQLResponse response = executor.exec("select * from sys.jobs_log");
assertThat(response.rowCount(), is(0L)); // default length is zero
executor.exec("set global transient stats.enabled = true, stats.jobs_log_size=1");
executor.exec("select id from sys.cluster");
executor.exec("select id from sys.cluster");
executor.exec("select id from sys.cluster");
response = executor.exec("select stmt from sys.jobs_log order by ended desc");
// there are 2 nodes so depending on whether both nodes were hit this should be either 1 or 2
// but never 3 because the queue size is only 1
assertThat(response.rowCount(), Matchers.lessThanOrEqualTo(2L));
assertThat((String) response.rows()[0][0], is("select id from sys.cluster"));
executor.exec("reset global stats.enabled, stats.jobs_log_size");
waitNoPendingTasksOnAll();
response = executor.exec("select * from sys.jobs_log");
assertThat(response.rowCount(), is(0L));
}
@Test
public void testSetSingleStatement() throws Exception {
SQLResponse response = executor.exec("select settings['stats']['jobs_log_size'] from sys.cluster");
assertThat(response.rowCount(), is(1L));
assertThat((Integer) response.rows()[0][0], is(CrateSettings.STATS_JOBS_LOG_SIZE.defaultValue()));
response = executor.exec("set global persistent stats.enabled= true, stats.jobs_log_size=7");
assertThat(response.rowCount(), is(1L));
response = executor.exec("select settings['stats']['jobs_log_size'] from sys.cluster");
assertThat(response.rowCount(), is(1L));
assertThat((Integer) response.rows()[0][0], is(7));
response = executor.exec("reset global stats.enabled, stats.jobs_log_size");
assertThat(response.rowCount(), is(1L));
waitNoPendingTasksOnAll();
response = executor.exec("select settings['stats']['enabled'], settings['stats']['jobs_log_size'] from sys.cluster");
assertThat(response.rowCount(), is(1L));
assertThat((Boolean) response.rows()[0][0], is(CrateSettings.STATS_ENABLED.defaultValue()));
assertThat((Integer) response.rows()[0][1], is(CrateSettings.STATS_JOBS_LOG_SIZE.defaultValue()));
}
@Test
public void testSetMultipleStatement() throws Exception {
SQLResponse response = executor.exec(
"select settings['stats']['operations_log_size'], settings['stats']['enabled'] from sys.cluster");
assertThat(response.rowCount(), is(1L));
assertThat((Integer) response.rows()[0][0], is(CrateSettings.STATS_OPERATIONS_LOG_SIZE.defaultValue()));
assertThat((Boolean) response.rows()[0][1], is(CrateSettings.STATS_ENABLED.defaultValue()));
response = executor.exec("set global persistent stats.operations_log_size=1024, stats.enabled=false");
assertThat(response.rowCount(), is(1L));
response = executor.exec(
"select settings['stats']['operations_log_size'], settings['stats']['enabled'] from sys.cluster");
assertThat(response.rowCount(), is(1L));
assertThat((Integer) response.rows()[0][0], is(1024));
assertThat((Boolean) response.rows()[0][1], is(false));
response = executor.exec("reset global stats.operations_log_size, stats.enabled");
assertThat(response.rowCount(), is(1L));
waitNoPendingTasksOnAll();
response = executor.exec(
"select settings['stats']['operations_log_size'], settings['stats']['enabled'] from sys.cluster");
assertThat(response.rowCount(), is(1L));
assertThat((Integer) response.rows()[0][0], is(CrateSettings.STATS_OPERATIONS_LOG_SIZE.defaultValue()));
assertThat((Boolean) response.rows()[0][1], is(CrateSettings.STATS_ENABLED.defaultValue()));
}
@Test
public void testSetStatementInvalid() throws Exception {
try {
executor.exec("set global persistent stats.operations_log_size=-1024");
fail("expected SQLActionException, none was thrown");
} catch (SQLActionException e) {
assertThat(e.getMessage(), is("Invalid value for argument 'stats.operations_log_size'"));
SQLResponse response = executor.exec("select settings['stats']['operations_log_size'] from sys.cluster");
assertThat(response.rowCount(), is(1L));
assertThat((Integer) response.rows()[0][0], is(CrateSettings.STATS_OPERATIONS_LOG_SIZE.defaultValue()));
}
}
@Test
public void testSysOperationsLog() throws Exception {
executor.exec(
"select count(*), race from characters group by race order by count(*) desc limit 2");
SQLResponse resp = executor.exec("select count(*) from sys.operations_log");
assertThat((Long) resp.rows()[0][0], is(0L));
executor.exec("set global transient stats.enabled = true, stats.operations_log_size=10");
waitNoPendingTasksOnAll();
executor.exec(
"select count(*), race from characters group by race order by count(*) desc limit 2");
resp = executor.exec("select * from sys.operations_log order by ended limit 3");
List<String> names = new ArrayList<>();
for (Object[] objects : resp.rows()) {
names.add((String) objects[2]);
}
assertThat(names, Matchers.anyOf(
Matchers.hasItems("distributing collect", "distributing collect"),
Matchers.hasItems("collect", "localMerge"),
// the select * from sys.operations_log has 2 collect operations (1 per node)
Matchers.hasItems("collect", "collect"),
Matchers.hasItems("distributed merge", "localMerge")));
executor.exec("reset global stats.enabled, stats.operations_log_size");
waitNoPendingTasksOnAll();
resp = executor.exec("select count(*) from sys.operations_log");
assertThat((Long) resp.rows()[0][0], is(0L));
}
@Test
public void testSysOperationsLogConcurrentAccess() throws Exception {
executor.exec("set global transient stats.enabled = true, stats.operations_log_size=10");
waitNoPendingTasksOnAll();
Thread selectThread = new Thread(new Runnable() {
@Override
public void run() {
for (int i=0; i < 50; i++) {
executor.exec(
"select count(*), race from characters group by race order by count(*) desc limit 2");
}
}
});
Thread sysOperationThread = new Thread(new Runnable() {
@Override
public void run() {
for (int i=0; i < 50; i++) {
executor.exec("select * from sys.operations_log order by ended");
}
}
});
selectThread.start();
sysOperationThread.start();
selectThread.join(500);
sysOperationThread.join(500);
}
@Test
public void testEmptyJobsInLog() throws Exception {
executor.exec("set global transient stats.enabled = true");
executor.exec("insert into characters (name) values ('sysjobstest')");
executor.exec("delete from characters where name = 'sysjobstest'");
SQLResponse response = executor.exec(
"select * from sys.jobs_log where stmt like 'insert into%' or stmt like 'delete%'");
assertThat(response.rowCount(), is(2L));
}
@Test
public void testSelectFromJobsLogWithLimit() throws Exception {
// this is an regression test to verify that the CollectionTerminatedException is handled correctly
executor.exec("set global transient stats.enabled = true");
executor.exec("select * from sys.jobs");
executor.exec("select * from sys.jobs");
executor.exec("select * from sys.jobs");
executor.exec("select * from sys.jobs_log limit 1");
}
@Test
public void testAddPrimaryKeyColumnToNonEmptyTable() throws Exception {
expectedException.expect(SQLActionException.class);
expectedException.expectMessage("Cannot add a primary key column to a table that isn't empty");
executor.exec("alter table characters add newpkcol string primary key");
}
@Test
public void testIsNullOnObjects() throws Exception {
SQLResponse resp = executor.exec("select name from characters where details is null order by name");
assertThat(resp.rowCount(), is(5L));
List<String> names = new ArrayList<>(5);
for (Object[] objects : resp.rows()) {
names.add((String) objects[0]);
}
assertThat(names, Matchers.contains("Anjie", "Ford Perfect", "Jeltz", "Kwaltz", "Marving"));
resp = executor.exec("select count(*) from characters where details is not null");
assertThat((Long) resp.rows()[0][0], is(2L));
}
@Test
public void testDistanceQueryOnSysTable() throws Exception {
SQLResponse response = executor.exec(
"select Distance('POINT (10 20)', 'POINT (11 21)') from sys.cluster");
assertThat((Double) response.rows()[0][0], is(152462.70754934277));
}
@Test
public void testCreateTableWithInvalidAnalyzer() throws Exception {
expectedException.expect(SQLActionException.class);
expectedException.expectMessage("Analyzer [foobar] not found for field [content]");
executor.exec("create table t (content string index using fulltext with (analyzer='foobar'))");
}
@Test
public void testSysNodesVersionFromMultipleNodes() throws Exception {
SQLResponse response = executor.exec("select version, version['number'], " +
"version['build_hash'], version['build_snapshot'] " +
"from sys.nodes");
assertThat(response.rowCount(), is(2L));
for (int i = 0; i <= 1; i++) {
assertThat(response.rows()[i][0], instanceOf(Map.class));
assertThat((Map<String, Object>) response.rows()[i][0], allOf(hasKey("number"), hasKey("build_hash"), hasKey("build_snapshot")));
assertThat((String) response.rows()[i][1], Matchers.is(Version.CURRENT.number()));
assertThat((String) response.rows()[i][2], is(Build.CURRENT.hash()));
assertThat((Boolean) response.rows()[i][3], is(Version.CURRENT.snapshot()));
}
}
@Test
public void selectCurrentTimestamp() throws Exception {
long before = System.currentTimeMillis();
SQLResponse response = executor.exec("select current_timestamp from sys.cluster");
long after = System.currentTimeMillis();
assertThat(response.cols(), arrayContaining("current_timestamp"));
assertThat((Long) response.rows()[0][0], allOf(greaterThanOrEqualTo(before), lessThanOrEqualTo(after)));
}
@Test
public void selectWhereEqualCurrentTimestamp() throws Exception {
SQLResponse response = executor.exec("select * from sys.cluster where current_timestamp = current_timestamp");
assertThat(response.rowCount(), is(1L));
SQLResponse newResponse = executor.exec("select * from sys.cluster where current_timestamp > current_timestamp");
assertThat(newResponse.rowCount(), is(0L));
}
}
|
apache-2.0
|
yauritux/venice-legacy
|
Venice/Venice-Web/target/Venice-Web-1.0/Venice/deferredjs/AB044E8946F390304175332DF12BD630/38.cache.js
|
2880
|
function qSc(){}
function sUc(){}
function W6d(){}
function Q6d(){}
function FV(b){b.c.Ze(JN(b.b.b))}
function jJ(b,c,d){return new sSc(b,c,d)}
function Gte(){kse.call(this,(gCe(),eCe))}
function kse(b){this.M=new Object;this.M[Ghf]=zqg;this.M[kRf]=b.b}
function sSc(b,c,d){fY.call(this,b,c);this.d=d;uld(this.j,263).Wc(this);uld(uld(this.j,263).Xc(),3).b=uld(this.d,264).Tc()}
function Y6d(){T6d=new W6d;Vad((Sad(),Rad),38);!!$stats&&$stats(Kbd(Cqg,cif,-1,-1));T6d.Re();!!$stats&&$stats(Kbd(Cqg,$Df,-1,-1))}
function V6d(){var b,d,e;while(R6d){d=$8c;e=R6d;R6d=R6d.c;!R6d&&(S6d=null);if(!d){FV(e.b)}else{try{FV(e.b)}catch(b){b=xVd(b);if(!xld(b,209))throw b}}}}
function JN(b){var c;!b.oc&&(b.oc=(c=jJ((!b.Jc&&(b.Jc=new une),b.Jc),(!b.vc&&(b.vc=new vUc),b.vc),(!b.nc&&(b.nc=new zSc),b.nc),!b.Ic&&(b.Ic=(new lme).df(new Wle,new $le))),c.Pc(),c));return b.oc}
function iSc(){var b,c,d,e,f,g,i;if(gSc){return gSc}else{gSc=new X1c;gSc.se(sqg);c=new Gte;DHe(c.M,xDf,(EUe(),EUe(),DUe));i=new Hte(kRf,QOf);f=new Hte(tqg,aPf);b=new Hte(uqg,N8f);e=new ute(vqg,P8f);g=new ute(wqg,R8f);d=new Hte(eMf,KTf);U1c(gSc,gld(tUd,{272:1,322:1},103,[c,i,f,b,e,g,d]));gSc.re(xqg);s1c(gSc,yqg,DUe,false);return gSc}}
function vUc(){var b,c,d,e,f,g,i,j,k,n;this.b=new s8c;Uub(this.b,gld(ZUd,{272:1,322:1},137,[(b=new ekb,Nhb(b)?(j=b.fd(),j.setProperty(ucf,rcf),undefined):(b.o[ucf]=rcf,undefined),Nhb(b)?(k=b.fd(),k.setProperty(qcf,rcf),undefined):(b.o[qcf]=rcf,undefined),Uhb(b,OFf,(EUe(),EUe(),DUe),true),Nhb(b)?(n=b.fd(),n.setProperty(PFf,0),undefined):(b.o[PFf]=0,undefined),f=new TPe(zqg,llg,100),i=new TPe(kRf,QOf,200),i.M[WEf]=NGe(gld(mVd,{272:1,322:1,323:1},1,[Aqg,Bqg])),d=new TPe(tqg,aPf,400),c=new TPe(vqg,P8f,100),e=new TPe(wqg,R8f,100),g=new SPe(eMf,KTf),Nhb(b)?aib(b,LDf,NGe(gld(cVd,{272:1,322:1},190,[f,i,d,c,e,g]))):(b.o[LDf]=NGe(gld(cVd,{272:1,322:1},190,[f,i,d,c,e,g])),undefined),Uhb(b,QFf,DUe,true),Uhb(b,RFf,DUe,true),Thb(b,JDf,p1c(iSc())),Uhb(b,KDf,DUe,false),Nhb(b)?undefined:(b.o[eZf]=kRf,undefined),Phb(b,(rCe(),oCe)),Uhb(b,SDf,DUe,true),Uhb(b,CQf,DUe,true),b)]))}
var sqg='/assignedtask/tasks/task',Dqg='AssignedTaskPresenter',Eqg='AssignedTaskView',Fqg='AsyncLoader38',Aqg='Human Resources - Recruitment',Bqg='Human Resources - Travel Management',uqg='assignee',xqg='ds/test_data/assignedtask.data.xml',Cqg='runCallbacks38',vqg='taskdate',tqg='taskdesc',wqg='taskduedate',zqg='taskid';var gSc=null;_=sSc.prototype=qSc.prototype=new KX;_.gC=function tSc(){return mId};_.Rc=function uSc(){tne(this.g,this,new sqe((O3c(),M3c),this))};_.cM={87:1,309:1};_=vUc.prototype=sUc.prototype=new vZ;_.Xc=function wUc(){return this.b};_.gC=function xUc(){return DId};_.cM={263:1};_.b=null;_=W6d.prototype=Q6d.prototype=new ZH;_.gC=function X6d(){return HNd};_.Re=function _6d(){V6d()};_.cM={};_=Gte.prototype=Ete.prototype;var mId=VUe(suf,Dqg),DId=VUe(bbg,Eqg),HNd=VUe(wyf,Fqg);$entry(Y6d)();
|
apache-2.0
|
Technofy/cloudwatch_exporter
|
aws.go
|
6778
|
package main
import (
"fmt"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/cloudwatch"
"github.com/prometheus/client_golang/prometheus"
"time"
"regexp"
"strings"
)
func getLatestDatapoint(datapoints []*cloudwatch.Datapoint) *cloudwatch.Datapoint {
var latest *cloudwatch.Datapoint = nil
for dp := range datapoints {
if latest == nil || latest.Timestamp.Before(*datapoints[dp].Timestamp) {
latest = datapoints[dp]
}
}
return latest
}
// scrape makes the required calls to AWS CloudWatch by using the parameters in the cwCollector
// Once converted into Prometheus format, the metrics are pushed on the ch channel.
func scrape(collector *cwCollector, ch chan<- prometheus.Metric) {
session := session.Must(session.NewSession(&aws.Config{
Region: aws.String(collector.Region),
}))
svc := cloudwatch.New(session)
for m := range collector.Template.Metrics {
metric := &collector.Template.Metrics[m]
now := time.Now()
end := now.Add(time.Duration(-metric.ConfMetric.DelaySeconds) * time.Second)
params := &cloudwatch.GetMetricStatisticsInput{
EndTime: aws.Time(end),
StartTime: aws.Time(end.Add(time.Duration(-metric.ConfMetric.RangeSeconds) * time.Second)),
Period: aws.Int64(int64(metric.ConfMetric.PeriodSeconds)),
MetricName: aws.String(metric.ConfMetric.Name),
Namespace: aws.String(metric.ConfMetric.Namespace),
Dimensions: []*cloudwatch.Dimension{},
Unit: nil,
}
dimensions:=[]*cloudwatch.Dimension{}
//This map will hold dimensions name which has been already collected
valueCollected := map[string]bool{}
if len(metric.ConfMetric.DimensionsSelectRegex) == 0 {
metric.ConfMetric.DimensionsSelectRegex = map[string]string{}
}
//Check for dimensions who does not have either select or dimensions select_regex and make them select everything using regex
for _,dimension := range metric.ConfMetric.Dimensions {
_, found := metric.ConfMetric.DimensionsSelect[dimension]
_, found2 := metric.ConfMetric.DimensionsSelectRegex[dimension]
if !found && !found2 {
metric.ConfMetric.DimensionsSelectRegex[dimension]=".*"
}
}
if metric.ConfMetric.Statistics != nil {
params.SetStatistics(aws.StringSlice(metric.ConfMetric.Statistics))
}
if metric.ConfMetric.ExtendedStatistics != nil {
params.SetExtendedStatistics(aws.StringSlice(metric.ConfMetric.ExtendedStatistics))
}
labels := make([]string, 0, len(metric.LabelNames))
// Loop through the dimensions selects to build the filters and the labels array
for dim := range metric.ConfMetric.DimensionsSelect {
for val := range metric.ConfMetric.DimensionsSelect[dim] {
dimValue := metric.ConfMetric.DimensionsSelect[dim][val]
// Replace $_target token by the actual URL target
if dimValue == "$_target" {
dimValue = collector.Target
}
dimensions = append(dimensions, &cloudwatch.Dimension{
Name: aws.String(dim),
Value: aws.String(dimValue),
})
labels = append(labels, dimValue)
}
}
if len(dimensions) > 0 || len(metric.ConfMetric.Dimensions) ==0 {
labels = append(labels, collector.Template.Task.Name)
params.Dimensions=dimensions
scrapeSingleDataPoint(collector,ch,params,metric,labels,svc)
}
//If no regex is specified, continue
if (len(metric.ConfMetric.DimensionsSelectRegex)==0){
continue
}
// Get all the metric to select the ones who'll match the regex
result, err := svc.ListMetrics(&cloudwatch.ListMetricsInput{
MetricName: aws.String(metric.ConfMetric.Name),
Namespace: aws.String(metric.ConfMetric.Namespace),
})
nextToken:=result.NextToken
metrics:=result.Metrics
totalRequests.Inc()
if err != nil {
fmt.Println(err)
continue
}
for nextToken!=nil {
result, err := svc.ListMetrics(&cloudwatch.ListMetricsInput{
MetricName: aws.String(metric.ConfMetric.Name),
Namespace: aws.String(metric.ConfMetric.Namespace),
NextToken: nextToken,
})
if err != nil {
fmt.Println(err)
continue
}
nextToken=result.NextToken
metrics=append(metrics,result.Metrics...)
}
//For each metric returned by aws
for _,met := range result.Metrics {
labels := make([]string, 0, len(metric.LabelNames))
dimensions=[]*cloudwatch.Dimension{}
//Try to match each dimensions to the regex
for _,dim := range met.Dimensions {
dimRegex:=metric.ConfMetric.DimensionsSelectRegex[*dim.Name]
if(dimRegex==""){
dimRegex="\\b"+strings.Join(metric.ConfMetric.DimensionsSelect[*dim.Name],"\\b|\\b")+"\\b"
}
match,_:=regexp.MatchString(dimRegex,*dim.Value)
if match {
dimensions=append(dimensions, &cloudwatch.Dimension{
Name: aws.String(*dim.Name),
Value: aws.String(*dim.Value),
})
labels = append(labels, *dim.Value)
}
}
//Cheking if all dimensions matched
if len(labels) == len(metric.ConfMetric.Dimensions) {
//Checking if this couple of dimensions has already been scraped
if _, ok := valueCollected[strings.Join(labels,";")]; ok {
continue
}
//If no, then scrape them
valueCollected[strings.Join(labels,";")]=true
params.Dimensions = dimensions
labels = append(labels, collector.Template.Task.Name)
scrapeSingleDataPoint(collector,ch,params,metric,labels,svc)
}
}
}
}
//Send a single dataPoint to the Prometheus lib
func scrapeSingleDataPoint(collector *cwCollector, ch chan<- prometheus.Metric,params *cloudwatch.GetMetricStatisticsInput,metric *cwMetric,labels []string,svc *cloudwatch.CloudWatch) error {
resp, err := svc.GetMetricStatistics(params)
totalRequests.Inc()
if err != nil {
collector.ErroneousRequests.Inc()
fmt.Println(err)
return err
}
// There's nothing in there, don't publish the metric
if len(resp.Datapoints) == 0 {
return nil
}
// Pick the latest datapoint
dp := getLatestDatapoint(resp.Datapoints)
if dp.Sum != nil {
ch <- prometheus.MustNewConstMetric(metric.Desc, metric.ValType, float64(*dp.Sum), labels...)
}
if dp.Average != nil {
ch <- prometheus.MustNewConstMetric(metric.Desc, metric.ValType, float64(*dp.Average), labels...)
}
if dp.Maximum != nil {
ch <- prometheus.MustNewConstMetric(metric.Desc, metric.ValType, float64(*dp.Maximum), labels...)
}
if dp.Minimum != nil {
ch <- prometheus.MustNewConstMetric(metric.Desc, metric.ValType, float64(*dp.Minimum), labels...)
}
if dp.SampleCount != nil {
ch <- prometheus.MustNewConstMetric(metric.Desc, metric.ValType, float64(*dp.SampleCount), labels...)
}
for e := range dp.ExtendedStatistics {
ch <- prometheus.MustNewConstMetric(metric.Desc, metric.ValType, float64(*dp.ExtendedStatistics[e]), labels...)
}
return nil
}
|
apache-2.0
|
jackylk/incubator-carbondata
|
processing/src/main/java/org/apache/carbondata/processing/sort/sortdata/SingleThreadFinalSortFilesMerger.java
|
10940
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.carbondata.processing.sort.sortdata;
import java.io.File;
import java.io.FileFilter;
import java.util.AbstractQueue;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.NoSuchElementException;
import java.util.PriorityQueue;
import java.util.concurrent.Callable;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.Future;
import java.util.concurrent.TimeUnit;
import org.apache.carbondata.common.CarbonIterator;
import org.apache.carbondata.common.logging.LogServiceFactory;
import org.apache.carbondata.core.constants.CarbonCommonConstants;
import org.apache.carbondata.core.datastore.block.SegmentProperties;
import org.apache.carbondata.core.datastore.exception.CarbonDataWriterException;
import org.apache.carbondata.core.metadata.datatype.DataType;
import org.apache.carbondata.core.metadata.schema.table.column.CarbonColumn;
import org.apache.carbondata.core.scan.result.iterator.RawResultIterator;
import org.apache.carbondata.core.util.CarbonProperties;
import org.apache.carbondata.processing.loading.row.IntermediateSortTempRow;
import org.apache.carbondata.processing.loading.sort.SortStepRowHandler;
import org.apache.carbondata.processing.sort.exception.CarbonSortKeyAndGroupByException;
import org.apache.log4j.Logger;
public class SingleThreadFinalSortFilesMerger extends CarbonIterator<Object[]> {
/**
* LOGGER
*/
private static final Logger LOGGER =
LogServiceFactory.getLogService(SingleThreadFinalSortFilesMerger.class.getName());
/**
* lockObject
*/
private static final Object LOCKOBJECT = new Object();
/**
* recordHolderHeap
*/
private AbstractQueue<SortTempFileChunkHolder> recordHolderHeapLocal;
/**
* tableName
*/
private String tableName;
private SortParameters sortParameters;
private SortStepRowHandler sortStepRowHandler;
/**
* tempFileLocation
*/
private String[] tempFileLocation;
private int maxThreadForSorting;
private ExecutorService executorService;
private List<Future<Void>> mergerTask;
public SingleThreadFinalSortFilesMerger(String[] tempFileLocation, String tableName,
SortParameters sortParameters) {
this.tempFileLocation = tempFileLocation;
this.tableName = tableName;
this.sortParameters = sortParameters;
this.sortStepRowHandler = new SortStepRowHandler(sortParameters);
try {
maxThreadForSorting = Integer.parseInt(CarbonProperties.getInstance()
.getProperty(CarbonCommonConstants.CARBON_MERGE_SORT_READER_THREAD,
CarbonCommonConstants.CARBON_MERGE_SORT_READER_THREAD_DEFAULTVALUE));
} catch (NumberFormatException e) {
maxThreadForSorting =
Integer.parseInt(CarbonCommonConstants.CARBON_MERGE_SORT_READER_THREAD_DEFAULTVALUE);
}
this.mergerTask = new ArrayList<>();
}
/**
* This method will be used to merger the merged files
*
* @throws CarbonSortKeyAndGroupByException
*/
public void startFinalMerge() throws CarbonDataWriterException {
List<File> filesToMerge = getFilesToMergeSort();
if (filesToMerge.size() == 0) {
LOGGER.info("No file to merge in final merge stage");
return;
}
startSorting(filesToMerge);
}
/**
* Below method will be used to add in memory raw result iterator to priority queue.
* This will be called in case of compaction, when it is compacting sorted and unsorted
* both type of carbon data file
* This method will add sorted file's RawResultIterator to priority queue using
* InMemorySortTempChunkHolder as wrapper
*
* @param sortedRawResultMergerList
* @param segmentProperties
* @param noDicAndComplexColumns
*/
public void addInMemoryRawResultIterator(List<RawResultIterator> sortedRawResultMergerList,
SegmentProperties segmentProperties, CarbonColumn[] noDicAndComplexColumns,
DataType[] measureDataType) {
for (RawResultIterator rawResultIterator : sortedRawResultMergerList) {
InMemorySortTempChunkHolder inMemorySortTempChunkHolder =
new InMemorySortTempChunkHolder(rawResultIterator, segmentProperties,
noDicAndComplexColumns, sortParameters, measureDataType);
if (inMemorySortTempChunkHolder.hasNext()) {
inMemorySortTempChunkHolder.readRow();
recordHolderHeapLocal.add(inMemorySortTempChunkHolder);
}
}
}
private List<File> getFilesToMergeSort() {
final int rangeId = sortParameters.getRangeId();
FileFilter fileFilter = new FileFilter() {
public boolean accept(File pathname) {
return pathname.getName().startsWith(tableName + '_' + rangeId);
}
};
// get all the merged files
List<File> files = new ArrayList<File>(tempFileLocation.length);
for (String tempLoc : tempFileLocation) {
File[] subFiles = new File(tempLoc).listFiles(fileFilter);
if (null != subFiles && subFiles.length > 0) {
files.addAll(Arrays.asList(subFiles));
}
}
return files;
}
/**
* Below method will be used to start storing process This method will get
* all the temp files present in sort temp folder then it will create the
* record holder heap and then it will read first record from each file and
* initialize the heap
*
* @throws CarbonSortKeyAndGroupByException
*/
private void startSorting(List<File> files) throws CarbonDataWriterException {
if (files.size() == 0) {
LOGGER.info("No files to merge sort");
return;
}
LOGGER.info("Started Final Merge");
LOGGER.info("Number of temp file: " + files.size());
// create record holder heap
createRecordHolderQueue(files.size());
// iterate over file list and create chunk holder and add to heap
LOGGER.info("Started adding first record from each file");
this.executorService = Executors.newFixedThreadPool(maxThreadForSorting);
for (final File tempFile : files) {
Callable<Void> callable = new Callable<Void>() {
@Override
public Void call() {
// create chunk holder
SortTempFileChunkHolder sortTempFileChunkHolder =
new SortTempFileChunkHolder(tempFile, sortParameters, tableName, true);
try {
// initialize
sortTempFileChunkHolder.initialize();
sortTempFileChunkHolder.readRow();
} catch (CarbonSortKeyAndGroupByException ex) {
sortTempFileChunkHolder.closeStream();
notifyFailure(ex);
}
synchronized (LOCKOBJECT) {
recordHolderHeapLocal.add(sortTempFileChunkHolder);
}
return null;
}
};
mergerTask.add(executorService.submit(callable));
}
executorService.shutdown();
try {
executorService.awaitTermination(2, TimeUnit.HOURS);
} catch (Exception e) {
throw new CarbonDataWriterException(e);
}
checkFailure();
LOGGER.info("final merger Heap Size" + this.recordHolderHeapLocal.size());
}
private void checkFailure() {
for (int i = 0; i < mergerTask.size(); i++) {
try {
mergerTask.get(i).get();
} catch (InterruptedException | ExecutionException e) {
throw new CarbonDataWriterException(e);
}
}
}
/**
* This method will be used to create the heap which will be used to hold
* the chunk of data
*/
private void createRecordHolderQueue(int size) {
// creating record holder heap
this.recordHolderHeapLocal = new PriorityQueue<SortTempFileChunkHolder>(size);
}
private synchronized void notifyFailure(Throwable throwable) {
close();
LOGGER.error(throwable);
}
/**
* This method will be used to get the sorted sort temp row from the sort temp files
*
* @return sorted row
* @throws CarbonSortKeyAndGroupByException
*/
public Object[] next() {
if (hasNext()) {
IntermediateSortTempRow sortTempRow = getSortedRecordFromFile();
return sortStepRowHandler.convertIntermediateSortTempRowTo3Parted(sortTempRow);
} else {
throw new NoSuchElementException("No more elements to return");
}
}
/**
* This method will be used to get the sorted record from file
*
* @return sorted record sorted record
* @throws CarbonSortKeyAndGroupByException
*/
private IntermediateSortTempRow getSortedRecordFromFile() throws CarbonDataWriterException {
IntermediateSortTempRow row = null;
// poll the top object from heap
// heap maintains binary tree which is based on heap condition that will
// be based on comparator we are passing the heap
// when will call poll it will always delete root of the tree and then
// it does trickel down operation complexity is log(n)
SortTempFileChunkHolder poll = this.recordHolderHeapLocal.poll();
// get the row from chunk
row = poll.getRow();
// check if there no entry present
if (!poll.hasNext()) {
// if chunk is empty then close the stream
poll.closeStream();
// reaturn row
return row;
}
// read new row
try {
poll.readRow();
} catch (CarbonSortKeyAndGroupByException e) {
close();
throw new CarbonDataWriterException(e);
}
// add to heap
this.recordHolderHeapLocal.add(poll);
// return row
return row;
}
/**
* This method will be used to check whether any more element is present or
* not
*
* @return more element is present
*/
public boolean hasNext() {
return this.recordHolderHeapLocal.size() > 0;
}
public void close() {
if (null != executorService && !executorService.isShutdown()) {
executorService.shutdownNow();
}
if (null != recordHolderHeapLocal) {
SortTempFileChunkHolder sortTempFileChunkHolder;
while (!recordHolderHeapLocal.isEmpty()) {
sortTempFileChunkHolder = recordHolderHeapLocal.poll();
if (null != sortTempFileChunkHolder) {
sortTempFileChunkHolder.closeStream();
}
}
}
}
}
|
apache-2.0
|
pyranja/asio
|
integration/src/main/java/at/ac/univie/isc/asio/matcher/SqlResultMatcher.java
|
2993
|
/*
* #%L
* asio integration
* %%
* Copyright (C) 2013 - 2015 Research Group Scientific Computing, University of Vienna
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
package at.ac.univie.isc.asio.matcher;
import at.ac.univie.isc.asio.sql.ConvertToTable;
import com.google.common.base.Charsets;
import com.google.common.base.Throwables;
import com.google.common.collect.Table;
import org.hamcrest.Description;
import org.hamcrest.TypeSafeMatcher;
import javax.sql.rowset.RowSetProvider;
import javax.sql.rowset.WebRowSet;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.sql.SQLException;
abstract class SqlResultMatcher extends TypeSafeMatcher<String> {
static class Csv extends SqlResultMatcher {
Csv(final Table<Integer, String, String> expected) {
super(expected);
}
@Override
protected Table<Integer, String, String> parse(final InputStream data) throws IOException {
return ConvertToTable.fromCsv(data);
}
}
static class Webrowset extends SqlResultMatcher {
Webrowset(final Table<Integer, String, String> expected) {
super(expected);
}
@Override
protected Table<Integer, String, String> parse(final InputStream data) throws IOException, SQLException {
final WebRowSet webRowSet = RowSetProvider.newFactory().createWebRowSet();
webRowSet.readXml(data);
return ConvertToTable.fromResultSet(webRowSet);
}
}
private final Table<Integer, String, String> expected;
SqlResultMatcher(final Table<Integer, String, String> expected) {
this.expected = expected;
}
protected abstract Table<Integer, String, String> parse(final InputStream data) throws Exception;
@Override
protected boolean matchesSafely(final String item) {
return expected.equals(doConvert(item));
}
@Override
public void describeTo(final Description description) {
description.appendText(" sql result-set containing ").appendValue(expected);
}
@Override
protected void describeMismatchSafely(final String item, final Description mismatchDescription) {
mismatchDescription.appendText("was ").appendValue(doConvert(item));
}
private Table<Integer, String, String> doConvert(final String item) {
try {
final ByteArrayInputStream raw = new ByteArrayInputStream(item.getBytes(Charsets.UTF_8));
return parse(raw);
} catch (Exception e) {
throw Throwables.propagate(e);
}
}
}
|
apache-2.0
|
dagnir/aws-sdk-java
|
aws-java-sdk-api-gateway/src/main/java/com/amazonaws/services/apigateway/internal/AcceptJsonRequestHandler.java
|
1404
|
/*
* Copyright 2011-2017 Amazon.com, Inc. or its affiliates. All Rights
* Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
package com.amazonaws.services.apigateway.internal;
import com.amazonaws.Request;
import com.amazonaws.Response;
import com.amazonaws.handlers.RequestHandler2;
import java.util.Map;
public final class AcceptJsonRequestHandler extends RequestHandler2 {
@Override
public void beforeRequest(Request<?> request) {
// Some operations marshall to this header, so don't clobber if it exists
if (!request.getHeaders().containsKey("Accept")) {
request.addHeader("Accept", "application/json");
}
}
@Override
public void afterResponse(Request<?> request, Response<?> response) {
// No-op.
}
@Override
public void afterError(
Request<?> request,
Response<?> response,
Exception e) {
// No-op.
}
}
|
apache-2.0
|
hukewei/leapband
|
src/fr/utc/leapband/view/InstrumentSelectView.java
|
2477
|
package fr.utc.leapband.view;
import jade.gui.GuiEvent;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Font;
import java.beans.PropertyChangeEvent;
import java.io.File;
import javax.swing.Icon;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.SwingConstants;
import fr.utc.leapband.sma.user.UserAgent;
import fr.utc.leapband.utilities.Constance;
import fr.utc.leapband.utilities.ImageFlowItem;
@SuppressWarnings("serial")
public class InstrumentSelectView extends JAgentFrame{
private ImageFlow imageFlow = null;
private JButton home;
public InstrumentSelectView(UserAgent agent) {
super(agent);
this.setTitle("ChooseView");
this.setSize(Constance.Windows_width, Constance.Windows_height);
this.setDefaultCloseOperation(EXIT_ON_CLOSE);
JPanel imageFlowPanel=new JPanel(new BorderLayout());
imageFlowPanel.setBackground(new Color(110, 110, 110));
home = new JButton();
Icon icon = new ImageIcon("images/home.png");
home.setBounds(0,0,100,100);
home.setIcon(icon);
imageFlowPanel.add(home);
JLabel choose=new JLabel("Choose your instrument");
choose.setBounds(500, 10, 500, 200);
choose.setFont(new Font("Chalkboard", Font.PLAIN, 40));
choose.setHorizontalAlignment(SwingConstants.CENTER);
choose.setForeground(Color.ORANGE);
imageFlowPanel.add(choose);
imageFlow = new ImageFlow(new File("images/instrument/"),agent);
imageFlowPanel.add(imageFlow);
this.add(imageFlowPanel);
home.addMouseListener(new HomeMouseListener(this,home));
home.setContentAreaFilled(false);
home.setOpaque(false);
home.setBorderPainted(false);
}
@Override
public void propertyChange(PropertyChangeEvent evt) {
super.propertyChange(evt);
if (isVisible()) {
if (evt.getPropertyName().equals("swipe")) {
if ((String)evt.getNewValue() == "LEFT") {
imageFlow.scrollAndAnimateBy(-1);
} else if ((String)evt.getNewValue() == "RIGHT") {
imageFlow.scrollAndAnimateBy(1);
} else if ((String)evt.getNewValue() == "GRAB" && imageFlow.getSelectedIndex() != 2) {
GuiEvent ev = new GuiEvent(this,UserAgent.SELECT_INSTRUMENT_EVENT);
ev.addParameter(UserAgent.instrument_Mode);
ev.addParameter(((ImageFlowItem)imageFlow.getSelectedValue()).getLabel());
myAgent.postGuiEvent(ev);
}
}
}
}
}
|
apache-2.0
|
google/google-authenticator-libpam
|
src/util.c
|
1428
|
/*
* Copyright 2017 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*
* An earlier version of this file was originally released into the public
* domain by its authors. It has been modified to make the code compile and
* link as part of the Google Authenticator project. These changes are
* copyrighted by Google Inc. and released under the Apache License,
* Version 2.0.
*
* The previous authors' terms are included below:
*/
/*****************************************************************************
*
* File: util.c
*
* Purpose: Collection of cross file utility functions.
*
* This code is in the public domain
*
*****************************************************************************
*/
#include "config.h"
#include <string.h>
#ifndef HAVE_EXPLICIT_BZERO
void
explicit_bzero(void *s, size_t len)
{
memset(s, '\0', len);
asm volatile ("":::"memory");
}
#endif
|
apache-2.0
|
weijiancai/metaui
|
core/src/test/java/com/meteorite/core/datasource/DataSourceManagerTest.java
|
166
|
package com.meteorite.core.datasource;
import org.junit.Test;
public class DataSourceManagerTest {
@Test
public void testExp() throws Exception {
}
}
|
apache-2.0
|
wildfly-swarm/wildfly-swarm-javadocs
|
2018.1.0/apidocs/org/wildfly/swarm/config/elytron/class-use/ServerSslContext.html
|
15423
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_151) on Mon Jan 15 08:36:51 MST 2018 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Uses of Class org.wildfly.swarm.config.elytron.ServerSslContext (BOM: * : All 2018.1.0 API)</title>
<meta name="date" content="2018-01-15">
<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Uses of Class org.wildfly.swarm.config.elytron.ServerSslContext (BOM: * : All 2018.1.0 API)";
}
}
catch(err) {
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../../overview-summary.html">Overview</a></li>
<li><a href="../package-summary.html">Package</a></li>
<li><a href="../../../../../../org/wildfly/swarm/config/elytron/ServerSslContext.html" title="class in org.wildfly.swarm.config.elytron">Class</a></li>
<li class="navBarCell1Rev">Use</li>
<li><a href="../../../../../../overview-tree.html">Tree</a></li>
<li><a href="../../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../../help-doc.html">Help</a></li>
</ul>
<div class="aboutLanguage">WildFly Swarm API, 2018.1.0</div>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev</li>
<li>Next</li>
</ul>
<ul class="navList">
<li><a href="../../../../../../index.html?org/wildfly/swarm/config/elytron/class-use/ServerSslContext.html" target="_top">Frames</a></li>
<li><a href="ServerSslContext.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<div class="header">
<h2 title="Uses of Class org.wildfly.swarm.config.elytron.ServerSslContext" class="title">Uses of Class<br>org.wildfly.swarm.config.elytron.ServerSslContext</h2>
</div>
<div class="classUseContainer">
<ul class="blockList">
<li class="blockList">
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing packages, and an explanation">
<caption><span>Packages that use <a href="../../../../../../org/wildfly/swarm/config/elytron/ServerSslContext.html" title="class in org.wildfly.swarm.config.elytron">ServerSslContext</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Package</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><a href="#org.wildfly.swarm.config">org.wildfly.swarm.config</a></td>
<td class="colLast"> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="#org.wildfly.swarm.config.elytron">org.wildfly.swarm.config.elytron</a></td>
<td class="colLast"> </td>
</tr>
</tbody>
</table>
</li>
<li class="blockList">
<ul class="blockList">
<li class="blockList"><a name="org.wildfly.swarm.config">
<!-- -->
</a>
<h3>Uses of <a href="../../../../../../org/wildfly/swarm/config/elytron/ServerSslContext.html" title="class in org.wildfly.swarm.config.elytron">ServerSslContext</a> in <a href="../../../../../../org/wildfly/swarm/config/package-summary.html">org.wildfly.swarm.config</a></h3>
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation">
<caption><span>Methods in <a href="../../../../../../org/wildfly/swarm/config/package-summary.html">org.wildfly.swarm.config</a> that return <a href="../../../../../../org/wildfly/swarm/config/elytron/ServerSslContext.html" title="class in org.wildfly.swarm.config.elytron">ServerSslContext</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../../org/wildfly/swarm/config/elytron/ServerSslContext.html" title="class in org.wildfly.swarm.config.elytron">ServerSslContext</a></code></td>
<td class="colLast"><span class="typeNameLabel">Elytron.ElytronResources.</span><code><span class="memberNameLink"><a href="../../../../../../org/wildfly/swarm/config/Elytron.ElytronResources.html#serverSslContext-java.lang.String-">serverSslContext</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key)</code> </td>
</tr>
</tbody>
</table>
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation">
<caption><span>Methods in <a href="../../../../../../org/wildfly/swarm/config/package-summary.html">org.wildfly.swarm.config</a> that return types with arguments of type <a href="../../../../../../org/wildfly/swarm/config/elytron/ServerSslContext.html" title="class in org.wildfly.swarm.config.elytron">ServerSslContext</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../../../org/wildfly/swarm/config/elytron/ServerSslContext.html" title="class in org.wildfly.swarm.config.elytron">ServerSslContext</a>></code></td>
<td class="colLast"><span class="typeNameLabel">Elytron.ElytronResources.</span><code><span class="memberNameLink"><a href="../../../../../../org/wildfly/swarm/config/Elytron.ElytronResources.html#serverSslContexts--">serverSslContexts</a></span>()</code>
<div class="block">Get the list of ServerSslContext resources</div>
</td>
</tr>
</tbody>
</table>
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation">
<caption><span>Methods in <a href="../../../../../../org/wildfly/swarm/config/package-summary.html">org.wildfly.swarm.config</a> with parameters of type <a href="../../../../../../org/wildfly/swarm/config/elytron/ServerSslContext.html" title="class in org.wildfly.swarm.config.elytron">ServerSslContext</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../../org/wildfly/swarm/config/Elytron.html" title="type parameter in Elytron">T</a></code></td>
<td class="colLast"><span class="typeNameLabel">Elytron.</span><code><span class="memberNameLink"><a href="../../../../../../org/wildfly/swarm/config/Elytron.html#serverSslContext-org.wildfly.swarm.config.elytron.ServerSslContext-">serverSslContext</a></span>(<a href="../../../../../../org/wildfly/swarm/config/elytron/ServerSslContext.html" title="class in org.wildfly.swarm.config.elytron">ServerSslContext</a> value)</code>
<div class="block">Add the ServerSslContext object to the list of subresources</div>
</td>
</tr>
</tbody>
</table>
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation">
<caption><span>Method parameters in <a href="../../../../../../org/wildfly/swarm/config/package-summary.html">org.wildfly.swarm.config</a> with type arguments of type <a href="../../../../../../org/wildfly/swarm/config/elytron/ServerSslContext.html" title="class in org.wildfly.swarm.config.elytron">ServerSslContext</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../../org/wildfly/swarm/config/Elytron.html" title="type parameter in Elytron">T</a></code></td>
<td class="colLast"><span class="typeNameLabel">Elytron.</span><code><span class="memberNameLink"><a href="../../../../../../org/wildfly/swarm/config/Elytron.html#serverSslContexts-java.util.List-">serverSslContexts</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../../../org/wildfly/swarm/config/elytron/ServerSslContext.html" title="class in org.wildfly.swarm.config.elytron">ServerSslContext</a>> value)</code>
<div class="block">Add all ServerSslContext objects to this subresource</div>
</td>
</tr>
</tbody>
</table>
</li>
<li class="blockList"><a name="org.wildfly.swarm.config.elytron">
<!-- -->
</a>
<h3>Uses of <a href="../../../../../../org/wildfly/swarm/config/elytron/ServerSslContext.html" title="class in org.wildfly.swarm.config.elytron">ServerSslContext</a> in <a href="../../../../../../org/wildfly/swarm/config/elytron/package-summary.html">org.wildfly.swarm.config.elytron</a></h3>
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation">
<caption><span>Classes in <a href="../../../../../../org/wildfly/swarm/config/elytron/package-summary.html">org.wildfly.swarm.config.elytron</a> with type parameters of type <a href="../../../../../../org/wildfly/swarm/config/elytron/ServerSslContext.html" title="class in org.wildfly.swarm.config.elytron">ServerSslContext</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Class and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code>class </code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/wildfly/swarm/config/elytron/ServerSslContext.html" title="class in org.wildfly.swarm.config.elytron">ServerSslContext</a><T extends <a href="../../../../../../org/wildfly/swarm/config/elytron/ServerSslContext.html" title="class in org.wildfly.swarm.config.elytron">ServerSslContext</a><T>></span></code>
<div class="block">An SSLContext for use on the server side of a connection.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/wildfly/swarm/config/elytron/ServerSslContextConsumer.html" title="interface in org.wildfly.swarm.config.elytron">ServerSslContextConsumer</a><T extends <a href="../../../../../../org/wildfly/swarm/config/elytron/ServerSslContext.html" title="class in org.wildfly.swarm.config.elytron">ServerSslContext</a><T>></span></code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/wildfly/swarm/config/elytron/ServerSslContextSupplier.html" title="interface in org.wildfly.swarm.config.elytron">ServerSslContextSupplier</a><T extends <a href="../../../../../../org/wildfly/swarm/config/elytron/ServerSslContext.html" title="class in org.wildfly.swarm.config.elytron">ServerSslContext</a>></span></code> </td>
</tr>
</tbody>
</table>
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation">
<caption><span>Methods in <a href="../../../../../../org/wildfly/swarm/config/elytron/package-summary.html">org.wildfly.swarm.config.elytron</a> that return <a href="../../../../../../org/wildfly/swarm/config/elytron/ServerSslContext.html" title="class in org.wildfly.swarm.config.elytron">ServerSslContext</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../../org/wildfly/swarm/config/elytron/ServerSslContext.html" title="class in org.wildfly.swarm.config.elytron">ServerSslContext</a></code></td>
<td class="colLast"><span class="typeNameLabel">ServerSslContextSupplier.</span><code><span class="memberNameLink"><a href="../../../../../../org/wildfly/swarm/config/elytron/ServerSslContextSupplier.html#get--">get</a></span>()</code>
<div class="block">Constructed instance of ServerSslContext resource</div>
</td>
</tr>
</tbody>
</table>
</li>
</ul>
</li>
</ul>
</div>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../../overview-summary.html">Overview</a></li>
<li><a href="../package-summary.html">Package</a></li>
<li><a href="../../../../../../org/wildfly/swarm/config/elytron/ServerSslContext.html" title="class in org.wildfly.swarm.config.elytron">Class</a></li>
<li class="navBarCell1Rev">Use</li>
<li><a href="../../../../../../overview-tree.html">Tree</a></li>
<li><a href="../../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../../help-doc.html">Help</a></li>
</ul>
<div class="aboutLanguage">WildFly Swarm API, 2018.1.0</div>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev</li>
<li>Next</li>
</ul>
<ul class="navList">
<li><a href="../../../../../../index.html?org/wildfly/swarm/config/elytron/class-use/ServerSslContext.html" target="_top">Frames</a></li>
<li><a href="ServerSslContext.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small>Copyright © 2018 <a href="http://www.jboss.org">JBoss by Red Hat</a>. All rights reserved.</small></p>
</body>
</html>
|
apache-2.0
|
sebingel/sharpchievements
|
Achievements/AchievementConditionCompletedHandler.cs
|
938
|
//Copyright 2015 Sebastian Bingel
//Licensed under the Apache License, Version 2.0 (the "License");
//you may not use this file except in compliance with the License.
//You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
//Unless required by applicable law or agreed to in writing, software
//distributed under the License is distributed on an "AS IS" BASIS,
//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
//See the License for the specific language governing permissions and
//limitations under the License.
namespace sebingel.sharpchievements
{
/// <summary>
/// Delegate for the event that is fired when an AchievementCondition is completed
/// </summary>
/// <param name="achievementCondition">The completed AchievementCondition</param>
public delegate void AchievementConditionCompletedHandler(IAchievementCondition achievementCondition);
}
|
apache-2.0
|
mdoering/backbone
|
life/Plantae/Magnoliophyta/Magnoliopsida/Caryophyllales/Caryophyllaceae/Dianthus/Dianthus impunctatus/README.md
|
176
|
# Dianthus impunctatus Jord. SPECIES
#### Status
ACCEPTED
#### According to
International Plant Names Index
#### Published in
null
#### Original name
null
### Remarks
null
|
apache-2.0
|
resin-io-library/base-images
|
balena-base-images/golang/am571x-evm/debian/bookworm/1.17.7/build/Dockerfile
|
2032
|
# AUTOGENERATED FILE
FROM balenalib/am571x-evm-debian:bookworm-build
ENV GO_VERSION 1.17.7
RUN mkdir -p /usr/local/go \
&& curl -SLO "http://resin-packages.s3.amazonaws.com/golang/v$GO_VERSION/go$GO_VERSION.linux-armv7hf.tar.gz" \
&& echo "e4f33e7e78f96024d30ff6bf8d2b86329fc04df1b411a8bd30a82dbe60f408ba go$GO_VERSION.linux-armv7hf.tar.gz" | sha256sum -c - \
&& tar -xzf "go$GO_VERSION.linux-armv7hf.tar.gz" -C /usr/local/go --strip-components=1 \
&& rm -f go$GO_VERSION.linux-armv7hf.tar.gz
ENV GOROOT /usr/local/go
ENV GOPATH /go
ENV PATH $GOPATH/bin:/usr/local/go/bin:$PATH
RUN mkdir -p "$GOPATH/src" "$GOPATH/bin" && chmod -R 777 "$GOPATH"
WORKDIR $GOPATH
CMD ["echo","'No CMD command was set in Dockerfile! Details about CMD command could be found in Dockerfile Guide section in our Docs. Here's the link: https://balena.io/docs"]
RUN curl -SLO "https://raw.githubusercontent.com/balena-io-library/base-images/613d8e9ca8540f29a43fddf658db56a8d826fffe/scripts/assets/tests/[email protected]" \
&& echo "Running test-stack@golang" \
&& chmod +x [email protected] \
&& bash [email protected] \
&& rm -rf [email protected]
RUN [ ! -d /.balena/messages ] && mkdir -p /.balena/messages; echo 'Here are a few details about this Docker image (For more information please visit https://www.balena.io/docs/reference/base-images/base-images/): \nArchitecture: ARM v7 \nOS: Debian Bookworm \nVariant: build variant \nDefault variable(s): UDEV=off \nThe following software stack is preinstalled: \nGo v1.17.7 \nExtra features: \n- Easy way to install packages with `install_packages <package-name>` command \n- Run anywhere with cross-build feature (for ARM only) \n- Keep the container idling with `balena-idle` command \n- Show base image details with `balena-info` command' > /.balena/messages/image-info
RUN echo '#!/bin/sh.real\nbalena-info\nrm -f /bin/sh\ncp /bin/sh.real /bin/sh\n/bin/sh "$@"' > /bin/sh-shim \
&& chmod +x /bin/sh-shim \
&& cp /bin/sh /bin/sh.real \
&& mv /bin/sh-shim /bin/sh
|
apache-2.0
|
Juchar/product-tour
|
product-tour-addon/src/main/java/org/vaadin/addons/producttour/button/StepButtonEvent.java
|
1731
|
package org.vaadin.addons.producttour.button;
import com.vaadin.event.ConnectorEvent;
import org.vaadin.addons.producttour.provider.StepButtonProvider;
import org.vaadin.addons.producttour.provider.StepProvider;
import org.vaadin.addons.producttour.provider.TourProvider;
import org.vaadin.addons.producttour.step.Step;
import org.vaadin.addons.producttour.tour.Tour;
/**
* Base class for all events that were caused by a {@link StepButton}.
*/
public class StepButtonEvent extends ConnectorEvent implements TourProvider, StepProvider,
StepButtonProvider {
/**
* Construct a new provider.
*
* @param source
* The source of the provider
*/
public StepButtonEvent(StepButton source) {
super(source);
}
/**
* Shortcut method to get the tour of the provider.
*
* @return The tour or <code>null</code> if the button that caused the provider is not attached to
* any step that is attached to a tour.
*/
@Override
public Tour getTour() {
Step step = getStep();
return step != null ? step.getTour() : null;
}
/**
* Shortcut method to get the step of the provider.
*
* @return The step or <code>null</code> if the button that caused the provider is not attached to
* any step.
*/
@Override
public Step getStep() {
StepButton button = getStepButton();
return button != null ? button.getStep() : null;
}
/**
* Get the button that is the source of the provider.
*
* @return The button that caused the provider
*/
@Override
public StepButton getStepButton() {
return (StepButton) getSource();
}
}
|
apache-2.0
|
oshingc/Hygieia
|
collectors/performance/ca-apm-collector/src/main/java/metricgrouping/webservicesapi/server/introscope/wily/com/MetricExpression.java
|
3790
|
/**
* MetricExpression.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
*/
package metricgrouping.webservicesapi.server.introscope.wily.com;
@SuppressWarnings("PMD")
public class MetricExpression implements java.io.Serializable {
private java.lang.String metricExpression;
public MetricExpression() {
}
public MetricExpression(
java.lang.String metricExpression) {
this.metricExpression = metricExpression;
}
/**
* Gets the metricExpression value for this MetricExpression.
*
* @return metricExpression
*/
public java.lang.String getMetricExpression() {
return metricExpression;
}
/**
* Sets the metricExpression value for this MetricExpression.
*
* @param metricExpression
*/
public void setMetricExpression(java.lang.String metricExpression) {
this.metricExpression = metricExpression;
}
private java.lang.Object __equalsCalc = null;
public synchronized boolean equals(java.lang.Object obj) {
if (!(obj instanceof MetricExpression)) return false;
MetricExpression other = (MetricExpression) obj;
if (obj == null) return false;
if (this == obj) return true;
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = true &&
((this.metricExpression==null && other.getMetricExpression()==null) ||
(this.metricExpression!=null &&
this.metricExpression.equals(other.getMetricExpression())));
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = 1;
if (getMetricExpression() != null) {
_hashCode += getMetricExpression().hashCode();
}
__hashCodeCalc = false;
return _hashCode;
}
// Type metadata
private static org.apache.axis.description.TypeDesc typeDesc =
new org.apache.axis.description.TypeDesc(MetricExpression.class, true);
static {
typeDesc.setXmlType(new javax.xml.namespace.QName("urn:com.wily.introscope.server.webservicesapi.metricgrouping", "MetricExpression"));
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("metricExpression");
elemField.setXmlName(new javax.xml.namespace.QName("", "metricExpression"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
elemField.setNillable(true);
typeDesc.addFieldDesc(elemField);
}
/**
* Return type metadata object
*/
public static org.apache.axis.description.TypeDesc getTypeDesc() {
return typeDesc;
}
/**
* Get Custom Serializer
*/
public static org.apache.axis.encoding.Serializer getSerializer(
java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanSerializer(
_javaType, _xmlType, typeDesc);
}
/**
* Get Custom Deserializer
*/
public static org.apache.axis.encoding.Deserializer getDeserializer(
java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanDeserializer(
_javaType, _xmlType, typeDesc);
}
}
|
apache-2.0
|
drthomas21/WordPress_Tutorial
|
community_htdocs/vendor/s9e/text-formatter/src/Configurator/JavaScript/Minifier.php
|
1018
|
<?php
/*
* @package s9e\TextFormatter
* @copyright Copyright (c) 2010-2019 The s9e Authors
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
*/
namespace s9e\TextFormatter\Configurator\JavaScript;
use Exception;
abstract class Minifier
{
public $cacheDir;
public $keepGoing = \false;
abstract public function minify($src);
public function get($src)
{
try
{
return (isset($this->cacheDir)) ? $this->getFromCache($src) : $this->minify($src);
}
catch (Exception $e)
{
if (!$this->keepGoing)
throw $e;
}
return $src;
}
public function getCacheDifferentiator()
{
return '';
}
protected function getFromCache($src)
{
$differentiator = $this->getCacheDifferentiator();
$key = \sha1(\serialize([\get_class($this), $differentiator, $src]));
$cacheFile = $this->cacheDir . '/minifier.' . $key . '.js';
if (!\file_exists($cacheFile))
\file_put_contents($cacheFile, $this->minify($src));
return \file_get_contents($cacheFile);
}
}
|
apache-2.0
|
arpan-chavda/my_google_scripts
|
file_cleaner.js
|
736
|
function removeFile() {
var sheet = SpreadsheetApp.getActiveSheet(); //Activate sheet
var tno = sheet.getRange('C1').getValues();
var file_name = 'Current Test Buffer-'+tno+'.zip';
var folder = DriveApp.getFolderById('0B5Sb6IOPwl52flVvMXg4dGJuVVdCYl9fNk1MNlBzazBMdk1IZ3BiWkJRR05TNXFZWUtYV3M');
var file1 = DriveApp.getFilesByName(file_name).next();
//File removal code start
var files = folder.getFiles();
var name = folder.getName();
while ( files.hasNext() ) {
var file = files.next();
folder.removeFile(file);
}
//File removal code ended
var tlatest = Number(tno)+1;//Counter++ for test series number //Logger.log(tlatest);
SpreadsheetApp.getActiveSheet().getRange('C1').setValue(tlatest);
}
|
apache-2.0
|
LutherW/MTMS
|
Source/DTcms.Web/admin/Transport/goods_edit.aspx.cs
|
4623
|
using System;
using System.Data;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DTcms.Common;
namespace DTcms.Web.admin.Transport
{
public partial class goods_edit : Web.UI.ManagePage
{
string defaultpassword = "0|0|0|0"; //默认显示密码
protected string action = DTEnums.ActionEnum.Add.ToString(); //操作类型
private int id = 0;
protected void Page_Load(object sender, EventArgs e)
{
string _action = DTRequest.GetQueryString("action");
if (!string.IsNullOrEmpty(_action) && _action == DTEnums.ActionEnum.Edit.ToString())
{
this.action = DTEnums.ActionEnum.Edit.ToString();//修改类型
this.id = DTRequest.GetQueryInt("id");
if (this.id == 0)
{
JscriptMsg("传输参数不正确!", "back", "Error");
return;
}
if (!new BLL.Goods().Exists(this.id))
{
JscriptMsg("信息不存在或已被删除!", "back", "Error");
return;
}
}
if (!Page.IsPostBack)
{
ChkAdminLevel("goods_list", DTEnums.ActionEnum.View.ToString()); //检查权限
TreeBind(""); //绑定类别
if (action == DTEnums.ActionEnum.Edit.ToString()) //修改
{
ShowInfo(this.id);
}
}
}
#region 绑定类别=================================
private void TreeBind(string strWhere)
{
}
#endregion
#region 赋值操作=================================
private void ShowInfo(int _id)
{
BLL.Goods bll = new BLL.Goods();
Model.Goods model = bll.GetModel(_id);
txtName.Text = model.Name;
txtCategroy.Text = model.CategoryName;
txtCode.Text = model.Code;
txtUnit.Text = model.Unit;
}
#endregion
#region 增加操作=================================
private bool DoAdd()
{
bool result = false;
Model.Goods model = new Model.Goods();
BLL.Goods bll = new BLL.Goods();
model.Name = txtName.Text.Trim();
model.CategoryName = txtCategroy.Text.Trim();
model.Code = string.IsNullOrEmpty(txtCode.Text.Trim()) ? "" : txtCode.Text.Trim();
model.Unit = txtUnit.Text.Trim();
if (bll.Add(model) > 0)
{
AddAdminLog(DTEnums.ActionEnum.Add.ToString(), "添加客户:" + model.Name); //记录日志
result = true;
}
return result;
}
#endregion
#region 修改操作=================================
private bool DoEdit(int _id)
{
bool result = false;
BLL.Goods bll = new BLL.Goods();
Model.Goods model = bll.GetModel(_id);
model.Name = txtName.Text.Trim();
model.CategoryName = txtCategroy.Text.Trim();
model.Code = string.IsNullOrEmpty(txtCode.Text.Trim()) ? "" : txtCode.Text.Trim();
model.Unit = txtUnit.Text.Trim();
if (bll.Update(model))
{
AddAdminLog(DTEnums.ActionEnum.Edit.ToString(), "修改客户信息:" + model.Name); //记录日志
result = true;
}
return result;
}
#endregion
//保存
protected void btnSubmit_Click(object sender, EventArgs e)
{
if (action == DTEnums.ActionEnum.Edit.ToString()) //修改
{
ChkAdminLevel("goods_list", DTEnums.ActionEnum.Edit.ToString()); //检查权限
if (!DoEdit(this.id))
{
JscriptMsg("保存过程中发生错误!", "", "Error");
return;
}
JscriptMsg("修改客户成功!", "goods_list.aspx", "Success");
}
else //添加
{
ChkAdminLevel("goods_list", DTEnums.ActionEnum.Add.ToString()); //检查权限
if (!DoAdd())
{
JscriptMsg("保存过程中发生错误!", "", "Error");
return;
}
JscriptMsg("添加客户成功!", "goods_list.aspx", "Success");
}
}
}
}
|
apache-2.0
|
nbauernfeind/xmpp-alert
|
readme.md
|
647
|
# A command line tool to send XMPP IMs.
This github repository contains a tool that can be run to send IMs.
Usage:
```bash
java -jar xmpp-alert.jar alert npc-cred.yml -Ddw.user=alertedUser -Ddw.msg="Hello There"
```
Sample Config (`npc-cred.yml`):
```yml
talk:
host: talk.google.com
serviceName: gmail.com # The domain of the user account if using gtalk.
port: 5222
user: alert-bot # Do not include the @domain portion of user.
password: MY_PASSWORD # This is not really my password.
user: [email protected]
msg: Hello Person.
```
Note the `-Ddw.user` and `-Ddw.msg` flags overwrite what exists in the config file.
|
apache-2.0
|
mdoering/backbone
|
life/Fungi/Ascomycota/Lecanoromycetes/Pertusariales/Pertusariaceae/Pertusaria/Pertusaria aberrans/README.md
|
245
|
# Pertusaria aberrans Müll. Arg. SPECIES
#### Status
ACCEPTED
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
Bull. Herb. Boissier 1: 42 (1893)
#### Original name
Pertusaria aberrans Müll. Arg.
### Remarks
null
|
apache-2.0
|
adobe-research/spark-cluster-deployment
|
initial-deployment-puppet/modules/spark/files/spark/examples/src/main/scala/org/apache/spark/examples/HdfsTest.scala
|
1383
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.spark.examples
import org.apache.spark._
object HdfsTest {
def main(args: Array[String]) {
val sparkConf = new SparkConf().setAppName("HdfsTest")
val sc = new SparkContext(sparkConf)
val file = sc.textFile(args(1))
val mapped = file.map(s => s.length).cache()
for (iter <- 1 to 10) {
val start = System.currentTimeMillis()
for (x <- mapped) { x + 2 }
// println("Processing: " + x)
val end = System.currentTimeMillis()
println("Iteration " + iter + " took " + (end-start) + " ms")
}
sc.stop()
}
}
|
apache-2.0
|
GeekyAnts/native-base-docs
|
_book/docs/components/card/CardShowcase.md
|
4091
|
##card-showcase-headref
#### Card Showcase
Card Showcase is further customization of Card Image. It uses several different items.
* Begins with the Card List component, which is similar to our List Avatar.
* Make use of Left, Body and Right components to align the content of your Card header.
* To mixup Image with other NativeBase components in a single CardItem, include the content within Body component.


*Syntax*
{% codetabs name="React Native", type="js" -%}
import React, { Component } from 'react';
import { Image } from 'react-native';
import { Container, Header, Content, Card, CardItem, Thumbnail, Text, Button, Icon, Left, Body } from 'native-base';
export default class CardShowcaseExample extends Component {
render() {
return (
<Container>
<Header />
<Content>
{% raw %}<Card style={{flex: 0}}>{% endraw %}
<CardItem>
<Left>
{% raw %}<Thumbnail source={{uri: 'Image URL'}} />{% endraw %}
<Body>
<Text>NativeBase</Text>
<Text note>April 15, 2016</Text>
</Body>
</Left>
</CardItem>
<CardItem>
<Body>
{% raw %}<Image source={{uri: 'Image URL'}} style={{height: 200, width: 200, flex: 1}}/>{% endraw %}
<Text>
//Your text here
</Text>
</Body>
</CardItem>
<CardItem>
<Left>
{% raw %}<Button transparent textStyle={{color: '#87838B'}}>{% endraw %}
<Icon name="logo-github" />
<Text>1,926 stars</Text>
</Button>
</Left>
</CardItem>
</Card>
</Content>
</Container>
);
}
}
{%- language name="Vue Native", type="vue" -%}
<template>
<nb-container>
<nb-header />
<nb-content padder>
<nb-card>
<nb-card-item bordered>
<nb-left>
<nb-thumbnail :source="logo"></nb-thumbnail>
<nb-body>
<nb-text>NativeBase</nb-text>
<nb-text note>April 20, 2018</nb-text>
</nb-body>
</nb-left>
</nb-card-item>
<nb-card-item>
<nb-body>
<image :source="cardImage" class="card-item-image" :style="stylesObj.cardItemImage"/>
<nb-text>//Your text here</nb-text>
</nb-body>
</nb-card-item>
<nb-card-item :style="{ paddingVertical: 0 }">
<nb-left>
<nb-button transparent>
<nb-icon name="logo-github"></nb-icon>
<nb-text>8000 stars</nb-text>
</nb-button>
</nb-left>
</nb-card-item>
</nb-card>
</nb-content>
</nb-container>
</template>
<script>
import { Dimensions } from "react-native";
import logo from "logo.png";
import cardImage from "drawer-cover.png";
const deviceWidth = Dimensions.get("window").width;
export default {
data: function() {
return {
logo,
cardImage,
stylesObj: {
cardItemImage: {
resizeMode: "cover",
width: deviceWidth / 1.18
}
}
};
}
};
</script>
<style>
.card-item-image {
align-self: center;
height: 150;
margin-vertical: 5;
}
</style>
{%- endcodetabs %}
<p>
<div id="" class="mobileDevice" style="background: url("https://docs-v2.nativebase.io/docs/assets/iosphone.png") no-repeat; padding: 63px 20px 100px 15px; width: 292px; height: 600px;margin:0 auto;float:none;">
<img src="https://github.com/GeekyAnts/NativeBase-KitchenSink/raw/v2.6.1/screenshots/ios/card-showcase.png" alt="" style="display:block !important" />
</div>
</p>
<br />
|
apache-2.0
|
taliesins/talifun-web
|
src/Talifun.Crusher.Tests/Properties/AssemblyInfo.cs
|
1418
|
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Talifun.Crusher.Tests")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Talifun.Crusher.Tests")]
[assembly: AssemblyCopyright("Copyright © 2013")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("71da7afe-736d-4fe5-b5e7-a78d02301585")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
|
apache-2.0
|
wildfly-swarm/wildfly-swarm-javadocs
|
2012.12.0/apidocs/org/wildfly/swarm/config/WebservicesSupplier.html
|
8971
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_151) on Tue Dec 12 12:37:10 MST 2017 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>WebservicesSupplier (BOM: * : All 2012.12.0 API)</title>
<meta name="date" content="2017-12-12">
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="WebservicesSupplier (BOM: * : All 2012.12.0 API)";
}
}
catch(err) {
}
//-->
var methods = {"i0":6};
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],4:["t3","Abstract Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/WebservicesSupplier.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-all.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
<div class="aboutLanguage">WildFly Swarm API, 2012.12.0</div>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../org/wildfly/swarm/config/WebservicesConsumer.html" title="interface in org.wildfly.swarm.config"><span class="typeNameLink">Prev Class</span></a></li>
<li><a href="../../../../org/wildfly/swarm/config/Weld.html" title="class in org.wildfly.swarm.config"><span class="typeNameLink">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?org/wildfly/swarm/config/WebservicesSupplier.html" target="_top">Frames</a></li>
<li><a href="WebservicesSupplier.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary: </li>
<li>Nested | </li>
<li>Field | </li>
<li>Constr | </li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail: </li>
<li>Field | </li>
<li>Constr | </li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">org.wildfly.swarm.config</div>
<h2 title="Interface WebservicesSupplier" class="title">Interface WebservicesSupplier<T extends <a href="../../../../org/wildfly/swarm/config/Webservices.html" title="class in org.wildfly.swarm.config">Webservices</a>></h2>
</div>
<div class="contentContainer">
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>Functional Interface:</dt>
<dd>This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.</dd>
</dl>
<hr>
<br>
<pre><a href="http://docs.oracle.com/javase/8/docs/api/java/lang/FunctionalInterface.html?is-external=true" title="class or interface in java.lang">@FunctionalInterface</a>
public interface <span class="typeNameLabel">WebservicesSupplier<T extends <a href="../../../../org/wildfly/swarm/config/Webservices.html" title="class in org.wildfly.swarm.config">Webservices</a>></span></pre>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method.summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t3" class="tableTab"><span><a href="javascript:show(4);">Abstract Methods</a></span><span class="tabEnd"> </span></span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code><a href="../../../../org/wildfly/swarm/config/Webservices.html" title="class in org.wildfly.swarm.config">Webservices</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/wildfly/swarm/config/WebservicesSupplier.html#get--">get</a></span>()</code>
<div class="block">Constructed instance of Webservices resource</div>
</td>
</tr>
</table>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="get--">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>get</h4>
<pre><a href="../../../../org/wildfly/swarm/config/Webservices.html" title="class in org.wildfly.swarm.config">Webservices</a> get()</pre>
<div class="block">Constructed instance of Webservices resource</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The instance</dd>
</dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/WebservicesSupplier.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-all.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
<div class="aboutLanguage">WildFly Swarm API, 2012.12.0</div>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../org/wildfly/swarm/config/WebservicesConsumer.html" title="interface in org.wildfly.swarm.config"><span class="typeNameLink">Prev Class</span></a></li>
<li><a href="../../../../org/wildfly/swarm/config/Weld.html" title="class in org.wildfly.swarm.config"><span class="typeNameLink">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?org/wildfly/swarm/config/WebservicesSupplier.html" target="_top">Frames</a></li>
<li><a href="WebservicesSupplier.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary: </li>
<li>Nested | </li>
<li>Field | </li>
<li>Constr | </li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail: </li>
<li>Field | </li>
<li>Constr | </li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small>Copyright © 2017 <a href="http://www.jboss.org">JBoss by Red Hat</a>. All rights reserved.</small></p>
</body>
</html>
|
apache-2.0
|
ethz-asl/ros_vrpn_client
|
src/test/library/test_helper_library.cpp
|
2913
|
#include "test_helper_library.h"
void euler2quat(double roll, double pitch, double yaw, double* q) {
// Compute quaternion
Eigen::Quaterniond q_ = Eigen::AngleAxisd(yaw, Eigen::Vector3d::UnitZ()) *
Eigen::AngleAxisd(pitch, Eigen::Vector3d::UnitY()) *
Eigen::AngleAxisd(roll, Eigen::Vector3d::UnitX());
// Writing quaternion components to array output
q[0] = q_.w();
q[1] = q_.x();
q[2] = q_.y();
q[3] = q_.z();
}
void calculate3dRmsError(double truth[][3], double est[][3],
const int trajectory_length, const int start_index,
double* error) {
// Looping over trajectories summing squared errors
double error_sum[3] = {0.0, 0.0, 0.0};
for (int i = start_index; i < trajectory_length; i++) {
error_sum[0] += pow(truth[i][0] - est[i][0], 2);
error_sum[1] += pow(truth[i][1] - est[i][1], 2);
error_sum[2] += pow(truth[i][2] - est[i][2], 2);
}
// Averaging
int num_samples = trajectory_length - start_index + 1;
error_sum[0] /= num_samples;
error_sum[1] /= num_samples;
error_sum[2] /= num_samples;
// Square rooting to obtain RMS
error[0] = sqrt(error_sum[0]);
error[1] = sqrt(error_sum[1]);
error[2] = sqrt(error_sum[2]);
}
void calculateQuaternionRmsError(double truth[][4], double est[][4],
const int trajectory_length,
const int start_index, double* error) {
// Generating the error trajectory
double error_trajectory[trajectory_length][3];
for (int i = 0; i < trajectory_length; i++) {
// Turning vectors into quaternions
Eigen::Quaterniond orientation_truth(truth[i][0], truth[i][1], truth[i][2],
truth[i][3]);
Eigen::Quaterniond orientation_estimate(est[i][0], est[i][1], est[i][2],
est[i][3]);
// Calculating the error quaternion
Eigen::Quaterniond error_quaternion =
orientation_estimate.inverse() * orientation_truth;
// Extracting the three meaningful components of the error quaternion
error_trajectory[i][0] = error_quaternion.x();
error_trajectory[i][1] = error_quaternion.y();
error_trajectory[i][2] = error_quaternion.z();
}
// Looping over trajectories summing squared errors
double error_sum[3] = {0.0, 0.0, 0.0};
for (int i = start_index; i < trajectory_length; i++) {
error_sum[0] += pow(error_trajectory[i][0], 2);
error_sum[1] += pow(error_trajectory[i][1], 2);
error_sum[2] += pow(error_trajectory[i][2], 2);
}
// Averaging
int num_samples = trajectory_length - start_index + 1;
error_sum[0] /= num_samples;
error_sum[1] /= num_samples;
error_sum[2] /= num_samples;
// Square rooting to obtain RMS
error[0] = sqrt(error_sum[0]);
error[1] = sqrt(error_sum[1]);
error[2] = sqrt(error_sum[2]);
}
|
apache-2.0
|
DataTorrent/malhar-angular-dashboard
|
src/components/directives/dashboard/dashboard.js
|
10601
|
/*
* Copyright (c) 2014 DataTorrent, Inc. ALL Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
'use strict';
angular.module('ui.dashboard', ['ui.bootstrap', 'ui.sortable']);
angular.module('ui.dashboard')
.directive('dashboard', ['WidgetModel', 'WidgetDefCollection', '$uibModal', 'DashboardState', '$log', function (WidgetModel, WidgetDefCollection, $uibModal, DashboardState, $log) {
return {
restrict: 'A',
templateUrl: function(element, attr) {
return attr.templateUrl ? attr.templateUrl : 'components/directives/dashboard/dashboard.html';
},
scope: true,
controller: ['$scope', '$attrs', function (scope, attrs) {
// default options
var defaults = {
stringifyStorage: true,
hideWidgetSettings: false,
hideWidgetClose: false,
settingsModalOptions: {
templateUrl: 'components/directives/dashboard/widget-settings-template.html',
controller: 'WidgetSettingsCtrl'
},
onSettingsClose: function(result, widget) { // NOTE: dashboard scope is also passed as 3rd argument
jQuery.extend(true, widget, result);
},
onSettingsDismiss: function(reason) { // NOTE: dashboard scope is also passed as 2nd argument
$log.info('widget settings were dismissed. Reason: ', reason);
}
};
// from dashboard="options"
scope.options = scope.$eval(attrs.dashboard);
// Ensure settingsModalOptions exists on scope.options
scope.options.settingsModalOptions = scope.options.settingsModalOptions !== undefined ? scope.options.settingsModalOptions : {};
// Set defaults
_.defaults(scope.options.settingsModalOptions, defaults.settingsModalOptions);
// Shallow options
_.defaults(scope.options, defaults);
// sortable options
var sortableDefaults = {
stop: function () {
scope.saveDashboard();
},
handle: '.widget-header',
distance: 5
};
scope.sortableOptions = angular.extend({}, sortableDefaults, scope.options.sortableOptions || {});
}],
link: function (scope) {
// Save default widget config for reset
scope.defaultWidgets = scope.options.defaultWidgets;
scope.widgetDefs = new WidgetDefCollection(scope.options.widgetDefinitions);
var count = 1;
// Instantiate new instance of dashboard state
scope.dashboardState = new DashboardState(
scope.options.storage,
scope.options.storageId,
scope.options.storageHash,
scope.widgetDefs,
scope.options.stringifyStorage
);
function getWidget(widgetToInstantiate) {
if (typeof widgetToInstantiate === 'string') {
widgetToInstantiate = {
name: widgetToInstantiate
};
}
var defaultWidgetDefinition = scope.widgetDefs.getByName(widgetToInstantiate.name);
if (!defaultWidgetDefinition) {
throw 'Widget ' + widgetToInstantiate.name + ' is not found.';
}
// Determine the title for the new widget
var title;
if (!widgetToInstantiate.title && !defaultWidgetDefinition.title) {
widgetToInstantiate.title = 'Widget ' + count++;
}
// Instantiation
return new WidgetModel(defaultWidgetDefinition, widgetToInstantiate);
}
/**
* Instantiates a new widget and append it the dashboard
* @param {Object} widgetToInstantiate The definition object of the widget to be instantiated
*/
scope.addWidget = function (widgetToInstantiate, doNotSave) {
var widget = getWidget(widgetToInstantiate);
// Add to the widgets array
scope.widgets.push(widget);
if (!doNotSave) {
scope.saveDashboard();
}
return widget;
};
/**
* Instantiates a new widget and insert it a beginning of dashboard
*/
scope.prependWidget = function(widgetToInstantiate, doNotSave) {
var widget = getWidget(widgetToInstantiate);
// Add to the widgets array
scope.widgets.unshift(widget);
if (!doNotSave) {
scope.saveDashboard();
}
return widget;
};
/**
* Removes a widget instance from the dashboard
* @param {Object} widget The widget instance object (not a definition object)
*/
scope.removeWidget = function (widget) {
scope.widgets.splice(_.indexOf(scope.widgets, widget), 1);
scope.saveDashboard();
};
/**
* Opens a dialog for setting and changing widget properties
* @param {Object} widget The widget instance object
*/
scope.openWidgetSettings = function (widget) {
// Set up $uibModal options
var options = _.defaults(
{ scope: scope },
widget.settingsModalOptions,
scope.options.settingsModalOptions);
// Ensure widget is resolved
options.resolve = {
widget: function () {
return widget;
}
};
// Create the modal
var modalInstance = $uibModal.open(options);
var onClose = widget.onSettingsClose || scope.options.onSettingsClose;
var onDismiss = widget.onSettingsDismiss || scope.options.onSettingsDismiss;
// Set resolve and reject callbacks for the result promise
modalInstance.result.then(
function (result) {
// Call the close callback
onClose(result, widget, scope);
//AW Persist title change from options editor
scope.$emit('widgetChanged', widget);
},
function (reason) {
// Call the dismiss callback
onDismiss(reason, scope);
}
);
};
/**
* Remove all widget instances from dashboard
*/
scope.clear = function (doNotSave) {
scope.widgets = [];
if (doNotSave === true) {
return;
}
scope.saveDashboard();
};
/**
* Used for preventing default on click event
* @param {Object} event A click event
* @param {Object} widgetDef A widget definition object
*/
scope.addWidgetInternal = function (event, widgetDef) {
event.preventDefault();
scope.addWidget(widgetDef);
};
/**
* Uses dashboardState service to save state
*/
scope.saveDashboard = function (force) {
if (!scope.options.explicitSave) {
return scope.dashboardState.save(scope.widgets);
} else {
if (!angular.isNumber(scope.options.unsavedChangeCount)) {
scope.options.unsavedChangeCount = 0;
}
if (force) {
scope.options.unsavedChangeCount = 0;
return scope.dashboardState.save(scope.widgets);
} else {
++scope.options.unsavedChangeCount;
}
}
};
/**
* Wraps saveDashboard for external use.
*/
scope.externalSaveDashboard = function(force) {
if (angular.isDefined(force)) {
return scope.saveDashboard(force);
} else {
return scope.saveDashboard(true);
}
};
/**
* Clears current dash and instantiates widget definitions
* @param {Array} widgets Array of definition objects
*/
scope.loadWidgets = function (widgets) {
// AW dashboards are continuously saved today (no "save" button).
//scope.defaultWidgets = widgets;
scope.savedWidgetDefs = widgets;
scope.clear(true);
_.each(widgets, function (widgetDef) {
scope.addWidget(widgetDef, true);
});
};
/**
* Resets widget instances to default config
* @return {[type]} [description]
*/
scope.resetWidgetsToDefault = function () {
scope.loadWidgets(scope.defaultWidgets);
scope.saveDashboard();
};
// Set default widgets array
var savedWidgetDefs = scope.dashboardState.load();
// Success handler
function handleStateLoad(saved) {
scope.options.unsavedChangeCount = 0;
if (saved && saved.length) {
scope.loadWidgets(saved);
} else if (scope.defaultWidgets) {
scope.loadWidgets(scope.defaultWidgets);
} else {
scope.clear(true);
}
}
if (angular.isArray(savedWidgetDefs)) {
handleStateLoad(savedWidgetDefs);
} else if (savedWidgetDefs && angular.isObject(savedWidgetDefs) && angular.isFunction(savedWidgetDefs.then)) {
savedWidgetDefs.then(handleStateLoad, handleStateLoad);
} else {
handleStateLoad();
}
// expose functionality externally
// functions are appended to the provided dashboard options
scope.options.addWidget = scope.addWidget;
scope.options.prependWidget = scope.prependWidget;
scope.options.loadWidgets = scope.loadWidgets;
scope.options.saveDashboard = scope.externalSaveDashboard;
scope.options.removeWidget = scope.removeWidget;
scope.options.openWidgetSettings = scope.openWidgetSettings;
scope.options.clear = scope.clear;
scope.options.resetWidgetsToDefault = scope.resetWidgetsToDefault;
scope.options.currentWidgets = scope.widgets;
// save state
scope.$on('widgetChanged', function (event) {
event.stopPropagation();
scope.saveDashboard();
});
}
};
}]);
|
apache-2.0
|
gentics/mesh
|
core/src/main/java/com/gentics/mesh/core/endpoint/admin/ShutdownHandler.java
|
1369
|
package com.gentics.mesh.core.endpoint.admin;
import java.util.concurrent.TimeUnit;
import javax.inject.Inject;
import com.gentics.mesh.cli.BootstrapInitializer;
import com.gentics.mesh.context.InternalActionContext;
import com.gentics.mesh.core.rest.common.GenericMessageResponse;
import io.netty.handler.codec.http.HttpResponseStatus;
import io.reactivex.Completable;
import io.reactivex.schedulers.Schedulers;
import io.vertx.core.logging.Logger;
import io.vertx.core.logging.LoggerFactory;
/**
* Handler for the shutdown endpoint.
*/
public class ShutdownHandler {
private static final Logger log = LoggerFactory.getLogger(ShutdownHandler.class);
private final BootstrapInitializer boot;
@Inject
public ShutdownHandler(BootstrapInitializer boot) {
this.boot = boot;
}
/**
* Invoke the shutdown process.
*
* @param context
*/
public void shutdown(InternalActionContext context) {
log.info("Initiating shutdown");
context.send(new GenericMessageResponse("Shutdown initiated"), HttpResponseStatus.OK);
Completable.fromAction(() -> {
boot.mesh().shutdownAndTerminate(1);
})
.subscribeOn(Schedulers.newThread()).timeout(1, TimeUnit.MINUTES)
.subscribe(() -> log.info("Shutdown successful"), err -> {
log.error("Shutdown failed", err);
log.error("Forcing process exit");
Runtime.getRuntime().halt(1);
});
}
}
|
apache-2.0
|
londoncalling/docker.github.io
|
engine/reference/commandline/image_save.md
|
473
|
---
datafolder: engine-cli
datafile: docker_image_save
title: docker image save
redirect_from:
- /edge/engine/reference/commandline/image_save/
---
<!--
Sorry, but the contents of this page are automatically generated from
Docker's source code. If you want to suggest a change to the text that appears
here, you'll need to find the string by searching this repo:
https://github.com/docker/cli
-->
{% include cli.md datafolder=page.datafolder datafile=page.datafile %}
|
apache-2.0
|
ProxyApp/Proxy
|
Application/src/main/java/com/shareyourproxy/api/domain/model/User.java
|
5970
|
package com.shareyourproxy.api.domain.model;
import android.os.Parcelable;
import android.support.annotation.Nullable;
import com.shareyourproxy.api.domain.factory.AutoValueClass;
import java.util.HashMap;
import java.util.HashSet;
import auto.parcel.AutoParcel;
import static com.shareyourproxy.util.ObjectUtils.buildFullName;
/**
* Users have a basic profile that contains their specific {@link Channel}s, {@link Contact}s, and {@link Group}s.
*/
@AutoParcel
@AutoValueClass(autoValueClass = AutoParcel_User.class)
public abstract class User implements Parcelable {
/**
* User Constructor.
*
* @param id user unique ID
* @param firstName user first name
* @param lastName user last name
* @param email user email
* @param profileURL user profile picture
* @param coverURL user cover image
* @param channels user channels
* @param groups user contactGroups
* @param contacts user contacts
* @param version user apk version
* @return the entered user data
*/
public static User create(
String id, String firstName, String lastName, String email, String profileURL,
String coverURL, HashMap<String, Channel> channels, HashMap<String, Group> groups,
HashSet<String> contacts, int version) {
String fullName = buildFullName(firstName, lastName);
return builder().id(id).first(firstName).last(lastName).fullName(fullName).email(email)
.profileURL(profileURL).coverURL(coverURL).channels(channels)
.groups(groups).contacts(contacts).version(version).build();
}
/**
* User builder.
*
* @return this User.
*/
public static Builder builder() {
return new AutoParcel_User.Builder();
}
/**
* Get users unique ID.
*
* @return first name
*/
public abstract String id();
/**
* Get users first name.
*
* @return first name
*/
public abstract String first();
/**
* Get users last name.
*
* @return last name
*/
@Nullable
public abstract String last();
/**
* Get users first + " " + last.
*
* @return last name
*/
public abstract String fullName();
/**
* Get users email.
*
* @return email
*/
@Nullable
public abstract String email();
/**
* Get user profile image.
*
* @return profile image
*/
@Nullable
public abstract String profileURL();
/**
* Get user profile image.
*
* @return profile image
*/
@Nullable
public abstract String coverURL();
/**
* Get users channels.
*
* @return channels
*/
@Nullable
public abstract HashMap<String, Channel> channels();
/**
* Get users contacts.
*
* @return contacts
*/
@Nullable
public abstract HashSet<String> contacts();
/**
* Get users contactGroups.
*
* @return contactGroups
*/
@Nullable
public abstract HashMap<String, Group> groups();
/**
* Get users apk version
*
* @return apk code
*/
@Nullable
public abstract Integer version();
/**
* Validation conditions.
*/
@AutoParcel.Validate
public void validate() {
if (first().length() == 0) {
throw new IllegalStateException("Need a valid first name");
}
}
/**
* User Builder.
*/
@AutoParcel.Builder
public interface Builder {
/**
* Set user id.
*
* @param id user unique id
* @return user id
*/
Builder id(String id);
/**
* Set user first name.
*
* @param firstName user first name
* @return first name string
*/
Builder first(String firstName);
/**
* Set users last name.
*
* @param lastName user last name
* @return last name string
*/
@Nullable
Builder last(String lastName);
/**
* Set users first + last.
*
* @param fullName user first + last
* @return last name string
*/
Builder fullName(String fullName);
/**
* Set user email.
*
* @param email this email
* @return email string
*/
@Nullable
Builder email(String email);
/**
* Set the user profile image URL.
*
* @param profileURL profile image url
* @return URL string
*/
@Nullable
Builder profileURL(String profileURL);
/**
* Set the user profile image URL.
*
* @param coverURL profile cover url
* @return URL string
*/
@Nullable
Builder coverURL(String coverURL);
/**
* Set this {@link User}s {@link Contact}s
*
* @param contacts user contacts
* @return List {@link Contact}
*/
@Nullable
Builder contacts(HashSet<String> contacts);
/**
* Set this {@link User}s {@link Group}s
*
* @param groups user contactGroups
* @return List {@link Group}
*/
@Nullable
Builder groups(HashMap<String, Group> groups);
/**
* Set this {@link User}s {@link Channel}s
*
* @param channels user channels
* @return List {@link Channel}
*/
@Nullable
Builder channels(HashMap<String, Channel> channels);
/**
* Set this users apk version
*
* @param version user apk version
* @return version of build
*/
@Nullable
Builder version(Integer version);
/**
* BUILD.
*
* @return User
*/
User build();
}
}
|
apache-2.0
|
mdoering/backbone
|
life/Plantae/Magnoliophyta/Magnoliopsida/Vitales/Vitaceae/Vitis/Vitis amurensis/Vitis amurensis yanshanensis/README.md
|
235
|
# Vitis amurensis var. yanshanensis D.Z.Lu & H.P.Liang VARIETY
#### Status
ACCEPTED
#### According to
International Plant Names Index
#### Published in
J. Beijing Forest. Univ. 15:134. 1993
#### Original name
null
### Remarks
null
|
apache-2.0
|
Legioth/vaadin
|
uitest/src/main/java/com/vaadin/tests/components/tree/PreselectedTreeVisible.java
|
773
|
package com.vaadin.tests.components.tree;
import com.vaadin.tests.components.TestBase;
import com.vaadin.v7.ui.Tree;
@SuppressWarnings("serial")
public class PreselectedTreeVisible extends TestBase {
@Override
protected void setup() {
String itemId1 = "Item 1";
String itemId2 = "Item 2";
Tree tree = new Tree();
tree.addItem(itemId1);
tree.addItem(itemId2);
// Removing this line causes the tree to show normally in Firefox
tree.select(itemId1);
addComponent(tree);
}
@Override
protected String getDescription() {
return "Tree should be visible when a item has been selected.";
}
@Override
protected Integer getTicketNumber() {
return 5396;
}
}
|
apache-2.0
|
alexeremeev/aeremeev
|
chapter_007/src/main/java/ru/job4j/synchronize/UserStorage.java
|
2810
|
package ru.job4j.synchronize;
import net.jcip.annotations.GuardedBy;
import net.jcip.annotations.ThreadSafe;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* Хранилище User.
*/
@ThreadSafe
public class UserStorage {
/**
* Карта для хранения User.
*/
private Map<Integer, User> storage = new HashMap<>();
/**
* Добавить User.
* @param user User.
* @return true, если добавлен.
*/
@GuardedBy("this")
public synchronized boolean add(User user) {
boolean result = false;
if (!storage.containsKey(user.getId())) {
storage.put(user.getId(), user);
result = true;
}
return result;
}
/**
* Обновить User.
* @param user User.
* @return true, если найден и обновлен.
*/
@GuardedBy("this")
public synchronized boolean update(User user) {
boolean result = false;
if (storage.containsKey(user.getId())) {
storage.put(user.getId(), user);
result = true;
}
return result;
}
/**
* Удалить User.
* @param user User.
* @return true, если найден и удален.
*/
@GuardedBy("this")
public synchronized boolean delete(User user) {
boolean result = false;
if (storage.containsKey(user.getId())) {
storage.remove(user.getId());
result = true;
}
return result;
}
/**
* Перевести сумму между User.
* @param fromId ID отправителя.
* @param toId ID получателя.
* @param amount сумма.
* @return true, если успешно выполнено.
*/
@GuardedBy("this")
public synchronized boolean transfer(int fromId, int toId, int amount) {
boolean result = false;
if (storage.containsKey(fromId) && storage.containsKey(toId)) {
if (storage.get(fromId).getAmount() > amount) {
int temp = storage.get(fromId).getAmount();
storage.replace(fromId, new User(fromId, temp - amount));
temp = storage.get(toId).getAmount();
storage.replace(toId, new User(toId, temp + amount));
result = true;
}
}
return result;
}
/**
* Получить список всех пользователей в UserStorage.
* @return список всех пользователей в UserStorage.
*/
@GuardedBy("this")
public synchronized List<User> getUsers() {
List<User> users = new ArrayList<User>(storage.values());
return users;
}
}
|
apache-2.0
|
michaelWagner/oppia
|
core/templates/dev/head/pages/exploration_player/exploration_footer_directive.html
|
4947
|
<script type="text/ng-template" id="components/explorationFooter">
<div class="footer navbar-fixed-bottom oppia-exploration-footer">
<div class="row">
<div class="col-sm-5">
<ul class="author-profile">
<li>
<img ng-src="<[getStaticImageUrl('/general/apple.svg')]>" class="exploration-footer-img"
ng-if="contributorNames.length > 0">
</li>
<li class="hover-link"
ng-mouseenter="hovering = true"
ng-mouseleave="hovering = false">
<div class="dropup" ng-class="{'open':hovering}">
<a id="dropdownMenu2" class="dropdown-toggle" ng-class="{'hovered-text':hovering}"
data-toggle="dropdown" ng-if="contributorNames.length > 0">
<h4 translate="I18N_FOOTER_AUTHOR_PROFILES" class="author-profile-text"
ng-class="{'hovered-text':hovering, 'not-hovered' : !hovering}"></h4>
</a>
<ul class="author-profile-dropdown-menu dropdown-menu" aria-labelledby="dropdownMenu2" role="menu">
<li ng-repeat="name in contributorNames | limitTo: 5">
<a href="/profile/<[name]>" target="_blank"><[name]></a>
</li>
</ul>
</div>
</li>
<li></li>
</ul>
</div>
<div class="col-sm-7">
<div class="pull-right">
<ul class="author-profile">
<li>
<h4 translate="I18N_PLAYER_SHARE_THIS_EXPLORATION" class="oppia-share-exploration-footer"></h4>
</li>
<li>
<sharing-links ng-if="explorationStatus !== 'private'"
ng-click="$event.stopPropagation()"
twitter-text="getTwitterText()"
exploration-id="explorationId"
layout-type="row"
class="oppia-exploration-footer-sharing-links">
</sharing-links>
</li>
</ul>
</div>
</div>
</div>
</div>
</script>
<style>
.oppia-exploration-footer {
background-color: #094142;
color: #FFF;
font-family: "Capriola", "Roboto", Arial, sans-serif;
font-size: 13px;
height: 42px;
line-height: 0;
margin-top: 30px;
width: 100%;
}
.oppia-exploration-footer .exploration-footer-img {
height: 60px;
margin: -25px 0 0 10px;
width: 60px;
}
.oppia-exploration-footer .author-profile {
color: #fff;
list-style-type: none;
padding-left: 0;
}
.oppia-exploration-footer .author-profile a:hover {
text-decoration: none;
}
.author-profile li {
float: left;
}
.oppia-exploration-footer .author-profile .hover-link {
background-color: #094142;
width: 190px;
}
.oppia-exploration-footer .author-profile.hovered-text h4 {
color: #094142;
}
.oppia-exploration-footer .author-profile .hover-link:hover,
.oppia-exploration-footer .author-profile .hover-link:focus {
background-color: #fff;
color: #094142;
}
.oppia-exploration-footer .dropdown-menu.author-profile-dropdown-menu {
border: none;
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
box-shadow: 0 -6px 12px rgba(0, 0, 0, 0.176);
float: left;
list-style-type: none;
margin:0 0 16px 0;
}
.oppia-exploration-footer .author-profile-dropdown-menu li {
color: #094142;
float: none;
text-overflow: clip;
white-space: nowrap;
width: 100%;
}
.oppia-exploration-footer .author-profile-dropdown-menu li > a {
color: #094142;
padding: 3px 6px;
}
.oppia-exploration-footer .author-profile-dropdown-menu li a:hover {
background-color: #eee;
color: #888;
}
.oppia-exploration-footer .author-profile-text {
cursor: default;
line-height: 0.6;
padding-left: 6px;
text-overflow: clip;
white-space: nowrap;
}
.oppia-exploration-footer .author-profile-text.not-hovered {
color: #fff;
text-transform: uppercase;
}
.oppia-exploration-footer .author-profile-text.hovered-text {
color: #094142;
text-decoration: none;
text-transform: uppercase;
}
.oppia-exploration-footer .oppia-share-exploration-footer {
line-height: 0.6;
padding-right: 20px;
text-transform: uppercase;
}
.oppia-exploration-footer .oppia-exploration-footer-container {
max-width: 800px;
}
.oppia-exploration-footer .oppia-exploration-footer-sharing-links ul {
display: block;
float: right;
padding-right: 20px;
margin: -8px;
}
.oppia-exploration-footer .oppia-exploration-footer-sharing-links li {
float: left;
}
@media (max-width: 475px) {
.oppia-exploration-footer-sharing-links {
display: none;
}
}
@media (max-width: 658px) {
.oppia-share-exploration-footer {
display: none;
}
}
</style>
|
apache-2.0
|
phunt/zkexamples
|
src/test_session_expiration/TestSessionExpiration.java
|
3492
|
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test_session_expiration;
import org.apache.zookeeper.KeeperException;
import org.apache.zookeeper.ZooKeeper;
import common.CountdownWatcher;
public class TestSessionExpiration {
public static void main(String[] args) throws Exception {
System.out.println("Starting zk1");
// Open a client connection - zk1
CountdownWatcher watch1 = new CountdownWatcher("zk1");
ZooKeeper zk1 = new ZooKeeper(args[0], 10000, watch1);
watch1.waitForConnected(10000);
zk1.getData("/", false, null);
System.out.println("Starting zk2");
// now attach a second client zk2 with the same sessionid/passwd
CountdownWatcher watch2 = new CountdownWatcher("zk2");
ZooKeeper zk2 = new ZooKeeper(args[0], 10000, watch2,
zk1.getSessionId(), zk1.getSessionPasswd());
watch2.waitForConnected(10000);
// close the second client, the session is now invalid
System.out.println("Closing zk2");
zk2.close();
System.out.println("Attempting use of zk1");
try {
// this will throw session expired exception
zk1.getData("/", false, null);
} catch (KeeperException.SessionExpiredException e) {
System.out.println("Got session expired on zk1!");
return;
}
// 3.2.0 and later:
// There's a gotcha though - In version 3.2.0 and later if you
// run this on against a quorum (vs standalone) you may get a
// KeeperException.SessionMovedException instead. This is
// thrown if a client moved from one server to a second, but
// then attempts to talk to the first server (should never
// happen, but could in certain bad situations), this example
// simulates that situation in the sense that the client with
// session id zk1.getSessionId() has moved
//
// One way around session moved on a quorum is to have each
// client connect to the same, single server in the cluster
// (so pass a single host:port rather than a list). This
// will ensure that you get the session expiration, and
// not session moved exception.
//
// Again, if you run against standalone server you won't see
// this. If you run against a server version 3.1.x or earlier
// you won't see this.
// If you run against quorum you need to easily determine which
// server zk1 is attached to - we are adding this capability
// in 3.3.0 - and have zk2 attach to that same server.
System.err.println("Oops, this should NOT have happened!");
}
}
|
apache-2.0
|
PI-Victor/origin
|
pkg/configconversion/legacyconfig_conversion.go
|
5292
|
package configconversion
import (
"net"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/runtime/serializer"
utilruntime "k8s.io/apimachinery/pkg/util/runtime"
configv1 "github.com/openshift/api/config/v1"
kubecontrolplanev1 "github.com/openshift/api/kubecontrolplane/v1"
legacyconfigv1 "github.com/openshift/api/legacyconfig/v1"
externaliprangerv1 "github.com/openshift/origin/pkg/service/admission/apis/externalipranger/v1"
restrictedendpointsv1 "github.com/openshift/origin/pkg/service/admission/apis/restrictedendpoints/v1"
)
func convertNetworkConfigToAdmissionConfig(masterConfig *legacyconfigv1.MasterConfig) error {
if masterConfig.AdmissionConfig.PluginConfig == nil {
masterConfig.AdmissionConfig.PluginConfig = map[string]*legacyconfigv1.AdmissionPluginConfig{}
}
scheme := runtime.NewScheme()
utilruntime.Must(externaliprangerv1.InstallLegacy(scheme))
utilruntime.Must(restrictedendpointsv1.InstallLegacy(scheme))
codecs := serializer.NewCodecFactory(scheme)
encoder := codecs.LegacyCodec(externaliprangerv1.SchemeGroupVersion, restrictedendpointsv1.SchemeGroupVersion)
// convert the networkconfig to admissionconfig
var restricted []string
restricted = append(restricted, masterConfig.NetworkConfig.ServiceNetworkCIDR)
for _, cidr := range masterConfig.NetworkConfig.ClusterNetworks {
restricted = append(restricted, cidr.CIDR)
}
restrictedEndpointConfig := &restrictedendpointsv1.RestrictedEndpointsAdmissionConfig{
RestrictedCIDRs: restricted,
}
restrictedEndpointConfigContent, err := runtime.Encode(encoder, restrictedEndpointConfig)
if err != nil {
return err
}
masterConfig.AdmissionConfig.PluginConfig["openshift.io/RestrictedEndpointsAdmission"] = &legacyconfigv1.AdmissionPluginConfig{
Configuration: runtime.RawExtension{Raw: restrictedEndpointConfigContent},
}
allowIngressIP := false
if _, ipNet, err := net.ParseCIDR(masterConfig.NetworkConfig.IngressIPNetworkCIDR); err == nil && !ipNet.IP.IsUnspecified() {
allowIngressIP = true
}
externalIPRangerAdmissionConfig := &externaliprangerv1.ExternalIPRangerAdmissionConfig{
ExternalIPNetworkCIDRs: masterConfig.NetworkConfig.ExternalIPNetworkCIDRs,
AllowIngressIP: allowIngressIP,
}
externalIPRangerAdmissionConfigContent, err := runtime.Encode(encoder, externalIPRangerAdmissionConfig)
if err != nil {
return err
}
masterConfig.AdmissionConfig.PluginConfig["ExternalIPRanger"] = &legacyconfigv1.AdmissionPluginConfig{
Configuration: runtime.RawExtension{Raw: externalIPRangerAdmissionConfigContent},
}
return nil
}
// ConvertMasterConfigToKubeAPIServerConfig mutates it's input. This is acceptable because we do not need it by the time we get to 4.0.
func ConvertMasterConfigToKubeAPIServerConfig(input *legacyconfigv1.MasterConfig) (*kubecontrolplanev1.KubeAPIServerConfig, error) {
if err := convertNetworkConfigToAdmissionConfig(input); err != nil {
return nil, err
}
var err error
ret := &kubecontrolplanev1.KubeAPIServerConfig{
GenericAPIServerConfig: configv1.GenericAPIServerConfig{
CORSAllowedOrigins: input.CORSAllowedOrigins,
StorageConfig: configv1.EtcdStorageConfig{
StoragePrefix: input.EtcdStorageConfig.OpenShiftStoragePrefix,
},
},
ServicesSubnet: input.KubernetesMasterConfig.ServicesSubnet,
ServicesNodePortRange: input.KubernetesMasterConfig.ServicesNodePortRange,
LegacyServiceServingCertSignerCABundle: input.ControllerConfig.ServiceServingCert.Signer.CertFile,
ImagePolicyConfig: kubecontrolplanev1.KubeAPIServerImagePolicyConfig{
InternalRegistryHostname: input.ImagePolicyConfig.InternalRegistryHostname,
ExternalRegistryHostname: input.ImagePolicyConfig.ExternalRegistryHostname,
},
ProjectConfig: kubecontrolplanev1.KubeAPIServerProjectConfig{
DefaultNodeSelector: input.ProjectConfig.DefaultNodeSelector,
},
ServiceAccountPublicKeyFiles: input.ServiceAccountConfig.PublicKeyFiles,
// TODO this needs to be removed.
APIServerArguments: map[string]kubecontrolplanev1.Arguments{},
}
for k, v := range input.KubernetesMasterConfig.APIServerArguments {
ret.APIServerArguments[k] = v
}
// TODO this is likely to be a little weird. I think we override most of this in the operator
ret.ServingInfo, err = ToHTTPServingInfo(&input.ServingInfo)
if err != nil {
return nil, err
}
ret.OAuthConfig, err = ToOAuthConfig(input.OAuthConfig)
if err != nil {
return nil, err
}
ret.AuthConfig, err = ToMasterAuthConfig(&input.AuthConfig)
if err != nil {
return nil, err
}
ret.AggregatorConfig, err = ToAggregatorConfig(&input.AggregatorConfig)
if err != nil {
return nil, err
}
ret.AuditConfig, err = ToAuditConfig(&input.AuditConfig)
if err != nil {
return nil, err
}
ret.StorageConfig.EtcdConnectionInfo, err = ToEtcdConnectionInfo(&input.EtcdClientInfo)
if err != nil {
return nil, err
}
ret.KubeletClientInfo, err = ToKubeletConnectionInfo(&input.KubeletClientInfo)
if err != nil {
return nil, err
}
ret.AdmissionPluginConfig, err = ToAdmissionPluginConfigMap(input.AdmissionConfig.PluginConfig)
if err != nil {
return nil, err
}
ret.UserAgentMatchingConfig, err = ToUserAgentMatchingConfig(&input.PolicyConfig.UserAgentMatchingConfig)
if err != nil {
return nil, err
}
return ret, nil
}
|
apache-2.0
|
colmmacc/s2n
|
tests/unit/s2n_tls13_server_finished_test.c
|
7714
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
#include "s2n_test.h"
#include "tls/s2n_cipher_suites.h"
#include "tls/s2n_connection.h"
#include "tls/s2n_tls.h"
#include "stuffer/s2n_stuffer.h"
#include "utils/s2n_safety.h"
static int reset_stuffers(struct s2n_stuffer *reread, struct s2n_stuffer *wipe)
{
GUARD(s2n_stuffer_reread(reread));
GUARD(s2n_stuffer_wipe(wipe));
return 0;
}
int main(int argc, char **argv)
{
BEGIN_TEST();
/* Test s2n_tls13_server_finished_send and s2n_tls13_server_finished_recv */
{
struct s2n_cipher_suite cipher_suites[] = {
s2n_tls13_aes_128_gcm_sha256,
s2n_tls13_aes_256_gcm_sha384,
s2n_tls13_chacha20_poly1305_sha256
};
int hash_sizes[] = {
32, 48, 32
};
for (int i = 0; i < 3; i++) {
struct s2n_connection *server_conn;
EXPECT_NOT_NULL(server_conn = s2n_connection_new(S2N_CLIENT));
server_conn->actual_protocol_version = S2N_TLS13;
server_conn->secure.cipher_suite = &cipher_suites[i];
int hash_size = hash_sizes[i];
EXPECT_SUCCESS(s2n_tls13_server_finished_send(server_conn));
EXPECT_EQUAL(s2n_stuffer_data_available(&server_conn->handshake.io), hash_size);
struct s2n_connection *client_conn;
EXPECT_NOT_NULL(client_conn = s2n_connection_new(S2N_CLIENT));
client_conn->actual_protocol_version = S2N_TLS13;
client_conn->secure.cipher_suite = &cipher_suites[i];
EXPECT_SUCCESS(reset_stuffers(&server_conn->handshake.io, &client_conn->handshake.io));
EXPECT_SUCCESS(s2n_stuffer_copy(&server_conn->handshake.io, &client_conn->handshake.io, hash_size));
EXPECT_SUCCESS(s2n_tls13_server_finished_recv(client_conn));
/* Expect failure if verify has a missing byte */
EXPECT_SUCCESS(reset_stuffers(&server_conn->handshake.io, &client_conn->handshake.io));
EXPECT_SUCCESS(s2n_stuffer_copy(&server_conn->handshake.io, &client_conn->handshake.io, hash_size - 1));
EXPECT_FAILURE(s2n_tls13_server_finished_recv(client_conn));
/* Expect failure if verify have additional byte */
EXPECT_SUCCESS(reset_stuffers(&server_conn->handshake.io, &client_conn->handshake.io));
EXPECT_SUCCESS(s2n_stuffer_copy(&server_conn->handshake.io, &client_conn->handshake.io, hash_size));
EXPECT_SUCCESS(s2n_stuffer_write_uint8(&client_conn->handshake.io, 0));
EXPECT_FAILURE(s2n_tls13_server_finished_recv(client_conn));
/* Expect failure if verify on wire is modified by 1 bit */
EXPECT_SUCCESS(reset_stuffers(&server_conn->handshake.io, &client_conn->handshake.io));
EXPECT_SUCCESS(s2n_stuffer_copy(&server_conn->handshake.io, &client_conn->handshake.io, hash_size));
client_conn->handshake.io.blob.data[0] ^= 1;
EXPECT_FAILURE(s2n_tls13_server_finished_recv(client_conn));
/* Expect failure if finished key differs */
EXPECT_SUCCESS(reset_stuffers(&server_conn->handshake.io, &client_conn->handshake.io));
EXPECT_SUCCESS(s2n_stuffer_copy(&server_conn->handshake.io, &client_conn->handshake.io, hash_size));
client_conn->handshake.server_finished[0] ^= 1;
EXPECT_FAILURE(s2n_tls13_server_finished_recv(client_conn));
EXPECT_SUCCESS(s2n_connection_free(client_conn));
EXPECT_SUCCESS(s2n_connection_free(server_conn));
}
}
/* Test that they can only run in TLS 1.3 mode */
{
struct s2n_connection *server_conn;
EXPECT_NOT_NULL(server_conn = s2n_connection_new(S2N_CLIENT));
server_conn->secure.cipher_suite = &s2n_tls13_aes_256_gcm_sha384;
EXPECT_FAILURE(s2n_tls13_server_finished_send(server_conn));
/* now with TLS 1.3, server finished send can run */
server_conn->actual_protocol_version = S2N_TLS13;
EXPECT_SUCCESS(s2n_tls13_server_finished_send(server_conn));
EXPECT_EQUAL(s2n_stuffer_data_available(&server_conn->handshake.io), 48);
struct s2n_connection *client_conn;
EXPECT_NOT_NULL(client_conn = s2n_connection_new(S2N_CLIENT));
client_conn->secure.cipher_suite = &s2n_tls13_aes_256_gcm_sha384;
EXPECT_SUCCESS(s2n_stuffer_copy(&server_conn->handshake.io, &client_conn->handshake.io, 48));
EXPECT_FAILURE(s2n_tls13_server_finished_recv(client_conn));
EXPECT_SUCCESS(s2n_connection_free(client_conn));
EXPECT_SUCCESS(s2n_connection_free(server_conn));
}
/* Test for failure cases if cipher suites are incompatible */
{
struct s2n_connection *server_conn;
EXPECT_NOT_NULL(server_conn = s2n_connection_new(S2N_CLIENT));
server_conn->actual_protocol_version = S2N_TLS13;
server_conn->secure.cipher_suite = &s2n_tls13_aes_128_gcm_sha256;
EXPECT_SUCCESS(s2n_tls13_server_finished_send(server_conn));
EXPECT_EQUAL(s2n_stuffer_data_available(&server_conn->handshake.io), 32);
struct s2n_connection *client_conn;
EXPECT_NOT_NULL(client_conn = s2n_connection_new(S2N_CLIENT));
client_conn->actual_protocol_version = S2N_TLS13;
client_conn->secure.cipher_suite = &s2n_tls13_aes_256_gcm_sha384;
EXPECT_SUCCESS(reset_stuffers(&server_conn->handshake.io, &client_conn->handshake.io));
EXPECT_SUCCESS(s2n_stuffer_copy(&server_conn->handshake.io, &client_conn->handshake.io, 32));
EXPECT_FAILURE(s2n_tls13_server_finished_recv(client_conn));
EXPECT_SUCCESS(s2n_connection_free(client_conn));
EXPECT_SUCCESS(s2n_connection_free(server_conn));
}
/* Test for failure cases when finished secret key differs */
{
struct s2n_connection *server_conn;
EXPECT_NOT_NULL(server_conn = s2n_connection_new(S2N_CLIENT));
server_conn->actual_protocol_version = S2N_TLS13;
server_conn->secure.cipher_suite = &s2n_tls13_aes_256_gcm_sha384;
EXPECT_SUCCESS(s2n_tls13_server_finished_send(server_conn));
EXPECT_EQUAL(s2n_stuffer_data_available(&server_conn->handshake.io), 48);
struct s2n_connection *client_conn;
EXPECT_NOT_NULL(client_conn = s2n_connection_new(S2N_CLIENT));
client_conn->actual_protocol_version = S2N_TLS13;
client_conn->secure.cipher_suite = &s2n_tls13_aes_256_gcm_sha384;
for (int i = 0; i < 48; i++) {
EXPECT_SUCCESS(reset_stuffers(&server_conn->handshake.io, &client_conn->handshake.io));
EXPECT_SUCCESS(s2n_stuffer_copy(&server_conn->handshake.io, &client_conn->handshake.io, 48));
/* flip a bit to test failure */
client_conn->handshake.server_finished[i] ^= 1;
EXPECT_FAILURE(s2n_tls13_server_finished_recv(client_conn));
/* flip the bit back */
client_conn->handshake.server_finished[i] ^= 1;
}
EXPECT_SUCCESS(s2n_connection_free(client_conn));
EXPECT_SUCCESS(s2n_connection_free(server_conn));
}
END_TEST();
return 0;
}
|
apache-2.0
|
velsubra/Tamil
|
ezhuththu/src/main/java/tamil/lang/api/join/KnownWordsJoiner.java
|
984
|
package tamil.lang.api.join;
import tamil.lang.known.IKnownWord;
/**
* <p>
* Joins known words and based on the type of புணர்ச்சி.
*
* </p>
*
* @author velsubra
*/
public interface KnownWordsJoiner {
public static enum TYPE {
VEATTUMAI,
ALVAZHI
}
/**
* adds word to the current sum of the joiner by means of doing புணர்ச்சி
* @param word the word to be added
*/
public void addVaruMozhi(IKnownWord word, TYPE type);
/**
* adds the current sum of the joiner into the given word by doing புணர்ச்சி
* @param word the word to be inserted
*/
public void addNilaiMozhi(IKnownWord word, TYPE type);
/**
* The effective word that is generated.
* @return the sum out of one or more additions using {@link #addVaruMozhi(tamil.lang.known.IKnownWord, tamil.lang.api.join.KnownWordsJoiner.TYPE)}
*/
public IKnownWord getSum();
}
|
apache-2.0
|
gothxx/backyard
|
go/src/test/makeUUID.go
|
411
|
package main
import (
"fmt"
"github.com/satori/go.uuid"
)
func main() {
// Creating UUID Version 4
u1 := uuid.NewV4()
fmt.Printf("UUIDv4: %s\n", u1)
// Parsing UUID from string input
u2, err := uuid.FromString("6ba7b810-9dad-11d1-80b4-00c04fd430c8")
if err != nil {
fmt.Printf("Something gone wrong: %s\n", err)
}
fmt.Printf("Successfully parsed: %s\n", u2)
}
|
apache-2.0
|
letitvi/VideoGridPlayer
|
thirdparty/source/asio-1.11.0/doc/asio/reference/async_write_at/overload2.html
|
11419
|
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>async_write_at (2 of 4 overloads)</title>
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
<link rel="home" href="../../../index.html" title="Asio">
<link rel="up" href="../async_write_at.html" title="async_write_at">
<link rel="prev" href="overload1.html" title="async_write_at (1 of 4 overloads)">
<link rel="next" href="overload3.html" title="async_write_at (3 of 4 overloads)">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td></tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="overload1.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../async_write_at.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="overload3.html"><img src="../../../next.png" alt="Next"></a>
</div>
<div class="section">
<div class="titlepage"><div><div><h4 class="title">
<a name="asio.reference.async_write_at.overload2"></a><a class="link" href="overload2.html" title="async_write_at (2 of 4 overloads)">async_write_at
(2 of 4 overloads)</a>
</h4></div></div></div>
<p>
Start an asynchronous operation to write a certain amount of data at the
specified offset.
</p>
<pre class="programlisting"><span class="keyword">template</span><span class="special"><</span>
<span class="keyword">typename</span> <a class="link" href="../AsyncRandomAccessWriteDevice.html" title="Buffer-oriented asynchronous random-access write device requirements">AsyncRandomAccessWriteDevice</a><span class="special">,</span>
<span class="keyword">typename</span> <a class="link" href="../ConstBufferSequence.html" title="Constant buffer sequence requirements">ConstBufferSequence</a><span class="special">,</span>
<span class="keyword">typename</span> <span class="identifier">CompletionCondition</span><span class="special">,</span>
<span class="keyword">typename</span> <a class="link" href="../WriteHandler.html" title="Write handler requirements">WriteHandler</a><span class="special">></span>
<a class="link" href="../asynchronous_operations.html#asio.reference.asynchronous_operations.return_type_of_an_initiating_function"><span class="emphasis"><em>void-or-deduced</em></span></a> <span class="identifier">async_write_at</span><span class="special">(</span>
<span class="identifier">AsyncRandomAccessWriteDevice</span> <span class="special">&</span> <span class="identifier">d</span><span class="special">,</span>
<span class="identifier">uint64_t</span> <span class="identifier">offset</span><span class="special">,</span>
<span class="keyword">const</span> <span class="identifier">ConstBufferSequence</span> <span class="special">&</span> <span class="identifier">buffers</span><span class="special">,</span>
<span class="identifier">CompletionCondition</span> <span class="identifier">completion_condition</span><span class="special">,</span>
<span class="identifier">WriteHandler</span> <span class="special">&&</span> <span class="identifier">handler</span><span class="special">);</span>
</pre>
<p>
This function is used to asynchronously write a certain number of bytes
of data to a random access device at a specified offset. The function call
always returns immediately. The asynchronous operation will continue until
one of the following conditions is true:
</p>
<div class="itemizedlist"><ul class="itemizedlist" type="disc">
<li class="listitem">
All of the data in the supplied buffers has been written. That is,
the bytes transferred is equal to the sum of the buffer sizes.
</li>
<li class="listitem">
The completion_condition function object returns 0.
</li>
</ul></div>
<p>
This operation is implemented in terms of zero or more calls to the device's
async_write_some_at function, and is known as a <span class="emphasis"><em>composed operation</em></span>.
The program must ensure that the device performs no <span class="emphasis"><em>overlapping</em></span>
write operations (such as async_write_at, the device's async_write_some_at
function, or any other composed operations that perform writes) until this
operation completes. Operations are overlapping if the regions defined
by their offsets, and the numbers of bytes to write, intersect.
</p>
<h6>
<a name="asio.reference.async_write_at.overload2.h0"></a>
<span><a name="asio.reference.async_write_at.overload2.parameters"></a></span><a class="link" href="overload2.html#asio.reference.async_write_at.overload2.parameters">Parameters</a>
</h6>
<div class="variablelist">
<p class="title"><b></b></p>
<dl>
<dt><span class="term">d</span></dt>
<dd><p>
The device to which the data is to be written. The type must support
the AsyncRandomAccessWriteDevice concept.
</p></dd>
<dt><span class="term">offset</span></dt>
<dd><p>
The offset at which the data will be written.
</p></dd>
<dt><span class="term">buffers</span></dt>
<dd><p>
One or more buffers containing the data to be written. Although the
buffers object may be copied as necessary, ownership of the underlying
memory blocks is retained by the caller, which must guarantee that
they remain valid until the handler is called.
</p></dd>
<dt><span class="term">completion_condition</span></dt>
<dd>
<p>
The function object to be called to determine whether the write operation
is complete. The signature of the function object must be:
</p>
<pre class="programlisting"><span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <span class="identifier">completion_condition</span><span class="special">(</span>
<span class="comment">// Result of latest async_write_some_at operation.</span>
<span class="keyword">const</span> <span class="identifier">asio</span><span class="special">::</span><span class="identifier">error_code</span><span class="special">&</span> <span class="identifier">error</span><span class="special">,</span>
<span class="comment">// Number of bytes transferred so far.</span>
<span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <span class="identifier">bytes_transferred</span>
<span class="special">);</span>
</pre>
<p>
A return value of 0 indicates that the write operation is complete.
A non-zero return value indicates the maximum number of bytes to
be written on the next call to the device's async_write_some_at function.
</p>
</dd>
<dt><span class="term">handler</span></dt>
<dd>
<p>
The handler to be called when the write operation completes. Copies
will be made of the handler as required. The function signature of
the handler must be:
</p>
<pre class="programlisting"><span class="keyword">void</span> <span class="identifier">handler</span><span class="special">(</span>
<span class="comment">// Result of operation.</span>
<span class="keyword">const</span> <span class="identifier">asio</span><span class="special">::</span><span class="identifier">error_code</span><span class="special">&</span> <span class="identifier">error</span><span class="special">,</span>
<span class="comment">// Number of bytes written from the buffers. If an error</span>
<span class="comment">// occurred, this will be less than the sum of the buffer sizes.</span>
<span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <span class="identifier">bytes_transferred</span>
<span class="special">);</span>
</pre>
<p>
Regardless of whether the asynchronous operation completes immediately
or not, the handler will not be invoked from within this function.
Invocation of the handler will be performed in a manner equivalent
to using <code class="computeroutput"><span class="identifier">asio</span><span class="special">::</span><span class="identifier">io_service</span><span class="special">::</span><span class="identifier">post</span><span class="special">()</span></code>.
</p>
</dd>
</dl>
</div>
<h6>
<a name="asio.reference.async_write_at.overload2.h1"></a>
<span><a name="asio.reference.async_write_at.overload2.example"></a></span><a class="link" href="overload2.html#asio.reference.async_write_at.overload2.example">Example</a>
</h6>
<p>
To write a single data buffer use the <a class="link" href="../buffer.html" title="buffer"><code class="computeroutput"><span class="identifier">buffer</span></code></a> function as follows:
</p>
<pre class="programlisting"><span class="identifier">asio</span><span class="special">::</span><span class="identifier">async_write_at</span><span class="special">(</span><span class="identifier">d</span><span class="special">,</span> <span class="number">42</span><span class="special">,</span>
<span class="identifier">asio</span><span class="special">::</span><span class="identifier">buffer</span><span class="special">(</span><span class="identifier">data</span><span class="special">,</span> <span class="identifier">size</span><span class="special">),</span>
<span class="identifier">asio</span><span class="special">::</span><span class="identifier">transfer_at_least</span><span class="special">(</span><span class="number">32</span><span class="special">),</span>
<span class="identifier">handler</span><span class="special">);</span>
</pre>
<p>
See the <a class="link" href="../buffer.html" title="buffer"><code class="computeroutput"><span class="identifier">buffer</span></code></a>
documentation for information on writing multiple buffers in one go, and
how to use it with arrays, boost::array or std::vector.
</p>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"></td>
<td align="right"><div class="copyright-footer">Copyright © 2003-2015 Christopher M.
Kohlhoff<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p>
</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="overload1.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../async_write_at.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="overload3.html"><img src="../../../next.png" alt="Next"></a>
</div>
</body>
</html>
|
apache-2.0
|
draegtun/ren-c
|
src/include/datatypes/sys-context.h
|
19419
|
//
// File: %sys-context.h
// Summary: {context! defs AFTER %tmp-internals.h (see: %sys-context.h)}
// Project: "Rebol 3 Interpreter and Run-time (Ren-C branch)"
// Homepage: https://github.com/metaeducation/ren-c/
//
//=////////////////////////////////////////////////////////////////////////=//
//
// Copyright 2012 REBOL Technologies
// Copyright 2012-2018 Rebol Open Source Contributors
// REBOL is a trademark of REBOL Technologies
//
// See README.md and CREDITS.md for more information
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
//=////////////////////////////////////////////////////////////////////////=//
//
// In Rebol terminology, a "context" is an abstraction which gives two
// parallel arrays, whose indices line up in a correspondence:
//
// * "keylist" - an array that contains IS_PARAM() cells, but which have a
// symbol ID encoded as an extra piece of information for that key.
//
// * "varlist" - an array of equal length to the keylist, which holds an
// arbitrary REBVAL in each position that corresponds to its key.
//
// Frame key/var indices start at one, and they leave two REBVAL slots open
// in the 0 spot for other uses. With an ANY-CONTEXT!, the use for the
// "ROOTVAR" is to store a canon value image of the ANY-CONTEXT!'s REBVAL
// itself. This trick allows a single REBCTX* to be passed around rather
// than the REBVAL struct which is 4x larger, yet still reconstitute the
// entire REBVAL if it is needed.
//
// (The "ROOTKEY" of the keylist is currently only used a context is a FRAME!.
// It is using a paramlist as the keylist, so the [0] is the archetype action
// value of that paramlist).
//
// The `keylist` is held in the varlist's LINK().keysource field, and it may
// be shared with an arbitrary number of other contexts. Changing the keylist
// involves making a copy if it is shared.
//
// Contexts coordinate with words, which can have their VAL_WORD_CONTEXT()
// set to a context's series pointer. Then they cache the index of that
// word's symbol in the context's keylist, for a fast lookup to get to the
// corresponding var. The key is a typeset which has several flags
// controlling behaviors like whether the var is protected or hidden.
//
//=////////////////////////////////////////////////////////////////////////=//
//
// NOTES:
//
// * Once a word is bound to a context the index is treated as permanent.
// This is why objects are "append only"...because disruption of the index
// numbers would break the extant words with index numbers to that position.
//
// * !!! Ren-C might wind up undoing this by paying for the check of the
// symbol number at the time of lookup, and if it does not match consider it
// a cache miss and re-lookup...adjusting the index inside of the word.
// For efficiency, some objects could be marked as not having this property,
// but it may be just as efficient to check the symbol match as that bit.
//
// * REB_MODULE depends on a property stored in the "meta" Reb_Series.link
// field of the keylist, which is another object's-worth of data *about*
// the module's contents (e.g. the processed header)
//
#define CELL_MASK_CONTEXT \
(CELL_FLAG_FIRST_IS_NODE /* varlist */ \
| CELL_FLAG_SECOND_IS_NODE /* phase (for FRAME!) */)
//=//// SERIES_FLAG_VARLIST_FRAME_FAILED //////////////////////////////////=//
//
// In the specific case of a frame being freed due to a failure, this mark
// is put on the context node. What this allows is for the system to account
// for which nodes are being GC'd due to lack of a rebRelease(), as opposed
// to those being GC'd due to failure.
//
// What this means is that the system can use managed handles by default
// while still letting "rigorous" code track cases where it made use of the
// GC facility vs. doing explicit tracking. Essentially, it permits a kind
// of valgrind/address-sanitizer way of looking at a codebase vs. just taking
// for granted that it will GC things.
//
#define SERIES_FLAG_VARLIST_FRAME_FAILED \
ARRAY_FLAG_23
#ifdef NDEBUG
#define ASSERT_CONTEXT(c) cast(void, 0)
#else
#define ASSERT_CONTEXT(c) Assert_Context_Core(c)
#endif
// On the keylist of an object, this points at a keylist which has the
// same number of keys or fewer, which represents an object which this
// object is derived from. Note that when new object instances are
// created which do not require expanding the object, their keylist will
// be the same as the object they are derived from.
//
#define LINK_ANCESTOR_NODE(s) LINK(s).custom.node
#define LINK_ANCESTOR(s) ARR(LINK_ANCESTOR_NODE(s))
#define CTX_VARLIST(c) \
(&(c)->varlist)
#define VAL_PHASE_NODE(v) \
PAYLOAD(Any, (v)).second.node
#define VAL_PHASE_UNCHECKED(v) \
ACT(VAL_PHASE_NODE(v))
inline static REBACT *VAL_PHASE(REBVAL *frame) {
assert(IS_FRAME(frame));
REBACT *phase = VAL_PHASE_UNCHECKED(frame);
assert(phase != nullptr);
return phase;
}
// There may not be any dynamic or stack allocation available for a stack
// allocated context, and in that case it will have to come out of the
// REBSER node data itself.
//
inline static REBVAL *CTX_ARCHETYPE(REBCTX *c) {
REBSER *varlist = SER(CTX_VARLIST(c));
if (not IS_SER_DYNAMIC(varlist))
return cast(REBVAL*, &varlist->content.fixed);
// If a context has its data freed, it must be converted into non-dynamic
// form if it wasn't already (e.g. if it wasn't a FRAME!)
//
assert(NOT_SERIES_INFO(varlist, INACCESSIBLE));
return cast(REBVAL*, varlist->content.dynamic.data);
}
// CTX_KEYLIST is called often, and it's worth it to make it as fast as
// possible--even in an unoptimized build.
//
inline static REBARR *CTX_KEYLIST(REBCTX *c) {
if (not (LINK_KEYSOURCE(c)->header.bits & NODE_FLAG_CELL))
return ARR(LINK_KEYSOURCE(c)); // not a REBFRM, so use keylist
// If the context in question is a FRAME! value, then the ->phase
// of the frame presents the "view" of which keys should be visible at
// this phase. So if the phase is a specialization, then it should
// not show all the underlying function's keys...just the ones that
// are not hidden in the facade that specialization uses. Since the
// phase changes, a fixed value can't be put into the keylist...that is
// just the keylist of the underlying function.
//
return ACT_PARAMLIST(VAL_PHASE(CTX_ARCHETYPE(c)));
}
static inline void INIT_CTX_KEYLIST_SHARED(REBCTX *c, REBARR *keylist) {
SET_SERIES_INFO(keylist, KEYLIST_SHARED);
INIT_LINK_KEYSOURCE(c, NOD(keylist));
}
static inline void INIT_CTX_KEYLIST_UNIQUE(REBCTX *c, REBARR *keylist) {
assert(NOT_SERIES_INFO(keylist, KEYLIST_SHARED));
INIT_LINK_KEYSOURCE(c, NOD(keylist));
}
// Navigate from context to context components. Note that the context's
// "length" does not count the [0] cell of either the varlist or the keylist.
// Hence it must subtract 1. Internally to the context building code, the
// real length of the two series must be accounted for...so the 1 gets put
// back in, but most clients are only interested in the number of keys/values
// (and getting an answer for the length back that was the same as the length
// requested in context creation).
//
#define CTX_LEN(c) \
(cast(REBSER*, (c))->content.dynamic.used - 1) // used > 1, so dynamic
#define CTX_ROOTKEY(c) \
cast(REBVAL*, SER(CTX_KEYLIST(c))->content.dynamic.data) // used > 1
#define CTX_TYPE(c) \
VAL_TYPE(CTX_ARCHETYPE(c))
// The keys and vars are accessed by positive integers starting at 1
//
#define CTX_KEYS_HEAD(c) \
SER_AT(REBVAL, SER(CTX_KEYLIST(c)), 1) // a CTX_KEY can't hold a RELVAL
inline static REBFRM *CTX_FRAME_IF_ON_STACK(REBCTX *c) {
REBNOD *keysource = LINK_KEYSOURCE(c);
if (not (keysource->header.bits & NODE_FLAG_CELL))
return nullptr; // e.g. came from MAKE FRAME! or Encloser_Dispatcher
assert(NOT_SERIES_INFO(CTX_VARLIST(c), INACCESSIBLE));
assert(IS_FRAME(CTX_ARCHETYPE(c)));
REBFRM *f = FRM(keysource);
assert(f->original); // inline Is_Action_Frame() to break dependency
return f;
}
inline static REBFRM *CTX_FRAME_MAY_FAIL(REBCTX *c) {
REBFRM *f = CTX_FRAME_IF_ON_STACK(c);
if (not f)
fail (Error_Frame_Not_On_Stack_Raw());
return f;
}
#define CTX_VARS_HEAD(c) \
SER_AT(REBVAL, SER(CTX_VARLIST(c)), 1) // may fail() if inaccessible
inline static REBVAL *CTX_KEY(REBCTX *c, REBCNT n) {
assert(NOT_SERIES_INFO(c, INACCESSIBLE));
assert(GET_ARRAY_FLAG(CTX_VARLIST(c), IS_VARLIST));
assert(n != 0 and n <= CTX_LEN(c));
return cast(REBVAL*, cast(REBSER*, CTX_KEYLIST(c))->content.dynamic.data)
+ n;
}
inline static REBVAL *CTX_VAR(REBCTX *c, REBCNT n) {
assert(NOT_SERIES_INFO(c, INACCESSIBLE));
assert(GET_ARRAY_FLAG(CTX_VARLIST(c), IS_VARLIST));
assert(n != 0 and n <= CTX_LEN(c));
return cast(REBVAL*, cast(REBSER*, c)->content.dynamic.data) + n;
}
inline static REBSTR *CTX_KEY_SPELLING(REBCTX *c, REBCNT n) {
return VAL_TYPESET_STRING(CTX_KEY(c, n));
}
inline static REBSTR *CTX_KEY_CANON(REBCTX *c, REBCNT n) {
return STR_CANON(CTX_KEY_SPELLING(c, n));
}
inline static REBSYM CTX_KEY_SYM(REBCTX *c, REBCNT n) {
return STR_SYMBOL(CTX_KEY_SPELLING(c, n)); // should be same as canon
}
//=////////////////////////////////////////////////////////////////////////=//
//
// ANY-CONTEXT! (`struct Reb_Any_Context`)
//
//=////////////////////////////////////////////////////////////////////////=//
//
// The Reb_Any_Context is the basic struct used currently for OBJECT!,
// MODULE!, ERROR!, and PORT!. It builds upon the context datatype REBCTX,
// which permits the storage of associated KEYS and VARS.
//
inline static void FAIL_IF_INACCESSIBLE_CTX(REBCTX *c) {
if (GET_SERIES_INFO(c, INACCESSIBLE)) {
if (CTX_TYPE(c) == REB_FRAME)
fail (Error_Expired_Frame_Raw()); // !!! different error?
fail (Error_Series_Data_Freed_Raw());
}
}
inline static REBCTX *VAL_CONTEXT(const REBCEL *v) {
assert(ANY_CONTEXT_KIND(CELL_KIND(v)));
assert(
(VAL_PHASE_UNCHECKED(v) != nullptr) == (CELL_KIND(v) == REB_FRAME)
);
REBCTX *c = CTX(PAYLOAD(Any, v).first.node);
FAIL_IF_INACCESSIBLE_CTX(c);
return c;
}
inline static REBCTX *VAL_WORD_CONTEXT(const REBVAL *v) {
assert(IS_WORD_BOUND(v));
REBNOD *binding = VAL_BINDING(v);
assert(
GET_SERIES_FLAG(binding, MANAGED)
or IS_END(FRM(LINK_KEYSOURCE(binding))->param) // not "fulfilling"
);
binding->header.bits |= NODE_FLAG_MANAGED; // !!! review managing needs
REBCTX *c = CTX(binding);
FAIL_IF_INACCESSIBLE_CTX(c);
return c;
}
#define INIT_VAL_CONTEXT_VARLIST(v,varlist) \
(PAYLOAD(Any, (v)).first.node = NOD(varlist))
#define INIT_VAL_CONTEXT_PHASE(v,phase) \
(PAYLOAD(Any, (v)).second.node = NOD(phase))
#define VAL_PHASE(v) \
ACT(PAYLOAD(Any, (v)).second.node)
// Convenience macros to speak in terms of object values instead of the context
//
#define VAL_CONTEXT_VAR(v,n) \
CTX_VAR(VAL_CONTEXT(v), (n))
#define VAL_CONTEXT_KEY(v,n) \
CTX_KEY(VAL_CONTEXT(v), (n))
// The movement of the SELF word into the domain of the object generators
// means that an object may wind up having a hidden SELF key (and it may not).
// Ultimately this key may well occur at any position. While user code is
// discouraged from accessing object members by integer index (`pick obj 1`
// is an error), system code has historically relied upon this.
//
// During a transitional period where all MAKE OBJECT! constructs have a
// "real" SELF key/var in the first position, there needs to be an adjustment
// to the indexing of some of this system code. Some of these will be
// temporary, because not all objects will need a definitional SELF (just as
// not all functions need a definitional RETURN). Exactly which require it
// and which do not remains to be seen, so this macro helps review the + 1
// more easily than if it were left as just + 1.
//
#define SELFISH(n) \
((n) + 1)
// Common routine for initializing OBJECT, MODULE!, PORT!, and ERROR!
//
// A fully constructed context can reconstitute the ANY-CONTEXT! REBVAL
// that is its canon form from a single pointer...the REBVAL sitting in
// the 0 slot of the context's varlist.
//
static inline REBVAL *Init_Any_Context(
RELVAL *out,
enum Reb_Kind kind,
REBCTX *c
){
#if !defined(NDEBUG)
Extra_Init_Any_Context_Checks_Debug(kind, c);
#endif
UNUSED(kind);
ASSERT_SERIES_MANAGED(CTX_VARLIST(c));
ASSERT_SERIES_MANAGED(CTX_KEYLIST(c));
return Move_Value(out, CTX_ARCHETYPE(c));
}
#define Init_Object(out,c) \
Init_Any_Context((out), REB_OBJECT, (c))
#define Init_Port(out,c) \
Init_Any_Context((out), REB_PORT, (c))
#define Init_Frame(out,c) \
Init_Any_Context((out), REB_FRAME, (c))
//=////////////////////////////////////////////////////////////////////////=//
//
// COMMON INLINES (macro-like)
//
//=////////////////////////////////////////////////////////////////////////=//
//
// By putting these functions in a header file, they can be inlined by the
// compiler, rather than add an extra layer of function call.
//
#define Copy_Context_Shallow_Managed(src) \
Copy_Context_Shallow_Extra_Managed((src), 0)
// Returns true if the keylist had to be changed to make it unique.
//
#define Ensure_Keylist_Unique_Invalidated(context) \
Expand_Context_Keylist_Core((context), 0)
// Useful if you want to start a context out as NODE_FLAG_MANAGED so it does
// not have to go in the unmanaged roots list and be removed later. (Be
// careful not to do any evaluations or trigger GC until it's well formed)
//
#define Alloc_Context(kind,capacity) \
Alloc_Context_Core((kind), (capacity), SERIES_FLAGS_NONE)
//=////////////////////////////////////////////////////////////////////////=//
//
// LOCKING
//
//=////////////////////////////////////////////////////////////////////////=//
inline static void Deep_Freeze_Context(REBCTX *c) {
Protect_Context(
c,
PROT_SET | PROT_DEEP | PROT_FREEZE
);
Uncolor_Array(CTX_VARLIST(c));
}
inline static bool Is_Context_Deeply_Frozen(REBCTX *c) {
return GET_SERIES_INFO(c, FROZEN);
}
//=////////////////////////////////////////////////////////////////////////=//
//
// ERROR! (uses `struct Reb_Any_Context`)
//
//=////////////////////////////////////////////////////////////////////////=//
//
// Errors are a subtype of ANY-CONTEXT! which follow a standard layout.
// That layout is in %boot/sysobj.r as standard/error.
//
// Historically errors could have a maximum of 3 arguments, with the fixed
// names of `arg1`, `arg2`, and `arg3`. They would also have a numeric code
// which would be used to look up a a formatting block, which would contain
// a block for a message with spots showing where the args were to be inserted
// into a message. These message templates can be found in %boot/errors.r
//
// Ren-C is exploring the customization of user errors to be able to provide
// arbitrary named arguments and message templates to use them. It is
// a work in progress, but refer to the FAIL native, the corresponding
// `fail()` C macro inside the source, and the various routines in %c-error.c
//
#define ERR_VARS(e) \
cast(ERROR_VARS*, CTX_VARS_HEAD(e))
#define VAL_ERR_VARS(v) \
ERR_VARS(VAL_CONTEXT(v))
#define Init_Error(v,c) \
Init_Any_Context((v), REB_ERROR, (c))
// Ports are unusual hybrids of user-mode code dispatched with native code, so
// some things the user can do to the internals of a port might cause the
// C code to crash. This wasn't very well thought out in R3-Alpha, but there
// was some validation checking. This factors out that check instead of
// repeating the code.
//
inline static void FAIL_IF_BAD_PORT(REBVAL *port) {
if (not ANY_CONTEXT(port))
fail (Error_Invalid_Port_Raw());
REBCTX *ctx = VAL_CONTEXT(port);
if (
CTX_LEN(ctx) < (STD_PORT_MAX - 1)
or not IS_OBJECT(CTX_VAR(ctx, STD_PORT_SPEC))
){
fail (Error_Invalid_Port_Raw());
}
}
// It's helpful to show when a test for a native port actor is being done,
// rather than just having the code say IS_HANDLE().
//
inline static bool Is_Native_Port_Actor(const REBVAL *actor) {
if (IS_HANDLE(actor))
return true;
assert(IS_OBJECT(actor));
return false;
}
//
// Steal_Context_Vars: C
//
// This is a low-level trick which mutates a context's varlist into a stub
// "free" node, while grabbing the underlying memory for its variables into
// an array of values.
//
// It has a notable use by DO of a heap-based FRAME!, so that the frame's
// filled-in heap memory can be directly used as the args for the invocation,
// instead of needing to push a redundant run of stack-based memory cells.
//
inline static REBCTX *Steal_Context_Vars(REBCTX *c, REBNOD *keysource) {
REBSER *stub = SER(c);
// Rather than memcpy() and touch up the header and info to remove
// SERIES_INFO_HOLD put on by Enter_Native(), or NODE_FLAG_MANAGED,
// etc.--use constant assignments and only copy the remaining fields.
//
REBSER *copy = Alloc_Series_Node(
SERIES_MASK_VARLIST
| SERIES_FLAG_STACK_LIFETIME
| SERIES_FLAG_FIXED_SIZE
);
copy->info = Endlike_Header(
FLAG_WIDE_BYTE_OR_0(0) // implicit termination, and indicates array
| FLAG_LEN_BYTE_OR_255(255) // indicates dynamic (varlist rule)
);
TRASH_POINTER_IF_DEBUG(LINK_KEYSOURCE(copy)); // needs update
memcpy(©->content, &stub->content, sizeof(union Reb_Series_Content));
MISC_META_NODE(copy) = nullptr; // let stub have the meta
REBVAL *rootvar = cast(REBVAL*, copy->content.dynamic.data);
// Convert the old varlist that had outstanding references into a
// singular "stub", holding only the CTX_ARCHETYPE. This is needed
// for the ->binding to allow Derelativize(), see SPC_BINDING().
//
// Note: previously this had to preserve VARLIST_FLAG_FRAME_FAILED, but
// now those marking failure are asked to do so manually to the stub
// after this returns (hence they need to cache the varlist first).
//
stub->info = Endlike_Header(
SERIES_INFO_INACCESSIBLE // args memory now "stolen" by copy
| FLAG_WIDE_BYTE_OR_0(0) // width byte is 0 for array series
| FLAG_LEN_BYTE_OR_255(1) // not dynamic any more, new len is 1
);
REBVAL *single = cast(REBVAL*, &stub->content.fixed);
single->header.bits =
NODE_FLAG_NODE | NODE_FLAG_CELL
| FLAG_KIND_BYTE(REB_FRAME)
| FLAG_MIRROR_BYTE(REB_FRAME)
| CELL_MASK_CONTEXT;
INIT_BINDING(single, VAL_BINDING(rootvar));
INIT_VAL_CONTEXT_VARLIST(single, ARR(stub));
TRASH_POINTER_IF_DEBUG(PAYLOAD(Any, single).second.node); // phase
INIT_VAL_CONTEXT_VARLIST(rootvar, ARR(copy));
// Disassociate the stub from the frame, by degrading the link field
// to a keylist. !!! Review why this was needed, vs just nullptr
//
INIT_LINK_KEYSOURCE(CTX(stub), keysource);
return CTX(copy);
}
|
apache-2.0
|
benmorss/excalibur
|
cloudserver.py
|
563
|
import os
import threading
import datetime
import cloudstorage as gcs
from google.appengine.api import app_identity
class FileServer():
def __init__(self):
bucket_name = os.environ.get('BUCKET_NAME',
app_identity.get_default_gcs_bucket_name())
self.bucket = '/' + bucket_name
def GetFileForPath(self, path):
try:
full_path = self.bucket + '/' + path
file_obj = gcs.open(full_path)
data = file_obj.read()
file_obj.close()
return data
except gcs.NotFoundError:
return None
|
apache-2.0
|
mdoering/backbone
|
life/Plantae/Bacillariophyta/Bacillariophyceae/Naviculales/Amphipleuraceae/Frustulia/Frustulia acuminata/README.md
|
186
|
# Frustulia acuminata Kützing SPECIES
#### Status
ACCEPTED
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
null
#### Original name
null
### Remarks
null
|
apache-2.0
|
evandor/skysail
|
skysail.server.app.demo/src/io/skysail/server/app/demo/timetable/course/resources/PostCourseResource.java
|
1307
|
package io.skysail.server.app.demo.timetable.course.resources;
import org.restlet.resource.ResourceException;
import io.skysail.domain.core.repos.Repository;
import io.skysail.server.ResourceContextId;
import io.skysail.server.app.demo.DemoApplication;
import io.skysail.server.app.demo.timetable.course.Course;
import io.skysail.server.app.demo.timetable.timetables.Timetable;
import io.skysail.server.restlet.resources.PostEntityServerResource;
public class PostCourseResource extends PostEntityServerResource<Course> {
private DemoApplication app;
public PostCourseResource() {
addToContext(ResourceContextId.LINK_TITLE, "Create new ");
}
@Override
protected void doInit() throws ResourceException {
app = (DemoApplication) getApplication();
}
@Override
public Course createEntityTemplate() {
return new Course();
}
@Override
public void addEntity(Course entity) {
// Subject subject = SecurityUtils.getSubject();
Timetable entityRoot = app.getTtRepo().findOne(getAttribute("id"));
entityRoot.getCourses().add(entity);
app.getTtRepo().update(entityRoot, app.getApplicationModel());
}
@Override
public String redirectTo() {
return super.redirectTo(CoursesResource.class);
}
}
|
apache-2.0
|
mdoering/backbone
|
life/Plantae/Magnoliophyta/Magnoliopsida/Malvales/Malvaceae/Sida/Sida virgata/README.md
|
168
|
# Sida virgata Hook. SPECIES
#### Status
ACCEPTED
#### According to
International Plant Names Index
#### Published in
null
#### Original name
null
### Remarks
null
|
apache-2.0
|
bubichain/blockchain
|
test/testcase/testng/InterfaceTest-1.8/src/cases/SubmitTxTest.java
|
3761
|
package cases;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import org.testng.annotations.Test;
import cn.bubi.tools.acc.Sign;
import net.sf.json.JSONObject;
import utils.APIUtil;
import utils.HttpUtil;
import utils.Result;
import utils.SignUtil;
import utils.TxUtil;
import base.TestBase;
@Test
public class SubmitTxTest extends TestBase{
/*
* verify signatures is exist
*/
// @Test
public void signaturesCheck(){
String tran_blob = null;
JSONObject item = TxUtil.itemBlobonly(tran_blob);
JSONObject items = TxUtil.tx(item);
System.out.println(items);
String result = TxUtil.txPost(items);
int err_code = Result.getErrorCode(result);
check.assertEquals(err_code, 2,"signatures Ϊ¿ÕУÑéʧ°Ü");
}
/*
* verify transaction blob must be Hex
*/
// @Test
public void transaction_blobCheck(){
List signature = new ArrayList();
String tranblob = "qq";
JSONObject item = TxUtil.item(signature,tranblob);
JSONObject items = TxUtil.tx(item);
String result = TxUtil.txPost(items);
int err_code = Result.getErrorCode(result);
check.assertEquals(err_code, 2,"transaction_blob УÑéʧ°Ü");
}
/*
* invalid sign_data
*/
// @Test
public void sign_dataCheck(){
String sign_data = "275*-a525386cf5410ca";
String public_key = APIUtil.generateAcc().get("public_key");
List signature = TxUtil.signatures(sign_data, public_key);
String tranblob = "1231";
JSONObject item = TxUtil.item(signature,tranblob);
JSONObject items = TxUtil.tx(item);
String result = TxUtil.txPost(items);
int err_code = Result.getErrorCode(result);
check.assertEquals(err_code, 2,"signatures Ϊ¿ÕУÑéʧ°Ü");
}
// @Test
public void jsonBodyCheck1(){
//json body check in GetTransactionBlob
String testBody = "test";
String result = SignUtil.getUnSignBlobResult(testBody);
int error_code = Result.getErrorCode(result);
check.assertEquals(error_code, 2,"GetTransactionBlob json body check failed");
}
// @Test
public void jsonBodyCheck2(){
//json body check in SubmitTransaction
String testBody = "test";
String result = HttpUtil.dopost(baseUrl,"submitTransaction",testBody);
int error_code = Result.getErrorCode(result);
check.assertEquals(error_code, 2,"submitTransaction json body check failed");
}
// @Test
public void fileNotFoundCheck(){
String test = "test";
String result = HttpUtil.doget(test);
check.contains(result, "File not found", "File not found func check failed");
}
/*
* verify public_key
*/
// @Test
public void public_keyCheck(){
//get correct sign_data and blob by issueTx;
int type = 2;
int asset_type = 1;
Object asset_issuer = led_acc;
String asset_code = "abc" ;
int asset_amount = 100;
String metadata = "abcd";
String source_address = led_acc;
long sequence_number = Result.seq_num(led_acc);
List opers = TxUtil.operIssue(type, asset_type, asset_issuer, asset_code, asset_amount);
JSONObject tran = TxUtil.tran_json(source_address, fee, sequence_number, metadata, opers);
String blobresult = SignUtil.getUnSignBlobResult(tran);
String blobString = SignUtil.getTranBlobsString(blobresult);
String sign_data;
try {
sign_data = Sign.priKeysign(blobString, led_pri);
String public_key = "aa";
List signature = TxUtil.signatures(sign_data, public_key);
String tranblob = "1231";
JSONObject item = TxUtil.item(signature,blobString);
JSONObject items = TxUtil.tx(item);
String result = TxUtil.txPost(items);
int err_code = Result.getErrorCode(result);
check.assertEquals(err_code, 2,"ÎÞЧµÄpublic_keyУÑéʧ°Ü");
} catch (Exception e) {
e.printStackTrace();
}
}
}
|
apache-2.0
|
harshavardhana/minio
|
cmd/gateway/s3/gateway-s3.go
|
26308
|
/*
* MinIO Cloud Storage, (C) 2017-2020 MinIO, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package s3
import (
"context"
"encoding/json"
"io"
"math/rand"
"net/http"
"net/url"
"strings"
"time"
"github.com/minio/cli"
miniogo "github.com/minio/minio-go/v6"
"github.com/minio/minio-go/v6/pkg/credentials"
"github.com/minio/minio-go/v6/pkg/tags"
minio "github.com/minio/minio/cmd"
"github.com/minio/minio-go/v6/pkg/encrypt"
"github.com/minio/minio-go/v6/pkg/s3utils"
xhttp "github.com/minio/minio/cmd/http"
"github.com/minio/minio/cmd/logger"
"github.com/minio/minio/pkg/auth"
"github.com/minio/minio/pkg/bucket/policy"
)
const (
s3Backend = "s3"
)
func init() {
const s3GatewayTemplate = `NAME:
{{.HelpName}} - {{.Usage}}
USAGE:
{{.HelpName}} {{if .VisibleFlags}}[FLAGS]{{end}} [ENDPOINT]
{{if .VisibleFlags}}
FLAGS:
{{range .VisibleFlags}}{{.}}
{{end}}{{end}}
ENDPOINT:
s3 server endpoint. Default ENDPOINT is https://s3.amazonaws.com
EXAMPLES:
1. Start minio gateway server for AWS S3 backend
{{.Prompt}} {{.EnvVarSetCommand}} MINIO_ACCESS_KEY{{.AssignmentOperator}}accesskey
{{.Prompt}} {{.EnvVarSetCommand}} MINIO_SECRET_KEY{{.AssignmentOperator}}secretkey
{{.Prompt}} {{.HelpName}}
2. Start minio gateway server for AWS S3 backend with edge caching enabled
{{.Prompt}} {{.EnvVarSetCommand}} MINIO_ACCESS_KEY{{.AssignmentOperator}}accesskey
{{.Prompt}} {{.EnvVarSetCommand}} MINIO_SECRET_KEY{{.AssignmentOperator}}secretkey
{{.Prompt}} {{.EnvVarSetCommand}} MINIO_CACHE_DRIVES{{.AssignmentOperator}}"/mnt/drive1,/mnt/drive2,/mnt/drive3,/mnt/drive4"
{{.Prompt}} {{.EnvVarSetCommand}} MINIO_CACHE_EXCLUDE{{.AssignmentOperator}}"bucket1/*,*.png"
{{.Prompt}} {{.EnvVarSetCommand}} MINIO_CACHE_QUOTA{{.AssignmentOperator}}90
{{.Prompt}} {{.EnvVarSetCommand}} MINIO_CACHE_AFTER{{.AssignmentOperator}}3
{{.Prompt}} {{.EnvVarSetCommand}} MINIO_CACHE_WATERMARK_LOW{{.AssignmentOperator}}75
{{.Prompt}} {{.EnvVarSetCommand}} MINIO_CACHE_WATERMARK_HIGH{{.AssignmentOperator}}85
{{.Prompt}} {{.HelpName}}
`
minio.RegisterGatewayCommand(cli.Command{
Name: s3Backend,
Usage: "Amazon Simple Storage Service (S3)",
Action: s3GatewayMain,
CustomHelpTemplate: s3GatewayTemplate,
HideHelpCommand: true,
})
}
// Handler for 'minio gateway s3' command line.
func s3GatewayMain(ctx *cli.Context) {
args := ctx.Args()
if !ctx.Args().Present() {
args = cli.Args{"https://s3.amazonaws.com"}
}
serverAddr := ctx.GlobalString("address")
if serverAddr == "" || serverAddr == ":"+minio.GlobalMinioDefaultPort {
serverAddr = ctx.String("address")
}
// Validate gateway arguments.
logger.FatalIf(minio.ValidateGatewayArguments(serverAddr, args.First()), "Invalid argument")
// Start the gateway..
minio.StartGateway(ctx, &S3{args.First()})
}
// S3 implements Gateway.
type S3 struct {
host string
}
// Name implements Gateway interface.
func (g *S3) Name() string {
return s3Backend
}
const letterBytes = "abcdefghijklmnopqrstuvwxyz01234569"
const (
letterIdxBits = 6 // 6 bits to represent a letter index
letterIdxMask = 1<<letterIdxBits - 1 // All 1-bits, as many as letterIdxBits
letterIdxMax = 63 / letterIdxBits // # of letter indices fitting in 63 bits
)
// randString generates random names and prepends them with a known prefix.
func randString(n int, src rand.Source, prefix string) string {
b := make([]byte, n)
// A rand.Int63() generates 63 random bits, enough for letterIdxMax letters!
for i, cache, remain := n-1, src.Int63(), letterIdxMax; i >= 0; {
if remain == 0 {
cache, remain = src.Int63(), letterIdxMax
}
if idx := int(cache & letterIdxMask); idx < len(letterBytes) {
b[i] = letterBytes[idx]
i--
}
cache >>= letterIdxBits
remain--
}
return prefix + string(b[0:30-len(prefix)])
}
// Chains all credential types, in the following order:
// - AWS env vars (i.e. AWS_ACCESS_KEY_ID)
// - AWS creds file (i.e. AWS_SHARED_CREDENTIALS_FILE or ~/.aws/credentials)
// - Static credentials provided by user (i.e. MINIO_ACCESS_KEY)
var defaultProviders = []credentials.Provider{
&credentials.EnvAWS{},
&credentials.FileAWSCredentials{},
&credentials.EnvMinio{},
}
// Chains all credential types, in the following order:
// - AWS env vars (i.e. AWS_ACCESS_KEY_ID)
// - AWS creds file (i.e. AWS_SHARED_CREDENTIALS_FILE or ~/.aws/credentials)
// - IAM profile based credentials. (performs an HTTP
// call to a pre-defined endpoint, only valid inside
// configured ec2 instances)
var defaultAWSCredProviders = []credentials.Provider{
&credentials.EnvAWS{},
&credentials.FileAWSCredentials{},
&credentials.IAM{
Client: &http.Client{
Transport: minio.NewGatewayHTTPTransport(),
},
},
&credentials.EnvMinio{},
}
// newS3 - Initializes a new client by auto probing S3 server signature.
func newS3(urlStr string) (*miniogo.Core, error) {
if urlStr == "" {
urlStr = "https://s3.amazonaws.com"
}
u, err := url.Parse(urlStr)
if err != nil {
return nil, err
}
// Override default params if the host is provided
endpoint, secure, err := minio.ParseGatewayEndpoint(urlStr)
if err != nil {
return nil, err
}
var creds *credentials.Credentials
if s3utils.IsAmazonEndpoint(*u) {
// If we see an Amazon S3 endpoint, then we use more ways to fetch backend credentials.
// Specifically IAM style rotating credentials are only supported with AWS S3 endpoint.
creds = credentials.NewChainCredentials(defaultAWSCredProviders)
} else {
creds = credentials.NewChainCredentials(defaultProviders)
}
options := miniogo.Options{
Creds: creds,
Secure: secure,
Region: s3utils.GetRegionFromURL(*u),
BucketLookup: miniogo.BucketLookupAuto,
}
clnt, err := miniogo.NewWithOptions(endpoint, &options)
if err != nil {
return nil, err
}
return &miniogo.Core{Client: clnt}, nil
}
// NewGatewayLayer returns s3 ObjectLayer.
func (g *S3) NewGatewayLayer(creds auth.Credentials) (minio.ObjectLayer, error) {
// creds are ignored here, since S3 gateway implements chaining
// all credentials.
clnt, err := newS3(g.host)
if err != nil {
return nil, err
}
metrics := minio.NewMetrics()
t := &minio.MetricsTransport{
Transport: minio.NewGatewayHTTPTransport(),
Metrics: metrics,
}
// Set custom transport
clnt.SetCustomTransport(t)
probeBucketName := randString(60, rand.NewSource(time.Now().UnixNano()), "probe-bucket-sign-")
// Check if the provided keys are valid.
if _, err = clnt.BucketExists(probeBucketName); err != nil {
if miniogo.ToErrorResponse(err).Code != "AccessDenied" {
return nil, err
}
}
s := s3Objects{
Client: clnt,
Metrics: metrics,
HTTPClient: &http.Client{
Transport: t,
},
}
// Enables single encryption of KMS is configured.
if minio.GlobalKMS != nil {
encS := s3EncObjects{s}
// Start stale enc multipart uploads cleanup routine.
go encS.cleanupStaleEncMultipartUploads(minio.GlobalContext,
minio.GlobalMultipartCleanupInterval, minio.GlobalMultipartExpiry)
return &encS, nil
}
return &s, nil
}
// Production - s3 gateway is production ready.
func (g *S3) Production() bool {
return true
}
// s3Objects implements gateway for MinIO and S3 compatible object storage servers.
type s3Objects struct {
minio.GatewayUnsupported
Client *miniogo.Core
HTTPClient *http.Client
Metrics *minio.Metrics
}
// GetMetrics returns this gateway's metrics
func (l *s3Objects) GetMetrics(ctx context.Context) (*minio.Metrics, error) {
return l.Metrics, nil
}
// Shutdown saves any gateway metadata to disk
// if necessary and reload upon next restart.
func (l *s3Objects) Shutdown(ctx context.Context) error {
return nil
}
// StorageInfo is not relevant to S3 backend.
func (l *s3Objects) StorageInfo(ctx context.Context, _ bool) (si minio.StorageInfo, _ []error) {
si.Backend.Type = minio.BackendGateway
si.Backend.GatewayOnline = minio.IsBackendOnline(ctx, l.HTTPClient, l.Client.EndpointURL().String())
return si, nil
}
// MakeBucket creates a new container on S3 backend.
func (l *s3Objects) MakeBucketWithLocation(ctx context.Context, bucket, location string, lockEnabled bool) error {
if lockEnabled {
return minio.NotImplemented{}
}
// Verify if bucket name is valid.
// We are using a separate helper function here to validate bucket
// names instead of IsValidBucketName() because there is a possibility
// that certains users might have buckets which are non-DNS compliant
// in us-east-1 and we might severely restrict them by not allowing
// access to these buckets.
// Ref - http://docs.aws.amazon.com/AmazonS3/latest/dev/BucketRestrictions.html
if s3utils.CheckValidBucketName(bucket) != nil {
return minio.BucketNameInvalid{Bucket: bucket}
}
err := l.Client.MakeBucket(bucket, location)
if err != nil {
return minio.ErrorRespToObjectError(err, bucket)
}
return err
}
// GetBucketInfo gets bucket metadata..
func (l *s3Objects) GetBucketInfo(ctx context.Context, bucket string) (bi minio.BucketInfo, e error) {
buckets, err := l.Client.ListBuckets()
if err != nil {
// Listbuckets may be disallowed, proceed to check if
// bucket indeed exists, if yes return success.
var ok bool
if ok, err = l.Client.BucketExists(bucket); err != nil {
return bi, minio.ErrorRespToObjectError(err, bucket)
}
if !ok {
return bi, minio.BucketNotFound{Bucket: bucket}
}
return minio.BucketInfo{
Name: bi.Name,
Created: time.Now().UTC(),
}, nil
}
for _, bi := range buckets {
if bi.Name != bucket {
continue
}
return minio.BucketInfo{
Name: bi.Name,
Created: bi.CreationDate,
}, nil
}
return bi, minio.BucketNotFound{Bucket: bucket}
}
// ListBuckets lists all S3 buckets
func (l *s3Objects) ListBuckets(ctx context.Context) ([]minio.BucketInfo, error) {
buckets, err := l.Client.ListBuckets()
if err != nil {
return nil, minio.ErrorRespToObjectError(err)
}
b := make([]minio.BucketInfo, len(buckets))
for i, bi := range buckets {
b[i] = minio.BucketInfo{
Name: bi.Name,
Created: bi.CreationDate,
}
}
return b, err
}
// DeleteBucket deletes a bucket on S3
func (l *s3Objects) DeleteBucket(ctx context.Context, bucket string, forceDelete bool) error {
err := l.Client.RemoveBucket(bucket)
if err != nil {
return minio.ErrorRespToObjectError(err, bucket)
}
return nil
}
// ListObjects lists all blobs in S3 bucket filtered by prefix
func (l *s3Objects) ListObjects(ctx context.Context, bucket string, prefix string, marker string, delimiter string, maxKeys int) (loi minio.ListObjectsInfo, e error) {
result, err := l.Client.ListObjects(bucket, prefix, marker, delimiter, maxKeys)
if err != nil {
return loi, minio.ErrorRespToObjectError(err, bucket)
}
return minio.FromMinioClientListBucketResult(bucket, result), nil
}
// ListObjectsV2 lists all blobs in S3 bucket filtered by prefix
func (l *s3Objects) ListObjectsV2(ctx context.Context, bucket, prefix, continuationToken, delimiter string, maxKeys int, fetchOwner bool, startAfter string) (loi minio.ListObjectsV2Info, e error) {
result, err := l.Client.ListObjectsV2(bucket, prefix, continuationToken, fetchOwner, delimiter, maxKeys, startAfter)
if err != nil {
return loi, minio.ErrorRespToObjectError(err, bucket)
}
return minio.FromMinioClientListBucketV2Result(bucket, result), nil
}
// GetObjectNInfo - returns object info and locked object ReadCloser
func (l *s3Objects) GetObjectNInfo(ctx context.Context, bucket, object string, rs *minio.HTTPRangeSpec, h http.Header, lockType minio.LockType, opts minio.ObjectOptions) (gr *minio.GetObjectReader, err error) {
var objInfo minio.ObjectInfo
objInfo, err = l.GetObjectInfo(ctx, bucket, object, opts)
if err != nil {
return nil, minio.ErrorRespToObjectError(err, bucket, object)
}
var startOffset, length int64
startOffset, length, err = rs.GetOffsetLength(objInfo.Size)
if err != nil {
return nil, minio.ErrorRespToObjectError(err, bucket, object)
}
pr, pw := io.Pipe()
go func() {
err := l.GetObject(ctx, bucket, object, startOffset, length, pw, objInfo.ETag, opts)
pw.CloseWithError(err)
}()
// Setup cleanup function to cause the above go-routine to
// exit in case of partial read
pipeCloser := func() { pr.Close() }
return minio.NewGetObjectReaderFromReader(pr, objInfo, opts, pipeCloser)
}
// GetObject reads an object from S3. Supports additional
// parameters like offset and length which are synonymous with
// HTTP Range requests.
//
// startOffset indicates the starting read location of the object.
// length indicates the total length of the object.
func (l *s3Objects) GetObject(ctx context.Context, bucket string, key string, startOffset int64, length int64, writer io.Writer, etag string, o minio.ObjectOptions) error {
if length < 0 && length != -1 {
return minio.ErrorRespToObjectError(minio.InvalidRange{}, bucket, key)
}
opts := miniogo.GetObjectOptions{}
opts.ServerSideEncryption = o.ServerSideEncryption
if startOffset >= 0 && length >= 0 {
if err := opts.SetRange(startOffset, startOffset+length-1); err != nil {
return minio.ErrorRespToObjectError(err, bucket, key)
}
}
object, _, _, err := l.Client.GetObject(bucket, key, opts)
if err != nil {
return minio.ErrorRespToObjectError(err, bucket, key)
}
defer object.Close()
if _, err := io.Copy(writer, object); err != nil {
return minio.ErrorRespToObjectError(err, bucket, key)
}
return nil
}
// GetObjectInfo reads object info and replies back ObjectInfo
func (l *s3Objects) GetObjectInfo(ctx context.Context, bucket string, object string, opts minio.ObjectOptions) (objInfo minio.ObjectInfo, err error) {
oi, err := l.Client.StatObject(bucket, object, miniogo.StatObjectOptions{
GetObjectOptions: miniogo.GetObjectOptions{
ServerSideEncryption: opts.ServerSideEncryption,
},
})
if err != nil {
return minio.ObjectInfo{}, minio.ErrorRespToObjectError(err, bucket, object)
}
return minio.FromMinioClientObjectInfo(bucket, oi), nil
}
// PutObject creates a new object with the incoming data,
func (l *s3Objects) PutObject(ctx context.Context, bucket string, object string, r *minio.PutObjReader, opts minio.ObjectOptions) (objInfo minio.ObjectInfo, err error) {
data := r.Reader
var tagMap map[string]string
if tagstr, ok := opts.UserDefined[xhttp.AmzObjectTagging]; ok && tagstr != "" {
tagObj, err := tags.ParseObjectTags(tagstr)
if err != nil {
return objInfo, minio.ErrorRespToObjectError(err, bucket, object)
}
tagMap = tagObj.ToMap()
delete(opts.UserDefined, xhttp.AmzObjectTagging)
}
putOpts := miniogo.PutObjectOptions{
UserMetadata: opts.UserDefined,
ServerSideEncryption: opts.ServerSideEncryption,
UserTags: tagMap,
}
oi, err := l.Client.PutObject(bucket, object, data, data.Size(), data.MD5Base64String(), data.SHA256HexString(), putOpts)
if err != nil {
return objInfo, minio.ErrorRespToObjectError(err, bucket, object)
}
// On success, populate the key & metadata so they are present in the notification
oi.Key = object
oi.Metadata = minio.ToMinioClientObjectInfoMetadata(opts.UserDefined)
return minio.FromMinioClientObjectInfo(bucket, oi), nil
}
// CopyObject copies an object from source bucket to a destination bucket.
func (l *s3Objects) CopyObject(ctx context.Context, srcBucket string, srcObject string, dstBucket string, dstObject string, srcInfo minio.ObjectInfo, srcOpts, dstOpts minio.ObjectOptions) (objInfo minio.ObjectInfo, err error) {
if srcOpts.CheckCopyPrecondFn != nil && srcOpts.CheckCopyPrecondFn(srcInfo, "") {
return minio.ObjectInfo{}, minio.PreConditionFailed{}
}
// Set this header such that following CopyObject() always sets the right metadata on the destination.
// metadata input is already a trickled down value from interpreting x-amz-metadata-directive at
// handler layer. So what we have right now is supposed to be applied on the destination object anyways.
// So preserve it by adding "REPLACE" directive to save all the metadata set by CopyObject API.
srcInfo.UserDefined["x-amz-metadata-directive"] = "REPLACE"
srcInfo.UserDefined["x-amz-copy-source-if-match"] = srcInfo.ETag
header := make(http.Header)
if srcOpts.ServerSideEncryption != nil {
encrypt.SSECopy(srcOpts.ServerSideEncryption).Marshal(header)
}
if dstOpts.ServerSideEncryption != nil {
dstOpts.ServerSideEncryption.Marshal(header)
}
for k, v := range header {
srcInfo.UserDefined[k] = v[0]
}
if _, err = l.Client.CopyObject(srcBucket, srcObject, dstBucket, dstObject, srcInfo.UserDefined); err != nil {
return objInfo, minio.ErrorRespToObjectError(err, srcBucket, srcObject)
}
return l.GetObjectInfo(ctx, dstBucket, dstObject, dstOpts)
}
// DeleteObject deletes a blob in bucket
func (l *s3Objects) DeleteObject(ctx context.Context, bucket string, object string) error {
err := l.Client.RemoveObject(bucket, object)
if err != nil {
return minio.ErrorRespToObjectError(err, bucket, object)
}
return nil
}
func (l *s3Objects) DeleteObjects(ctx context.Context, bucket string, objects []string) ([]error, error) {
errs := make([]error, len(objects))
for idx, object := range objects {
errs[idx] = l.DeleteObject(ctx, bucket, object)
}
return errs, nil
}
// ListMultipartUploads lists all multipart uploads.
func (l *s3Objects) ListMultipartUploads(ctx context.Context, bucket string, prefix string, keyMarker string, uploadIDMarker string, delimiter string, maxUploads int) (lmi minio.ListMultipartsInfo, e error) {
result, err := l.Client.ListMultipartUploads(bucket, prefix, keyMarker, uploadIDMarker, delimiter, maxUploads)
if err != nil {
return lmi, err
}
return minio.FromMinioClientListMultipartsInfo(result), nil
}
// NewMultipartUpload upload object in multiple parts
func (l *s3Objects) NewMultipartUpload(ctx context.Context, bucket string, object string, o minio.ObjectOptions) (uploadID string, err error) {
var tagMap map[string]string
if tagStr, ok := o.UserDefined[xhttp.AmzObjectTagging]; ok {
tagObj, err := tags.Parse(tagStr, true)
if err != nil {
return uploadID, minio.ErrorRespToObjectError(err, bucket, object)
}
tagMap = tagObj.ToMap()
delete(o.UserDefined, xhttp.AmzObjectTagging)
}
// Create PutObject options
opts := miniogo.PutObjectOptions{
UserMetadata: o.UserDefined,
ServerSideEncryption: o.ServerSideEncryption,
UserTags: tagMap,
}
uploadID, err = l.Client.NewMultipartUpload(bucket, object, opts)
if err != nil {
return uploadID, minio.ErrorRespToObjectError(err, bucket, object)
}
return uploadID, nil
}
// PutObjectPart puts a part of object in bucket
func (l *s3Objects) PutObjectPart(ctx context.Context, bucket string, object string, uploadID string, partID int, r *minio.PutObjReader, opts minio.ObjectOptions) (pi minio.PartInfo, e error) {
data := r.Reader
info, err := l.Client.PutObjectPart(bucket, object, uploadID, partID, data, data.Size(), data.MD5Base64String(), data.SHA256HexString(), opts.ServerSideEncryption)
if err != nil {
return pi, minio.ErrorRespToObjectError(err, bucket, object)
}
return minio.FromMinioClientObjectPart(info), nil
}
// CopyObjectPart creates a part in a multipart upload by copying
// existing object or a part of it.
func (l *s3Objects) CopyObjectPart(ctx context.Context, srcBucket, srcObject, destBucket, destObject, uploadID string,
partID int, startOffset, length int64, srcInfo minio.ObjectInfo, srcOpts, dstOpts minio.ObjectOptions) (p minio.PartInfo, err error) {
if srcOpts.CheckCopyPrecondFn != nil && srcOpts.CheckCopyPrecondFn(srcInfo, "") {
return minio.PartInfo{}, minio.PreConditionFailed{}
}
srcInfo.UserDefined = map[string]string{
"x-amz-copy-source-if-match": srcInfo.ETag,
}
header := make(http.Header)
if srcOpts.ServerSideEncryption != nil {
encrypt.SSECopy(srcOpts.ServerSideEncryption).Marshal(header)
}
if dstOpts.ServerSideEncryption != nil {
dstOpts.ServerSideEncryption.Marshal(header)
}
for k, v := range header {
srcInfo.UserDefined[k] = v[0]
}
completePart, err := l.Client.CopyObjectPart(srcBucket, srcObject, destBucket, destObject,
uploadID, partID, startOffset, length, srcInfo.UserDefined)
if err != nil {
return p, minio.ErrorRespToObjectError(err, srcBucket, srcObject)
}
p.PartNumber = completePart.PartNumber
p.ETag = completePart.ETag
return p, nil
}
// GetMultipartInfo returns multipart info of the uploadId of the object
func (l *s3Objects) GetMultipartInfo(ctx context.Context, bucket, object, uploadID string, opts minio.ObjectOptions) (result minio.MultipartInfo, err error) {
result.Bucket = bucket
result.Object = object
result.UploadID = uploadID
return result, nil
}
// ListObjectParts returns all object parts for specified object in specified bucket
func (l *s3Objects) ListObjectParts(ctx context.Context, bucket string, object string, uploadID string, partNumberMarker int, maxParts int, opts minio.ObjectOptions) (lpi minio.ListPartsInfo, e error) {
result, err := l.Client.ListObjectParts(bucket, object, uploadID, partNumberMarker, maxParts)
if err != nil {
return lpi, err
}
lpi = minio.FromMinioClientListPartsInfo(result)
if lpi.IsTruncated && maxParts > len(lpi.Parts) {
partNumberMarker = lpi.NextPartNumberMarker
for {
result, err = l.Client.ListObjectParts(bucket, object, uploadID, partNumberMarker, maxParts)
if err != nil {
return lpi, err
}
nlpi := minio.FromMinioClientListPartsInfo(result)
partNumberMarker = nlpi.NextPartNumberMarker
lpi.Parts = append(lpi.Parts, nlpi.Parts...)
if !nlpi.IsTruncated {
break
}
}
}
return lpi, nil
}
// AbortMultipartUpload aborts a ongoing multipart upload
func (l *s3Objects) AbortMultipartUpload(ctx context.Context, bucket string, object string, uploadID string) error {
err := l.Client.AbortMultipartUpload(bucket, object, uploadID)
return minio.ErrorRespToObjectError(err, bucket, object)
}
// CompleteMultipartUpload completes ongoing multipart upload and finalizes object
func (l *s3Objects) CompleteMultipartUpload(ctx context.Context, bucket string, object string, uploadID string, uploadedParts []minio.CompletePart, opts minio.ObjectOptions) (oi minio.ObjectInfo, e error) {
etag, err := l.Client.CompleteMultipartUpload(bucket, object, uploadID, minio.ToMinioClientCompleteParts(uploadedParts))
if err != nil {
return oi, minio.ErrorRespToObjectError(err, bucket, object)
}
return minio.ObjectInfo{Bucket: bucket, Name: object, ETag: strings.Trim(etag, "\"")}, nil
}
// SetBucketPolicy sets policy on bucket
func (l *s3Objects) SetBucketPolicy(ctx context.Context, bucket string, bucketPolicy *policy.Policy) error {
data, err := json.Marshal(bucketPolicy)
if err != nil {
// This should not happen.
logger.LogIf(ctx, err)
return minio.ErrorRespToObjectError(err, bucket)
}
if err := l.Client.SetBucketPolicy(bucket, string(data)); err != nil {
return minio.ErrorRespToObjectError(err, bucket)
}
return nil
}
// GetBucketPolicy will get policy on bucket
func (l *s3Objects) GetBucketPolicy(ctx context.Context, bucket string) (*policy.Policy, error) {
data, err := l.Client.GetBucketPolicy(bucket)
if err != nil {
return nil, minio.ErrorRespToObjectError(err, bucket)
}
bucketPolicy, err := policy.ParseConfig(strings.NewReader(data), bucket)
return bucketPolicy, minio.ErrorRespToObjectError(err, bucket)
}
// DeleteBucketPolicy deletes all policies on bucket
func (l *s3Objects) DeleteBucketPolicy(ctx context.Context, bucket string) error {
if err := l.Client.SetBucketPolicy(bucket, ""); err != nil {
return minio.ErrorRespToObjectError(err, bucket, "")
}
return nil
}
// GetObjectTags gets the tags set on the object
func (l *s3Objects) GetObjectTags(ctx context.Context, bucket string, object string) (*tags.Tags, error) {
var err error
var tagObj *tags.Tags
var tagStr string
var opts minio.ObjectOptions
if _, err = l.GetObjectInfo(ctx, bucket, object, opts); err != nil {
return nil, minio.ErrorRespToObjectError(err, bucket, object)
}
if tagStr, err = l.Client.GetObjectTagging(bucket, object); err != nil {
return nil, minio.ErrorRespToObjectError(err, bucket, object)
}
if tagObj, err = tags.ParseObjectXML(strings.NewReader(tagStr)); err != nil {
return nil, minio.ErrorRespToObjectError(err, bucket, object)
}
return tagObj, err
}
// PutObjectTags attaches the tags to the object
func (l *s3Objects) PutObjectTags(ctx context.Context, bucket, object string, tagStr string) error {
tagObj, err := tags.Parse(tagStr, true)
if err != nil {
return minio.ErrorRespToObjectError(err, bucket, object)
}
if err = l.Client.PutObjectTagging(bucket, object, tagObj.ToMap()); err != nil {
return minio.ErrorRespToObjectError(err, bucket, object)
}
return nil
}
// DeleteObjectTags removes the tags attached to the object
func (l *s3Objects) DeleteObjectTags(ctx context.Context, bucket, object string) error {
if err := l.Client.RemoveObjectTagging(bucket, object); err != nil {
return minio.ErrorRespToObjectError(err, bucket, object)
}
return nil
}
// IsCompressionSupported returns whether compression is applicable for this layer.
func (l *s3Objects) IsCompressionSupported() bool {
return false
}
// IsEncryptionSupported returns whether server side encryption is implemented for this layer.
func (l *s3Objects) IsEncryptionSupported() bool {
return minio.GlobalKMS != nil || len(minio.GlobalGatewaySSE) > 0
}
// IsReady returns whether the layer is ready to take requests.
func (l *s3Objects) IsReady(ctx context.Context) bool {
return minio.IsBackendOnline(ctx, l.HTTPClient, l.Client.EndpointURL().String())
}
func (l *s3Objects) IsTaggingSupported() bool {
return true
}
|
apache-2.0
|
wildcatsoft/Knockout.WinJS
|
gruntfile.js
|
3484
|
module.exports = function (grunt) {
// Project configuration.
grunt.initConfig({
//Read the package.json (optional)
pkg: grunt.file.readJSON('package.json'),
// Metadata.
meta: {
basePath: './',
srcPath: './src/',
deployPath: './bin/',
unittestsPath : "./unittests/"
},
banner: '/*! <%= pkg.name %> - v<%= pkg.version %> - ' +
'<%= grunt.template.today("yyyy-mm-dd") %>\n' +
'* Copyright (c) <%= grunt.template.today("yyyy") %> ',
tsd: {
refresh: {
options: {
// execute a command
command: 'reinstall',
//optional: always get from HEAD
latest: true,
// optional: specify config file
config: '<%= meta.basePath %>/tsd.json',
// experimental: options to pass to tsd.API
opts: {
// props from tsd.Options
}
}
}
},
typescript: {
base: {
src: ['<%= meta.srcPath %>/*.ts'],
dest: '<%= meta.deployPath %>/Knockout.WinJS.js',
options: {
target: 'es5', //or es3
basePath: '.',
sourceMap: true,
declaration: true
}
},
observableTests: {
src: ['<%= meta.srcPath %>/*.ts', '<%= meta.unittestsPath %>/observableTests.ts'],
dest: '<%= meta.deployPath %>/unittests/observableTests.js',
options: {
target: 'es5', //or es3
basePath: '.',
sourceMap: true,
declaration: false
}
},
defaultBindTests: {
src: ['<%= meta.srcPath %>/*.ts', '<%= meta.unittestsPath %>/defaultBindTests.ts'],
dest: '<%= meta.deployPath %>/unittests/defaultBindTests.js',
options: {
target: 'es5', //or es3
basePath: '.',
sourceMap: true,
declaration: false
}
}
},
uglify: {
my_target: {
files: {
'<%= meta.deployPath %>/Knockout.WinJS.min.js': ['<%= meta.deployPath %>/Knockout.WinJS.js']
}
}
},
copy: {
tests: {
files: [
// includes files within path
{ expand: true, src: ['<%= meta.unittestsPath %>/*.html'], dest: '<%= meta.deployPath %>/', filter: 'isFile' },
]
}
}
//concat: {
// options: {
// stripBanners: true
// },
// dist: {
// src: ['<%= meta.srcPath %>/Knockout.WinJS.js', '<%= meta.srcPath %>/defaultBind.js'],
// dest: '<%= meta.deployPath %>/Knockout.WinJS.js'
// }
//}
});
grunt.loadNpmTasks('grunt-tsd');
grunt.loadNpmTasks('grunt-typescript');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-copy');
// Default task
grunt.registerTask('default', ['tsd', 'typescript', 'uglify', 'copy']);
};
|
apache-2.0
|
seqoy/jump
|
JUMPLogger/Libraries/Log4CocoaTouch/Headers/L4DailyRollingFileAppender.h
|
3229
|
#import <Foundation/Foundation.h>
#import "L4FileAppender.h"
#import "NSDate-Calendar.h"
/**
* The accepted constants for L4DailyRollingFileAppenderFrequency's <code>setFrequency:</code> method.
*/
typedef enum L4RollingFrequency
{
never, /**< Never roll the file. */
monthly, /**< Roll the file over every month. */
weekly, /**< Roll the file over every week. */
daily, /**< Roll the file over every day. */
half_daily, /**< Roll the file over every 12 hours. */
hourly, /**< Roll the file over every hour. */
minutely /**< Roll the file over every minute. */
} L4RollingFrequency;
/**
* L4DailyRollingFileAppender extends L4FileAppender so that the underlying file is rolled over at a
* user-chosen frequency. For example, if the fileName is set to /foo/bar.log and the frequency is set
* to daily, on 2001-02-16 at midnight, the logging file /foo/bar.log will be copied to /foo/bar.log.2001-02-16
* and logging for 2001-02-17 will continue in /foo/bar.log until it rolls over the next day.
* It is possible to specify monthly, weekly, half-daily, daily, hourly, or minutely rollover schedules.
*/
@interface L4DailyRollingFileAppender : L4FileAppender
{
L4RollingFrequency rollingFrequency; /**< The frequency with which the file should be rolled.*/
NSCalendarDate* lastRolloverDate; /**< The date the last role-over ocured.*/
}
/**
* This initializer calls the <code>initWithLayout:fileName:rollingFrequency:</code> method with the respective values: nil, nil, never.
*/
- (id)init;
/**
* Initializes an instance of this class with the specified layout, file name, and rolling frequency.
* @param aLayout The layout object for this appender
* @param aName The file path to the file in which you want logging output recorded
* @param aRollingFrequency The frequency at which you want the log file rolled over
*/
- (id)initWithLayout:(L4Layout*)aLayout fileName:(NSString*)aName rollingFrequency:(L4RollingFrequency)aRollingFrequency;
/**
* Initializes an instance from properties. The properties supported are:
* - <c>RollingFrequency:</c> specifies the frequency when the log file should be rolled. See L4RollingFrequency.
* If the values are being set in a file, this is how they could look:
* <code>log4cocoa.appender.A2.RollingFrequency=daily</code>
* @param initProperties the proterties to use.
*/
- (id) initWithProperties: (L4Properties *) initProperties;
/**
* Returns this object's rolling frequency.
* @return This object's rolling frequency
*/
- (L4RollingFrequency)rollingFrequency;
/**
Sets the object's rolling frequency
* @param aRollingFrequency The desired rolling frequency for this object
*/
- (void)setRollingFrequency: (L4RollingFrequency)aRollingFrequency;
@end
/**
* These methods are "protected" methods and should not be called except by subclasses.
*/
@interface L4DailyRollingFileAppender (ProtectedMethods)
/**
This method overrides the implementation in L4WriterAppender. It checks if the rolling frequency has been exceeded.
* If so, it rolls the file over.
* @param event An L4LoggingEvent that contains logging specific information.
*/
- (void)subAppend: (L4LoggingEvent*)event;
@end
// For copyright & license, see COPYRIGHT.txt.
|
apache-2.0
|
phoenixsbk/kvmmgr
|
backend/manager/modules/restapi/interface/definition/xjc/org/ovirt/engine/api/model/Feature.java
|
8468
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.5-b10
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2015.06.13 at 03:17:43 PM CST
//
package org.ovirt.engine.api.model;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for Feature complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="Feature">
* <complexContent>
* <extension base="{}BaseResource">
* <sequence>
* <element ref="{}transparent_hugepages" minOccurs="0"/>
* <element ref="{}gluster_volumes" minOccurs="0"/>
* <element ref="{}vm_device_types" minOccurs="0"/>
* <element ref="{}storage_types" minOccurs="0"/>
* <element ref="{}storage_domain" minOccurs="0"/>
* <element ref="{}nic" minOccurs="0"/>
* <element ref="{}api" minOccurs="0"/>
* <element ref="{}host" minOccurs="0"/>
* <element ref="{}url" minOccurs="0"/>
* <element ref="{}headers" minOccurs="0"/>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Feature", propOrder = {
"transparentHugepages",
"glusterVolumes",
"vmDeviceTypes",
"storageTypes",
"storageDomain",
"nic",
"api",
"host",
"url",
"headers"
})
public class Feature
extends BaseResource
{
@XmlElement(name = "transparent_hugepages")
protected TransparentHugePages transparentHugepages;
@XmlElement(name = "gluster_volumes")
protected GlusterVolumes glusterVolumes;
@XmlElement(name = "vm_device_types")
protected VmDeviceTypes vmDeviceTypes;
@XmlElement(name = "storage_types")
protected StorageTypes storageTypes;
@XmlElement(name = "storage_domain")
protected StorageDomain storageDomain;
protected NIC nic;
protected API api;
protected Host host;
protected Url url;
protected Headers headers;
/**
* Gets the value of the transparentHugepages property.
*
* @return
* possible object is
* {@link TransparentHugePages }
*
*/
public TransparentHugePages getTransparentHugepages() {
return transparentHugepages;
}
/**
* Sets the value of the transparentHugepages property.
*
* @param value
* allowed object is
* {@link TransparentHugePages }
*
*/
public void setTransparentHugepages(TransparentHugePages value) {
this.transparentHugepages = value;
}
public boolean isSetTransparentHugepages() {
return (this.transparentHugepages!= null);
}
/**
* Gets the value of the glusterVolumes property.
*
* @return
* possible object is
* {@link GlusterVolumes }
*
*/
public GlusterVolumes getGlusterVolumes() {
return glusterVolumes;
}
/**
* Sets the value of the glusterVolumes property.
*
* @param value
* allowed object is
* {@link GlusterVolumes }
*
*/
public void setGlusterVolumes(GlusterVolumes value) {
this.glusterVolumes = value;
}
public boolean isSetGlusterVolumes() {
return (this.glusterVolumes!= null);
}
/**
* Gets the value of the vmDeviceTypes property.
*
* @return
* possible object is
* {@link VmDeviceTypes }
*
*/
public VmDeviceTypes getVmDeviceTypes() {
return vmDeviceTypes;
}
/**
* Sets the value of the vmDeviceTypes property.
*
* @param value
* allowed object is
* {@link VmDeviceTypes }
*
*/
public void setVmDeviceTypes(VmDeviceTypes value) {
this.vmDeviceTypes = value;
}
public boolean isSetVmDeviceTypes() {
return (this.vmDeviceTypes!= null);
}
/**
* Gets the value of the storageTypes property.
*
* @return
* possible object is
* {@link StorageTypes }
*
*/
public StorageTypes getStorageTypes() {
return storageTypes;
}
/**
* Sets the value of the storageTypes property.
*
* @param value
* allowed object is
* {@link StorageTypes }
*
*/
public void setStorageTypes(StorageTypes value) {
this.storageTypes = value;
}
public boolean isSetStorageTypes() {
return (this.storageTypes!= null);
}
/**
* Gets the value of the storageDomain property.
*
* @return
* possible object is
* {@link StorageDomain }
*
*/
public StorageDomain getStorageDomain() {
return storageDomain;
}
/**
* Sets the value of the storageDomain property.
*
* @param value
* allowed object is
* {@link StorageDomain }
*
*/
public void setStorageDomain(StorageDomain value) {
this.storageDomain = value;
}
public boolean isSetStorageDomain() {
return (this.storageDomain!= null);
}
/**
* Gets the value of the nic property.
*
* @return
* possible object is
* {@link NIC }
*
*/
public NIC getNic() {
return nic;
}
/**
* Sets the value of the nic property.
*
* @param value
* allowed object is
* {@link NIC }
*
*/
public void setNic(NIC value) {
this.nic = value;
}
public boolean isSetNic() {
return (this.nic!= null);
}
/**
* Gets the value of the api property.
*
* @return
* possible object is
* {@link API }
*
*/
public API getApi() {
return api;
}
/**
* Sets the value of the api property.
*
* @param value
* allowed object is
* {@link API }
*
*/
public void setApi(API value) {
this.api = value;
}
public boolean isSetApi() {
return (this.api!= null);
}
/**
* Gets the value of the host property.
*
* @return
* possible object is
* {@link Host }
*
*/
public Host getHost() {
return host;
}
/**
* Sets the value of the host property.
*
* @param value
* allowed object is
* {@link Host }
*
*/
public void setHost(Host value) {
this.host = value;
}
public boolean isSetHost() {
return (this.host!= null);
}
/**
* Gets the value of the url property.
*
* @return
* possible object is
* {@link Url }
*
*/
public Url getUrl() {
return url;
}
/**
* Sets the value of the url property.
*
* @param value
* allowed object is
* {@link Url }
*
*/
public void setUrl(Url value) {
this.url = value;
}
public boolean isSetUrl() {
return (this.url!= null);
}
/**
* Gets the value of the headers property.
*
* @return
* possible object is
* {@link Headers }
*
*/
public Headers getHeaders() {
return headers;
}
/**
* Sets the value of the headers property.
*
* @param value
* allowed object is
* {@link Headers }
*
*/
public void setHeaders(Headers value) {
this.headers = value;
}
public boolean isSetHeaders() {
return (this.headers!= null);
}
}
|
apache-2.0
|
mdoering/backbone
|
life/Plantae/Paskovia/README.md
|
192
|
# Paskovia E. Purkynová, 1970 GENUS
#### Status
ACCEPTED
#### According to
Interim Register of Marine and Nonmarine Genera
#### Published in
null
#### Original name
null
### Remarks
null
|
apache-2.0
|
olivierlemasle/murano
|
murano/tests/unit/dsl/foundation/object_model.py
|
2019
|
# Copyright (c) 2014 Mirantis, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
from six.moves import range
from murano.dsl import helpers
class Object(object):
def __init__(self, __name, **kwargs):
self.data = {
'?': {
'type': __name,
'id': helpers.generate_id()
}
}
self.data.update(kwargs)
@property
def id(self):
return self.data['?']['id']
@property
def type_name(self):
return self.data['?']['type']
class Attribute(object):
def __init__(self, obj, key, value):
self._value = value
self._key = key
self._obj = obj
@property
def obj(self):
return self._obj
@property
def key(self):
return self._key
@property
def value(self):
return self._value
class Ref(object):
def __init__(self, obj):
self._id = obj.id
@property
def id(self):
return self._id
def build_model(root):
if isinstance(root, dict):
for key, value in root.items():
root[key] = build_model(value)
elif isinstance(root, list):
for i in range(len(root)):
root[i] = build_model(root[i])
elif isinstance(root, Object):
return build_model(root.data)
elif isinstance(root, Ref):
return root.id
elif isinstance(root, Attribute):
return [root.obj.id, root.obj.type_name, root.key, root.value]
return root
|
apache-2.0
|
nickgaski/docs
|
openwhisk/nl/it/openwhisk_packages.md
|
15451
|
---
copyright:
years: 2016, 2017
lastupdated: "2017-02-27"
---
{:shortdesc: .shortdesc}
{:codeblock: .codeblock}
{:screen: .screen}
{:pre: .pre}
# Utilizzo e creazione di pacchetti {{site.data.keyword.openwhisk_short}}
{: #openwhisk_packages}
In {{site.data.keyword.openwhisk_short}}, puoi utilizzare i pacchetti per raggruppare una serie di azioni correlate e condividerle con altri.
Un pacchetto può includere *azioni* e *feed*.
- Un'azione è una parte di codice eseguita su {{site.data.keyword.openwhisk_short}}. Ad esempio, il pacchetto Cloudant include azioni per la lettura e scrittura di record in un database Cloudant.
- Il feed serve a configurare un'origine eventi esterna per l'attivazione di eventi trigger. Ad esempio,il pacchetto Alarm include un feed che può attivare un trigger alla frequenza indicata.
Ogni entità {{site.data.keyword.openwhisk_short}}, inclusi i pacchetti, appartiene a uno *spazio dei nomi* e il nome completo di un'entità è `/nomeSpazioNomi[/nomePacchetto]/nomeEntità`. Per ulteriori informazioni, vedi le [linee guida di denominazione](./openwhisk_reference.html#openwhisk_entities).
Le seguenti sezioni descrivono come navigare tra i pacchetti e utilizzare i trigger e i feed al loro interno. Inoltre, se sei interessato a portare i tuoi pacchetti nel catalogo, leggi le sezioni sulla creazione e la condivisione dei pacchetti.
## Esplorazione dei pacchetti
{: #openwhisk_packagedisplay}
In {{site.data.keyword.openwhisk_short}} sono registrati vari pacchetti. Puoi ottenere un elenco dei pacchetti di uno spazio dei nomi, elencare le entità di un pacchetto e ottenere una descrizione delle singole entità di un pacchetto.
1. Ottieni un elenco dei pacchetti dello spazio dei nomi `/whisk.system`.
```
wsk package list /whisk.system
```
{: pre}
```
packages
/whisk.system/cloudant shared
/whisk.system/alarms shared
/whisk.system/watson shared
/whisk.system/websocket shared
/whisk.system/weather shared
/whisk.system/system shared
/whisk.system/utils shared
/whisk.system/slack shared
/whisk.system/samples shared
/whisk.system/github shared
/whisk.system/pushnotifications shared
```
2. Ottieni un elenco delle entità del pacchetto `/whisk.system/cloudant`.
```
wsk package get --summary /whisk.system/cloudant
```
{: pre}
```
package /whisk.system/cloudant: Cloudant database service
(params: {{site.data.keyword.Bluemix_notm}}ServiceName host username password dbname includeDoc overwrite)
action /whisk.system/cloudant/read: Read document from database
action /whisk.system/cloudant/write: Write document to database
feed /whisk.system/cloudant/changes: Database change feed
```
Questo output mostra che il pacchetto Cloudant fornisce due azioni, `read` e `write`, e un solo feed trigger denominato `changes`. Il feed `changes` causa l'attivazione dei trigger all'aggiunta di documenti al database Cloudant specificato.
Il pacchetto Cloudant definisce, inoltre, i parametri `username`, `password`, `host` e `port`. Affinché le azioni e i feed siano significativi, è necessario specificare questi parametri. Ad esempio, i parametri permettono alle azioni di operare su un account Cloudant specifico.
3. Ottieni una descrizione dell'azione `/whisk.system/cloudant/read`.
```
wsk action get --summary /whisk.system/cloudant/read
```
{: pre}
```
action /whisk.system/cloudant/read: Read document from database
(params: dbname includeDoc id)
```
Questo output mostra che l'azione Cloudant `read` richiede tre parametri, compreso il database e l'ID documento da richiamare.
## Chiamata di azioni in un pacchetto
{: #openwhisk_package_invoke}
Puoi chiamare le azioni di un pacchetto con la stessa modalità seguita per le altre azioni. La seguente procedura mostra come chiamare l'azione `greeting` nel pacchetto `/whisk.system/samples` con parametri differenti.
1. Ottieni una descrizione dell'azione `/whisk.system/samples/greeting`.
```
wsk action get --summary /whisk.system/samples/greeting
```
{: pre}
```
action /whisk.system/samples/greeting: Print a friendly greeting
(params: name place)
```
Nota che l'azione `greeting` utilizza due parametri: `name` e `place`.
2. Chiama l'azione senza alcun parametro.
```
wsk action invoke --blocking --result /whisk.system/samples/greeting
```
{: pre}
```json
{
"payload": "Hello, stranger from somewhere!"
}
```
L'output è un messaggio generico perché non è stato specificato alcun parametro.
3. Chiama l'azione con parametri.
```
wsk action invoke --blocking --result /whisk.system/samples/greeting --param name Mork --param place Ork
```
{: pre}
```json
{
"payload": "Hello, Mork from Ork!"
}
```
Nota che l'output utilizza i parametri `name` e `place` che sono stati trasmessi all'azione.
## Creazione e utilizzo dei bind dei pacchetti
{: #openwhisk_package_bind}
Sebbene tu possa utilizzare direttamente le entità di un pacchetto, potresti trovarti ogni volta a trasmettere gli stessi parametri all'azione. Puoi evitare questo problema eseguendo il bind di un pacchetto e specificando parametri predefiniti. Questi parametri vengono ereditati dalle azioni del pacchetto.
Ad esempio, nel pacchetto `/whisk.system/cloudant` puoi impostare valori `username`, `password` e `dbname` predefiniti in un bind del pacchetto, che verranno trasmessi automaticamente a qualsiasi azione del pacchetto.
Nel semplice esempio di seguito riportato, puoi eseguire il bind del pacchetto `/whisk.system/samples`.
1. Esegui il bind del pacchetto `/whisk.system/samples` e importa un valore predefinito per il parametro `place`.
```
wsk package bind /whisk.system/samples valhallaSamples --param place Valhalla
```
{: pre}
```
ok: created binding valhallaSamples
```
2. Ottieni una descrizione del bind del pacchetto.
```
wsk package get --summary valhallaSamples
```
{: pre}
```
package /myNamespace/valhallaSamples
action /myNamespace/valhallaSamples/greeting: Returns a friendly greeting
action /myNamespace/valhallaSamples/wordCount: Count words in a string
action /myNamespace/valhallaSamples/helloWorld: Demonstrates logging facilities
action /myNamespace/valhallaSamples/curl: Curl a host url
```
Nota che tutte le azioni del pacchetto `/whisk.system/samples` sono disponibili nel bind del pacchetto `valhallaSamples`.
3. Chiama un'azione nel bind del pacchetto.
```
wsk action invoke --blocking --result valhallaSamples/greeting --param name Odin
```
{: pre}
```
{
"payload": "Hello, Odin from Valhalla!"
}
```
Osserva dal risultato che l'azione eredita il parametro `place` che hai impostato
quando hai creato il bind del pacchetto `valhallaSamples`.
4. Chiama un'azione e sovrascrivi il valore predefinito del parametro.
```
wsk action invoke --blocking --result valhallaSamples/greeting --param name Odin --param place Asgard
```
{: pre}
```
{
"payload": "Hello, Odin from Asgard!"
}
```
Nota che il valore del parametro `place` specificato con la chiamata dell'azione sovrascrive il valore predefinito impostato nel bind del pacchetto `valhallaSamples`.
## Creazione e utilizzo dei feed di trigger
{: #openwhisk_package_trigger}
I feed possono essere opportunamente utilizzati per configurare un'origine eventi esterna per l'attivazione di questi eventi in un trigger {{site.data.keyword.openwhisk_short}}. Questo esempio mostra come utilizzare un feed nel pacchetto Allarmi per attivare un trigger e come utilizzare una regola per chiamare un'azione ogni secondo.
1. Ottieni una descrizione del feed del pacchetto `/whisk.system/alarms`.
```
wsk package get --summary /whisk.system/alarms
```
{: pre}
```
package /whisk.system/alarms
feed /whisk.system/alarms/alarm
```
```
wsk action get --summary /whisk.system/alarms/alarm
```
{: pre}
```
action /whisk.system/alarms/alarm: Fire trigger when alarm occurs
(params: cron trigger_payload)
```
Il feed `/whisk.system/alarms/alarm` utilizza due parametri:
- `cron`: una specifica crontab che indica quando attivare il trigger.
- `trigger_payload`: il valore del parametro payload da impostare in ogni evento di trigger.
2. Crea un trigger che si attiva ogni 8 secondi.
```
wsk trigger create everyEightSeconds --feed /whisk.system/alarms/alarm -p cron "*/8 * * * * *" -p trigger_payload "{\"name\":\"Mork\", \"place\":\"Ork\"}"
```
{: pre}
```
ok: created trigger feed everyEightSeconds
```
3. Crea un file 'hello.js' con il seguente codice azione.
```javascript
function main(params) {
return {payload: 'Hello, ' + params.name + ' from ' + params.place};
}
```
{: codeblock}
4. Accertati che l'azione esista.
```
wsk action update hello hello.js
```
{: pre}
5. Crea una regola che chiama l'azione `hello` ogni volta che viene attivato il trigger `everyEightSeconds`.
```
wsk rule create myRule everyEightSeconds hello
```
{: pre}
```
ok: created rule myRule
```
6. Controlla che l'azione venga richiamata tramite il polling dei log di attivazione.
```
wsk activation poll
```
{: pre}
Ogni otto secondi verranno effettuate attivazioni per il trigger, la regola e l'azione. L'azione riceve i parametri `{"name":"Mork", "place":"Ork"}` su ogni chiamata.
## Creazione di un pacchetto
{: #openwhisk_packages_create}
Un pacchetto serve a organizzare un insieme di feed e azioni correlati.
Inoltre, consente la condivisione dei parametri tra tutte le entità del pacchetto.
Per creare un pacchetto personalizzato che contenga un'azione semplice, prova il seguente esempio:
1. Crea un pacchetto denominato "custom".
```
wsk package create custom
```
{: pre}
```
ok: created package custom
```
2. Ottieni un riepilogo del pacchetto.
```
wsk package get --summary custom
```
{: pre}
```
package /myNamespace/custom
```
Nota che il pacchetto è vuoto.
3. Crea un file denominato `identity.js` che contenga il seguente codice azione. Questa azione restituisce tutti i parametri di input.
```javascript
function main(args) { return args; }
```
{: codeblock}
4. Crea un'azione `identity` nel package `custom`.
```
wsk action create custom/identity identity.js
```
{: pre}
```
ok: created action custom/identity
```
Per creare un'azione in un pacchetto devi prefissare il nome dell'azione con un nome pacchetto. La nidificazione dei pacchetti non è consentita. Un pacchetto può contenere solo azioni e non può contenere un altro pacchetto.
5. Ottieni nuovamente un riepilogo del pacchetto.
```
wsk package get --summary custom
```
{: pre}
```
package /myNamespace/custom
action /myNamespace/custom/identity
```
Ora l'azione `custom/identity` viene mostrata nel tuo spazio dei nomi.
6. Chiama l'azione del pacchetto.
```
wsk action invoke --blocking --result custom/identity
```
{: pre}
```json
{}
```
Puoi impostare parametri predefiniti per tutte le entità di un pacchetto. Per far ciò, imposta i parametri a livello di pacchetto ereditati da tutte le azioni del pacchetto. Per vedere come funziona, prova il seguente esempio:
1. Aggiorna il pacchetto `custom` con due parametri: `city` e `country`.
```
wsk package update custom --param city Austin --param country USA
```
{: pre}
```
ok: updated package custom
```
2. Visualizza i parametri del pacchetto e dell'azione e osserva in che modo l'azione `identity` del pacchetto eredita parametri dal pacchetto.
```
wsk package get custom parameters
```
{: pre}
```
ok: got package custom, displaying field parameters
```
```json
[
{
"key": "city",
"value": "Austin"
},
{
"key": "country",
"value": "USA"
}
]
```
```
wsk action get custom/identity parameters
```
{: pre}
```
ok: got action custom/identity, , displaying field parameters
```
```json
[
{
"key": "city",
"value": "Austin"
},
{
"key": "country",
"value": "USA"
}
]
```
3. Chiama l'azione identity senza alcun parametro, al fine di verificare che l'azione erediti effettivamente i parametri.
```
wsk action invoke --blocking --result custom/identity
```
{: pre}
```json
{
"city": "Austin",
"country": "USA"
}
```
4. Chiama l'azione identity con alcuni parametri. I parametri della chiamata vengono uniti ai parametri del pacchetto e li sostituiscono.
```
wsk action invoke --blocking --result custom/identity --param city Dallas --param state Texas
```
{: pre}
```json
{
"city": "Dallas",
"country": "USA",
"state": "Texas"
}
```
## Condivisione di un pacchetto
{: #openwhisk_packages_share}
Una volta eseguiti i test e il debug delle azioni e dei feed compresi in un pacchetto, quest'ultimo può essere condiviso con tutti gli utenti {{site.data.keyword.openwhisk_short}}. La condivisione del pacchetto consente agli utenti di eseguire il bind del pacchetto, chiamare azioni del pacchetto e creare azioni sequenza e regole {{site.data.keyword.openwhisk_short}}.
1. Condividi i pacchetti con tutti gli utenti:
```
wsk package update custom --shared yes
```
{: pre}
```
ok: updated package custom
```
2. Visualizza la proprietà `publish` del pacchetto per verificare che ora sia true.
```
wsk package get custom publish
```
{: pre}
```
ok: got package custom, displaying field publish
```
```json
true
```
Altri utenti possono ora utilizzare il tuo pacchetto `custom`, includendo il bind del pacchetto o richiamando direttamente un'azione in esso contenuta. Gli altri utenti devono conoscere i nomi completi del pacchetto per poterne eseguire il bind o per chiamare azioni in esso contenute. Le azioni e i feed di un pacchetto condiviso sono *pubblici*. Se il pacchetto è privato, lo sono anche tutti i suoi contenuti.
1. Ottieni una descrizione del pacchetto per visualizzare i nomi completi del pacchetto e dell'azione.
```
wsk package get --summary custom
```
{: pre}
```
package /myNamespace/custom
action /myNamespace/custom/identity
```
Nell'esempio precedente, hai utilizzato lo spazio dei nomi `myNamespace`, che appare nel nome completo.
|
apache-2.0
|
BUPTAnderson/apache-hive-2.1.1-src
|
ql/src/java/org/apache/hadoop/hive/ql/parse/TypeCheckProcFactory.java
|
56329
|
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.hadoop.hive.ql.parse;
import java.math.BigDecimal;
import java.sql.Date;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.HashSet;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.Stack;
import org.apache.commons.lang.StringUtils;
import org.apache.commons.lang3.math.NumberUtils;
import org.apache.hadoop.hive.common.type.HiveChar;
import org.apache.hadoop.hive.common.type.HiveDecimal;
import org.apache.hadoop.hive.common.type.HiveIntervalDayTime;
import org.apache.hadoop.hive.common.type.HiveIntervalYearMonth;
import org.apache.hadoop.hive.ql.ErrorMsg;
import org.apache.hadoop.hive.ql.exec.ColumnInfo;
import org.apache.hadoop.hive.ql.exec.FunctionInfo;
import org.apache.hadoop.hive.ql.exec.FunctionRegistry;
import org.apache.hadoop.hive.ql.exec.UDFArgumentException;
import org.apache.hadoop.hive.ql.exec.UDFArgumentLengthException;
import org.apache.hadoop.hive.ql.exec.UDFArgumentTypeException;
import org.apache.hadoop.hive.ql.lib.DefaultGraphWalker;
import org.apache.hadoop.hive.ql.lib.DefaultRuleDispatcher;
import org.apache.hadoop.hive.ql.lib.Dispatcher;
import org.apache.hadoop.hive.ql.lib.GraphWalker;
import org.apache.hadoop.hive.ql.lib.Node;
import org.apache.hadoop.hive.ql.lib.NodeProcessor;
import org.apache.hadoop.hive.ql.lib.NodeProcessorCtx;
import org.apache.hadoop.hive.ql.lib.Rule;
import org.apache.hadoop.hive.ql.lib.RuleRegExp;
import org.apache.hadoop.hive.ql.optimizer.ConstantPropagateProcFactory;
import org.apache.hadoop.hive.ql.plan.ExprNodeColumnDesc;
import org.apache.hadoop.hive.ql.plan.ExprNodeColumnListDesc;
import org.apache.hadoop.hive.ql.plan.ExprNodeConstantDesc;
import org.apache.hadoop.hive.ql.plan.ExprNodeDesc;
import org.apache.hadoop.hive.ql.plan.ExprNodeDescUtils;
import org.apache.hadoop.hive.ql.plan.ExprNodeFieldDesc;
import org.apache.hadoop.hive.ql.plan.ExprNodeGenericFuncDesc;
import org.apache.hadoop.hive.ql.udf.SettableUDF;
import org.apache.hadoop.hive.ql.udf.generic.GenericUDF;
import org.apache.hadoop.hive.ql.udf.generic.GenericUDFBaseCompare;
import org.apache.hadoop.hive.ql.udf.generic.GenericUDFNvl;
import org.apache.hadoop.hive.ql.udf.generic.GenericUDFOPAnd;
import org.apache.hadoop.hive.ql.udf.generic.GenericUDFOPEqual;
import org.apache.hadoop.hive.ql.udf.generic.GenericUDFOPNot;
import org.apache.hadoop.hive.ql.udf.generic.GenericUDFOPOr;
import org.apache.hadoop.hive.ql.udf.generic.GenericUDFWhen;
import org.apache.hadoop.hive.serde.serdeConstants;
import org.apache.hadoop.hive.serde2.objectinspector.ConstantObjectInspector;
import org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector;
import org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector.Category;
import org.apache.hadoop.hive.serde2.objectinspector.primitive.PrimitiveObjectInspectorUtils;
import org.apache.hadoop.hive.serde2.objectinspector.PrimitiveObjectInspector;
import org.apache.hadoop.hive.serde2.typeinfo.CharTypeInfo;
import org.apache.hadoop.hive.serde2.typeinfo.DecimalTypeInfo;
import org.apache.hadoop.hive.serde2.typeinfo.ListTypeInfo;
import org.apache.hadoop.hive.serde2.typeinfo.MapTypeInfo;
import org.apache.hadoop.hive.serde2.typeinfo.PrimitiveTypeInfo;
import org.apache.hadoop.hive.serde2.typeinfo.StructTypeInfo;
import org.apache.hadoop.hive.serde2.typeinfo.TypeInfo;
import org.apache.hadoop.hive.serde2.typeinfo.TypeInfoFactory;
import org.apache.hadoop.hive.serde2.typeinfo.TypeInfoUtils;
import org.apache.hadoop.hive.serde2.typeinfo.VarcharTypeInfo;
import org.apache.hadoop.io.NullWritable;
import org.apache.hive.common.util.DateUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.google.common.collect.Lists;
/**
* The Factory for creating typecheck processors. The typecheck processors are
* used to processes the syntax trees for expressions and convert them into
* expression Node Descriptor trees. They also introduce the correct conversion
* functions to do proper implicit conversion.
*/
public class TypeCheckProcFactory {
protected static final Logger LOG = LoggerFactory.getLogger(TypeCheckProcFactory.class
.getName());
protected TypeCheckProcFactory() {
// prevent instantiation
}
/**
* Function to do groupby subexpression elimination. This is called by all the
* processors initially. As an example, consider the query select a+b,
* count(1) from T group by a+b; Then a+b is already precomputed in the group
* by operators key, so we substitute a+b in the select list with the internal
* column name of the a+b expression that appears in the in input row
* resolver.
*
* @param nd
* The node that is being inspected.
* @param procCtx
* The processor context.
*
* @return exprNodeColumnDesc.
*/
public static ExprNodeDesc processGByExpr(Node nd, Object procCtx)
throws SemanticException {
// We recursively create the exprNodeDesc. Base cases: when we encounter
// a column ref, we convert that into an exprNodeColumnDesc; when we
// encounter
// a constant, we convert that into an exprNodeConstantDesc. For others we
// just
// build the exprNodeFuncDesc with recursively built children.
ASTNode expr = (ASTNode) nd;
TypeCheckCtx ctx = (TypeCheckCtx) procCtx;
if (!ctx.isUseCaching()) {
return null;
}
RowResolver input = ctx.getInputRR();
ExprNodeDesc desc = null;
if ((ctx == null) || (input == null) || (!ctx.getAllowGBExprElimination())) {
return null;
}
// If the current subExpression is pre-calculated, as in Group-By etc.
ColumnInfo colInfo = input.getExpression(expr);
if (colInfo != null) {
desc = new ExprNodeColumnDesc(colInfo);
ASTNode source = input.getExpressionSource(expr);
if (source != null) {
ctx.getUnparseTranslator().addCopyTranslation(expr, source);
}
return desc;
}
return desc;
}
public static Map<ASTNode, ExprNodeDesc> genExprNode(ASTNode expr, TypeCheckCtx tcCtx)
throws SemanticException {
return genExprNode(expr, tcCtx, new TypeCheckProcFactory());
}
protected static Map<ASTNode, ExprNodeDesc> genExprNode(ASTNode expr,
TypeCheckCtx tcCtx, TypeCheckProcFactory tf) throws SemanticException {
// Create the walker, the rules dispatcher and the context.
// create a walker which walks the tree in a DFS manner while maintaining
// the operator stack. The dispatcher
// generates the plan from the operator tree
Map<Rule, NodeProcessor> opRules = new LinkedHashMap<Rule, NodeProcessor>();
opRules.put(new RuleRegExp("R1", HiveParser.TOK_NULL + "%"),
tf.getNullExprProcessor());
opRules.put(new RuleRegExp("R2", HiveParser.Number + "%|" +
HiveParser.TinyintLiteral + "%|" +
HiveParser.SmallintLiteral + "%|" +
HiveParser.BigintLiteral + "%|" +
HiveParser.DecimalLiteral + "%"),
tf.getNumExprProcessor());
opRules
.put(new RuleRegExp("R3", HiveParser.Identifier + "%|"
+ HiveParser.StringLiteral + "%|" + HiveParser.TOK_CHARSETLITERAL + "%|"
+ HiveParser.TOK_STRINGLITERALSEQUENCE + "%|"
+ "%|" + HiveParser.KW_IF + "%|" + HiveParser.KW_CASE + "%|"
+ HiveParser.KW_WHEN + "%|" + HiveParser.KW_IN + "%|"
+ HiveParser.KW_ARRAY + "%|" + HiveParser.KW_MAP + "%|"
+ HiveParser.KW_STRUCT + "%|" + HiveParser.KW_EXISTS + "%|"
+ HiveParser.TOK_SUBQUERY_OP_NOTIN + "%"),
tf.getStrExprProcessor());
opRules.put(new RuleRegExp("R4", HiveParser.KW_TRUE + "%|"
+ HiveParser.KW_FALSE + "%"), tf.getBoolExprProcessor());
opRules.put(new RuleRegExp("R5", HiveParser.TOK_DATELITERAL + "%|"
+ HiveParser.TOK_TIMESTAMPLITERAL + "%"), tf.getDateTimeExprProcessor());
opRules.put(new RuleRegExp("R6",
HiveParser.TOK_INTERVAL_YEAR_MONTH_LITERAL + "%|"
+ HiveParser.TOK_INTERVAL_DAY_TIME_LITERAL + "%|"
+ HiveParser.TOK_INTERVAL_YEAR_LITERAL + "%|"
+ HiveParser.TOK_INTERVAL_MONTH_LITERAL + "%|"
+ HiveParser.TOK_INTERVAL_DAY_LITERAL + "%|"
+ HiveParser.TOK_INTERVAL_HOUR_LITERAL + "%|"
+ HiveParser.TOK_INTERVAL_MINUTE_LITERAL + "%|"
+ HiveParser.TOK_INTERVAL_SECOND_LITERAL + "%"), tf.getIntervalExprProcessor());
opRules.put(new RuleRegExp("R7", HiveParser.TOK_TABLE_OR_COL + "%"),
tf.getColumnExprProcessor());
opRules.put(new RuleRegExp("R8", HiveParser.TOK_SUBQUERY_OP + "%"),
tf.getSubQueryExprProcessor());
// The dispatcher fires the processor corresponding to the closest matching
// rule and passes the context along
Dispatcher disp = new DefaultRuleDispatcher(tf.getDefaultExprProcessor(),
opRules, tcCtx);
GraphWalker ogw = new DefaultGraphWalker(disp);
// Create a list of top nodes
ArrayList<Node> topNodes = Lists.<Node>newArrayList(expr);
HashMap<Node, Object> nodeOutputs = new LinkedHashMap<Node, Object>();
ogw.startWalking(topNodes, nodeOutputs);
return convert(nodeOutputs);
}
// temporary type-safe casting
private static Map<ASTNode, ExprNodeDesc> convert(Map<Node, Object> outputs) {
Map<ASTNode, ExprNodeDesc> converted = new LinkedHashMap<ASTNode, ExprNodeDesc>();
for (Map.Entry<Node, Object> entry : outputs.entrySet()) {
if (entry.getKey() instanceof ASTNode &&
(entry.getValue() == null || entry.getValue() instanceof ExprNodeDesc)) {
converted.put((ASTNode)entry.getKey(), (ExprNodeDesc)entry.getValue());
} else {
LOG.warn("Invalid type entry " + entry);
}
}
return converted;
}
/**
* Processor for processing NULL expression.
*/
public static class NullExprProcessor implements NodeProcessor {
@Override
public Object process(Node nd, Stack<Node> stack, NodeProcessorCtx procCtx,
Object... nodeOutputs) throws SemanticException {
TypeCheckCtx ctx = (TypeCheckCtx) procCtx;
if (ctx.getError() != null) {
return null;
}
ExprNodeDesc desc = TypeCheckProcFactory.processGByExpr(nd, procCtx);
if (desc != null) {
return desc;
}
return new ExprNodeConstantDesc(TypeInfoFactory.getPrimitiveTypeInfoFromPrimitiveWritable(NullWritable.class), null);
}
}
/**
* Factory method to get NullExprProcessor.
*
* @return NullExprProcessor.
*/
public NullExprProcessor getNullExprProcessor() {
return new NullExprProcessor();
}
/**
* Processor for processing numeric constants.
*/
public static class NumExprProcessor implements NodeProcessor {
@Override
public Object process(Node nd, Stack<Node> stack, NodeProcessorCtx procCtx,
Object... nodeOutputs) throws SemanticException {
TypeCheckCtx ctx = (TypeCheckCtx) procCtx;
if (ctx.getError() != null) {
return null;
}
ExprNodeDesc desc = TypeCheckProcFactory.processGByExpr(nd, procCtx);
if (desc != null) {
return desc;
}
Number v = null;
ASTNode expr = (ASTNode) nd;
// The expression can be any one of Double, Long and Integer. We
// try to parse the expression in that order to ensure that the
// most specific type is used for conversion.
try {
if (expr.getText().endsWith("L")) {
// Literal bigint.
v = Long.valueOf(expr.getText().substring(
0, expr.getText().length() - 1));
} else if (expr.getText().endsWith("S")) {
// Literal smallint.
v = Short.valueOf(expr.getText().substring(
0, expr.getText().length() - 1));
} else if (expr.getText().endsWith("Y")) {
// Literal tinyint.
v = Byte.valueOf(expr.getText().substring(
0, expr.getText().length() - 1));
} else if (expr.getText().endsWith("BD")) {
// Literal decimal
String strVal = expr.getText().substring(0, expr.getText().length() - 2);
HiveDecimal hd = HiveDecimal.create(strVal);
int prec = 1;
int scale = 0;
if (hd != null) {
prec = hd.precision();
scale = hd.scale();
}
DecimalTypeInfo typeInfo = TypeInfoFactory.getDecimalTypeInfo(prec, scale);
return new ExprNodeConstantDesc(typeInfo, hd);
} else {
v = Double.valueOf(expr.getText());
v = Long.valueOf(expr.getText());
v = Integer.valueOf(expr.getText());
}
} catch (NumberFormatException e) {
// do nothing here, we will throw an exception in the following block
}
if (v == null) {
throw new SemanticException(ErrorMsg.INVALID_NUMERICAL_CONSTANT
.getMsg(expr));
}
return new ExprNodeConstantDesc(v);
}
}
/**
* Factory method to get NumExprProcessor.
*
* @return NumExprProcessor.
*/
public NumExprProcessor getNumExprProcessor() {
return new NumExprProcessor();
}
/**
* Processor for processing string constants.
*/
public static class StrExprProcessor implements NodeProcessor {
@Override
public Object process(Node nd, Stack<Node> stack, NodeProcessorCtx procCtx,
Object... nodeOutputs) throws SemanticException {
TypeCheckCtx ctx = (TypeCheckCtx) procCtx;
if (ctx.getError() != null) {
return null;
}
ExprNodeDesc desc = TypeCheckProcFactory.processGByExpr(nd, procCtx);
if (desc != null) {
return desc;
}
ASTNode expr = (ASTNode) nd;
String str = null;
switch (expr.getToken().getType()) {
case HiveParser.StringLiteral:
str = BaseSemanticAnalyzer.unescapeSQLString(expr.getText());
break;
case HiveParser.TOK_STRINGLITERALSEQUENCE:
StringBuilder sb = new StringBuilder();
for (Node n : expr.getChildren()) {
sb.append(
BaseSemanticAnalyzer.unescapeSQLString(((ASTNode)n).getText()));
}
str = sb.toString();
break;
case HiveParser.TOK_CHARSETLITERAL:
str = BaseSemanticAnalyzer.charSetString(expr.getChild(0).getText(),
expr.getChild(1).getText());
break;
default:
// HiveParser.identifier | HiveParse.KW_IF | HiveParse.KW_LEFT |
// HiveParse.KW_RIGHT
str = BaseSemanticAnalyzer.unescapeIdentifier(expr.getText().toLowerCase());
break;
}
return new ExprNodeConstantDesc(TypeInfoFactory.stringTypeInfo, str);
}
}
/**
* Factory method to get StrExprProcessor.
*
* @return StrExprProcessor.
*/
public StrExprProcessor getStrExprProcessor() {
return new StrExprProcessor();
}
/**
* Processor for boolean constants.
*/
public static class BoolExprProcessor implements NodeProcessor {
@Override
public Object process(Node nd, Stack<Node> stack, NodeProcessorCtx procCtx,
Object... nodeOutputs) throws SemanticException {
TypeCheckCtx ctx = (TypeCheckCtx) procCtx;
if (ctx.getError() != null) {
return null;
}
ExprNodeDesc desc = TypeCheckProcFactory.processGByExpr(nd, procCtx);
if (desc != null) {
return desc;
}
ASTNode expr = (ASTNode) nd;
Boolean bool = null;
switch (expr.getToken().getType()) {
case HiveParser.KW_TRUE:
bool = Boolean.TRUE;
break;
case HiveParser.KW_FALSE:
bool = Boolean.FALSE;
break;
default:
assert false;
}
return new ExprNodeConstantDesc(TypeInfoFactory.booleanTypeInfo, bool);
}
}
/**
* Factory method to get BoolExprProcessor.
*
* @return BoolExprProcessor.
*/
public BoolExprProcessor getBoolExprProcessor() {
return new BoolExprProcessor();
}
/**
* Processor for date constants.
*/
public static class DateTimeExprProcessor implements NodeProcessor {
@Override
public Object process(Node nd, Stack<Node> stack, NodeProcessorCtx procCtx,
Object... nodeOutputs) throws SemanticException {
TypeCheckCtx ctx = (TypeCheckCtx) procCtx;
if (ctx.getError() != null) {
return null;
}
ExprNodeDesc desc = TypeCheckProcFactory.processGByExpr(nd, procCtx);
if (desc != null) {
return desc;
}
ASTNode expr = (ASTNode) nd;
String timeString = BaseSemanticAnalyzer.stripQuotes(expr.getText());
// Get the string value and convert to a Date value.
try {
// todo replace below with joda-time, which supports timezone
if (expr.getType() == HiveParser.TOK_DATELITERAL) {
PrimitiveTypeInfo typeInfo = TypeInfoFactory.dateTypeInfo;
return new ExprNodeConstantDesc(typeInfo,
Date.valueOf(timeString));
}
if (expr.getType() == HiveParser.TOK_TIMESTAMPLITERAL) {
return new ExprNodeConstantDesc(TypeInfoFactory.timestampTypeInfo,
Timestamp.valueOf(timeString));
}
throw new IllegalArgumentException("Invalid time literal type " + expr.getType());
} catch (Exception err) {
throw new SemanticException(
"Unable to convert time literal '" + timeString + "' to time value.", err);
}
}
}
/**
* Factory method to get DateExprProcessor.
*
* @return DateExprProcessor.
*/
public DateTimeExprProcessor getDateTimeExprProcessor() {
return new DateTimeExprProcessor();
}
/**
* Processor for interval constants.
*/
public static class IntervalExprProcessor implements NodeProcessor {
private static final BigDecimal NANOS_PER_SEC_BD = new BigDecimal(DateUtils.NANOS_PER_SEC);
@Override
public Object process(Node nd, Stack<Node> stack, NodeProcessorCtx procCtx,
Object... nodeOutputs) throws SemanticException {
TypeCheckCtx ctx = (TypeCheckCtx) procCtx;
if (ctx.getError() != null) {
return null;
}
ExprNodeDesc desc = TypeCheckProcFactory.processGByExpr(nd, procCtx);
if (desc != null) {
return desc;
}
ASTNode expr = (ASTNode) nd;
String intervalString = BaseSemanticAnalyzer.stripQuotes(expr.getText());
// Get the string value and convert to a Interval value.
try {
switch (expr.getType()) {
case HiveParser.TOK_INTERVAL_YEAR_MONTH_LITERAL:
return new ExprNodeConstantDesc(TypeInfoFactory.intervalYearMonthTypeInfo,
HiveIntervalYearMonth.valueOf(intervalString));
case HiveParser.TOK_INTERVAL_DAY_TIME_LITERAL:
return new ExprNodeConstantDesc(TypeInfoFactory.intervalDayTimeTypeInfo,
HiveIntervalDayTime.valueOf(intervalString));
case HiveParser.TOK_INTERVAL_YEAR_LITERAL:
return new ExprNodeConstantDesc(TypeInfoFactory.intervalYearMonthTypeInfo,
new HiveIntervalYearMonth(Integer.parseInt(intervalString), 0));
case HiveParser.TOK_INTERVAL_MONTH_LITERAL:
return new ExprNodeConstantDesc(TypeInfoFactory.intervalYearMonthTypeInfo,
new HiveIntervalYearMonth(0, Integer.parseInt(intervalString)));
case HiveParser.TOK_INTERVAL_DAY_LITERAL:
return new ExprNodeConstantDesc(TypeInfoFactory.intervalDayTimeTypeInfo,
new HiveIntervalDayTime(Integer.parseInt(intervalString), 0, 0, 0, 0));
case HiveParser.TOK_INTERVAL_HOUR_LITERAL:
return new ExprNodeConstantDesc(TypeInfoFactory.intervalDayTimeTypeInfo,
new HiveIntervalDayTime(0, Integer.parseInt(intervalString), 0, 0, 0));
case HiveParser.TOK_INTERVAL_MINUTE_LITERAL:
return new ExprNodeConstantDesc(TypeInfoFactory.intervalDayTimeTypeInfo,
new HiveIntervalDayTime(0, 0, Integer.parseInt(intervalString), 0, 0));
case HiveParser.TOK_INTERVAL_SECOND_LITERAL:
BigDecimal bd = new BigDecimal(intervalString);
BigDecimal bdSeconds = new BigDecimal(bd.toBigInteger());
BigDecimal bdNanos = bd.subtract(bdSeconds);
return new ExprNodeConstantDesc(TypeInfoFactory.intervalDayTimeTypeInfo,
new HiveIntervalDayTime(0, 0, 0, bdSeconds.intValueExact(),
bdNanos.multiply(NANOS_PER_SEC_BD).intValue()));
default:
throw new IllegalArgumentException("Invalid time literal type " + expr.getType());
}
} catch (Exception err) {
throw new SemanticException(
"Unable to convert interval literal '" + intervalString + "' to interval value.", err);
}
}
}
/**
* Factory method to get IntervalExprProcessor.
*
* @return IntervalExprProcessor.
*/
public IntervalExprProcessor getIntervalExprProcessor() {
return new IntervalExprProcessor();
}
/**
* Processor for table columns.
*/
public static class ColumnExprProcessor implements NodeProcessor {
@Override
public Object process(Node nd, Stack<Node> stack, NodeProcessorCtx procCtx,
Object... nodeOutputs) throws SemanticException {
TypeCheckCtx ctx = (TypeCheckCtx) procCtx;
if (ctx.getError() != null) {
return null;
}
ExprNodeDesc desc = TypeCheckProcFactory.processGByExpr(nd, procCtx);
if (desc != null) {
return desc;
}
ASTNode expr = (ASTNode) nd;
ASTNode parent = stack.size() > 1 ? (ASTNode) stack.get(stack.size() - 2) : null;
RowResolver input = ctx.getInputRR();
if (expr.getType() != HiveParser.TOK_TABLE_OR_COL) {
ctx.setError(ErrorMsg.INVALID_COLUMN.getMsg(expr), expr);
return null;
}
assert (expr.getChildCount() == 1);
String tableOrCol = BaseSemanticAnalyzer.unescapeIdentifier(expr
.getChild(0).getText());
boolean isTableAlias = input.hasTableAlias(tableOrCol);
ColumnInfo colInfo = input.get(null, tableOrCol);
if (isTableAlias) {
if (colInfo != null) {
if (parent != null && parent.getType() == HiveParser.DOT) {
// It's a table alias.
return null;
}
// It's a column.
return toExprNodeDesc(colInfo);
} else {
// It's a table alias.
// We will process that later in DOT.
return null;
}
} else {
if (colInfo == null) {
// It's not a column or a table alias.
if (input.getIsExprResolver()) {
ASTNode exprNode = expr;
if (!stack.empty()) {
ASTNode tmp = (ASTNode) stack.pop();
if (!stack.empty()) {
exprNode = (ASTNode) stack.peek();
}
stack.push(tmp);
}
ctx.setError(ErrorMsg.NON_KEY_EXPR_IN_GROUPBY.getMsg(exprNode), expr);
return null;
} else {
List<String> possibleColumnNames = input.getReferenceableColumnAliases(tableOrCol, -1);
String reason = String.format("(possible column names are: %s)",
StringUtils.join(possibleColumnNames, ", "));
ctx.setError(ErrorMsg.INVALID_TABLE_OR_COLUMN.getMsg(expr.getChild(0), reason),
expr);
LOG.debug(ErrorMsg.INVALID_TABLE_OR_COLUMN.toString() + ":"
+ input.toString());
return null;
}
} else {
// It's a column.
return toExprNodeDesc(colInfo);
}
}
}
}
private static ExprNodeDesc toExprNodeDesc(ColumnInfo colInfo) {
ObjectInspector inspector = colInfo.getObjectInspector();
if (inspector instanceof ConstantObjectInspector &&
inspector instanceof PrimitiveObjectInspector) {
PrimitiveObjectInspector poi = (PrimitiveObjectInspector) inspector;
Object constant = ((ConstantObjectInspector) inspector).getWritableConstantValue();
return new ExprNodeConstantDesc(colInfo.getType(), poi.getPrimitiveJavaObject(constant));
}
// non-constant or non-primitive constants
ExprNodeColumnDesc column = new ExprNodeColumnDesc(colInfo);
column.setSkewedCol(colInfo.isSkewedCol());
return column;
}
/**
* Factory method to get ColumnExprProcessor.
*
* @return ColumnExprProcessor.
*/
public ColumnExprProcessor getColumnExprProcessor() {
return new ColumnExprProcessor();
}
/**
* The default processor for typechecking.
*/
public static class DefaultExprProcessor implements NodeProcessor {
static HashMap<Integer, String> specialUnaryOperatorTextHashMap;
static HashMap<Integer, String> specialFunctionTextHashMap;
static HashMap<Integer, String> conversionFunctionTextHashMap;
static HashSet<Integer> windowingTokens;
static {
specialUnaryOperatorTextHashMap = new HashMap<Integer, String>();
specialUnaryOperatorTextHashMap.put(HiveParser.PLUS, "positive");
specialUnaryOperatorTextHashMap.put(HiveParser.MINUS, "negative");
specialFunctionTextHashMap = new HashMap<Integer, String>();
specialFunctionTextHashMap.put(HiveParser.TOK_ISNULL, "isnull");
specialFunctionTextHashMap.put(HiveParser.TOK_ISNOTNULL, "isnotnull");
conversionFunctionTextHashMap = new HashMap<Integer, String>();
conversionFunctionTextHashMap.put(HiveParser.TOK_BOOLEAN,
serdeConstants.BOOLEAN_TYPE_NAME);
conversionFunctionTextHashMap.put(HiveParser.TOK_TINYINT,
serdeConstants.TINYINT_TYPE_NAME);
conversionFunctionTextHashMap.put(HiveParser.TOK_SMALLINT,
serdeConstants.SMALLINT_TYPE_NAME);
conversionFunctionTextHashMap.put(HiveParser.TOK_INT,
serdeConstants.INT_TYPE_NAME);
conversionFunctionTextHashMap.put(HiveParser.TOK_BIGINT,
serdeConstants.BIGINT_TYPE_NAME);
conversionFunctionTextHashMap.put(HiveParser.TOK_FLOAT,
serdeConstants.FLOAT_TYPE_NAME);
conversionFunctionTextHashMap.put(HiveParser.TOK_DOUBLE,
serdeConstants.DOUBLE_TYPE_NAME);
conversionFunctionTextHashMap.put(HiveParser.TOK_STRING,
serdeConstants.STRING_TYPE_NAME);
conversionFunctionTextHashMap.put(HiveParser.TOK_CHAR,
serdeConstants.CHAR_TYPE_NAME);
conversionFunctionTextHashMap.put(HiveParser.TOK_VARCHAR,
serdeConstants.VARCHAR_TYPE_NAME);
conversionFunctionTextHashMap.put(HiveParser.TOK_BINARY,
serdeConstants.BINARY_TYPE_NAME);
conversionFunctionTextHashMap.put(HiveParser.TOK_DATE,
serdeConstants.DATE_TYPE_NAME);
conversionFunctionTextHashMap.put(HiveParser.TOK_TIMESTAMP,
serdeConstants.TIMESTAMP_TYPE_NAME);
conversionFunctionTextHashMap.put(HiveParser.TOK_INTERVAL_YEAR_MONTH,
serdeConstants.INTERVAL_YEAR_MONTH_TYPE_NAME);
conversionFunctionTextHashMap.put(HiveParser.TOK_INTERVAL_DAY_TIME,
serdeConstants.INTERVAL_DAY_TIME_TYPE_NAME);
conversionFunctionTextHashMap.put(HiveParser.TOK_DECIMAL,
serdeConstants.DECIMAL_TYPE_NAME);
windowingTokens = new HashSet<Integer>();
windowingTokens.add(HiveParser.KW_OVER);
windowingTokens.add(HiveParser.TOK_PARTITIONINGSPEC);
windowingTokens.add(HiveParser.TOK_DISTRIBUTEBY);
windowingTokens.add(HiveParser.TOK_SORTBY);
windowingTokens.add(HiveParser.TOK_CLUSTERBY);
windowingTokens.add(HiveParser.TOK_WINDOWSPEC);
windowingTokens.add(HiveParser.TOK_WINDOWRANGE);
windowingTokens.add(HiveParser.TOK_WINDOWVALUES);
windowingTokens.add(HiveParser.KW_UNBOUNDED);
windowingTokens.add(HiveParser.KW_PRECEDING);
windowingTokens.add(HiveParser.KW_FOLLOWING);
windowingTokens.add(HiveParser.KW_CURRENT);
windowingTokens.add(HiveParser.TOK_TABSORTCOLNAMEASC);
windowingTokens.add(HiveParser.TOK_TABSORTCOLNAMEDESC);
windowingTokens.add(HiveParser.TOK_NULLS_FIRST);
windowingTokens.add(HiveParser.TOK_NULLS_LAST);
}
protected static boolean isRedundantConversionFunction(ASTNode expr,
boolean isFunction, ArrayList<ExprNodeDesc> children) {
if (!isFunction) {
return false;
}
// conversion functions take a single parameter
if (children.size() != 1) {
return false;
}
String funcText = conversionFunctionTextHashMap.get(((ASTNode) expr
.getChild(0)).getType());
// not a conversion function
if (funcText == null) {
return false;
}
// return true when the child type and the conversion target type is the
// same
return ((PrimitiveTypeInfo) children.get(0).getTypeInfo()).getTypeName()
.equalsIgnoreCase(funcText);
}
public static String getFunctionText(ASTNode expr, boolean isFunction) {
String funcText = null;
if (!isFunction) {
// For operator, the function name is the operator text, unless it's in
// our special dictionary
if (expr.getChildCount() == 1) {
funcText = specialUnaryOperatorTextHashMap.get(expr.getType());
}
if (funcText == null) {
funcText = expr.getText();
}
} else {
// For TOK_FUNCTION, the function name is stored in the first child,
// unless it's in our
// special dictionary.
assert (expr.getChildCount() >= 1);
int funcType = ((ASTNode) expr.getChild(0)).getType();
funcText = specialFunctionTextHashMap.get(funcType);
if (funcText == null) {
funcText = conversionFunctionTextHashMap.get(funcType);
}
if (funcText == null) {
funcText = ((ASTNode) expr.getChild(0)).getText();
}
}
return BaseSemanticAnalyzer.unescapeIdentifier(funcText);
}
/**
* This function create an ExprNodeDesc for a UDF function given the
* children (arguments). It will insert implicit type conversion functions
* if necessary.
*
* @throws UDFArgumentException
*/
static ExprNodeDesc getFuncExprNodeDescWithUdfData(String udfName, TypeInfo typeInfo,
ExprNodeDesc... children) throws UDFArgumentException {
FunctionInfo fi;
try {
fi = FunctionRegistry.getFunctionInfo(udfName);
} catch (SemanticException e) {
throw new UDFArgumentException(e);
}
if (fi == null) {
throw new UDFArgumentException(udfName + " not found.");
}
GenericUDF genericUDF = fi.getGenericUDF();
if (genericUDF == null) {
throw new UDFArgumentException(udfName
+ " is an aggregation function or a table function.");
}
// Add udfData to UDF if necessary
if (typeInfo != null) {
if (genericUDF instanceof SettableUDF) {
((SettableUDF)genericUDF).setTypeInfo(typeInfo);
}
}
List<ExprNodeDesc> childrenList = new ArrayList<ExprNodeDesc>(children.length);
childrenList.addAll(Arrays.asList(children));
return ExprNodeGenericFuncDesc.newInstance(genericUDF,
childrenList);
}
public static ExprNodeDesc getFuncExprNodeDesc(String udfName,
ExprNodeDesc... children) throws UDFArgumentException {
return getFuncExprNodeDescWithUdfData(udfName, null, children);
}
protected void validateUDF(ASTNode expr, boolean isFunction, TypeCheckCtx ctx, FunctionInfo fi,
List<ExprNodeDesc> children, GenericUDF genericUDF) throws SemanticException {
// Detect UDTF's in nested SELECT, GROUP BY, etc as they aren't
// supported
if (fi.getGenericUDTF() != null) {
throw new SemanticException(ErrorMsg.UDTF_INVALID_LOCATION.getMsg());
}
// UDAF in filter condition, group-by caluse, param of funtion, etc.
if (fi.getGenericUDAFResolver() != null) {
if (isFunction) {
throw new SemanticException(ErrorMsg.UDAF_INVALID_LOCATION.getMsg((ASTNode) expr
.getChild(0)));
} else {
throw new SemanticException(ErrorMsg.UDAF_INVALID_LOCATION.getMsg(expr));
}
}
if (!ctx.getAllowStatefulFunctions() && (genericUDF != null)) {
if (FunctionRegistry.isStateful(genericUDF)) {
throw new SemanticException(ErrorMsg.UDF_STATEFUL_INVALID_LOCATION.getMsg());
}
}
}
protected ExprNodeDesc getXpathOrFuncExprNodeDesc(ASTNode expr,
boolean isFunction, ArrayList<ExprNodeDesc> children, TypeCheckCtx ctx)
throws SemanticException, UDFArgumentException {
// return the child directly if the conversion is redundant.
if (isRedundantConversionFunction(expr, isFunction, children)) {
assert (children.size() == 1);
assert (children.get(0) != null);
return children.get(0);
}
String funcText = getFunctionText(expr, isFunction);
ExprNodeDesc desc;
if (funcText.equals(".")) {
// "." : FIELD Expression
assert (children.size() == 2);
// Only allow constant field name for now
assert (children.get(1) instanceof ExprNodeConstantDesc);
ExprNodeDesc object = children.get(0);
ExprNodeConstantDesc fieldName = (ExprNodeConstantDesc) children.get(1);
assert (fieldName.getValue() instanceof String);
// Calculate result TypeInfo
String fieldNameString = (String) fieldName.getValue();
TypeInfo objectTypeInfo = object.getTypeInfo();
// Allow accessing a field of list element structs directly from a list
boolean isList = (object.getTypeInfo().getCategory() == ObjectInspector.Category.LIST);
if (isList) {
objectTypeInfo = ((ListTypeInfo) objectTypeInfo).getListElementTypeInfo();
}
if (objectTypeInfo.getCategory() != Category.STRUCT) {
throw new SemanticException(ErrorMsg.INVALID_DOT.getMsg(expr));
}
TypeInfo t = ((StructTypeInfo) objectTypeInfo).getStructFieldTypeInfo(fieldNameString);
if (isList) {
t = TypeInfoFactory.getListTypeInfo(t);
}
desc = new ExprNodeFieldDesc(t, children.get(0), fieldNameString, isList);
} else if (funcText.equals("[")) {
// "[]" : LSQUARE/INDEX Expression
if (!ctx.getallowIndexExpr())
throw new SemanticException(ErrorMsg.INVALID_FUNCTION.getMsg(expr));
assert (children.size() == 2);
// Check whether this is a list or a map
TypeInfo myt = children.get(0).getTypeInfo();
if (myt.getCategory() == Category.LIST) {
// Only allow integer index for now
if (!TypeInfoUtils.implicitConvertible(children.get(1).getTypeInfo(),
TypeInfoFactory.intTypeInfo)) {
throw new SemanticException(SemanticAnalyzer.generateErrorMessage(
expr, ErrorMsg.INVALID_ARRAYINDEX_TYPE.getMsg()));
}
// Calculate TypeInfo
TypeInfo t = ((ListTypeInfo) myt).getListElementTypeInfo();
desc = new ExprNodeGenericFuncDesc(t, FunctionRegistry.getGenericUDFForIndex(), children);
} else if (myt.getCategory() == Category.MAP) {
if (!TypeInfoUtils.implicitConvertible(children.get(1).getTypeInfo(),
((MapTypeInfo) myt).getMapKeyTypeInfo())) {
throw new SemanticException(ErrorMsg.INVALID_MAPINDEX_TYPE
.getMsg(expr));
}
// Calculate TypeInfo
TypeInfo t = ((MapTypeInfo) myt).getMapValueTypeInfo();
desc = new ExprNodeGenericFuncDesc(t, FunctionRegistry.getGenericUDFForIndex(), children);
} else {
throw new SemanticException(ErrorMsg.NON_COLLECTION_TYPE.getMsg(expr, myt.getTypeName()));
}
} else {
// other operators or functions
FunctionInfo fi = FunctionRegistry.getFunctionInfo(funcText);
if (fi == null) {
if (isFunction) {
throw new SemanticException(ErrorMsg.INVALID_FUNCTION
.getMsg((ASTNode) expr.getChild(0)));
} else {
throw new SemanticException(ErrorMsg.INVALID_FUNCTION.getMsg(expr));
}
}
// getGenericUDF() actually clones the UDF. Just call it once and reuse.
GenericUDF genericUDF = fi.getGenericUDF();
if (!fi.isNative()) {
ctx.getUnparseTranslator().addIdentifierTranslation(
(ASTNode) expr.getChild(0));
}
// Handle type casts that may contain type parameters
if (isFunction) {
ASTNode funcNameNode = (ASTNode)expr.getChild(0);
switch (funcNameNode.getType()) {
case HiveParser.TOK_CHAR:
// Add type params
CharTypeInfo charTypeInfo = ParseUtils.getCharTypeInfo(funcNameNode);
if (genericUDF != null) {
((SettableUDF)genericUDF).setTypeInfo(charTypeInfo);
}
break;
case HiveParser.TOK_VARCHAR:
VarcharTypeInfo varcharTypeInfo = ParseUtils.getVarcharTypeInfo(funcNameNode);
if (genericUDF != null) {
((SettableUDF)genericUDF).setTypeInfo(varcharTypeInfo);
}
break;
case HiveParser.TOK_DECIMAL:
DecimalTypeInfo decTypeInfo = ParseUtils.getDecimalTypeTypeInfo(funcNameNode);
if (genericUDF != null) {
((SettableUDF)genericUDF).setTypeInfo(decTypeInfo);
}
break;
default:
// Do nothing
break;
}
}
validateUDF(expr, isFunction, ctx, fi, children, genericUDF);
// Try to infer the type of the constant only if there are two
// nodes, one of them is column and the other is numeric const
if (genericUDF instanceof GenericUDFBaseCompare
&& children.size() == 2
&& ((children.get(0) instanceof ExprNodeConstantDesc
&& children.get(1) instanceof ExprNodeColumnDesc)
|| (children.get(0) instanceof ExprNodeColumnDesc
&& children.get(1) instanceof ExprNodeConstantDesc))) {
int constIdx =
children.get(0) instanceof ExprNodeConstantDesc ? 0 : 1;
String constType = children.get(constIdx).getTypeString().toLowerCase();
String columnType = children.get(1 - constIdx).getTypeString().toLowerCase();
final PrimitiveTypeInfo colTypeInfo = TypeInfoFactory.getPrimitiveTypeInfo(columnType);
// Try to narrow type of constant
Object constVal = ((ExprNodeConstantDesc) children.get(constIdx)).getValue();
try {
if (PrimitiveObjectInspectorUtils.intTypeEntry.equals(colTypeInfo.getPrimitiveTypeEntry()) && (constVal instanceof Number || constVal instanceof String)) {
children.set(constIdx, new ExprNodeConstantDesc(new Integer(constVal.toString())));
} else if (PrimitiveObjectInspectorUtils.longTypeEntry.equals(colTypeInfo.getPrimitiveTypeEntry()) && (constVal instanceof Number || constVal instanceof String)) {
children.set(constIdx, new ExprNodeConstantDesc(new Long(constVal.toString())));
}else if (PrimitiveObjectInspectorUtils.doubleTypeEntry.equals(colTypeInfo.getPrimitiveTypeEntry()) && (constVal instanceof Number || constVal instanceof String)) {
children.set(constIdx, new ExprNodeConstantDesc(new Double(constVal.toString())));
} else if (PrimitiveObjectInspectorUtils.floatTypeEntry.equals(colTypeInfo.getPrimitiveTypeEntry()) && (constVal instanceof Number || constVal instanceof String)) {
children.set(constIdx, new ExprNodeConstantDesc(new Float(constVal.toString())));
} else if (PrimitiveObjectInspectorUtils.byteTypeEntry.equals(colTypeInfo.getPrimitiveTypeEntry()) && (constVal instanceof Number || constVal instanceof String)) {
children.set(constIdx, new ExprNodeConstantDesc(new Byte(constVal.toString())));
} else if (PrimitiveObjectInspectorUtils.shortTypeEntry.equals(colTypeInfo.getPrimitiveTypeEntry()) && (constVal instanceof Number || constVal instanceof String)) {
children.set(constIdx, new ExprNodeConstantDesc(new Short(constVal.toString())));
}
} catch (NumberFormatException nfe) {
LOG.trace("Failed to narrow type of constant", nfe);
if ((genericUDF instanceof GenericUDFOPEqual && !NumberUtils.isNumber(constVal.toString()))) {
return new ExprNodeConstantDesc(false);
}
}
// if column type is char and constant type is string, then convert the constant to char
// type with padded spaces.
if (constType.equalsIgnoreCase(serdeConstants.STRING_TYPE_NAME) &&
colTypeInfo instanceof CharTypeInfo) {
final Object originalValue = ((ExprNodeConstantDesc) children.get(constIdx)).getValue();
final String constValue = originalValue.toString();
final int length = TypeInfoUtils.getCharacterLengthForType(colTypeInfo);
final HiveChar newValue = new HiveChar(constValue, length);
children.set(constIdx, new ExprNodeConstantDesc(colTypeInfo, newValue));
}
}
if (genericUDF instanceof GenericUDFOPOr) {
// flatten OR
List<ExprNodeDesc> childrenList = new ArrayList<ExprNodeDesc>(
children.size());
for (ExprNodeDesc child : children) {
if (FunctionRegistry.isOpOr(child)) {
childrenList.addAll(child.getChildren());
} else {
childrenList.add(child);
}
}
desc = ExprNodeGenericFuncDesc.newInstance(genericUDF, funcText,
childrenList);
} else if (genericUDF instanceof GenericUDFOPAnd) {
// flatten AND
List<ExprNodeDesc> childrenList = new ArrayList<ExprNodeDesc>(
children.size());
for (ExprNodeDesc child : children) {
if (FunctionRegistry.isOpAnd(child)) {
childrenList.addAll(child.getChildren());
} else {
childrenList.add(child);
}
}
desc = ExprNodeGenericFuncDesc.newInstance(genericUDF, funcText,
childrenList);
} else if (ctx.isFoldExpr() && canConvertIntoNvl(genericUDF, children)) {
// Rewrite CASE into NVL
desc = ExprNodeGenericFuncDesc.newInstance(new GenericUDFNvl(),
Lists.newArrayList(children.get(0), new ExprNodeConstantDesc(false)));
if (Boolean.FALSE.equals(((ExprNodeConstantDesc) children.get(1)).getValue())) {
desc = ExprNodeGenericFuncDesc.newInstance(new GenericUDFOPNot(),
Lists.newArrayList(desc));
}
} else {
desc = ExprNodeGenericFuncDesc.newInstance(genericUDF, funcText,
children);
}
// If the function is deterministic and the children are constants,
// we try to fold the expression to remove e.g. cast on constant
if (ctx.isFoldExpr() && desc instanceof ExprNodeGenericFuncDesc &&
FunctionRegistry.isDeterministic(genericUDF) &&
ExprNodeDescUtils.isAllConstants(children)) {
ExprNodeDesc constantExpr = ConstantPropagateProcFactory.foldExpr((ExprNodeGenericFuncDesc)desc);
if (constantExpr != null) {
desc = constantExpr;
}
}
}
// UDFOPPositive is a no-op.
// However, we still create it, and then remove it here, to make sure we
// only allow
// "+" for numeric types.
if (FunctionRegistry.isOpPositive(desc)) {
assert (desc.getChildren().size() == 1);
desc = desc.getChildren().get(0);
}
assert (desc != null);
return desc;
}
private boolean canConvertIntoNvl(GenericUDF genericUDF, ArrayList<ExprNodeDesc> children) {
if (genericUDF instanceof GenericUDFWhen && children.size() == 3 &&
children.get(1) instanceof ExprNodeConstantDesc &&
children.get(2) instanceof ExprNodeConstantDesc) {
ExprNodeConstantDesc constThen = (ExprNodeConstantDesc) children.get(1);
ExprNodeConstantDesc constElse = (ExprNodeConstantDesc) children.get(2);
Object thenVal = constThen.getValue();
Object elseVal = constElse.getValue();
if (thenVal instanceof Boolean && elseVal instanceof Boolean) {
return true;
}
}
return false;
}
/**
* Returns true if des is a descendant of ans (ancestor)
*/
private boolean isDescendant(Node ans, Node des) {
if (ans.getChildren() == null) {
return false;
}
for (Node c : ans.getChildren()) {
if (c == des) {
return true;
}
if (isDescendant(c, des)) {
return true;
}
}
return false;
}
protected ExprNodeDesc processQualifiedColRef(TypeCheckCtx ctx, ASTNode expr,
Object... nodeOutputs) throws SemanticException {
RowResolver input = ctx.getInputRR();
String tableAlias = BaseSemanticAnalyzer.unescapeIdentifier(expr.getChild(0).getChild(0)
.getText());
// NOTE: tableAlias must be a valid non-ambiguous table alias,
// because we've checked that in TOK_TABLE_OR_COL's process method.
String colName;
if (nodeOutputs[1] instanceof ExprNodeConstantDesc) {
colName = ((ExprNodeConstantDesc) nodeOutputs[1]).getValue().toString();
} else if (nodeOutputs[1] instanceof ExprNodeColumnDesc) {
colName = ((ExprNodeColumnDesc)nodeOutputs[1]).getColumn();
} else {
throw new SemanticException("Unexpected ExprNode : " + nodeOutputs[1]);
}
ColumnInfo colInfo = input.get(tableAlias, colName);
if (colInfo == null) {
ctx.setError(ErrorMsg.INVALID_COLUMN.getMsg(expr.getChild(1)), expr);
return null;
}
return toExprNodeDesc(colInfo);
}
@Override
public Object process(Node nd, Stack<Node> stack, NodeProcessorCtx procCtx,
Object... nodeOutputs) throws SemanticException {
TypeCheckCtx ctx = (TypeCheckCtx) procCtx;
ExprNodeDesc desc = TypeCheckProcFactory.processGByExpr(nd, procCtx);
if (desc != null) {
// Here we know nd represents a group by expression.
// During the DFS traversal of the AST, a descendant of nd likely set an
// error because a sub-tree of nd is unlikely to also be a group by
// expression. For example, in a query such as
// SELECT *concat(key)* FROM src GROUP BY concat(key), 'key' will be
// processed before 'concat(key)' and since 'key' is not a group by
// expression, an error will be set in ctx by ColumnExprProcessor.
// We can clear the global error when we see that it was set in a
// descendant node of a group by expression because
// processGByExpr() returns a ExprNodeDesc that effectively ignores
// its children. Although the error can be set multiple times by
// descendant nodes, DFS traversal ensures that the error only needs to
// be cleared once. Also, for a case like
// SELECT concat(value, concat(value))... the logic still works as the
// error is only set with the first 'value'; all node processors quit
// early if the global error is set.
if (isDescendant(nd, ctx.getErrorSrcNode())) {
ctx.setError(null, null);
}
return desc;
}
if (ctx.getError() != null) {
return null;
}
ASTNode expr = (ASTNode) nd;
/*
* A Windowing specification get added as a child to a UDAF invocation to distinguish it
* from similar UDAFs but on different windows.
* The UDAF is translated to a WindowFunction invocation in the PTFTranslator.
* So here we just return null for tokens that appear in a Window Specification.
* When the traversal reaches up to the UDAF invocation its ExprNodeDesc is build using the
* ColumnInfo in the InputRR. This is similar to how UDAFs are handled in Select lists.
* The difference is that there is translation for Window related tokens, so we just
* return null;
*/
if (windowingTokens.contains(expr.getType())) {
if (!ctx.getallowWindowing())
throw new SemanticException(SemanticAnalyzer.generateErrorMessage(expr,
ErrorMsg.INVALID_FUNCTION.getMsg("Windowing is not supported in the context")));
return null;
}
if (expr.getType() == HiveParser.TOK_TABNAME) {
return null;
}
if (expr.getType() == HiveParser.TOK_ALLCOLREF) {
if (!ctx.getallowAllColRef())
throw new SemanticException(SemanticAnalyzer.generateErrorMessage(expr,
ErrorMsg.INVALID_COLUMN
.getMsg("All column reference is not supported in the context")));
RowResolver input = ctx.getInputRR();
ExprNodeColumnListDesc columnList = new ExprNodeColumnListDesc();
assert expr.getChildCount() <= 1;
if (expr.getChildCount() == 1) {
// table aliased (select a.*, for example)
ASTNode child = (ASTNode) expr.getChild(0);
assert child.getType() == HiveParser.TOK_TABNAME;
assert child.getChildCount() == 1;
String tableAlias = BaseSemanticAnalyzer.unescapeIdentifier(child.getChild(0).getText());
HashMap<String, ColumnInfo> columns = input.getFieldMap(tableAlias);
if (columns == null) {
throw new SemanticException(ErrorMsg.INVALID_TABLE_ALIAS.getMsg(child));
}
for (Map.Entry<String, ColumnInfo> colMap : columns.entrySet()) {
ColumnInfo colInfo = colMap.getValue();
if (!colInfo.getIsVirtualCol()) {
columnList.addColumn(toExprNodeDesc(colInfo));
}
}
} else {
// all columns (select *, for example)
for (ColumnInfo colInfo : input.getColumnInfos()) {
if (!colInfo.getIsVirtualCol()) {
columnList.addColumn(toExprNodeDesc(colInfo));
}
}
}
return columnList;
}
// If the first child is a TOK_TABLE_OR_COL, and nodeOutput[0] is NULL,
// and the operator is a DOT, then it's a table column reference.
if (expr.getType() == HiveParser.DOT
&& expr.getChild(0).getType() == HiveParser.TOK_TABLE_OR_COL
&& nodeOutputs[0] == null) {
return processQualifiedColRef(ctx, expr, nodeOutputs);
}
// Return nulls for conversion operators
if (conversionFunctionTextHashMap.keySet().contains(expr.getType())
|| specialFunctionTextHashMap.keySet().contains(expr.getType())
|| expr.getToken().getType() == HiveParser.CharSetName
|| expr.getToken().getType() == HiveParser.CharSetLiteral) {
return null;
}
boolean isFunction = (expr.getType() == HiveParser.TOK_FUNCTION ||
expr.getType() == HiveParser.TOK_FUNCTIONSTAR ||
expr.getType() == HiveParser.TOK_FUNCTIONDI);
if (!ctx.getAllowDistinctFunctions() && expr.getType() == HiveParser.TOK_FUNCTIONDI) {
throw new SemanticException(
SemanticAnalyzer.generateErrorMessage(expr, ErrorMsg.DISTINCT_NOT_SUPPORTED.getMsg()));
}
// Create all children
int childrenBegin = (isFunction ? 1 : 0);
ArrayList<ExprNodeDesc> children = new ArrayList<ExprNodeDesc>(
expr.getChildCount() - childrenBegin);
for (int ci = childrenBegin; ci < expr.getChildCount(); ci++) {
if (nodeOutputs[ci] instanceof ExprNodeColumnListDesc) {
children.addAll(((ExprNodeColumnListDesc) nodeOutputs[ci]).getChildren());
} else {
children.add((ExprNodeDesc) nodeOutputs[ci]);
}
}
if (expr.getType() == HiveParser.TOK_FUNCTIONSTAR) {
if (!ctx.getallowFunctionStar())
throw new SemanticException(SemanticAnalyzer.generateErrorMessage(expr,
ErrorMsg.INVALID_COLUMN
.getMsg(".* reference is not supported in the context")));
RowResolver input = ctx.getInputRR();
for (ColumnInfo colInfo : input.getColumnInfos()) {
if (!colInfo.getIsVirtualCol()) {
children.add(toExprNodeDesc(colInfo));
}
}
}
// If any of the children contains null, then return a null
// this is a hack for now to handle the group by case
if (children.contains(null)) {
List<String> possibleColumnNames = getReferenceableColumnAliases(ctx);
String reason = String.format("(possible column names are: %s)",
StringUtils.join(possibleColumnNames, ", "));
ctx.setError(ErrorMsg.INVALID_COLUMN.getMsg(expr.getChild(0), reason),
expr);
return null;
}
// Create function desc
try {
return getXpathOrFuncExprNodeDesc(expr, isFunction, children, ctx);
} catch (UDFArgumentTypeException e) {
throw new SemanticException(ErrorMsg.INVALID_ARGUMENT_TYPE.getMsg(expr
.getChild(childrenBegin + e.getArgumentId()), e.getMessage()), e);
} catch (UDFArgumentLengthException e) {
throw new SemanticException(ErrorMsg.INVALID_ARGUMENT_LENGTH.getMsg(
expr, e.getMessage()), e);
} catch (UDFArgumentException e) {
throw new SemanticException(ErrorMsg.INVALID_ARGUMENT.getMsg(expr, e
.getMessage()), e);
}
}
protected List<String> getReferenceableColumnAliases(TypeCheckCtx ctx) {
return ctx.getInputRR().getReferenceableColumnAliases(null, -1);
}
}
/**
* Factory method to get DefaultExprProcessor.
*
* @return DefaultExprProcessor.
*/
public DefaultExprProcessor getDefaultExprProcessor() {
return new DefaultExprProcessor();
}
/**
* Processor for subquery expressions..
*/
public static class SubQueryExprProcessor implements NodeProcessor {
@Override
public Object process(Node nd, Stack<Node> stack, NodeProcessorCtx procCtx,
Object... nodeOutputs) throws SemanticException {
TypeCheckCtx ctx = (TypeCheckCtx) procCtx;
if (ctx.getError() != null) {
return null;
}
ASTNode expr = (ASTNode) nd;
ASTNode sqNode = (ASTNode) expr.getParent().getChild(1);
if (!ctx.getallowSubQueryExpr())
throw new SemanticException(SemanticAnalyzer.generateErrorMessage(sqNode,
ErrorMsg.UNSUPPORTED_SUBQUERY_EXPRESSION.getMsg()));
ExprNodeDesc desc = TypeCheckProcFactory.processGByExpr(nd, procCtx);
if (desc != null) {
return desc;
}
/*
* Restriction.1.h :: SubQueries only supported in the SQL Where Clause.
*/
ctx.setError(ErrorMsg.UNSUPPORTED_SUBQUERY_EXPRESSION.getMsg(sqNode,
"Currently SubQuery expressions are only allowed as Where Clause predicates"),
sqNode);
return null;
}
}
/**
* Factory method to get SubQueryExprProcessor.
*
* @return DateExprProcessor.
*/
public SubQueryExprProcessor getSubQueryExprProcessor() {
return new SubQueryExprProcessor();
}
}
|
apache-2.0
|
codeboyyong/akka-sample
|
akka-sample/src/main/scala/com/codeboyyong/akkasample/remote/parallel/SumActor.scala
|
809
|
package com.codeboyyong.akkasample.remote.parallel
import akka.actor.UntypedActor
import akka.actor.Actor
import com.codeboyyong.akkasample.util.AkkaUtil
import akka.actor.Address
case class SUM(start: Int, end: Int, taskId: String)
case class SUMResult(sum: Double, id: String)
class SumActor extends Actor {
def receive: Actor.Receive = {
case SUM(start: Int, end: Int, taskId: String) => {
var result: Double = 0;
for (i <- start until end) {
result = result + i
for (j <- 1 until 1000) {
//wast tile
val x = (j*2+3)/6
for (k <- 1 until 1000) {
//wast tile
val y =( (k+j)*2+3)/6
}
}
}
println("result:" + result)
sender ! SUMResult(result, taskId)
}
}
}
|
apache-2.0
|
meteorcloudy/bazel
|
src/main/native/windows/build_windows_jni.sh
|
4455
|
#!/bin/bash -eu
# Copyright 2016 The Bazel Authors. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# It's not a good idea to link an MSYS dynamic library into a native Windows
# JVM, so we need to build it with Visual Studio. However, Bazel doesn't
# support multiple compilers in the same build yet, so we need to hack around
# this limitation using a genrule.
DLL="$1"
shift 1
function fail() {
echo >&2 "ERROR: $*"
exit 1
}
# Ensure the PATH is set up correctly.
if ! which which >&/dev/null ; then
PATH="/bin:/usr/bin:$PATH"
which which >&/dev/null \
|| fail "System PATH is not set up correctly, cannot run GNU bintools"
fi
# Create a temp directory. It will used for the batch file we generate soon and
# as the temp directory for CL.EXE .
VSTEMP=$(mktemp -d)
trap "rm -fr \"$VSTEMP\"" EXIT
VSVARS=""
# Visual Studio or Visual C++ Build Tools might not be installed at default
# location. Check BAZEL_VS and BAZEL_VC first.
if [ -n "${BAZEL_VC+set}" ]; then
VSVARS="${BAZEL_VC}/VCVARSALL.BAT"
# Check if BAZEL_VC points to Visual C++ Build Tools 2017
if [ ! -f "${VSVARS}" ]; then
VSVARS="${BAZEL_VC}/Auxiliary/Build/VCVARSALL.BAT"
fi
else
# Find Visual Studio. We don't have any regular environment variables
# available so this is the best we can do.
if [ -z "${BAZEL_VS+set}" ]; then
VSVERSION="$(ls "C:/Program Files (x86)" \
| grep -E "Microsoft Visual Studio [0-9]+" \
| sort --version-sort \
| tail -n 1)"
BAZEL_VS="C:/Program Files (x86)/$VSVERSION"
fi
VSVARS="${BAZEL_VS}/VC/VCVARSALL.BAT"
fi
# Check if Visual Studio 2017 is installed. Look for it at the default
# locations.
if [ ! -f "${VSVARS}" ]; then
VSVARS="C:/Program Files (x86)/Microsoft Visual Studio/2017/"
VSEDITION="BuildTools"
if [ -d "${VSVARS}Enterprise" ]; then
VSEDITION="Enterprise"
elif [ -d "${VSVARS}Professional" ]; then
VSEDITION="Professional"
elif [ -d "${VSVARS}Community" ]; then
VSEDITION="Community"
fi
VSVARS+="$VSEDITION/VC/Auxiliary/Build/VCVARSALL.BAT"
fi
if [ ! -f "${VSVARS}" ]; then
fail "VCVARSALL.bat not found, check your Visual Studio installation"
fi
JAVAINCLUDES=""
if [ -n "${JAVA_HOME+set}" ]; then
JAVAINCLUDES="$JAVA_HOME/include"
else
# Find Java. $(JAVA) in the BUILD file points to external/local_jdk/...,
# which is not very useful for anything not MSYS-based.
JAVA=$(ls "C:/Program Files/java" | grep -E "^jdk" | sort | tail -n 1)
[[ -n "$JAVA" ]] || fail "JDK not found"
JAVAINCLUDES="C:/Program Files/java/$JAVA/include"
fi
# Convert all compilation units to Windows paths.
WINDOWS_SOURCES=()
for i in $*; do
if [[ "$i" =~ ^.*\.cc$ ]]; then
WINDOWS_SOURCES+=("\"$(cygpath -a -w $i)\"")
fi
done
# Copy jni headers to src/main/native folder
# Mimic genrule //src/main/native:copy_link_jni_md_header and //src/main/native:copy_link_jni_header
JNI_HEADERS_DIR="${VSTEMP}/src/main/native"
mkdir -p "$JNI_HEADERS_DIR"
cp -f "$JAVAINCLUDES/jni.h" "$JNI_HEADERS_DIR/"
cp -f "$JAVAINCLUDES/win32/jni_md.h" "$JNI_HEADERS_DIR/"
# CL.EXE needs a bunch of environment variables whose official location is a
# batch file. We can't make that have an effect on a bash instance, so
# generate a batch file that invokes it.
# As for `abs_pwd` and `pwd_drive`: in cmd.exe, it's not enough to `cd` into a
# directory. You must also change to its drive to truly set the cwd to that
# directory. See https://github.com/bazelbuild/bazel/issues/3906
abs_pwd="$(cygpath -a -w "${PWD}")"
pwd_drive="$(echo "$abs_pwd" | head -c2)"
cat > "${VSTEMP}/windows_jni.bat" <<EOF
@echo OFF
@call "${VSVARS}" amd64
@$pwd_drive
@cd "$abs_pwd"
@set TMP=$(cygpath -a -w "${VSTEMP}")
@CL /O2 /EHsc /LD /Fe:"$(cygpath -a -w ${DLL})" /I "%TMP%" /I . ${WINDOWS_SOURCES[*]} /link /DEFAULTLIB:advapi32.lib
EOF
# Invoke the file and hopefully generate the .DLL .
chmod +x "${VSTEMP}/windows_jni.bat"
exec "${VSTEMP}/windows_jni.bat"
|
apache-2.0
|
tonybndt/BlueMix-Tutorials
|
config/express.js
|
1764
|
/**
* Copyright 2014 IBM Corp. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
'use strict';
// Module dependencies
var express = require('express'),
favicon = require('serve-favicon'),
errorhandler = require('errorhandler'),
bodyParser = require('body-parser'),
csrf = require('csurf'),
cookieParser = require('cookie-parser');
module.exports = function (app) {
app.set('view engine', 'ejs');
app.enable('trust proxy');
// use only https
var env = process.env.NODE_ENV || 'development';
if ('production' === env) {
app.use(errorhandler());
}
// Configure Express
app.use(bodyParser.urlencoded({ extended: true }));
app.use(bodyParser.json());
// Setup static public directory
app.use(express.static(__dirname + '/../public'));
app.use(favicon(__dirname + '/../public/images/favicon.ico'));
// cookies
var secret = Math.random().toString(36).substring(7);
app.use(cookieParser(secret));
// csrf
var csrfProtection = csrf({ cookie: true });
app.get('/', csrfProtection, function(req, res) {
res.render('index', { ct: req.csrfToken() });
});
// apply to all requests that begin with /api/
// csfr token
app.use('/api/', csrfProtection);
};
|
apache-2.0
|
gpeyre/louispeyre
|
louise/target154.html
|
782
|
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>155.jpg</title>
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<span class="textbg">Louise Bonfils -- 155.jpg </span><br> <span class="textsm"></span>
<p><span class="textreg">
<a href="target0.html">Première</a> |
<a href="target153.html">Photo précédente</a> |
<a href="target155.html">Photo suivante</a> |
<a href="target249.html">Dernière</a> | <a href="index.html">Vignettes</a><br>
</span><hr size="1">
<a href="index.html"><img src="images/155.jpg" width="555" height="800" title="155.jpg (large)" border="0"></a><p>
<map name="Map">
<area shape="rect" coords="95,1,129,44" href="frameset.htm">
</map>
</body>
</html>
|
apache-2.0
|
SAP/openui5
|
src/sap.ui.webc.fiori/src/sap/ui/webc/fiori/thirdparty/_chunks/messagebundle_es.js
|
7123
|
sap.ui.define(['exports'], function (exports) { 'use strict';
var messagebundle_es = {
BARCODE_SCANNER_DIALOG_CANCEL_BUTTON_TXT: "Cancelar",
BARCODE_SCANNER_DIALOG_LOADING_TXT: "Cargando",
FCL_START_COLUMN_TXT: "Primera columna",
FCL_MIDDLE_COLUMN_TXT: "Columna media",
FCL_END_COLUMN_TXT: "Última columna",
FCL_START_COLUMN_EXPAND_BUTTON_TOOLTIP: "Desplegar la primera columna",
FCL_START_COLUMN_COLLAPSE_BUTTON_TOOLTIP: "Comprimir la primera columna",
FCL_END_COLUMN_EXPAND_BUTTON_TOOLTIP: "Desplegar la última columna",
FCL_END_COLUMN_COLLAPSE_BUTTON_TOOLTIP: "Comprimir la última columna",
NOTIFICATION_LIST_ITEM_TXT: "Notificación",
NOTIFICATION_LIST_ITEM_SHOW_MORE: "Visualizar más",
NOTIFICATION_LIST_ITEM_SHOW_LESS: "Visualizar menos",
NOTIFICATION_LIST_ITEM_OVERLOW_BTN_TITLE: "Más",
NOTIFICATION_LIST_ITEM_CLOSE_BTN_TITLE: "Cerrar",
NOTIFICATION_LIST_ITEM_READ: "Leídos",
NOTIFICATION_LIST_ITEM_UNREAD: "No leídos",
NOTIFICATION_LIST_ITEM_HIGH_PRIORITY_TXT: "Prioridad alta",
NOTIFICATION_LIST_ITEM_MEDIUM_PRIORITY_TXT: "Prioridad media",
NOTIFICATION_LIST_ITEM_LOW_PRIORITY_TXT: "Prioridad baja",
NOTIFICATION_LIST_GROUP_ITEM_TXT: "Grupo de notificaciones",
NOTIFICATION_LIST_GROUP_ITEM_COUNTER_TXT: "Contador",
NOTIFICATION_LIST_GROUP_ITEM_CLOSE_BTN_TITLE: "Cerrar todo",
NOTIFICATION_LIST_GROUP_ITEM_TOGGLE_BTN_COLLAPSE_TITLE: "Ocultar grupo",
NOTIFICATION_LIST_GROUP_ITEM_TOGGLE_BTN_EXPAND_TITLE: "Desplegar grupo",
TIMELINE_ARIA_LABEL: "Cronología",
UPLOADCOLLECTIONITEM_CANCELBUTTON_TEXT: "Cancelar",
UPLOADCOLLECTIONITEM_RENAMEBUTTON_TEXT: "Cambiar nombre",
UPLOADCOLLECTIONITEM_ERROR_STATE: "Concluido",
UPLOADCOLLECTIONITEM_READY_STATE: "Pendiente",
UPLOADCOLLECTIONITEM_UPLOADING_STATE: "Cargando",
UPLOADCOLLECTIONITEM_TERMINATE_BUTTON_TEXT: "Finalizar",
UPLOADCOLLECTIONITEM_RETRY_BUTTON_TEXT: "Volver a intentar",
UPLOADCOLLECTIONITEM_EDIT_BUTTON_TEXT: "Editar",
UPLOADCOLLECTION_NO_DATA_TEXT: "No existen ficheros.",
UPLOADCOLLECTION_NO_DATA_DESCRIPTION: "Soltar los ficheros para cargarlos o utilizar el botón \"Cargar\".",
UPLOADCOLLECTION_ARIA_ROLE_DESCRIPTION: "Cargar colección",
UPLOADCOLLECTION_DRAG_FILE_INDICATOR: "Arrastrar ficheros aquí.",
UPLOADCOLLECTION_DROP_FILE_INDICATOR: "Soltar ficheros para cargalos.",
SHELLBAR_LABEL: "Barra de shell",
SHELLBAR_LOGO: "Logotipo",
SHELLBAR_COPILOT: "CoPilot",
SHELLBAR_NOTIFICATIONS: "Notificaciones {0}",
SHELLBAR_PROFILE: "Perfil",
SHELLBAR_PRODUCTS: "Productos",
PRODUCT_SWITCH_CONTAINER_LABEL: "Productos",
SHELLBAR_SEARCH: "Buscar",
SHELLBAR_OVERFLOW: "Más",
SHELLBAR_CANCEL: "Cancelar",
WIZARD_NAV_ARIA_LABEL: "Barra de progreso del asistente",
WIZARD_LIST_ARIA_LABEL: "Pasos del asistente",
WIZARD_LIST_ARIA_DESCRIBEDBY: "Para activarlo, pulse la barra espaciadora o Intro",
WIZARD_ACTIONSHEET_STEPS_ARIA_LABEL: "Pasos",
WIZARD_OPTIONAL_STEP_ARIA_LABEL: "Opcional",
WIZARD_STEP_ACTIVE: "Activo",
WIZARD_STEP_INACTIVE: "Inactivo",
WIZARD_STEP_ARIA_LABEL: "Paso {0}",
WIZARD_NAV_ARIA_ROLE_DESCRIPTION: "Asistente",
WIZARD_NAV_STEP_DEFAULT_HEADING: "Paso",
VSD_DIALOG_TITLE_SORT: "Ver opciones",
VSD_SUBMIT_BUTTON: "OK",
VSD_CANCEL_BUTTON: "Cancelar",
VSD_RESET_BUTTON: "Reinicializar",
VSD_SORT_ORDER: "Orden de clasificación",
VSD_FILTER_BY: "Filtrar por",
VSD_SORT_BY: "Clasificar por",
VSD_ORDER_ASCENDING: "Ascendente",
VSD_ORDER_DESCENDING: "Descendente",
IM_TITLE_BEFORESEARCH: "Obtengamos resultados",
IM_SUBTITLE_BEFORESEARCH: "Comience proporcionando los criterios de búsqueda.",
IM_TITLE_NOACTIVITIES: "Todavía no ha añadido actividades",
IM_SUBTITLE_NOACTIVITIES: "¿Desea añadir una ahora?",
IM_TITLE_NODATA: "Todavía no hay datos",
IM_SUBTITLE_NODATA: "Cuando haya, los verá aquí.",
IM_TITLE_NOMAIL: "Ningún correo nuevo",
IM_SUBTITLE_NOMAIL: "Vuelva a comprobarlo de nuevo más tarde.",
IM_TITLE_NOENTRIES: "Todavía no hay entradas",
IM_SUBTITLE_NOENTRIES: "Cuando haya, las verá aquí.",
IM_TITLE_NONOTIFICATIONS: "No tiene ninguna notificación nueva",
IM_SUBTITLE_NONOTIFICATIONS: "Vuelva a comprobarlo de nuevo más tarde.",
IM_TITLE_NOSAVEDITEMS: "Todavía no ha añadido favoritos",
IM_SUBTITLE_NOSAVEDITEMS: "¿Desea crear una lista de las posiciones favoritas ahora?",
IM_TITLE_NOSEARCHRESULTS: "No existen resultados",
IM_SUBTITLE_NOSEARCHRESULTS: "Intente modificar los criterios de búsqueda.",
IM_TITLE_NOTASKS: "No tiene ninguna tarea nueva",
IM_SUBTITLE_NOTASKS: "Cuando tenga, las verá aquí.",
IM_TITLE_UNABLETOLOAD: "No se pueden cargar datos",
IM_SUBTITLE_UNABLETOLOAD: "Compruebe su conexión a internet. Si esto no funciona, intente volver a cargar la página. Si esto tampoco funciona, verifique con su administrador.",
IM_TITLE_UNABLETOLOADIMAGE: "No se puede cargar la imagen",
IM_SUBTITLE_UNABLETOLOADIMAGE: "No se ha podido encontrar la imagen en la ubicación especificada o el servidor no responde.",
IM_TITLE_UNABLETOUPLOAD: "No se pueden cargar datos",
IM_SUBTITLE_UNABLETOUPLOAD: "Compruebe su conexión a internet. Si esto no funciona, compruebe el formato de fichero y el tamaño de fichero. De lo contrario, póngase en contacto con su administrador.",
IM_TITLE_ADDCOLUMN: "Parece que hay espacio libre",
IM_SUBTITLE_ADDCOLUMN: "Puede añadir más columnas en las opciones de tabla.",
IM_TITLE_ADDPEOPLE: "Aún no ha añadido a nadie al calendario",
IM_SUBTITLE_ADDPEOPLE: "¿Desea añadir a alguien ahora?",
IM_TITLE_BALLOONSKY: "Se le valora.",
IM_SUBTITLE_BALLOONSKY: "Siga trabajando tan bien.",
IM_TITLE_EMPTYPLANNINGCALENDAR: "Aún no hay nada planificado",
IM_SUBTITLE_EMPTYPLANNINGCALENDAR: "No hay actividades en este intervalo de tiempo",
IM_TITLE_FILTERTABLE: "Hay opciones de filtro disponibles",
IM_SUBTITLE_FILTERTABLE: "Los filtros le ayudan a concentrarse en lo que considera más relevante.",
IM_TITLE_GROUPTABLE: "Intente agrupar elementos para obtener un mejor resumen",
IM_SUBTITLE_GROUPTABLE: "Puede optar por agrupar categorías en las opciones de grupo.",
IM_TITLE_NOFILTERRESULTS: "No existen resultados",
IM_SUBTITLE_NOFILTERRESULTS: "Intente ajustar sus criterio de filtro.",
IM_TITLE_PAGENOTFOUND: "Lo sentimos, la página no existe",
IM_SUBTITLE_PAGENOTFOUND: "Verifique el URL que está utilizando para llamar la aplicación.",
IM_TITLE_RESIZECOLUMN: "Seleccione su propio ancho de columna",
IM_SUBTITLE_RESIZECOLUMN: "Puede ajustar columnas arrastrando los bordes de la columna.",
IM_TITLE_SORTCOLUMN: "¿No ve primero los elementos más importantes?",
IM_SUBTITLE_SORTCOLUMN: "Seleccione los criterios de clasificación en las opciones de clasificación.",
IM_TITLE_SUCCESSSCREEN: "Bien hecho.",
IM_SUBTITLE_SUCCESSSCREEN: "Ha completado todas sus asignaciones de aprendizaje.",
IM_TITLE_UPLOADCOLLECTION: "Suelte aquí los archivos",
IM_SUBTITLE_UPLOADCOLLECTION: "También puede cargar varios archivos a la vez.",
DSC_SIDE_ARIA_LABEL: "Contenido lateral"
};
exports.default = messagebundle_es;
});
|
apache-2.0
|
pozgo/docker-kafka
|
tests/config.php
|
354
|
<?php
$config = array(
'service' => 'Kafka',
'brokers' => array('192.168.0.50:9092'),
'state_dir' => '/workdir/state',
'loglevel' => LOG_DEBUG,
'timeout' => 1000,
'topics' => array(
array('name' => 'test1', 'partitions' => array(0)),
),
'config_check_interval' => 6,
'queue_check_interval' => 2,
);
|
apache-2.0
|
Kallehz/Python
|
Próf2/templates/es/team/htools.html
|
10720
|
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link
rel="stylesheet"
href="../../styles/$Conf(style).css"
title="Mooshak en color"
type="text/css">
<script language="JavaScript" type="text/javascript"><!--
Submitting=false;
function submission(form) { Submitting=true; }
// set hidden variable "command" with my name
function name2command(obj) {
obj.form.command.value=obj.name;
}
// select problem from appropriated object
function selected_problem(label) {
var value;
if(document.problems.problem.options != undefined)
value=select_problem_from_list(label);
else if(document.problems.problem.length != undefined)
value=select_problem_from_radio(label);
else if(label && document.problems.problem.title != undefined)
value=document.problems.problem.title;
else if(document.problems.problem.value != undefined)
value=document.problems.problem.value;
else
value=undefined;
return value;
}
// return selected problem from an array of radio buttons
function select_problem_from_radio(label) {
with(document.problems.problem) {
if(length==0) {
// with a single radio button JS
// doesn't create an array to reflect it
if(checked)
if(label)
return title;
else
return value;
} else {
with(document)
for(var i=0; i < problems.length; i++)
if(problems[i].name == "problem" && problems[i].checked)
return problems[i].value;
}
}
return undefined;
}
// return selected problem from a selection list
function select_problem_from_list(label) {
with(document.problems.problem) {
for(var i=0; i < options.length; i++)
if(options[i].selected)
if(label)
return options[i].text;
else
return options[i].value;
}
return undefined;
}
function check_problem(form) {
if(selected_problem(false) == undefined) {
alert('Elige un problema');
return false;
} else {
return true;
}
}
function copy_problem(button) {
with(button.form.problem) {
if((value=selected_problem(false)) == undefined) {
value="";
}
}
}
function check_program(form) {
// check only program submissions
if((form.problem.value=selected_problem(false)) == undefined) {
alert('Elige un problema');
return false;
}
if(Submitting) {
Submitting=false;
if(form.program.value=="") {
alert('Programa no especificado');
return false;
} else if(invalidExtension(form.program.value)) {
alert( 'Programa con extension no valida\n'+
'usar '+validExtensions() );
return false;
} else {
var msg='Enviando al problema '+selected_problem(true);
msg += '\nConfirmar?';
return confirm(msg);
}
} else { // Printing
if(form.program.value=="") {
alert('Fichero para imprimir no especificado');
return false;
} else {
return confirm('Confirmar impresion?');
}
}
}
$languages
function invalidExtension(fx) {
var p;
for(var ext in Language) {
if((p=fx.lastIndexOf("."+ext))==-1)
continue;
if(p+ext.length+1==fx.length) {
return false;
}
}
return true;
}
function validExtensions() {
var valid="";
for(var ext in Language) {
if(valid != "")
valid += " , ";
valid += "."+ext;
}
return valid;
}
//--></script>
</head>
<body>
<form
method ="post"
name ="problems"
target ="answer"
onSubmit="return check_problem(this);"
action ="$Conf(controller)">
<input
type ="hidden"
name ="page"
value ="0">
<input
type ="hidden"
name ="command"
value ="empty">
<table
width ="100%"
border ="0"
cellpadding ="2"
cellspacing ="0">
<tr>
<th
bgcolor ="777777"
rowspan ="4"
width="2%"> </th>
<th
id ="BaseForte"
rowspan ="4"
width="20%">
<font color="white">
<h2><font color="pink">$designation</font></h2>
<h4>$team_name<font></h4>
<p align="right">
<img src="../../icons/mooshak-16.png">
<font size="-1" color="Pink">shak $VERSION</font>
</p>
</font>
</th>
<th width="2%"> </th>
<th id="Title"> Problema </th>
<td id="Base" width="2%"> </th>
<td id="Base"> $problems </td>
<th id="Base" width="2%"> </th>
<th id="Base" width="10%">
<font size="-1">
<input
class ="Button"
type ="submit"
name ="view"
onClick ="name2command(this);"
value ="$view" >
</font>
</th>
<th id="Base" width="10%">
<font size="-1">
<input
class ="Button"
type ="submit"
name ="ask"
$asking
onClick ="name2command(this);"
value ="$ask">
</font>
</th>
</tr>
</form>
<form
method ="post"
name ="programs"
enctype ="multipart/form-data"
onSubmit="return check_program(this);"
target ="answer"
action ="$Conf(controller)?">
<input
type ="hidden"
name ="command"
value ="empty">
<input
type ="hidden"
name ="problem"
value ="">
<tr>
<th width="2%"> </th>
<th id="Title"> Programa </th>
<td id="Base" width="2%"> </th>
<td id="Base">
<input
type ="file"
name ="program">
</td>
<th id="Base" width="2%"> </th>
<th id="Base" width="10%">
<font size="-1">
<input
class ="Button"
type ="submit"
name ="analyze"
value ="$submit"
onClick ="
name2command(this);
submission(this.form);">
</font>
</th>
<th id="Base" width="10%">
<font size="-1">
<input
class ="Button"
type ="submit"
name ="print"
onClick ="name2command(this);"
$printing
value ="$print">
</font>
</th>
</tr>
</form>
<!-- select listings -->
<form
method ="post"
name ="listings"
target ="answer"
action ="$Conf(controller)?">
<input
type ="hidden"
name ="command"
value ="listing">
<input
type ="hidden"
name ="problem"
value ="">
<input type ="hidden"
name ="page"
value ="0">
<input type ="hidden"
name ="all_problems"
value ="true">
<input type ="hidden"
name ="all_teams"
value ="true">
<tr>
<th width="2%"> </th>
<th id="Title"> Listados </th>
<td id="Base" width="2%"> </th>
<td id="Base" colspan="4">
<input checked
type ="radio"
name ="type"
value ="submissions"
onClick ="
copy_problem(this);
this.form.submit();">
Envíos
<input
type ="radio"
name ="type"
value ="ranking"
onClick ="
copy_problem(this);
this.form.submit();">
Clasificación
<input
type ="radio"
name ="type"
value ="questions"
onClick ="
copy_problem(this);
this.form.submit();">
Preguntas
<input
type ="radio"
name ="type"
value ="printouts"
onClick ="
copy_problem(this);
this.form.submit();">
Impresiones
</td>
</tr>
<!-- Control listings -->
<tr>
<th width="2%"> </th>
<th id="Title">
<a
href="$Conf(controller)?guest"
target="_blanc">
<font size="-1">más...</font>
</a>
</th>
<td id="Base" width="2%"> </th>
<td id="Base">
Actualizar cada $time minutos
con $lines líneas
</td>
<th id="Base" width="2%"> </th>
<th
id="Base"
rowspan="1">
<input
class ="Button"
type ="button"
value ="$help"
onClick ="window.open('$Conf(controller)?faq','work');">
</th>
<th
id="Base"
rowspan="1">
<input
class ="Button"
type ="button"
value ="$logout"
onClick ="window.open('$Conf(controller)?logout','_top');">
</th>
</tr>
</table>
</form>
</body>
</html>
|
apache-2.0
|
facug91/OJ-Solutions
|
uva.onlinejudge.org/TwinPrimes.cpp
|
1438
|
/*
By: facug91
From: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=1335
Name: Twin Primes
Date: 23/10/2015
*/
#include <bits/stdc++.h>
#define endl "\n"
#define EPS 1e-9
#define MP make_pair
#define F first
#define S second
#define DB(x) cerr << " #" << (#x) << ": " << (x)
#define DBL(x) cerr << " #" << (#x) << ": " << (x) << endl
const double PI = 2.0*acos(0.0);
#define INF 1000000000
//#define MOD 1000000007ll
//#define MAXN 10005
using namespace std;
typedef long long ll;
typedef unsigned long long llu;
typedef pair<int, int> ii; typedef pair<ii, ii> iiii;
typedef vector<int> vi; typedef vector<ii> vii; typedef vector<iiii> viiii;
int s, a, b;
bool sieve[20000005];
vii ans;
int main () {
ios_base::sync_with_stdio(0); cin.tie(0);
//cout<<fixed<<setprecision(7); cerr<<fixed<<setprecision(7); //cin.ignore(INT_MAX, ' '); //cout << setfill('0') << setw(5) << 25
int tc = 1, i, j;
for (i=0; i<20000005; i++) sieve[i] = true;
sieve[0] = sieve[1] = false;
for (i=4; i<20000005; i+=2) sieve[i] = false;
int sq = sqrt(20000005)+1;
for (i=3; i<sq; i+=2)
if (sieve[i])
for (j=i*i; j<20000005; j+=i+i)
sieve[j] = false;
a = 3; b = 5;
while (b < 20000005) {
if (sieve[a] && sieve[b]) ans.emplace_back(a, b);
a += 2;
b += 2;
}
while (cin>>s) {
s--;
cout<<"("<<ans[s].F<<", "<<ans[s].S<<")"<<endl;
}
return 0;
}
|
apache-2.0
|
bboyle18/AppleTV-LiveTV
|
Makefile
|
690
|
GO_EASY_ON_ME=1
export SDKVERSION=4.3
FW_DEVICE_IP=apple-tv.local
THEOS_DEVICE_IP=apple-tv.local
include theos/makefiles/common.mk
#include theos/makefiles/xpackage.mk
BUNDLE_NAME = HW
HW_FILES = Classes/HWAppliance.mm Classes/HWBasicMenu.m
HW_INSTALL_PATH = /Applications/Lowtide.app/Appliances
HW_BUNDLE_EXTENSION = frappliance
HW_LDFLAGS = -undefined dynamic_lookup #-L$(FW_PROJECT_DIR) -lBackRow
include $(FW_MAKEDIR)/bundle.mk
after-HW-stage::
mkdir -p $(FW_STAGING_DIR)/Applications/AppleTV.app/Appliances; ln -f -s /Applications/Lowtide.app/Appliances/HW.frappliance $(FW_STAGING_DIR)/Applications/AppleTV.app/Appliances/
after-install::
install.exec "killall -9 AppleTV"
|
apache-2.0
|
digitalpetri/ethernet-ip
|
cip-core/src/main/java/com/digitalpetri/enip/cip/services/GetAttributesAllService.java
|
1389
|
package com.digitalpetri.enip.cip.services;
import com.digitalpetri.enip.cip.CipResponseException;
import com.digitalpetri.enip.cip.epath.EPath.PaddedEPath;
import com.digitalpetri.enip.cip.structs.MessageRouterRequest;
import com.digitalpetri.enip.cip.structs.MessageRouterResponse;
import io.netty.buffer.ByteBuf;
import io.netty.util.ReferenceCountUtil;
public class GetAttributesAllService implements CipService<ByteBuf> {
public static final int SERVICE_CODE = 0x01;
private final PaddedEPath requestPath;
public GetAttributesAllService(PaddedEPath requestPath) {
this.requestPath = requestPath;
}
@Override
public void encodeRequest(ByteBuf buffer) {
MessageRouterRequest request = new MessageRouterRequest(
SERVICE_CODE,
requestPath,
byteBuf -> {
}
);
MessageRouterRequest.encode(request, buffer);
}
@Override
public ByteBuf decodeResponse(ByteBuf buffer) throws CipResponseException {
MessageRouterResponse response = MessageRouterResponse.decode(buffer);
if (response.getGeneralStatus() == 0x00) {
return response.getData();
} else {
ReferenceCountUtil.release(response.getData());
throw new CipResponseException(response.getGeneralStatus(), response.getAdditionalStatus());
}
}
}
|
apache-2.0
|
HewlettPackard/oneview-sdk-java
|
oneview-sdk-java-lib/src/main/java/com/hp/ov/sdk/dto/networking/LagState.java
|
839
|
/*
* (C) Copyright 2016 Hewlett Packard Enterprise Development LP
*
* Licensed under the Apache License, Version 2.0 (the "License");
* You may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.hp.ov.sdk.dto.networking;
public enum LagState {
Aggregation,
Collecting,
Defaulted,
Distributing,
Expired,
LacpActivity,
LacpTimeout,
Synchronization,
Unknown
}
|
apache-2.0
|
jishenghua/JSH_ERP
|
jshERP-boot/src/main/java/com/jsh/erp/service/materialCategory/MaterialCategoryComponent.java
|
2746
|
package com.jsh.erp.service.materialCategory;
import com.alibaba.fastjson.JSONObject;
import com.jsh.erp.service.ICommonQuery;
import com.jsh.erp.service.materialProperty.MaterialPropertyResource;
import com.jsh.erp.service.materialProperty.MaterialPropertyService;
import com.jsh.erp.utils.Constants;
import com.jsh.erp.utils.QueryUtils;
import com.jsh.erp.utils.StringUtil;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;
@Service(value = "materialCategory_component")
@MaterialCategoryResource
public class MaterialCategoryComponent implements ICommonQuery {
@Resource
private MaterialCategoryService materialCategoryService;
@Override
public Object selectOne(Long id) throws Exception {
return materialCategoryService.getMaterialCategory(id);
}
@Override
public List<?> select(Map<String, String> map)throws Exception {
return getMaterialCategoryList(map);
}
private List<?> getMaterialCategoryList(Map<String, String> map) throws Exception{
String search = map.get(Constants.SEARCH);
String name = StringUtil.getInfo(search, "name");
Integer parentId = StringUtil.parseInteger(StringUtil.getInfo(search, "parentId"));
String order = QueryUtils.order(map);
return materialCategoryService.select(name, parentId, QueryUtils.offset(map), QueryUtils.rows(map));
}
@Override
public Long counts(Map<String, String> map)throws Exception {
String search = map.get(Constants.SEARCH);
String name = StringUtil.getInfo(search, "name");
Integer parentId = StringUtil.parseInteger(StringUtil.getInfo(search, "parentId"));
return materialCategoryService.countMaterialCategory(name, parentId);
}
@Override
public int insert(JSONObject obj, HttpServletRequest request)throws Exception {
return materialCategoryService.insertMaterialCategory(obj, request);
}
@Override
public int update(JSONObject obj, HttpServletRequest request)throws Exception {
return materialCategoryService.updateMaterialCategory(obj, request);
}
@Override
public int delete(Long id, HttpServletRequest request)throws Exception {
return materialCategoryService.deleteMaterialCategory(id, request);
}
@Override
public int deleteBatch(String ids, HttpServletRequest request)throws Exception {
return materialCategoryService.batchDeleteMaterialCategory(ids, request);
}
@Override
public int checkIsNameExist(Long id, String name)throws Exception {
return materialCategoryService.checkIsNameExist(id, name);
}
}
|
apache-2.0
|
andrew-aladev/webgl-loader
|
src/testing/json_test.cc
|
3509
|
#if 0 // A cute trick to making this .cc self-building from shell.
g++ $0 -O2 -Wall -Werror -o `basename $0 .cc`;
exit;
#endif
// Copyright 2011 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License"); you
// may not use this file except in compliance with the License. You
// may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
// implied. See the License for the specific language governing
// permissions and limitations under the License.
#include "../base.h"
#include "../stream.h"
#include "../json.h"
#include <float.h>
#include <limits.h>
#include <string>
namespace webgl_loader {
class JsonSinkTest {
public:
JsonSinkTest()
: sink_(&buf_), json_(&sink_) {
}
void TestNull() {
json_.PutNull();
CheckString("null");
}
void TestBool() {
json_.PutBool(true);
CheckString("true");
json_.PutBool(false);
CheckString("false");
}
void TestInt() {
for (int i = 0; i < 10; ++i) {
json_.PutInt(i);
char test[] = "0";
test[0] += i;
CheckString(test);
}
json_.PutInt(INT_MIN);
CheckString("-2147483648");
json_.PutInt(INT_MAX);
CheckString("2147483647");
}
void TestFloat() {
json_.PutFloat(123.456);
CheckString("123.456");
json_.PutFloat(FLT_MAX);
CheckString("3.40282e+38");
json_.PutFloat(-FLT_MAX);
CheckString("-3.40282e+38");
json_.PutFloat(FLT_MIN);
CheckString("1.17549e-38");
json_.PutFloat(-FLT_MIN);
CheckString("-1.17549e-38");
}
void TestString() {
json_.PutString("foo");
CheckString("\"foo\"");
}
void TestArray() {
json_.BeginArray();
for (int i = 0; i < 100; i += 10) {
json_.PutInt(i);
}
json_.End();
CheckString("[0,10,20,30,40,50,60,70,80,90]");
json_.BeginArray();
json_.BeginArray();
json_.PutNull();
json_.End();
json_.BeginArray();
json_.PutBool(false);
json_.PutBool(true);
json_.End();
for (int i = 0; i < 5; ++i) {
json_.PutInt(i*i);
}
json_.BeginObject();
json_.PutString("key");
json_.PutString("value");
json_.EndAll();
CheckString("[[null],[false,true],0,1,4,9,16,{\"key\":\"value\"}]");
}
void TestObject() {
json_.BeginObject();
json_.PutString("key1");
json_.PutInt(1);
json_.PutString("keyABC");
json_.PutString("abc");
json_.End();
CheckString("{\"key1\":1,\"keyABC\":\"abc\"}");
json_.BeginObject();
json_.PutString("array");
json_.BeginArray();
for (int i = 1; i <= 3; ++i) {
json_.PutInt(i);
}
json_.End();
json_.BeginObject();
json_.PutString("key");
json_.PutString("value");
json_.End();
json_.PutString("k");
json_.PutFloat(0.1);
json_.End();
CheckString("{\"array\":[1,2,3]{\"key\":\"value\"},\"k\":0.1}");
}
private:
void CheckString(const char* str) {
CHECK(buf_ == str);
buf_.clear();
}
std::string buf_;
StringSink sink_;
JsonSink json_;
};
} // namespace webgl_loader
int main() {
webgl_loader::JsonSinkTest tester;
tester.TestNull();
tester.TestBool();
tester.TestInt();
tester.TestFloat();
tester.TestString();
tester.TestArray();
tester.TestObject();
return 0;
}
|
apache-2.0
|
FSE301-Photerra/photerras
|
contact.php
|
90
|
<?php
include 'app.php';
// render template
echo $twig->render('contact.twig', array());
|
apache-2.0
|
googleads/googleads-java-lib
|
modules/dfp_appengine/src/main/java/com/google/api/ads/admanager/jaxws/v202111/SlateAction.java
|
1537
|
// Copyright 2021 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.api.ads.admanager.jaxws.v202111;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.bind.annotation.XmlType;
/**
*
* Represents the actions that can be performed on slates.
*
*
* <p>Java class for SlateAction complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="SlateAction">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "SlateAction")
@XmlSeeAlso({
UnarchiveSlates.class,
ArchiveSlates.class
})
public abstract class SlateAction {
}
|
apache-2.0
|
docker-library/repo-info
|
repos/busybox/tag-details.md
|
234626
|
<!-- THIS FILE IS GENERATED VIA './update-remote.sh' -->
# Tags of `busybox`
- [`busybox:1`](#busybox1)
- [`busybox:1-glibc`](#busybox1-glibc)
- [`busybox:1-musl`](#busybox1-musl)
- [`busybox:1-uclibc`](#busybox1-uclibc)
- [`busybox:1.34`](#busybox134)
- [`busybox:1.34-glibc`](#busybox134-glibc)
- [`busybox:1.34-musl`](#busybox134-musl)
- [`busybox:1.34-uclibc`](#busybox134-uclibc)
- [`busybox:1.34.1`](#busybox1341)
- [`busybox:1.34.1-glibc`](#busybox1341-glibc)
- [`busybox:1.34.1-musl`](#busybox1341-musl)
- [`busybox:1.34.1-uclibc`](#busybox1341-uclibc)
- [`busybox:1.35`](#busybox135)
- [`busybox:1.35-glibc`](#busybox135-glibc)
- [`busybox:1.35-musl`](#busybox135-musl)
- [`busybox:1.35-uclibc`](#busybox135-uclibc)
- [`busybox:1.35.0`](#busybox1350)
- [`busybox:1.35.0-glibc`](#busybox1350-glibc)
- [`busybox:1.35.0-musl`](#busybox1350-musl)
- [`busybox:1.35.0-uclibc`](#busybox1350-uclibc)
- [`busybox:glibc`](#busyboxglibc)
- [`busybox:latest`](#busyboxlatest)
- [`busybox:musl`](#busyboxmusl)
- [`busybox:stable`](#busyboxstable)
- [`busybox:stable-glibc`](#busyboxstable-glibc)
- [`busybox:stable-musl`](#busyboxstable-musl)
- [`busybox:stable-uclibc`](#busyboxstable-uclibc)
- [`busybox:uclibc`](#busyboxuclibc)
- [`busybox:unstable`](#busyboxunstable)
- [`busybox:unstable-glibc`](#busyboxunstable-glibc)
- [`busybox:unstable-musl`](#busyboxunstable-musl)
- [`busybox:unstable-uclibc`](#busyboxunstable-uclibc)
## `busybox:1`
```console
$ docker pull busybox@sha256:34c3559bbdedefd67195e766e38cfbb0fcabff4241dbee3f390fd6e3310f5ebc
```
- Manifest MIME: `application/vnd.docker.distribution.manifest.list.v2+json`
- Platforms: 10
- linux; amd64
- linux; arm variant v5
- linux; arm variant v6
- linux; arm variant v7
- linux; arm64 variant v8
- linux; 386
- linux; mips64le
- linux; ppc64le
- linux; riscv64
- linux; s390x
### `busybox:1` - linux; amd64
```console
$ docker pull busybox@sha256:1286c6d3c393023ef93c247724a6a2d665528144ffe07bacb741cc2b4edfefad
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **772.8 KB (772791 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:829374d342ae65a12f3a95911bc04a001894349f70783fda841b1a784008727d`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 02:00:21 GMT
ADD file:226e7f2ac42bdc9f3dca1617232c037937479b1247873a4070654f240b5242ea in /
# Sat, 05 Mar 2022 02:00:21 GMT
CMD ["sh"]
```
- Layers:
- `sha256:7e5209d2300fe99e0b7ae40573c1afd49bd14f16e018fa8c6bd5d86599742480`
Last Modified: Sat, 05 Mar 2022 02:01:34 GMT
Size: 772.8 KB (772791 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1` - linux; arm variant v5
```console
$ docker pull busybox@sha256:f9798a2e496f1bdaa2f2cadc397eb49b0840bfcbfd1dbbdf19b939741a085eb8
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **756.2 KB (756170 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:df2d4eec4a46cba4ee1c56e6e43bb7c93e4713386308a8b0f14543910a4defa5`
- Default Command: `["sh"]`
```dockerfile
# Fri, 04 Mar 2022 23:53:02 GMT
ADD file:8036ef9c434c873a6052d5ab2da56c16fdd0ef2034b8c99e2c8eda7d8710f4c1 in /
# Fri, 04 Mar 2022 23:53:02 GMT
CMD ["sh"]
```
- Layers:
- `sha256:7f140d6da4eebf50788f382b3811c926ee2eb09175a32b5d15275420945551eb`
Last Modified: Fri, 04 Mar 2022 23:55:53 GMT
Size: 756.2 KB (756170 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1` - linux; arm variant v6
```console
$ docker pull busybox@sha256:3d7cb72270112b7a57f8f558e0d5628f419de156f399ccd4a6461b55e1c4c7f4
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **952.7 KB (952700 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:08c1b65347071694f47ae73e32fdb620982c8f6f7f7d97a6fc527ec5259a6187`
- Default Command: `["sh"]`
```dockerfile
# Fri, 04 Mar 2022 22:49:29 GMT
ADD file:334504741d671d370cdadfe3ced64bd1871d35da1c796f2ec84333dabd0ff8b4 in /
# Fri, 04 Mar 2022 22:49:30 GMT
CMD ["sh"]
```
- Layers:
- `sha256:02b313a03502bc10146ad75ee7991dde100c3d35c83a77efb234132052f34cbb`
Last Modified: Fri, 04 Mar 2022 22:51:24 GMT
Size: 952.7 KB (952700 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1` - linux; arm variant v7
```console
$ docker pull busybox@sha256:1eddb2a84c2180a0c15d555b02f0ef1f27bc82578dbd8f9f5247988379e94f47
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **724.2 KB (724248 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:07fd82dc1137365d59499d019588996eaa353ac6d8f6d830cfda9823001a05be`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 00:29:36 GMT
ADD file:dc94ebfc585d690f27d4b2f863164e4e1da5d3725adaa069e600eb0929bd0d20 in /
# Sat, 05 Mar 2022 00:29:37 GMT
CMD ["sh"]
```
- Layers:
- `sha256:1f1134cef263f3583ee4da1eb66faed8f3b6e8c55ee03b8b85a7a86300794133`
Last Modified: Sat, 05 Mar 2022 00:33:53 GMT
Size: 724.2 KB (724248 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1` - linux; arm64 variant v8
```console
$ docker pull busybox@sha256:4ac01bbe388029df6ff7f9d827f6a56836e2a8c0d556838d3cffde6efd55354e
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **828.5 KB (828499 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:a8440bba1bc0c2275106287dd98a5522f820ef44553eba6d7e94403c5a1bdfab`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 02:50:50 GMT
ADD file:e4a27dc7b408995f7972c904c3e000613e01527a3eb5d8c08572dc141de2586a in /
# Sat, 05 Mar 2022 02:50:50 GMT
CMD ["sh"]
```
- Layers:
- `sha256:f4731b18983e25cd9e954a01644b84b249cb3339ab1ce8806811ef5e7fe776e2`
Last Modified: Sat, 05 Mar 2022 02:52:37 GMT
Size: 828.5 KB (828499 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1` - linux; 386
```console
$ docker pull busybox@sha256:31debb44d15d27a26196feb05a2898885a1129466cb6d4540eada4a840310a23
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **736.1 KB (736052 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:5c51ed1b0783f93ef813e167373302f35524925cf33cd079bce094d9e7841677`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 01:36:32 GMT
ADD file:a41d834f85906ca00c99080dbbf3cce6ba11e6fcd111ddd69b5d7ee309134bad in /
# Sat, 05 Mar 2022 01:36:32 GMT
CMD ["sh"]
```
- Layers:
- `sha256:2e2bf5271917532f9d6e38d7ce9795837bb8b9688d054f828cda62707471348d`
Last Modified: Sat, 05 Mar 2022 01:38:38 GMT
Size: 736.1 KB (736052 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1` - linux; mips64le
```console
$ docker pull busybox@sha256:87d17a0d4364a4c5fac2c4b8dde976b44bf5295fc9748596d3e207c532c519ed
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **960.5 KB (960452 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:8d39b35e36b69300e26dbd877a127f02102c47bf8d22a6050addb0d7f080980f`
- Default Command: `["sh"]`
```dockerfile
# Mon, 07 Mar 2022 02:36:30 GMT
ADD file:7fe1a29749c8e395e230388cb4ee7e79d22789d81ba78aeca1c850bee88a1ba5 in /
# Mon, 07 Mar 2022 02:36:32 GMT
CMD ["sh"]
```
- Layers:
- `sha256:5b3a797eb0d36a8f5eca8659a73918965a1f370835254a38f9eaf4dd7c8264e8`
Last Modified: Mon, 07 Mar 2022 02:37:38 GMT
Size: 960.5 KB (960452 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1` - linux; ppc64le
```console
$ docker pull busybox@sha256:612af5dd099eef42b55cdf383b755cda5b941b76f9381265367ca320a5ac20b5
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **2.5 MB (2484093 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:a5bafd995fa7a6db6073649c32c32c92fbd617012bbdf6c4a53b69b4db02c24e`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 01:10:51 GMT
ADD file:7df57899a43661a1b2ee6c642e038edb2631d4f0c750182b1c72cb8eb883c2f7 in /
# Sat, 05 Mar 2022 01:10:54 GMT
CMD ["sh"]
```
- Layers:
- `sha256:c97b8caf206daa13c1aa849437ad58c3d82e672d8f883b17cc468bbd84f17184`
Last Modified: Sat, 05 Mar 2022 01:13:03 GMT
Size: 2.5 MB (2484093 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1` - linux; riscv64
```console
$ docker pull busybox@sha256:ca24dc4ba0c09be9700469d7a1f54a09654419df8269bc0e98db74a9638dd61a
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **905.3 KB (905290 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:9ff90b641f3795e2a42432e95f2312360bbb4dfadaf0a3a53471d5fb4845284b`
- Default Command: `["sh"]`
```dockerfile
# Fri, 04 Mar 2022 23:13:31 GMT
ADD file:26259fce51a28095ea46b3c8d4477b76203d178db2d8ddeeae10f6beb73e4384 in /
# Fri, 04 Mar 2022 23:13:32 GMT
CMD ["sh"]
```
- Layers:
- `sha256:1cf0e11797f1cb7d833895c2f401bd798c80ce3b76b451107d4bc8d4c3640958`
Last Modified: Fri, 04 Mar 2022 23:34:35 GMT
Size: 905.3 KB (905290 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1` - linux; s390x
```console
$ docker pull busybox@sha256:f636c0770abd9d7d4638d6b9472c399638c3ff2adefc05836350d543aeb02e04
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **2.0 MB (2006826 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:32f872121512404b6c1e67db827f35371f8922213daadba1ba288d47ec52018f`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 00:37:05 GMT
ADD file:c6f6ddea4cdeeb26befbbb6e05f2f0902c870cc5fc36d08c45c978dac7559114 in /
# Sat, 05 Mar 2022 00:37:05 GMT
CMD ["sh"]
```
- Layers:
- `sha256:d3f0b4793a9600b5d8515905c5534f82e03917d08c59932c30d027f9f8280d58`
Last Modified: Sat, 05 Mar 2022 00:38:36 GMT
Size: 2.0 MB (2006826 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
## `busybox:1-glibc`
```console
$ docker pull busybox@sha256:eb2ce6449180cf13a4c9090136f590a9e56cb2f971106378eb72ca21e36cd879
```
- Manifest MIME: `application/vnd.docker.distribution.manifest.list.v2+json`
- Platforms: 8
- linux; amd64
- linux; arm variant v5
- linux; arm variant v7
- linux; arm64 variant v8
- linux; 386
- linux; mips64le
- linux; ppc64le
- linux; s390x
### `busybox:1-glibc` - linux; amd64
```console
$ docker pull busybox@sha256:d224398aa9019dad8efdd919f8ab71e4b2412cac344052b7f775fd9b34342d8f
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **2.6 MB (2566117 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:1e45f134f7e91ad3850db0725ac82293643d2bbebbc25c3406071ba4d89ca3a4`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 02:00:29 GMT
ADD file:05ccd81e2c33b446d16f58ad7f1ff8bd2e80bbcd788a564e1922b678079a122a in /
# Sat, 05 Mar 2022 02:00:29 GMT
CMD ["sh"]
```
- Layers:
- `sha256:4716b0e5bf987ed4efeced460c6c11786c9ff99dbacafbcb6a5a82f7d8ebd83a`
Last Modified: Sat, 05 Mar 2022 02:01:50 GMT
Size: 2.6 MB (2566117 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1-glibc` - linux; arm variant v5
```console
$ docker pull busybox@sha256:a92f8ad0773a537b695a10961110ad43ddf57523ab8d5630027cb32d82dc10a0
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **1.9 MB (1930778 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:9ef4eb1817df9cee9673079422d59657c2d68a18523bcdbe2923c76616d6d674`
- Default Command: `["sh"]`
```dockerfile
# Fri, 04 Mar 2022 23:53:17 GMT
ADD file:1f5a05d8f0ca917f59d91add5c1587857acea4690daf45ddd40785e5b3a98622 in /
# Fri, 04 Mar 2022 23:53:17 GMT
CMD ["sh"]
```
- Layers:
- `sha256:e44453e16a4248ff1bdf0b20ae46d48945598933af6264788736342c84f0c264`
Last Modified: Fri, 04 Mar 2022 23:56:16 GMT
Size: 1.9 MB (1930778 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1-glibc` - linux; arm variant v7
```console
$ docker pull busybox@sha256:af04becc8b1710ae52efbd00851b3441d523e15a6799a6fc0d66526307c97b90
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **1.7 MB (1678697 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:c2aaece4707f9e7ba8729f653e924062c95863b33d8e78c656efa41f7fb245ae`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 00:29:53 GMT
ADD file:bbaae957f6e332a5ab0fa52a407edc35cef05e20694503c02202f09cbecfaeb7 in /
# Sat, 05 Mar 2022 00:29:54 GMT
CMD ["sh"]
```
- Layers:
- `sha256:f47e3aecd4ecc498dfe2a0b8af03c5908f51a12bf9c6c7882da54e045592af1d`
Last Modified: Sat, 05 Mar 2022 00:34:16 GMT
Size: 1.7 MB (1678697 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1-glibc` - linux; arm64 variant v8
```console
$ docker pull busybox@sha256:138caefe5d4587a2e399e10584ec48b6ac6e85ca4648a2ae79cf2596522db96d
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **2.0 MB (1996167 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:5aa233f38809f493559589f4e22b2088b1bfb9360e7d8d6cdeeafc5e95b915c6`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 02:50:57 GMT
ADD file:258a8844c7008f22b0dc0a79c33d7a7268a5d0c878a1c712687901d74a14ac0c in /
# Sat, 05 Mar 2022 02:50:57 GMT
CMD ["sh"]
```
- Layers:
- `sha256:83f1fddca34bd4a67d2051806f9186712c8111c92c1818bdb6d6afec4fb779b1`
Last Modified: Sat, 05 Mar 2022 02:52:58 GMT
Size: 2.0 MB (1996167 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1-glibc` - linux; 386
```console
$ docker pull busybox@sha256:97256981fabef7178530a1a7229a997f766101c38049d3a2affef354daac4fe1
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **2.2 MB (2233781 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:55a2e0dcbee048e776108c041c437b3b585e796b4d534a84dfbf35de525b11cf`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 01:36:40 GMT
ADD file:b869021110509d7db63766d9b56ed251db50b7d794dc5d22e895db264fe96fbf in /
# Sat, 05 Mar 2022 01:36:40 GMT
CMD ["sh"]
```
- Layers:
- `sha256:46b35c816ab3818c2c8250f5594acf55d8960a5dd80aa91dc16449066295259f`
Last Modified: Sat, 05 Mar 2022 01:38:58 GMT
Size: 2.2 MB (2233781 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1-glibc` - linux; mips64le
```console
$ docker pull busybox@sha256:4cbd8205c204cb78e9f4488b75df12873f209afa8ea91e9ef0f0801b69f170ac
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **2.2 MB (2220698 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:6137443aab3c8a8023fec907d41db1883f43e39660f36a360dda6da22a096dbe`
- Default Command: `["sh"]`
```dockerfile
# Mon, 07 Mar 2022 02:36:43 GMT
ADD file:d1e8829df1e36d915ea4eb28411b0be2d6f08b874ad25e3f2d2efe2a13ad8127 in /
# Mon, 07 Mar 2022 02:36:45 GMT
CMD ["sh"]
```
- Layers:
- `sha256:68dec1366233aa1c152c88886d39641f952606de34dfe9483019140d11b3df2a`
Last Modified: Mon, 07 Mar 2022 02:37:55 GMT
Size: 2.2 MB (2220698 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1-glibc` - linux; ppc64le
```console
$ docker pull busybox@sha256:612af5dd099eef42b55cdf383b755cda5b941b76f9381265367ca320a5ac20b5
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **2.5 MB (2484093 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:a5bafd995fa7a6db6073649c32c32c92fbd617012bbdf6c4a53b69b4db02c24e`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 01:10:51 GMT
ADD file:7df57899a43661a1b2ee6c642e038edb2631d4f0c750182b1c72cb8eb883c2f7 in /
# Sat, 05 Mar 2022 01:10:54 GMT
CMD ["sh"]
```
- Layers:
- `sha256:c97b8caf206daa13c1aa849437ad58c3d82e672d8f883b17cc468bbd84f17184`
Last Modified: Sat, 05 Mar 2022 01:13:03 GMT
Size: 2.5 MB (2484093 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1-glibc` - linux; s390x
```console
$ docker pull busybox@sha256:f636c0770abd9d7d4638d6b9472c399638c3ff2adefc05836350d543aeb02e04
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **2.0 MB (2006826 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:32f872121512404b6c1e67db827f35371f8922213daadba1ba288d47ec52018f`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 00:37:05 GMT
ADD file:c6f6ddea4cdeeb26befbbb6e05f2f0902c870cc5fc36d08c45c978dac7559114 in /
# Sat, 05 Mar 2022 00:37:05 GMT
CMD ["sh"]
```
- Layers:
- `sha256:d3f0b4793a9600b5d8515905c5534f82e03917d08c59932c30d027f9f8280d58`
Last Modified: Sat, 05 Mar 2022 00:38:36 GMT
Size: 2.0 MB (2006826 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
## `busybox:1-musl`
```console
$ docker pull busybox@sha256:088b19c260d977637a5ab9501f8112cad5d558ca07b06f028e25dc7496d60fb2
```
- Manifest MIME: `application/vnd.docker.distribution.manifest.list.v2+json`
- Platforms: 7
- linux; amd64
- linux; arm variant v6
- linux; arm variant v7
- linux; arm64 variant v8
- linux; 386
- linux; ppc64le
- linux; s390x
### `busybox:1-musl` - linux; amd64
```console
$ docker pull busybox@sha256:e812258a4b20e62fdcec8751de8d55b0c007c637f4a0451b2decba14eb2c1c23
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **843.5 KB (843454 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:42772a0ef2faaa7a2c6d7abc4951aa5401e3f357fb3a574aade48dc440ce393f`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 02:00:35 GMT
ADD file:699b04b6c66cfc3996e846f1177b072d45d519335d5f7536feed94d2b302a6f9 in /
# Sat, 05 Mar 2022 02:00:35 GMT
CMD ["sh"]
```
- Layers:
- `sha256:ee55587a9d2d2d79d6b4a587369e1a0b10208bf8bde21486ebaaebfa71cdde69`
Last Modified: Sat, 05 Mar 2022 02:02:07 GMT
Size: 843.5 KB (843454 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1-musl` - linux; arm variant v6
```console
$ docker pull busybox@sha256:3d7cb72270112b7a57f8f558e0d5628f419de156f399ccd4a6461b55e1c4c7f4
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **952.7 KB (952700 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:08c1b65347071694f47ae73e32fdb620982c8f6f7f7d97a6fc527ec5259a6187`
- Default Command: `["sh"]`
```dockerfile
# Fri, 04 Mar 2022 22:49:29 GMT
ADD file:334504741d671d370cdadfe3ced64bd1871d35da1c796f2ec84333dabd0ff8b4 in /
# Fri, 04 Mar 2022 22:49:30 GMT
CMD ["sh"]
```
- Layers:
- `sha256:02b313a03502bc10146ad75ee7991dde100c3d35c83a77efb234132052f34cbb`
Last Modified: Fri, 04 Mar 2022 22:51:24 GMT
Size: 952.7 KB (952700 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1-musl` - linux; arm variant v7
```console
$ docker pull busybox@sha256:9175299f88c3c4d053910b3613928a5d29797438d086d934da5fb0f49281b0bb
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **834.7 KB (834663 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:862bfec3778cd3e9219aaf6ccb2b53dda3bb44cf85115145c7d9f951ed19ce97`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 00:30:11 GMT
ADD file:fa125406069c71cfe971a132d5d1e1f7c0fb21657ce5e0c0284b67b7c4031678 in /
# Sat, 05 Mar 2022 00:30:11 GMT
CMD ["sh"]
```
- Layers:
- `sha256:24871fca46b7088bb4bedddd9251317cd75024051a5e66a72de8461263b2dab5`
Last Modified: Sat, 05 Mar 2022 00:34:39 GMT
Size: 834.7 KB (834663 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1-musl` - linux; arm64 variant v8
```console
$ docker pull busybox@sha256:9a8da2c658a35d333eeb79884ff0cc82d82eb5ac65d472f6e89e1f47692e01b1
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **882.0 KB (882048 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:562e905002d333606c8a54c49d85c3fc066245a82a02a86bc1fa7ba0a3f78868`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 02:51:04 GMT
ADD file:a2caadb212503797ce9c274832c8611a8fb6522a27f65f2a01e81b0717e72b82 in /
# Sat, 05 Mar 2022 02:51:04 GMT
CMD ["sh"]
```
- Layers:
- `sha256:0f37c4f784f272466d9590f8a9eb74b1a6824bc8c84f245296881fdccd95554e`
Last Modified: Sat, 05 Mar 2022 02:53:17 GMT
Size: 882.0 KB (882048 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1-musl` - linux; 386
```console
$ docker pull busybox@sha256:99d19539528018b9c68a5a1ab819e74706de01b0c681b28284130628d460a3c8
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **849.8 KB (849768 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:728b77f01a51f30f92e8009ab1d99dffbc60ae02f985d7625ff37a5b3ca9b335`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 01:36:47 GMT
ADD file:7a9ba9104c5a0a9e470eb2cead22b355534544e80b6f5766510153dd20948ec6 in /
# Sat, 05 Mar 2022 01:36:47 GMT
CMD ["sh"]
```
- Layers:
- `sha256:82a3b9faf10ba452213e6a8291df0994f7c647a3be39b7f31597e437bb2c08e4`
Last Modified: Sat, 05 Mar 2022 01:39:19 GMT
Size: 849.8 KB (849768 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1-musl` - linux; ppc64le
```console
$ docker pull busybox@sha256:276a7ed77f30d8b879b5a894666f2d870347a2c63b346d7d73c19cfa1c46d0b5
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **919.3 KB (919259 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:99ea3ca0263c1064a53a553c234c32d61bf5c59451ca5c6dfa7ad10df1cad774`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 01:11:11 GMT
ADD file:74bd92e80de94e0f43d29f0ba1c600e0b94b5071fd828324c101568457efe8fb in /
# Sat, 05 Mar 2022 01:11:15 GMT
CMD ["sh"]
```
- Layers:
- `sha256:288c2a68b0f032f671110b4f26c1db9f1f85be9a1aabdaaa1bf2492197911e45`
Last Modified: Sat, 05 Mar 2022 01:13:26 GMT
Size: 919.3 KB (919259 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1-musl` - linux; s390x
```console
$ docker pull busybox@sha256:3ab6e0a75bfc1364978d974dc5aed1aab3eddc3bfe261f4d8c522c37ec9ac0bb
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **893.9 KB (893901 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:8ade86bf60d9286945b043f38e63af46d0c2c20feef349d1a6d7de5b88cdc705`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 00:37:13 GMT
ADD file:b6e29661a3e519869751a3fbaef209d4c49cb757415e7933ac045b4ff47b2b23 in /
# Sat, 05 Mar 2022 00:37:13 GMT
CMD ["sh"]
```
- Layers:
- `sha256:3f76de4d35e3121f21e5b502d7a2224006135023f00c2e549f7e728b7b398d0a`
Last Modified: Sat, 05 Mar 2022 00:38:48 GMT
Size: 893.9 KB (893901 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
## `busybox:1-uclibc`
```console
$ docker pull busybox@sha256:97e0658460b7005232d11df2a4ee96607492e7629b9894b3d203a229677a02f5
```
- Manifest MIME: `application/vnd.docker.distribution.manifest.list.v2+json`
- Platforms: 7
- linux; amd64
- linux; arm variant v5
- linux; arm variant v7
- linux; arm64 variant v8
- linux; 386
- linux; mips64le
- linux; riscv64
### `busybox:1-uclibc` - linux; amd64
```console
$ docker pull busybox@sha256:1286c6d3c393023ef93c247724a6a2d665528144ffe07bacb741cc2b4edfefad
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **772.8 KB (772791 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:829374d342ae65a12f3a95911bc04a001894349f70783fda841b1a784008727d`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 02:00:21 GMT
ADD file:226e7f2ac42bdc9f3dca1617232c037937479b1247873a4070654f240b5242ea in /
# Sat, 05 Mar 2022 02:00:21 GMT
CMD ["sh"]
```
- Layers:
- `sha256:7e5209d2300fe99e0b7ae40573c1afd49bd14f16e018fa8c6bd5d86599742480`
Last Modified: Sat, 05 Mar 2022 02:01:34 GMT
Size: 772.8 KB (772791 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1-uclibc` - linux; arm variant v5
```console
$ docker pull busybox@sha256:f9798a2e496f1bdaa2f2cadc397eb49b0840bfcbfd1dbbdf19b939741a085eb8
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **756.2 KB (756170 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:df2d4eec4a46cba4ee1c56e6e43bb7c93e4713386308a8b0f14543910a4defa5`
- Default Command: `["sh"]`
```dockerfile
# Fri, 04 Mar 2022 23:53:02 GMT
ADD file:8036ef9c434c873a6052d5ab2da56c16fdd0ef2034b8c99e2c8eda7d8710f4c1 in /
# Fri, 04 Mar 2022 23:53:02 GMT
CMD ["sh"]
```
- Layers:
- `sha256:7f140d6da4eebf50788f382b3811c926ee2eb09175a32b5d15275420945551eb`
Last Modified: Fri, 04 Mar 2022 23:55:53 GMT
Size: 756.2 KB (756170 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1-uclibc` - linux; arm variant v7
```console
$ docker pull busybox@sha256:1eddb2a84c2180a0c15d555b02f0ef1f27bc82578dbd8f9f5247988379e94f47
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **724.2 KB (724248 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:07fd82dc1137365d59499d019588996eaa353ac6d8f6d830cfda9823001a05be`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 00:29:36 GMT
ADD file:dc94ebfc585d690f27d4b2f863164e4e1da5d3725adaa069e600eb0929bd0d20 in /
# Sat, 05 Mar 2022 00:29:37 GMT
CMD ["sh"]
```
- Layers:
- `sha256:1f1134cef263f3583ee4da1eb66faed8f3b6e8c55ee03b8b85a7a86300794133`
Last Modified: Sat, 05 Mar 2022 00:33:53 GMT
Size: 724.2 KB (724248 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1-uclibc` - linux; arm64 variant v8
```console
$ docker pull busybox@sha256:4ac01bbe388029df6ff7f9d827f6a56836e2a8c0d556838d3cffde6efd55354e
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **828.5 KB (828499 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:a8440bba1bc0c2275106287dd98a5522f820ef44553eba6d7e94403c5a1bdfab`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 02:50:50 GMT
ADD file:e4a27dc7b408995f7972c904c3e000613e01527a3eb5d8c08572dc141de2586a in /
# Sat, 05 Mar 2022 02:50:50 GMT
CMD ["sh"]
```
- Layers:
- `sha256:f4731b18983e25cd9e954a01644b84b249cb3339ab1ce8806811ef5e7fe776e2`
Last Modified: Sat, 05 Mar 2022 02:52:37 GMT
Size: 828.5 KB (828499 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1-uclibc` - linux; 386
```console
$ docker pull busybox@sha256:31debb44d15d27a26196feb05a2898885a1129466cb6d4540eada4a840310a23
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **736.1 KB (736052 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:5c51ed1b0783f93ef813e167373302f35524925cf33cd079bce094d9e7841677`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 01:36:32 GMT
ADD file:a41d834f85906ca00c99080dbbf3cce6ba11e6fcd111ddd69b5d7ee309134bad in /
# Sat, 05 Mar 2022 01:36:32 GMT
CMD ["sh"]
```
- Layers:
- `sha256:2e2bf5271917532f9d6e38d7ce9795837bb8b9688d054f828cda62707471348d`
Last Modified: Sat, 05 Mar 2022 01:38:38 GMT
Size: 736.1 KB (736052 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1-uclibc` - linux; mips64le
```console
$ docker pull busybox@sha256:87d17a0d4364a4c5fac2c4b8dde976b44bf5295fc9748596d3e207c532c519ed
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **960.5 KB (960452 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:8d39b35e36b69300e26dbd877a127f02102c47bf8d22a6050addb0d7f080980f`
- Default Command: `["sh"]`
```dockerfile
# Mon, 07 Mar 2022 02:36:30 GMT
ADD file:7fe1a29749c8e395e230388cb4ee7e79d22789d81ba78aeca1c850bee88a1ba5 in /
# Mon, 07 Mar 2022 02:36:32 GMT
CMD ["sh"]
```
- Layers:
- `sha256:5b3a797eb0d36a8f5eca8659a73918965a1f370835254a38f9eaf4dd7c8264e8`
Last Modified: Mon, 07 Mar 2022 02:37:38 GMT
Size: 960.5 KB (960452 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1-uclibc` - linux; riscv64
```console
$ docker pull busybox@sha256:ca24dc4ba0c09be9700469d7a1f54a09654419df8269bc0e98db74a9638dd61a
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **905.3 KB (905290 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:9ff90b641f3795e2a42432e95f2312360bbb4dfadaf0a3a53471d5fb4845284b`
- Default Command: `["sh"]`
```dockerfile
# Fri, 04 Mar 2022 23:13:31 GMT
ADD file:26259fce51a28095ea46b3c8d4477b76203d178db2d8ddeeae10f6beb73e4384 in /
# Fri, 04 Mar 2022 23:13:32 GMT
CMD ["sh"]
```
- Layers:
- `sha256:1cf0e11797f1cb7d833895c2f401bd798c80ce3b76b451107d4bc8d4c3640958`
Last Modified: Fri, 04 Mar 2022 23:34:35 GMT
Size: 905.3 KB (905290 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
## `busybox:1.34`
```console
$ docker pull busybox@sha256:34c3559bbdedefd67195e766e38cfbb0fcabff4241dbee3f390fd6e3310f5ebc
```
- Manifest MIME: `application/vnd.docker.distribution.manifest.list.v2+json`
- Platforms: 10
- linux; amd64
- linux; arm variant v5
- linux; arm variant v6
- linux; arm variant v7
- linux; arm64 variant v8
- linux; 386
- linux; mips64le
- linux; ppc64le
- linux; riscv64
- linux; s390x
### `busybox:1.34` - linux; amd64
```console
$ docker pull busybox@sha256:1286c6d3c393023ef93c247724a6a2d665528144ffe07bacb741cc2b4edfefad
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **772.8 KB (772791 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:829374d342ae65a12f3a95911bc04a001894349f70783fda841b1a784008727d`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 02:00:21 GMT
ADD file:226e7f2ac42bdc9f3dca1617232c037937479b1247873a4070654f240b5242ea in /
# Sat, 05 Mar 2022 02:00:21 GMT
CMD ["sh"]
```
- Layers:
- `sha256:7e5209d2300fe99e0b7ae40573c1afd49bd14f16e018fa8c6bd5d86599742480`
Last Modified: Sat, 05 Mar 2022 02:01:34 GMT
Size: 772.8 KB (772791 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.34` - linux; arm variant v5
```console
$ docker pull busybox@sha256:f9798a2e496f1bdaa2f2cadc397eb49b0840bfcbfd1dbbdf19b939741a085eb8
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **756.2 KB (756170 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:df2d4eec4a46cba4ee1c56e6e43bb7c93e4713386308a8b0f14543910a4defa5`
- Default Command: `["sh"]`
```dockerfile
# Fri, 04 Mar 2022 23:53:02 GMT
ADD file:8036ef9c434c873a6052d5ab2da56c16fdd0ef2034b8c99e2c8eda7d8710f4c1 in /
# Fri, 04 Mar 2022 23:53:02 GMT
CMD ["sh"]
```
- Layers:
- `sha256:7f140d6da4eebf50788f382b3811c926ee2eb09175a32b5d15275420945551eb`
Last Modified: Fri, 04 Mar 2022 23:55:53 GMT
Size: 756.2 KB (756170 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.34` - linux; arm variant v6
```console
$ docker pull busybox@sha256:3d7cb72270112b7a57f8f558e0d5628f419de156f399ccd4a6461b55e1c4c7f4
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **952.7 KB (952700 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:08c1b65347071694f47ae73e32fdb620982c8f6f7f7d97a6fc527ec5259a6187`
- Default Command: `["sh"]`
```dockerfile
# Fri, 04 Mar 2022 22:49:29 GMT
ADD file:334504741d671d370cdadfe3ced64bd1871d35da1c796f2ec84333dabd0ff8b4 in /
# Fri, 04 Mar 2022 22:49:30 GMT
CMD ["sh"]
```
- Layers:
- `sha256:02b313a03502bc10146ad75ee7991dde100c3d35c83a77efb234132052f34cbb`
Last Modified: Fri, 04 Mar 2022 22:51:24 GMT
Size: 952.7 KB (952700 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.34` - linux; arm variant v7
```console
$ docker pull busybox@sha256:1eddb2a84c2180a0c15d555b02f0ef1f27bc82578dbd8f9f5247988379e94f47
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **724.2 KB (724248 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:07fd82dc1137365d59499d019588996eaa353ac6d8f6d830cfda9823001a05be`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 00:29:36 GMT
ADD file:dc94ebfc585d690f27d4b2f863164e4e1da5d3725adaa069e600eb0929bd0d20 in /
# Sat, 05 Mar 2022 00:29:37 GMT
CMD ["sh"]
```
- Layers:
- `sha256:1f1134cef263f3583ee4da1eb66faed8f3b6e8c55ee03b8b85a7a86300794133`
Last Modified: Sat, 05 Mar 2022 00:33:53 GMT
Size: 724.2 KB (724248 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.34` - linux; arm64 variant v8
```console
$ docker pull busybox@sha256:4ac01bbe388029df6ff7f9d827f6a56836e2a8c0d556838d3cffde6efd55354e
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **828.5 KB (828499 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:a8440bba1bc0c2275106287dd98a5522f820ef44553eba6d7e94403c5a1bdfab`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 02:50:50 GMT
ADD file:e4a27dc7b408995f7972c904c3e000613e01527a3eb5d8c08572dc141de2586a in /
# Sat, 05 Mar 2022 02:50:50 GMT
CMD ["sh"]
```
- Layers:
- `sha256:f4731b18983e25cd9e954a01644b84b249cb3339ab1ce8806811ef5e7fe776e2`
Last Modified: Sat, 05 Mar 2022 02:52:37 GMT
Size: 828.5 KB (828499 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.34` - linux; 386
```console
$ docker pull busybox@sha256:31debb44d15d27a26196feb05a2898885a1129466cb6d4540eada4a840310a23
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **736.1 KB (736052 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:5c51ed1b0783f93ef813e167373302f35524925cf33cd079bce094d9e7841677`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 01:36:32 GMT
ADD file:a41d834f85906ca00c99080dbbf3cce6ba11e6fcd111ddd69b5d7ee309134bad in /
# Sat, 05 Mar 2022 01:36:32 GMT
CMD ["sh"]
```
- Layers:
- `sha256:2e2bf5271917532f9d6e38d7ce9795837bb8b9688d054f828cda62707471348d`
Last Modified: Sat, 05 Mar 2022 01:38:38 GMT
Size: 736.1 KB (736052 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.34` - linux; mips64le
```console
$ docker pull busybox@sha256:87d17a0d4364a4c5fac2c4b8dde976b44bf5295fc9748596d3e207c532c519ed
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **960.5 KB (960452 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:8d39b35e36b69300e26dbd877a127f02102c47bf8d22a6050addb0d7f080980f`
- Default Command: `["sh"]`
```dockerfile
# Mon, 07 Mar 2022 02:36:30 GMT
ADD file:7fe1a29749c8e395e230388cb4ee7e79d22789d81ba78aeca1c850bee88a1ba5 in /
# Mon, 07 Mar 2022 02:36:32 GMT
CMD ["sh"]
```
- Layers:
- `sha256:5b3a797eb0d36a8f5eca8659a73918965a1f370835254a38f9eaf4dd7c8264e8`
Last Modified: Mon, 07 Mar 2022 02:37:38 GMT
Size: 960.5 KB (960452 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.34` - linux; ppc64le
```console
$ docker pull busybox@sha256:612af5dd099eef42b55cdf383b755cda5b941b76f9381265367ca320a5ac20b5
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **2.5 MB (2484093 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:a5bafd995fa7a6db6073649c32c32c92fbd617012bbdf6c4a53b69b4db02c24e`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 01:10:51 GMT
ADD file:7df57899a43661a1b2ee6c642e038edb2631d4f0c750182b1c72cb8eb883c2f7 in /
# Sat, 05 Mar 2022 01:10:54 GMT
CMD ["sh"]
```
- Layers:
- `sha256:c97b8caf206daa13c1aa849437ad58c3d82e672d8f883b17cc468bbd84f17184`
Last Modified: Sat, 05 Mar 2022 01:13:03 GMT
Size: 2.5 MB (2484093 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.34` - linux; riscv64
```console
$ docker pull busybox@sha256:ca24dc4ba0c09be9700469d7a1f54a09654419df8269bc0e98db74a9638dd61a
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **905.3 KB (905290 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:9ff90b641f3795e2a42432e95f2312360bbb4dfadaf0a3a53471d5fb4845284b`
- Default Command: `["sh"]`
```dockerfile
# Fri, 04 Mar 2022 23:13:31 GMT
ADD file:26259fce51a28095ea46b3c8d4477b76203d178db2d8ddeeae10f6beb73e4384 in /
# Fri, 04 Mar 2022 23:13:32 GMT
CMD ["sh"]
```
- Layers:
- `sha256:1cf0e11797f1cb7d833895c2f401bd798c80ce3b76b451107d4bc8d4c3640958`
Last Modified: Fri, 04 Mar 2022 23:34:35 GMT
Size: 905.3 KB (905290 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.34` - linux; s390x
```console
$ docker pull busybox@sha256:f636c0770abd9d7d4638d6b9472c399638c3ff2adefc05836350d543aeb02e04
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **2.0 MB (2006826 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:32f872121512404b6c1e67db827f35371f8922213daadba1ba288d47ec52018f`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 00:37:05 GMT
ADD file:c6f6ddea4cdeeb26befbbb6e05f2f0902c870cc5fc36d08c45c978dac7559114 in /
# Sat, 05 Mar 2022 00:37:05 GMT
CMD ["sh"]
```
- Layers:
- `sha256:d3f0b4793a9600b5d8515905c5534f82e03917d08c59932c30d027f9f8280d58`
Last Modified: Sat, 05 Mar 2022 00:38:36 GMT
Size: 2.0 MB (2006826 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
## `busybox:1.34-glibc`
```console
$ docker pull busybox@sha256:eb2ce6449180cf13a4c9090136f590a9e56cb2f971106378eb72ca21e36cd879
```
- Manifest MIME: `application/vnd.docker.distribution.manifest.list.v2+json`
- Platforms: 8
- linux; amd64
- linux; arm variant v5
- linux; arm variant v7
- linux; arm64 variant v8
- linux; 386
- linux; mips64le
- linux; ppc64le
- linux; s390x
### `busybox:1.34-glibc` - linux; amd64
```console
$ docker pull busybox@sha256:d224398aa9019dad8efdd919f8ab71e4b2412cac344052b7f775fd9b34342d8f
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **2.6 MB (2566117 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:1e45f134f7e91ad3850db0725ac82293643d2bbebbc25c3406071ba4d89ca3a4`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 02:00:29 GMT
ADD file:05ccd81e2c33b446d16f58ad7f1ff8bd2e80bbcd788a564e1922b678079a122a in /
# Sat, 05 Mar 2022 02:00:29 GMT
CMD ["sh"]
```
- Layers:
- `sha256:4716b0e5bf987ed4efeced460c6c11786c9ff99dbacafbcb6a5a82f7d8ebd83a`
Last Modified: Sat, 05 Mar 2022 02:01:50 GMT
Size: 2.6 MB (2566117 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.34-glibc` - linux; arm variant v5
```console
$ docker pull busybox@sha256:a92f8ad0773a537b695a10961110ad43ddf57523ab8d5630027cb32d82dc10a0
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **1.9 MB (1930778 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:9ef4eb1817df9cee9673079422d59657c2d68a18523bcdbe2923c76616d6d674`
- Default Command: `["sh"]`
```dockerfile
# Fri, 04 Mar 2022 23:53:17 GMT
ADD file:1f5a05d8f0ca917f59d91add5c1587857acea4690daf45ddd40785e5b3a98622 in /
# Fri, 04 Mar 2022 23:53:17 GMT
CMD ["sh"]
```
- Layers:
- `sha256:e44453e16a4248ff1bdf0b20ae46d48945598933af6264788736342c84f0c264`
Last Modified: Fri, 04 Mar 2022 23:56:16 GMT
Size: 1.9 MB (1930778 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.34-glibc` - linux; arm variant v7
```console
$ docker pull busybox@sha256:af04becc8b1710ae52efbd00851b3441d523e15a6799a6fc0d66526307c97b90
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **1.7 MB (1678697 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:c2aaece4707f9e7ba8729f653e924062c95863b33d8e78c656efa41f7fb245ae`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 00:29:53 GMT
ADD file:bbaae957f6e332a5ab0fa52a407edc35cef05e20694503c02202f09cbecfaeb7 in /
# Sat, 05 Mar 2022 00:29:54 GMT
CMD ["sh"]
```
- Layers:
- `sha256:f47e3aecd4ecc498dfe2a0b8af03c5908f51a12bf9c6c7882da54e045592af1d`
Last Modified: Sat, 05 Mar 2022 00:34:16 GMT
Size: 1.7 MB (1678697 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.34-glibc` - linux; arm64 variant v8
```console
$ docker pull busybox@sha256:138caefe5d4587a2e399e10584ec48b6ac6e85ca4648a2ae79cf2596522db96d
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **2.0 MB (1996167 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:5aa233f38809f493559589f4e22b2088b1bfb9360e7d8d6cdeeafc5e95b915c6`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 02:50:57 GMT
ADD file:258a8844c7008f22b0dc0a79c33d7a7268a5d0c878a1c712687901d74a14ac0c in /
# Sat, 05 Mar 2022 02:50:57 GMT
CMD ["sh"]
```
- Layers:
- `sha256:83f1fddca34bd4a67d2051806f9186712c8111c92c1818bdb6d6afec4fb779b1`
Last Modified: Sat, 05 Mar 2022 02:52:58 GMT
Size: 2.0 MB (1996167 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.34-glibc` - linux; 386
```console
$ docker pull busybox@sha256:97256981fabef7178530a1a7229a997f766101c38049d3a2affef354daac4fe1
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **2.2 MB (2233781 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:55a2e0dcbee048e776108c041c437b3b585e796b4d534a84dfbf35de525b11cf`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 01:36:40 GMT
ADD file:b869021110509d7db63766d9b56ed251db50b7d794dc5d22e895db264fe96fbf in /
# Sat, 05 Mar 2022 01:36:40 GMT
CMD ["sh"]
```
- Layers:
- `sha256:46b35c816ab3818c2c8250f5594acf55d8960a5dd80aa91dc16449066295259f`
Last Modified: Sat, 05 Mar 2022 01:38:58 GMT
Size: 2.2 MB (2233781 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.34-glibc` - linux; mips64le
```console
$ docker pull busybox@sha256:4cbd8205c204cb78e9f4488b75df12873f209afa8ea91e9ef0f0801b69f170ac
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **2.2 MB (2220698 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:6137443aab3c8a8023fec907d41db1883f43e39660f36a360dda6da22a096dbe`
- Default Command: `["sh"]`
```dockerfile
# Mon, 07 Mar 2022 02:36:43 GMT
ADD file:d1e8829df1e36d915ea4eb28411b0be2d6f08b874ad25e3f2d2efe2a13ad8127 in /
# Mon, 07 Mar 2022 02:36:45 GMT
CMD ["sh"]
```
- Layers:
- `sha256:68dec1366233aa1c152c88886d39641f952606de34dfe9483019140d11b3df2a`
Last Modified: Mon, 07 Mar 2022 02:37:55 GMT
Size: 2.2 MB (2220698 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.34-glibc` - linux; ppc64le
```console
$ docker pull busybox@sha256:612af5dd099eef42b55cdf383b755cda5b941b76f9381265367ca320a5ac20b5
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **2.5 MB (2484093 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:a5bafd995fa7a6db6073649c32c32c92fbd617012bbdf6c4a53b69b4db02c24e`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 01:10:51 GMT
ADD file:7df57899a43661a1b2ee6c642e038edb2631d4f0c750182b1c72cb8eb883c2f7 in /
# Sat, 05 Mar 2022 01:10:54 GMT
CMD ["sh"]
```
- Layers:
- `sha256:c97b8caf206daa13c1aa849437ad58c3d82e672d8f883b17cc468bbd84f17184`
Last Modified: Sat, 05 Mar 2022 01:13:03 GMT
Size: 2.5 MB (2484093 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.34-glibc` - linux; s390x
```console
$ docker pull busybox@sha256:f636c0770abd9d7d4638d6b9472c399638c3ff2adefc05836350d543aeb02e04
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **2.0 MB (2006826 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:32f872121512404b6c1e67db827f35371f8922213daadba1ba288d47ec52018f`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 00:37:05 GMT
ADD file:c6f6ddea4cdeeb26befbbb6e05f2f0902c870cc5fc36d08c45c978dac7559114 in /
# Sat, 05 Mar 2022 00:37:05 GMT
CMD ["sh"]
```
- Layers:
- `sha256:d3f0b4793a9600b5d8515905c5534f82e03917d08c59932c30d027f9f8280d58`
Last Modified: Sat, 05 Mar 2022 00:38:36 GMT
Size: 2.0 MB (2006826 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
## `busybox:1.34-musl`
```console
$ docker pull busybox@sha256:088b19c260d977637a5ab9501f8112cad5d558ca07b06f028e25dc7496d60fb2
```
- Manifest MIME: `application/vnd.docker.distribution.manifest.list.v2+json`
- Platforms: 7
- linux; amd64
- linux; arm variant v6
- linux; arm variant v7
- linux; arm64 variant v8
- linux; 386
- linux; ppc64le
- linux; s390x
### `busybox:1.34-musl` - linux; amd64
```console
$ docker pull busybox@sha256:e812258a4b20e62fdcec8751de8d55b0c007c637f4a0451b2decba14eb2c1c23
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **843.5 KB (843454 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:42772a0ef2faaa7a2c6d7abc4951aa5401e3f357fb3a574aade48dc440ce393f`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 02:00:35 GMT
ADD file:699b04b6c66cfc3996e846f1177b072d45d519335d5f7536feed94d2b302a6f9 in /
# Sat, 05 Mar 2022 02:00:35 GMT
CMD ["sh"]
```
- Layers:
- `sha256:ee55587a9d2d2d79d6b4a587369e1a0b10208bf8bde21486ebaaebfa71cdde69`
Last Modified: Sat, 05 Mar 2022 02:02:07 GMT
Size: 843.5 KB (843454 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.34-musl` - linux; arm variant v6
```console
$ docker pull busybox@sha256:3d7cb72270112b7a57f8f558e0d5628f419de156f399ccd4a6461b55e1c4c7f4
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **952.7 KB (952700 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:08c1b65347071694f47ae73e32fdb620982c8f6f7f7d97a6fc527ec5259a6187`
- Default Command: `["sh"]`
```dockerfile
# Fri, 04 Mar 2022 22:49:29 GMT
ADD file:334504741d671d370cdadfe3ced64bd1871d35da1c796f2ec84333dabd0ff8b4 in /
# Fri, 04 Mar 2022 22:49:30 GMT
CMD ["sh"]
```
- Layers:
- `sha256:02b313a03502bc10146ad75ee7991dde100c3d35c83a77efb234132052f34cbb`
Last Modified: Fri, 04 Mar 2022 22:51:24 GMT
Size: 952.7 KB (952700 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.34-musl` - linux; arm variant v7
```console
$ docker pull busybox@sha256:9175299f88c3c4d053910b3613928a5d29797438d086d934da5fb0f49281b0bb
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **834.7 KB (834663 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:862bfec3778cd3e9219aaf6ccb2b53dda3bb44cf85115145c7d9f951ed19ce97`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 00:30:11 GMT
ADD file:fa125406069c71cfe971a132d5d1e1f7c0fb21657ce5e0c0284b67b7c4031678 in /
# Sat, 05 Mar 2022 00:30:11 GMT
CMD ["sh"]
```
- Layers:
- `sha256:24871fca46b7088bb4bedddd9251317cd75024051a5e66a72de8461263b2dab5`
Last Modified: Sat, 05 Mar 2022 00:34:39 GMT
Size: 834.7 KB (834663 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.34-musl` - linux; arm64 variant v8
```console
$ docker pull busybox@sha256:9a8da2c658a35d333eeb79884ff0cc82d82eb5ac65d472f6e89e1f47692e01b1
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **882.0 KB (882048 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:562e905002d333606c8a54c49d85c3fc066245a82a02a86bc1fa7ba0a3f78868`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 02:51:04 GMT
ADD file:a2caadb212503797ce9c274832c8611a8fb6522a27f65f2a01e81b0717e72b82 in /
# Sat, 05 Mar 2022 02:51:04 GMT
CMD ["sh"]
```
- Layers:
- `sha256:0f37c4f784f272466d9590f8a9eb74b1a6824bc8c84f245296881fdccd95554e`
Last Modified: Sat, 05 Mar 2022 02:53:17 GMT
Size: 882.0 KB (882048 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.34-musl` - linux; 386
```console
$ docker pull busybox@sha256:99d19539528018b9c68a5a1ab819e74706de01b0c681b28284130628d460a3c8
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **849.8 KB (849768 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:728b77f01a51f30f92e8009ab1d99dffbc60ae02f985d7625ff37a5b3ca9b335`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 01:36:47 GMT
ADD file:7a9ba9104c5a0a9e470eb2cead22b355534544e80b6f5766510153dd20948ec6 in /
# Sat, 05 Mar 2022 01:36:47 GMT
CMD ["sh"]
```
- Layers:
- `sha256:82a3b9faf10ba452213e6a8291df0994f7c647a3be39b7f31597e437bb2c08e4`
Last Modified: Sat, 05 Mar 2022 01:39:19 GMT
Size: 849.8 KB (849768 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.34-musl` - linux; ppc64le
```console
$ docker pull busybox@sha256:276a7ed77f30d8b879b5a894666f2d870347a2c63b346d7d73c19cfa1c46d0b5
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **919.3 KB (919259 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:99ea3ca0263c1064a53a553c234c32d61bf5c59451ca5c6dfa7ad10df1cad774`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 01:11:11 GMT
ADD file:74bd92e80de94e0f43d29f0ba1c600e0b94b5071fd828324c101568457efe8fb in /
# Sat, 05 Mar 2022 01:11:15 GMT
CMD ["sh"]
```
- Layers:
- `sha256:288c2a68b0f032f671110b4f26c1db9f1f85be9a1aabdaaa1bf2492197911e45`
Last Modified: Sat, 05 Mar 2022 01:13:26 GMT
Size: 919.3 KB (919259 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.34-musl` - linux; s390x
```console
$ docker pull busybox@sha256:3ab6e0a75bfc1364978d974dc5aed1aab3eddc3bfe261f4d8c522c37ec9ac0bb
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **893.9 KB (893901 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:8ade86bf60d9286945b043f38e63af46d0c2c20feef349d1a6d7de5b88cdc705`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 00:37:13 GMT
ADD file:b6e29661a3e519869751a3fbaef209d4c49cb757415e7933ac045b4ff47b2b23 in /
# Sat, 05 Mar 2022 00:37:13 GMT
CMD ["sh"]
```
- Layers:
- `sha256:3f76de4d35e3121f21e5b502d7a2224006135023f00c2e549f7e728b7b398d0a`
Last Modified: Sat, 05 Mar 2022 00:38:48 GMT
Size: 893.9 KB (893901 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
## `busybox:1.34-uclibc`
```console
$ docker pull busybox@sha256:97e0658460b7005232d11df2a4ee96607492e7629b9894b3d203a229677a02f5
```
- Manifest MIME: `application/vnd.docker.distribution.manifest.list.v2+json`
- Platforms: 7
- linux; amd64
- linux; arm variant v5
- linux; arm variant v7
- linux; arm64 variant v8
- linux; 386
- linux; mips64le
- linux; riscv64
### `busybox:1.34-uclibc` - linux; amd64
```console
$ docker pull busybox@sha256:1286c6d3c393023ef93c247724a6a2d665528144ffe07bacb741cc2b4edfefad
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **772.8 KB (772791 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:829374d342ae65a12f3a95911bc04a001894349f70783fda841b1a784008727d`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 02:00:21 GMT
ADD file:226e7f2ac42bdc9f3dca1617232c037937479b1247873a4070654f240b5242ea in /
# Sat, 05 Mar 2022 02:00:21 GMT
CMD ["sh"]
```
- Layers:
- `sha256:7e5209d2300fe99e0b7ae40573c1afd49bd14f16e018fa8c6bd5d86599742480`
Last Modified: Sat, 05 Mar 2022 02:01:34 GMT
Size: 772.8 KB (772791 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.34-uclibc` - linux; arm variant v5
```console
$ docker pull busybox@sha256:f9798a2e496f1bdaa2f2cadc397eb49b0840bfcbfd1dbbdf19b939741a085eb8
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **756.2 KB (756170 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:df2d4eec4a46cba4ee1c56e6e43bb7c93e4713386308a8b0f14543910a4defa5`
- Default Command: `["sh"]`
```dockerfile
# Fri, 04 Mar 2022 23:53:02 GMT
ADD file:8036ef9c434c873a6052d5ab2da56c16fdd0ef2034b8c99e2c8eda7d8710f4c1 in /
# Fri, 04 Mar 2022 23:53:02 GMT
CMD ["sh"]
```
- Layers:
- `sha256:7f140d6da4eebf50788f382b3811c926ee2eb09175a32b5d15275420945551eb`
Last Modified: Fri, 04 Mar 2022 23:55:53 GMT
Size: 756.2 KB (756170 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.34-uclibc` - linux; arm variant v7
```console
$ docker pull busybox@sha256:1eddb2a84c2180a0c15d555b02f0ef1f27bc82578dbd8f9f5247988379e94f47
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **724.2 KB (724248 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:07fd82dc1137365d59499d019588996eaa353ac6d8f6d830cfda9823001a05be`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 00:29:36 GMT
ADD file:dc94ebfc585d690f27d4b2f863164e4e1da5d3725adaa069e600eb0929bd0d20 in /
# Sat, 05 Mar 2022 00:29:37 GMT
CMD ["sh"]
```
- Layers:
- `sha256:1f1134cef263f3583ee4da1eb66faed8f3b6e8c55ee03b8b85a7a86300794133`
Last Modified: Sat, 05 Mar 2022 00:33:53 GMT
Size: 724.2 KB (724248 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.34-uclibc` - linux; arm64 variant v8
```console
$ docker pull busybox@sha256:4ac01bbe388029df6ff7f9d827f6a56836e2a8c0d556838d3cffde6efd55354e
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **828.5 KB (828499 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:a8440bba1bc0c2275106287dd98a5522f820ef44553eba6d7e94403c5a1bdfab`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 02:50:50 GMT
ADD file:e4a27dc7b408995f7972c904c3e000613e01527a3eb5d8c08572dc141de2586a in /
# Sat, 05 Mar 2022 02:50:50 GMT
CMD ["sh"]
```
- Layers:
- `sha256:f4731b18983e25cd9e954a01644b84b249cb3339ab1ce8806811ef5e7fe776e2`
Last Modified: Sat, 05 Mar 2022 02:52:37 GMT
Size: 828.5 KB (828499 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.34-uclibc` - linux; 386
```console
$ docker pull busybox@sha256:31debb44d15d27a26196feb05a2898885a1129466cb6d4540eada4a840310a23
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **736.1 KB (736052 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:5c51ed1b0783f93ef813e167373302f35524925cf33cd079bce094d9e7841677`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 01:36:32 GMT
ADD file:a41d834f85906ca00c99080dbbf3cce6ba11e6fcd111ddd69b5d7ee309134bad in /
# Sat, 05 Mar 2022 01:36:32 GMT
CMD ["sh"]
```
- Layers:
- `sha256:2e2bf5271917532f9d6e38d7ce9795837bb8b9688d054f828cda62707471348d`
Last Modified: Sat, 05 Mar 2022 01:38:38 GMT
Size: 736.1 KB (736052 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.34-uclibc` - linux; mips64le
```console
$ docker pull busybox@sha256:87d17a0d4364a4c5fac2c4b8dde976b44bf5295fc9748596d3e207c532c519ed
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **960.5 KB (960452 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:8d39b35e36b69300e26dbd877a127f02102c47bf8d22a6050addb0d7f080980f`
- Default Command: `["sh"]`
```dockerfile
# Mon, 07 Mar 2022 02:36:30 GMT
ADD file:7fe1a29749c8e395e230388cb4ee7e79d22789d81ba78aeca1c850bee88a1ba5 in /
# Mon, 07 Mar 2022 02:36:32 GMT
CMD ["sh"]
```
- Layers:
- `sha256:5b3a797eb0d36a8f5eca8659a73918965a1f370835254a38f9eaf4dd7c8264e8`
Last Modified: Mon, 07 Mar 2022 02:37:38 GMT
Size: 960.5 KB (960452 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.34-uclibc` - linux; riscv64
```console
$ docker pull busybox@sha256:ca24dc4ba0c09be9700469d7a1f54a09654419df8269bc0e98db74a9638dd61a
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **905.3 KB (905290 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:9ff90b641f3795e2a42432e95f2312360bbb4dfadaf0a3a53471d5fb4845284b`
- Default Command: `["sh"]`
```dockerfile
# Fri, 04 Mar 2022 23:13:31 GMT
ADD file:26259fce51a28095ea46b3c8d4477b76203d178db2d8ddeeae10f6beb73e4384 in /
# Fri, 04 Mar 2022 23:13:32 GMT
CMD ["sh"]
```
- Layers:
- `sha256:1cf0e11797f1cb7d833895c2f401bd798c80ce3b76b451107d4bc8d4c3640958`
Last Modified: Fri, 04 Mar 2022 23:34:35 GMT
Size: 905.3 KB (905290 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
## `busybox:1.34.1`
```console
$ docker pull busybox@sha256:34c3559bbdedefd67195e766e38cfbb0fcabff4241dbee3f390fd6e3310f5ebc
```
- Manifest MIME: `application/vnd.docker.distribution.manifest.list.v2+json`
- Platforms: 10
- linux; amd64
- linux; arm variant v5
- linux; arm variant v6
- linux; arm variant v7
- linux; arm64 variant v8
- linux; 386
- linux; mips64le
- linux; ppc64le
- linux; riscv64
- linux; s390x
### `busybox:1.34.1` - linux; amd64
```console
$ docker pull busybox@sha256:1286c6d3c393023ef93c247724a6a2d665528144ffe07bacb741cc2b4edfefad
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **772.8 KB (772791 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:829374d342ae65a12f3a95911bc04a001894349f70783fda841b1a784008727d`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 02:00:21 GMT
ADD file:226e7f2ac42bdc9f3dca1617232c037937479b1247873a4070654f240b5242ea in /
# Sat, 05 Mar 2022 02:00:21 GMT
CMD ["sh"]
```
- Layers:
- `sha256:7e5209d2300fe99e0b7ae40573c1afd49bd14f16e018fa8c6bd5d86599742480`
Last Modified: Sat, 05 Mar 2022 02:01:34 GMT
Size: 772.8 KB (772791 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.34.1` - linux; arm variant v5
```console
$ docker pull busybox@sha256:f9798a2e496f1bdaa2f2cadc397eb49b0840bfcbfd1dbbdf19b939741a085eb8
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **756.2 KB (756170 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:df2d4eec4a46cba4ee1c56e6e43bb7c93e4713386308a8b0f14543910a4defa5`
- Default Command: `["sh"]`
```dockerfile
# Fri, 04 Mar 2022 23:53:02 GMT
ADD file:8036ef9c434c873a6052d5ab2da56c16fdd0ef2034b8c99e2c8eda7d8710f4c1 in /
# Fri, 04 Mar 2022 23:53:02 GMT
CMD ["sh"]
```
- Layers:
- `sha256:7f140d6da4eebf50788f382b3811c926ee2eb09175a32b5d15275420945551eb`
Last Modified: Fri, 04 Mar 2022 23:55:53 GMT
Size: 756.2 KB (756170 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.34.1` - linux; arm variant v6
```console
$ docker pull busybox@sha256:3d7cb72270112b7a57f8f558e0d5628f419de156f399ccd4a6461b55e1c4c7f4
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **952.7 KB (952700 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:08c1b65347071694f47ae73e32fdb620982c8f6f7f7d97a6fc527ec5259a6187`
- Default Command: `["sh"]`
```dockerfile
# Fri, 04 Mar 2022 22:49:29 GMT
ADD file:334504741d671d370cdadfe3ced64bd1871d35da1c796f2ec84333dabd0ff8b4 in /
# Fri, 04 Mar 2022 22:49:30 GMT
CMD ["sh"]
```
- Layers:
- `sha256:02b313a03502bc10146ad75ee7991dde100c3d35c83a77efb234132052f34cbb`
Last Modified: Fri, 04 Mar 2022 22:51:24 GMT
Size: 952.7 KB (952700 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.34.1` - linux; arm variant v7
```console
$ docker pull busybox@sha256:1eddb2a84c2180a0c15d555b02f0ef1f27bc82578dbd8f9f5247988379e94f47
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **724.2 KB (724248 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:07fd82dc1137365d59499d019588996eaa353ac6d8f6d830cfda9823001a05be`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 00:29:36 GMT
ADD file:dc94ebfc585d690f27d4b2f863164e4e1da5d3725adaa069e600eb0929bd0d20 in /
# Sat, 05 Mar 2022 00:29:37 GMT
CMD ["sh"]
```
- Layers:
- `sha256:1f1134cef263f3583ee4da1eb66faed8f3b6e8c55ee03b8b85a7a86300794133`
Last Modified: Sat, 05 Mar 2022 00:33:53 GMT
Size: 724.2 KB (724248 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.34.1` - linux; arm64 variant v8
```console
$ docker pull busybox@sha256:4ac01bbe388029df6ff7f9d827f6a56836e2a8c0d556838d3cffde6efd55354e
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **828.5 KB (828499 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:a8440bba1bc0c2275106287dd98a5522f820ef44553eba6d7e94403c5a1bdfab`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 02:50:50 GMT
ADD file:e4a27dc7b408995f7972c904c3e000613e01527a3eb5d8c08572dc141de2586a in /
# Sat, 05 Mar 2022 02:50:50 GMT
CMD ["sh"]
```
- Layers:
- `sha256:f4731b18983e25cd9e954a01644b84b249cb3339ab1ce8806811ef5e7fe776e2`
Last Modified: Sat, 05 Mar 2022 02:52:37 GMT
Size: 828.5 KB (828499 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.34.1` - linux; 386
```console
$ docker pull busybox@sha256:31debb44d15d27a26196feb05a2898885a1129466cb6d4540eada4a840310a23
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **736.1 KB (736052 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:5c51ed1b0783f93ef813e167373302f35524925cf33cd079bce094d9e7841677`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 01:36:32 GMT
ADD file:a41d834f85906ca00c99080dbbf3cce6ba11e6fcd111ddd69b5d7ee309134bad in /
# Sat, 05 Mar 2022 01:36:32 GMT
CMD ["sh"]
```
- Layers:
- `sha256:2e2bf5271917532f9d6e38d7ce9795837bb8b9688d054f828cda62707471348d`
Last Modified: Sat, 05 Mar 2022 01:38:38 GMT
Size: 736.1 KB (736052 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.34.1` - linux; mips64le
```console
$ docker pull busybox@sha256:87d17a0d4364a4c5fac2c4b8dde976b44bf5295fc9748596d3e207c532c519ed
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **960.5 KB (960452 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:8d39b35e36b69300e26dbd877a127f02102c47bf8d22a6050addb0d7f080980f`
- Default Command: `["sh"]`
```dockerfile
# Mon, 07 Mar 2022 02:36:30 GMT
ADD file:7fe1a29749c8e395e230388cb4ee7e79d22789d81ba78aeca1c850bee88a1ba5 in /
# Mon, 07 Mar 2022 02:36:32 GMT
CMD ["sh"]
```
- Layers:
- `sha256:5b3a797eb0d36a8f5eca8659a73918965a1f370835254a38f9eaf4dd7c8264e8`
Last Modified: Mon, 07 Mar 2022 02:37:38 GMT
Size: 960.5 KB (960452 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.34.1` - linux; ppc64le
```console
$ docker pull busybox@sha256:612af5dd099eef42b55cdf383b755cda5b941b76f9381265367ca320a5ac20b5
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **2.5 MB (2484093 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:a5bafd995fa7a6db6073649c32c32c92fbd617012bbdf6c4a53b69b4db02c24e`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 01:10:51 GMT
ADD file:7df57899a43661a1b2ee6c642e038edb2631d4f0c750182b1c72cb8eb883c2f7 in /
# Sat, 05 Mar 2022 01:10:54 GMT
CMD ["sh"]
```
- Layers:
- `sha256:c97b8caf206daa13c1aa849437ad58c3d82e672d8f883b17cc468bbd84f17184`
Last Modified: Sat, 05 Mar 2022 01:13:03 GMT
Size: 2.5 MB (2484093 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.34.1` - linux; riscv64
```console
$ docker pull busybox@sha256:ca24dc4ba0c09be9700469d7a1f54a09654419df8269bc0e98db74a9638dd61a
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **905.3 KB (905290 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:9ff90b641f3795e2a42432e95f2312360bbb4dfadaf0a3a53471d5fb4845284b`
- Default Command: `["sh"]`
```dockerfile
# Fri, 04 Mar 2022 23:13:31 GMT
ADD file:26259fce51a28095ea46b3c8d4477b76203d178db2d8ddeeae10f6beb73e4384 in /
# Fri, 04 Mar 2022 23:13:32 GMT
CMD ["sh"]
```
- Layers:
- `sha256:1cf0e11797f1cb7d833895c2f401bd798c80ce3b76b451107d4bc8d4c3640958`
Last Modified: Fri, 04 Mar 2022 23:34:35 GMT
Size: 905.3 KB (905290 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.34.1` - linux; s390x
```console
$ docker pull busybox@sha256:f636c0770abd9d7d4638d6b9472c399638c3ff2adefc05836350d543aeb02e04
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **2.0 MB (2006826 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:32f872121512404b6c1e67db827f35371f8922213daadba1ba288d47ec52018f`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 00:37:05 GMT
ADD file:c6f6ddea4cdeeb26befbbb6e05f2f0902c870cc5fc36d08c45c978dac7559114 in /
# Sat, 05 Mar 2022 00:37:05 GMT
CMD ["sh"]
```
- Layers:
- `sha256:d3f0b4793a9600b5d8515905c5534f82e03917d08c59932c30d027f9f8280d58`
Last Modified: Sat, 05 Mar 2022 00:38:36 GMT
Size: 2.0 MB (2006826 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
## `busybox:1.34.1-glibc`
```console
$ docker pull busybox@sha256:eb2ce6449180cf13a4c9090136f590a9e56cb2f971106378eb72ca21e36cd879
```
- Manifest MIME: `application/vnd.docker.distribution.manifest.list.v2+json`
- Platforms: 8
- linux; amd64
- linux; arm variant v5
- linux; arm variant v7
- linux; arm64 variant v8
- linux; 386
- linux; mips64le
- linux; ppc64le
- linux; s390x
### `busybox:1.34.1-glibc` - linux; amd64
```console
$ docker pull busybox@sha256:d224398aa9019dad8efdd919f8ab71e4b2412cac344052b7f775fd9b34342d8f
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **2.6 MB (2566117 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:1e45f134f7e91ad3850db0725ac82293643d2bbebbc25c3406071ba4d89ca3a4`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 02:00:29 GMT
ADD file:05ccd81e2c33b446d16f58ad7f1ff8bd2e80bbcd788a564e1922b678079a122a in /
# Sat, 05 Mar 2022 02:00:29 GMT
CMD ["sh"]
```
- Layers:
- `sha256:4716b0e5bf987ed4efeced460c6c11786c9ff99dbacafbcb6a5a82f7d8ebd83a`
Last Modified: Sat, 05 Mar 2022 02:01:50 GMT
Size: 2.6 MB (2566117 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.34.1-glibc` - linux; arm variant v5
```console
$ docker pull busybox@sha256:a92f8ad0773a537b695a10961110ad43ddf57523ab8d5630027cb32d82dc10a0
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **1.9 MB (1930778 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:9ef4eb1817df9cee9673079422d59657c2d68a18523bcdbe2923c76616d6d674`
- Default Command: `["sh"]`
```dockerfile
# Fri, 04 Mar 2022 23:53:17 GMT
ADD file:1f5a05d8f0ca917f59d91add5c1587857acea4690daf45ddd40785e5b3a98622 in /
# Fri, 04 Mar 2022 23:53:17 GMT
CMD ["sh"]
```
- Layers:
- `sha256:e44453e16a4248ff1bdf0b20ae46d48945598933af6264788736342c84f0c264`
Last Modified: Fri, 04 Mar 2022 23:56:16 GMT
Size: 1.9 MB (1930778 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.34.1-glibc` - linux; arm variant v7
```console
$ docker pull busybox@sha256:af04becc8b1710ae52efbd00851b3441d523e15a6799a6fc0d66526307c97b90
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **1.7 MB (1678697 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:c2aaece4707f9e7ba8729f653e924062c95863b33d8e78c656efa41f7fb245ae`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 00:29:53 GMT
ADD file:bbaae957f6e332a5ab0fa52a407edc35cef05e20694503c02202f09cbecfaeb7 in /
# Sat, 05 Mar 2022 00:29:54 GMT
CMD ["sh"]
```
- Layers:
- `sha256:f47e3aecd4ecc498dfe2a0b8af03c5908f51a12bf9c6c7882da54e045592af1d`
Last Modified: Sat, 05 Mar 2022 00:34:16 GMT
Size: 1.7 MB (1678697 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.34.1-glibc` - linux; arm64 variant v8
```console
$ docker pull busybox@sha256:138caefe5d4587a2e399e10584ec48b6ac6e85ca4648a2ae79cf2596522db96d
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **2.0 MB (1996167 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:5aa233f38809f493559589f4e22b2088b1bfb9360e7d8d6cdeeafc5e95b915c6`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 02:50:57 GMT
ADD file:258a8844c7008f22b0dc0a79c33d7a7268a5d0c878a1c712687901d74a14ac0c in /
# Sat, 05 Mar 2022 02:50:57 GMT
CMD ["sh"]
```
- Layers:
- `sha256:83f1fddca34bd4a67d2051806f9186712c8111c92c1818bdb6d6afec4fb779b1`
Last Modified: Sat, 05 Mar 2022 02:52:58 GMT
Size: 2.0 MB (1996167 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.34.1-glibc` - linux; 386
```console
$ docker pull busybox@sha256:97256981fabef7178530a1a7229a997f766101c38049d3a2affef354daac4fe1
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **2.2 MB (2233781 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:55a2e0dcbee048e776108c041c437b3b585e796b4d534a84dfbf35de525b11cf`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 01:36:40 GMT
ADD file:b869021110509d7db63766d9b56ed251db50b7d794dc5d22e895db264fe96fbf in /
# Sat, 05 Mar 2022 01:36:40 GMT
CMD ["sh"]
```
- Layers:
- `sha256:46b35c816ab3818c2c8250f5594acf55d8960a5dd80aa91dc16449066295259f`
Last Modified: Sat, 05 Mar 2022 01:38:58 GMT
Size: 2.2 MB (2233781 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.34.1-glibc` - linux; mips64le
```console
$ docker pull busybox@sha256:4cbd8205c204cb78e9f4488b75df12873f209afa8ea91e9ef0f0801b69f170ac
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **2.2 MB (2220698 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:6137443aab3c8a8023fec907d41db1883f43e39660f36a360dda6da22a096dbe`
- Default Command: `["sh"]`
```dockerfile
# Mon, 07 Mar 2022 02:36:43 GMT
ADD file:d1e8829df1e36d915ea4eb28411b0be2d6f08b874ad25e3f2d2efe2a13ad8127 in /
# Mon, 07 Mar 2022 02:36:45 GMT
CMD ["sh"]
```
- Layers:
- `sha256:68dec1366233aa1c152c88886d39641f952606de34dfe9483019140d11b3df2a`
Last Modified: Mon, 07 Mar 2022 02:37:55 GMT
Size: 2.2 MB (2220698 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.34.1-glibc` - linux; ppc64le
```console
$ docker pull busybox@sha256:612af5dd099eef42b55cdf383b755cda5b941b76f9381265367ca320a5ac20b5
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **2.5 MB (2484093 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:a5bafd995fa7a6db6073649c32c32c92fbd617012bbdf6c4a53b69b4db02c24e`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 01:10:51 GMT
ADD file:7df57899a43661a1b2ee6c642e038edb2631d4f0c750182b1c72cb8eb883c2f7 in /
# Sat, 05 Mar 2022 01:10:54 GMT
CMD ["sh"]
```
- Layers:
- `sha256:c97b8caf206daa13c1aa849437ad58c3d82e672d8f883b17cc468bbd84f17184`
Last Modified: Sat, 05 Mar 2022 01:13:03 GMT
Size: 2.5 MB (2484093 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.34.1-glibc` - linux; s390x
```console
$ docker pull busybox@sha256:f636c0770abd9d7d4638d6b9472c399638c3ff2adefc05836350d543aeb02e04
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **2.0 MB (2006826 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:32f872121512404b6c1e67db827f35371f8922213daadba1ba288d47ec52018f`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 00:37:05 GMT
ADD file:c6f6ddea4cdeeb26befbbb6e05f2f0902c870cc5fc36d08c45c978dac7559114 in /
# Sat, 05 Mar 2022 00:37:05 GMT
CMD ["sh"]
```
- Layers:
- `sha256:d3f0b4793a9600b5d8515905c5534f82e03917d08c59932c30d027f9f8280d58`
Last Modified: Sat, 05 Mar 2022 00:38:36 GMT
Size: 2.0 MB (2006826 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
## `busybox:1.34.1-musl`
```console
$ docker pull busybox@sha256:088b19c260d977637a5ab9501f8112cad5d558ca07b06f028e25dc7496d60fb2
```
- Manifest MIME: `application/vnd.docker.distribution.manifest.list.v2+json`
- Platforms: 7
- linux; amd64
- linux; arm variant v6
- linux; arm variant v7
- linux; arm64 variant v8
- linux; 386
- linux; ppc64le
- linux; s390x
### `busybox:1.34.1-musl` - linux; amd64
```console
$ docker pull busybox@sha256:e812258a4b20e62fdcec8751de8d55b0c007c637f4a0451b2decba14eb2c1c23
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **843.5 KB (843454 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:42772a0ef2faaa7a2c6d7abc4951aa5401e3f357fb3a574aade48dc440ce393f`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 02:00:35 GMT
ADD file:699b04b6c66cfc3996e846f1177b072d45d519335d5f7536feed94d2b302a6f9 in /
# Sat, 05 Mar 2022 02:00:35 GMT
CMD ["sh"]
```
- Layers:
- `sha256:ee55587a9d2d2d79d6b4a587369e1a0b10208bf8bde21486ebaaebfa71cdde69`
Last Modified: Sat, 05 Mar 2022 02:02:07 GMT
Size: 843.5 KB (843454 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.34.1-musl` - linux; arm variant v6
```console
$ docker pull busybox@sha256:3d7cb72270112b7a57f8f558e0d5628f419de156f399ccd4a6461b55e1c4c7f4
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **952.7 KB (952700 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:08c1b65347071694f47ae73e32fdb620982c8f6f7f7d97a6fc527ec5259a6187`
- Default Command: `["sh"]`
```dockerfile
# Fri, 04 Mar 2022 22:49:29 GMT
ADD file:334504741d671d370cdadfe3ced64bd1871d35da1c796f2ec84333dabd0ff8b4 in /
# Fri, 04 Mar 2022 22:49:30 GMT
CMD ["sh"]
```
- Layers:
- `sha256:02b313a03502bc10146ad75ee7991dde100c3d35c83a77efb234132052f34cbb`
Last Modified: Fri, 04 Mar 2022 22:51:24 GMT
Size: 952.7 KB (952700 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.34.1-musl` - linux; arm variant v7
```console
$ docker pull busybox@sha256:9175299f88c3c4d053910b3613928a5d29797438d086d934da5fb0f49281b0bb
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **834.7 KB (834663 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:862bfec3778cd3e9219aaf6ccb2b53dda3bb44cf85115145c7d9f951ed19ce97`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 00:30:11 GMT
ADD file:fa125406069c71cfe971a132d5d1e1f7c0fb21657ce5e0c0284b67b7c4031678 in /
# Sat, 05 Mar 2022 00:30:11 GMT
CMD ["sh"]
```
- Layers:
- `sha256:24871fca46b7088bb4bedddd9251317cd75024051a5e66a72de8461263b2dab5`
Last Modified: Sat, 05 Mar 2022 00:34:39 GMT
Size: 834.7 KB (834663 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.34.1-musl` - linux; arm64 variant v8
```console
$ docker pull busybox@sha256:9a8da2c658a35d333eeb79884ff0cc82d82eb5ac65d472f6e89e1f47692e01b1
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **882.0 KB (882048 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:562e905002d333606c8a54c49d85c3fc066245a82a02a86bc1fa7ba0a3f78868`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 02:51:04 GMT
ADD file:a2caadb212503797ce9c274832c8611a8fb6522a27f65f2a01e81b0717e72b82 in /
# Sat, 05 Mar 2022 02:51:04 GMT
CMD ["sh"]
```
- Layers:
- `sha256:0f37c4f784f272466d9590f8a9eb74b1a6824bc8c84f245296881fdccd95554e`
Last Modified: Sat, 05 Mar 2022 02:53:17 GMT
Size: 882.0 KB (882048 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.34.1-musl` - linux; 386
```console
$ docker pull busybox@sha256:99d19539528018b9c68a5a1ab819e74706de01b0c681b28284130628d460a3c8
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **849.8 KB (849768 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:728b77f01a51f30f92e8009ab1d99dffbc60ae02f985d7625ff37a5b3ca9b335`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 01:36:47 GMT
ADD file:7a9ba9104c5a0a9e470eb2cead22b355534544e80b6f5766510153dd20948ec6 in /
# Sat, 05 Mar 2022 01:36:47 GMT
CMD ["sh"]
```
- Layers:
- `sha256:82a3b9faf10ba452213e6a8291df0994f7c647a3be39b7f31597e437bb2c08e4`
Last Modified: Sat, 05 Mar 2022 01:39:19 GMT
Size: 849.8 KB (849768 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.34.1-musl` - linux; ppc64le
```console
$ docker pull busybox@sha256:276a7ed77f30d8b879b5a894666f2d870347a2c63b346d7d73c19cfa1c46d0b5
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **919.3 KB (919259 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:99ea3ca0263c1064a53a553c234c32d61bf5c59451ca5c6dfa7ad10df1cad774`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 01:11:11 GMT
ADD file:74bd92e80de94e0f43d29f0ba1c600e0b94b5071fd828324c101568457efe8fb in /
# Sat, 05 Mar 2022 01:11:15 GMT
CMD ["sh"]
```
- Layers:
- `sha256:288c2a68b0f032f671110b4f26c1db9f1f85be9a1aabdaaa1bf2492197911e45`
Last Modified: Sat, 05 Mar 2022 01:13:26 GMT
Size: 919.3 KB (919259 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.34.1-musl` - linux; s390x
```console
$ docker pull busybox@sha256:3ab6e0a75bfc1364978d974dc5aed1aab3eddc3bfe261f4d8c522c37ec9ac0bb
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **893.9 KB (893901 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:8ade86bf60d9286945b043f38e63af46d0c2c20feef349d1a6d7de5b88cdc705`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 00:37:13 GMT
ADD file:b6e29661a3e519869751a3fbaef209d4c49cb757415e7933ac045b4ff47b2b23 in /
# Sat, 05 Mar 2022 00:37:13 GMT
CMD ["sh"]
```
- Layers:
- `sha256:3f76de4d35e3121f21e5b502d7a2224006135023f00c2e549f7e728b7b398d0a`
Last Modified: Sat, 05 Mar 2022 00:38:48 GMT
Size: 893.9 KB (893901 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
## `busybox:1.34.1-uclibc`
```console
$ docker pull busybox@sha256:97e0658460b7005232d11df2a4ee96607492e7629b9894b3d203a229677a02f5
```
- Manifest MIME: `application/vnd.docker.distribution.manifest.list.v2+json`
- Platforms: 7
- linux; amd64
- linux; arm variant v5
- linux; arm variant v7
- linux; arm64 variant v8
- linux; 386
- linux; mips64le
- linux; riscv64
### `busybox:1.34.1-uclibc` - linux; amd64
```console
$ docker pull busybox@sha256:1286c6d3c393023ef93c247724a6a2d665528144ffe07bacb741cc2b4edfefad
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **772.8 KB (772791 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:829374d342ae65a12f3a95911bc04a001894349f70783fda841b1a784008727d`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 02:00:21 GMT
ADD file:226e7f2ac42bdc9f3dca1617232c037937479b1247873a4070654f240b5242ea in /
# Sat, 05 Mar 2022 02:00:21 GMT
CMD ["sh"]
```
- Layers:
- `sha256:7e5209d2300fe99e0b7ae40573c1afd49bd14f16e018fa8c6bd5d86599742480`
Last Modified: Sat, 05 Mar 2022 02:01:34 GMT
Size: 772.8 KB (772791 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.34.1-uclibc` - linux; arm variant v5
```console
$ docker pull busybox@sha256:f9798a2e496f1bdaa2f2cadc397eb49b0840bfcbfd1dbbdf19b939741a085eb8
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **756.2 KB (756170 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:df2d4eec4a46cba4ee1c56e6e43bb7c93e4713386308a8b0f14543910a4defa5`
- Default Command: `["sh"]`
```dockerfile
# Fri, 04 Mar 2022 23:53:02 GMT
ADD file:8036ef9c434c873a6052d5ab2da56c16fdd0ef2034b8c99e2c8eda7d8710f4c1 in /
# Fri, 04 Mar 2022 23:53:02 GMT
CMD ["sh"]
```
- Layers:
- `sha256:7f140d6da4eebf50788f382b3811c926ee2eb09175a32b5d15275420945551eb`
Last Modified: Fri, 04 Mar 2022 23:55:53 GMT
Size: 756.2 KB (756170 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.34.1-uclibc` - linux; arm variant v7
```console
$ docker pull busybox@sha256:1eddb2a84c2180a0c15d555b02f0ef1f27bc82578dbd8f9f5247988379e94f47
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **724.2 KB (724248 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:07fd82dc1137365d59499d019588996eaa353ac6d8f6d830cfda9823001a05be`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 00:29:36 GMT
ADD file:dc94ebfc585d690f27d4b2f863164e4e1da5d3725adaa069e600eb0929bd0d20 in /
# Sat, 05 Mar 2022 00:29:37 GMT
CMD ["sh"]
```
- Layers:
- `sha256:1f1134cef263f3583ee4da1eb66faed8f3b6e8c55ee03b8b85a7a86300794133`
Last Modified: Sat, 05 Mar 2022 00:33:53 GMT
Size: 724.2 KB (724248 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.34.1-uclibc` - linux; arm64 variant v8
```console
$ docker pull busybox@sha256:4ac01bbe388029df6ff7f9d827f6a56836e2a8c0d556838d3cffde6efd55354e
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **828.5 KB (828499 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:a8440bba1bc0c2275106287dd98a5522f820ef44553eba6d7e94403c5a1bdfab`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 02:50:50 GMT
ADD file:e4a27dc7b408995f7972c904c3e000613e01527a3eb5d8c08572dc141de2586a in /
# Sat, 05 Mar 2022 02:50:50 GMT
CMD ["sh"]
```
- Layers:
- `sha256:f4731b18983e25cd9e954a01644b84b249cb3339ab1ce8806811ef5e7fe776e2`
Last Modified: Sat, 05 Mar 2022 02:52:37 GMT
Size: 828.5 KB (828499 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.34.1-uclibc` - linux; 386
```console
$ docker pull busybox@sha256:31debb44d15d27a26196feb05a2898885a1129466cb6d4540eada4a840310a23
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **736.1 KB (736052 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:5c51ed1b0783f93ef813e167373302f35524925cf33cd079bce094d9e7841677`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 01:36:32 GMT
ADD file:a41d834f85906ca00c99080dbbf3cce6ba11e6fcd111ddd69b5d7ee309134bad in /
# Sat, 05 Mar 2022 01:36:32 GMT
CMD ["sh"]
```
- Layers:
- `sha256:2e2bf5271917532f9d6e38d7ce9795837bb8b9688d054f828cda62707471348d`
Last Modified: Sat, 05 Mar 2022 01:38:38 GMT
Size: 736.1 KB (736052 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.34.1-uclibc` - linux; mips64le
```console
$ docker pull busybox@sha256:87d17a0d4364a4c5fac2c4b8dde976b44bf5295fc9748596d3e207c532c519ed
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **960.5 KB (960452 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:8d39b35e36b69300e26dbd877a127f02102c47bf8d22a6050addb0d7f080980f`
- Default Command: `["sh"]`
```dockerfile
# Mon, 07 Mar 2022 02:36:30 GMT
ADD file:7fe1a29749c8e395e230388cb4ee7e79d22789d81ba78aeca1c850bee88a1ba5 in /
# Mon, 07 Mar 2022 02:36:32 GMT
CMD ["sh"]
```
- Layers:
- `sha256:5b3a797eb0d36a8f5eca8659a73918965a1f370835254a38f9eaf4dd7c8264e8`
Last Modified: Mon, 07 Mar 2022 02:37:38 GMT
Size: 960.5 KB (960452 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.34.1-uclibc` - linux; riscv64
```console
$ docker pull busybox@sha256:ca24dc4ba0c09be9700469d7a1f54a09654419df8269bc0e98db74a9638dd61a
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **905.3 KB (905290 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:9ff90b641f3795e2a42432e95f2312360bbb4dfadaf0a3a53471d5fb4845284b`
- Default Command: `["sh"]`
```dockerfile
# Fri, 04 Mar 2022 23:13:31 GMT
ADD file:26259fce51a28095ea46b3c8d4477b76203d178db2d8ddeeae10f6beb73e4384 in /
# Fri, 04 Mar 2022 23:13:32 GMT
CMD ["sh"]
```
- Layers:
- `sha256:1cf0e11797f1cb7d833895c2f401bd798c80ce3b76b451107d4bc8d4c3640958`
Last Modified: Fri, 04 Mar 2022 23:34:35 GMT
Size: 905.3 KB (905290 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
## `busybox:1.35`
```console
$ docker pull busybox@sha256:20246233b52de844fa516f8c51234f1441e55e71ecdd1a1d91ebb252e1fd4603
```
- Manifest MIME: `application/vnd.docker.distribution.manifest.list.v2+json`
- Platforms: 10
- linux; amd64
- linux; arm variant v5
- linux; arm variant v6
- linux; arm variant v7
- linux; arm64 variant v8
- linux; 386
- linux; mips64le
- linux; ppc64le
- linux; riscv64
- linux; s390x
### `busybox:1.35` - linux; amd64
```console
$ docker pull busybox@sha256:2190cbc0553b42854c65a93a9e1a1a4388ff1ab74e7f300b94b59cd7c063efb2
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **773.2 KB (773214 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:d3dd17c32e61e23cbe6d697569614da150de4d7f0da2b9fa4b57f183305e91c5`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 02:00:44 GMT
ADD file:7c70702dcfa3bc555859068bc7804825282ea61e8076294ff65e82d27aa617e2 in /
# Sat, 05 Mar 2022 02:00:44 GMT
CMD ["sh"]
```
- Layers:
- `sha256:837abc85bf61828c3ada2d02ff8eb7e5360e22cabfd8d3bcc23cbfdd6e5c48a1`
Last Modified: Sat, 05 Mar 2022 02:02:35 GMT
Size: 773.2 KB (773214 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.35` - linux; arm variant v5
```console
$ docker pull busybox@sha256:c3939735cb4e6282b45ce907abe02013f825306b6b685574d98a4acc0fabd27c
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **756.5 KB (756533 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:12e9332d857d74bcbe914256dc041e3236282a5e422c84efc27d832eaee4baa7`
- Default Command: `["sh"]`
```dockerfile
# Fri, 04 Mar 2022 23:53:43 GMT
ADD file:52e2acc96ba740fbb994fb22ba9e0c73abc43d6578a39fa5ed0f9055e6698aec in /
# Fri, 04 Mar 2022 23:53:43 GMT
CMD ["sh"]
```
- Layers:
- `sha256:eeefea69efa569ad496e6afbebe5532304eee449c929ffe088cc3a48bc68154d`
Last Modified: Fri, 04 Mar 2022 23:56:57 GMT
Size: 756.5 KB (756533 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.35` - linux; arm variant v6
```console
$ docker pull busybox@sha256:4b1769d9e3e50fc0064a81291b9a045a22ba1258c98060a054024e0b94074c03
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **954.2 KB (954229 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:6b984a9bb73cf71496be4e3539ad4f2405b3ad6a68b431a0d6e3a0285631efc9`
- Default Command: `["sh"]`
```dockerfile
# Fri, 04 Mar 2022 22:49:54 GMT
ADD file:5ee77db4ceb26976922746b5d92a93f5edf7ce64e168334ab264f622be92b316 in /
# Fri, 04 Mar 2022 22:49:54 GMT
CMD ["sh"]
```
- Layers:
- `sha256:a7f886d0cf7c7de65c0c33fa89b77e7681ea05f56e436e235d85279e400ab621`
Last Modified: Fri, 04 Mar 2022 22:52:05 GMT
Size: 954.2 KB (954229 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.35` - linux; arm variant v7
```console
$ docker pull busybox@sha256:e373790c0ffe0bf8f9974f1635b0e4b9242887b11b52ddb2ab8b0016aa6b1224
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **725.1 KB (725090 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:b5e9176ff97aaa9224afae3d663fc32674743237e49e9d4fad119fb0989785b0`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 00:30:38 GMT
ADD file:9e2f429fa6260f11e671814c9a3fee70a7f73d61ecd35296ac4dd9ee8c11d447 in /
# Sat, 05 Mar 2022 00:30:38 GMT
CMD ["sh"]
```
- Layers:
- `sha256:c5ee7714d71e62eec0c700283983cdfd076eef26a241ed0bf7497d83dbe1dc77`
Last Modified: Sat, 05 Mar 2022 00:35:20 GMT
Size: 725.1 KB (725090 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.35` - linux; arm64 variant v8
```console
$ docker pull busybox@sha256:1b4394a57cc23b20364516ec0557a892c9eb281d92fe87412db80800d2675645
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **829.3 KB (829339 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:4575719df580071e2104e56cab1b5d8b9f7bacfa160a87f15c63b020b38c4cda`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 02:51:16 GMT
ADD file:46a9fbc68edb3b9c51d952a28551a8ce5ca7e36ec8bbbf1b62ae11c9e6fbd994 in /
# Sat, 05 Mar 2022 02:51:16 GMT
CMD ["sh"]
```
- Layers:
- `sha256:c65693ced10096a446b59d5125a0b1fc4b24c7d72dfcf7abdf20c2e80e63a21a`
Last Modified: Sat, 05 Mar 2022 02:53:49 GMT
Size: 829.3 KB (829339 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.35` - linux; 386
```console
$ docker pull busybox@sha256:36c1dbc15886a25b2515133e6626b4d1c2df4423adff2c760643b50e19fb519b
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **736.5 KB (736481 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:2a95c75abfdb7665dfce29b6894ece1e4b7da24412175e9e56125149497f303b`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 01:37:01 GMT
ADD file:c6389c568cd27afe20167b7e7ad274df772345df80a67c1464708ca20e079b7d in /
# Sat, 05 Mar 2022 01:37:01 GMT
CMD ["sh"]
```
- Layers:
- `sha256:e15fc50ae394f9ef82fb7c0ecd09970b888cafacb41cf957fe9f89f2dd2c3fd8`
Last Modified: Sat, 05 Mar 2022 01:39:55 GMT
Size: 736.5 KB (736481 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.35` - linux; mips64le
```console
$ docker pull busybox@sha256:356a37d941e107a7c754393efc889ca84fdbaad6ec5198a2568ec6197517f469
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **961.9 KB (961851 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:6ee8d904106ba464888ca386ac1e9c9426b70ddfa18eb30f32f7a84a85bd69d6`
- Default Command: `["sh"]`
```dockerfile
# Mon, 07 Mar 2022 02:36:58 GMT
ADD file:09f0d7194e6bb71bd44fe3a0195df69adb2057999339c4f5e9d6140a45ba0660 in /
# Mon, 07 Mar 2022 02:36:59 GMT
CMD ["sh"]
```
- Layers:
- `sha256:13d04bfbe329afadd5dca56fb821be9200299bdbe919dcab966c8f561e7640fb`
Last Modified: Mon, 07 Mar 2022 02:38:23 GMT
Size: 961.9 KB (961851 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.35` - linux; ppc64le
```console
$ docker pull busybox@sha256:ecd327922b80f39d5eebdd70a58adfd5397d5a2330cb1e15ba47b08992c8aee0
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **2.5 MB (2484402 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:0d7936207fc04ecd77970d5d8ede2a3b4a649b205b720418815587a31143c843`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 01:11:33 GMT
ADD file:a25b3d1c49e964a645ccd79b56261d1f1385c24e904dc39cc5ecfa7c08dba7a1 in /
# Sat, 05 Mar 2022 01:11:36 GMT
CMD ["sh"]
```
- Layers:
- `sha256:1d68bfaf97a43699ca4f596b2b7bb6ae1d5c067f55375ed2cfad444503277842`
Last Modified: Sat, 05 Mar 2022 01:14:04 GMT
Size: 2.5 MB (2484402 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.35` - linux; riscv64
```console
$ docker pull busybox@sha256:b901ab4c321fccb6fef40a117220414bc1d1ab7e914bbf761db39a7314f93518
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **905.6 KB (905561 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:19ae9a19451ec4e0888b2a42390b1aa44391c0e80208db8b27438f9d630099e3`
- Default Command: `["sh"]`
```dockerfile
# Fri, 04 Mar 2022 23:17:31 GMT
ADD file:ff86f337382e15663e45316d6a23732986083cb0ff879babe90967fcf2004a83 in /
# Fri, 04 Mar 2022 23:17:32 GMT
CMD ["sh"]
```
- Layers:
- `sha256:42f0a2f1fcd7245b3d52983f0c380db121b5bd0ec06064fea2144c465711c9e0`
Last Modified: Fri, 04 Mar 2022 23:40:41 GMT
Size: 905.6 KB (905561 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.35` - linux; s390x
```console
$ docker pull busybox@sha256:65288336b9812bb76337d950df631465ede0f57818098a1c344072466fe209b6
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **2.0 MB (2007340 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:5e74131627d3b8403feb8b3525c9c259ab5747e749c39d8130c4e2452cc6a4b9`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 00:37:28 GMT
ADD file:855be789b7d969529fa48270a9fd565d4c631e85418142586b50b88a54dd25fa in /
# Sat, 05 Mar 2022 00:37:28 GMT
CMD ["sh"]
```
- Layers:
- `sha256:65e2b4eb663ac353b5a878b44229c24741b6c8f2bd86c5b0ba1d560377704ea8`
Last Modified: Sat, 05 Mar 2022 00:39:08 GMT
Size: 2.0 MB (2007340 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
## `busybox:1.35-glibc`
```console
$ docker pull busybox@sha256:8e4c17cb94f119127e3ba7c75e2885e917cfb633e7135437a849ada20e6f2491
```
- Manifest MIME: `application/vnd.docker.distribution.manifest.list.v2+json`
- Platforms: 8
- linux; amd64
- linux; arm variant v5
- linux; arm variant v7
- linux; arm64 variant v8
- linux; 386
- linux; mips64le
- linux; ppc64le
- linux; s390x
### `busybox:1.35-glibc` - linux; amd64
```console
$ docker pull busybox@sha256:72ed8562da1cee99c3490766e3388cbf65c61b5b8e7351d81d5d451902fb396c
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **2.6 MB (2566588 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:356d8bcb303195e397d69bf3196084e4b1038da668d31b7190530b025f25c52c`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 02:00:49 GMT
ADD file:2217467728a925993ff12f0be0177282f5122e7e50403241f82e1e6dc7b4bb07 in /
# Sat, 05 Mar 2022 02:00:49 GMT
CMD ["sh"]
```
- Layers:
- `sha256:89988c27bf8118812294cfbb29c377b7c2a979b6cbe5247909f5d613d905592b`
Last Modified: Sat, 05 Mar 2022 02:02:50 GMT
Size: 2.6 MB (2566588 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.35-glibc` - linux; arm variant v5
```console
$ docker pull busybox@sha256:1dc601aa0a2fac1e6672521bcb9b904d5d4a5bd273eb558eee9e9f8b679860c9
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **1.9 MB (1931437 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:2cdfb9d35891e059a4f0d29ab9905f4bc4689ab34666fa319fa1446617f2a083`
- Default Command: `["sh"]`
```dockerfile
# Fri, 04 Mar 2022 23:53:55 GMT
ADD file:2f342c1d0cbfcfb579d9b5310fd7bb853c037e2868c6f09b6bdc21c4f0cc1fb6 in /
# Fri, 04 Mar 2022 23:53:55 GMT
CMD ["sh"]
```
- Layers:
- `sha256:cb03a331c0090bc428b1aed71ebcce898ba2375410e1a75dfee8195c9ab8d3f1`
Last Modified: Fri, 04 Mar 2022 23:57:12 GMT
Size: 1.9 MB (1931437 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.35-glibc` - linux; arm variant v7
```console
$ docker pull busybox@sha256:5e0ec0ef0da18f7339af97cf26a91ac87b1cfe1aebb646ba4e03c660b93164e1
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **1.7 MB (1679166 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:60efe658ba1bf0eb2830376944f762a1cfbef606eb6065a2025314898750f8a8`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 00:30:53 GMT
ADD file:7f09b47036ae5209dab7f8c240044e2650ac4db06ad7f30c9e70fdb42cdf5940 in /
# Sat, 05 Mar 2022 00:30:53 GMT
CMD ["sh"]
```
- Layers:
- `sha256:ec08f8c178f6565743e4307e1c08c9f43822f7971680598fb4c3cc16ac442057`
Last Modified: Sat, 05 Mar 2022 00:35:35 GMT
Size: 1.7 MB (1679166 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.35-glibc` - linux; arm64 variant v8
```console
$ docker pull busybox@sha256:0084865dbaf42c7b4c01df259413015d3519e785476b59a91ed7611ac6f99400
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **2.0 MB (1997832 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:9fff4abe87ec18f9c1b168d37da9dfcdd86c6adfb085d4358b5806f3a738cb2c`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 02:51:23 GMT
ADD file:36d6bc19753a26f0582978a702da990dd29cc897cdf177a6f667eaadccb75362 in /
# Sat, 05 Mar 2022 02:51:23 GMT
CMD ["sh"]
```
- Layers:
- `sha256:c3f1d0b43382cc4cc450d03e026e77c7d8e3a80d1136b4d3a5d9102a9377ab5a`
Last Modified: Sat, 05 Mar 2022 02:54:02 GMT
Size: 2.0 MB (1997832 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.35-glibc` - linux; 386
```console
$ docker pull busybox@sha256:85ff5dab5c5fb4783864229d1facc9dc1a5f471f033a207b7cbed489ca84954d
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **2.2 MB (2234748 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:a21159bb6a970589f64724407a7b62826c58bd1ad4e10b162249d967e188e8ee`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 01:37:08 GMT
ADD file:d15adf77369cd98e9ba24629344479702be267709a428c1abed4fef95cfca5b3 in /
# Sat, 05 Mar 2022 01:37:08 GMT
CMD ["sh"]
```
- Layers:
- `sha256:624e210634c49ebd837769ac41b92170c6415f73df02851ac3d774fb4e5a0410`
Last Modified: Sat, 05 Mar 2022 01:40:11 GMT
Size: 2.2 MB (2234748 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.35-glibc` - linux; mips64le
```console
$ docker pull busybox@sha256:9dc2a20005fe8d63694dc87aa9ce130178cc5f710b3ff6990228e6eb96172601
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **2.2 MB (2221781 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:84968a24af2cb1727b4571aa6d62214c5007b90088b0b3779eaeb7b71c6714e3`
- Default Command: `["sh"]`
```dockerfile
# Mon, 07 Mar 2022 02:37:08 GMT
ADD file:198e4e10c9398a5a364b3e010e9cee14b8cb19fa183217b0666326aade7b4f79 in /
# Mon, 07 Mar 2022 02:37:10 GMT
CMD ["sh"]
```
- Layers:
- `sha256:c6f20b119d5e6168b276a3e09daac1b2b180c8011ed5c239088cb5cb7ec4e45c`
Last Modified: Mon, 07 Mar 2022 02:38:36 GMT
Size: 2.2 MB (2221781 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.35-glibc` - linux; ppc64le
```console
$ docker pull busybox@sha256:ecd327922b80f39d5eebdd70a58adfd5397d5a2330cb1e15ba47b08992c8aee0
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **2.5 MB (2484402 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:0d7936207fc04ecd77970d5d8ede2a3b4a649b205b720418815587a31143c843`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 01:11:33 GMT
ADD file:a25b3d1c49e964a645ccd79b56261d1f1385c24e904dc39cc5ecfa7c08dba7a1 in /
# Sat, 05 Mar 2022 01:11:36 GMT
CMD ["sh"]
```
- Layers:
- `sha256:1d68bfaf97a43699ca4f596b2b7bb6ae1d5c067f55375ed2cfad444503277842`
Last Modified: Sat, 05 Mar 2022 01:14:04 GMT
Size: 2.5 MB (2484402 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.35-glibc` - linux; s390x
```console
$ docker pull busybox@sha256:65288336b9812bb76337d950df631465ede0f57818098a1c344072466fe209b6
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **2.0 MB (2007340 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:5e74131627d3b8403feb8b3525c9c259ab5747e749c39d8130c4e2452cc6a4b9`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 00:37:28 GMT
ADD file:855be789b7d969529fa48270a9fd565d4c631e85418142586b50b88a54dd25fa in /
# Sat, 05 Mar 2022 00:37:28 GMT
CMD ["sh"]
```
- Layers:
- `sha256:65e2b4eb663ac353b5a878b44229c24741b6c8f2bd86c5b0ba1d560377704ea8`
Last Modified: Sat, 05 Mar 2022 00:39:08 GMT
Size: 2.0 MB (2007340 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
## `busybox:1.35-musl`
```console
$ docker pull busybox@sha256:7de4795698591df50047b278d3c3991d0df5e56d55f23a885d858ef3217ea441
```
- Manifest MIME: `application/vnd.docker.distribution.manifest.list.v2+json`
- Platforms: 7
- linux; amd64
- linux; arm variant v6
- linux; arm variant v7
- linux; arm64 variant v8
- linux; 386
- linux; ppc64le
- linux; s390x
### `busybox:1.35-musl` - linux; amd64
```console
$ docker pull busybox@sha256:b1e808b734ad856684aeab3b2b4b34c8ec62b8111a82b40ca7dcf6dad72e03a6
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **844.0 KB (843994 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:9d0a5b721ba853c382e1da9a74e628293ebcb8aaf2684189516086b215929fb2`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 02:00:55 GMT
ADD file:2578c66eae8cc5bbae0e637daa103a5164e73fe3934a1206482b82af5d974c25 in /
# Sat, 05 Mar 2022 02:00:55 GMT
CMD ["sh"]
```
- Layers:
- `sha256:83e8942241ec697a90e772fd9c5d1a45b05f87caf8fd8ba395fea27b8a32f123`
Last Modified: Sat, 05 Mar 2022 02:03:01 GMT
Size: 844.0 KB (843994 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.35-musl` - linux; arm variant v6
```console
$ docker pull busybox@sha256:4b1769d9e3e50fc0064a81291b9a045a22ba1258c98060a054024e0b94074c03
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **954.2 KB (954229 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:6b984a9bb73cf71496be4e3539ad4f2405b3ad6a68b431a0d6e3a0285631efc9`
- Default Command: `["sh"]`
```dockerfile
# Fri, 04 Mar 2022 22:49:54 GMT
ADD file:5ee77db4ceb26976922746b5d92a93f5edf7ce64e168334ab264f622be92b316 in /
# Fri, 04 Mar 2022 22:49:54 GMT
CMD ["sh"]
```
- Layers:
- `sha256:a7f886d0cf7c7de65c0c33fa89b77e7681ea05f56e436e235d85279e400ab621`
Last Modified: Fri, 04 Mar 2022 22:52:05 GMT
Size: 954.2 KB (954229 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.35-musl` - linux; arm variant v7
```console
$ docker pull busybox@sha256:c91c1e1a687e01386ed6e53316be895e004ddc05bffb46aeecc54b2425a5fe55
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **836.6 KB (836590 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:3051a0f13e4c7b0f094311efd5a8290e8a3863505815dcaebde4ed83571a4fbd`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 00:31:07 GMT
ADD file:a4481c3bbce8f8a026dc55c22a9e481688d4f8d363b384e777100406ff324e14 in /
# Sat, 05 Mar 2022 00:31:07 GMT
CMD ["sh"]
```
- Layers:
- `sha256:b4883e6b41640a958ea065e4f89fcea0f5f8a926915595527fa595063aa96ded`
Last Modified: Sat, 05 Mar 2022 00:35:51 GMT
Size: 836.6 KB (836590 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.35-musl` - linux; arm64 variant v8
```console
$ docker pull busybox@sha256:d2d8deff36fca25249abaab4d82f814c3cc62672a6b9fb6d160855e5c00af415
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **883.3 KB (883273 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:9b00b4b1acc296017539984a4f8dd0afc518dfffd1b2f05c1c5a042c4fc7c805`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 02:51:30 GMT
ADD file:1af22c27b291afcc459c01895db7d9099a40becb3cd0cbb79b1e63748b518439 in /
# Sat, 05 Mar 2022 02:51:30 GMT
CMD ["sh"]
```
- Layers:
- `sha256:6dc991ce8ea9e5e56ed754c20e8f07db65e9ecd74a4290b3696a43e78d6ad216`
Last Modified: Sat, 05 Mar 2022 02:54:16 GMT
Size: 883.3 KB (883273 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.35-musl` - linux; 386
```console
$ docker pull busybox@sha256:3acaa4e6232e79364f7b0dc3111a9ae892d403d11241580a2e504107c49afbcf
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **850.9 KB (850866 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:8e2e62a63ab2d6e03fd1b4feb645fa03dc6e89f1eec8a09d8c6d5b874b868a2d`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 01:37:14 GMT
ADD file:9d56aca637c44e5b76fb88b69834a24ad48a00d4b79f80aaf2c57f8eea7035f7 in /
# Sat, 05 Mar 2022 01:37:14 GMT
CMD ["sh"]
```
- Layers:
- `sha256:efbf27fc889727114570975e8298ead459403b3e40012b50427496fd5b70bac9`
Last Modified: Sat, 05 Mar 2022 01:40:25 GMT
Size: 850.9 KB (850866 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.35-musl` - linux; ppc64le
```console
$ docker pull busybox@sha256:539e05ffbcd29243875e48f40110ac527aa3efa610fab9ad728dfbf2e2b23c97
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **920.0 KB (919971 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:9969dc11bb7409c4402083f38ae3de24fa30c44aa5c9fc3287e7ded37a55bdc7`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 01:11:46 GMT
ADD file:469fbe6feec74f25d140a2bc322d09b569d850cd6113c5158643d2d50f585830 in /
# Sat, 05 Mar 2022 01:11:48 GMT
CMD ["sh"]
```
- Layers:
- `sha256:20f00414baa36900c459bd8a5812b7197fbf8a31950cbe0a85d7f48cb7ecc3a3`
Last Modified: Sat, 05 Mar 2022 01:14:21 GMT
Size: 920.0 KB (919971 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.35-musl` - linux; s390x
```console
$ docker pull busybox@sha256:6b660679b2ec78e39e8f54817cba0f569f548f392f4debbf76544b423ff9e7a4
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **894.6 KB (894571 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:521d1e2d3cead3535b52fc08e2af9df1fc66156efa866604c72d8f03764f9f29`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 00:37:35 GMT
ADD file:4b11b878e8d3cec86a1032bef8797acede90a9bd3f98a2929e63ebc23980c05f in /
# Sat, 05 Mar 2022 00:37:35 GMT
CMD ["sh"]
```
- Layers:
- `sha256:614dc6d02a2e2fa6bc6ecfd3338db3c55d60ee1674e785851e847afd38f03bf1`
Last Modified: Sat, 05 Mar 2022 00:39:16 GMT
Size: 894.6 KB (894571 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
## `busybox:1.35-uclibc`
```console
$ docker pull busybox@sha256:56397438406be766b0dde577ac7e781edd18bb5f540fcccc6d3bca5542d6daa4
```
- Manifest MIME: `application/vnd.docker.distribution.manifest.list.v2+json`
- Platforms: 7
- linux; amd64
- linux; arm variant v5
- linux; arm variant v7
- linux; arm64 variant v8
- linux; 386
- linux; mips64le
- linux; riscv64
### `busybox:1.35-uclibc` - linux; amd64
```console
$ docker pull busybox@sha256:2190cbc0553b42854c65a93a9e1a1a4388ff1ab74e7f300b94b59cd7c063efb2
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **773.2 KB (773214 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:d3dd17c32e61e23cbe6d697569614da150de4d7f0da2b9fa4b57f183305e91c5`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 02:00:44 GMT
ADD file:7c70702dcfa3bc555859068bc7804825282ea61e8076294ff65e82d27aa617e2 in /
# Sat, 05 Mar 2022 02:00:44 GMT
CMD ["sh"]
```
- Layers:
- `sha256:837abc85bf61828c3ada2d02ff8eb7e5360e22cabfd8d3bcc23cbfdd6e5c48a1`
Last Modified: Sat, 05 Mar 2022 02:02:35 GMT
Size: 773.2 KB (773214 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.35-uclibc` - linux; arm variant v5
```console
$ docker pull busybox@sha256:c3939735cb4e6282b45ce907abe02013f825306b6b685574d98a4acc0fabd27c
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **756.5 KB (756533 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:12e9332d857d74bcbe914256dc041e3236282a5e422c84efc27d832eaee4baa7`
- Default Command: `["sh"]`
```dockerfile
# Fri, 04 Mar 2022 23:53:43 GMT
ADD file:52e2acc96ba740fbb994fb22ba9e0c73abc43d6578a39fa5ed0f9055e6698aec in /
# Fri, 04 Mar 2022 23:53:43 GMT
CMD ["sh"]
```
- Layers:
- `sha256:eeefea69efa569ad496e6afbebe5532304eee449c929ffe088cc3a48bc68154d`
Last Modified: Fri, 04 Mar 2022 23:56:57 GMT
Size: 756.5 KB (756533 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.35-uclibc` - linux; arm variant v7
```console
$ docker pull busybox@sha256:e373790c0ffe0bf8f9974f1635b0e4b9242887b11b52ddb2ab8b0016aa6b1224
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **725.1 KB (725090 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:b5e9176ff97aaa9224afae3d663fc32674743237e49e9d4fad119fb0989785b0`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 00:30:38 GMT
ADD file:9e2f429fa6260f11e671814c9a3fee70a7f73d61ecd35296ac4dd9ee8c11d447 in /
# Sat, 05 Mar 2022 00:30:38 GMT
CMD ["sh"]
```
- Layers:
- `sha256:c5ee7714d71e62eec0c700283983cdfd076eef26a241ed0bf7497d83dbe1dc77`
Last Modified: Sat, 05 Mar 2022 00:35:20 GMT
Size: 725.1 KB (725090 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.35-uclibc` - linux; arm64 variant v8
```console
$ docker pull busybox@sha256:1b4394a57cc23b20364516ec0557a892c9eb281d92fe87412db80800d2675645
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **829.3 KB (829339 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:4575719df580071e2104e56cab1b5d8b9f7bacfa160a87f15c63b020b38c4cda`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 02:51:16 GMT
ADD file:46a9fbc68edb3b9c51d952a28551a8ce5ca7e36ec8bbbf1b62ae11c9e6fbd994 in /
# Sat, 05 Mar 2022 02:51:16 GMT
CMD ["sh"]
```
- Layers:
- `sha256:c65693ced10096a446b59d5125a0b1fc4b24c7d72dfcf7abdf20c2e80e63a21a`
Last Modified: Sat, 05 Mar 2022 02:53:49 GMT
Size: 829.3 KB (829339 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.35-uclibc` - linux; 386
```console
$ docker pull busybox@sha256:36c1dbc15886a25b2515133e6626b4d1c2df4423adff2c760643b50e19fb519b
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **736.5 KB (736481 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:2a95c75abfdb7665dfce29b6894ece1e4b7da24412175e9e56125149497f303b`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 01:37:01 GMT
ADD file:c6389c568cd27afe20167b7e7ad274df772345df80a67c1464708ca20e079b7d in /
# Sat, 05 Mar 2022 01:37:01 GMT
CMD ["sh"]
```
- Layers:
- `sha256:e15fc50ae394f9ef82fb7c0ecd09970b888cafacb41cf957fe9f89f2dd2c3fd8`
Last Modified: Sat, 05 Mar 2022 01:39:55 GMT
Size: 736.5 KB (736481 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.35-uclibc` - linux; mips64le
```console
$ docker pull busybox@sha256:356a37d941e107a7c754393efc889ca84fdbaad6ec5198a2568ec6197517f469
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **961.9 KB (961851 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:6ee8d904106ba464888ca386ac1e9c9426b70ddfa18eb30f32f7a84a85bd69d6`
- Default Command: `["sh"]`
```dockerfile
# Mon, 07 Mar 2022 02:36:58 GMT
ADD file:09f0d7194e6bb71bd44fe3a0195df69adb2057999339c4f5e9d6140a45ba0660 in /
# Mon, 07 Mar 2022 02:36:59 GMT
CMD ["sh"]
```
- Layers:
- `sha256:13d04bfbe329afadd5dca56fb821be9200299bdbe919dcab966c8f561e7640fb`
Last Modified: Mon, 07 Mar 2022 02:38:23 GMT
Size: 961.9 KB (961851 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.35-uclibc` - linux; riscv64
```console
$ docker pull busybox@sha256:b901ab4c321fccb6fef40a117220414bc1d1ab7e914bbf761db39a7314f93518
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **905.6 KB (905561 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:19ae9a19451ec4e0888b2a42390b1aa44391c0e80208db8b27438f9d630099e3`
- Default Command: `["sh"]`
```dockerfile
# Fri, 04 Mar 2022 23:17:31 GMT
ADD file:ff86f337382e15663e45316d6a23732986083cb0ff879babe90967fcf2004a83 in /
# Fri, 04 Mar 2022 23:17:32 GMT
CMD ["sh"]
```
- Layers:
- `sha256:42f0a2f1fcd7245b3d52983f0c380db121b5bd0ec06064fea2144c465711c9e0`
Last Modified: Fri, 04 Mar 2022 23:40:41 GMT
Size: 905.6 KB (905561 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
## `busybox:1.35.0`
```console
$ docker pull busybox@sha256:20246233b52de844fa516f8c51234f1441e55e71ecdd1a1d91ebb252e1fd4603
```
- Manifest MIME: `application/vnd.docker.distribution.manifest.list.v2+json`
- Platforms: 10
- linux; amd64
- linux; arm variant v5
- linux; arm variant v6
- linux; arm variant v7
- linux; arm64 variant v8
- linux; 386
- linux; mips64le
- linux; ppc64le
- linux; riscv64
- linux; s390x
### `busybox:1.35.0` - linux; amd64
```console
$ docker pull busybox@sha256:2190cbc0553b42854c65a93a9e1a1a4388ff1ab74e7f300b94b59cd7c063efb2
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **773.2 KB (773214 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:d3dd17c32e61e23cbe6d697569614da150de4d7f0da2b9fa4b57f183305e91c5`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 02:00:44 GMT
ADD file:7c70702dcfa3bc555859068bc7804825282ea61e8076294ff65e82d27aa617e2 in /
# Sat, 05 Mar 2022 02:00:44 GMT
CMD ["sh"]
```
- Layers:
- `sha256:837abc85bf61828c3ada2d02ff8eb7e5360e22cabfd8d3bcc23cbfdd6e5c48a1`
Last Modified: Sat, 05 Mar 2022 02:02:35 GMT
Size: 773.2 KB (773214 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.35.0` - linux; arm variant v5
```console
$ docker pull busybox@sha256:c3939735cb4e6282b45ce907abe02013f825306b6b685574d98a4acc0fabd27c
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **756.5 KB (756533 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:12e9332d857d74bcbe914256dc041e3236282a5e422c84efc27d832eaee4baa7`
- Default Command: `["sh"]`
```dockerfile
# Fri, 04 Mar 2022 23:53:43 GMT
ADD file:52e2acc96ba740fbb994fb22ba9e0c73abc43d6578a39fa5ed0f9055e6698aec in /
# Fri, 04 Mar 2022 23:53:43 GMT
CMD ["sh"]
```
- Layers:
- `sha256:eeefea69efa569ad496e6afbebe5532304eee449c929ffe088cc3a48bc68154d`
Last Modified: Fri, 04 Mar 2022 23:56:57 GMT
Size: 756.5 KB (756533 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.35.0` - linux; arm variant v6
```console
$ docker pull busybox@sha256:4b1769d9e3e50fc0064a81291b9a045a22ba1258c98060a054024e0b94074c03
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **954.2 KB (954229 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:6b984a9bb73cf71496be4e3539ad4f2405b3ad6a68b431a0d6e3a0285631efc9`
- Default Command: `["sh"]`
```dockerfile
# Fri, 04 Mar 2022 22:49:54 GMT
ADD file:5ee77db4ceb26976922746b5d92a93f5edf7ce64e168334ab264f622be92b316 in /
# Fri, 04 Mar 2022 22:49:54 GMT
CMD ["sh"]
```
- Layers:
- `sha256:a7f886d0cf7c7de65c0c33fa89b77e7681ea05f56e436e235d85279e400ab621`
Last Modified: Fri, 04 Mar 2022 22:52:05 GMT
Size: 954.2 KB (954229 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.35.0` - linux; arm variant v7
```console
$ docker pull busybox@sha256:e373790c0ffe0bf8f9974f1635b0e4b9242887b11b52ddb2ab8b0016aa6b1224
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **725.1 KB (725090 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:b5e9176ff97aaa9224afae3d663fc32674743237e49e9d4fad119fb0989785b0`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 00:30:38 GMT
ADD file:9e2f429fa6260f11e671814c9a3fee70a7f73d61ecd35296ac4dd9ee8c11d447 in /
# Sat, 05 Mar 2022 00:30:38 GMT
CMD ["sh"]
```
- Layers:
- `sha256:c5ee7714d71e62eec0c700283983cdfd076eef26a241ed0bf7497d83dbe1dc77`
Last Modified: Sat, 05 Mar 2022 00:35:20 GMT
Size: 725.1 KB (725090 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.35.0` - linux; arm64 variant v8
```console
$ docker pull busybox@sha256:1b4394a57cc23b20364516ec0557a892c9eb281d92fe87412db80800d2675645
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **829.3 KB (829339 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:4575719df580071e2104e56cab1b5d8b9f7bacfa160a87f15c63b020b38c4cda`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 02:51:16 GMT
ADD file:46a9fbc68edb3b9c51d952a28551a8ce5ca7e36ec8bbbf1b62ae11c9e6fbd994 in /
# Sat, 05 Mar 2022 02:51:16 GMT
CMD ["sh"]
```
- Layers:
- `sha256:c65693ced10096a446b59d5125a0b1fc4b24c7d72dfcf7abdf20c2e80e63a21a`
Last Modified: Sat, 05 Mar 2022 02:53:49 GMT
Size: 829.3 KB (829339 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.35.0` - linux; 386
```console
$ docker pull busybox@sha256:36c1dbc15886a25b2515133e6626b4d1c2df4423adff2c760643b50e19fb519b
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **736.5 KB (736481 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:2a95c75abfdb7665dfce29b6894ece1e4b7da24412175e9e56125149497f303b`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 01:37:01 GMT
ADD file:c6389c568cd27afe20167b7e7ad274df772345df80a67c1464708ca20e079b7d in /
# Sat, 05 Mar 2022 01:37:01 GMT
CMD ["sh"]
```
- Layers:
- `sha256:e15fc50ae394f9ef82fb7c0ecd09970b888cafacb41cf957fe9f89f2dd2c3fd8`
Last Modified: Sat, 05 Mar 2022 01:39:55 GMT
Size: 736.5 KB (736481 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.35.0` - linux; mips64le
```console
$ docker pull busybox@sha256:356a37d941e107a7c754393efc889ca84fdbaad6ec5198a2568ec6197517f469
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **961.9 KB (961851 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:6ee8d904106ba464888ca386ac1e9c9426b70ddfa18eb30f32f7a84a85bd69d6`
- Default Command: `["sh"]`
```dockerfile
# Mon, 07 Mar 2022 02:36:58 GMT
ADD file:09f0d7194e6bb71bd44fe3a0195df69adb2057999339c4f5e9d6140a45ba0660 in /
# Mon, 07 Mar 2022 02:36:59 GMT
CMD ["sh"]
```
- Layers:
- `sha256:13d04bfbe329afadd5dca56fb821be9200299bdbe919dcab966c8f561e7640fb`
Last Modified: Mon, 07 Mar 2022 02:38:23 GMT
Size: 961.9 KB (961851 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.35.0` - linux; ppc64le
```console
$ docker pull busybox@sha256:ecd327922b80f39d5eebdd70a58adfd5397d5a2330cb1e15ba47b08992c8aee0
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **2.5 MB (2484402 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:0d7936207fc04ecd77970d5d8ede2a3b4a649b205b720418815587a31143c843`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 01:11:33 GMT
ADD file:a25b3d1c49e964a645ccd79b56261d1f1385c24e904dc39cc5ecfa7c08dba7a1 in /
# Sat, 05 Mar 2022 01:11:36 GMT
CMD ["sh"]
```
- Layers:
- `sha256:1d68bfaf97a43699ca4f596b2b7bb6ae1d5c067f55375ed2cfad444503277842`
Last Modified: Sat, 05 Mar 2022 01:14:04 GMT
Size: 2.5 MB (2484402 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.35.0` - linux; riscv64
```console
$ docker pull busybox@sha256:b901ab4c321fccb6fef40a117220414bc1d1ab7e914bbf761db39a7314f93518
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **905.6 KB (905561 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:19ae9a19451ec4e0888b2a42390b1aa44391c0e80208db8b27438f9d630099e3`
- Default Command: `["sh"]`
```dockerfile
# Fri, 04 Mar 2022 23:17:31 GMT
ADD file:ff86f337382e15663e45316d6a23732986083cb0ff879babe90967fcf2004a83 in /
# Fri, 04 Mar 2022 23:17:32 GMT
CMD ["sh"]
```
- Layers:
- `sha256:42f0a2f1fcd7245b3d52983f0c380db121b5bd0ec06064fea2144c465711c9e0`
Last Modified: Fri, 04 Mar 2022 23:40:41 GMT
Size: 905.6 KB (905561 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.35.0` - linux; s390x
```console
$ docker pull busybox@sha256:65288336b9812bb76337d950df631465ede0f57818098a1c344072466fe209b6
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **2.0 MB (2007340 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:5e74131627d3b8403feb8b3525c9c259ab5747e749c39d8130c4e2452cc6a4b9`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 00:37:28 GMT
ADD file:855be789b7d969529fa48270a9fd565d4c631e85418142586b50b88a54dd25fa in /
# Sat, 05 Mar 2022 00:37:28 GMT
CMD ["sh"]
```
- Layers:
- `sha256:65e2b4eb663ac353b5a878b44229c24741b6c8f2bd86c5b0ba1d560377704ea8`
Last Modified: Sat, 05 Mar 2022 00:39:08 GMT
Size: 2.0 MB (2007340 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
## `busybox:1.35.0-glibc`
```console
$ docker pull busybox@sha256:8e4c17cb94f119127e3ba7c75e2885e917cfb633e7135437a849ada20e6f2491
```
- Manifest MIME: `application/vnd.docker.distribution.manifest.list.v2+json`
- Platforms: 8
- linux; amd64
- linux; arm variant v5
- linux; arm variant v7
- linux; arm64 variant v8
- linux; 386
- linux; mips64le
- linux; ppc64le
- linux; s390x
### `busybox:1.35.0-glibc` - linux; amd64
```console
$ docker pull busybox@sha256:72ed8562da1cee99c3490766e3388cbf65c61b5b8e7351d81d5d451902fb396c
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **2.6 MB (2566588 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:356d8bcb303195e397d69bf3196084e4b1038da668d31b7190530b025f25c52c`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 02:00:49 GMT
ADD file:2217467728a925993ff12f0be0177282f5122e7e50403241f82e1e6dc7b4bb07 in /
# Sat, 05 Mar 2022 02:00:49 GMT
CMD ["sh"]
```
- Layers:
- `sha256:89988c27bf8118812294cfbb29c377b7c2a979b6cbe5247909f5d613d905592b`
Last Modified: Sat, 05 Mar 2022 02:02:50 GMT
Size: 2.6 MB (2566588 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.35.0-glibc` - linux; arm variant v5
```console
$ docker pull busybox@sha256:1dc601aa0a2fac1e6672521bcb9b904d5d4a5bd273eb558eee9e9f8b679860c9
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **1.9 MB (1931437 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:2cdfb9d35891e059a4f0d29ab9905f4bc4689ab34666fa319fa1446617f2a083`
- Default Command: `["sh"]`
```dockerfile
# Fri, 04 Mar 2022 23:53:55 GMT
ADD file:2f342c1d0cbfcfb579d9b5310fd7bb853c037e2868c6f09b6bdc21c4f0cc1fb6 in /
# Fri, 04 Mar 2022 23:53:55 GMT
CMD ["sh"]
```
- Layers:
- `sha256:cb03a331c0090bc428b1aed71ebcce898ba2375410e1a75dfee8195c9ab8d3f1`
Last Modified: Fri, 04 Mar 2022 23:57:12 GMT
Size: 1.9 MB (1931437 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.35.0-glibc` - linux; arm variant v7
```console
$ docker pull busybox@sha256:5e0ec0ef0da18f7339af97cf26a91ac87b1cfe1aebb646ba4e03c660b93164e1
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **1.7 MB (1679166 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:60efe658ba1bf0eb2830376944f762a1cfbef606eb6065a2025314898750f8a8`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 00:30:53 GMT
ADD file:7f09b47036ae5209dab7f8c240044e2650ac4db06ad7f30c9e70fdb42cdf5940 in /
# Sat, 05 Mar 2022 00:30:53 GMT
CMD ["sh"]
```
- Layers:
- `sha256:ec08f8c178f6565743e4307e1c08c9f43822f7971680598fb4c3cc16ac442057`
Last Modified: Sat, 05 Mar 2022 00:35:35 GMT
Size: 1.7 MB (1679166 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.35.0-glibc` - linux; arm64 variant v8
```console
$ docker pull busybox@sha256:0084865dbaf42c7b4c01df259413015d3519e785476b59a91ed7611ac6f99400
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **2.0 MB (1997832 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:9fff4abe87ec18f9c1b168d37da9dfcdd86c6adfb085d4358b5806f3a738cb2c`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 02:51:23 GMT
ADD file:36d6bc19753a26f0582978a702da990dd29cc897cdf177a6f667eaadccb75362 in /
# Sat, 05 Mar 2022 02:51:23 GMT
CMD ["sh"]
```
- Layers:
- `sha256:c3f1d0b43382cc4cc450d03e026e77c7d8e3a80d1136b4d3a5d9102a9377ab5a`
Last Modified: Sat, 05 Mar 2022 02:54:02 GMT
Size: 2.0 MB (1997832 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.35.0-glibc` - linux; 386
```console
$ docker pull busybox@sha256:85ff5dab5c5fb4783864229d1facc9dc1a5f471f033a207b7cbed489ca84954d
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **2.2 MB (2234748 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:a21159bb6a970589f64724407a7b62826c58bd1ad4e10b162249d967e188e8ee`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 01:37:08 GMT
ADD file:d15adf77369cd98e9ba24629344479702be267709a428c1abed4fef95cfca5b3 in /
# Sat, 05 Mar 2022 01:37:08 GMT
CMD ["sh"]
```
- Layers:
- `sha256:624e210634c49ebd837769ac41b92170c6415f73df02851ac3d774fb4e5a0410`
Last Modified: Sat, 05 Mar 2022 01:40:11 GMT
Size: 2.2 MB (2234748 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.35.0-glibc` - linux; mips64le
```console
$ docker pull busybox@sha256:9dc2a20005fe8d63694dc87aa9ce130178cc5f710b3ff6990228e6eb96172601
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **2.2 MB (2221781 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:84968a24af2cb1727b4571aa6d62214c5007b90088b0b3779eaeb7b71c6714e3`
- Default Command: `["sh"]`
```dockerfile
# Mon, 07 Mar 2022 02:37:08 GMT
ADD file:198e4e10c9398a5a364b3e010e9cee14b8cb19fa183217b0666326aade7b4f79 in /
# Mon, 07 Mar 2022 02:37:10 GMT
CMD ["sh"]
```
- Layers:
- `sha256:c6f20b119d5e6168b276a3e09daac1b2b180c8011ed5c239088cb5cb7ec4e45c`
Last Modified: Mon, 07 Mar 2022 02:38:36 GMT
Size: 2.2 MB (2221781 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.35.0-glibc` - linux; ppc64le
```console
$ docker pull busybox@sha256:ecd327922b80f39d5eebdd70a58adfd5397d5a2330cb1e15ba47b08992c8aee0
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **2.5 MB (2484402 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:0d7936207fc04ecd77970d5d8ede2a3b4a649b205b720418815587a31143c843`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 01:11:33 GMT
ADD file:a25b3d1c49e964a645ccd79b56261d1f1385c24e904dc39cc5ecfa7c08dba7a1 in /
# Sat, 05 Mar 2022 01:11:36 GMT
CMD ["sh"]
```
- Layers:
- `sha256:1d68bfaf97a43699ca4f596b2b7bb6ae1d5c067f55375ed2cfad444503277842`
Last Modified: Sat, 05 Mar 2022 01:14:04 GMT
Size: 2.5 MB (2484402 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.35.0-glibc` - linux; s390x
```console
$ docker pull busybox@sha256:65288336b9812bb76337d950df631465ede0f57818098a1c344072466fe209b6
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **2.0 MB (2007340 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:5e74131627d3b8403feb8b3525c9c259ab5747e749c39d8130c4e2452cc6a4b9`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 00:37:28 GMT
ADD file:855be789b7d969529fa48270a9fd565d4c631e85418142586b50b88a54dd25fa in /
# Sat, 05 Mar 2022 00:37:28 GMT
CMD ["sh"]
```
- Layers:
- `sha256:65e2b4eb663ac353b5a878b44229c24741b6c8f2bd86c5b0ba1d560377704ea8`
Last Modified: Sat, 05 Mar 2022 00:39:08 GMT
Size: 2.0 MB (2007340 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
## `busybox:1.35.0-musl`
```console
$ docker pull busybox@sha256:7de4795698591df50047b278d3c3991d0df5e56d55f23a885d858ef3217ea441
```
- Manifest MIME: `application/vnd.docker.distribution.manifest.list.v2+json`
- Platforms: 7
- linux; amd64
- linux; arm variant v6
- linux; arm variant v7
- linux; arm64 variant v8
- linux; 386
- linux; ppc64le
- linux; s390x
### `busybox:1.35.0-musl` - linux; amd64
```console
$ docker pull busybox@sha256:b1e808b734ad856684aeab3b2b4b34c8ec62b8111a82b40ca7dcf6dad72e03a6
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **844.0 KB (843994 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:9d0a5b721ba853c382e1da9a74e628293ebcb8aaf2684189516086b215929fb2`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 02:00:55 GMT
ADD file:2578c66eae8cc5bbae0e637daa103a5164e73fe3934a1206482b82af5d974c25 in /
# Sat, 05 Mar 2022 02:00:55 GMT
CMD ["sh"]
```
- Layers:
- `sha256:83e8942241ec697a90e772fd9c5d1a45b05f87caf8fd8ba395fea27b8a32f123`
Last Modified: Sat, 05 Mar 2022 02:03:01 GMT
Size: 844.0 KB (843994 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.35.0-musl` - linux; arm variant v6
```console
$ docker pull busybox@sha256:4b1769d9e3e50fc0064a81291b9a045a22ba1258c98060a054024e0b94074c03
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **954.2 KB (954229 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:6b984a9bb73cf71496be4e3539ad4f2405b3ad6a68b431a0d6e3a0285631efc9`
- Default Command: `["sh"]`
```dockerfile
# Fri, 04 Mar 2022 22:49:54 GMT
ADD file:5ee77db4ceb26976922746b5d92a93f5edf7ce64e168334ab264f622be92b316 in /
# Fri, 04 Mar 2022 22:49:54 GMT
CMD ["sh"]
```
- Layers:
- `sha256:a7f886d0cf7c7de65c0c33fa89b77e7681ea05f56e436e235d85279e400ab621`
Last Modified: Fri, 04 Mar 2022 22:52:05 GMT
Size: 954.2 KB (954229 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.35.0-musl` - linux; arm variant v7
```console
$ docker pull busybox@sha256:c91c1e1a687e01386ed6e53316be895e004ddc05bffb46aeecc54b2425a5fe55
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **836.6 KB (836590 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:3051a0f13e4c7b0f094311efd5a8290e8a3863505815dcaebde4ed83571a4fbd`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 00:31:07 GMT
ADD file:a4481c3bbce8f8a026dc55c22a9e481688d4f8d363b384e777100406ff324e14 in /
# Sat, 05 Mar 2022 00:31:07 GMT
CMD ["sh"]
```
- Layers:
- `sha256:b4883e6b41640a958ea065e4f89fcea0f5f8a926915595527fa595063aa96ded`
Last Modified: Sat, 05 Mar 2022 00:35:51 GMT
Size: 836.6 KB (836590 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.35.0-musl` - linux; arm64 variant v8
```console
$ docker pull busybox@sha256:d2d8deff36fca25249abaab4d82f814c3cc62672a6b9fb6d160855e5c00af415
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **883.3 KB (883273 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:9b00b4b1acc296017539984a4f8dd0afc518dfffd1b2f05c1c5a042c4fc7c805`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 02:51:30 GMT
ADD file:1af22c27b291afcc459c01895db7d9099a40becb3cd0cbb79b1e63748b518439 in /
# Sat, 05 Mar 2022 02:51:30 GMT
CMD ["sh"]
```
- Layers:
- `sha256:6dc991ce8ea9e5e56ed754c20e8f07db65e9ecd74a4290b3696a43e78d6ad216`
Last Modified: Sat, 05 Mar 2022 02:54:16 GMT
Size: 883.3 KB (883273 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.35.0-musl` - linux; 386
```console
$ docker pull busybox@sha256:3acaa4e6232e79364f7b0dc3111a9ae892d403d11241580a2e504107c49afbcf
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **850.9 KB (850866 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:8e2e62a63ab2d6e03fd1b4feb645fa03dc6e89f1eec8a09d8c6d5b874b868a2d`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 01:37:14 GMT
ADD file:9d56aca637c44e5b76fb88b69834a24ad48a00d4b79f80aaf2c57f8eea7035f7 in /
# Sat, 05 Mar 2022 01:37:14 GMT
CMD ["sh"]
```
- Layers:
- `sha256:efbf27fc889727114570975e8298ead459403b3e40012b50427496fd5b70bac9`
Last Modified: Sat, 05 Mar 2022 01:40:25 GMT
Size: 850.9 KB (850866 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.35.0-musl` - linux; ppc64le
```console
$ docker pull busybox@sha256:539e05ffbcd29243875e48f40110ac527aa3efa610fab9ad728dfbf2e2b23c97
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **920.0 KB (919971 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:9969dc11bb7409c4402083f38ae3de24fa30c44aa5c9fc3287e7ded37a55bdc7`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 01:11:46 GMT
ADD file:469fbe6feec74f25d140a2bc322d09b569d850cd6113c5158643d2d50f585830 in /
# Sat, 05 Mar 2022 01:11:48 GMT
CMD ["sh"]
```
- Layers:
- `sha256:20f00414baa36900c459bd8a5812b7197fbf8a31950cbe0a85d7f48cb7ecc3a3`
Last Modified: Sat, 05 Mar 2022 01:14:21 GMT
Size: 920.0 KB (919971 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.35.0-musl` - linux; s390x
```console
$ docker pull busybox@sha256:6b660679b2ec78e39e8f54817cba0f569f548f392f4debbf76544b423ff9e7a4
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **894.6 KB (894571 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:521d1e2d3cead3535b52fc08e2af9df1fc66156efa866604c72d8f03764f9f29`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 00:37:35 GMT
ADD file:4b11b878e8d3cec86a1032bef8797acede90a9bd3f98a2929e63ebc23980c05f in /
# Sat, 05 Mar 2022 00:37:35 GMT
CMD ["sh"]
```
- Layers:
- `sha256:614dc6d02a2e2fa6bc6ecfd3338db3c55d60ee1674e785851e847afd38f03bf1`
Last Modified: Sat, 05 Mar 2022 00:39:16 GMT
Size: 894.6 KB (894571 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
## `busybox:1.35.0-uclibc`
```console
$ docker pull busybox@sha256:56397438406be766b0dde577ac7e781edd18bb5f540fcccc6d3bca5542d6daa4
```
- Manifest MIME: `application/vnd.docker.distribution.manifest.list.v2+json`
- Platforms: 7
- linux; amd64
- linux; arm variant v5
- linux; arm variant v7
- linux; arm64 variant v8
- linux; 386
- linux; mips64le
- linux; riscv64
### `busybox:1.35.0-uclibc` - linux; amd64
```console
$ docker pull busybox@sha256:2190cbc0553b42854c65a93a9e1a1a4388ff1ab74e7f300b94b59cd7c063efb2
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **773.2 KB (773214 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:d3dd17c32e61e23cbe6d697569614da150de4d7f0da2b9fa4b57f183305e91c5`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 02:00:44 GMT
ADD file:7c70702dcfa3bc555859068bc7804825282ea61e8076294ff65e82d27aa617e2 in /
# Sat, 05 Mar 2022 02:00:44 GMT
CMD ["sh"]
```
- Layers:
- `sha256:837abc85bf61828c3ada2d02ff8eb7e5360e22cabfd8d3bcc23cbfdd6e5c48a1`
Last Modified: Sat, 05 Mar 2022 02:02:35 GMT
Size: 773.2 KB (773214 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.35.0-uclibc` - linux; arm variant v5
```console
$ docker pull busybox@sha256:c3939735cb4e6282b45ce907abe02013f825306b6b685574d98a4acc0fabd27c
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **756.5 KB (756533 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:12e9332d857d74bcbe914256dc041e3236282a5e422c84efc27d832eaee4baa7`
- Default Command: `["sh"]`
```dockerfile
# Fri, 04 Mar 2022 23:53:43 GMT
ADD file:52e2acc96ba740fbb994fb22ba9e0c73abc43d6578a39fa5ed0f9055e6698aec in /
# Fri, 04 Mar 2022 23:53:43 GMT
CMD ["sh"]
```
- Layers:
- `sha256:eeefea69efa569ad496e6afbebe5532304eee449c929ffe088cc3a48bc68154d`
Last Modified: Fri, 04 Mar 2022 23:56:57 GMT
Size: 756.5 KB (756533 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.35.0-uclibc` - linux; arm variant v7
```console
$ docker pull busybox@sha256:e373790c0ffe0bf8f9974f1635b0e4b9242887b11b52ddb2ab8b0016aa6b1224
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **725.1 KB (725090 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:b5e9176ff97aaa9224afae3d663fc32674743237e49e9d4fad119fb0989785b0`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 00:30:38 GMT
ADD file:9e2f429fa6260f11e671814c9a3fee70a7f73d61ecd35296ac4dd9ee8c11d447 in /
# Sat, 05 Mar 2022 00:30:38 GMT
CMD ["sh"]
```
- Layers:
- `sha256:c5ee7714d71e62eec0c700283983cdfd076eef26a241ed0bf7497d83dbe1dc77`
Last Modified: Sat, 05 Mar 2022 00:35:20 GMT
Size: 725.1 KB (725090 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.35.0-uclibc` - linux; arm64 variant v8
```console
$ docker pull busybox@sha256:1b4394a57cc23b20364516ec0557a892c9eb281d92fe87412db80800d2675645
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **829.3 KB (829339 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:4575719df580071e2104e56cab1b5d8b9f7bacfa160a87f15c63b020b38c4cda`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 02:51:16 GMT
ADD file:46a9fbc68edb3b9c51d952a28551a8ce5ca7e36ec8bbbf1b62ae11c9e6fbd994 in /
# Sat, 05 Mar 2022 02:51:16 GMT
CMD ["sh"]
```
- Layers:
- `sha256:c65693ced10096a446b59d5125a0b1fc4b24c7d72dfcf7abdf20c2e80e63a21a`
Last Modified: Sat, 05 Mar 2022 02:53:49 GMT
Size: 829.3 KB (829339 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.35.0-uclibc` - linux; 386
```console
$ docker pull busybox@sha256:36c1dbc15886a25b2515133e6626b4d1c2df4423adff2c760643b50e19fb519b
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **736.5 KB (736481 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:2a95c75abfdb7665dfce29b6894ece1e4b7da24412175e9e56125149497f303b`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 01:37:01 GMT
ADD file:c6389c568cd27afe20167b7e7ad274df772345df80a67c1464708ca20e079b7d in /
# Sat, 05 Mar 2022 01:37:01 GMT
CMD ["sh"]
```
- Layers:
- `sha256:e15fc50ae394f9ef82fb7c0ecd09970b888cafacb41cf957fe9f89f2dd2c3fd8`
Last Modified: Sat, 05 Mar 2022 01:39:55 GMT
Size: 736.5 KB (736481 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.35.0-uclibc` - linux; mips64le
```console
$ docker pull busybox@sha256:356a37d941e107a7c754393efc889ca84fdbaad6ec5198a2568ec6197517f469
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **961.9 KB (961851 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:6ee8d904106ba464888ca386ac1e9c9426b70ddfa18eb30f32f7a84a85bd69d6`
- Default Command: `["sh"]`
```dockerfile
# Mon, 07 Mar 2022 02:36:58 GMT
ADD file:09f0d7194e6bb71bd44fe3a0195df69adb2057999339c4f5e9d6140a45ba0660 in /
# Mon, 07 Mar 2022 02:36:59 GMT
CMD ["sh"]
```
- Layers:
- `sha256:13d04bfbe329afadd5dca56fb821be9200299bdbe919dcab966c8f561e7640fb`
Last Modified: Mon, 07 Mar 2022 02:38:23 GMT
Size: 961.9 KB (961851 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:1.35.0-uclibc` - linux; riscv64
```console
$ docker pull busybox@sha256:b901ab4c321fccb6fef40a117220414bc1d1ab7e914bbf761db39a7314f93518
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **905.6 KB (905561 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:19ae9a19451ec4e0888b2a42390b1aa44391c0e80208db8b27438f9d630099e3`
- Default Command: `["sh"]`
```dockerfile
# Fri, 04 Mar 2022 23:17:31 GMT
ADD file:ff86f337382e15663e45316d6a23732986083cb0ff879babe90967fcf2004a83 in /
# Fri, 04 Mar 2022 23:17:32 GMT
CMD ["sh"]
```
- Layers:
- `sha256:42f0a2f1fcd7245b3d52983f0c380db121b5bd0ec06064fea2144c465711c9e0`
Last Modified: Fri, 04 Mar 2022 23:40:41 GMT
Size: 905.6 KB (905561 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
## `busybox:glibc`
```console
$ docker pull busybox@sha256:eb2ce6449180cf13a4c9090136f590a9e56cb2f971106378eb72ca21e36cd879
```
- Manifest MIME: `application/vnd.docker.distribution.manifest.list.v2+json`
- Platforms: 8
- linux; amd64
- linux; arm variant v5
- linux; arm variant v7
- linux; arm64 variant v8
- linux; 386
- linux; mips64le
- linux; ppc64le
- linux; s390x
### `busybox:glibc` - linux; amd64
```console
$ docker pull busybox@sha256:d224398aa9019dad8efdd919f8ab71e4b2412cac344052b7f775fd9b34342d8f
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **2.6 MB (2566117 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:1e45f134f7e91ad3850db0725ac82293643d2bbebbc25c3406071ba4d89ca3a4`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 02:00:29 GMT
ADD file:05ccd81e2c33b446d16f58ad7f1ff8bd2e80bbcd788a564e1922b678079a122a in /
# Sat, 05 Mar 2022 02:00:29 GMT
CMD ["sh"]
```
- Layers:
- `sha256:4716b0e5bf987ed4efeced460c6c11786c9ff99dbacafbcb6a5a82f7d8ebd83a`
Last Modified: Sat, 05 Mar 2022 02:01:50 GMT
Size: 2.6 MB (2566117 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:glibc` - linux; arm variant v5
```console
$ docker pull busybox@sha256:a92f8ad0773a537b695a10961110ad43ddf57523ab8d5630027cb32d82dc10a0
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **1.9 MB (1930778 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:9ef4eb1817df9cee9673079422d59657c2d68a18523bcdbe2923c76616d6d674`
- Default Command: `["sh"]`
```dockerfile
# Fri, 04 Mar 2022 23:53:17 GMT
ADD file:1f5a05d8f0ca917f59d91add5c1587857acea4690daf45ddd40785e5b3a98622 in /
# Fri, 04 Mar 2022 23:53:17 GMT
CMD ["sh"]
```
- Layers:
- `sha256:e44453e16a4248ff1bdf0b20ae46d48945598933af6264788736342c84f0c264`
Last Modified: Fri, 04 Mar 2022 23:56:16 GMT
Size: 1.9 MB (1930778 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:glibc` - linux; arm variant v7
```console
$ docker pull busybox@sha256:af04becc8b1710ae52efbd00851b3441d523e15a6799a6fc0d66526307c97b90
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **1.7 MB (1678697 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:c2aaece4707f9e7ba8729f653e924062c95863b33d8e78c656efa41f7fb245ae`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 00:29:53 GMT
ADD file:bbaae957f6e332a5ab0fa52a407edc35cef05e20694503c02202f09cbecfaeb7 in /
# Sat, 05 Mar 2022 00:29:54 GMT
CMD ["sh"]
```
- Layers:
- `sha256:f47e3aecd4ecc498dfe2a0b8af03c5908f51a12bf9c6c7882da54e045592af1d`
Last Modified: Sat, 05 Mar 2022 00:34:16 GMT
Size: 1.7 MB (1678697 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:glibc` - linux; arm64 variant v8
```console
$ docker pull busybox@sha256:138caefe5d4587a2e399e10584ec48b6ac6e85ca4648a2ae79cf2596522db96d
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **2.0 MB (1996167 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:5aa233f38809f493559589f4e22b2088b1bfb9360e7d8d6cdeeafc5e95b915c6`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 02:50:57 GMT
ADD file:258a8844c7008f22b0dc0a79c33d7a7268a5d0c878a1c712687901d74a14ac0c in /
# Sat, 05 Mar 2022 02:50:57 GMT
CMD ["sh"]
```
- Layers:
- `sha256:83f1fddca34bd4a67d2051806f9186712c8111c92c1818bdb6d6afec4fb779b1`
Last Modified: Sat, 05 Mar 2022 02:52:58 GMT
Size: 2.0 MB (1996167 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:glibc` - linux; 386
```console
$ docker pull busybox@sha256:97256981fabef7178530a1a7229a997f766101c38049d3a2affef354daac4fe1
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **2.2 MB (2233781 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:55a2e0dcbee048e776108c041c437b3b585e796b4d534a84dfbf35de525b11cf`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 01:36:40 GMT
ADD file:b869021110509d7db63766d9b56ed251db50b7d794dc5d22e895db264fe96fbf in /
# Sat, 05 Mar 2022 01:36:40 GMT
CMD ["sh"]
```
- Layers:
- `sha256:46b35c816ab3818c2c8250f5594acf55d8960a5dd80aa91dc16449066295259f`
Last Modified: Sat, 05 Mar 2022 01:38:58 GMT
Size: 2.2 MB (2233781 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:glibc` - linux; mips64le
```console
$ docker pull busybox@sha256:4cbd8205c204cb78e9f4488b75df12873f209afa8ea91e9ef0f0801b69f170ac
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **2.2 MB (2220698 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:6137443aab3c8a8023fec907d41db1883f43e39660f36a360dda6da22a096dbe`
- Default Command: `["sh"]`
```dockerfile
# Mon, 07 Mar 2022 02:36:43 GMT
ADD file:d1e8829df1e36d915ea4eb28411b0be2d6f08b874ad25e3f2d2efe2a13ad8127 in /
# Mon, 07 Mar 2022 02:36:45 GMT
CMD ["sh"]
```
- Layers:
- `sha256:68dec1366233aa1c152c88886d39641f952606de34dfe9483019140d11b3df2a`
Last Modified: Mon, 07 Mar 2022 02:37:55 GMT
Size: 2.2 MB (2220698 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:glibc` - linux; ppc64le
```console
$ docker pull busybox@sha256:612af5dd099eef42b55cdf383b755cda5b941b76f9381265367ca320a5ac20b5
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **2.5 MB (2484093 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:a5bafd995fa7a6db6073649c32c32c92fbd617012bbdf6c4a53b69b4db02c24e`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 01:10:51 GMT
ADD file:7df57899a43661a1b2ee6c642e038edb2631d4f0c750182b1c72cb8eb883c2f7 in /
# Sat, 05 Mar 2022 01:10:54 GMT
CMD ["sh"]
```
- Layers:
- `sha256:c97b8caf206daa13c1aa849437ad58c3d82e672d8f883b17cc468bbd84f17184`
Last Modified: Sat, 05 Mar 2022 01:13:03 GMT
Size: 2.5 MB (2484093 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:glibc` - linux; s390x
```console
$ docker pull busybox@sha256:f636c0770abd9d7d4638d6b9472c399638c3ff2adefc05836350d543aeb02e04
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **2.0 MB (2006826 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:32f872121512404b6c1e67db827f35371f8922213daadba1ba288d47ec52018f`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 00:37:05 GMT
ADD file:c6f6ddea4cdeeb26befbbb6e05f2f0902c870cc5fc36d08c45c978dac7559114 in /
# Sat, 05 Mar 2022 00:37:05 GMT
CMD ["sh"]
```
- Layers:
- `sha256:d3f0b4793a9600b5d8515905c5534f82e03917d08c59932c30d027f9f8280d58`
Last Modified: Sat, 05 Mar 2022 00:38:36 GMT
Size: 2.0 MB (2006826 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
## `busybox:latest`
```console
$ docker pull busybox@sha256:34c3559bbdedefd67195e766e38cfbb0fcabff4241dbee3f390fd6e3310f5ebc
```
- Manifest MIME: `application/vnd.docker.distribution.manifest.list.v2+json`
- Platforms: 10
- linux; amd64
- linux; arm variant v5
- linux; arm variant v6
- linux; arm variant v7
- linux; arm64 variant v8
- linux; 386
- linux; mips64le
- linux; ppc64le
- linux; riscv64
- linux; s390x
### `busybox:latest` - linux; amd64
```console
$ docker pull busybox@sha256:1286c6d3c393023ef93c247724a6a2d665528144ffe07bacb741cc2b4edfefad
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **772.8 KB (772791 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:829374d342ae65a12f3a95911bc04a001894349f70783fda841b1a784008727d`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 02:00:21 GMT
ADD file:226e7f2ac42bdc9f3dca1617232c037937479b1247873a4070654f240b5242ea in /
# Sat, 05 Mar 2022 02:00:21 GMT
CMD ["sh"]
```
- Layers:
- `sha256:7e5209d2300fe99e0b7ae40573c1afd49bd14f16e018fa8c6bd5d86599742480`
Last Modified: Sat, 05 Mar 2022 02:01:34 GMT
Size: 772.8 KB (772791 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:latest` - linux; arm variant v5
```console
$ docker pull busybox@sha256:f9798a2e496f1bdaa2f2cadc397eb49b0840bfcbfd1dbbdf19b939741a085eb8
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **756.2 KB (756170 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:df2d4eec4a46cba4ee1c56e6e43bb7c93e4713386308a8b0f14543910a4defa5`
- Default Command: `["sh"]`
```dockerfile
# Fri, 04 Mar 2022 23:53:02 GMT
ADD file:8036ef9c434c873a6052d5ab2da56c16fdd0ef2034b8c99e2c8eda7d8710f4c1 in /
# Fri, 04 Mar 2022 23:53:02 GMT
CMD ["sh"]
```
- Layers:
- `sha256:7f140d6da4eebf50788f382b3811c926ee2eb09175a32b5d15275420945551eb`
Last Modified: Fri, 04 Mar 2022 23:55:53 GMT
Size: 756.2 KB (756170 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:latest` - linux; arm variant v6
```console
$ docker pull busybox@sha256:3d7cb72270112b7a57f8f558e0d5628f419de156f399ccd4a6461b55e1c4c7f4
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **952.7 KB (952700 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:08c1b65347071694f47ae73e32fdb620982c8f6f7f7d97a6fc527ec5259a6187`
- Default Command: `["sh"]`
```dockerfile
# Fri, 04 Mar 2022 22:49:29 GMT
ADD file:334504741d671d370cdadfe3ced64bd1871d35da1c796f2ec84333dabd0ff8b4 in /
# Fri, 04 Mar 2022 22:49:30 GMT
CMD ["sh"]
```
- Layers:
- `sha256:02b313a03502bc10146ad75ee7991dde100c3d35c83a77efb234132052f34cbb`
Last Modified: Fri, 04 Mar 2022 22:51:24 GMT
Size: 952.7 KB (952700 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:latest` - linux; arm variant v7
```console
$ docker pull busybox@sha256:1eddb2a84c2180a0c15d555b02f0ef1f27bc82578dbd8f9f5247988379e94f47
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **724.2 KB (724248 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:07fd82dc1137365d59499d019588996eaa353ac6d8f6d830cfda9823001a05be`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 00:29:36 GMT
ADD file:dc94ebfc585d690f27d4b2f863164e4e1da5d3725adaa069e600eb0929bd0d20 in /
# Sat, 05 Mar 2022 00:29:37 GMT
CMD ["sh"]
```
- Layers:
- `sha256:1f1134cef263f3583ee4da1eb66faed8f3b6e8c55ee03b8b85a7a86300794133`
Last Modified: Sat, 05 Mar 2022 00:33:53 GMT
Size: 724.2 KB (724248 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:latest` - linux; arm64 variant v8
```console
$ docker pull busybox@sha256:4ac01bbe388029df6ff7f9d827f6a56836e2a8c0d556838d3cffde6efd55354e
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **828.5 KB (828499 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:a8440bba1bc0c2275106287dd98a5522f820ef44553eba6d7e94403c5a1bdfab`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 02:50:50 GMT
ADD file:e4a27dc7b408995f7972c904c3e000613e01527a3eb5d8c08572dc141de2586a in /
# Sat, 05 Mar 2022 02:50:50 GMT
CMD ["sh"]
```
- Layers:
- `sha256:f4731b18983e25cd9e954a01644b84b249cb3339ab1ce8806811ef5e7fe776e2`
Last Modified: Sat, 05 Mar 2022 02:52:37 GMT
Size: 828.5 KB (828499 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:latest` - linux; 386
```console
$ docker pull busybox@sha256:31debb44d15d27a26196feb05a2898885a1129466cb6d4540eada4a840310a23
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **736.1 KB (736052 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:5c51ed1b0783f93ef813e167373302f35524925cf33cd079bce094d9e7841677`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 01:36:32 GMT
ADD file:a41d834f85906ca00c99080dbbf3cce6ba11e6fcd111ddd69b5d7ee309134bad in /
# Sat, 05 Mar 2022 01:36:32 GMT
CMD ["sh"]
```
- Layers:
- `sha256:2e2bf5271917532f9d6e38d7ce9795837bb8b9688d054f828cda62707471348d`
Last Modified: Sat, 05 Mar 2022 01:38:38 GMT
Size: 736.1 KB (736052 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:latest` - linux; mips64le
```console
$ docker pull busybox@sha256:87d17a0d4364a4c5fac2c4b8dde976b44bf5295fc9748596d3e207c532c519ed
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **960.5 KB (960452 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:8d39b35e36b69300e26dbd877a127f02102c47bf8d22a6050addb0d7f080980f`
- Default Command: `["sh"]`
```dockerfile
# Mon, 07 Mar 2022 02:36:30 GMT
ADD file:7fe1a29749c8e395e230388cb4ee7e79d22789d81ba78aeca1c850bee88a1ba5 in /
# Mon, 07 Mar 2022 02:36:32 GMT
CMD ["sh"]
```
- Layers:
- `sha256:5b3a797eb0d36a8f5eca8659a73918965a1f370835254a38f9eaf4dd7c8264e8`
Last Modified: Mon, 07 Mar 2022 02:37:38 GMT
Size: 960.5 KB (960452 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:latest` - linux; ppc64le
```console
$ docker pull busybox@sha256:612af5dd099eef42b55cdf383b755cda5b941b76f9381265367ca320a5ac20b5
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **2.5 MB (2484093 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:a5bafd995fa7a6db6073649c32c32c92fbd617012bbdf6c4a53b69b4db02c24e`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 01:10:51 GMT
ADD file:7df57899a43661a1b2ee6c642e038edb2631d4f0c750182b1c72cb8eb883c2f7 in /
# Sat, 05 Mar 2022 01:10:54 GMT
CMD ["sh"]
```
- Layers:
- `sha256:c97b8caf206daa13c1aa849437ad58c3d82e672d8f883b17cc468bbd84f17184`
Last Modified: Sat, 05 Mar 2022 01:13:03 GMT
Size: 2.5 MB (2484093 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:latest` - linux; riscv64
```console
$ docker pull busybox@sha256:ca24dc4ba0c09be9700469d7a1f54a09654419df8269bc0e98db74a9638dd61a
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **905.3 KB (905290 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:9ff90b641f3795e2a42432e95f2312360bbb4dfadaf0a3a53471d5fb4845284b`
- Default Command: `["sh"]`
```dockerfile
# Fri, 04 Mar 2022 23:13:31 GMT
ADD file:26259fce51a28095ea46b3c8d4477b76203d178db2d8ddeeae10f6beb73e4384 in /
# Fri, 04 Mar 2022 23:13:32 GMT
CMD ["sh"]
```
- Layers:
- `sha256:1cf0e11797f1cb7d833895c2f401bd798c80ce3b76b451107d4bc8d4c3640958`
Last Modified: Fri, 04 Mar 2022 23:34:35 GMT
Size: 905.3 KB (905290 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:latest` - linux; s390x
```console
$ docker pull busybox@sha256:f636c0770abd9d7d4638d6b9472c399638c3ff2adefc05836350d543aeb02e04
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **2.0 MB (2006826 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:32f872121512404b6c1e67db827f35371f8922213daadba1ba288d47ec52018f`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 00:37:05 GMT
ADD file:c6f6ddea4cdeeb26befbbb6e05f2f0902c870cc5fc36d08c45c978dac7559114 in /
# Sat, 05 Mar 2022 00:37:05 GMT
CMD ["sh"]
```
- Layers:
- `sha256:d3f0b4793a9600b5d8515905c5534f82e03917d08c59932c30d027f9f8280d58`
Last Modified: Sat, 05 Mar 2022 00:38:36 GMT
Size: 2.0 MB (2006826 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
## `busybox:musl`
```console
$ docker pull busybox@sha256:088b19c260d977637a5ab9501f8112cad5d558ca07b06f028e25dc7496d60fb2
```
- Manifest MIME: `application/vnd.docker.distribution.manifest.list.v2+json`
- Platforms: 7
- linux; amd64
- linux; arm variant v6
- linux; arm variant v7
- linux; arm64 variant v8
- linux; 386
- linux; ppc64le
- linux; s390x
### `busybox:musl` - linux; amd64
```console
$ docker pull busybox@sha256:e812258a4b20e62fdcec8751de8d55b0c007c637f4a0451b2decba14eb2c1c23
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **843.5 KB (843454 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:42772a0ef2faaa7a2c6d7abc4951aa5401e3f357fb3a574aade48dc440ce393f`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 02:00:35 GMT
ADD file:699b04b6c66cfc3996e846f1177b072d45d519335d5f7536feed94d2b302a6f9 in /
# Sat, 05 Mar 2022 02:00:35 GMT
CMD ["sh"]
```
- Layers:
- `sha256:ee55587a9d2d2d79d6b4a587369e1a0b10208bf8bde21486ebaaebfa71cdde69`
Last Modified: Sat, 05 Mar 2022 02:02:07 GMT
Size: 843.5 KB (843454 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:musl` - linux; arm variant v6
```console
$ docker pull busybox@sha256:3d7cb72270112b7a57f8f558e0d5628f419de156f399ccd4a6461b55e1c4c7f4
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **952.7 KB (952700 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:08c1b65347071694f47ae73e32fdb620982c8f6f7f7d97a6fc527ec5259a6187`
- Default Command: `["sh"]`
```dockerfile
# Fri, 04 Mar 2022 22:49:29 GMT
ADD file:334504741d671d370cdadfe3ced64bd1871d35da1c796f2ec84333dabd0ff8b4 in /
# Fri, 04 Mar 2022 22:49:30 GMT
CMD ["sh"]
```
- Layers:
- `sha256:02b313a03502bc10146ad75ee7991dde100c3d35c83a77efb234132052f34cbb`
Last Modified: Fri, 04 Mar 2022 22:51:24 GMT
Size: 952.7 KB (952700 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:musl` - linux; arm variant v7
```console
$ docker pull busybox@sha256:9175299f88c3c4d053910b3613928a5d29797438d086d934da5fb0f49281b0bb
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **834.7 KB (834663 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:862bfec3778cd3e9219aaf6ccb2b53dda3bb44cf85115145c7d9f951ed19ce97`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 00:30:11 GMT
ADD file:fa125406069c71cfe971a132d5d1e1f7c0fb21657ce5e0c0284b67b7c4031678 in /
# Sat, 05 Mar 2022 00:30:11 GMT
CMD ["sh"]
```
- Layers:
- `sha256:24871fca46b7088bb4bedddd9251317cd75024051a5e66a72de8461263b2dab5`
Last Modified: Sat, 05 Mar 2022 00:34:39 GMT
Size: 834.7 KB (834663 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:musl` - linux; arm64 variant v8
```console
$ docker pull busybox@sha256:9a8da2c658a35d333eeb79884ff0cc82d82eb5ac65d472f6e89e1f47692e01b1
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **882.0 KB (882048 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:562e905002d333606c8a54c49d85c3fc066245a82a02a86bc1fa7ba0a3f78868`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 02:51:04 GMT
ADD file:a2caadb212503797ce9c274832c8611a8fb6522a27f65f2a01e81b0717e72b82 in /
# Sat, 05 Mar 2022 02:51:04 GMT
CMD ["sh"]
```
- Layers:
- `sha256:0f37c4f784f272466d9590f8a9eb74b1a6824bc8c84f245296881fdccd95554e`
Last Modified: Sat, 05 Mar 2022 02:53:17 GMT
Size: 882.0 KB (882048 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:musl` - linux; 386
```console
$ docker pull busybox@sha256:99d19539528018b9c68a5a1ab819e74706de01b0c681b28284130628d460a3c8
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **849.8 KB (849768 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:728b77f01a51f30f92e8009ab1d99dffbc60ae02f985d7625ff37a5b3ca9b335`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 01:36:47 GMT
ADD file:7a9ba9104c5a0a9e470eb2cead22b355534544e80b6f5766510153dd20948ec6 in /
# Sat, 05 Mar 2022 01:36:47 GMT
CMD ["sh"]
```
- Layers:
- `sha256:82a3b9faf10ba452213e6a8291df0994f7c647a3be39b7f31597e437bb2c08e4`
Last Modified: Sat, 05 Mar 2022 01:39:19 GMT
Size: 849.8 KB (849768 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:musl` - linux; ppc64le
```console
$ docker pull busybox@sha256:276a7ed77f30d8b879b5a894666f2d870347a2c63b346d7d73c19cfa1c46d0b5
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **919.3 KB (919259 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:99ea3ca0263c1064a53a553c234c32d61bf5c59451ca5c6dfa7ad10df1cad774`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 01:11:11 GMT
ADD file:74bd92e80de94e0f43d29f0ba1c600e0b94b5071fd828324c101568457efe8fb in /
# Sat, 05 Mar 2022 01:11:15 GMT
CMD ["sh"]
```
- Layers:
- `sha256:288c2a68b0f032f671110b4f26c1db9f1f85be9a1aabdaaa1bf2492197911e45`
Last Modified: Sat, 05 Mar 2022 01:13:26 GMT
Size: 919.3 KB (919259 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:musl` - linux; s390x
```console
$ docker pull busybox@sha256:3ab6e0a75bfc1364978d974dc5aed1aab3eddc3bfe261f4d8c522c37ec9ac0bb
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **893.9 KB (893901 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:8ade86bf60d9286945b043f38e63af46d0c2c20feef349d1a6d7de5b88cdc705`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 00:37:13 GMT
ADD file:b6e29661a3e519869751a3fbaef209d4c49cb757415e7933ac045b4ff47b2b23 in /
# Sat, 05 Mar 2022 00:37:13 GMT
CMD ["sh"]
```
- Layers:
- `sha256:3f76de4d35e3121f21e5b502d7a2224006135023f00c2e549f7e728b7b398d0a`
Last Modified: Sat, 05 Mar 2022 00:38:48 GMT
Size: 893.9 KB (893901 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
## `busybox:stable`
```console
$ docker pull busybox@sha256:34c3559bbdedefd67195e766e38cfbb0fcabff4241dbee3f390fd6e3310f5ebc
```
- Manifest MIME: `application/vnd.docker.distribution.manifest.list.v2+json`
- Platforms: 10
- linux; amd64
- linux; arm variant v5
- linux; arm variant v6
- linux; arm variant v7
- linux; arm64 variant v8
- linux; 386
- linux; mips64le
- linux; ppc64le
- linux; riscv64
- linux; s390x
### `busybox:stable` - linux; amd64
```console
$ docker pull busybox@sha256:1286c6d3c393023ef93c247724a6a2d665528144ffe07bacb741cc2b4edfefad
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **772.8 KB (772791 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:829374d342ae65a12f3a95911bc04a001894349f70783fda841b1a784008727d`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 02:00:21 GMT
ADD file:226e7f2ac42bdc9f3dca1617232c037937479b1247873a4070654f240b5242ea in /
# Sat, 05 Mar 2022 02:00:21 GMT
CMD ["sh"]
```
- Layers:
- `sha256:7e5209d2300fe99e0b7ae40573c1afd49bd14f16e018fa8c6bd5d86599742480`
Last Modified: Sat, 05 Mar 2022 02:01:34 GMT
Size: 772.8 KB (772791 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:stable` - linux; arm variant v5
```console
$ docker pull busybox@sha256:f9798a2e496f1bdaa2f2cadc397eb49b0840bfcbfd1dbbdf19b939741a085eb8
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **756.2 KB (756170 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:df2d4eec4a46cba4ee1c56e6e43bb7c93e4713386308a8b0f14543910a4defa5`
- Default Command: `["sh"]`
```dockerfile
# Fri, 04 Mar 2022 23:53:02 GMT
ADD file:8036ef9c434c873a6052d5ab2da56c16fdd0ef2034b8c99e2c8eda7d8710f4c1 in /
# Fri, 04 Mar 2022 23:53:02 GMT
CMD ["sh"]
```
- Layers:
- `sha256:7f140d6da4eebf50788f382b3811c926ee2eb09175a32b5d15275420945551eb`
Last Modified: Fri, 04 Mar 2022 23:55:53 GMT
Size: 756.2 KB (756170 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:stable` - linux; arm variant v6
```console
$ docker pull busybox@sha256:3d7cb72270112b7a57f8f558e0d5628f419de156f399ccd4a6461b55e1c4c7f4
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **952.7 KB (952700 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:08c1b65347071694f47ae73e32fdb620982c8f6f7f7d97a6fc527ec5259a6187`
- Default Command: `["sh"]`
```dockerfile
# Fri, 04 Mar 2022 22:49:29 GMT
ADD file:334504741d671d370cdadfe3ced64bd1871d35da1c796f2ec84333dabd0ff8b4 in /
# Fri, 04 Mar 2022 22:49:30 GMT
CMD ["sh"]
```
- Layers:
- `sha256:02b313a03502bc10146ad75ee7991dde100c3d35c83a77efb234132052f34cbb`
Last Modified: Fri, 04 Mar 2022 22:51:24 GMT
Size: 952.7 KB (952700 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:stable` - linux; arm variant v7
```console
$ docker pull busybox@sha256:1eddb2a84c2180a0c15d555b02f0ef1f27bc82578dbd8f9f5247988379e94f47
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **724.2 KB (724248 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:07fd82dc1137365d59499d019588996eaa353ac6d8f6d830cfda9823001a05be`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 00:29:36 GMT
ADD file:dc94ebfc585d690f27d4b2f863164e4e1da5d3725adaa069e600eb0929bd0d20 in /
# Sat, 05 Mar 2022 00:29:37 GMT
CMD ["sh"]
```
- Layers:
- `sha256:1f1134cef263f3583ee4da1eb66faed8f3b6e8c55ee03b8b85a7a86300794133`
Last Modified: Sat, 05 Mar 2022 00:33:53 GMT
Size: 724.2 KB (724248 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:stable` - linux; arm64 variant v8
```console
$ docker pull busybox@sha256:4ac01bbe388029df6ff7f9d827f6a56836e2a8c0d556838d3cffde6efd55354e
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **828.5 KB (828499 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:a8440bba1bc0c2275106287dd98a5522f820ef44553eba6d7e94403c5a1bdfab`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 02:50:50 GMT
ADD file:e4a27dc7b408995f7972c904c3e000613e01527a3eb5d8c08572dc141de2586a in /
# Sat, 05 Mar 2022 02:50:50 GMT
CMD ["sh"]
```
- Layers:
- `sha256:f4731b18983e25cd9e954a01644b84b249cb3339ab1ce8806811ef5e7fe776e2`
Last Modified: Sat, 05 Mar 2022 02:52:37 GMT
Size: 828.5 KB (828499 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:stable` - linux; 386
```console
$ docker pull busybox@sha256:31debb44d15d27a26196feb05a2898885a1129466cb6d4540eada4a840310a23
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **736.1 KB (736052 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:5c51ed1b0783f93ef813e167373302f35524925cf33cd079bce094d9e7841677`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 01:36:32 GMT
ADD file:a41d834f85906ca00c99080dbbf3cce6ba11e6fcd111ddd69b5d7ee309134bad in /
# Sat, 05 Mar 2022 01:36:32 GMT
CMD ["sh"]
```
- Layers:
- `sha256:2e2bf5271917532f9d6e38d7ce9795837bb8b9688d054f828cda62707471348d`
Last Modified: Sat, 05 Mar 2022 01:38:38 GMT
Size: 736.1 KB (736052 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:stable` - linux; mips64le
```console
$ docker pull busybox@sha256:87d17a0d4364a4c5fac2c4b8dde976b44bf5295fc9748596d3e207c532c519ed
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **960.5 KB (960452 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:8d39b35e36b69300e26dbd877a127f02102c47bf8d22a6050addb0d7f080980f`
- Default Command: `["sh"]`
```dockerfile
# Mon, 07 Mar 2022 02:36:30 GMT
ADD file:7fe1a29749c8e395e230388cb4ee7e79d22789d81ba78aeca1c850bee88a1ba5 in /
# Mon, 07 Mar 2022 02:36:32 GMT
CMD ["sh"]
```
- Layers:
- `sha256:5b3a797eb0d36a8f5eca8659a73918965a1f370835254a38f9eaf4dd7c8264e8`
Last Modified: Mon, 07 Mar 2022 02:37:38 GMT
Size: 960.5 KB (960452 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:stable` - linux; ppc64le
```console
$ docker pull busybox@sha256:612af5dd099eef42b55cdf383b755cda5b941b76f9381265367ca320a5ac20b5
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **2.5 MB (2484093 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:a5bafd995fa7a6db6073649c32c32c92fbd617012bbdf6c4a53b69b4db02c24e`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 01:10:51 GMT
ADD file:7df57899a43661a1b2ee6c642e038edb2631d4f0c750182b1c72cb8eb883c2f7 in /
# Sat, 05 Mar 2022 01:10:54 GMT
CMD ["sh"]
```
- Layers:
- `sha256:c97b8caf206daa13c1aa849437ad58c3d82e672d8f883b17cc468bbd84f17184`
Last Modified: Sat, 05 Mar 2022 01:13:03 GMT
Size: 2.5 MB (2484093 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:stable` - linux; riscv64
```console
$ docker pull busybox@sha256:ca24dc4ba0c09be9700469d7a1f54a09654419df8269bc0e98db74a9638dd61a
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **905.3 KB (905290 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:9ff90b641f3795e2a42432e95f2312360bbb4dfadaf0a3a53471d5fb4845284b`
- Default Command: `["sh"]`
```dockerfile
# Fri, 04 Mar 2022 23:13:31 GMT
ADD file:26259fce51a28095ea46b3c8d4477b76203d178db2d8ddeeae10f6beb73e4384 in /
# Fri, 04 Mar 2022 23:13:32 GMT
CMD ["sh"]
```
- Layers:
- `sha256:1cf0e11797f1cb7d833895c2f401bd798c80ce3b76b451107d4bc8d4c3640958`
Last Modified: Fri, 04 Mar 2022 23:34:35 GMT
Size: 905.3 KB (905290 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:stable` - linux; s390x
```console
$ docker pull busybox@sha256:f636c0770abd9d7d4638d6b9472c399638c3ff2adefc05836350d543aeb02e04
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **2.0 MB (2006826 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:32f872121512404b6c1e67db827f35371f8922213daadba1ba288d47ec52018f`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 00:37:05 GMT
ADD file:c6f6ddea4cdeeb26befbbb6e05f2f0902c870cc5fc36d08c45c978dac7559114 in /
# Sat, 05 Mar 2022 00:37:05 GMT
CMD ["sh"]
```
- Layers:
- `sha256:d3f0b4793a9600b5d8515905c5534f82e03917d08c59932c30d027f9f8280d58`
Last Modified: Sat, 05 Mar 2022 00:38:36 GMT
Size: 2.0 MB (2006826 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
## `busybox:stable-glibc`
```console
$ docker pull busybox@sha256:eb2ce6449180cf13a4c9090136f590a9e56cb2f971106378eb72ca21e36cd879
```
- Manifest MIME: `application/vnd.docker.distribution.manifest.list.v2+json`
- Platforms: 8
- linux; amd64
- linux; arm variant v5
- linux; arm variant v7
- linux; arm64 variant v8
- linux; 386
- linux; mips64le
- linux; ppc64le
- linux; s390x
### `busybox:stable-glibc` - linux; amd64
```console
$ docker pull busybox@sha256:d224398aa9019dad8efdd919f8ab71e4b2412cac344052b7f775fd9b34342d8f
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **2.6 MB (2566117 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:1e45f134f7e91ad3850db0725ac82293643d2bbebbc25c3406071ba4d89ca3a4`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 02:00:29 GMT
ADD file:05ccd81e2c33b446d16f58ad7f1ff8bd2e80bbcd788a564e1922b678079a122a in /
# Sat, 05 Mar 2022 02:00:29 GMT
CMD ["sh"]
```
- Layers:
- `sha256:4716b0e5bf987ed4efeced460c6c11786c9ff99dbacafbcb6a5a82f7d8ebd83a`
Last Modified: Sat, 05 Mar 2022 02:01:50 GMT
Size: 2.6 MB (2566117 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:stable-glibc` - linux; arm variant v5
```console
$ docker pull busybox@sha256:a92f8ad0773a537b695a10961110ad43ddf57523ab8d5630027cb32d82dc10a0
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **1.9 MB (1930778 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:9ef4eb1817df9cee9673079422d59657c2d68a18523bcdbe2923c76616d6d674`
- Default Command: `["sh"]`
```dockerfile
# Fri, 04 Mar 2022 23:53:17 GMT
ADD file:1f5a05d8f0ca917f59d91add5c1587857acea4690daf45ddd40785e5b3a98622 in /
# Fri, 04 Mar 2022 23:53:17 GMT
CMD ["sh"]
```
- Layers:
- `sha256:e44453e16a4248ff1bdf0b20ae46d48945598933af6264788736342c84f0c264`
Last Modified: Fri, 04 Mar 2022 23:56:16 GMT
Size: 1.9 MB (1930778 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:stable-glibc` - linux; arm variant v7
```console
$ docker pull busybox@sha256:af04becc8b1710ae52efbd00851b3441d523e15a6799a6fc0d66526307c97b90
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **1.7 MB (1678697 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:c2aaece4707f9e7ba8729f653e924062c95863b33d8e78c656efa41f7fb245ae`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 00:29:53 GMT
ADD file:bbaae957f6e332a5ab0fa52a407edc35cef05e20694503c02202f09cbecfaeb7 in /
# Sat, 05 Mar 2022 00:29:54 GMT
CMD ["sh"]
```
- Layers:
- `sha256:f47e3aecd4ecc498dfe2a0b8af03c5908f51a12bf9c6c7882da54e045592af1d`
Last Modified: Sat, 05 Mar 2022 00:34:16 GMT
Size: 1.7 MB (1678697 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:stable-glibc` - linux; arm64 variant v8
```console
$ docker pull busybox@sha256:138caefe5d4587a2e399e10584ec48b6ac6e85ca4648a2ae79cf2596522db96d
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **2.0 MB (1996167 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:5aa233f38809f493559589f4e22b2088b1bfb9360e7d8d6cdeeafc5e95b915c6`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 02:50:57 GMT
ADD file:258a8844c7008f22b0dc0a79c33d7a7268a5d0c878a1c712687901d74a14ac0c in /
# Sat, 05 Mar 2022 02:50:57 GMT
CMD ["sh"]
```
- Layers:
- `sha256:83f1fddca34bd4a67d2051806f9186712c8111c92c1818bdb6d6afec4fb779b1`
Last Modified: Sat, 05 Mar 2022 02:52:58 GMT
Size: 2.0 MB (1996167 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:stable-glibc` - linux; 386
```console
$ docker pull busybox@sha256:97256981fabef7178530a1a7229a997f766101c38049d3a2affef354daac4fe1
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **2.2 MB (2233781 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:55a2e0dcbee048e776108c041c437b3b585e796b4d534a84dfbf35de525b11cf`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 01:36:40 GMT
ADD file:b869021110509d7db63766d9b56ed251db50b7d794dc5d22e895db264fe96fbf in /
# Sat, 05 Mar 2022 01:36:40 GMT
CMD ["sh"]
```
- Layers:
- `sha256:46b35c816ab3818c2c8250f5594acf55d8960a5dd80aa91dc16449066295259f`
Last Modified: Sat, 05 Mar 2022 01:38:58 GMT
Size: 2.2 MB (2233781 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:stable-glibc` - linux; mips64le
```console
$ docker pull busybox@sha256:4cbd8205c204cb78e9f4488b75df12873f209afa8ea91e9ef0f0801b69f170ac
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **2.2 MB (2220698 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:6137443aab3c8a8023fec907d41db1883f43e39660f36a360dda6da22a096dbe`
- Default Command: `["sh"]`
```dockerfile
# Mon, 07 Mar 2022 02:36:43 GMT
ADD file:d1e8829df1e36d915ea4eb28411b0be2d6f08b874ad25e3f2d2efe2a13ad8127 in /
# Mon, 07 Mar 2022 02:36:45 GMT
CMD ["sh"]
```
- Layers:
- `sha256:68dec1366233aa1c152c88886d39641f952606de34dfe9483019140d11b3df2a`
Last Modified: Mon, 07 Mar 2022 02:37:55 GMT
Size: 2.2 MB (2220698 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:stable-glibc` - linux; ppc64le
```console
$ docker pull busybox@sha256:612af5dd099eef42b55cdf383b755cda5b941b76f9381265367ca320a5ac20b5
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **2.5 MB (2484093 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:a5bafd995fa7a6db6073649c32c32c92fbd617012bbdf6c4a53b69b4db02c24e`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 01:10:51 GMT
ADD file:7df57899a43661a1b2ee6c642e038edb2631d4f0c750182b1c72cb8eb883c2f7 in /
# Sat, 05 Mar 2022 01:10:54 GMT
CMD ["sh"]
```
- Layers:
- `sha256:c97b8caf206daa13c1aa849437ad58c3d82e672d8f883b17cc468bbd84f17184`
Last Modified: Sat, 05 Mar 2022 01:13:03 GMT
Size: 2.5 MB (2484093 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:stable-glibc` - linux; s390x
```console
$ docker pull busybox@sha256:f636c0770abd9d7d4638d6b9472c399638c3ff2adefc05836350d543aeb02e04
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **2.0 MB (2006826 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:32f872121512404b6c1e67db827f35371f8922213daadba1ba288d47ec52018f`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 00:37:05 GMT
ADD file:c6f6ddea4cdeeb26befbbb6e05f2f0902c870cc5fc36d08c45c978dac7559114 in /
# Sat, 05 Mar 2022 00:37:05 GMT
CMD ["sh"]
```
- Layers:
- `sha256:d3f0b4793a9600b5d8515905c5534f82e03917d08c59932c30d027f9f8280d58`
Last Modified: Sat, 05 Mar 2022 00:38:36 GMT
Size: 2.0 MB (2006826 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
## `busybox:stable-musl`
```console
$ docker pull busybox@sha256:088b19c260d977637a5ab9501f8112cad5d558ca07b06f028e25dc7496d60fb2
```
- Manifest MIME: `application/vnd.docker.distribution.manifest.list.v2+json`
- Platforms: 7
- linux; amd64
- linux; arm variant v6
- linux; arm variant v7
- linux; arm64 variant v8
- linux; 386
- linux; ppc64le
- linux; s390x
### `busybox:stable-musl` - linux; amd64
```console
$ docker pull busybox@sha256:e812258a4b20e62fdcec8751de8d55b0c007c637f4a0451b2decba14eb2c1c23
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **843.5 KB (843454 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:42772a0ef2faaa7a2c6d7abc4951aa5401e3f357fb3a574aade48dc440ce393f`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 02:00:35 GMT
ADD file:699b04b6c66cfc3996e846f1177b072d45d519335d5f7536feed94d2b302a6f9 in /
# Sat, 05 Mar 2022 02:00:35 GMT
CMD ["sh"]
```
- Layers:
- `sha256:ee55587a9d2d2d79d6b4a587369e1a0b10208bf8bde21486ebaaebfa71cdde69`
Last Modified: Sat, 05 Mar 2022 02:02:07 GMT
Size: 843.5 KB (843454 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:stable-musl` - linux; arm variant v6
```console
$ docker pull busybox@sha256:3d7cb72270112b7a57f8f558e0d5628f419de156f399ccd4a6461b55e1c4c7f4
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **952.7 KB (952700 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:08c1b65347071694f47ae73e32fdb620982c8f6f7f7d97a6fc527ec5259a6187`
- Default Command: `["sh"]`
```dockerfile
# Fri, 04 Mar 2022 22:49:29 GMT
ADD file:334504741d671d370cdadfe3ced64bd1871d35da1c796f2ec84333dabd0ff8b4 in /
# Fri, 04 Mar 2022 22:49:30 GMT
CMD ["sh"]
```
- Layers:
- `sha256:02b313a03502bc10146ad75ee7991dde100c3d35c83a77efb234132052f34cbb`
Last Modified: Fri, 04 Mar 2022 22:51:24 GMT
Size: 952.7 KB (952700 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:stable-musl` - linux; arm variant v7
```console
$ docker pull busybox@sha256:9175299f88c3c4d053910b3613928a5d29797438d086d934da5fb0f49281b0bb
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **834.7 KB (834663 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:862bfec3778cd3e9219aaf6ccb2b53dda3bb44cf85115145c7d9f951ed19ce97`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 00:30:11 GMT
ADD file:fa125406069c71cfe971a132d5d1e1f7c0fb21657ce5e0c0284b67b7c4031678 in /
# Sat, 05 Mar 2022 00:30:11 GMT
CMD ["sh"]
```
- Layers:
- `sha256:24871fca46b7088bb4bedddd9251317cd75024051a5e66a72de8461263b2dab5`
Last Modified: Sat, 05 Mar 2022 00:34:39 GMT
Size: 834.7 KB (834663 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:stable-musl` - linux; arm64 variant v8
```console
$ docker pull busybox@sha256:9a8da2c658a35d333eeb79884ff0cc82d82eb5ac65d472f6e89e1f47692e01b1
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **882.0 KB (882048 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:562e905002d333606c8a54c49d85c3fc066245a82a02a86bc1fa7ba0a3f78868`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 02:51:04 GMT
ADD file:a2caadb212503797ce9c274832c8611a8fb6522a27f65f2a01e81b0717e72b82 in /
# Sat, 05 Mar 2022 02:51:04 GMT
CMD ["sh"]
```
- Layers:
- `sha256:0f37c4f784f272466d9590f8a9eb74b1a6824bc8c84f245296881fdccd95554e`
Last Modified: Sat, 05 Mar 2022 02:53:17 GMT
Size: 882.0 KB (882048 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:stable-musl` - linux; 386
```console
$ docker pull busybox@sha256:99d19539528018b9c68a5a1ab819e74706de01b0c681b28284130628d460a3c8
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **849.8 KB (849768 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:728b77f01a51f30f92e8009ab1d99dffbc60ae02f985d7625ff37a5b3ca9b335`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 01:36:47 GMT
ADD file:7a9ba9104c5a0a9e470eb2cead22b355534544e80b6f5766510153dd20948ec6 in /
# Sat, 05 Mar 2022 01:36:47 GMT
CMD ["sh"]
```
- Layers:
- `sha256:82a3b9faf10ba452213e6a8291df0994f7c647a3be39b7f31597e437bb2c08e4`
Last Modified: Sat, 05 Mar 2022 01:39:19 GMT
Size: 849.8 KB (849768 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:stable-musl` - linux; ppc64le
```console
$ docker pull busybox@sha256:276a7ed77f30d8b879b5a894666f2d870347a2c63b346d7d73c19cfa1c46d0b5
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **919.3 KB (919259 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:99ea3ca0263c1064a53a553c234c32d61bf5c59451ca5c6dfa7ad10df1cad774`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 01:11:11 GMT
ADD file:74bd92e80de94e0f43d29f0ba1c600e0b94b5071fd828324c101568457efe8fb in /
# Sat, 05 Mar 2022 01:11:15 GMT
CMD ["sh"]
```
- Layers:
- `sha256:288c2a68b0f032f671110b4f26c1db9f1f85be9a1aabdaaa1bf2492197911e45`
Last Modified: Sat, 05 Mar 2022 01:13:26 GMT
Size: 919.3 KB (919259 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:stable-musl` - linux; s390x
```console
$ docker pull busybox@sha256:3ab6e0a75bfc1364978d974dc5aed1aab3eddc3bfe261f4d8c522c37ec9ac0bb
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **893.9 KB (893901 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:8ade86bf60d9286945b043f38e63af46d0c2c20feef349d1a6d7de5b88cdc705`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 00:37:13 GMT
ADD file:b6e29661a3e519869751a3fbaef209d4c49cb757415e7933ac045b4ff47b2b23 in /
# Sat, 05 Mar 2022 00:37:13 GMT
CMD ["sh"]
```
- Layers:
- `sha256:3f76de4d35e3121f21e5b502d7a2224006135023f00c2e549f7e728b7b398d0a`
Last Modified: Sat, 05 Mar 2022 00:38:48 GMT
Size: 893.9 KB (893901 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
## `busybox:stable-uclibc`
```console
$ docker pull busybox@sha256:97e0658460b7005232d11df2a4ee96607492e7629b9894b3d203a229677a02f5
```
- Manifest MIME: `application/vnd.docker.distribution.manifest.list.v2+json`
- Platforms: 7
- linux; amd64
- linux; arm variant v5
- linux; arm variant v7
- linux; arm64 variant v8
- linux; 386
- linux; mips64le
- linux; riscv64
### `busybox:stable-uclibc` - linux; amd64
```console
$ docker pull busybox@sha256:1286c6d3c393023ef93c247724a6a2d665528144ffe07bacb741cc2b4edfefad
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **772.8 KB (772791 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:829374d342ae65a12f3a95911bc04a001894349f70783fda841b1a784008727d`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 02:00:21 GMT
ADD file:226e7f2ac42bdc9f3dca1617232c037937479b1247873a4070654f240b5242ea in /
# Sat, 05 Mar 2022 02:00:21 GMT
CMD ["sh"]
```
- Layers:
- `sha256:7e5209d2300fe99e0b7ae40573c1afd49bd14f16e018fa8c6bd5d86599742480`
Last Modified: Sat, 05 Mar 2022 02:01:34 GMT
Size: 772.8 KB (772791 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:stable-uclibc` - linux; arm variant v5
```console
$ docker pull busybox@sha256:f9798a2e496f1bdaa2f2cadc397eb49b0840bfcbfd1dbbdf19b939741a085eb8
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **756.2 KB (756170 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:df2d4eec4a46cba4ee1c56e6e43bb7c93e4713386308a8b0f14543910a4defa5`
- Default Command: `["sh"]`
```dockerfile
# Fri, 04 Mar 2022 23:53:02 GMT
ADD file:8036ef9c434c873a6052d5ab2da56c16fdd0ef2034b8c99e2c8eda7d8710f4c1 in /
# Fri, 04 Mar 2022 23:53:02 GMT
CMD ["sh"]
```
- Layers:
- `sha256:7f140d6da4eebf50788f382b3811c926ee2eb09175a32b5d15275420945551eb`
Last Modified: Fri, 04 Mar 2022 23:55:53 GMT
Size: 756.2 KB (756170 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:stable-uclibc` - linux; arm variant v7
```console
$ docker pull busybox@sha256:1eddb2a84c2180a0c15d555b02f0ef1f27bc82578dbd8f9f5247988379e94f47
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **724.2 KB (724248 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:07fd82dc1137365d59499d019588996eaa353ac6d8f6d830cfda9823001a05be`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 00:29:36 GMT
ADD file:dc94ebfc585d690f27d4b2f863164e4e1da5d3725adaa069e600eb0929bd0d20 in /
# Sat, 05 Mar 2022 00:29:37 GMT
CMD ["sh"]
```
- Layers:
- `sha256:1f1134cef263f3583ee4da1eb66faed8f3b6e8c55ee03b8b85a7a86300794133`
Last Modified: Sat, 05 Mar 2022 00:33:53 GMT
Size: 724.2 KB (724248 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:stable-uclibc` - linux; arm64 variant v8
```console
$ docker pull busybox@sha256:4ac01bbe388029df6ff7f9d827f6a56836e2a8c0d556838d3cffde6efd55354e
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **828.5 KB (828499 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:a8440bba1bc0c2275106287dd98a5522f820ef44553eba6d7e94403c5a1bdfab`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 02:50:50 GMT
ADD file:e4a27dc7b408995f7972c904c3e000613e01527a3eb5d8c08572dc141de2586a in /
# Sat, 05 Mar 2022 02:50:50 GMT
CMD ["sh"]
```
- Layers:
- `sha256:f4731b18983e25cd9e954a01644b84b249cb3339ab1ce8806811ef5e7fe776e2`
Last Modified: Sat, 05 Mar 2022 02:52:37 GMT
Size: 828.5 KB (828499 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:stable-uclibc` - linux; 386
```console
$ docker pull busybox@sha256:31debb44d15d27a26196feb05a2898885a1129466cb6d4540eada4a840310a23
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **736.1 KB (736052 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:5c51ed1b0783f93ef813e167373302f35524925cf33cd079bce094d9e7841677`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 01:36:32 GMT
ADD file:a41d834f85906ca00c99080dbbf3cce6ba11e6fcd111ddd69b5d7ee309134bad in /
# Sat, 05 Mar 2022 01:36:32 GMT
CMD ["sh"]
```
- Layers:
- `sha256:2e2bf5271917532f9d6e38d7ce9795837bb8b9688d054f828cda62707471348d`
Last Modified: Sat, 05 Mar 2022 01:38:38 GMT
Size: 736.1 KB (736052 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:stable-uclibc` - linux; mips64le
```console
$ docker pull busybox@sha256:87d17a0d4364a4c5fac2c4b8dde976b44bf5295fc9748596d3e207c532c519ed
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **960.5 KB (960452 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:8d39b35e36b69300e26dbd877a127f02102c47bf8d22a6050addb0d7f080980f`
- Default Command: `["sh"]`
```dockerfile
# Mon, 07 Mar 2022 02:36:30 GMT
ADD file:7fe1a29749c8e395e230388cb4ee7e79d22789d81ba78aeca1c850bee88a1ba5 in /
# Mon, 07 Mar 2022 02:36:32 GMT
CMD ["sh"]
```
- Layers:
- `sha256:5b3a797eb0d36a8f5eca8659a73918965a1f370835254a38f9eaf4dd7c8264e8`
Last Modified: Mon, 07 Mar 2022 02:37:38 GMT
Size: 960.5 KB (960452 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:stable-uclibc` - linux; riscv64
```console
$ docker pull busybox@sha256:ca24dc4ba0c09be9700469d7a1f54a09654419df8269bc0e98db74a9638dd61a
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **905.3 KB (905290 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:9ff90b641f3795e2a42432e95f2312360bbb4dfadaf0a3a53471d5fb4845284b`
- Default Command: `["sh"]`
```dockerfile
# Fri, 04 Mar 2022 23:13:31 GMT
ADD file:26259fce51a28095ea46b3c8d4477b76203d178db2d8ddeeae10f6beb73e4384 in /
# Fri, 04 Mar 2022 23:13:32 GMT
CMD ["sh"]
```
- Layers:
- `sha256:1cf0e11797f1cb7d833895c2f401bd798c80ce3b76b451107d4bc8d4c3640958`
Last Modified: Fri, 04 Mar 2022 23:34:35 GMT
Size: 905.3 KB (905290 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
## `busybox:uclibc`
```console
$ docker pull busybox@sha256:97e0658460b7005232d11df2a4ee96607492e7629b9894b3d203a229677a02f5
```
- Manifest MIME: `application/vnd.docker.distribution.manifest.list.v2+json`
- Platforms: 7
- linux; amd64
- linux; arm variant v5
- linux; arm variant v7
- linux; arm64 variant v8
- linux; 386
- linux; mips64le
- linux; riscv64
### `busybox:uclibc` - linux; amd64
```console
$ docker pull busybox@sha256:1286c6d3c393023ef93c247724a6a2d665528144ffe07bacb741cc2b4edfefad
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **772.8 KB (772791 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:829374d342ae65a12f3a95911bc04a001894349f70783fda841b1a784008727d`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 02:00:21 GMT
ADD file:226e7f2ac42bdc9f3dca1617232c037937479b1247873a4070654f240b5242ea in /
# Sat, 05 Mar 2022 02:00:21 GMT
CMD ["sh"]
```
- Layers:
- `sha256:7e5209d2300fe99e0b7ae40573c1afd49bd14f16e018fa8c6bd5d86599742480`
Last Modified: Sat, 05 Mar 2022 02:01:34 GMT
Size: 772.8 KB (772791 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:uclibc` - linux; arm variant v5
```console
$ docker pull busybox@sha256:f9798a2e496f1bdaa2f2cadc397eb49b0840bfcbfd1dbbdf19b939741a085eb8
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **756.2 KB (756170 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:df2d4eec4a46cba4ee1c56e6e43bb7c93e4713386308a8b0f14543910a4defa5`
- Default Command: `["sh"]`
```dockerfile
# Fri, 04 Mar 2022 23:53:02 GMT
ADD file:8036ef9c434c873a6052d5ab2da56c16fdd0ef2034b8c99e2c8eda7d8710f4c1 in /
# Fri, 04 Mar 2022 23:53:02 GMT
CMD ["sh"]
```
- Layers:
- `sha256:7f140d6da4eebf50788f382b3811c926ee2eb09175a32b5d15275420945551eb`
Last Modified: Fri, 04 Mar 2022 23:55:53 GMT
Size: 756.2 KB (756170 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:uclibc` - linux; arm variant v7
```console
$ docker pull busybox@sha256:1eddb2a84c2180a0c15d555b02f0ef1f27bc82578dbd8f9f5247988379e94f47
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **724.2 KB (724248 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:07fd82dc1137365d59499d019588996eaa353ac6d8f6d830cfda9823001a05be`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 00:29:36 GMT
ADD file:dc94ebfc585d690f27d4b2f863164e4e1da5d3725adaa069e600eb0929bd0d20 in /
# Sat, 05 Mar 2022 00:29:37 GMT
CMD ["sh"]
```
- Layers:
- `sha256:1f1134cef263f3583ee4da1eb66faed8f3b6e8c55ee03b8b85a7a86300794133`
Last Modified: Sat, 05 Mar 2022 00:33:53 GMT
Size: 724.2 KB (724248 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:uclibc` - linux; arm64 variant v8
```console
$ docker pull busybox@sha256:4ac01bbe388029df6ff7f9d827f6a56836e2a8c0d556838d3cffde6efd55354e
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **828.5 KB (828499 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:a8440bba1bc0c2275106287dd98a5522f820ef44553eba6d7e94403c5a1bdfab`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 02:50:50 GMT
ADD file:e4a27dc7b408995f7972c904c3e000613e01527a3eb5d8c08572dc141de2586a in /
# Sat, 05 Mar 2022 02:50:50 GMT
CMD ["sh"]
```
- Layers:
- `sha256:f4731b18983e25cd9e954a01644b84b249cb3339ab1ce8806811ef5e7fe776e2`
Last Modified: Sat, 05 Mar 2022 02:52:37 GMT
Size: 828.5 KB (828499 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:uclibc` - linux; 386
```console
$ docker pull busybox@sha256:31debb44d15d27a26196feb05a2898885a1129466cb6d4540eada4a840310a23
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **736.1 KB (736052 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:5c51ed1b0783f93ef813e167373302f35524925cf33cd079bce094d9e7841677`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 01:36:32 GMT
ADD file:a41d834f85906ca00c99080dbbf3cce6ba11e6fcd111ddd69b5d7ee309134bad in /
# Sat, 05 Mar 2022 01:36:32 GMT
CMD ["sh"]
```
- Layers:
- `sha256:2e2bf5271917532f9d6e38d7ce9795837bb8b9688d054f828cda62707471348d`
Last Modified: Sat, 05 Mar 2022 01:38:38 GMT
Size: 736.1 KB (736052 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:uclibc` - linux; mips64le
```console
$ docker pull busybox@sha256:87d17a0d4364a4c5fac2c4b8dde976b44bf5295fc9748596d3e207c532c519ed
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **960.5 KB (960452 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:8d39b35e36b69300e26dbd877a127f02102c47bf8d22a6050addb0d7f080980f`
- Default Command: `["sh"]`
```dockerfile
# Mon, 07 Mar 2022 02:36:30 GMT
ADD file:7fe1a29749c8e395e230388cb4ee7e79d22789d81ba78aeca1c850bee88a1ba5 in /
# Mon, 07 Mar 2022 02:36:32 GMT
CMD ["sh"]
```
- Layers:
- `sha256:5b3a797eb0d36a8f5eca8659a73918965a1f370835254a38f9eaf4dd7c8264e8`
Last Modified: Mon, 07 Mar 2022 02:37:38 GMT
Size: 960.5 KB (960452 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:uclibc` - linux; riscv64
```console
$ docker pull busybox@sha256:ca24dc4ba0c09be9700469d7a1f54a09654419df8269bc0e98db74a9638dd61a
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **905.3 KB (905290 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:9ff90b641f3795e2a42432e95f2312360bbb4dfadaf0a3a53471d5fb4845284b`
- Default Command: `["sh"]`
```dockerfile
# Fri, 04 Mar 2022 23:13:31 GMT
ADD file:26259fce51a28095ea46b3c8d4477b76203d178db2d8ddeeae10f6beb73e4384 in /
# Fri, 04 Mar 2022 23:13:32 GMT
CMD ["sh"]
```
- Layers:
- `sha256:1cf0e11797f1cb7d833895c2f401bd798c80ce3b76b451107d4bc8d4c3640958`
Last Modified: Fri, 04 Mar 2022 23:34:35 GMT
Size: 905.3 KB (905290 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
## `busybox:unstable`
```console
$ docker pull busybox@sha256:20246233b52de844fa516f8c51234f1441e55e71ecdd1a1d91ebb252e1fd4603
```
- Manifest MIME: `application/vnd.docker.distribution.manifest.list.v2+json`
- Platforms: 10
- linux; amd64
- linux; arm variant v5
- linux; arm variant v6
- linux; arm variant v7
- linux; arm64 variant v8
- linux; 386
- linux; mips64le
- linux; ppc64le
- linux; riscv64
- linux; s390x
### `busybox:unstable` - linux; amd64
```console
$ docker pull busybox@sha256:2190cbc0553b42854c65a93a9e1a1a4388ff1ab74e7f300b94b59cd7c063efb2
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **773.2 KB (773214 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:d3dd17c32e61e23cbe6d697569614da150de4d7f0da2b9fa4b57f183305e91c5`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 02:00:44 GMT
ADD file:7c70702dcfa3bc555859068bc7804825282ea61e8076294ff65e82d27aa617e2 in /
# Sat, 05 Mar 2022 02:00:44 GMT
CMD ["sh"]
```
- Layers:
- `sha256:837abc85bf61828c3ada2d02ff8eb7e5360e22cabfd8d3bcc23cbfdd6e5c48a1`
Last Modified: Sat, 05 Mar 2022 02:02:35 GMT
Size: 773.2 KB (773214 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:unstable` - linux; arm variant v5
```console
$ docker pull busybox@sha256:c3939735cb4e6282b45ce907abe02013f825306b6b685574d98a4acc0fabd27c
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **756.5 KB (756533 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:12e9332d857d74bcbe914256dc041e3236282a5e422c84efc27d832eaee4baa7`
- Default Command: `["sh"]`
```dockerfile
# Fri, 04 Mar 2022 23:53:43 GMT
ADD file:52e2acc96ba740fbb994fb22ba9e0c73abc43d6578a39fa5ed0f9055e6698aec in /
# Fri, 04 Mar 2022 23:53:43 GMT
CMD ["sh"]
```
- Layers:
- `sha256:eeefea69efa569ad496e6afbebe5532304eee449c929ffe088cc3a48bc68154d`
Last Modified: Fri, 04 Mar 2022 23:56:57 GMT
Size: 756.5 KB (756533 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:unstable` - linux; arm variant v6
```console
$ docker pull busybox@sha256:4b1769d9e3e50fc0064a81291b9a045a22ba1258c98060a054024e0b94074c03
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **954.2 KB (954229 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:6b984a9bb73cf71496be4e3539ad4f2405b3ad6a68b431a0d6e3a0285631efc9`
- Default Command: `["sh"]`
```dockerfile
# Fri, 04 Mar 2022 22:49:54 GMT
ADD file:5ee77db4ceb26976922746b5d92a93f5edf7ce64e168334ab264f622be92b316 in /
# Fri, 04 Mar 2022 22:49:54 GMT
CMD ["sh"]
```
- Layers:
- `sha256:a7f886d0cf7c7de65c0c33fa89b77e7681ea05f56e436e235d85279e400ab621`
Last Modified: Fri, 04 Mar 2022 22:52:05 GMT
Size: 954.2 KB (954229 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:unstable` - linux; arm variant v7
```console
$ docker pull busybox@sha256:e373790c0ffe0bf8f9974f1635b0e4b9242887b11b52ddb2ab8b0016aa6b1224
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **725.1 KB (725090 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:b5e9176ff97aaa9224afae3d663fc32674743237e49e9d4fad119fb0989785b0`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 00:30:38 GMT
ADD file:9e2f429fa6260f11e671814c9a3fee70a7f73d61ecd35296ac4dd9ee8c11d447 in /
# Sat, 05 Mar 2022 00:30:38 GMT
CMD ["sh"]
```
- Layers:
- `sha256:c5ee7714d71e62eec0c700283983cdfd076eef26a241ed0bf7497d83dbe1dc77`
Last Modified: Sat, 05 Mar 2022 00:35:20 GMT
Size: 725.1 KB (725090 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:unstable` - linux; arm64 variant v8
```console
$ docker pull busybox@sha256:1b4394a57cc23b20364516ec0557a892c9eb281d92fe87412db80800d2675645
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **829.3 KB (829339 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:4575719df580071e2104e56cab1b5d8b9f7bacfa160a87f15c63b020b38c4cda`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 02:51:16 GMT
ADD file:46a9fbc68edb3b9c51d952a28551a8ce5ca7e36ec8bbbf1b62ae11c9e6fbd994 in /
# Sat, 05 Mar 2022 02:51:16 GMT
CMD ["sh"]
```
- Layers:
- `sha256:c65693ced10096a446b59d5125a0b1fc4b24c7d72dfcf7abdf20c2e80e63a21a`
Last Modified: Sat, 05 Mar 2022 02:53:49 GMT
Size: 829.3 KB (829339 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:unstable` - linux; 386
```console
$ docker pull busybox@sha256:36c1dbc15886a25b2515133e6626b4d1c2df4423adff2c760643b50e19fb519b
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **736.5 KB (736481 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:2a95c75abfdb7665dfce29b6894ece1e4b7da24412175e9e56125149497f303b`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 01:37:01 GMT
ADD file:c6389c568cd27afe20167b7e7ad274df772345df80a67c1464708ca20e079b7d in /
# Sat, 05 Mar 2022 01:37:01 GMT
CMD ["sh"]
```
- Layers:
- `sha256:e15fc50ae394f9ef82fb7c0ecd09970b888cafacb41cf957fe9f89f2dd2c3fd8`
Last Modified: Sat, 05 Mar 2022 01:39:55 GMT
Size: 736.5 KB (736481 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:unstable` - linux; mips64le
```console
$ docker pull busybox@sha256:356a37d941e107a7c754393efc889ca84fdbaad6ec5198a2568ec6197517f469
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **961.9 KB (961851 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:6ee8d904106ba464888ca386ac1e9c9426b70ddfa18eb30f32f7a84a85bd69d6`
- Default Command: `["sh"]`
```dockerfile
# Mon, 07 Mar 2022 02:36:58 GMT
ADD file:09f0d7194e6bb71bd44fe3a0195df69adb2057999339c4f5e9d6140a45ba0660 in /
# Mon, 07 Mar 2022 02:36:59 GMT
CMD ["sh"]
```
- Layers:
- `sha256:13d04bfbe329afadd5dca56fb821be9200299bdbe919dcab966c8f561e7640fb`
Last Modified: Mon, 07 Mar 2022 02:38:23 GMT
Size: 961.9 KB (961851 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:unstable` - linux; ppc64le
```console
$ docker pull busybox@sha256:ecd327922b80f39d5eebdd70a58adfd5397d5a2330cb1e15ba47b08992c8aee0
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **2.5 MB (2484402 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:0d7936207fc04ecd77970d5d8ede2a3b4a649b205b720418815587a31143c843`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 01:11:33 GMT
ADD file:a25b3d1c49e964a645ccd79b56261d1f1385c24e904dc39cc5ecfa7c08dba7a1 in /
# Sat, 05 Mar 2022 01:11:36 GMT
CMD ["sh"]
```
- Layers:
- `sha256:1d68bfaf97a43699ca4f596b2b7bb6ae1d5c067f55375ed2cfad444503277842`
Last Modified: Sat, 05 Mar 2022 01:14:04 GMT
Size: 2.5 MB (2484402 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:unstable` - linux; riscv64
```console
$ docker pull busybox@sha256:b901ab4c321fccb6fef40a117220414bc1d1ab7e914bbf761db39a7314f93518
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **905.6 KB (905561 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:19ae9a19451ec4e0888b2a42390b1aa44391c0e80208db8b27438f9d630099e3`
- Default Command: `["sh"]`
```dockerfile
# Fri, 04 Mar 2022 23:17:31 GMT
ADD file:ff86f337382e15663e45316d6a23732986083cb0ff879babe90967fcf2004a83 in /
# Fri, 04 Mar 2022 23:17:32 GMT
CMD ["sh"]
```
- Layers:
- `sha256:42f0a2f1fcd7245b3d52983f0c380db121b5bd0ec06064fea2144c465711c9e0`
Last Modified: Fri, 04 Mar 2022 23:40:41 GMT
Size: 905.6 KB (905561 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:unstable` - linux; s390x
```console
$ docker pull busybox@sha256:65288336b9812bb76337d950df631465ede0f57818098a1c344072466fe209b6
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **2.0 MB (2007340 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:5e74131627d3b8403feb8b3525c9c259ab5747e749c39d8130c4e2452cc6a4b9`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 00:37:28 GMT
ADD file:855be789b7d969529fa48270a9fd565d4c631e85418142586b50b88a54dd25fa in /
# Sat, 05 Mar 2022 00:37:28 GMT
CMD ["sh"]
```
- Layers:
- `sha256:65e2b4eb663ac353b5a878b44229c24741b6c8f2bd86c5b0ba1d560377704ea8`
Last Modified: Sat, 05 Mar 2022 00:39:08 GMT
Size: 2.0 MB (2007340 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
## `busybox:unstable-glibc`
```console
$ docker pull busybox@sha256:8e4c17cb94f119127e3ba7c75e2885e917cfb633e7135437a849ada20e6f2491
```
- Manifest MIME: `application/vnd.docker.distribution.manifest.list.v2+json`
- Platforms: 8
- linux; amd64
- linux; arm variant v5
- linux; arm variant v7
- linux; arm64 variant v8
- linux; 386
- linux; mips64le
- linux; ppc64le
- linux; s390x
### `busybox:unstable-glibc` - linux; amd64
```console
$ docker pull busybox@sha256:72ed8562da1cee99c3490766e3388cbf65c61b5b8e7351d81d5d451902fb396c
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **2.6 MB (2566588 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:356d8bcb303195e397d69bf3196084e4b1038da668d31b7190530b025f25c52c`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 02:00:49 GMT
ADD file:2217467728a925993ff12f0be0177282f5122e7e50403241f82e1e6dc7b4bb07 in /
# Sat, 05 Mar 2022 02:00:49 GMT
CMD ["sh"]
```
- Layers:
- `sha256:89988c27bf8118812294cfbb29c377b7c2a979b6cbe5247909f5d613d905592b`
Last Modified: Sat, 05 Mar 2022 02:02:50 GMT
Size: 2.6 MB (2566588 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:unstable-glibc` - linux; arm variant v5
```console
$ docker pull busybox@sha256:1dc601aa0a2fac1e6672521bcb9b904d5d4a5bd273eb558eee9e9f8b679860c9
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **1.9 MB (1931437 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:2cdfb9d35891e059a4f0d29ab9905f4bc4689ab34666fa319fa1446617f2a083`
- Default Command: `["sh"]`
```dockerfile
# Fri, 04 Mar 2022 23:53:55 GMT
ADD file:2f342c1d0cbfcfb579d9b5310fd7bb853c037e2868c6f09b6bdc21c4f0cc1fb6 in /
# Fri, 04 Mar 2022 23:53:55 GMT
CMD ["sh"]
```
- Layers:
- `sha256:cb03a331c0090bc428b1aed71ebcce898ba2375410e1a75dfee8195c9ab8d3f1`
Last Modified: Fri, 04 Mar 2022 23:57:12 GMT
Size: 1.9 MB (1931437 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:unstable-glibc` - linux; arm variant v7
```console
$ docker pull busybox@sha256:5e0ec0ef0da18f7339af97cf26a91ac87b1cfe1aebb646ba4e03c660b93164e1
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **1.7 MB (1679166 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:60efe658ba1bf0eb2830376944f762a1cfbef606eb6065a2025314898750f8a8`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 00:30:53 GMT
ADD file:7f09b47036ae5209dab7f8c240044e2650ac4db06ad7f30c9e70fdb42cdf5940 in /
# Sat, 05 Mar 2022 00:30:53 GMT
CMD ["sh"]
```
- Layers:
- `sha256:ec08f8c178f6565743e4307e1c08c9f43822f7971680598fb4c3cc16ac442057`
Last Modified: Sat, 05 Mar 2022 00:35:35 GMT
Size: 1.7 MB (1679166 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:unstable-glibc` - linux; arm64 variant v8
```console
$ docker pull busybox@sha256:0084865dbaf42c7b4c01df259413015d3519e785476b59a91ed7611ac6f99400
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **2.0 MB (1997832 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:9fff4abe87ec18f9c1b168d37da9dfcdd86c6adfb085d4358b5806f3a738cb2c`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 02:51:23 GMT
ADD file:36d6bc19753a26f0582978a702da990dd29cc897cdf177a6f667eaadccb75362 in /
# Sat, 05 Mar 2022 02:51:23 GMT
CMD ["sh"]
```
- Layers:
- `sha256:c3f1d0b43382cc4cc450d03e026e77c7d8e3a80d1136b4d3a5d9102a9377ab5a`
Last Modified: Sat, 05 Mar 2022 02:54:02 GMT
Size: 2.0 MB (1997832 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:unstable-glibc` - linux; 386
```console
$ docker pull busybox@sha256:85ff5dab5c5fb4783864229d1facc9dc1a5f471f033a207b7cbed489ca84954d
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **2.2 MB (2234748 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:a21159bb6a970589f64724407a7b62826c58bd1ad4e10b162249d967e188e8ee`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 01:37:08 GMT
ADD file:d15adf77369cd98e9ba24629344479702be267709a428c1abed4fef95cfca5b3 in /
# Sat, 05 Mar 2022 01:37:08 GMT
CMD ["sh"]
```
- Layers:
- `sha256:624e210634c49ebd837769ac41b92170c6415f73df02851ac3d774fb4e5a0410`
Last Modified: Sat, 05 Mar 2022 01:40:11 GMT
Size: 2.2 MB (2234748 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:unstable-glibc` - linux; mips64le
```console
$ docker pull busybox@sha256:9dc2a20005fe8d63694dc87aa9ce130178cc5f710b3ff6990228e6eb96172601
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **2.2 MB (2221781 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:84968a24af2cb1727b4571aa6d62214c5007b90088b0b3779eaeb7b71c6714e3`
- Default Command: `["sh"]`
```dockerfile
# Mon, 07 Mar 2022 02:37:08 GMT
ADD file:198e4e10c9398a5a364b3e010e9cee14b8cb19fa183217b0666326aade7b4f79 in /
# Mon, 07 Mar 2022 02:37:10 GMT
CMD ["sh"]
```
- Layers:
- `sha256:c6f20b119d5e6168b276a3e09daac1b2b180c8011ed5c239088cb5cb7ec4e45c`
Last Modified: Mon, 07 Mar 2022 02:38:36 GMT
Size: 2.2 MB (2221781 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:unstable-glibc` - linux; ppc64le
```console
$ docker pull busybox@sha256:ecd327922b80f39d5eebdd70a58adfd5397d5a2330cb1e15ba47b08992c8aee0
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **2.5 MB (2484402 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:0d7936207fc04ecd77970d5d8ede2a3b4a649b205b720418815587a31143c843`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 01:11:33 GMT
ADD file:a25b3d1c49e964a645ccd79b56261d1f1385c24e904dc39cc5ecfa7c08dba7a1 in /
# Sat, 05 Mar 2022 01:11:36 GMT
CMD ["sh"]
```
- Layers:
- `sha256:1d68bfaf97a43699ca4f596b2b7bb6ae1d5c067f55375ed2cfad444503277842`
Last Modified: Sat, 05 Mar 2022 01:14:04 GMT
Size: 2.5 MB (2484402 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:unstable-glibc` - linux; s390x
```console
$ docker pull busybox@sha256:65288336b9812bb76337d950df631465ede0f57818098a1c344072466fe209b6
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **2.0 MB (2007340 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:5e74131627d3b8403feb8b3525c9c259ab5747e749c39d8130c4e2452cc6a4b9`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 00:37:28 GMT
ADD file:855be789b7d969529fa48270a9fd565d4c631e85418142586b50b88a54dd25fa in /
# Sat, 05 Mar 2022 00:37:28 GMT
CMD ["sh"]
```
- Layers:
- `sha256:65e2b4eb663ac353b5a878b44229c24741b6c8f2bd86c5b0ba1d560377704ea8`
Last Modified: Sat, 05 Mar 2022 00:39:08 GMT
Size: 2.0 MB (2007340 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
## `busybox:unstable-musl`
```console
$ docker pull busybox@sha256:7de4795698591df50047b278d3c3991d0df5e56d55f23a885d858ef3217ea441
```
- Manifest MIME: `application/vnd.docker.distribution.manifest.list.v2+json`
- Platforms: 7
- linux; amd64
- linux; arm variant v6
- linux; arm variant v7
- linux; arm64 variant v8
- linux; 386
- linux; ppc64le
- linux; s390x
### `busybox:unstable-musl` - linux; amd64
```console
$ docker pull busybox@sha256:b1e808b734ad856684aeab3b2b4b34c8ec62b8111a82b40ca7dcf6dad72e03a6
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **844.0 KB (843994 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:9d0a5b721ba853c382e1da9a74e628293ebcb8aaf2684189516086b215929fb2`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 02:00:55 GMT
ADD file:2578c66eae8cc5bbae0e637daa103a5164e73fe3934a1206482b82af5d974c25 in /
# Sat, 05 Mar 2022 02:00:55 GMT
CMD ["sh"]
```
- Layers:
- `sha256:83e8942241ec697a90e772fd9c5d1a45b05f87caf8fd8ba395fea27b8a32f123`
Last Modified: Sat, 05 Mar 2022 02:03:01 GMT
Size: 844.0 KB (843994 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:unstable-musl` - linux; arm variant v6
```console
$ docker pull busybox@sha256:4b1769d9e3e50fc0064a81291b9a045a22ba1258c98060a054024e0b94074c03
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **954.2 KB (954229 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:6b984a9bb73cf71496be4e3539ad4f2405b3ad6a68b431a0d6e3a0285631efc9`
- Default Command: `["sh"]`
```dockerfile
# Fri, 04 Mar 2022 22:49:54 GMT
ADD file:5ee77db4ceb26976922746b5d92a93f5edf7ce64e168334ab264f622be92b316 in /
# Fri, 04 Mar 2022 22:49:54 GMT
CMD ["sh"]
```
- Layers:
- `sha256:a7f886d0cf7c7de65c0c33fa89b77e7681ea05f56e436e235d85279e400ab621`
Last Modified: Fri, 04 Mar 2022 22:52:05 GMT
Size: 954.2 KB (954229 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:unstable-musl` - linux; arm variant v7
```console
$ docker pull busybox@sha256:c91c1e1a687e01386ed6e53316be895e004ddc05bffb46aeecc54b2425a5fe55
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **836.6 KB (836590 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:3051a0f13e4c7b0f094311efd5a8290e8a3863505815dcaebde4ed83571a4fbd`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 00:31:07 GMT
ADD file:a4481c3bbce8f8a026dc55c22a9e481688d4f8d363b384e777100406ff324e14 in /
# Sat, 05 Mar 2022 00:31:07 GMT
CMD ["sh"]
```
- Layers:
- `sha256:b4883e6b41640a958ea065e4f89fcea0f5f8a926915595527fa595063aa96ded`
Last Modified: Sat, 05 Mar 2022 00:35:51 GMT
Size: 836.6 KB (836590 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:unstable-musl` - linux; arm64 variant v8
```console
$ docker pull busybox@sha256:d2d8deff36fca25249abaab4d82f814c3cc62672a6b9fb6d160855e5c00af415
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **883.3 KB (883273 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:9b00b4b1acc296017539984a4f8dd0afc518dfffd1b2f05c1c5a042c4fc7c805`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 02:51:30 GMT
ADD file:1af22c27b291afcc459c01895db7d9099a40becb3cd0cbb79b1e63748b518439 in /
# Sat, 05 Mar 2022 02:51:30 GMT
CMD ["sh"]
```
- Layers:
- `sha256:6dc991ce8ea9e5e56ed754c20e8f07db65e9ecd74a4290b3696a43e78d6ad216`
Last Modified: Sat, 05 Mar 2022 02:54:16 GMT
Size: 883.3 KB (883273 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:unstable-musl` - linux; 386
```console
$ docker pull busybox@sha256:3acaa4e6232e79364f7b0dc3111a9ae892d403d11241580a2e504107c49afbcf
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **850.9 KB (850866 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:8e2e62a63ab2d6e03fd1b4feb645fa03dc6e89f1eec8a09d8c6d5b874b868a2d`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 01:37:14 GMT
ADD file:9d56aca637c44e5b76fb88b69834a24ad48a00d4b79f80aaf2c57f8eea7035f7 in /
# Sat, 05 Mar 2022 01:37:14 GMT
CMD ["sh"]
```
- Layers:
- `sha256:efbf27fc889727114570975e8298ead459403b3e40012b50427496fd5b70bac9`
Last Modified: Sat, 05 Mar 2022 01:40:25 GMT
Size: 850.9 KB (850866 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:unstable-musl` - linux; ppc64le
```console
$ docker pull busybox@sha256:539e05ffbcd29243875e48f40110ac527aa3efa610fab9ad728dfbf2e2b23c97
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **920.0 KB (919971 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:9969dc11bb7409c4402083f38ae3de24fa30c44aa5c9fc3287e7ded37a55bdc7`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 01:11:46 GMT
ADD file:469fbe6feec74f25d140a2bc322d09b569d850cd6113c5158643d2d50f585830 in /
# Sat, 05 Mar 2022 01:11:48 GMT
CMD ["sh"]
```
- Layers:
- `sha256:20f00414baa36900c459bd8a5812b7197fbf8a31950cbe0a85d7f48cb7ecc3a3`
Last Modified: Sat, 05 Mar 2022 01:14:21 GMT
Size: 920.0 KB (919971 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:unstable-musl` - linux; s390x
```console
$ docker pull busybox@sha256:6b660679b2ec78e39e8f54817cba0f569f548f392f4debbf76544b423ff9e7a4
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **894.6 KB (894571 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:521d1e2d3cead3535b52fc08e2af9df1fc66156efa866604c72d8f03764f9f29`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 00:37:35 GMT
ADD file:4b11b878e8d3cec86a1032bef8797acede90a9bd3f98a2929e63ebc23980c05f in /
# Sat, 05 Mar 2022 00:37:35 GMT
CMD ["sh"]
```
- Layers:
- `sha256:614dc6d02a2e2fa6bc6ecfd3338db3c55d60ee1674e785851e847afd38f03bf1`
Last Modified: Sat, 05 Mar 2022 00:39:16 GMT
Size: 894.6 KB (894571 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
## `busybox:unstable-uclibc`
```console
$ docker pull busybox@sha256:56397438406be766b0dde577ac7e781edd18bb5f540fcccc6d3bca5542d6daa4
```
- Manifest MIME: `application/vnd.docker.distribution.manifest.list.v2+json`
- Platforms: 7
- linux; amd64
- linux; arm variant v5
- linux; arm variant v7
- linux; arm64 variant v8
- linux; 386
- linux; mips64le
- linux; riscv64
### `busybox:unstable-uclibc` - linux; amd64
```console
$ docker pull busybox@sha256:2190cbc0553b42854c65a93a9e1a1a4388ff1ab74e7f300b94b59cd7c063efb2
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **773.2 KB (773214 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:d3dd17c32e61e23cbe6d697569614da150de4d7f0da2b9fa4b57f183305e91c5`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 02:00:44 GMT
ADD file:7c70702dcfa3bc555859068bc7804825282ea61e8076294ff65e82d27aa617e2 in /
# Sat, 05 Mar 2022 02:00:44 GMT
CMD ["sh"]
```
- Layers:
- `sha256:837abc85bf61828c3ada2d02ff8eb7e5360e22cabfd8d3bcc23cbfdd6e5c48a1`
Last Modified: Sat, 05 Mar 2022 02:02:35 GMT
Size: 773.2 KB (773214 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:unstable-uclibc` - linux; arm variant v5
```console
$ docker pull busybox@sha256:c3939735cb4e6282b45ce907abe02013f825306b6b685574d98a4acc0fabd27c
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **756.5 KB (756533 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:12e9332d857d74bcbe914256dc041e3236282a5e422c84efc27d832eaee4baa7`
- Default Command: `["sh"]`
```dockerfile
# Fri, 04 Mar 2022 23:53:43 GMT
ADD file:52e2acc96ba740fbb994fb22ba9e0c73abc43d6578a39fa5ed0f9055e6698aec in /
# Fri, 04 Mar 2022 23:53:43 GMT
CMD ["sh"]
```
- Layers:
- `sha256:eeefea69efa569ad496e6afbebe5532304eee449c929ffe088cc3a48bc68154d`
Last Modified: Fri, 04 Mar 2022 23:56:57 GMT
Size: 756.5 KB (756533 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:unstable-uclibc` - linux; arm variant v7
```console
$ docker pull busybox@sha256:e373790c0ffe0bf8f9974f1635b0e4b9242887b11b52ddb2ab8b0016aa6b1224
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **725.1 KB (725090 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:b5e9176ff97aaa9224afae3d663fc32674743237e49e9d4fad119fb0989785b0`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 00:30:38 GMT
ADD file:9e2f429fa6260f11e671814c9a3fee70a7f73d61ecd35296ac4dd9ee8c11d447 in /
# Sat, 05 Mar 2022 00:30:38 GMT
CMD ["sh"]
```
- Layers:
- `sha256:c5ee7714d71e62eec0c700283983cdfd076eef26a241ed0bf7497d83dbe1dc77`
Last Modified: Sat, 05 Mar 2022 00:35:20 GMT
Size: 725.1 KB (725090 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:unstable-uclibc` - linux; arm64 variant v8
```console
$ docker pull busybox@sha256:1b4394a57cc23b20364516ec0557a892c9eb281d92fe87412db80800d2675645
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **829.3 KB (829339 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:4575719df580071e2104e56cab1b5d8b9f7bacfa160a87f15c63b020b38c4cda`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 02:51:16 GMT
ADD file:46a9fbc68edb3b9c51d952a28551a8ce5ca7e36ec8bbbf1b62ae11c9e6fbd994 in /
# Sat, 05 Mar 2022 02:51:16 GMT
CMD ["sh"]
```
- Layers:
- `sha256:c65693ced10096a446b59d5125a0b1fc4b24c7d72dfcf7abdf20c2e80e63a21a`
Last Modified: Sat, 05 Mar 2022 02:53:49 GMT
Size: 829.3 KB (829339 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:unstable-uclibc` - linux; 386
```console
$ docker pull busybox@sha256:36c1dbc15886a25b2515133e6626b4d1c2df4423adff2c760643b50e19fb519b
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **736.5 KB (736481 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:2a95c75abfdb7665dfce29b6894ece1e4b7da24412175e9e56125149497f303b`
- Default Command: `["sh"]`
```dockerfile
# Sat, 05 Mar 2022 01:37:01 GMT
ADD file:c6389c568cd27afe20167b7e7ad274df772345df80a67c1464708ca20e079b7d in /
# Sat, 05 Mar 2022 01:37:01 GMT
CMD ["sh"]
```
- Layers:
- `sha256:e15fc50ae394f9ef82fb7c0ecd09970b888cafacb41cf957fe9f89f2dd2c3fd8`
Last Modified: Sat, 05 Mar 2022 01:39:55 GMT
Size: 736.5 KB (736481 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:unstable-uclibc` - linux; mips64le
```console
$ docker pull busybox@sha256:356a37d941e107a7c754393efc889ca84fdbaad6ec5198a2568ec6197517f469
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **961.9 KB (961851 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:6ee8d904106ba464888ca386ac1e9c9426b70ddfa18eb30f32f7a84a85bd69d6`
- Default Command: `["sh"]`
```dockerfile
# Mon, 07 Mar 2022 02:36:58 GMT
ADD file:09f0d7194e6bb71bd44fe3a0195df69adb2057999339c4f5e9d6140a45ba0660 in /
# Mon, 07 Mar 2022 02:36:59 GMT
CMD ["sh"]
```
- Layers:
- `sha256:13d04bfbe329afadd5dca56fb821be9200299bdbe919dcab966c8f561e7640fb`
Last Modified: Mon, 07 Mar 2022 02:38:23 GMT
Size: 961.9 KB (961851 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `busybox:unstable-uclibc` - linux; riscv64
```console
$ docker pull busybox@sha256:b901ab4c321fccb6fef40a117220414bc1d1ab7e914bbf761db39a7314f93518
```
- Docker Version: 20.10.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **905.6 KB (905561 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:19ae9a19451ec4e0888b2a42390b1aa44391c0e80208db8b27438f9d630099e3`
- Default Command: `["sh"]`
```dockerfile
# Fri, 04 Mar 2022 23:17:31 GMT
ADD file:ff86f337382e15663e45316d6a23732986083cb0ff879babe90967fcf2004a83 in /
# Fri, 04 Mar 2022 23:17:32 GMT
CMD ["sh"]
```
- Layers:
- `sha256:42f0a2f1fcd7245b3d52983f0c380db121b5bd0ec06064fea2144c465711c9e0`
Last Modified: Fri, 04 Mar 2022 23:40:41 GMT
Size: 905.6 KB (905561 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
|
apache-2.0
|
cilium-team/cilium
|
bpf/include/bpf/access.h
|
1125
|
/* SPDX-License-Identifier: GPL-2.0 */
/* Copyright (C) 2020 Authors of Cilium */
#ifndef __BPF_ACCESS_H_
#define __BPF_ACCESS_H_
#include "compiler.h"
#if !defined(__non_bpf_context) && defined(__bpf__)
static __always_inline __maybe_unused __u16
map_array_get_16(const __u16 *array, __u32 index, const __u32 limit)
{
__u16 datum = 0;
if (__builtin_constant_p(index) ||
!__builtin_constant_p(limit))
__throw_build_bug();
/* LLVM tends to optimize code away that is needed for the verifier to
* understand dynamic map access. Input constraint is that index < limit
* for this util function, so we never fail here, and returned datum is
* always valid.
*/
asm volatile("%[index] <<= 1\n\t"
"if %[index] >= %[limit] goto +1\n\t"
"%[array] += %[index]\n\t"
"%[datum] = *(u16 *)(%[array] + 0)\n\t"
: [datum]"=r"(datum)
: [limit]"i"(limit), [array]"r"(array), [index]"r"(index)
: /* no clobbers */ );
return datum;
}
#else
# define map_array_get_16(array, index, limit) __throw_build_bug()
#endif /* !__non_bpf_context && __bpf__ */
#endif /* __BPF_ACCESS_H_ */
|
apache-2.0
|
atende/audit-view
|
src/main/java/br/pucminas/icei/audition/repository/AuditEventRepository.java
|
3874
|
package br.pucminas.icei.audition.repository;
/**
* @author Claudinei Gomes Mendes
*/
import br.pucminas.icei.audition.dto.SearchResponse;
import info.atende.audition.model.AuditEvent;
import info.atende.audition.model.SecurityLevel;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.persistence.TypedQuery;
import javax.persistence.criteria.CriteriaBuilder;
import javax.persistence.criteria.CriteriaQuery;
import javax.persistence.criteria.Predicate;
import javax.persistence.criteria.Root;
import java.time.LocalDateTime;
import java.util.*;
@Component
@Repository
public class AuditEventRepository {
@PersistenceContext
private EntityManager em;
@Transactional
public void create(AuditEvent auditEvent) {
em.persist(auditEvent);
}
public SearchResponse search(Map<String, Object> filtro, Long start, Long max) {
return search(filtro, start, max, null, null);
}
public SearchResponse search(Map<String, Object> filtro, Long start, Long max,
LocalDateTime dStart, LocalDateTime dEnd) {
String securityLevel = (String) filtro.get("securityLevel");
if (securityLevel != null) {
filtro.put("securityLevel", SecurityLevel.valueOf(securityLevel));
}
return buildQuery(filtro, start, max, dStart, dEnd);
}
public List<String> listApplicationNames() {
return em.createQuery("SELECT distinct e.applicationName from AuditEvent e order by e.applicationName").getResultList();
}
public List<String> listResourceTypes(){
return em.createQuery("SELECT distinct e.resource.resourceType from AuditEvent e order by e.resource.resourceType").getResultList();
}
private SearchResponse buildQuery(Map<String, Object> filtro,
Long start,
Long max,
LocalDateTime dateStart,
LocalDateTime dateEnd) {
CriteriaBuilder cb = em.getCriteriaBuilder();
CriteriaQuery<AuditEvent> q = cb.createQuery(AuditEvent.class);
Root<AuditEvent> root = q.from(AuditEvent.class);
List<Predicate> predicates = new ArrayList();
Iterator it = filtro.entrySet().iterator();
while (it.hasNext()) {
Map.Entry pair = (Map.Entry) it.next();
String key = (String) pair.getKey();
if(key.equals("resourceType")){
predicates.add(cb.equal(root.get("resource").get(key), pair.getValue()));
}else if (key.equals("action")) {
predicates.add(cb.like(root.get(key), pair.getValue() + "%"));
} else {
predicates.add(cb.equal(root.get(key), pair.getValue()));
}
it.remove(); // avoids a ConcurrentModificationException
}
// Dates
if (dateStart != null && dateEnd != null) {
predicates.add(cb.between(root.get("dateTime"), dateStart, dateEnd));
}
CriteriaQuery<AuditEvent> where = q.where(cb.and(predicates.toArray(new Predicate[predicates.size()])));
Long countResult = JpaUtils.count(em, where);
q.select(root);
where.orderBy(cb.asc(root.get("dateTime")));
TypedQuery<AuditEvent> query = em.createQuery(where);
// Pagination
if (start != null && max != null) {
query.setFirstResult(start.intValue())
.setMaxResults(max.intValue());
}
List<AuditEvent> result = query.getResultList();
return new SearchResponse(countResult, result);
}
}
|
apache-2.0
|
ADSC-Cloud/resa
|
resa-core/src/main/java/resa/metrics/StatMetric.java
|
1913
|
package resa.metrics;
import backtype.storm.metric.api.IMetric;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
/**
* Created by ding on 14-8-12.
*/
public class StatMetric implements IMetric {
private double[] xAxis;
private Map<String, long[]> data;
public StatMetric(double[] xAxis) {
this.xAxis = xAxis;
if (xAxis != null && xAxis.length > 0) {
data = new HashMap<>();
}
}
public void add(String key, double value) {
int pos = Arrays.binarySearch(xAxis, value);
if (pos < 0) {
pos = -pos - 1;
}
data.computeIfAbsent(key, k -> new long[xAxis.length + 1])[pos]++;
// long[] stat = data.computeIfAbsent(key, k -> new long[(xAxis.length + 1) * 2]);
// stat[pos * 2]++;
// stat[pos * 2 + 1] = Double.doubleToLongBits(Double.longBitsToDouble(stat[pos * 2 + 1]) + value);
}
@Override
public Object getValueAndReset() {
if (data == null || data.isEmpty()) {
return null;
}
Map<String, String> ret = new HashMap<>();
data.forEach((k, v) -> ret.put(k, stat2String(v)));
data = new HashMap<>();
return ret;
}
private String stat2String(long[] statData) {
StringBuilder sb = new StringBuilder();
sb.append(statData[0]);
for (int i = 1; i < statData.length; i++) {
sb.append(',');
sb.append(statData[i]);
}
// for (int i = 2; i < statData.length; i += 2) {
// sb.append(',');
// sb.append(statData[i]);
// }
// sb.append(";");
// sb.append(Double.longBitsToDouble(statData[1]));
// for (int i = 3; i < statData.length; i += 2) {
// sb.append(',');
// sb.append(Double.longBitsToDouble(statData[i]));
// }
return sb.toString();
}
}
|
apache-2.0
|
leafclick/intellij-community
|
platform/statistics/src/com/intellij/internal/statistic/eventLog/validator/persistence/EventLogWhitelistSettingsPersistence.java
|
4390
|
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.internal.statistic.eventLog.validator.persistence;
import com.intellij.openapi.components.*;
import com.intellij.openapi.util.text.StringUtil;
import org.jdom.Element;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import java.util.HashMap;
import java.util.Map;
@State(
name = "EventLogWhitelist",
storages = @Storage(value = EventLogWhitelistSettingsPersistence.USAGE_STATISTICS_XML, roamingType = RoamingType.DISABLED)
)
public class EventLogWhitelistSettingsPersistence implements PersistentStateComponent<Element> {
public static final String USAGE_STATISTICS_XML = "usage.statistics.xml";
private final Map<String, Long> myLastModifications = new HashMap<>();
private final Map<String, WhitelistPathSettings> myRecorderToPathSettings = new HashMap<>();
private static final String WHITELIST_MODIFY = "update";
private static final String RECORDER_ID = "recorder-id";
private static final String LAST_MODIFIED = "last-modified";
private static final String PATH = "path";
private static final String CUSTOM_PATH = "custom-path";
private static final String USE_CUSTOM_PATH = "use-custom-path";
public static EventLogWhitelistSettingsPersistence getInstance() {
return ServiceManager.getService(EventLogWhitelistSettingsPersistence.class);
}
public long getLastModified(@NotNull String recorderId) {
return myLastModifications.containsKey(recorderId) ? Math.max(myLastModifications.get(recorderId), 0) : 0;
}
public void setLastModified(@NotNull String recorderId, long lastUpdate) {
myLastModifications.put(recorderId, Math.max(lastUpdate, 0));
}
@Nullable
public WhitelistPathSettings getPathSettings(@NotNull String recorderId) {
return myRecorderToPathSettings.get(recorderId);
}
public void setPathSettings(@NotNull String recorderId, @NotNull WhitelistPathSettings settings) {
myRecorderToPathSettings.put(recorderId, settings);
}
@Override
public void loadState(@NotNull final Element element) {
myLastModifications.clear();
for (Element update : element.getChildren(WHITELIST_MODIFY)) {
final String recorder = update.getAttributeValue(RECORDER_ID);
if (StringUtil.isNotEmpty(recorder)) {
final long lastUpdate = parseLastUpdate(update);
myLastModifications.put(recorder, lastUpdate);
}
}
myRecorderToPathSettings.clear();
for (Element path : element.getChildren(PATH)) {
final String recorder = path.getAttributeValue(RECORDER_ID);
if (StringUtil.isNotEmpty(recorder)) {
String customPath = path.getAttributeValue(CUSTOM_PATH);
if (customPath == null) continue;
boolean useCustomPath = parseUseCustomPath(path);
myRecorderToPathSettings.put(recorder, new WhitelistPathSettings(customPath, useCustomPath));
}
}
}
private static boolean parseUseCustomPath(@NotNull Element update) {
try {
return Boolean.parseBoolean(update.getAttributeValue(USE_CUSTOM_PATH, "false"));
}
catch (NumberFormatException e) {
return false;
}
}
private static long parseLastUpdate(@NotNull Element update) {
try {
return Long.parseLong(update.getAttributeValue(LAST_MODIFIED, "0"));
}
catch (NumberFormatException e) {
return 0;
}
}
@Override
public Element getState() {
final Element element = new Element("state");
for (Map.Entry<String, Long> entry : myLastModifications.entrySet()) {
final Element update = new Element(WHITELIST_MODIFY);
update.setAttribute(RECORDER_ID, entry.getKey());
update.setAttribute(LAST_MODIFIED, String.valueOf(entry.getValue()));
element.addContent(update);
}
for (Map.Entry<String, WhitelistPathSettings> entry : myRecorderToPathSettings.entrySet()) {
final Element path = new Element(PATH);
path.setAttribute(RECORDER_ID, entry.getKey());
WhitelistPathSettings value = entry.getValue();
path.setAttribute(CUSTOM_PATH, value.getCustomPath());
path.setAttribute(USE_CUSTOM_PATH, String.valueOf(value.isUseCustomPath()));
element.addContent(path);
}
return element;
}
@Override
public void noStateLoaded() {
}
}
|
apache-2.0
|
wildfly-swarm/wildfly-swarm-javadocs
|
2016.9/apidocs/org/wildfly/swarm/config/ejb3/class-use/CacheConsumer.html
|
11049
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_60-ea) on Tue Sep 06 12:41:45 EDT 2016 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Uses of Interface org.wildfly.swarm.config.ejb3.CacheConsumer (Public javadocs 2016.9 API)</title>
<meta name="date" content="2016-09-06">
<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Uses of Interface org.wildfly.swarm.config.ejb3.CacheConsumer (Public javadocs 2016.9 API)";
}
}
catch(err) {
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../../overview-summary.html">Overview</a></li>
<li><a href="../package-summary.html">Package</a></li>
<li><a href="../../../../../../org/wildfly/swarm/config/ejb3/CacheConsumer.html" title="interface in org.wildfly.swarm.config.ejb3">Class</a></li>
<li class="navBarCell1Rev">Use</li>
<li><a href="../../../../../../overview-tree.html">Tree</a></li>
<li><a href="../../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../../help-doc.html">Help</a></li>
</ul>
<div class="aboutLanguage">WildFly Swarm API, 2016.9</div>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev</li>
<li>Next</li>
</ul>
<ul class="navList">
<li><a href="../../../../../../index.html?org/wildfly/swarm/config/ejb3/class-use/CacheConsumer.html" target="_top">Frames</a></li>
<li><a href="CacheConsumer.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<div class="header">
<h2 title="Uses of Interface org.wildfly.swarm.config.ejb3.CacheConsumer" class="title">Uses of Interface<br>org.wildfly.swarm.config.ejb3.CacheConsumer</h2>
</div>
<div class="classUseContainer">
<ul class="blockList">
<li class="blockList">
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing packages, and an explanation">
<caption><span>Packages that use <a href="../../../../../../org/wildfly/swarm/config/ejb3/CacheConsumer.html" title="interface in org.wildfly.swarm.config.ejb3">CacheConsumer</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Package</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><a href="#org.wildfly.swarm.config">org.wildfly.swarm.config</a></td>
<td class="colLast"> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="#org.wildfly.swarm.config.ejb3">org.wildfly.swarm.config.ejb3</a></td>
<td class="colLast"> </td>
</tr>
</tbody>
</table>
</li>
<li class="blockList">
<ul class="blockList">
<li class="blockList"><a name="org.wildfly.swarm.config">
<!-- -->
</a>
<h3>Uses of <a href="../../../../../../org/wildfly/swarm/config/ejb3/CacheConsumer.html" title="interface in org.wildfly.swarm.config.ejb3">CacheConsumer</a> in <a href="../../../../../../org/wildfly/swarm/config/package-summary.html">org.wildfly.swarm.config</a></h3>
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation">
<caption><span>Methods in <a href="../../../../../../org/wildfly/swarm/config/package-summary.html">org.wildfly.swarm.config</a> with parameters of type <a href="../../../../../../org/wildfly/swarm/config/ejb3/CacheConsumer.html" title="interface in org.wildfly.swarm.config.ejb3">CacheConsumer</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../../org/wildfly/swarm/config/EJB3.html" title="type parameter in EJB3">T</a></code></td>
<td class="colLast"><span class="typeNameLabel">EJB3.</span><code><span class="memberNameLink"><a href="../../../../../../org/wildfly/swarm/config/EJB3.html#cache-java.lang.String-org.wildfly.swarm.config.ejb3.CacheConsumer-">cache</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> childKey,
<a href="../../../../../../org/wildfly/swarm/config/ejb3/CacheConsumer.html" title="interface in org.wildfly.swarm.config.ejb3">CacheConsumer</a> consumer)</code>
<div class="block">Create and configure a Cache object to the list of subresources</div>
</td>
</tr>
</tbody>
</table>
</li>
<li class="blockList"><a name="org.wildfly.swarm.config.ejb3">
<!-- -->
</a>
<h3>Uses of <a href="../../../../../../org/wildfly/swarm/config/ejb3/CacheConsumer.html" title="interface in org.wildfly.swarm.config.ejb3">CacheConsumer</a> in <a href="../../../../../../org/wildfly/swarm/config/ejb3/package-summary.html">org.wildfly.swarm.config.ejb3</a></h3>
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation">
<caption><span>Methods in <a href="../../../../../../org/wildfly/swarm/config/ejb3/package-summary.html">org.wildfly.swarm.config.ejb3</a> that return <a href="../../../../../../org/wildfly/swarm/config/ejb3/CacheConsumer.html" title="interface in org.wildfly.swarm.config.ejb3">CacheConsumer</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code>default <a href="../../../../../../org/wildfly/swarm/config/ejb3/CacheConsumer.html" title="interface in org.wildfly.swarm.config.ejb3">CacheConsumer</a><<a href="../../../../../../org/wildfly/swarm/config/ejb3/CacheConsumer.html" title="type parameter in CacheConsumer">T</a>></code></td>
<td class="colLast"><span class="typeNameLabel">CacheConsumer.</span><code><span class="memberNameLink"><a href="../../../../../../org/wildfly/swarm/config/ejb3/CacheConsumer.html#andThen-org.wildfly.swarm.config.ejb3.CacheConsumer-">andThen</a></span>(<a href="../../../../../../org/wildfly/swarm/config/ejb3/CacheConsumer.html" title="interface in org.wildfly.swarm.config.ejb3">CacheConsumer</a><<a href="../../../../../../org/wildfly/swarm/config/ejb3/CacheConsumer.html" title="type parameter in CacheConsumer">T</a>> after)</code> </td>
</tr>
</tbody>
</table>
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation">
<caption><span>Methods in <a href="../../../../../../org/wildfly/swarm/config/ejb3/package-summary.html">org.wildfly.swarm.config.ejb3</a> with parameters of type <a href="../../../../../../org/wildfly/swarm/config/ejb3/CacheConsumer.html" title="interface in org.wildfly.swarm.config.ejb3">CacheConsumer</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code>default <a href="../../../../../../org/wildfly/swarm/config/ejb3/CacheConsumer.html" title="interface in org.wildfly.swarm.config.ejb3">CacheConsumer</a><<a href="../../../../../../org/wildfly/swarm/config/ejb3/CacheConsumer.html" title="type parameter in CacheConsumer">T</a>></code></td>
<td class="colLast"><span class="typeNameLabel">CacheConsumer.</span><code><span class="memberNameLink"><a href="../../../../../../org/wildfly/swarm/config/ejb3/CacheConsumer.html#andThen-org.wildfly.swarm.config.ejb3.CacheConsumer-">andThen</a></span>(<a href="../../../../../../org/wildfly/swarm/config/ejb3/CacheConsumer.html" title="interface in org.wildfly.swarm.config.ejb3">CacheConsumer</a><<a href="../../../../../../org/wildfly/swarm/config/ejb3/CacheConsumer.html" title="type parameter in CacheConsumer">T</a>> after)</code> </td>
</tr>
</tbody>
</table>
</li>
</ul>
</li>
</ul>
</div>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../../overview-summary.html">Overview</a></li>
<li><a href="../package-summary.html">Package</a></li>
<li><a href="../../../../../../org/wildfly/swarm/config/ejb3/CacheConsumer.html" title="interface in org.wildfly.swarm.config.ejb3">Class</a></li>
<li class="navBarCell1Rev">Use</li>
<li><a href="../../../../../../overview-tree.html">Tree</a></li>
<li><a href="../../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../../help-doc.html">Help</a></li>
</ul>
<div class="aboutLanguage">WildFly Swarm API, 2016.9</div>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev</li>
<li>Next</li>
</ul>
<ul class="navList">
<li><a href="../../../../../../index.html?org/wildfly/swarm/config/ejb3/class-use/CacheConsumer.html" target="_top">Frames</a></li>
<li><a href="CacheConsumer.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small>Copyright © 2016 <a href="http://www.jboss.org">JBoss by Red Hat</a>. All rights reserved.</small></p>
</body>
</html>
|
apache-2.0
|
szegedim/hadoop
|
hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/router/RouterRpcServer.java
|
92997
|
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.hadoop.hdfs.server.federation.router;
import static org.apache.hadoop.hdfs.server.federation.router.RBFConfigKeys.DFS_ROUTER_HANDLER_COUNT_DEFAULT;
import static org.apache.hadoop.hdfs.server.federation.router.RBFConfigKeys.DFS_ROUTER_HANDLER_COUNT_KEY;
import static org.apache.hadoop.hdfs.server.federation.router.RBFConfigKeys.DFS_ROUTER_HANDLER_QUEUE_SIZE_DEFAULT;
import static org.apache.hadoop.hdfs.server.federation.router.RBFConfigKeys.DFS_ROUTER_HANDLER_QUEUE_SIZE_KEY;
import static org.apache.hadoop.hdfs.server.federation.router.RBFConfigKeys.DFS_ROUTER_READER_COUNT_DEFAULT;
import static org.apache.hadoop.hdfs.server.federation.router.RBFConfigKeys.DFS_ROUTER_READER_COUNT_KEY;
import static org.apache.hadoop.hdfs.server.federation.router.RBFConfigKeys.DFS_ROUTER_READER_QUEUE_SIZE_DEFAULT;
import static org.apache.hadoop.hdfs.server.federation.router.RBFConfigKeys.DFS_ROUTER_READER_QUEUE_SIZE_KEY;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.lang.reflect.Array;
import java.net.InetSocketAddress;
import java.util.ArrayList;
import java.util.Collection;
import java.util.EnumSet;
import java.util.HashMap;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.LinkedHashSet;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
import java.util.TreeMap;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.crypto.CryptoProtocolVersion;
import org.apache.hadoop.fs.BatchedRemoteIterator.BatchedEntries;
import org.apache.hadoop.fs.CacheFlag;
import org.apache.hadoop.fs.CommonConfigurationKeys;
import org.apache.hadoop.fs.ContentSummary;
import org.apache.hadoop.fs.CreateFlag;
import org.apache.hadoop.fs.FileAlreadyExistsException;
import org.apache.hadoop.fs.FsServerDefaults;
import org.apache.hadoop.fs.Options;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.fs.QuotaUsage;
import org.apache.hadoop.fs.StorageType;
import org.apache.hadoop.fs.XAttr;
import org.apache.hadoop.fs.XAttrSetFlag;
import org.apache.hadoop.fs.permission.AclEntry;
import org.apache.hadoop.fs.permission.AclStatus;
import org.apache.hadoop.fs.permission.FsAction;
import org.apache.hadoop.fs.permission.FsPermission;
import org.apache.hadoop.hdfs.AddBlockFlag;
import org.apache.hadoop.hdfs.DFSConfigKeys;
import org.apache.hadoop.hdfs.DFSUtil;
import org.apache.hadoop.hdfs.inotify.EventBatchList;
import org.apache.hadoop.hdfs.protocol.AddErasureCodingPolicyResponse;
import org.apache.hadoop.hdfs.protocol.BlockStoragePolicy;
import org.apache.hadoop.hdfs.protocol.CacheDirectiveEntry;
import org.apache.hadoop.hdfs.protocol.CacheDirectiveInfo;
import org.apache.hadoop.hdfs.protocol.CachePoolEntry;
import org.apache.hadoop.hdfs.protocol.CachePoolInfo;
import org.apache.hadoop.hdfs.protocol.ClientProtocol;
import org.apache.hadoop.hdfs.protocol.CorruptFileBlocks;
import org.apache.hadoop.hdfs.protocol.DatanodeID;
import org.apache.hadoop.hdfs.protocol.DatanodeInfo;
import org.apache.hadoop.hdfs.protocol.DirectoryListing;
import org.apache.hadoop.hdfs.protocol.ECBlockGroupStats;
import org.apache.hadoop.hdfs.protocol.EncryptionZone;
import org.apache.hadoop.hdfs.protocol.ErasureCodingPolicy;
import org.apache.hadoop.hdfs.protocol.ErasureCodingPolicyInfo;
import org.apache.hadoop.hdfs.protocol.ExtendedBlock;
import org.apache.hadoop.hdfs.protocol.HdfsConstants.DatanodeReportType;
import org.apache.hadoop.hdfs.protocol.HdfsConstants.ReencryptAction;
import org.apache.hadoop.hdfs.protocol.HdfsConstants.RollingUpgradeAction;
import org.apache.hadoop.hdfs.protocol.HdfsConstants.SafeModeAction;
import org.apache.hadoop.hdfs.protocol.HdfsFileStatus;
import org.apache.hadoop.hdfs.protocol.HdfsLocatedFileStatus;
import org.apache.hadoop.hdfs.protocol.LastBlockWithStatus;
import org.apache.hadoop.hdfs.protocol.LocatedBlock;
import org.apache.hadoop.hdfs.protocol.LocatedBlocks;
import org.apache.hadoop.hdfs.protocol.OpenFileEntry;
import org.apache.hadoop.hdfs.protocol.OpenFilesIterator;
import org.apache.hadoop.hdfs.protocol.OpenFilesIterator.OpenFilesType;
import org.apache.hadoop.hdfs.protocol.ReplicatedBlockStats;
import org.apache.hadoop.hdfs.protocol.RollingUpgradeInfo;
import org.apache.hadoop.hdfs.protocol.SnapshotDiffReport;
import org.apache.hadoop.hdfs.protocol.SnapshotDiffReportListing;
import org.apache.hadoop.hdfs.protocol.SnapshottableDirectoryStatus;
import org.apache.hadoop.hdfs.protocol.ZoneReencryptionStatus;
import org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.ClientNamenodeProtocol;
import org.apache.hadoop.hdfs.protocol.proto.NamenodeProtocolProtos.NamenodeProtocolService;
import org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolPB;
import org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolServerSideTranslatorPB;
import org.apache.hadoop.hdfs.protocolPB.NamenodeProtocolPB;
import org.apache.hadoop.hdfs.protocolPB.NamenodeProtocolServerSideTranslatorPB;
import org.apache.hadoop.hdfs.security.token.block.DataEncryptionKey;
import org.apache.hadoop.hdfs.security.token.block.ExportedBlockKeys;
import org.apache.hadoop.hdfs.security.token.delegation.DelegationTokenIdentifier;
import org.apache.hadoop.hdfs.server.federation.metrics.FederationRPCMetrics;
import org.apache.hadoop.hdfs.server.federation.resolver.ActiveNamenodeResolver;
import org.apache.hadoop.hdfs.server.federation.resolver.FederationNamespaceInfo;
import org.apache.hadoop.hdfs.server.federation.resolver.FileSubclusterResolver;
import org.apache.hadoop.hdfs.server.federation.resolver.MountTableResolver;
import org.apache.hadoop.hdfs.server.federation.resolver.PathLocation;
import org.apache.hadoop.hdfs.server.federation.resolver.RemoteLocation;
import org.apache.hadoop.hdfs.server.federation.store.records.MountTable;
import org.apache.hadoop.hdfs.server.namenode.CheckpointSignature;
import org.apache.hadoop.hdfs.server.namenode.LeaseExpiredException;
import org.apache.hadoop.hdfs.server.namenode.NameNode.OperationCategory;
import org.apache.hadoop.hdfs.server.namenode.NotReplicatedYetException;
import org.apache.hadoop.hdfs.server.namenode.SafeModeException;
import org.apache.hadoop.hdfs.server.protocol.BlocksWithLocations;
import org.apache.hadoop.hdfs.server.protocol.DatanodeStorageReport;
import org.apache.hadoop.hdfs.server.protocol.NamenodeCommand;
import org.apache.hadoop.hdfs.server.protocol.NamenodeProtocol;
import org.apache.hadoop.hdfs.server.protocol.NamenodeRegistration;
import org.apache.hadoop.hdfs.server.protocol.NamespaceInfo;
import org.apache.hadoop.hdfs.server.protocol.RemoteEditLogManifest;
import org.apache.hadoop.io.EnumSetWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.ipc.ProtobufRpcEngine;
import org.apache.hadoop.ipc.RPC;
import org.apache.hadoop.ipc.RPC.Server;
import org.apache.hadoop.ipc.RemoteException;
import org.apache.hadoop.ipc.StandbyException;
import org.apache.hadoop.net.NodeBase;
import org.apache.hadoop.security.AccessControlException;
import org.apache.hadoop.security.UserGroupInformation;
import org.apache.hadoop.security.token.Token;
import org.apache.hadoop.service.AbstractService;
import org.apache.hadoop.util.ReflectionUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.google.common.annotations.VisibleForTesting;
import com.google.protobuf.BlockingService;
/**
* This class is responsible for handling all of the RPC calls to the It is
* created, started, and stopped by {@link Router}. It implements the
* {@link ClientProtocol} to mimic a
* {@link org.apache.hadoop.hdfs.server.namenode.NameNode NameNode} and proxies
* the requests to the active
* {@link org.apache.hadoop.hdfs.server.namenode.NameNode NameNode}.
*/
public class RouterRpcServer extends AbstractService
implements ClientProtocol, NamenodeProtocol {
private static final Logger LOG =
LoggerFactory.getLogger(RouterRpcServer.class);
/** Configuration for the RPC server. */
private Configuration conf;
/** Identifier for the super user. */
private final String superUser;
/** Identifier for the super group. */
private final String superGroup;
/** Router using this RPC server. */
private final Router router;
/** The RPC server that listens to requests from clients. */
private final Server rpcServer;
/** The address for this RPC server. */
private final InetSocketAddress rpcAddress;
/** RPC clients to connect to the Namenodes. */
private final RouterRpcClient rpcClient;
/** Monitor metrics for the RPC calls. */
private final RouterRpcMonitor rpcMonitor;
/** Interface to identify the active NN for a nameservice or blockpool ID. */
private final ActiveNamenodeResolver namenodeResolver;
/** Interface to map global name space to HDFS subcluster name spaces. */
private final FileSubclusterResolver subclusterResolver;
/** If we are in safe mode, fail requests as if a standby NN. */
private volatile boolean safeMode;
/** Category of the operation that a thread is executing. */
private final ThreadLocal<OperationCategory> opCategory = new ThreadLocal<>();
// Modules implementing groups of RPC calls
/** Router Quota calls. */
private final Quota quotaCall;
/** Erasure coding calls. */
private final ErasureCoding erasureCoding;
/** NamenodeProtocol calls. */
private final RouterNamenodeProtocol nnProto;
/**
* Construct a router RPC server.
*
* @param configuration HDFS Configuration.
* @param nnResolver The NN resolver instance to determine active NNs in HA.
* @param fileResolver File resolver to resolve file paths to subclusters.
* @throws IOException If the RPC server could not be created.
*/
public RouterRpcServer(Configuration configuration, Router router,
ActiveNamenodeResolver nnResolver, FileSubclusterResolver fileResolver)
throws IOException {
super(RouterRpcServer.class.getName());
this.conf = configuration;
this.router = router;
this.namenodeResolver = nnResolver;
this.subclusterResolver = fileResolver;
// User and group for reporting
this.superUser = System.getProperty("user.name");
this.superGroup = this.conf.get(
DFSConfigKeys.DFS_PERMISSIONS_SUPERUSERGROUP_KEY,
DFSConfigKeys.DFS_PERMISSIONS_SUPERUSERGROUP_DEFAULT);
// RPC server settings
int handlerCount = this.conf.getInt(DFS_ROUTER_HANDLER_COUNT_KEY,
DFS_ROUTER_HANDLER_COUNT_DEFAULT);
int readerCount = this.conf.getInt(DFS_ROUTER_READER_COUNT_KEY,
DFS_ROUTER_READER_COUNT_DEFAULT);
int handlerQueueSize = this.conf.getInt(DFS_ROUTER_HANDLER_QUEUE_SIZE_KEY,
DFS_ROUTER_HANDLER_QUEUE_SIZE_DEFAULT);
// Override Hadoop Common IPC setting
int readerQueueSize = this.conf.getInt(DFS_ROUTER_READER_QUEUE_SIZE_KEY,
DFS_ROUTER_READER_QUEUE_SIZE_DEFAULT);
this.conf.setInt(
CommonConfigurationKeys.IPC_SERVER_RPC_READ_CONNECTION_QUEUE_SIZE_KEY,
readerQueueSize);
RPC.setProtocolEngine(this.conf, ClientNamenodeProtocolPB.class,
ProtobufRpcEngine.class);
ClientNamenodeProtocolServerSideTranslatorPB
clientProtocolServerTranslator =
new ClientNamenodeProtocolServerSideTranslatorPB(this);
BlockingService clientNNPbService = ClientNamenodeProtocol
.newReflectiveBlockingService(clientProtocolServerTranslator);
NamenodeProtocolServerSideTranslatorPB namenodeProtocolXlator =
new NamenodeProtocolServerSideTranslatorPB(this);
BlockingService nnPbService = NamenodeProtocolService
.newReflectiveBlockingService(namenodeProtocolXlator);
InetSocketAddress confRpcAddress = conf.getSocketAddr(
RBFConfigKeys.DFS_ROUTER_RPC_BIND_HOST_KEY,
RBFConfigKeys.DFS_ROUTER_RPC_ADDRESS_KEY,
RBFConfigKeys.DFS_ROUTER_RPC_ADDRESS_DEFAULT,
RBFConfigKeys.DFS_ROUTER_RPC_PORT_DEFAULT);
LOG.info("RPC server binding to {} with {} handlers for Router {}",
confRpcAddress, handlerCount, this.router.getRouterId());
this.rpcServer = new RPC.Builder(this.conf)
.setProtocol(ClientNamenodeProtocolPB.class)
.setInstance(clientNNPbService)
.setBindAddress(confRpcAddress.getHostName())
.setPort(confRpcAddress.getPort())
.setNumHandlers(handlerCount)
.setnumReaders(readerCount)
.setQueueSizePerHandler(handlerQueueSize)
.setVerbose(false)
.build();
// Add all the RPC protocols that the Router implements
DFSUtil.addPBProtocol(
conf, NamenodeProtocolPB.class, nnPbService, this.rpcServer);
// We don't want the server to log the full stack trace for some exceptions
this.rpcServer.addTerseExceptions(
RemoteException.class,
SafeModeException.class,
FileNotFoundException.class,
FileAlreadyExistsException.class,
AccessControlException.class,
LeaseExpiredException.class,
NotReplicatedYetException.class,
IOException.class);
this.rpcServer.addSuppressedLoggingExceptions(
StandbyException.class);
// The RPC-server port can be ephemeral... ensure we have the correct info
InetSocketAddress listenAddress = this.rpcServer.getListenerAddress();
this.rpcAddress = new InetSocketAddress(
confRpcAddress.getHostName(), listenAddress.getPort());
// Create metrics monitor
Class<? extends RouterRpcMonitor> rpcMonitorClass = this.conf.getClass(
RBFConfigKeys.DFS_ROUTER_METRICS_CLASS,
RBFConfigKeys.DFS_ROUTER_METRICS_CLASS_DEFAULT,
RouterRpcMonitor.class);
this.rpcMonitor = ReflectionUtils.newInstance(rpcMonitorClass, conf);
// Create the client
this.rpcClient = new RouterRpcClient(this.conf, this.router.getRouterId(),
this.namenodeResolver, this.rpcMonitor);
// Initialize modules
this.quotaCall = new Quota(this.router, this);
this.erasureCoding = new ErasureCoding(this);
this.nnProto = new RouterNamenodeProtocol(this);
}
@Override
protected void serviceInit(Configuration configuration) throws Exception {
this.conf = configuration;
if (this.rpcMonitor == null) {
LOG.error("Cannot instantiate Router RPC metrics class");
} else {
this.rpcMonitor.init(this.conf, this, this.router.getStateStore());
}
super.serviceInit(configuration);
}
@Override
protected void serviceStart() throws Exception {
if (this.rpcServer != null) {
this.rpcServer.start();
LOG.info("Router RPC up at: {}", this.getRpcAddress());
}
super.serviceStart();
}
@Override
protected void serviceStop() throws Exception {
if (this.rpcServer != null) {
this.rpcServer.stop();
}
if (rpcMonitor != null) {
this.rpcMonitor.close();
}
super.serviceStop();
}
/**
* Get the RPC client to the Namenode.
*
* @return RPC clients to the Namenodes.
*/
public RouterRpcClient getRPCClient() {
return rpcClient;
}
/**
* Get the subcluster resolver.
*
* @return Subcluster resolver.
*/
public FileSubclusterResolver getSubclusterResolver() {
return subclusterResolver;
}
/**
* Get the RPC monitor and metrics.
*
* @return RPC monitor and metrics.
*/
public RouterRpcMonitor getRPCMonitor() {
return rpcMonitor;
}
/**
* Allow access to the client RPC server for testing.
*
* @return The RPC server.
*/
@VisibleForTesting
public Server getServer() {
return rpcServer;
}
/**
* Get the RPC address of the service.
*
* @return RPC service address.
*/
public InetSocketAddress getRpcAddress() {
return rpcAddress;
}
/**
* Check if the Router is in safe mode. We should only see READ, WRITE, and
* UNCHECKED. It includes a default handler when we haven't implemented an
* operation. If not supported, it always throws an exception reporting the
* operation.
*
* @param op Category of the operation to check.
* @param supported If the operation is supported or not. If not, it will
* throw an UnsupportedOperationException.
* @throws SafeModeException If the Router is in safe mode and cannot serve
* client requests.
* @throws UnsupportedOperationException If the operation is not supported.
*/
protected void checkOperation(OperationCategory op, boolean supported)
throws StandbyException, UnsupportedOperationException {
checkOperation(op);
if (!supported) {
if (rpcMonitor != null) {
rpcMonitor.proxyOpNotImplemented();
}
String methodName = getMethodName();
throw new UnsupportedOperationException(
"Operation \"" + methodName + "\" is not supported");
}
}
/**
* Check if the Router is in safe mode. We should only see READ, WRITE, and
* UNCHECKED. This function should be called by all ClientProtocol functions.
*
* @param op Category of the operation to check.
* @throws SafeModeException If the Router is in safe mode and cannot serve
* client requests.
*/
protected void checkOperation(OperationCategory op)
throws StandbyException {
// Log the function we are currently calling.
if (rpcMonitor != null) {
rpcMonitor.startOp();
}
// Log the function we are currently calling.
if (LOG.isDebugEnabled()) {
String methodName = getMethodName();
LOG.debug("Proxying operation: {}", methodName);
}
// Store the category of the operation category for this thread
opCategory.set(op);
// We allow unchecked and read operations
if (op == OperationCategory.UNCHECKED || op == OperationCategory.READ) {
return;
}
if (safeMode) {
// Throw standby exception, router is not available
if (rpcMonitor != null) {
rpcMonitor.routerFailureSafemode();
}
throw new StandbyException("Router " + router.getRouterId() +
" is in safe mode and cannot handle " + op + " requests");
}
}
/**
* In safe mode all RPC requests will fail and return a standby exception.
* The client will try another Router, similar to the client retry logic for
* HA.
*
* @param mode True if enabled, False if disabled.
*/
public void setSafeMode(boolean mode) {
this.safeMode = mode;
}
/**
* Check if the Router is in safe mode and cannot serve RPC calls.
*
* @return If the Router is in safe mode.
*/
public boolean isInSafeMode() {
return this.safeMode;
}
@Override // ClientProtocol
public Token<DelegationTokenIdentifier> getDelegationToken(Text renewer)
throws IOException {
checkOperation(OperationCategory.WRITE, false);
return null;
}
/**
* The the delegation token from each name service.
* @param renewer
* @return Name service -> Token.
* @throws IOException
*/
public Map<FederationNamespaceInfo, Token<DelegationTokenIdentifier>>
getDelegationTokens(Text renewer) throws IOException {
checkOperation(OperationCategory.WRITE, false);
return null;
}
@Override // ClientProtocol
public long renewDelegationToken(Token<DelegationTokenIdentifier> token)
throws IOException {
checkOperation(OperationCategory.WRITE, false);
return 0;
}
@Override // ClientProtocol
public void cancelDelegationToken(Token<DelegationTokenIdentifier> token)
throws IOException {
checkOperation(OperationCategory.WRITE, false);
}
@Override // ClientProtocol
public LocatedBlocks getBlockLocations(String src, final long offset,
final long length) throws IOException {
checkOperation(OperationCategory.READ);
List<RemoteLocation> locations = getLocationsForPath(src, false);
RemoteMethod remoteMethod = new RemoteMethod("getBlockLocations",
new Class<?>[] {String.class, long.class, long.class},
new RemoteParam(), offset, length);
return (LocatedBlocks) rpcClient.invokeSequential(locations, remoteMethod,
LocatedBlocks.class, null);
}
@Override // ClientProtocol
public FsServerDefaults getServerDefaults() throws IOException {
checkOperation(OperationCategory.READ);
RemoteMethod method = new RemoteMethod("getServerDefaults");
String ns = subclusterResolver.getDefaultNamespace();
return (FsServerDefaults) rpcClient.invokeSingle(ns, method);
}
@Override // ClientProtocol
public HdfsFileStatus create(String src, FsPermission masked,
String clientName, EnumSetWritable<CreateFlag> flag,
boolean createParent, short replication, long blockSize,
CryptoProtocolVersion[] supportedVersions, String ecPolicyName)
throws IOException {
checkOperation(OperationCategory.WRITE);
if (createParent && isPathAll(src)) {
int index = src.lastIndexOf(Path.SEPARATOR);
String parent = src.substring(0, index);
LOG.debug("Creating {} requires creating parent {}", src, parent);
FsPermission parentPermissions = getParentPermission(masked);
boolean success = mkdirs(parent, parentPermissions, createParent);
if (!success) {
// This shouldn't happen as mkdirs returns true or exception
LOG.error("Couldn't create parents for {}", src);
}
}
RemoteLocation createLocation = getCreateLocation(src);
RemoteMethod method = new RemoteMethod("create",
new Class<?>[] {String.class, FsPermission.class, String.class,
EnumSetWritable.class, boolean.class, short.class,
long.class, CryptoProtocolVersion[].class,
String.class},
createLocation.getDest(), masked, clientName, flag, createParent,
replication, blockSize, supportedVersions, ecPolicyName);
return (HdfsFileStatus) rpcClient.invokeSingle(createLocation, method);
}
/**
* Get the permissions for the parent of a child with given permissions.
* Add implicit u+wx permission for parent. This is based on
* @{FSDirMkdirOp#addImplicitUwx}.
* @param mask The permission mask of the child.
* @return The permission mask of the parent.
*/
private static FsPermission getParentPermission(final FsPermission mask) {
FsPermission ret = new FsPermission(
mask.getUserAction().or(FsAction.WRITE_EXECUTE),
mask.getGroupAction(),
mask.getOtherAction());
return ret;
}
/**
* Get the location to create a file. It checks if the file already existed
* in one of the locations.
*
* @param src Path of the file to check.
* @return The remote location for this file.
* @throws IOException If the file has no creation location.
*/
protected RemoteLocation getCreateLocation(final String src)
throws IOException {
final List<RemoteLocation> locations = getLocationsForPath(src, true);
if (locations == null || locations.isEmpty()) {
throw new IOException("Cannot get locations to create " + src);
}
RemoteLocation createLocation = locations.get(0);
if (locations.size() > 1) {
try {
// Check if this file already exists in other subclusters
LocatedBlocks existingLocation = getBlockLocations(src, 0, 1);
if (existingLocation != null) {
// Forward to the existing location and let the NN handle the error
LocatedBlock existingLocationLastLocatedBlock =
existingLocation.getLastLocatedBlock();
if (existingLocationLastLocatedBlock == null) {
// The block has no blocks yet, check for the meta data
for (RemoteLocation location : locations) {
RemoteMethod method = new RemoteMethod("getFileInfo",
new Class<?>[] {String.class}, new RemoteParam());
if (rpcClient.invokeSingle(location, method) != null) {
createLocation = location;
break;
}
}
} else {
ExtendedBlock existingLocationLastBlock =
existingLocationLastLocatedBlock.getBlock();
String blockPoolId = existingLocationLastBlock.getBlockPoolId();
createLocation = getLocationForPath(src, true, blockPoolId);
}
}
} catch (FileNotFoundException fne) {
// Ignore if the file is not found
}
}
return createLocation;
}
// Medium
@Override // ClientProtocol
public LastBlockWithStatus append(String src, final String clientName,
final EnumSetWritable<CreateFlag> flag) throws IOException {
checkOperation(OperationCategory.WRITE);
List<RemoteLocation> locations = getLocationsForPath(src, true);
RemoteMethod method = new RemoteMethod("append",
new Class<?>[] {String.class, String.class, EnumSetWritable.class},
new RemoteParam(), clientName, flag);
return rpcClient.invokeSequential(
locations, method, LastBlockWithStatus.class, null);
}
// Low
@Override // ClientProtocol
public boolean recoverLease(String src, String clientName)
throws IOException {
checkOperation(OperationCategory.WRITE);
final List<RemoteLocation> locations = getLocationsForPath(src, true);
RemoteMethod method = new RemoteMethod("recoverLease",
new Class<?>[] {String.class, String.class}, new RemoteParam(),
clientName);
Object result = rpcClient.invokeSequential(
locations, method, Boolean.class, Boolean.TRUE);
return (boolean) result;
}
@Override // ClientProtocol
public boolean setReplication(String src, short replication)
throws IOException {
checkOperation(OperationCategory.WRITE);
List<RemoteLocation> locations = getLocationsForPath(src, true);
RemoteMethod method = new RemoteMethod("setReplication",
new Class<?>[] {String.class, short.class}, new RemoteParam(),
replication);
Object result = rpcClient.invokeSequential(
locations, method, Boolean.class, Boolean.TRUE);
return (boolean) result;
}
@Override
public void setStoragePolicy(String src, String policyName)
throws IOException {
checkOperation(OperationCategory.WRITE);
List<RemoteLocation> locations = getLocationsForPath(src, true);
RemoteMethod method = new RemoteMethod("setStoragePolicy",
new Class<?>[] {String.class, String.class},
new RemoteParam(), policyName);
rpcClient.invokeSequential(locations, method, null, null);
}
@Override
public BlockStoragePolicy[] getStoragePolicies() throws IOException {
checkOperation(OperationCategory.READ);
RemoteMethod method = new RemoteMethod("getStoragePolicies");
String ns = subclusterResolver.getDefaultNamespace();
return (BlockStoragePolicy[]) rpcClient.invokeSingle(ns, method);
}
@Override // ClientProtocol
public void setPermission(String src, FsPermission permissions)
throws IOException {
checkOperation(OperationCategory.WRITE);
final List<RemoteLocation> locations = getLocationsForPath(src, true);
RemoteMethod method = new RemoteMethod("setPermission",
new Class<?>[] {String.class, FsPermission.class},
new RemoteParam(), permissions);
if (isPathAll(src)) {
rpcClient.invokeConcurrent(locations, method);
} else {
rpcClient.invokeSequential(locations, method);
}
}
@Override // ClientProtocol
public void setOwner(String src, String username, String groupname)
throws IOException {
checkOperation(OperationCategory.WRITE);
final List<RemoteLocation> locations = getLocationsForPath(src, true);
RemoteMethod method = new RemoteMethod("setOwner",
new Class<?>[] {String.class, String.class, String.class},
new RemoteParam(), username, groupname);
if (isPathAll(src)) {
rpcClient.invokeConcurrent(locations, method);
} else {
rpcClient.invokeSequential(locations, method);
}
}
/**
* Excluded and favored nodes are not verified and will be ignored by
* placement policy if they are not in the same nameservice as the file.
*/
@Override // ClientProtocol
public LocatedBlock addBlock(String src, String clientName,
ExtendedBlock previous, DatanodeInfo[] excludedNodes, long fileId,
String[] favoredNodes, EnumSet<AddBlockFlag> addBlockFlags)
throws IOException {
checkOperation(OperationCategory.WRITE);
final List<RemoteLocation> locations = getLocationsForPath(src, true);
RemoteMethod method = new RemoteMethod("addBlock",
new Class<?>[] {String.class, String.class, ExtendedBlock.class,
DatanodeInfo[].class, long.class, String[].class,
EnumSet.class},
new RemoteParam(), clientName, previous, excludedNodes, fileId,
favoredNodes, addBlockFlags);
// TODO verify the excludedNodes and favoredNodes are acceptable to this NN
return (LocatedBlock) rpcClient.invokeSequential(
locations, method, LocatedBlock.class, null);
}
/**
* Excluded nodes are not verified and will be ignored by placement if they
* are not in the same nameservice as the file.
*/
@Override // ClientProtocol
public LocatedBlock getAdditionalDatanode(final String src, final long fileId,
final ExtendedBlock blk, final DatanodeInfo[] existings,
final String[] existingStorageIDs, final DatanodeInfo[] excludes,
final int numAdditionalNodes, final String clientName)
throws IOException {
checkOperation(OperationCategory.READ);
final List<RemoteLocation> locations = getLocationsForPath(src, false);
RemoteMethod method = new RemoteMethod("getAdditionalDatanode",
new Class<?>[] {String.class, long.class, ExtendedBlock.class,
DatanodeInfo[].class, String[].class,
DatanodeInfo[].class, int.class, String.class},
new RemoteParam(), fileId, blk, existings, existingStorageIDs, excludes,
numAdditionalNodes, clientName);
return (LocatedBlock) rpcClient.invokeSequential(
locations, method, LocatedBlock.class, null);
}
@Override // ClientProtocol
public void abandonBlock(ExtendedBlock b, long fileId, String src,
String holder) throws IOException {
checkOperation(OperationCategory.WRITE);
RemoteMethod method = new RemoteMethod("abandonBlock",
new Class<?>[] {ExtendedBlock.class, long.class, String.class,
String.class},
b, fileId, new RemoteParam(), holder);
rpcClient.invokeSingle(b, method);
}
@Override // ClientProtocol
public boolean complete(String src, String clientName, ExtendedBlock last,
long fileId) throws IOException {
checkOperation(OperationCategory.WRITE);
final List<RemoteLocation> locations = getLocationsForPath(src, true);
RemoteMethod method = new RemoteMethod("complete",
new Class<?>[] {String.class, String.class, ExtendedBlock.class,
long.class},
new RemoteParam(), clientName, last, fileId);
// Complete can return true/false, so don't expect a result
return ((Boolean) rpcClient.invokeSequential(
locations, method, Boolean.class, null)).booleanValue();
}
@Override // ClientProtocol
public LocatedBlock updateBlockForPipeline(
ExtendedBlock block, String clientName) throws IOException {
checkOperation(OperationCategory.WRITE);
RemoteMethod method = new RemoteMethod("updateBlockForPipeline",
new Class<?>[] {ExtendedBlock.class, String.class},
block, clientName);
return (LocatedBlock) rpcClient.invokeSingle(block, method);
}
/**
* Datanode are not verified to be in the same nameservice as the old block.
* TODO This may require validation.
*/
@Override // ClientProtocol
public void updatePipeline(String clientName, ExtendedBlock oldBlock,
ExtendedBlock newBlock, DatanodeID[] newNodes, String[] newStorageIDs)
throws IOException {
checkOperation(OperationCategory.WRITE);
RemoteMethod method = new RemoteMethod("updatePipeline",
new Class<?>[] {String.class, ExtendedBlock.class, ExtendedBlock.class,
DatanodeID[].class, String[].class},
clientName, oldBlock, newBlock, newNodes, newStorageIDs);
rpcClient.invokeSingle(oldBlock, method);
}
@Override // ClientProtocol
public long getPreferredBlockSize(String src) throws IOException {
checkOperation(OperationCategory.READ);
final List<RemoteLocation> locations = getLocationsForPath(src, true);
RemoteMethod method = new RemoteMethod("getPreferredBlockSize",
new Class<?>[] {String.class}, new RemoteParam());
return ((Long) rpcClient.invokeSequential(
locations, method, Long.class, null)).longValue();
}
/**
* Determines combinations of eligible src/dst locations for a rename. A
* rename cannot change the namespace. Renames are only allowed if there is an
* eligible dst location in the same namespace as the source.
*
* @param srcLocations List of all potential source destinations where the
* path may be located. On return this list is trimmed to include
* only the paths that have corresponding destinations in the same
* namespace.
* @param dst The destination path
* @return A map of all eligible source namespaces and their corresponding
* replacement value.
* @throws IOException If the dst paths could not be determined.
*/
private RemoteParam getRenameDestinations(
final List<RemoteLocation> srcLocations, final String dst)
throws IOException {
final List<RemoteLocation> dstLocations = getLocationsForPath(dst, true);
final Map<RemoteLocation, String> dstMap = new HashMap<>();
Iterator<RemoteLocation> iterator = srcLocations.iterator();
while (iterator.hasNext()) {
RemoteLocation srcLocation = iterator.next();
RemoteLocation eligibleDst =
getFirstMatchingLocation(srcLocation, dstLocations);
if (eligibleDst != null) {
// Use this dst for this source location
dstMap.put(srcLocation, eligibleDst.getDest());
} else {
// This src destination is not valid, remove from the source list
iterator.remove();
}
}
return new RemoteParam(dstMap);
}
/**
* Get first matching location.
*
* @param location Location we are looking for.
* @param locations List of locations.
* @return The first matchin location in the list.
*/
private RemoteLocation getFirstMatchingLocation(RemoteLocation location,
List<RemoteLocation> locations) {
for (RemoteLocation loc : locations) {
if (loc.getNameserviceId().equals(location.getNameserviceId())) {
// Return first matching location
return loc;
}
}
return null;
}
@Deprecated
@Override // ClientProtocol
public boolean rename(final String src, final String dst)
throws IOException {
checkOperation(OperationCategory.WRITE);
final List<RemoteLocation> srcLocations =
getLocationsForPath(src, true, false);
// srcLocations may be trimmed by getRenameDestinations()
final List<RemoteLocation> locs = new LinkedList<>(srcLocations);
RemoteParam dstParam = getRenameDestinations(locs, dst);
if (locs.isEmpty()) {
throw new IOException(
"Rename of " + src + " to " + dst + " is not allowed," +
" no eligible destination in the same namespace was found.");
}
RemoteMethod method = new RemoteMethod("rename",
new Class<?>[] {String.class, String.class},
new RemoteParam(), dstParam);
return ((Boolean) rpcClient.invokeSequential(
locs, method, Boolean.class, Boolean.TRUE)).booleanValue();
}
@Override // ClientProtocol
public void rename2(final String src, final String dst,
final Options.Rename... options) throws IOException {
checkOperation(OperationCategory.WRITE);
final List<RemoteLocation> srcLocations =
getLocationsForPath(src, true, false);
// srcLocations may be trimmed by getRenameDestinations()
final List<RemoteLocation> locs = new LinkedList<>(srcLocations);
RemoteParam dstParam = getRenameDestinations(locs, dst);
if (locs.isEmpty()) {
throw new IOException(
"Rename of " + src + " to " + dst + " is not allowed," +
" no eligible destination in the same namespace was found.");
}
RemoteMethod method = new RemoteMethod("rename2",
new Class<?>[] {String.class, String.class, options.getClass()},
new RemoteParam(), dstParam, options);
rpcClient.invokeSequential(locs, method, null, null);
}
@Override // ClientProtocol
public void concat(String trg, String[] src) throws IOException {
checkOperation(OperationCategory.WRITE);
// See if the src and target files are all in the same namespace
LocatedBlocks targetBlocks = getBlockLocations(trg, 0, 1);
if (targetBlocks == null) {
throw new IOException("Cannot locate blocks for target file - " + trg);
}
LocatedBlock lastLocatedBlock = targetBlocks.getLastLocatedBlock();
String targetBlockPoolId = lastLocatedBlock.getBlock().getBlockPoolId();
for (String source : src) {
LocatedBlocks sourceBlocks = getBlockLocations(source, 0, 1);
if (sourceBlocks == null) {
throw new IOException(
"Cannot located blocks for source file " + source);
}
String sourceBlockPoolId =
sourceBlocks.getLastLocatedBlock().getBlock().getBlockPoolId();
if (!sourceBlockPoolId.equals(targetBlockPoolId)) {
throw new IOException("Cannot concatenate source file " + source
+ " because it is located in a different namespace"
+ " with block pool id " + sourceBlockPoolId
+ " from the target file with block pool id "
+ targetBlockPoolId);
}
}
// Find locations in the matching namespace.
final RemoteLocation targetDestination =
getLocationForPath(trg, true, targetBlockPoolId);
String[] sourceDestinations = new String[src.length];
for (int i = 0; i < src.length; i++) {
String sourceFile = src[i];
RemoteLocation location =
getLocationForPath(sourceFile, true, targetBlockPoolId);
sourceDestinations[i] = location.getDest();
}
// Invoke
RemoteMethod method = new RemoteMethod("concat",
new Class<?>[] {String.class, String[].class},
targetDestination.getDest(), sourceDestinations);
rpcClient.invokeSingle(targetDestination, method);
}
@Override // ClientProtocol
public boolean truncate(String src, long newLength, String clientName)
throws IOException {
checkOperation(OperationCategory.WRITE);
final List<RemoteLocation> locations = getLocationsForPath(src, true);
RemoteMethod method = new RemoteMethod("truncate",
new Class<?>[] {String.class, long.class, String.class},
new RemoteParam(), newLength, clientName);
return ((Boolean) rpcClient.invokeSequential(locations, method,
Boolean.class, Boolean.TRUE)).booleanValue();
}
@Override // ClientProtocol
public boolean delete(String src, boolean recursive) throws IOException {
checkOperation(OperationCategory.WRITE);
final List<RemoteLocation> locations =
getLocationsForPath(src, true, false);
RemoteMethod method = new RemoteMethod("delete",
new Class<?>[] {String.class, boolean.class}, new RemoteParam(),
recursive);
if (isPathAll(src)) {
return rpcClient.invokeAll(locations, method);
} else {
return rpcClient.invokeSequential(locations, method,
Boolean.class, Boolean.TRUE).booleanValue();
}
}
@Override // ClientProtocol
public boolean mkdirs(String src, FsPermission masked, boolean createParent)
throws IOException {
checkOperation(OperationCategory.WRITE);
final List<RemoteLocation> locations = getLocationsForPath(src, true);
RemoteMethod method = new RemoteMethod("mkdirs",
new Class<?>[] {String.class, FsPermission.class, boolean.class},
new RemoteParam(), masked, createParent);
// Create in all locations
if (isPathAll(src)) {
return rpcClient.invokeAll(locations, method);
}
if (locations.size() > 1) {
// Check if this directory already exists
try {
HdfsFileStatus fileStatus = getFileInfo(src);
if (fileStatus != null) {
// When existing, the NN doesn't return an exception; return true
return true;
}
} catch (IOException ioe) {
// Can't query if this file exists or not.
LOG.error("Error requesting file info for path {} while proxing mkdirs",
src, ioe);
}
}
RemoteLocation firstLocation = locations.get(0);
return ((Boolean) rpcClient.invokeSingle(firstLocation, method))
.booleanValue();
}
@Override // ClientProtocol
public void renewLease(String clientName) throws IOException {
checkOperation(OperationCategory.WRITE);
RemoteMethod method = new RemoteMethod("renewLease",
new Class<?>[] {String.class}, clientName);
Set<FederationNamespaceInfo> nss = namenodeResolver.getNamespaces();
rpcClient.invokeConcurrent(nss, method, false, false);
}
@Override // ClientProtocol
public DirectoryListing getListing(String src, byte[] startAfter,
boolean needLocation) throws IOException {
checkOperation(OperationCategory.READ);
// Locate the dir and fetch the listing
final List<RemoteLocation> locations = getLocationsForPath(src, true);
RemoteMethod method = new RemoteMethod("getListing",
new Class<?>[] {String.class, startAfter.getClass(), boolean.class},
new RemoteParam(), startAfter, needLocation);
Map<RemoteLocation, DirectoryListing> listings =
rpcClient.invokeConcurrent(
locations, method, false, false, DirectoryListing.class);
Map<String, HdfsFileStatus> nnListing = new TreeMap<>();
int totalRemainingEntries = 0;
int remainingEntries = 0;
boolean namenodeListingExists = false;
if (listings != null) {
// Check the subcluster listing with the smallest name
String lastName = null;
for (Entry<RemoteLocation, DirectoryListing> entry :
listings.entrySet()) {
RemoteLocation location = entry.getKey();
DirectoryListing listing = entry.getValue();
if (listing == null) {
LOG.debug("Cannot get listing from {}", location);
} else {
totalRemainingEntries += listing.getRemainingEntries();
HdfsFileStatus[] partialListing = listing.getPartialListing();
int length = partialListing.length;
if (length > 0) {
HdfsFileStatus lastLocalEntry = partialListing[length-1];
String lastLocalName = lastLocalEntry.getLocalName();
if (lastName == null || lastName.compareTo(lastLocalName) > 0) {
lastName = lastLocalName;
}
}
}
}
// Add existing entries
for (Object value : listings.values()) {
DirectoryListing listing = (DirectoryListing) value;
if (listing != null) {
namenodeListingExists = true;
for (HdfsFileStatus file : listing.getPartialListing()) {
String filename = file.getLocalName();
if (totalRemainingEntries > 0 && filename.compareTo(lastName) > 0) {
// Discarding entries further than the lastName
remainingEntries++;
} else {
nnListing.put(filename, file);
}
}
remainingEntries += listing.getRemainingEntries();
}
}
}
// Add mount points at this level in the tree
final List<String> children = subclusterResolver.getMountPoints(src);
if (children != null) {
// Get the dates for each mount point
Map<String, Long> dates = getMountPointDates(src);
// Create virtual folder with the mount name
for (String child : children) {
long date = 0;
if (dates != null && dates.containsKey(child)) {
date = dates.get(child);
}
// TODO add number of children
HdfsFileStatus dirStatus = getMountPointStatus(child, 0, date);
// This may overwrite existing listing entries with the mount point
// TODO don't add if already there?
nnListing.put(child, dirStatus);
}
}
if (!namenodeListingExists && nnListing.size() == 0) {
// NN returns a null object if the directory cannot be found and has no
// listing. If we didn't retrieve any NN listing data, and there are no
// mount points here, return null.
return null;
}
// Generate combined listing
HdfsFileStatus[] combinedData = new HdfsFileStatus[nnListing.size()];
combinedData = nnListing.values().toArray(combinedData);
return new DirectoryListing(combinedData, remainingEntries);
}
@Override // ClientProtocol
public HdfsFileStatus getFileInfo(String src) throws IOException {
checkOperation(OperationCategory.READ);
final List<RemoteLocation> locations = getLocationsForPath(src, false);
RemoteMethod method = new RemoteMethod("getFileInfo",
new Class<?>[] {String.class}, new RemoteParam());
HdfsFileStatus ret = null;
// If it's a directory, we check in all locations
if (isPathAll(src)) {
ret = getFileInfoAll(locations, method);
} else {
// Check for file information sequentially
ret = (HdfsFileStatus) rpcClient.invokeSequential(
locations, method, HdfsFileStatus.class, null);
}
// If there is no real path, check mount points
if (ret == null) {
List<String> children = subclusterResolver.getMountPoints(src);
if (children != null && !children.isEmpty()) {
Map<String, Long> dates = getMountPointDates(src);
long date = 0;
if (dates != null && dates.containsKey(src)) {
date = dates.get(src);
}
ret = getMountPointStatus(src, children.size(), date);
}
}
return ret;
}
/**
* Get the file info from all the locations.
*
* @param locations Locations to check.
* @param method The file information method to run.
* @return The first file info if it's a file, the directory if it's
* everywhere.
* @throws IOException If all the locations throw an exception.
*/
private HdfsFileStatus getFileInfoAll(final List<RemoteLocation> locations,
final RemoteMethod method) throws IOException {
// Get the file info from everybody
Map<RemoteLocation, HdfsFileStatus> results =
rpcClient.invokeConcurrent(locations, method, HdfsFileStatus.class);
// We return the first file
HdfsFileStatus dirStatus = null;
for (RemoteLocation loc : locations) {
HdfsFileStatus fileStatus = results.get(loc);
if (fileStatus != null) {
if (!fileStatus.isDirectory()) {
return fileStatus;
} else if (dirStatus == null) {
dirStatus = fileStatus;
}
}
}
return dirStatus;
}
@Override // ClientProtocol
public boolean isFileClosed(String src) throws IOException {
checkOperation(OperationCategory.READ);
final List<RemoteLocation> locations = getLocationsForPath(src, false);
RemoteMethod method = new RemoteMethod("isFileClosed",
new Class<?>[] {String.class}, new RemoteParam());
return ((Boolean) rpcClient.invokeSequential(
locations, method, Boolean.class, Boolean.TRUE)).booleanValue();
}
@Override // ClientProtocol
public HdfsFileStatus getFileLinkInfo(String src) throws IOException {
checkOperation(OperationCategory.READ);
final List<RemoteLocation> locations = getLocationsForPath(src, false);
RemoteMethod method = new RemoteMethod("getFileLinkInfo",
new Class<?>[] {String.class}, new RemoteParam());
return (HdfsFileStatus) rpcClient.invokeSequential(
locations, method, HdfsFileStatus.class, null);
}
@Override
public HdfsLocatedFileStatus getLocatedFileInfo(String src,
boolean needBlockToken) throws IOException {
checkOperation(OperationCategory.READ);
final List<RemoteLocation> locations = getLocationsForPath(src, false);
RemoteMethod method = new RemoteMethod("getLocatedFileInfo",
new Class<?>[] {String.class, boolean.class}, new RemoteParam(),
Boolean.valueOf(needBlockToken));
return (HdfsLocatedFileStatus) rpcClient.invokeSequential(
locations, method, HdfsFileStatus.class, null);
}
@Override // ClientProtocol
public long[] getStats() throws IOException {
checkOperation(OperationCategory.UNCHECKED);
RemoteMethod method = new RemoteMethod("getStats");
Set<FederationNamespaceInfo> nss = namenodeResolver.getNamespaces();
Map<FederationNamespaceInfo, long[]> results =
rpcClient.invokeConcurrent(nss, method, true, false, long[].class);
long[] combinedData = new long[STATS_ARRAY_LENGTH];
for (long[] data : results.values()) {
for (int i = 0; i < combinedData.length && i < data.length; i++) {
if (data[i] >= 0) {
combinedData[i] += data[i];
}
}
}
return combinedData;
}
@Override // ClientProtocol
public DatanodeInfo[] getDatanodeReport(DatanodeReportType type)
throws IOException {
checkOperation(OperationCategory.UNCHECKED);
return getDatanodeReport(type, true, 0);
}
/**
* Get the datanode report with a timeout.
* @param type Type of the datanode.
* @param requireResponse If we require all the namespaces to report.
* @param timeOutMs Time out for the reply in milliseconds.
* @return List of datanodes.
* @throws IOException If it cannot get the report.
*/
public DatanodeInfo[] getDatanodeReport(
DatanodeReportType type, boolean requireResponse, long timeOutMs)
throws IOException {
checkOperation(OperationCategory.UNCHECKED);
Map<String, DatanodeInfo> datanodesMap = new LinkedHashMap<>();
RemoteMethod method = new RemoteMethod("getDatanodeReport",
new Class<?>[] {DatanodeReportType.class}, type);
Set<FederationNamespaceInfo> nss = namenodeResolver.getNamespaces();
Map<FederationNamespaceInfo, DatanodeInfo[]> results =
rpcClient.invokeConcurrent(nss, method, requireResponse, false,
timeOutMs, DatanodeInfo[].class);
for (Entry<FederationNamespaceInfo, DatanodeInfo[]> entry :
results.entrySet()) {
FederationNamespaceInfo ns = entry.getKey();
DatanodeInfo[] result = entry.getValue();
for (DatanodeInfo node : result) {
String nodeId = node.getXferAddr();
if (!datanodesMap.containsKey(nodeId)) {
// Add the subcluster as a suffix to the network location
node.setNetworkLocation(
NodeBase.PATH_SEPARATOR_STR + ns.getNameserviceId() +
node.getNetworkLocation());
datanodesMap.put(nodeId, node);
} else {
LOG.debug("{} is in multiple subclusters", nodeId);
}
}
}
// Map -> Array
Collection<DatanodeInfo> datanodes = datanodesMap.values();
return toArray(datanodes, DatanodeInfo.class);
}
@Override // ClientProtocol
public DatanodeStorageReport[] getDatanodeStorageReport(
DatanodeReportType type) throws IOException {
checkOperation(OperationCategory.UNCHECKED);
Map<String, DatanodeStorageReport[]> dnSubcluster =
getDatanodeStorageReportMap(type);
// Avoid repeating machines in multiple subclusters
Map<String, DatanodeStorageReport> datanodesMap = new LinkedHashMap<>();
for (DatanodeStorageReport[] dns : dnSubcluster.values()) {
for (DatanodeStorageReport dn : dns) {
DatanodeInfo dnInfo = dn.getDatanodeInfo();
String nodeId = dnInfo.getXferAddr();
if (!datanodesMap.containsKey(nodeId)) {
datanodesMap.put(nodeId, dn);
}
// TODO merge somehow, right now it just takes the first one
}
}
Collection<DatanodeStorageReport> datanodes = datanodesMap.values();
DatanodeStorageReport[] combinedData =
new DatanodeStorageReport[datanodes.size()];
combinedData = datanodes.toArray(combinedData);
return combinedData;
}
/**
* Get the list of datanodes per subcluster.
*
* @param type Type of the datanodes to get.
* @return nsId -> datanode list.
* @throws IOException
*/
public Map<String, DatanodeStorageReport[]> getDatanodeStorageReportMap(
DatanodeReportType type) throws IOException {
Map<String, DatanodeStorageReport[]> ret = new LinkedHashMap<>();
RemoteMethod method = new RemoteMethod("getDatanodeStorageReport",
new Class<?>[] {DatanodeReportType.class}, type);
Set<FederationNamespaceInfo> nss = namenodeResolver.getNamespaces();
Map<FederationNamespaceInfo, DatanodeStorageReport[]> results =
rpcClient.invokeConcurrent(
nss, method, true, false, DatanodeStorageReport[].class);
for (Entry<FederationNamespaceInfo, DatanodeStorageReport[]> entry :
results.entrySet()) {
FederationNamespaceInfo ns = entry.getKey();
String nsId = ns.getNameserviceId();
DatanodeStorageReport[] result = entry.getValue();
ret.put(nsId, result);
}
return ret;
}
@Override // ClientProtocol
public boolean setSafeMode(SafeModeAction action, boolean isChecked)
throws IOException {
checkOperation(OperationCategory.WRITE);
// Set safe mode in all the name spaces
RemoteMethod method = new RemoteMethod("setSafeMode",
new Class<?>[] {SafeModeAction.class, boolean.class},
action, isChecked);
Set<FederationNamespaceInfo> nss = namenodeResolver.getNamespaces();
Map<FederationNamespaceInfo, Boolean> results =
rpcClient.invokeConcurrent(
nss, method, true, !isChecked, Boolean.class);
// We only report true if all the name space are in safe mode
int numSafemode = 0;
for (boolean safemode : results.values()) {
if (safemode) {
numSafemode++;
}
}
return numSafemode == results.size();
}
@Override // ClientProtocol
public boolean restoreFailedStorage(String arg) throws IOException {
checkOperation(OperationCategory.UNCHECKED);
RemoteMethod method = new RemoteMethod("restoreFailedStorage",
new Class<?>[] {String.class}, arg);
final Set<FederationNamespaceInfo> nss = namenodeResolver.getNamespaces();
Map<FederationNamespaceInfo, Boolean> ret =
rpcClient.invokeConcurrent(nss, method, true, false, Boolean.class);
boolean success = true;
for (boolean s : ret.values()) {
if (!s) {
success = false;
break;
}
}
return success;
}
@Override // ClientProtocol
public boolean saveNamespace(long timeWindow, long txGap) throws IOException {
checkOperation(OperationCategory.UNCHECKED);
RemoteMethod method = new RemoteMethod("saveNamespace",
new Class<?>[] {Long.class, Long.class}, timeWindow, txGap);
final Set<FederationNamespaceInfo> nss = namenodeResolver.getNamespaces();
Map<FederationNamespaceInfo, Boolean> ret =
rpcClient.invokeConcurrent(nss, method, true, false, boolean.class);
boolean success = true;
for (boolean s : ret.values()) {
if (!s) {
success = false;
break;
}
}
return success;
}
@Override // ClientProtocol
public long rollEdits() throws IOException {
checkOperation(OperationCategory.WRITE);
RemoteMethod method = new RemoteMethod("rollEdits", new Class<?>[] {});
final Set<FederationNamespaceInfo> nss = namenodeResolver.getNamespaces();
Map<FederationNamespaceInfo, Long> ret =
rpcClient.invokeConcurrent(nss, method, true, false, long.class);
// Return the maximum txid
long txid = 0;
for (long t : ret.values()) {
if (t > txid) {
txid = t;
}
}
return txid;
}
@Override // ClientProtocol
public void refreshNodes() throws IOException {
checkOperation(OperationCategory.UNCHECKED);
RemoteMethod method = new RemoteMethod("refreshNodes", new Class<?>[] {});
final Set<FederationNamespaceInfo> nss = namenodeResolver.getNamespaces();
rpcClient.invokeConcurrent(nss, method, true, true);
}
@Override // ClientProtocol
public void finalizeUpgrade() throws IOException {
checkOperation(OperationCategory.UNCHECKED);
RemoteMethod method = new RemoteMethod("finalizeUpgrade",
new Class<?>[] {});
final Set<FederationNamespaceInfo> nss = namenodeResolver.getNamespaces();
rpcClient.invokeConcurrent(nss, method, true, false);
}
@Override // ClientProtocol
public boolean upgradeStatus() throws IOException {
String methodName = getMethodName();
throw new UnsupportedOperationException(
"Operation \"" + methodName + "\" is not supported");
}
@Override // ClientProtocol
public RollingUpgradeInfo rollingUpgrade(RollingUpgradeAction action)
throws IOException {
checkOperation(OperationCategory.READ);
RemoteMethod method = new RemoteMethod("rollingUpgrade",
new Class<?>[] {RollingUpgradeAction.class}, action);
final Set<FederationNamespaceInfo> nss = namenodeResolver.getNamespaces();
Map<FederationNamespaceInfo, RollingUpgradeInfo> ret =
rpcClient.invokeConcurrent(
nss, method, true, false, RollingUpgradeInfo.class);
// Return the first rolling upgrade info
RollingUpgradeInfo info = null;
for (RollingUpgradeInfo infoNs : ret.values()) {
if (info == null && infoNs != null) {
info = infoNs;
}
}
return info;
}
@Override // ClientProtocol
public void metaSave(String filename) throws IOException {
checkOperation(OperationCategory.UNCHECKED);
RemoteMethod method = new RemoteMethod("metaSave",
new Class<?>[] {String.class}, filename);
final Set<FederationNamespaceInfo> nss = namenodeResolver.getNamespaces();
rpcClient.invokeConcurrent(nss, method, true, false);
}
@Override // ClientProtocol
public CorruptFileBlocks listCorruptFileBlocks(String path, String cookie)
throws IOException {
checkOperation(OperationCategory.READ);
final List<RemoteLocation> locations = getLocationsForPath(path, false);
RemoteMethod method = new RemoteMethod("listCorruptFileBlocks",
new Class<?>[] {String.class, String.class},
new RemoteParam(), cookie);
return (CorruptFileBlocks) rpcClient.invokeSequential(
locations, method, CorruptFileBlocks.class, null);
}
@Override // ClientProtocol
public void setBalancerBandwidth(long bandwidth) throws IOException {
checkOperation(OperationCategory.UNCHECKED);
RemoteMethod method = new RemoteMethod("setBalancerBandwidth",
new Class<?>[] {Long.class}, bandwidth);
final Set<FederationNamespaceInfo> nss = namenodeResolver.getNamespaces();
rpcClient.invokeConcurrent(nss, method, true, false);
}
@Override // ClientProtocol
public ContentSummary getContentSummary(String path) throws IOException {
checkOperation(OperationCategory.READ);
// Get the summaries from regular files
Collection<ContentSummary> summaries = new LinkedList<>();
FileNotFoundException notFoundException = null;
try {
final List<RemoteLocation> locations = getLocationsForPath(path, false);
RemoteMethod method = new RemoteMethod("getContentSummary",
new Class<?>[] {String.class}, new RemoteParam());
Map<RemoteLocation, ContentSummary> results =
rpcClient.invokeConcurrent(
locations, method, false, false, ContentSummary.class);
summaries.addAll(results.values());
} catch (FileNotFoundException e) {
notFoundException = e;
}
// Add mount points at this level in the tree
final List<String> children = subclusterResolver.getMountPoints(path);
if (children != null) {
for (String child : children) {
Path childPath = new Path(path, child);
try {
ContentSummary mountSummary = getContentSummary(childPath.toString());
if (mountSummary != null) {
summaries.add(mountSummary);
}
} catch (Exception e) {
LOG.error("Cannot get content summary for mount {}: {}",
childPath, e.getMessage());
}
}
}
// Throw original exception if no original nor mount points
if (summaries.isEmpty() && notFoundException != null) {
throw notFoundException;
}
return aggregateContentSummary(summaries);
}
/**
* Aggregate content summaries for each subcluster.
*
* @param summaries Collection of individual summaries.
* @return Aggregated content summary.
*/
private ContentSummary aggregateContentSummary(
Collection<ContentSummary> summaries) {
if (summaries.size() == 1) {
return summaries.iterator().next();
}
long length = 0;
long fileCount = 0;
long directoryCount = 0;
long quota = 0;
long spaceConsumed = 0;
long spaceQuota = 0;
for (ContentSummary summary : summaries) {
length += summary.getLength();
fileCount += summary.getFileCount();
directoryCount += summary.getDirectoryCount();
quota += summary.getQuota();
spaceConsumed += summary.getSpaceConsumed();
spaceQuota += summary.getSpaceQuota();
}
ContentSummary ret = new ContentSummary.Builder()
.length(length)
.fileCount(fileCount)
.directoryCount(directoryCount)
.quota(quota)
.spaceConsumed(spaceConsumed)
.spaceQuota(spaceQuota)
.build();
return ret;
}
@Override // ClientProtocol
public void fsync(String src, long fileId, String clientName,
long lastBlockLength) throws IOException {
checkOperation(OperationCategory.WRITE);
final List<RemoteLocation> locations = getLocationsForPath(src, true);
RemoteMethod method = new RemoteMethod("fsync",
new Class<?>[] {String.class, long.class, String.class, long.class },
new RemoteParam(), fileId, clientName, lastBlockLength);
rpcClient.invokeSequential(locations, method);
}
@Override // ClientProtocol
public void setTimes(String src, long mtime, long atime) throws IOException {
checkOperation(OperationCategory.WRITE);
final List<RemoteLocation> locations = getLocationsForPath(src, true);
RemoteMethod method = new RemoteMethod("setTimes",
new Class<?>[] {String.class, long.class, long.class},
new RemoteParam(), mtime, atime);
rpcClient.invokeSequential(locations, method);
}
@Override // ClientProtocol
public void createSymlink(String target, String link, FsPermission dirPerms,
boolean createParent) throws IOException {
checkOperation(OperationCategory.WRITE);
// TODO Verify that the link location is in the same NS as the targets
final List<RemoteLocation> targetLocations =
getLocationsForPath(target, true);
final List<RemoteLocation> linkLocations =
getLocationsForPath(link, true);
RemoteLocation linkLocation = linkLocations.get(0);
RemoteMethod method = new RemoteMethod("createSymlink",
new Class<?>[] {String.class, String.class, FsPermission.class,
boolean.class},
new RemoteParam(), linkLocation.getDest(), dirPerms, createParent);
rpcClient.invokeSequential(targetLocations, method);
}
@Override // ClientProtocol
public String getLinkTarget(String path) throws IOException {
checkOperation(OperationCategory.READ);
final List<RemoteLocation> locations = getLocationsForPath(path, true);
RemoteMethod method = new RemoteMethod("getLinkTarget",
new Class<?>[] {String.class}, new RemoteParam());
return (String) rpcClient.invokeSequential(
locations, method, String.class, null);
}
@Override // Client Protocol
public void allowSnapshot(String snapshotRoot) throws IOException {
checkOperation(OperationCategory.WRITE, false);
}
@Override // Client Protocol
public void disallowSnapshot(String snapshot) throws IOException {
checkOperation(OperationCategory.WRITE, false);
}
@Override // ClientProtocol
public void renameSnapshot(String snapshotRoot, String snapshotOldName,
String snapshotNewName) throws IOException {
checkOperation(OperationCategory.WRITE, false);
}
@Override // Client Protocol
public SnapshottableDirectoryStatus[] getSnapshottableDirListing()
throws IOException {
checkOperation(OperationCategory.READ, false);
return null;
}
@Override // ClientProtocol
public SnapshotDiffReport getSnapshotDiffReport(String snapshotRoot,
String earlierSnapshotName, String laterSnapshotName) throws IOException {
checkOperation(OperationCategory.READ, false);
return null;
}
@Override // ClientProtocol
public SnapshotDiffReportListing getSnapshotDiffReportListing(
String snapshotRoot, String earlierSnapshotName, String laterSnapshotName,
byte[] startPath, int index) throws IOException {
checkOperation(OperationCategory.READ, false);
return null;
}
@Override // ClientProtocol
public long addCacheDirective(CacheDirectiveInfo path,
EnumSet<CacheFlag> flags) throws IOException {
checkOperation(OperationCategory.WRITE, false);
return 0;
}
@Override // ClientProtocol
public void modifyCacheDirective(CacheDirectiveInfo directive,
EnumSet<CacheFlag> flags) throws IOException {
checkOperation(OperationCategory.WRITE, false);
}
@Override // ClientProtocol
public void removeCacheDirective(long id) throws IOException {
checkOperation(OperationCategory.WRITE, false);
}
@Override // ClientProtocol
public BatchedEntries<CacheDirectiveEntry> listCacheDirectives(
long prevId, CacheDirectiveInfo filter) throws IOException {
checkOperation(OperationCategory.READ, false);
return null;
}
@Override // ClientProtocol
public void addCachePool(CachePoolInfo info) throws IOException {
checkOperation(OperationCategory.WRITE, false);
}
@Override // ClientProtocol
public void modifyCachePool(CachePoolInfo info) throws IOException {
checkOperation(OperationCategory.WRITE, false);
}
@Override // ClientProtocol
public void removeCachePool(String cachePoolName) throws IOException {
checkOperation(OperationCategory.WRITE, false);
}
@Override // ClientProtocol
public BatchedEntries<CachePoolEntry> listCachePools(String prevKey)
throws IOException {
checkOperation(OperationCategory.READ, false);
return null;
}
@Override // ClientProtocol
public void modifyAclEntries(String src, List<AclEntry> aclSpec)
throws IOException {
checkOperation(OperationCategory.WRITE);
// TODO handle virtual directories
final List<RemoteLocation> locations = getLocationsForPath(src, true);
RemoteMethod method = new RemoteMethod("modifyAclEntries",
new Class<?>[] {String.class, List.class},
new RemoteParam(), aclSpec);
rpcClient.invokeSequential(locations, method, null, null);
}
@Override // ClienProtocol
public void removeAclEntries(String src, List<AclEntry> aclSpec)
throws IOException {
checkOperation(OperationCategory.WRITE);
// TODO handle virtual directories
final List<RemoteLocation> locations = getLocationsForPath(src, true);
RemoteMethod method = new RemoteMethod("removeAclEntries",
new Class<?>[] {String.class, List.class},
new RemoteParam(), aclSpec);
rpcClient.invokeSequential(locations, method, null, null);
}
@Override // ClientProtocol
public void removeDefaultAcl(String src) throws IOException {
checkOperation(OperationCategory.WRITE);
// TODO handle virtual directories
final List<RemoteLocation> locations = getLocationsForPath(src, true);
RemoteMethod method = new RemoteMethod("removeDefaultAcl",
new Class<?>[] {String.class}, new RemoteParam());
rpcClient.invokeSequential(locations, method);
}
@Override // ClientProtocol
public void removeAcl(String src) throws IOException {
checkOperation(OperationCategory.WRITE);
// TODO handle virtual directories
final List<RemoteLocation> locations = getLocationsForPath(src, true);
RemoteMethod method = new RemoteMethod("removeAcl",
new Class<?>[] {String.class}, new RemoteParam());
rpcClient.invokeSequential(locations, method);
}
@Override // ClientProtocol
public void setAcl(String src, List<AclEntry> aclSpec) throws IOException {
checkOperation(OperationCategory.WRITE);
// TODO handle virtual directories
final List<RemoteLocation> locations = getLocationsForPath(src, true);
RemoteMethod method = new RemoteMethod(
"setAcl", new Class<?>[] {String.class, List.class},
new RemoteParam(), aclSpec);
rpcClient.invokeSequential(locations, method);
}
@Override // ClientProtocol
public AclStatus getAclStatus(String src) throws IOException {
checkOperation(OperationCategory.READ);
// TODO handle virtual directories
final List<RemoteLocation> locations = getLocationsForPath(src, false);
RemoteMethod method = new RemoteMethod("getAclStatus",
new Class<?>[] {String.class}, new RemoteParam());
return (AclStatus) rpcClient.invokeSequential(
locations, method, AclStatus.class, null);
}
@Override // ClientProtocol
public void createEncryptionZone(String src, String keyName)
throws IOException {
checkOperation(OperationCategory.WRITE);
// TODO handle virtual directories
final List<RemoteLocation> locations = getLocationsForPath(src, true);
RemoteMethod method = new RemoteMethod("createEncryptionZone",
new Class<?>[] {String.class, String.class},
new RemoteParam(), keyName);
rpcClient.invokeSequential(locations, method);
}
@Override // ClientProtocol
public EncryptionZone getEZForPath(String src) throws IOException {
checkOperation(OperationCategory.READ);
// TODO handle virtual directories
final List<RemoteLocation> locations = getLocationsForPath(src, false);
RemoteMethod method = new RemoteMethod("getEZForPath",
new Class<?>[] {String.class}, new RemoteParam());
return (EncryptionZone) rpcClient.invokeSequential(
locations, method, EncryptionZone.class, null);
}
@Override // ClientProtocol
public BatchedEntries<EncryptionZone> listEncryptionZones(long prevId)
throws IOException {
checkOperation(OperationCategory.READ, false);
return null;
}
@Override // ClientProtocol
public void reencryptEncryptionZone(String zone, ReencryptAction action)
throws IOException {
checkOperation(OperationCategory.WRITE, false);
}
@Override // ClientProtocol
public BatchedEntries<ZoneReencryptionStatus> listReencryptionStatus(
long prevId) throws IOException {
checkOperation(OperationCategory.READ, false);
return null;
}
@Override // ClientProtocol
public void setXAttr(String src, XAttr xAttr, EnumSet<XAttrSetFlag> flag)
throws IOException {
checkOperation(OperationCategory.WRITE);
// TODO handle virtual directories
final List<RemoteLocation> locations = getLocationsForPath(src, true);
RemoteMethod method = new RemoteMethod("setXAttr",
new Class<?>[] {String.class, XAttr.class, EnumSet.class},
new RemoteParam(), xAttr, flag);
rpcClient.invokeSequential(locations, method);
}
@SuppressWarnings("unchecked")
@Override // ClientProtocol
public List<XAttr> getXAttrs(String src, List<XAttr> xAttrs)
throws IOException {
checkOperation(OperationCategory.READ);
// TODO handle virtual directories
final List<RemoteLocation> locations = getLocationsForPath(src, false);
RemoteMethod method = new RemoteMethod("getXAttrs",
new Class<?>[] {String.class, List.class}, new RemoteParam(), xAttrs);
return (List<XAttr>) rpcClient.invokeSequential(
locations, method, List.class, null);
}
@SuppressWarnings("unchecked")
@Override // ClientProtocol
public List<XAttr> listXAttrs(String src) throws IOException {
checkOperation(OperationCategory.READ);
// TODO handle virtual directories
final List<RemoteLocation> locations = getLocationsForPath(src, false);
RemoteMethod method = new RemoteMethod("listXAttrs",
new Class<?>[] {String.class}, new RemoteParam());
return (List<XAttr>) rpcClient.invokeSequential(
locations, method, List.class, null);
}
@Override // ClientProtocol
public void removeXAttr(String src, XAttr xAttr) throws IOException {
checkOperation(OperationCategory.WRITE);
// TODO handle virtual directories
final List<RemoteLocation> locations = getLocationsForPath(src, true);
RemoteMethod method = new RemoteMethod("removeXAttr",
new Class<?>[] {String.class, XAttr.class}, new RemoteParam(), xAttr);
rpcClient.invokeSequential(locations, method);
}
@Override // ClientProtocol
public void checkAccess(String path, FsAction mode) throws IOException {
checkOperation(OperationCategory.READ);
// TODO handle virtual directories
final List<RemoteLocation> locations = getLocationsForPath(path, true);
RemoteMethod method = new RemoteMethod("checkAccess",
new Class<?>[] {String.class, FsAction.class},
new RemoteParam(), mode);
rpcClient.invokeSequential(locations, method);
}
@Override // ClientProtocol
public long getCurrentEditLogTxid() throws IOException {
checkOperation(OperationCategory.READ);
RemoteMethod method = new RemoteMethod(
"getCurrentEditLogTxid", new Class<?>[] {});
final Set<FederationNamespaceInfo> nss = namenodeResolver.getNamespaces();
Map<FederationNamespaceInfo, Long> ret =
rpcClient.invokeConcurrent(nss, method, true, false, long.class);
// Return the maximum txid
long txid = 0;
for (long t : ret.values()) {
if (t > txid) {
txid = t;
}
}
return txid;
}
@Override // ClientProtocol
public EventBatchList getEditsFromTxid(long txid) throws IOException {
checkOperation(OperationCategory.READ, false);
return null;
}
@Override
public DataEncryptionKey getDataEncryptionKey() throws IOException {
checkOperation(OperationCategory.READ, false);
return null;
}
@Override
public String createSnapshot(String snapshotRoot, String snapshotName)
throws IOException {
checkOperation(OperationCategory.WRITE);
return null;
}
@Override
public void deleteSnapshot(String snapshotRoot, String snapshotName)
throws IOException {
checkOperation(OperationCategory.WRITE, false);
}
@Override // ClientProtocol
public void setQuota(String path, long namespaceQuota, long storagespaceQuota,
StorageType type) throws IOException {
this.quotaCall.setQuota(path, namespaceQuota, storagespaceQuota, type);
}
@Override // ClientProtocol
public QuotaUsage getQuotaUsage(String path) throws IOException {
checkOperation(OperationCategory.READ);
return this.quotaCall.getQuotaUsage(path);
}
@Override
public void reportBadBlocks(LocatedBlock[] blocks) throws IOException {
checkOperation(OperationCategory.WRITE);
// Block pool id -> blocks
Map<String, List<LocatedBlock>> blockLocations = new HashMap<>();
for (LocatedBlock block : blocks) {
String bpId = block.getBlock().getBlockPoolId();
List<LocatedBlock> bpBlocks = blockLocations.get(bpId);
if (bpBlocks == null) {
bpBlocks = new LinkedList<>();
blockLocations.put(bpId, bpBlocks);
}
bpBlocks.add(block);
}
// Invoke each block pool
for (Entry<String, List<LocatedBlock>> entry : blockLocations.entrySet()) {
String bpId = entry.getKey();
List<LocatedBlock> bpBlocks = entry.getValue();
LocatedBlock[] bpBlocksArray =
bpBlocks.toArray(new LocatedBlock[bpBlocks.size()]);
RemoteMethod method = new RemoteMethod("reportBadBlocks",
new Class<?>[] {LocatedBlock[].class},
new Object[] {bpBlocksArray});
rpcClient.invokeSingleBlockPool(bpId, method);
}
}
@Override
public void unsetStoragePolicy(String src) throws IOException {
checkOperation(OperationCategory.WRITE, false);
}
@Override
public BlockStoragePolicy getStoragePolicy(String path) throws IOException {
checkOperation(OperationCategory.READ, false);
return null;
}
@Override // ClientProtocol
public ErasureCodingPolicyInfo[] getErasureCodingPolicies()
throws IOException {
return erasureCoding.getErasureCodingPolicies();
}
@Override // ClientProtocol
public Map<String, String> getErasureCodingCodecs() throws IOException {
return erasureCoding.getErasureCodingCodecs();
}
@Override // ClientProtocol
public AddErasureCodingPolicyResponse[] addErasureCodingPolicies(
ErasureCodingPolicy[] policies) throws IOException {
return erasureCoding.addErasureCodingPolicies(policies);
}
@Override // ClientProtocol
public void removeErasureCodingPolicy(String ecPolicyName)
throws IOException {
erasureCoding.removeErasureCodingPolicy(ecPolicyName);
}
@Override // ClientProtocol
public void disableErasureCodingPolicy(String ecPolicyName)
throws IOException {
erasureCoding.disableErasureCodingPolicy(ecPolicyName);
}
@Override // ClientProtocol
public void enableErasureCodingPolicy(String ecPolicyName)
throws IOException {
erasureCoding.enableErasureCodingPolicy(ecPolicyName);
}
@Override // ClientProtocol
public ErasureCodingPolicy getErasureCodingPolicy(String src)
throws IOException {
return erasureCoding.getErasureCodingPolicy(src);
}
@Override // ClientProtocol
public void setErasureCodingPolicy(String src, String ecPolicyName)
throws IOException {
erasureCoding.setErasureCodingPolicy(src, ecPolicyName);
}
@Override // ClientProtocol
public void unsetErasureCodingPolicy(String src) throws IOException {
erasureCoding.unsetErasureCodingPolicy(src);
}
@Override
public ECBlockGroupStats getECBlockGroupStats() throws IOException {
return erasureCoding.getECBlockGroupStats();
}
@Override
public ReplicatedBlockStats getReplicatedBlockStats() throws IOException {
checkOperation(OperationCategory.READ, false);
return null;
}
@Deprecated
@Override
public BatchedEntries<OpenFileEntry> listOpenFiles(long prevId)
throws IOException {
return listOpenFiles(prevId, EnumSet.of(OpenFilesType.ALL_OPEN_FILES),
OpenFilesIterator.FILTER_PATH_DEFAULT);
}
@Override
public BatchedEntries<OpenFileEntry> listOpenFiles(long prevId,
EnumSet<OpenFilesType> openFilesTypes, String path) throws IOException {
checkOperation(OperationCategory.READ, false);
return null;
}
@Override // NamenodeProtocol
public BlocksWithLocations getBlocks(DatanodeInfo datanode, long size,
long minBlockSize) throws IOException {
return nnProto.getBlocks(datanode, size, minBlockSize);
}
@Override // NamenodeProtocol
public ExportedBlockKeys getBlockKeys() throws IOException {
return nnProto.getBlockKeys();
}
@Override // NamenodeProtocol
public long getTransactionID() throws IOException {
return nnProto.getTransactionID();
}
@Override // NamenodeProtocol
public long getMostRecentCheckpointTxId() throws IOException {
return nnProto.getMostRecentCheckpointTxId();
}
@Override // NamenodeProtocol
public CheckpointSignature rollEditLog() throws IOException {
return nnProto.rollEditLog();
}
@Override // NamenodeProtocol
public NamespaceInfo versionRequest() throws IOException {
return nnProto.versionRequest();
}
@Override // NamenodeProtocol
public void errorReport(NamenodeRegistration registration, int errorCode,
String msg) throws IOException {
nnProto.errorReport(registration, errorCode, msg);
}
@Override // NamenodeProtocol
public NamenodeRegistration registerSubordinateNamenode(
NamenodeRegistration registration) throws IOException {
return nnProto.registerSubordinateNamenode(registration);
}
@Override // NamenodeProtocol
public NamenodeCommand startCheckpoint(NamenodeRegistration registration)
throws IOException {
return nnProto.startCheckpoint(registration);
}
@Override // NamenodeProtocol
public void endCheckpoint(NamenodeRegistration registration,
CheckpointSignature sig) throws IOException {
nnProto.endCheckpoint(registration, sig);
}
@Override // NamenodeProtocol
public RemoteEditLogManifest getEditLogManifest(long sinceTxId)
throws IOException {
return nnProto.getEditLogManifest(sinceTxId);
}
@Override // NamenodeProtocol
public boolean isUpgradeFinalized() throws IOException {
return nnProto.isUpgradeFinalized();
}
@Override // NamenodeProtocol
public boolean isRollingUpgrade() throws IOException {
return nnProto.isRollingUpgrade();
}
/**
* Locate the location with the matching block pool id.
*
* @param path Path to check.
* @param failIfLocked Fail the request if locked (top mount point).
* @param blockPoolId The block pool ID of the namespace to search for.
* @return Prioritized list of locations in the federated cluster.
* @throws IOException if the location for this path cannot be determined.
*/
private RemoteLocation getLocationForPath(
String path, boolean failIfLocked, String blockPoolId)
throws IOException {
final List<RemoteLocation> locations =
getLocationsForPath(path, failIfLocked);
String nameserviceId = null;
Set<FederationNamespaceInfo> namespaces =
this.namenodeResolver.getNamespaces();
for (FederationNamespaceInfo namespace : namespaces) {
if (namespace.getBlockPoolId().equals(blockPoolId)) {
nameserviceId = namespace.getNameserviceId();
break;
}
}
if (nameserviceId != null) {
for (RemoteLocation location : locations) {
if (location.getNameserviceId().equals(nameserviceId)) {
return location;
}
}
}
throw new IOException(
"Cannot locate a nameservice for block pool " + blockPoolId);
}
/**
* Get the possible locations of a path in the federated cluster.
* During the get operation, it will do the quota verification.
*
* @param path Path to check.
* @param failIfLocked Fail the request if locked (top mount point).
* @return Prioritized list of locations in the federated cluster.
* @throws IOException If the location for this path cannot be determined.
*/
protected List<RemoteLocation> getLocationsForPath(String path,
boolean failIfLocked) throws IOException {
return getLocationsForPath(path, failIfLocked, true);
}
/**
* Get the possible locations of a path in the federated cluster.
*
* @param path Path to check.
* @param failIfLocked Fail the request if locked (top mount point).
* @param needQuotaVerify If need to do the quota verification.
* @return Prioritized list of locations in the federated cluster.
* @throws IOException If the location for this path cannot be determined.
*/
protected List<RemoteLocation> getLocationsForPath(String path,
boolean failIfLocked, boolean needQuotaVerify) throws IOException {
try {
// Check the location for this path
final PathLocation location =
this.subclusterResolver.getDestinationForPath(path);
if (location == null) {
throw new IOException("Cannot find locations for " + path + " in " +
this.subclusterResolver);
}
// We may block some write operations
if (opCategory.get() == OperationCategory.WRITE) {
// Check if the path is in a read only mount point
if (isPathReadOnly(path)) {
if (this.rpcMonitor != null) {
this.rpcMonitor.routerFailureReadOnly();
}
throw new IOException(path + " is in a read only mount point");
}
// Check quota
if (this.router.isQuotaEnabled() && needQuotaVerify) {
RouterQuotaUsage quotaUsage = this.router.getQuotaManager()
.getQuotaUsage(path);
if (quotaUsage != null) {
quotaUsage.verifyNamespaceQuota();
quotaUsage.verifyStoragespaceQuota();
}
}
}
// Filter disabled subclusters
Set<String> disabled = namenodeResolver.getDisabledNamespaces();
List<RemoteLocation> locs = new ArrayList<>();
for (RemoteLocation loc : location.getDestinations()) {
if (!disabled.contains(loc.getNameserviceId())) {
locs.add(loc);
}
}
return locs;
} catch (IOException ioe) {
if (this.rpcMonitor != null) {
this.rpcMonitor.routerFailureStateStore();
}
throw ioe;
}
}
/**
* Check if a path should be in all subclusters.
*
* @param path Path to check.
* @return If a path should be in all subclusters.
*/
private boolean isPathAll(final String path) {
if (subclusterResolver instanceof MountTableResolver) {
try {
MountTableResolver mountTable = (MountTableResolver)subclusterResolver;
MountTable entry = mountTable.getMountPoint(path);
if (entry != null) {
return entry.isAll();
}
} catch (IOException e) {
LOG.error("Cannot get mount point", e);
}
}
return false;
}
/**
* Check if a path is in a read only mount point.
*
* @param path Path to check.
* @return If the path is in a read only mount point.
*/
private boolean isPathReadOnly(final String path) {
if (subclusterResolver instanceof MountTableResolver) {
try {
MountTableResolver mountTable = (MountTableResolver)subclusterResolver;
MountTable entry = mountTable.getMountPoint(path);
if (entry != null && entry.isReadOnly()) {
return true;
}
} catch (IOException e) {
LOG.error("Cannot get mount point", e);
}
}
return false;
}
/**
* Get the modification dates for mount points.
*
* @param path Name of the path to start checking dates from.
* @return Map with the modification dates for all sub-entries.
*/
private Map<String, Long> getMountPointDates(String path) {
Map<String, Long> ret = new TreeMap<>();
if (subclusterResolver instanceof MountTableResolver) {
try {
final List<String> children = subclusterResolver.getMountPoints(path);
for (String child : children) {
Long modTime = getModifiedTime(ret, path, child);
ret.put(child, modTime);
}
} catch (IOException e) {
LOG.error("Cannot get mount point", e);
}
}
return ret;
}
/**
* Get modified time for child. If the child is present in mount table it
* will return the modified time. If the child is not present but subdirs of
* this child are present then it will return latest modified subdir's time
* as modified time of the requested child.
* @param ret contains children and modified times.
* @param mountTable.
* @param path Name of the path to start checking dates from.
* @param child child of the requested path.
* @return modified time.
*/
private long getModifiedTime(Map<String, Long> ret, String path,
String child) {
MountTableResolver mountTable = (MountTableResolver)subclusterResolver;
String srcPath;
if (path.equals(Path.SEPARATOR)) {
srcPath = Path.SEPARATOR + child;
} else {
srcPath = path + Path.SEPARATOR + child;
}
Long modTime = 0L;
try {
// Get mount table entry for the srcPath
MountTable entry = mountTable.getMountPoint(srcPath);
// if srcPath is not in mount table but its subdirs are in mount
// table we will display latest modified subdir date/time.
if (entry == null) {
List<MountTable> entries = mountTable.getMounts(srcPath);
for (MountTable eachEntry : entries) {
// Get the latest date
if (ret.get(child) == null ||
ret.get(child) < eachEntry.getDateModified()) {
modTime = eachEntry.getDateModified();
}
}
} else {
modTime = entry.getDateModified();
}
} catch (IOException e) {
LOG.error("Cannot get mount point", e);
}
return modTime;
}
/**
* Create a new file status for a mount point.
*
* @param name Name of the mount point.
* @param childrenNum Number of children.
* @param date Map with the dates.
* @return New HDFS file status representing a mount point.
*/
private HdfsFileStatus getMountPointStatus(
String name, int childrenNum, long date) {
long modTime = date;
long accessTime = date;
FsPermission permission = FsPermission.getDirDefault();
String owner = this.superUser;
String group = this.superGroup;
try {
// TODO support users, it should be the user for the pointed folder
UserGroupInformation ugi = getRemoteUser();
owner = ugi.getUserName();
group = ugi.getPrimaryGroupName();
} catch (IOException e) {
LOG.error("Cannot get the remote user: {}", e.getMessage());
}
long inodeId = 0;
return new HdfsFileStatus.Builder()
.isdir(true)
.mtime(modTime)
.atime(accessTime)
.perm(permission)
.owner(owner)
.group(group)
.symlink(new byte[0])
.path(DFSUtil.string2Bytes(name))
.fileId(inodeId)
.children(childrenNum)
.build();
}
/**
* Get the name of the method that is calling this function.
*
* @return Name of the method calling this function.
*/
private static String getMethodName() {
final StackTraceElement[] stack = Thread.currentThread().getStackTrace();
String methodName = stack[3].getMethodName();
return methodName;
}
/**
* Get the user that is invoking this operation.
*
* @return Remote user group information.
* @throws IOException If we cannot get the user information.
*/
static UserGroupInformation getRemoteUser() throws IOException {
UserGroupInformation ugi = Server.getRemoteUser();
return (ugi != null) ? ugi : UserGroupInformation.getCurrentUser();
}
/**
* Merge the outputs from multiple namespaces.
* @param map Namespace -> Output array.
* @param clazz Class of the values.
* @return Array with the outputs.
*/
protected static <T> T[] merge(
Map<FederationNamespaceInfo, T[]> map, Class<T> clazz) {
// Put all results into a set to avoid repeats
Set<T> ret = new LinkedHashSet<>();
for (T[] values : map.values()) {
for (T val : values) {
ret.add(val);
}
}
return toArray(ret, clazz);
}
/**
* Convert a set of values into an array.
* @param set Input set.
* @param clazz Class of the values.
* @return Array with the values in set.
*/
private static <T> T[] toArray(Collection<T> set, Class<T> clazz) {
@SuppressWarnings("unchecked")
T[] combinedData = (T[]) Array.newInstance(clazz, set.size());
combinedData = set.toArray(combinedData);
return combinedData;
}
/**
* Get quota module implement.
*/
public Quota getQuotaModule() {
return this.quotaCall;
}
/**
* Get RPC metrics info.
* @return The instance of FederationRPCMetrics.
*/
public FederationRPCMetrics getRPCMetrics() {
return this.rpcMonitor.getRPCMetrics();
}
}
|
apache-2.0
|
lucperkins/heron
|
heron/downloaders/src/java/com/twitter/heron/downloader/Downloader.java
|
793
|
// Copyright 2017 Twitter. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.twitter.heron.downloader;
import java.net.URI;
import java.nio.file.Path;
public interface Downloader {
void download(URI uri, Path destination) throws Exception;
}
|
apache-2.0
|
metaborg/strategoxt
|
strategoxt/stratego-libraries/java-backend/java/runtime/org/strategoxt/lang/gradual/Type.java
|
195
|
package org.strategoxt.lang.gradual;
import java.io.Serializable;
public interface Type extends Serializable {
boolean equals(Object o);
int hashCode();
public String toString();
}
|
apache-2.0
|
jajakobyly/rustidea
|
src/org/rustidea/psi/impl/RsStructImpl.java
|
1812
|
/*
* Copyright 2015 Marek Kaput
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.rustidea.psi.impl;
import com.intellij.lang.ASTNode;
import com.intellij.psi.tree.TokenSet;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import org.rustidea.psi.IRsType;
import org.rustidea.psi.RsElementVisitor;
import org.rustidea.psi.RsStruct;
import org.rustidea.psi.RsTypeParameterList;
import org.rustidea.psi.types.RsPsiTypes;
import org.rustidea.stubs.RsStructStub;
public class RsStructImpl extends IRsNamedItemPsiElement<RsStructStub> implements RsStruct {
private static final TokenSet STRUCT_OR_TUPLE_TYPE = TokenSet.create(RsPsiTypes.STRUCT_TYPE, RsPsiTypes.TUPLE_TYPE);
public RsStructImpl(@NotNull RsStructStub stub) {
super(stub, RsPsiTypes.STRUCT);
}
public RsStructImpl(@NotNull ASTNode node) {
super(node);
}
@Nullable
@Override
public RsTypeParameterList getTypeParameterList() {
return findChildByType(RsPsiTypes.TYPE_PARAMETER_LIST);
}
@Nullable
@Override
public IRsType getDefinition() {
return findChildByType(STRUCT_OR_TUPLE_TYPE);
}
@Override
public void accept(@NotNull RsElementVisitor visitor) {
visitor.visitStruct(this);
}
}
|
apache-2.0
|
iluminati182006/ReutersSolr
|
docs/solr-core/org/apache/solr/update/package-use.html
|
23222
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_45) on Mon Apr 29 15:10:37 CEST 2013 -->
<META http-equiv="Content-Type" content="text/html; charset=utf-8">
<TITLE>
Uses of Package org.apache.solr.update (Solr 4.3.0 API)
</TITLE>
<META NAME="date" CONTENT="2013-04-29">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">
<SCRIPT type="text/javascript">
function windowTitle()
{
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Uses of Package org.apache.solr.update (Solr 4.3.0 API)";
}
}
</SCRIPT>
<NOSCRIPT>
</NOSCRIPT>
</HEAD>
<BODY BGCOLOR="white" onload="windowTitle();">
<HR>
<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A>
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Class</FONT> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
PREV
NEXT</FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../index.html?org/apache/solr/update/package-use.html" target="_top"><B>FRAMES</B></A>
<A HREF="package-use.html" target="_top"><B>NO FRAMES</B></A>
<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->
<HR>
<CENTER>
<H2>
<B>Uses of Package<br>org.apache.solr.update</B></H2>
</CENTER>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
Packages that use <A HREF="../../../../org/apache/solr/update/package-summary.html">org.apache.solr.update</A></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><A HREF="#org.apache.solr.cloud"><B>org.apache.solr.cloud</B></A></TD>
<TD>
Classes for dealing with ZooKeeper when operating in <a href="http://wiki.apache.org/solr/SolrCloud">SolrCloud</a> mode. </TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><A HREF="#org.apache.solr.core"><B>org.apache.solr.core</B></A></TD>
<TD>
Core classes implementin Solr internals and the management of <A HREF="../../../../org/apache/solr/core/SolrCore.html" title="class in org.apache.solr.core"><CODE>SolrCore</CODE></A>s </TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><A HREF="#org.apache.solr.handler"><B>org.apache.solr.handler</B></A></TD>
<TD>
Concrete implementations of <A HREF="../../../../org/apache/solr/request/SolrRequestHandler.html" title="interface in org.apache.solr.request"><CODE>SolrRequestHandler</CODE></A> </TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><A HREF="#org.apache.solr.search"><B>org.apache.solr.search</B></A></TD>
<TD>
APIs and classes for <A HREF="../../../../org/apache/solr/search/QParserPlugin.html" title="class in org.apache.solr.search">parsing</A> and <A HREF="../../../../org/apache/solr/search/SolrIndexSearcher.html" title="class in org.apache.solr.search">processing</A> search requests </TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><A HREF="#org.apache.solr.update"><B>org.apache.solr.update</B></A></TD>
<TD>
APIs and classes for managing index updates </TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><A HREF="#org.apache.solr.update.processor"><B>org.apache.solr.update.processor</B></A></TD>
<TD>
<A HREF="../../../../org/apache/solr/update/processor/UpdateRequestProcessorFactory.html" title="class in org.apache.solr.update.processor"><CODE>UpdateRequestProcessorFactory</CODE></A> APIs and implementations for use in <A HREF="../../../../org/apache/solr/update/processor/UpdateRequestProcessorChain.html" title="class in org.apache.solr.update.processor"><CODE>UpdateRequestProcessorChain</CODE></A>s </TD>
</TR>
</TABLE>
<P>
<A NAME="org.apache.solr.cloud"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
Classes in <A HREF="../../../../org/apache/solr/update/package-summary.html">org.apache.solr.update</A> used by <A HREF="../../../../org/apache/solr/cloud/package-summary.html">org.apache.solr.cloud</A></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><B><A HREF="../../../../org/apache/solr/update/class-use/UpdateShardHandler.html#org.apache.solr.cloud"><B>UpdateShardHandler</B></A></B>
<BR>
</TD>
</TR>
</TABLE>
<P>
<A NAME="org.apache.solr.core"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
Classes in <A HREF="../../../../org/apache/solr/update/package-summary.html">org.apache.solr.update</A> used by <A HREF="../../../../org/apache/solr/core/package-summary.html">org.apache.solr.core</A></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><B><A HREF="../../../../org/apache/solr/update/class-use/SolrCoreState.html#org.apache.solr.core"><B>SolrCoreState</B></A></B>
<BR>
The state in this class can be easily shared between SolrCores across
SolrCore reloads.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><B><A HREF="../../../../org/apache/solr/update/class-use/SolrIndexConfig.html#org.apache.solr.core"><B>SolrIndexConfig</B></A></B>
<BR>
This config object encapsulates IndexWriter config params,
defined in the <indexConfig> section of solrconfig.xml</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><B><A HREF="../../../../org/apache/solr/update/class-use/UpdateHandler.html#org.apache.solr.core"><B>UpdateHandler</B></A></B>
<BR>
<code>UpdateHandler</code> handles requests to change the index
(adds, deletes, commits, optimizes, etc).</TD>
</TR>
</TABLE>
<P>
<A NAME="org.apache.solr.handler"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
Classes in <A HREF="../../../../org/apache/solr/update/package-summary.html">org.apache.solr.update</A> used by <A HREF="../../../../org/apache/solr/handler/package-summary.html">org.apache.solr.handler</A></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><B><A HREF="../../../../org/apache/solr/update/class-use/CommitUpdateCommand.html#org.apache.solr.handler"><B>CommitUpdateCommand</B></A></B>
<BR>
</TD>
</TR>
</TABLE>
<P>
<A NAME="org.apache.solr.search"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
Classes in <A HREF="../../../../org/apache/solr/update/package-summary.html">org.apache.solr.update</A> used by <A HREF="../../../../org/apache/solr/search/package-summary.html">org.apache.solr.search</A></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><B><A HREF="../../../../org/apache/solr/update/class-use/SolrIndexConfig.html#org.apache.solr.search"><B>SolrIndexConfig</B></A></B>
<BR>
This config object encapsulates IndexWriter config params,
defined in the <indexConfig> section of solrconfig.xml</TD>
</TR>
</TABLE>
<P>
<A NAME="org.apache.solr.update"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
Classes in <A HREF="../../../../org/apache/solr/update/package-summary.html">org.apache.solr.update</A> used by <A HREF="../../../../org/apache/solr/update/package-summary.html">org.apache.solr.update</A></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><B><A HREF="../../../../org/apache/solr/update/class-use/AddUpdateCommand.html#org.apache.solr.update"><B>AddUpdateCommand</B></A></B>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><B><A HREF="../../../../org/apache/solr/update/class-use/CommitTracker.html#org.apache.solr.update"><B>CommitTracker</B></A></B>
<BR>
Helper class for tracking autoCommit state.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><B><A HREF="../../../../org/apache/solr/update/class-use/CommitUpdateCommand.html#org.apache.solr.update"><B>CommitUpdateCommand</B></A></B>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><B><A HREF="../../../../org/apache/solr/update/class-use/DeleteUpdateCommand.html#org.apache.solr.update"><B>DeleteUpdateCommand</B></A></B>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><B><A HREF="../../../../org/apache/solr/update/class-use/MergeIndexesCommand.html#org.apache.solr.update"><B>MergeIndexesCommand</B></A></B>
<BR>
A merge indexes command encapsulated in an object.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><B><A HREF="../../../../org/apache/solr/update/class-use/RollbackUpdateCommand.html#org.apache.solr.update"><B>RollbackUpdateCommand</B></A></B>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><B><A HREF="../../../../org/apache/solr/update/class-use/SolrCmdDistributor.Error.html#org.apache.solr.update"><B>SolrCmdDistributor.Error</B></A></B>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><B><A HREF="../../../../org/apache/solr/update/class-use/SolrCmdDistributor.Node.html#org.apache.solr.update"><B>SolrCmdDistributor.Node</B></A></B>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><B><A HREF="../../../../org/apache/solr/update/class-use/SolrCmdDistributor.Request.html#org.apache.solr.update"><B>SolrCmdDistributor.Request</B></A></B>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><B><A HREF="../../../../org/apache/solr/update/class-use/SolrCmdDistributor.Response.html#org.apache.solr.update"><B>SolrCmdDistributor.Response</B></A></B>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><B><A HREF="../../../../org/apache/solr/update/class-use/SolrCoreState.html#org.apache.solr.update"><B>SolrCoreState</B></A></B>
<BR>
The state in this class can be easily shared between SolrCores across
SolrCore reloads.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><B><A HREF="../../../../org/apache/solr/update/class-use/SolrCoreState.IndexWriterCloser.html#org.apache.solr.update"><B>SolrCoreState.IndexWriterCloser</B></A></B>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><B><A HREF="../../../../org/apache/solr/update/class-use/SolrIndexConfig.html#org.apache.solr.update"><B>SolrIndexConfig</B></A></B>
<BR>
This config object encapsulates IndexWriter config params,
defined in the <indexConfig> section of solrconfig.xml</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><B><A HREF="../../../../org/apache/solr/update/class-use/SolrIndexWriter.html#org.apache.solr.update"><B>SolrIndexWriter</B></A></B>
<BR>
An IndexWriter that is configured via Solr config mechanisms.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><B><A HREF="../../../../org/apache/solr/update/class-use/SplitIndexCommand.html#org.apache.solr.update"><B>SplitIndexCommand</B></A></B>
<BR>
A merge indexes command encapsulated in an object.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><B><A HREF="../../../../org/apache/solr/update/class-use/TransactionLog.LogReader.html#org.apache.solr.update"><B>TransactionLog.LogReader</B></A></B>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><B><A HREF="../../../../org/apache/solr/update/class-use/TransactionLog.ReverseReader.html#org.apache.solr.update"><B>TransactionLog.ReverseReader</B></A></B>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><B><A HREF="../../../../org/apache/solr/update/class-use/UpdateCommand.html#org.apache.solr.update"><B>UpdateCommand</B></A></B>
<BR>
An index update command encapsulated in an object (Command pattern)</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><B><A HREF="../../../../org/apache/solr/update/class-use/UpdateHandler.html#org.apache.solr.update"><B>UpdateHandler</B></A></B>
<BR>
<code>UpdateHandler</code> handles requests to change the index
(adds, deletes, commits, optimizes, etc).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><B><A HREF="../../../../org/apache/solr/update/class-use/UpdateLog.html#org.apache.solr.update"><B>UpdateLog</B></A></B>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><B><A HREF="../../../../org/apache/solr/update/class-use/UpdateLog.DBQ.html#org.apache.solr.update"><B>UpdateLog.DBQ</B></A></B>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><B><A HREF="../../../../org/apache/solr/update/class-use/UpdateLog.RecentUpdates.html#org.apache.solr.update"><B>UpdateLog.RecentUpdates</B></A></B>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><B><A HREF="../../../../org/apache/solr/update/class-use/UpdateLog.RecoveryInfo.html#org.apache.solr.update"><B>UpdateLog.RecoveryInfo</B></A></B>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><B><A HREF="../../../../org/apache/solr/update/class-use/UpdateLog.State.html#org.apache.solr.update"><B>UpdateLog.State</B></A></B>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><B><A HREF="../../../../org/apache/solr/update/class-use/UpdateLog.SyncLevel.html#org.apache.solr.update"><B>UpdateLog.SyncLevel</B></A></B>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><B><A HREF="../../../../org/apache/solr/update/class-use/UpdateShardHandler.html#org.apache.solr.update"><B>UpdateShardHandler</B></A></B>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><B><A HREF="../../../../org/apache/solr/update/class-use/VersionBucket.html#org.apache.solr.update"><B>VersionBucket</B></A></B>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><B><A HREF="../../../../org/apache/solr/update/class-use/VersionInfo.html#org.apache.solr.update"><B>VersionInfo</B></A></B>
<BR>
</TD>
</TR>
</TABLE>
<P>
<A NAME="org.apache.solr.update.processor"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
Classes in <A HREF="../../../../org/apache/solr/update/package-summary.html">org.apache.solr.update</A> used by <A HREF="../../../../org/apache/solr/update/processor/package-summary.html">org.apache.solr.update.processor</A></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><B><A HREF="../../../../org/apache/solr/update/class-use/AddUpdateCommand.html#org.apache.solr.update.processor"><B>AddUpdateCommand</B></A></B>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><B><A HREF="../../../../org/apache/solr/update/class-use/CommitUpdateCommand.html#org.apache.solr.update.processor"><B>CommitUpdateCommand</B></A></B>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><B><A HREF="../../../../org/apache/solr/update/class-use/DeleteUpdateCommand.html#org.apache.solr.update.processor"><B>DeleteUpdateCommand</B></A></B>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><B><A HREF="../../../../org/apache/solr/update/class-use/MergeIndexesCommand.html#org.apache.solr.update.processor"><B>MergeIndexesCommand</B></A></B>
<BR>
A merge indexes command encapsulated in an object.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><B><A HREF="../../../../org/apache/solr/update/class-use/RollbackUpdateCommand.html#org.apache.solr.update.processor"><B>RollbackUpdateCommand</B></A></B>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><B><A HREF="../../../../org/apache/solr/update/class-use/SolrCmdDistributor.Node.html#org.apache.solr.update.processor"><B>SolrCmdDistributor.Node</B></A></B>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><B><A HREF="../../../../org/apache/solr/update/class-use/SolrCmdDistributor.StdNode.html#org.apache.solr.update.processor"><B>SolrCmdDistributor.StdNode</B></A></B>
<BR>
</TD>
</TR>
</TABLE>
<P>
<HR>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Class</FONT> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
PREV
NEXT</FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../index.html?org/apache/solr/update/package-use.html" target="_top"><B>FRAMES</B></A>
<A HREF="package-use.html" target="_top"><B>NO FRAMES</B></A>
<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<HR>
<i>Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.</i>
<script src='../../../../prettify.js' type='text/javascript'></script>
<script type='text/javascript'>
(function(){
var oldonload = window.onload;
if (typeof oldonload != 'function') {
window.onload = prettyPrint;
} else {
window.onload = function() {
oldonload();
prettyPrint();
}
}
})();
</script>
</BODY>
</HTML>
|
apache-2.0
|
bmeurer/eui4j
|
src/test/java/de/benediktmeurer/eui4j/EUI48XmlAdapterTest.java
|
1651
|
/*-
* Copyright 2012 Benedikt Meurer
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package de.benediktmeurer.eui4j;
import static org.testng.Assert.assertEquals;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;
/**
* Unit tests for the {@link EUI48XmlAdapter} class.
*
* @author Benedikt Meurer
* @see EUI48XmlAdapter
*/
public class EUI48XmlAdapterTest {
@DataProvider(name = "names")
public String[][] dataProviderNames() {
return new String[][] {
{ null },
{ "00:00:00:00:00:00" },
{ "00:11:22:33:44:55" },
{ "00:00:00:11:11:11" },
{ "ff:ff:ff:ff:ff:ff" }
};
}
@Test(dataProvider = "names")
public void testMarshall(String name) throws Exception {
assertEquals(new EUI48XmlAdapter().marshal(name == null ? null : EUI48.fromString(name)), name);
}
@Test(dataProvider = "names")
public void testUnmarshall(String name) throws Exception {
assertEquals(new EUI48XmlAdapter().unmarshal(name), name == null ? null : EUI48.fromString(name));
}
}
|
apache-2.0
|
icemagno/mclm
|
src/main/webapp/app/view/cenarios/GerenciarGruposCenarioWindow.js
|
10122
|
Ext.define('MCLM.view.cenarios.GerenciarGruposCenarioWindow', {
requires: [
'MCLM.store.Grupo',
'Ext.grid.plugin.DragDrop',
'MCLM.view.cenarios.GerenciarGruposCenarioController'
],
extend: 'Ext.window.Window',
id: 'gerenciarGruposCenarioWindow',
itemId: 'gerenciarGruposCenarioWindow',
controller: 'gerenciar-grupos-cenario',
modal: true,
width: '60%',
height: 500,
layout: {
type: 'vbox',
align: 'stretch',
pack: 'start'
},
tbar: [
{iconCls: 'save-icon', tooltip: '<b>Salvar Alterações</b>', handler: 'onSaveBtnClick'}
],
items: [
{
xtype: 'container', layout: 'hbox',
height: '50%', width: '100%',
items: [
{
itemId: 'associatedGroupsGrid', xtype: 'grid',
title: 'Grupos Associados', titleAlign: 'center',
scrollable: true, width: '50%',
height: '100%', store: {
proxy: 'memory',
sorters: ['name'],
autoSort: true
},
tools: [{
iconCls: 'group-add-icon',
tooltip: '<b>Compartilhar com Grupos</b>',
handler: () => Ext.getCmp('gerenciarGruposCenarioWindow').down('#groupsGrid').expand()
}],
columns: [
{
dataIndex: 'name', text: 'Nome',
width: '90%', items: [
{
xtype: 'textfield',
emptyText: 'Filtrar',
enableKeyEvents: true,
listeners: {
keyup: 'onAssociatedGroupFilterKeyup',
buffer: 500
}
}
]
},
{
xtype: 'actioncolumn', width: '5%',
items: [
{iconCls: "details-icon", tooltip: 'Detalhes', handler: 'onGroupDetailsBtnClick'}
]
},
{
xtype: 'actioncolumn', width: '5%',
items: [
{tooltip: 'Remover Associação', iconCls: 'cancel-icon', handler: 'onAssociatedGroupRemoveBtnClick'}
]}
]
},
{
itemId: 'groupsGrid', xtype: 'grid',
title: 'Grupos', titleAlign: 'center',
scrollable: true, width: '50%',
collapsed: true, collapsible: true,
animCollapse: true, height: '100%',
store: {
type: 'grupo',
pageSize: 0
},
columns: [
{
dataIndex: 'name', text: 'Nome',
width: '90%', items: [
{
xtype: 'textfield',
emptyText: 'Filtrar',
enableKeyEvents: true,
listeners: {
keyup: 'onGroupFilterKeyup',
buffer: 500
}
}
]
},
{
xtype: 'actioncolumn', width: '5%',
items: [
{iconCls: 'details-icon', tooltip: 'Detalhes', handler: 'onGroupDetailsBtnClick'}
]
},
{
xtype: 'actioncolumn', width: '5%',
items: [
{tooltip: 'Associar', iconCls: 'plus-icon', handler: 'onGroupAssociationBtnClick'}
]}
],
listeners: {
rowdblclick: 'onGroupRowDblClick'
}
}
]
},
{
xtype: 'container', layout: 'hbox',
height: '50%', width: '100%',
items: [
{
itemId: 'associatedUsersGrid', xtype: 'grid',
titleAlign: 'center', scrollable: true,
title: 'Usuários Associados', width: '50%',
height: '100%', store: {
proxy: 'memory',
sorters: ['nome'],
autoSort: true
},
tools: [{
iconCls: 'user-add-icon',
tooltip: '<b>Compartilhar com Usuários</b>',
handler: () => Ext.getCmp('gerenciarGruposCenarioWindow').down('#usersGrid').expand()
}],
columns: [
{
dataIndex: 'cpf', text: 'CPF',
renderer: ColumnRenderer.cpf, width: '30%',
items: [
{
xtype: 'textfield',
emptyText: 'Filtrar',
enableKeyEvents: true,
listeners: {
keyup: 'onAssociatedUserFilterKeyup',
buffer: 500
}
}
]
},
{
dataIndex: 'nome', text: 'Nome',
width: '40%', items: [
{
xtype: 'textfield',
emptyText: 'Filtrar',
enableKeyEvents: true,
listeners: {
keyup: 'onAssociatedUserFilterKeyup',
buffer: 500
}
}
]
},
{dataIndex: 'siglaOm', text: 'OM', width: '10%'},
{dataIndex: 'siglaForca', text: 'Força', width: '10%'},
{xtype: 'actioncolumn', width: '10%', items: [
{tooltip: 'Remover', iconCls: 'cancel-icon', handler: 'onAssociatedUserRemoveBtnClick'}
]}
]
},
{
itemId: 'usersGrid', xtype: 'grid',
titleAlign: 'center', scrollable: true,
title: 'Usuários', width: '50%',
collapsed: true, collapsible: true,
animCollapse: true, height: '100%',
store: {
type: 'apolo-user',
autoLoad: true,
pageSize: 10
},
columns: [
{
dataIndex: 'cpf', text: 'CPF',
renderer: ColumnRenderer.cpf, width: '30%',
items: [
{
xtype: 'textfield',
emptyText: 'Filtrar',
enableKeyEvents: true,
listeners: {
keyup: 'onUserFilterKeyup',
buffer: 500
}
}
]
},
{
dataIndex: 'nome', text: 'Nome',
width: '40%', items: [
{
xtype: 'textfield',
emptyText: 'Filtrar',
enableKeyEvents: true,
listeners: {
keyup: 'onUserFilterKeyup',
buffer: 500
}
}
]
},
{dataIndex: 'siglaOm', text: 'OM', width: '10%'},
{dataIndex: 'siglaForca', text: 'Força', width: '10%'},
{xtype: 'actioncolumn', width: '10%', items: [
{tooltip: 'Associar', iconCls: 'plus-icon', handler: 'onUserAssociationBtnClick'}
]}
],
listeners: {
rowdblclick: 'onUserRowDblClick'
},
dockedItems: [{
xtype: 'pagingtoolbar',
store: {
type: 'apolo-user',
autoLoad: true,
pageSize: 10
}, // same store GridPanel is using
dock: 'bottom',
displayInfo: true
}]
}
]
}
],
listeners: {show: 'onShow'}
});
|
apache-2.0
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.