id
int32
0
165k
repo
stringlengths
7
58
path
stringlengths
12
218
func_name
stringlengths
3
140
original_string
stringlengths
73
34.1k
language
stringclasses
1 value
code
stringlengths
73
34.1k
code_tokens
list
docstring
stringlengths
3
16k
docstring_tokens
list
sha
stringlengths
40
40
url
stringlengths
105
339
134,500
marklogic/marklogic-contentpump
mapreduce/src/main/java/com/marklogic/mapreduce/MarkLogicRecordWriter.java
MarkLogicRecordWriter.getSession
protected Session getSession() throws IOException { if (session == null) { // start a session try { ContentSource cs = InternalUtilities.getOutputContentSource( conf, hostName); session = cs.newSession(); if (LOG.isD...
java
protected Session getSession() throws IOException { if (session == null) { // start a session try { ContentSource cs = InternalUtilities.getOutputContentSource( conf, hostName); session = cs.newSession(); if (LOG.isD...
[ "protected", "Session", "getSession", "(", ")", "throws", "IOException", "{", "if", "(", "session", "==", "null", ")", "{", "// start a session", "try", "{", "ContentSource", "cs", "=", "InternalUtilities", ".", "getOutputContentSource", "(", "conf", ",", "hostN...
Get the session for this writer. One writer only maintains one session. @return Session for this writer. @throws IOException
[ "Get", "the", "session", "for", "this", "writer", ".", "One", "writer", "only", "maintains", "one", "session", "." ]
4c41e4a953301f81a4c655efb2a847603dee8afc
https://github.com/marklogic/marklogic-contentpump/blob/4c41e4a953301f81a4c655efb2a847603dee8afc/mapreduce/src/main/java/com/marklogic/mapreduce/MarkLogicRecordWriter.java#L81-L100
134,501
marklogic/marklogic-contentpump
mlcp/src/main/java/com/marklogic/contentpump/DatabaseContentWriter.java
DatabaseContentWriter.newContentCreateOptions
protected static ContentCreateOptions newContentCreateOptions( DocumentMetadata meta, ContentCreateOptions options, boolean isCopyColls, boolean isCopyQuality, boolean isCopyMeta, boolean isCopyPerms, long effectiveVersion) { ContentCreateOptions opt = (ContentCreateOptions)...
java
protected static ContentCreateOptions newContentCreateOptions( DocumentMetadata meta, ContentCreateOptions options, boolean isCopyColls, boolean isCopyQuality, boolean isCopyMeta, boolean isCopyPerms, long effectiveVersion) { ContentCreateOptions opt = (ContentCreateOptions)...
[ "protected", "static", "ContentCreateOptions", "newContentCreateOptions", "(", "DocumentMetadata", "meta", ",", "ContentCreateOptions", "options", ",", "boolean", "isCopyColls", ",", "boolean", "isCopyQuality", ",", "boolean", "isCopyMeta", ",", "boolean", "isCopyPerms", ...
fetch the options information from conf and metadata, set to the field "options"
[ "fetch", "the", "options", "information", "from", "conf", "and", "metadata", "set", "to", "the", "field", "options" ]
4c41e4a953301f81a4c655efb2a847603dee8afc
https://github.com/marklogic/marklogic-contentpump/blob/4c41e4a953301f81a4c655efb2a847603dee8afc/mlcp/src/main/java/com/marklogic/contentpump/DatabaseContentWriter.java#L99-L159
134,502
marklogic/marklogic-contentpump
mapreduce/src/main/java/com/marklogic/mapreduce/utilities/URIUtil.java
URIUtil.applyUriReplace
public static String applyUriReplace(String uriSource, Configuration conf) { if (uriSource == null) return null; String[] uriReplace = conf.getStrings(OUTPUT_URI_REPLACE); if (uriReplace == null) return uriSource; for (int i = 0; i < uriReplace.length - 1; i += 2) { String re...
java
public static String applyUriReplace(String uriSource, Configuration conf) { if (uriSource == null) return null; String[] uriReplace = conf.getStrings(OUTPUT_URI_REPLACE); if (uriReplace == null) return uriSource; for (int i = 0; i < uriReplace.length - 1; i += 2) { String re...
[ "public", "static", "String", "applyUriReplace", "(", "String", "uriSource", ",", "Configuration", "conf", ")", "{", "if", "(", "uriSource", "==", "null", ")", "return", "null", ";", "String", "[", "]", "uriReplace", "=", "conf", ".", "getStrings", "(", "O...
Apply URI replacement configuration option to a URI source string. The configuration option is a list of comma separated pairs of regex patterns and replacements. Validation of the configuration is done at command parsing time. @param uriSource @param conf @return result URI string
[ "Apply", "URI", "replacement", "configuration", "option", "to", "a", "URI", "source", "string", ".", "The", "configuration", "option", "is", "a", "list", "of", "comma", "separated", "pairs", "of", "regex", "patterns", "and", "replacements", ".", "Validation", ...
4c41e4a953301f81a4c655efb2a847603dee8afc
https://github.com/marklogic/marklogic-contentpump/blob/4c41e4a953301f81a4c655efb2a847603dee8afc/mapreduce/src/main/java/com/marklogic/mapreduce/utilities/URIUtil.java#L45-L55
134,503
marklogic/marklogic-contentpump
mapreduce/src/main/java/com/marklogic/mapreduce/utilities/URIUtil.java
URIUtil.applyPrefixSuffix
public static String applyPrefixSuffix(String uriSource, Configuration conf) { if (uriSource == null) return null; String prefix = conf.get(OUTPUT_URI_PREFIX); String suffix = conf.get(OUTPUT_URI_SUFFIX); if (prefix == null && suffix == null) { return uriSource; ...
java
public static String applyPrefixSuffix(String uriSource, Configuration conf) { if (uriSource == null) return null; String prefix = conf.get(OUTPUT_URI_PREFIX); String suffix = conf.get(OUTPUT_URI_SUFFIX); if (prefix == null && suffix == null) { return uriSource; ...
[ "public", "static", "String", "applyPrefixSuffix", "(", "String", "uriSource", ",", "Configuration", "conf", ")", "{", "if", "(", "uriSource", "==", "null", ")", "return", "null", ";", "String", "prefix", "=", "conf", ".", "get", "(", "OUTPUT_URI_PREFIX", ")...
Apply URI prefix and suffix configuration option to a URI source string. @param uriSource @param conf @return result URI string
[ "Apply", "URI", "prefix", "and", "suffix", "configuration", "option", "to", "a", "URI", "source", "string", "." ]
4c41e4a953301f81a4c655efb2a847603dee8afc
https://github.com/marklogic/marklogic-contentpump/blob/4c41e4a953301f81a4c655efb2a847603dee8afc/mapreduce/src/main/java/com/marklogic/mapreduce/utilities/URIUtil.java#L64-L84
134,504
marklogic/marklogic-contentpump
mlcp/src/main/java/com/marklogic/contentpump/utilities/OptionsFileUtil.java
OptionsFileUtil.expandArguments
public static String[] expandArguments(String[] args) throws Exception { List<String> options = new ArrayList<String>(); for (int i = 0; i < args.length; i++) { if (args[i].equals(OPTIONS_FILE)) { if (i == args.length - 1) { throw new Exception("Missing o...
java
public static String[] expandArguments(String[] args) throws Exception { List<String> options = new ArrayList<String>(); for (int i = 0; i < args.length; i++) { if (args[i].equals(OPTIONS_FILE)) { if (i == args.length - 1) { throw new Exception("Missing o...
[ "public", "static", "String", "[", "]", "expandArguments", "(", "String", "[", "]", "args", ")", "throws", "Exception", "{", "List", "<", "String", ">", "options", "=", "new", "ArrayList", "<", "String", ">", "(", ")", ";", "for", "(", "int", "i", "=...
Expands any options file that may be present in the given set of arguments. @param args the given arguments @return a new string array that contains the expanded arguments. @throws Exception
[ "Expands", "any", "options", "file", "that", "may", "be", "present", "in", "the", "given", "set", "of", "arguments", "." ]
4c41e4a953301f81a4c655efb2a847603dee8afc
https://github.com/marklogic/marklogic-contentpump/blob/4c41e4a953301f81a4c655efb2a847603dee8afc/mlcp/src/main/java/com/marklogic/contentpump/utilities/OptionsFileUtil.java#L53-L116
134,505
marklogic/marklogic-contentpump
mlcp/src/main/java/com/marklogic/contentpump/utilities/OptionsFileUtil.java
OptionsFileUtil.removeQuotesEncolosingOption
private static String removeQuotesEncolosingOption( String fileName, String option) throws Exception { // Attempt to remove double quotes. If successful, return. String option1 = removeQuoteCharactersIfNecessary(fileName, option, '"'); if (!option1.equals(option)) { // Q...
java
private static String removeQuotesEncolosingOption( String fileName, String option) throws Exception { // Attempt to remove double quotes. If successful, return. String option1 = removeQuoteCharactersIfNecessary(fileName, option, '"'); if (!option1.equals(option)) { // Q...
[ "private", "static", "String", "removeQuotesEncolosingOption", "(", "String", "fileName", ",", "String", "option", ")", "throws", "Exception", "{", "// Attempt to remove double quotes. If successful, return.", "String", "option1", "=", "removeQuoteCharactersIfNecessary", "(", ...
Removes the surrounding quote characters as needed. It first attempts to remove surrounding double quotes. If successful, the resultant string is returned. If no surrounding double quotes are found, it attempts to remove surrounding single quote characters. If successful, the resultant string is returned. If not the or...
[ "Removes", "the", "surrounding", "quote", "characters", "as", "needed", ".", "It", "first", "attempts", "to", "remove", "surrounding", "double", "quotes", ".", "If", "successful", "the", "resultant", "string", "is", "returned", ".", "If", "no", "surrounding", ...
4c41e4a953301f81a4c655efb2a847603dee8afc
https://github.com/marklogic/marklogic-contentpump/blob/4c41e4a953301f81a4c655efb2a847603dee8afc/mlcp/src/main/java/com/marklogic/contentpump/utilities/OptionsFileUtil.java#L129-L141
134,506
marklogic/marklogic-contentpump
mlcp/src/main/java/com/marklogic/contentpump/utilities/OptionsFileUtil.java
OptionsFileUtil.removeQuoteCharactersIfNecessary
private static String removeQuoteCharactersIfNecessary(String fileName, String option, char quote) throws Exception { boolean startingQuote = (option.charAt(0) == quote); boolean endingQuote = (option.charAt(option.length() - 1) == quote); if (startingQuote && endingQuote) { ...
java
private static String removeQuoteCharactersIfNecessary(String fileName, String option, char quote) throws Exception { boolean startingQuote = (option.charAt(0) == quote); boolean endingQuote = (option.charAt(option.length() - 1) == quote); if (startingQuote && endingQuote) { ...
[ "private", "static", "String", "removeQuoteCharactersIfNecessary", "(", "String", "fileName", ",", "String", "option", ",", "char", "quote", ")", "throws", "Exception", "{", "boolean", "startingQuote", "=", "(", "option", ".", "charAt", "(", "0", ")", "==", "q...
Removes the surrounding quote characters from the given string. The quotes are identified by the quote parameter, the given string by option. The fileName parameter is used for raising exceptions with relevant message. @param fileName @param option @param quote @return @throws Exception
[ "Removes", "the", "surrounding", "quote", "characters", "from", "the", "given", "string", ".", "The", "quotes", "are", "identified", "by", "the", "quote", "parameter", "the", "given", "string", "by", "option", ".", "The", "fileName", "parameter", "is", "used",...
4c41e4a953301f81a4c655efb2a847603dee8afc
https://github.com/marklogic/marklogic-contentpump/blob/4c41e4a953301f81a4c655efb2a847603dee8afc/mlcp/src/main/java/com/marklogic/contentpump/utilities/OptionsFileUtil.java#L153-L172
134,507
marklogic/marklogic-contentpump
mlcp/src/main/java/com/marklogic/contentpump/LocalJobRunner.java
LocalJobRunner.assignThreads
private int assignThreads(int splitIndex, int splitCount) { if (threadsPerSplit > 0) { return threadsPerSplit; } if (splitCount == 1) { return threadCount; } if (splitCount * minThreads > threadCount) { return minThreads; } if (splitIndex %...
java
private int assignThreads(int splitIndex, int splitCount) { if (threadsPerSplit > 0) { return threadsPerSplit; } if (splitCount == 1) { return threadCount; } if (splitCount * minThreads > threadCount) { return minThreads; } if (splitIndex %...
[ "private", "int", "assignThreads", "(", "int", "splitIndex", ",", "int", "splitCount", ")", "{", "if", "(", "threadsPerSplit", ">", "0", ")", "{", "return", "threadsPerSplit", ";", "}", "if", "(", "splitCount", "==", "1", ")", "{", "return", "threadCount",...
Assign thread count for a given split @param splitIndex split index @param splitCount @return
[ "Assign", "thread", "count", "for", "a", "given", "split" ]
4c41e4a953301f81a4c655efb2a847603dee8afc
https://github.com/marklogic/marklogic-contentpump/blob/4c41e4a953301f81a4c655efb2a847603dee8afc/mlcp/src/main/java/com/marklogic/contentpump/LocalJobRunner.java#L306-L321
134,508
marklogic/marklogic-contentpump
mlcp/src/main/java/com/marklogic/contentpump/utilities/DocBuilder.java
DocBuilder.configFields
public void configFields(Configuration conf, String[] fields) throws IllegalArgumentException, IOException { for (int i = 0; i < fields.length; i++) { fields[i] = fields[i].trim(); if ("".equals(fields[i])) { LOG.warn("Column " + (i+1) + " has no header and w...
java
public void configFields(Configuration conf, String[] fields) throws IllegalArgumentException, IOException { for (int i = 0; i < fields.length; i++) { fields[i] = fields[i].trim(); if ("".equals(fields[i])) { LOG.warn("Column " + (i+1) + " has no header and w...
[ "public", "void", "configFields", "(", "Configuration", "conf", ",", "String", "[", "]", "fields", ")", "throws", "IllegalArgumentException", ",", "IOException", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "fields", ".", "length", ";", "i", "++...
Check document header fields. @param fields @throws IOException
[ "Check", "document", "header", "fields", "." ]
4c41e4a953301f81a4c655efb2a847603dee8afc
https://github.com/marklogic/marklogic-contentpump/blob/4c41e4a953301f81a4c655efb2a847603dee8afc/mlcp/src/main/java/com/marklogic/contentpump/utilities/DocBuilder.java#L68-L76
134,509
aerospike/aerospike-helper
java/src/main/java/com/aerospike/helper/query/QueryEngine.java
QueryEngine.setClient
public void setClient(AerospikeClient client) { this.client = client; this.updatePolicy = new WritePolicy(this.client.writePolicyDefault); this.updatePolicy.recordExistsAction = RecordExistsAction.UPDATE_ONLY; this.insertPolicy = new WritePolicy(this.client.writePolicyDefault); this.insertPolicy.recordExistsA...
java
public void setClient(AerospikeClient client) { this.client = client; this.updatePolicy = new WritePolicy(this.client.writePolicyDefault); this.updatePolicy.recordExistsAction = RecordExistsAction.UPDATE_ONLY; this.insertPolicy = new WritePolicy(this.client.writePolicyDefault); this.insertPolicy.recordExistsA...
[ "public", "void", "setClient", "(", "AerospikeClient", "client", ")", "{", "this", ".", "client", "=", "client", ";", "this", ".", "updatePolicy", "=", "new", "WritePolicy", "(", "this", ".", "client", ".", "writePolicyDefault", ")", ";", "this", ".", "upd...
Sets the AerospikeClient @param client An instance of AerospikeClient
[ "Sets", "the", "AerospikeClient" ]
eeb4a1464bc8d9c6716c014d250c8166b5caa82d
https://github.com/aerospike/aerospike-helper/blob/eeb4a1464bc8d9c6716c014d250c8166b5caa82d/java/src/main/java/com/aerospike/helper/query/QueryEngine.java#L121-L130
134,510
aerospike/aerospike-helper
java/src/main/java/com/aerospike/helper/query/QueryEngine.java
QueryEngine.select
public KeyRecordIterator select(String namespace, String set, Filter filter, Qualifier... qualifiers) { Statement stmt = new Statement(); stmt.setNamespace(namespace); stmt.setSetName(set); if (filter != null) stmt.setFilters(filter); return select(stmt, qualifiers); }
java
public KeyRecordIterator select(String namespace, String set, Filter filter, Qualifier... qualifiers) { Statement stmt = new Statement(); stmt.setNamespace(namespace); stmt.setSetName(set); if (filter != null) stmt.setFilters(filter); return select(stmt, qualifiers); }
[ "public", "KeyRecordIterator", "select", "(", "String", "namespace", ",", "String", "set", ",", "Filter", "filter", ",", "Qualifier", "...", "qualifiers", ")", "{", "Statement", "stmt", "=", "new", "Statement", "(", ")", ";", "stmt", ".", "setNamespace", "("...
Select records filtered by a Filter and Qualifiers @param namespace Namespace to storing the data @param set Set storing the data @param filter Aerospike Filter to be used @param qualifiers Zero or more Qualifiers for the update query @return A KeyRecordIterator to iterate over the results
[ "Select", "records", "filtered", "by", "a", "Filter", "and", "Qualifiers" ]
eeb4a1464bc8d9c6716c014d250c8166b5caa82d
https://github.com/aerospike/aerospike-helper/blob/eeb4a1464bc8d9c6716c014d250c8166b5caa82d/java/src/main/java/com/aerospike/helper/query/QueryEngine.java#L197-L204
134,511
aerospike/aerospike-helper
java/src/main/java/com/aerospike/helper/query/QueryEngine.java
QueryEngine.insert
public void insert(String namespace, String set, Key key, List<Bin> bins) { insert(namespace, set, key, bins, 0); }
java
public void insert(String namespace, String set, Key key, List<Bin> bins) { insert(namespace, set, key, bins, 0); }
[ "public", "void", "insert", "(", "String", "namespace", ",", "String", "set", ",", "Key", "key", ",", "List", "<", "Bin", ">", "bins", ")", "{", "insert", "(", "namespace", ",", "set", ",", "key", ",", "bins", ",", "0", ")", ";", "}" ]
inserts a record. If the record exists, and exception will be thrown. @param namespace Namespace to store the record @param set Set to store the record @param key Key of the record @param bins A list of Bins to insert
[ "inserts", "a", "record", ".", "If", "the", "record", "exists", "and", "exception", "will", "be", "thrown", "." ]
eeb4a1464bc8d9c6716c014d250c8166b5caa82d
https://github.com/aerospike/aerospike-helper/blob/eeb4a1464bc8d9c6716c014d250c8166b5caa82d/java/src/main/java/com/aerospike/helper/query/QueryEngine.java#L353-L355
134,512
aerospike/aerospike-helper
java/src/main/java/com/aerospike/helper/query/QueryEngine.java
QueryEngine.insert
public void insert(String namespace, String set, Key key, List<Bin> bins, int ttl) { this.client.put(this.insertPolicy, key, bins.toArray(new Bin[0])); }
java
public void insert(String namespace, String set, Key key, List<Bin> bins, int ttl) { this.client.put(this.insertPolicy, key, bins.toArray(new Bin[0])); }
[ "public", "void", "insert", "(", "String", "namespace", ",", "String", "set", ",", "Key", "key", ",", "List", "<", "Bin", ">", "bins", ",", "int", "ttl", ")", "{", "this", ".", "client", ".", "put", "(", "this", ".", "insertPolicy", ",", "key", ","...
inserts a record with a time to live. If the record exists, and exception will be thrown. @param namespace Namespace to store the record @param set Set to store the record @param key Key of the record @param bins A list of Bins to insert @param ttl The record time to live in seconds
[ "inserts", "a", "record", "with", "a", "time", "to", "live", ".", "If", "the", "record", "exists", "and", "exception", "will", "be", "thrown", "." ]
eeb4a1464bc8d9c6716c014d250c8166b5caa82d
https://github.com/aerospike/aerospike-helper/blob/eeb4a1464bc8d9c6716c014d250c8166b5caa82d/java/src/main/java/com/aerospike/helper/query/QueryEngine.java#L366-L368
134,513
aerospike/aerospike-helper
java/src/main/java/com/aerospike/helper/query/QueryEngine.java
QueryEngine.insert
public void insert(Statement stmt, KeyQualifier keyQualifier, List<Bin> bins) { insert(stmt, keyQualifier, bins, 0); }
java
public void insert(Statement stmt, KeyQualifier keyQualifier, List<Bin> bins) { insert(stmt, keyQualifier, bins, 0); }
[ "public", "void", "insert", "(", "Statement", "stmt", ",", "KeyQualifier", "keyQualifier", ",", "List", "<", "Bin", ">", "bins", ")", "{", "insert", "(", "stmt", ",", "keyQualifier", ",", "bins", ",", "0", ")", ";", "}" ]
inserts a record using a Statement and KeyQualifier. If the record exists, and exception will be thrown. @param stmt A Statement object containing Namespace and Set @param keyQualifier KeyQualifier containin the primary key @param bins A list of Bins to insert
[ "inserts", "a", "record", "using", "a", "Statement", "and", "KeyQualifier", ".", "If", "the", "record", "exists", "and", "exception", "will", "be", "thrown", "." ]
eeb4a1464bc8d9c6716c014d250c8166b5caa82d
https://github.com/aerospike/aerospike-helper/blob/eeb4a1464bc8d9c6716c014d250c8166b5caa82d/java/src/main/java/com/aerospike/helper/query/QueryEngine.java#L377-L379
134,514
aerospike/aerospike-helper
java/src/main/java/com/aerospike/helper/query/QueryEngine.java
QueryEngine.insert
public void insert(Statement stmt, KeyQualifier keyQualifier, List<Bin> bins, int ttl) { Key key = keyQualifier.makeKey(stmt.getNamespace(), stmt.getSetName()); // Key key = new Key(stmt.getNamespace(), stmt.getSetName(), keyQualifier.getValue1()); this.client.put(this.insertPolicy, key, bins.toArray(new Bin[0])...
java
public void insert(Statement stmt, KeyQualifier keyQualifier, List<Bin> bins, int ttl) { Key key = keyQualifier.makeKey(stmt.getNamespace(), stmt.getSetName()); // Key key = new Key(stmt.getNamespace(), stmt.getSetName(), keyQualifier.getValue1()); this.client.put(this.insertPolicy, key, bins.toArray(new Bin[0])...
[ "public", "void", "insert", "(", "Statement", "stmt", ",", "KeyQualifier", "keyQualifier", ",", "List", "<", "Bin", ">", "bins", ",", "int", "ttl", ")", "{", "Key", "key", "=", "keyQualifier", ".", "makeKey", "(", "stmt", ".", "getNamespace", "(", ")", ...
inserts a record, with a time to live, using a Statement and KeyQualifier. If the record exists, and exception will be thrown. @param stmt A Statement object containing Namespace and Set @param keyQualifier KeyQualifier containin the primary key @param bins A list of Bins to insert @param ttl The record time to...
[ "inserts", "a", "record", "with", "a", "time", "to", "live", "using", "a", "Statement", "and", "KeyQualifier", ".", "If", "the", "record", "exists", "and", "exception", "will", "be", "thrown", "." ]
eeb4a1464bc8d9c6716c014d250c8166b5caa82d
https://github.com/aerospike/aerospike-helper/blob/eeb4a1464bc8d9c6716c014d250c8166b5caa82d/java/src/main/java/com/aerospike/helper/query/QueryEngine.java#L389-L393
134,515
aerospike/aerospike-helper
java/src/main/java/com/aerospike/helper/query/QueryEngine.java
QueryEngine.update
public Map<String, Long> update(Statement stmt, List<Bin> bins, Qualifier... qualifiers) { if (qualifiers != null && qualifiers.length == 1 && qualifiers[0] instanceof KeyQualifier) { KeyQualifier keyQualifier = (KeyQualifier) qualifiers[0]; Key key = keyQualifier.makeKey(stmt.getNamespace(), stmt.getSetName())...
java
public Map<String, Long> update(Statement stmt, List<Bin> bins, Qualifier... qualifiers) { if (qualifiers != null && qualifiers.length == 1 && qualifiers[0] instanceof KeyQualifier) { KeyQualifier keyQualifier = (KeyQualifier) qualifiers[0]; Key key = keyQualifier.makeKey(stmt.getNamespace(), stmt.getSetName())...
[ "public", "Map", "<", "String", ",", "Long", ">", "update", "(", "Statement", "stmt", ",", "List", "<", "Bin", ">", "bins", ",", "Qualifier", "...", "qualifiers", ")", "{", "if", "(", "qualifiers", "!=", "null", "&&", "qualifiers", ".", "length", "==",...
The list of Bins will update each record that match the Qualifiers supplied. @param stmt A Statement object containing Namespace and Set @param bins A list of Bin objects with the values to updated @param qualifiers Zero or more Qualifiers for the update query @return returns a Map containing a number of success...
[ "The", "list", "of", "Bins", "will", "update", "each", "record", "that", "match", "the", "Qualifiers", "supplied", "." ]
eeb4a1464bc8d9c6716c014d250c8166b5caa82d
https://github.com/aerospike/aerospike-helper/blob/eeb4a1464bc8d9c6716c014d250c8166b5caa82d/java/src/main/java/com/aerospike/helper/query/QueryEngine.java#L412-L425
134,516
aerospike/aerospike-helper
java/src/main/java/com/aerospike/helper/query/QueryEngine.java
QueryEngine.delete
public Map<String, Long> delete(Statement stmt, Qualifier... qualifiers) { if (qualifiers == null || qualifiers.length == 0) { /* * There are no qualifiers, so delete every record in the set * using Scan UDF delete */ ExecuteTask task = client.execute(null, stmt, QUERY_MODULE, "delete_record"); t...
java
public Map<String, Long> delete(Statement stmt, Qualifier... qualifiers) { if (qualifiers == null || qualifiers.length == 0) { /* * There are no qualifiers, so delete every record in the set * using Scan UDF delete */ ExecuteTask task = client.execute(null, stmt, QUERY_MODULE, "delete_record"); t...
[ "public", "Map", "<", "String", ",", "Long", ">", "delete", "(", "Statement", "stmt", ",", "Qualifier", "...", "qualifiers", ")", "{", "if", "(", "qualifiers", "==", "null", "||", "qualifiers", ".", "length", "==", "0", ")", "{", "/*\n\t\t\t * There are no...
Deletes the records specified by the Statement and Qualifiers @param stmt A Statement object containing Namespace and Set @param qualifiers Zero or more Qualifiers for the update query @return returns a Map containing a number of successful updates. The Map will contain 2 keys "read" and "write", the values will be...
[ "Deletes", "the", "records", "specified", "by", "the", "Statement", "and", "Qualifiers" ]
eeb4a1464bc8d9c6716c014d250c8166b5caa82d
https://github.com/aerospike/aerospike-helper/blob/eeb4a1464bc8d9c6716c014d250c8166b5caa82d/java/src/main/java/com/aerospike/helper/query/QueryEngine.java#L463-L485
134,517
aerospike/aerospike-helper
java/src/main/java/com/aerospike/helper/query/QueryEngine.java
QueryEngine.refreshNamespaces
public synchronized void refreshNamespaces() { /* * cache namespaces */ if (this.namespaceCache == null) { this.namespaceCache = new TreeMap<String, Namespace>(); Node[] nodes = client.getNodes(); for (Node node : nodes) { try { String namespaceString = Info.request(getInfoPolicy(), node, "n...
java
public synchronized void refreshNamespaces() { /* * cache namespaces */ if (this.namespaceCache == null) { this.namespaceCache = new TreeMap<String, Namespace>(); Node[] nodes = client.getNodes(); for (Node node : nodes) { try { String namespaceString = Info.request(getInfoPolicy(), node, "n...
[ "public", "synchronized", "void", "refreshNamespaces", "(", ")", "{", "/*\n\t\t * cache namespaces\n\t\t */", "if", "(", "this", ".", "namespaceCache", "==", "null", ")", "{", "this", ".", "namespaceCache", "=", "new", "TreeMap", "<", "String", ",", "Namespace", ...
refreshes the cached Namespace information
[ "refreshes", "the", "cached", "Namespace", "information" ]
eeb4a1464bc8d9c6716c014d250c8166b5caa82d
https://github.com/aerospike/aerospike-helper/blob/eeb4a1464bc8d9c6716c014d250c8166b5caa82d/java/src/main/java/com/aerospike/helper/query/QueryEngine.java#L581-L608
134,518
aerospike/aerospike-helper
java/src/main/java/com/aerospike/helper/query/QueryEngine.java
QueryEngine.refreshIndexes
public synchronized void refreshIndexes() { /* * cache index by Bin name */ if (this.indexCache == null) this.indexCache = new TreeMap<String, Index>(); Node[] nodes = client.getNodes(); for (Node node : nodes) { if (node.isActive()) { try { String indexString = Info.request(getInfoPolicy(...
java
public synchronized void refreshIndexes() { /* * cache index by Bin name */ if (this.indexCache == null) this.indexCache = new TreeMap<String, Index>(); Node[] nodes = client.getNodes(); for (Node node : nodes) { if (node.isActive()) { try { String indexString = Info.request(getInfoPolicy(...
[ "public", "synchronized", "void", "refreshIndexes", "(", ")", "{", "/*\n\t\t * cache index by Bin name\n\t\t */", "if", "(", "this", ".", "indexCache", "==", "null", ")", "this", ".", "indexCache", "=", "new", "TreeMap", "<", "String", ",", "Index", ">", "(", ...
refreshes the Index cache from the Cluster
[ "refreshes", "the", "Index", "cache", "from", "the", "Cluster" ]
eeb4a1464bc8d9c6716c014d250c8166b5caa82d
https://github.com/aerospike/aerospike-helper/blob/eeb4a1464bc8d9c6716c014d250c8166b5caa82d/java/src/main/java/com/aerospike/helper/query/QueryEngine.java#L651-L676
134,519
aerospike/aerospike-helper
java/src/main/java/com/aerospike/helper/query/QueryEngine.java
QueryEngine.refreshModules
public synchronized void refreshModules() { if (this.moduleCache == null) this.moduleCache = new TreeMap<String, Module>(); boolean loadedModules = false; Node[] nodes = client.getNodes(); for (Node node : nodes) { try { String packagesString = Info.request(infoPolicy, node, "udf-list"); if (!pac...
java
public synchronized void refreshModules() { if (this.moduleCache == null) this.moduleCache = new TreeMap<String, Module>(); boolean loadedModules = false; Node[] nodes = client.getNodes(); for (Node node : nodes) { try { String packagesString = Info.request(infoPolicy, node, "udf-list"); if (!pac...
[ "public", "synchronized", "void", "refreshModules", "(", ")", "{", "if", "(", "this", ".", "moduleCache", "==", "null", ")", "this", ".", "moduleCache", "=", "new", "TreeMap", "<", "String", ",", "Module", ">", "(", ")", ";", "boolean", "loadedModules", ...
refreshes the Module cache from the cluster. The Module cache contains a list of register UDF modules.
[ "refreshes", "the", "Module", "cache", "from", "the", "cluster", ".", "The", "Module", "cache", "contains", "a", "list", "of", "register", "UDF", "modules", "." ]
eeb4a1464bc8d9c6716c014d250c8166b5caa82d
https://github.com/aerospike/aerospike-helper/blob/eeb4a1464bc8d9c6716c014d250c8166b5caa82d/java/src/main/java/com/aerospike/helper/query/QueryEngine.java#L691-L718
134,520
aerospike/aerospike-helper
java/src/main/java/com/aerospike/helper/query/QueryEngine.java
QueryEngine.close
@Override public void close() throws IOException { if (this.client != null) this.client.close(); indexCache.clear(); indexCache = null; updatePolicy = null; insertPolicy = null; infoPolicy = null; queryPolicy = null; moduleCache.clear(); moduleCache = null; }
java
@Override public void close() throws IOException { if (this.client != null) this.client.close(); indexCache.clear(); indexCache = null; updatePolicy = null; insertPolicy = null; infoPolicy = null; queryPolicy = null; moduleCache.clear(); moduleCache = null; }
[ "@", "Override", "public", "void", "close", "(", ")", "throws", "IOException", "{", "if", "(", "this", ".", "client", "!=", "null", ")", "this", ".", "client", ".", "close", "(", ")", ";", "indexCache", ".", "clear", "(", ")", ";", "indexCache", "=",...
closes the QueryEngine, clearing the cached information are closing the AerospikeClient. Once the QueryEngine is closed, it cannot be used, nor can the AerospikeClient.
[ "closes", "the", "QueryEngine", "clearing", "the", "cached", "information", "are", "closing", "the", "AerospikeClient", ".", "Once", "the", "QueryEngine", "is", "closed", "it", "cannot", "be", "used", "nor", "can", "the", "AerospikeClient", "." ]
eeb4a1464bc8d9c6716c014d250c8166b5caa82d
https://github.com/aerospike/aerospike-helper/blob/eeb4a1464bc8d9c6716c014d250c8166b5caa82d/java/src/main/java/com/aerospike/helper/query/QueryEngine.java#L734-L746
134,521
aerospike/aerospike-helper
java/src/main/java/com/aerospike/helper/model/Index.java
Index.setIndexInfo
public void setIndexInfo(String info) { //ns=phobos_sindex:set=longevity:indexname=str_100_idx:num_bins=1:bins=str_100_bin:type=TEXT:sync_state=synced:state=RW; //ns=test:set=Customers:indexname=mail_index_userss:bin=email:type=STRING:indextype=LIST:path=email:sync_state=synced:state=RW if (!info.isEmpty()) { ...
java
public void setIndexInfo(String info) { //ns=phobos_sindex:set=longevity:indexname=str_100_idx:num_bins=1:bins=str_100_bin:type=TEXT:sync_state=synced:state=RW; //ns=test:set=Customers:indexname=mail_index_userss:bin=email:type=STRING:indextype=LIST:path=email:sync_state=synced:state=RW if (!info.isEmpty()) { ...
[ "public", "void", "setIndexInfo", "(", "String", "info", ")", "{", "//ns=phobos_sindex:set=longevity:indexname=str_100_idx:num_bins=1:bins=str_100_bin:type=TEXT:sync_state=synced:state=RW;", "//ns=test:set=Customers:indexname=mail_index_userss:bin=email:type=STRING:indextype=LIST:path=email:sync_s...
Populates the Index object from an "info" message from Aerospike @param info Info string from node
[ "Populates", "the", "Index", "object", "from", "an", "info", "message", "from", "Aerospike" ]
eeb4a1464bc8d9c6716c014d250c8166b5caa82d
https://github.com/aerospike/aerospike-helper/blob/eeb4a1464bc8d9c6716c014d250c8166b5caa82d/java/src/main/java/com/aerospike/helper/model/Index.java#L61-L70
134,522
aerospike/aerospike-helper
java/src/main/java/com/aerospike/helper/collections/TimeSeries.java
TimeSeries.clear
public void clear() { Record record = this.client.get(null, key, tailBin, topBin); long tail = record.getLong(tailBin); long top = record.getLong(topBin); List<Key> subKeys = subrecordKeys(tail, top); for (Key key : subKeys) { this.client.delete(null, key); } }
java
public void clear() { Record record = this.client.get(null, key, tailBin, topBin); long tail = record.getLong(tailBin); long top = record.getLong(topBin); List<Key> subKeys = subrecordKeys(tail, top); for (Key key : subKeys) { this.client.delete(null, key); } }
[ "public", "void", "clear", "(", ")", "{", "Record", "record", "=", "this", ".", "client", ".", "get", "(", "null", ",", "key", ",", "tailBin", ",", "topBin", ")", ";", "long", "tail", "=", "record", ".", "getLong", "(", "tailBin", ")", ";", "long",...
clear all elements from the TimeSeries associated with a Key
[ "clear", "all", "elements", "from", "the", "TimeSeries", "associated", "with", "a", "Key" ]
eeb4a1464bc8d9c6716c014d250c8166b5caa82d
https://github.com/aerospike/aerospike-helper/blob/eeb4a1464bc8d9c6716c014d250c8166b5caa82d/java/src/main/java/com/aerospike/helper/collections/TimeSeries.java#L122-L130
134,523
aerospike/aerospike-helper
java/src/main/java/com/aerospike/helper/collections/TimeSeries.java
TimeSeries.destroy
public void destroy() { clear(); this.client.operate(null, key, Operation.put(Bin.asNull(binName))); }
java
public void destroy() { clear(); this.client.operate(null, key, Operation.put(Bin.asNull(binName))); }
[ "public", "void", "destroy", "(", ")", "{", "clear", "(", ")", ";", "this", ".", "client", ".", "operate", "(", "null", ",", "key", ",", "Operation", ".", "put", "(", "Bin", ".", "asNull", "(", "binName", ")", ")", ")", ";", "}" ]
Destroy the TimeSeries associated with a Key
[ "Destroy", "the", "TimeSeries", "associated", "with", "a", "Key" ]
eeb4a1464bc8d9c6716c014d250c8166b5caa82d
https://github.com/aerospike/aerospike-helper/blob/eeb4a1464bc8d9c6716c014d250c8166b5caa82d/java/src/main/java/com/aerospike/helper/collections/TimeSeries.java#L135-L138
134,524
aerospike/aerospike-helper
java/src/main/java/com/aerospike/helper/collections/TimeSeries.java
TimeSeries.subrecordKeys
List<Key> subrecordKeys(long lowTime, long highTime) { List<Key> keys = new ArrayList<Key>(); long lowBucketNumber = bucketNumber(lowTime); long highBucketNumber = bucketNumber(highTime); for (long index = lowBucketNumber; index <= highBucketNumber; index += this.bucketSize) { keys.add(formSubrecordKey(index...
java
List<Key> subrecordKeys(long lowTime, long highTime) { List<Key> keys = new ArrayList<Key>(); long lowBucketNumber = bucketNumber(lowTime); long highBucketNumber = bucketNumber(highTime); for (long index = lowBucketNumber; index <= highBucketNumber; index += this.bucketSize) { keys.add(formSubrecordKey(index...
[ "List", "<", "Key", ">", "subrecordKeys", "(", "long", "lowTime", ",", "long", "highTime", ")", "{", "List", "<", "Key", ">", "keys", "=", "new", "ArrayList", "<", "Key", ">", "(", ")", ";", "long", "lowBucketNumber", "=", "bucketNumber", "(", "lowTime...
creates a list of Keys in the time series @param lowTime @param highTime @return
[ "creates", "a", "list", "of", "Keys", "in", "the", "time", "series" ]
eeb4a1464bc8d9c6716c014d250c8166b5caa82d
https://github.com/aerospike/aerospike-helper/blob/eeb4a1464bc8d9c6716c014d250c8166b5caa82d/java/src/main/java/com/aerospike/helper/collections/TimeSeries.java#L147-L155
134,525
aerospike/aerospike-helper
java/src/main/java/com/aerospike/helper/collections/LargeList.java
LargeList.update
public void update(Value value) { if (size() == 0) { add(value); } else { Key subKey = makeSubKey(value); client.put(this.policy, subKey, new Bin(ListElementBinName, value)); } }
java
public void update(Value value) { if (size() == 0) { add(value); } else { Key subKey = makeSubKey(value); client.put(this.policy, subKey, new Bin(ListElementBinName, value)); } }
[ "public", "void", "update", "(", "Value", "value", ")", "{", "if", "(", "size", "(", ")", "==", "0", ")", "{", "add", "(", "value", ")", ";", "}", "else", "{", "Key", "subKey", "=", "makeSubKey", "(", "value", ")", ";", "client", ".", "put", "(...
Update value in list if key exists. Add value to list if key does not exist. If value is a map, the key is identified by "key" entry. Otherwise, the value is the key. If large list does not exist, create it. @param value value to update
[ "Update", "value", "in", "list", "if", "key", "exists", ".", "Add", "value", "to", "list", "if", "key", "does", "not", "exist", ".", "If", "value", "is", "a", "map", "the", "key", "is", "identified", "by", "key", "entry", ".", "Otherwise", "the", "va...
eeb4a1464bc8d9c6716c014d250c8166b5caa82d
https://github.com/aerospike/aerospike-helper/blob/eeb4a1464bc8d9c6716c014d250c8166b5caa82d/java/src/main/java/com/aerospike/helper/collections/LargeList.java#L224-L231
134,526
aerospike/aerospike-helper
java/src/main/java/com/aerospike/helper/collections/LargeList.java
LargeList.remove
public void remove(Value value) { Key subKey = makeSubKey(value); List<byte[]> digestList = getDigestList(); int index = digestList.indexOf(subKey.digest); client.delete(this.policy, subKey); client.operate(this.policy, this.key, ListOperation.remove(this.binNameString, index)); }
java
public void remove(Value value) { Key subKey = makeSubKey(value); List<byte[]> digestList = getDigestList(); int index = digestList.indexOf(subKey.digest); client.delete(this.policy, subKey); client.operate(this.policy, this.key, ListOperation.remove(this.binNameString, index)); }
[ "public", "void", "remove", "(", "Value", "value", ")", "{", "Key", "subKey", "=", "makeSubKey", "(", "value", ")", ";", "List", "<", "byte", "[", "]", ">", "digestList", "=", "getDigestList", "(", ")", ";", "int", "index", "=", "digestList", ".", "i...
Delete value from list. @param value The value to value to delete
[ "Delete", "value", "from", "list", "." ]
eeb4a1464bc8d9c6716c014d250c8166b5caa82d
https://github.com/aerospike/aerospike-helper/blob/eeb4a1464bc8d9c6716c014d250c8166b5caa82d/java/src/main/java/com/aerospike/helper/collections/LargeList.java#L264-L270
134,527
aerospike/aerospike-helper
java/src/main/java/com/aerospike/helper/collections/LargeList.java
LargeList.remove
public void remove(List<Value> values) { Key[] keys = makeSubKeys(values); List<byte[]> digestList = getDigestList(); // int startIndex = digestList.IndexOf (subKey.digest); // int count = values.Count; // foreach (Key key in keys){ // // client.Delete (this.policy, key); // } // client.Operat...
java
public void remove(List<Value> values) { Key[] keys = makeSubKeys(values); List<byte[]> digestList = getDigestList(); // int startIndex = digestList.IndexOf (subKey.digest); // int count = values.Count; // foreach (Key key in keys){ // // client.Delete (this.policy, key); // } // client.Operat...
[ "public", "void", "remove", "(", "List", "<", "Value", ">", "values", ")", "{", "Key", "[", "]", "keys", "=", "makeSubKeys", "(", "values", ")", ";", "List", "<", "byte", "[", "]", ">", "digestList", "=", "getDigestList", "(", ")", ";", "//\t\tint st...
Delete values from list. @param values A list of values to delete
[ "Delete", "values", "from", "list", "." ]
eeb4a1464bc8d9c6716c014d250c8166b5caa82d
https://github.com/aerospike/aerospike-helper/blob/eeb4a1464bc8d9c6716c014d250c8166b5caa82d/java/src/main/java/com/aerospike/helper/collections/LargeList.java#L277-L295
134,528
aerospike/aerospike-helper
java/src/main/java/com/aerospike/helper/collections/LargeList.java
LargeList.find
@SuppressWarnings("serial") public List<?> find(Value value) throws AerospikeException { Key subKey = makeSubKey(value); Record record = client.get(this.policy, subKey, ListElementBinName); if (record != null) { final Object result = record.getValue(ListElementBinName); return new ArrayList<Object>() {{ ...
java
@SuppressWarnings("serial") public List<?> find(Value value) throws AerospikeException { Key subKey = makeSubKey(value); Record record = client.get(this.policy, subKey, ListElementBinName); if (record != null) { final Object result = record.getValue(ListElementBinName); return new ArrayList<Object>() {{ ...
[ "@", "SuppressWarnings", "(", "\"serial\"", ")", "public", "List", "<", "?", ">", "find", "(", "Value", "value", ")", "throws", "AerospikeException", "{", "Key", "subKey", "=", "makeSubKey", "(", "value", ")", ";", "Record", "record", "=", "client", ".", ...
Select values from list. @param value value to select @return list of entries selected
[ "Select", "values", "from", "list", "." ]
eeb4a1464bc8d9c6716c014d250c8166b5caa82d
https://github.com/aerospike/aerospike-helper/blob/eeb4a1464bc8d9c6716c014d250c8166b5caa82d/java/src/main/java/com/aerospike/helper/collections/LargeList.java#L354-L366
134,529
aerospike/aerospike-helper
java/src/main/java/com/aerospike/helper/collections/LargeList.java
LargeList.destroy
public void destroy() { List<byte[]> digestList = getDigestList(); client.put(this.policy, this.key, Bin.asNull(this.binNameString)); for (byte[] digest : digestList) { Key subKey = new Key(this.key.namespace, digest, null, null); client.delete(this.policy, subKey); } }
java
public void destroy() { List<byte[]> digestList = getDigestList(); client.put(this.policy, this.key, Bin.asNull(this.binNameString)); for (byte[] digest : digestList) { Key subKey = new Key(this.key.namespace, digest, null, null); client.delete(this.policy, subKey); } }
[ "public", "void", "destroy", "(", ")", "{", "List", "<", "byte", "[", "]", ">", "digestList", "=", "getDigestList", "(", ")", ";", "client", ".", "put", "(", "this", ".", "policy", ",", "this", ".", "key", ",", "Bin", ".", "asNull", "(", "this", ...
Delete bin containing the list.
[ "Delete", "bin", "containing", "the", "list", "." ]
eeb4a1464bc8d9c6716c014d250c8166b5caa82d
https://github.com/aerospike/aerospike-helper/blob/eeb4a1464bc8d9c6716c014d250c8166b5caa82d/java/src/main/java/com/aerospike/helper/collections/LargeList.java#L503-L512
134,530
aerospike/aerospike-helper
java/src/main/java/com/aerospike/helper/collections/LargeList.java
LargeList.size
public int size() { Record record = client.operate(this.policy, this.key, ListOperation.size(this.binNameString)); if (record != null) { return record.getInt(this.binNameString); } return 0; }
java
public int size() { Record record = client.operate(this.policy, this.key, ListOperation.size(this.binNameString)); if (record != null) { return record.getInt(this.binNameString); } return 0; }
[ "public", "int", "size", "(", ")", "{", "Record", "record", "=", "client", ".", "operate", "(", "this", ".", "policy", ",", "this", ".", "key", ",", "ListOperation", ".", "size", "(", "this", ".", "binNameString", ")", ")", ";", "if", "(", "record", ...
Return size of list. @return size of list.
[ "Return", "size", "of", "list", "." ]
eeb4a1464bc8d9c6716c014d250c8166b5caa82d
https://github.com/aerospike/aerospike-helper/blob/eeb4a1464bc8d9c6716c014d250c8166b5caa82d/java/src/main/java/com/aerospike/helper/collections/LargeList.java#L519-L525
134,531
aerospike/aerospike-helper
java/src/main/java/com/aerospike/helper/Utils.java
Utils.printInfo
public static void printInfo(String title, String infoString) { if (infoString == null) { System.out.println("Null info string"); return; } String[] outerParts = infoString.split(";"); System.out.println(title); for (String s : outerParts) { String[] innerParts = s.split(":"); for (String parts :...
java
public static void printInfo(String title, String infoString) { if (infoString == null) { System.out.println("Null info string"); return; } String[] outerParts = infoString.split(";"); System.out.println(title); for (String s : outerParts) { String[] innerParts = s.split(":"); for (String parts :...
[ "public", "static", "void", "printInfo", "(", "String", "title", ",", "String", "infoString", ")", "{", "if", "(", "infoString", "==", "null", ")", "{", "System", ".", "out", ".", "println", "(", "\"Null info string\"", ")", ";", "return", ";", "}", "Str...
Prints an "Info" message with a title to System.out @param title Title to be printed @param infoString Info string from cluster
[ "Prints", "an", "Info", "message", "with", "a", "title", "to", "System", ".", "out" ]
eeb4a1464bc8d9c6716c014d250c8166b5caa82d
https://github.com/aerospike/aerospike-helper/blob/eeb4a1464bc8d9c6716c014d250c8166b5caa82d/java/src/main/java/com/aerospike/helper/Utils.java#L36-L51
134,532
aerospike/aerospike-helper
java/src/main/java/com/aerospike/helper/Utils.java
Utils.infoAll
public static String infoAll(AerospikeClient client, String cmd) { Node[] nodes = client.getNodes(); StringBuilder results = new StringBuilder(); for (Node node : nodes) { results.append(Info.request(node.getHost().name, node.getHost().port, cmd)).append("\n"); } return results.toString(); }
java
public static String infoAll(AerospikeClient client, String cmd) { Node[] nodes = client.getNodes(); StringBuilder results = new StringBuilder(); for (Node node : nodes) { results.append(Info.request(node.getHost().name, node.getHost().port, cmd)).append("\n"); } return results.toString(); }
[ "public", "static", "String", "infoAll", "(", "AerospikeClient", "client", ",", "String", "cmd", ")", "{", "Node", "[", "]", "nodes", "=", "client", ".", "getNodes", "(", ")", ";", "StringBuilder", "results", "=", "new", "StringBuilder", "(", ")", ";", "...
Sends an "Info" command to all nodes in the cluster @param client AerospikeClient instance @param cmd Info command to be sent to the cluster @return A string containing the results from all nodes in the cluster
[ "Sends", "an", "Info", "command", "to", "all", "nodes", "in", "the", "cluster" ]
eeb4a1464bc8d9c6716c014d250c8166b5caa82d
https://github.com/aerospike/aerospike-helper/blob/eeb4a1464bc8d9c6716c014d250c8166b5caa82d/java/src/main/java/com/aerospike/helper/Utils.java#L60-L67
134,533
aerospike/aerospike-helper
java/src/main/java/com/aerospike/helper/Utils.java
Utils.toMap
public static Map<String, String> toMap(String source) { HashMap<String, String> responses = new HashMap<String, String>(); String values[] = source.split(";"); for (String value : values) { String nv[] = value.split("="); if (nv.length >= 2) { responses.put(nv[0], nv[1]); } else if (nv.length == 1...
java
public static Map<String, String> toMap(String source) { HashMap<String, String> responses = new HashMap<String, String>(); String values[] = source.split(";"); for (String value : values) { String nv[] = value.split("="); if (nv.length >= 2) { responses.put(nv[0], nv[1]); } else if (nv.length == 1...
[ "public", "static", "Map", "<", "String", ",", "String", ">", "toMap", "(", "String", "source", ")", "{", "HashMap", "<", "String", ",", "String", ">", "responses", "=", "new", "HashMap", "<", "String", ",", "String", ">", "(", ")", ";", "String", "v...
converts the results of an "Info" command to a Map @param source Info string to be converted @return A map containing the info string fields
[ "converts", "the", "results", "of", "an", "Info", "command", "to", "a", "Map" ]
eeb4a1464bc8d9c6716c014d250c8166b5caa82d
https://github.com/aerospike/aerospike-helper/blob/eeb4a1464bc8d9c6716c014d250c8166b5caa82d/java/src/main/java/com/aerospike/helper/Utils.java#L75-L90
134,534
aerospike/aerospike-helper
java/src/main/java/com/aerospike/helper/Utils.java
Utils.toNameValuePair
public static List<NameValuePair> toNameValuePair(Object parent, Map<String, String> map) { List<NameValuePair> list = new ArrayList<NameValuePair>(); for (String key : map.keySet()) { NameValuePair nvp = new NameValuePair(parent, key, map.get(key)); list.add(nvp); } return list; }
java
public static List<NameValuePair> toNameValuePair(Object parent, Map<String, String> map) { List<NameValuePair> list = new ArrayList<NameValuePair>(); for (String key : map.keySet()) { NameValuePair nvp = new NameValuePair(parent, key, map.get(key)); list.add(nvp); } return list; }
[ "public", "static", "List", "<", "NameValuePair", ">", "toNameValuePair", "(", "Object", "parent", ",", "Map", "<", "String", ",", "String", ">", "map", ")", "{", "List", "<", "NameValuePair", ">", "list", "=", "new", "ArrayList", "<", "NameValuePair", ">"...
Creates a List of NameValuePair from a Map @param parent The Parent object to be added to the NameValuePair of each element @param map The map to be converted @return The List of NameValuePairs
[ "Creates", "a", "List", "of", "NameValuePair", "from", "a", "Map" ]
eeb4a1464bc8d9c6716c014d250c8166b5caa82d
https://github.com/aerospike/aerospike-helper/blob/eeb4a1464bc8d9c6716c014d250c8166b5caa82d/java/src/main/java/com/aerospike/helper/Utils.java#L99-L106
134,535
filosganga/geogson
core/src/main/java/com/github/filosganga/geogson/model/MultiPoint.java
MultiPoint.of
public static MultiPoint of(Stream<Point> points) { return of(points.collect(Collectors.toList())); }
java
public static MultiPoint of(Stream<Point> points) { return of(points.collect(Collectors.toList())); }
[ "public", "static", "MultiPoint", "of", "(", "Stream", "<", "Point", ">", "points", ")", "{", "return", "of", "(", "points", ".", "collect", "(", "Collectors", ".", "toList", "(", ")", ")", ")", ";", "}" ]
Creates a MultiPoint from the given points. @param points The {@link Point} Iterable. @return MultiPoint
[ "Creates", "a", "MultiPoint", "from", "the", "given", "points", "." ]
f0c7b0adfecc174caa8a03a6c19d301c7a47d4a0
https://github.com/filosganga/geogson/blob/f0c7b0adfecc174caa8a03a6c19d301c7a47d4a0/core/src/main/java/com/github/filosganga/geogson/model/MultiPoint.java#L75-L77
134,536
filosganga/geogson
core/src/main/java/com/github/filosganga/geogson/model/LinearRing.java
LinearRing.of
public static LinearRing of(Iterable<Point> points) { LinearPositions.Builder builder = LinearPositions.builder(); for(Point point : points) { builder.addSinglePosition(point.positions()); } return new LinearRing(builder.build()); }
java
public static LinearRing of(Iterable<Point> points) { LinearPositions.Builder builder = LinearPositions.builder(); for(Point point : points) { builder.addSinglePosition(point.positions()); } return new LinearRing(builder.build()); }
[ "public", "static", "LinearRing", "of", "(", "Iterable", "<", "Point", ">", "points", ")", "{", "LinearPositions", ".", "Builder", "builder", "=", "LinearPositions", ".", "builder", "(", ")", ";", "for", "(", "Point", "point", ":", "points", ")", "{", "b...
Create a LinearRing from the given points. @param points Point Iterable composed at least by 4 points, with the first and the last that are the same. @return a LinearRing
[ "Create", "a", "LinearRing", "from", "the", "given", "points", "." ]
f0c7b0adfecc174caa8a03a6c19d301c7a47d4a0
https://github.com/filosganga/geogson/blob/f0c7b0adfecc174caa8a03a6c19d301c7a47d4a0/core/src/main/java/com/github/filosganga/geogson/model/LinearRing.java#L52-L58
134,537
filosganga/geogson
core/src/main/java/com/github/filosganga/geogson/model/LinearGeometry.java
LinearGeometry.points
public List<Point> points() { return positions().children().stream() .map(Point::new) .collect(Collectors.toList()); }
java
public List<Point> points() { return positions().children().stream() .map(Point::new) .collect(Collectors.toList()); }
[ "public", "List", "<", "Point", ">", "points", "(", ")", "{", "return", "positions", "(", ")", ".", "children", "(", ")", ".", "stream", "(", ")", ".", "map", "(", "Point", "::", "new", ")", ".", "collect", "(", "Collectors", ".", "toList", "(", ...
Returns the points composing this Geometry. @return {@code Iterable<Point>} a Guava lazy Iterable.
[ "Returns", "the", "points", "composing", "this", "Geometry", "." ]
f0c7b0adfecc174caa8a03a6c19d301c7a47d4a0
https://github.com/filosganga/geogson/blob/f0c7b0adfecc174caa8a03a6c19d301c7a47d4a0/core/src/main/java/com/github/filosganga/geogson/model/LinearGeometry.java#L68-L73
134,538
filosganga/geogson
core/src/main/java/com/github/filosganga/geogson/model/Point.java
Point.from
public static Point from(double lon, double lat, double alt) { return new Point(new SinglePosition(lon, lat, alt)); }
java
public static Point from(double lon, double lat, double alt) { return new Point(new SinglePosition(lon, lat, alt)); }
[ "public", "static", "Point", "from", "(", "double", "lon", ",", "double", "lat", ",", "double", "alt", ")", "{", "return", "new", "Point", "(", "new", "SinglePosition", "(", "lon", ",", "lat", ",", "alt", ")", ")", ";", "}" ]
Create a Point from the given coordinates. @param lon The x axis value. Longitude in a geographic projection. @param lat The y axis value. Latitude in a geographic projection. @param alt The z axis value. Altitude in a geographic projection. @return Point instance.
[ "Create", "a", "Point", "from", "the", "given", "coordinates", "." ]
f0c7b0adfecc174caa8a03a6c19d301c7a47d4a0
https://github.com/filosganga/geogson/blob/f0c7b0adfecc174caa8a03a6c19d301c7a47d4a0/core/src/main/java/com/github/filosganga/geogson/model/Point.java#L59-L61
134,539
hal/core
gui/src/main/java/org/useware/kernel/gui/behaviour/InteractionCoordinator.java
InteractionCoordinator.fireEvent
public void fireEvent(final Event<?> event) { Scheduler.get().scheduleDeferred(new Scheduler.ScheduledCommand() { @Override public void execute() { bus.fireEventFromSource(event, dialog.getInterfaceModel().getId()); } }); }
java
public void fireEvent(final Event<?> event) { Scheduler.get().scheduleDeferred(new Scheduler.ScheduledCommand() { @Override public void execute() { bus.fireEventFromSource(event, dialog.getInterfaceModel().getId()); } }); }
[ "public", "void", "fireEvent", "(", "final", "Event", "<", "?", ">", "event", ")", "{", "Scheduler", ".", "get", "(", ")", ".", "scheduleDeferred", "(", "new", "Scheduler", ".", "ScheduledCommand", "(", ")", "{", "@", "Override", "public", "void", "execu...
Event delegation. Uses the dialog ID as source. @param event
[ "Event", "delegation", ".", "Uses", "the", "dialog", "ID", "as", "source", "." ]
d6d03f0bb128dc0470f5dc75fdb1ea1014400602
https://github.com/hal/core/blob/d6d03f0bb128dc0470f5dc75fdb1ea1014400602/gui/src/main/java/org/useware/kernel/gui/behaviour/InteractionCoordinator.java#L118-L127
134,540
hal/core
gui/src/main/java/org/useware/kernel/gui/behaviour/InteractionCoordinator.java
InteractionCoordinator.onInteractionEvent
@Override public void onInteractionEvent(final InteractionEvent event) { QName id = event.getId(); QName source = (QName)event.getSource(); final Set<Procedure> collection = procedures.get(id); Procedure execution = null; if(collection!=null) { for(Proce...
java
@Override public void onInteractionEvent(final InteractionEvent event) { QName id = event.getId(); QName source = (QName)event.getSource(); final Set<Procedure> collection = procedures.get(id); Procedure execution = null; if(collection!=null) { for(Proce...
[ "@", "Override", "public", "void", "onInteractionEvent", "(", "final", "InteractionEvent", "event", ")", "{", "QName", "id", "=", "event", ".", "getId", "(", ")", ";", "QName", "source", "=", "(", "QName", ")", "event", ".", "getSource", "(", ")", ";", ...
Find the corresponding procedures and execute it. @param event
[ "Find", "the", "corresponding", "procedures", "and", "execute", "it", "." ]
d6d03f0bb128dc0470f5dc75fdb1ea1014400602
https://github.com/hal/core/blob/d6d03f0bb128dc0470f5dc75fdb1ea1014400602/gui/src/main/java/org/useware/kernel/gui/behaviour/InteractionCoordinator.java#L169-L210
134,541
hal/core
gui/src/main/java/org/jboss/as/console/client/shared/subsys/jca/XADataSourcePresenter.java
XADataSourcePresenter.onSaveDatasource
public void onSaveDatasource(AddressTemplate template, final String dsName, final Map changeset) { dataSourceStore.saveDatasource(template, dsName, changeset, new SimpleCallback<ResponseWrapper<Boolean>>() { @Override public void onSuccess(ResponseWrapper...
java
public void onSaveDatasource(AddressTemplate template, final String dsName, final Map changeset) { dataSourceStore.saveDatasource(template, dsName, changeset, new SimpleCallback<ResponseWrapper<Boolean>>() { @Override public void onSuccess(ResponseWrapper...
[ "public", "void", "onSaveDatasource", "(", "AddressTemplate", "template", ",", "final", "String", "dsName", ",", "final", "Map", "changeset", ")", "{", "dataSourceStore", ".", "saveDatasource", "(", "template", ",", "dsName", ",", "changeset", ",", "new", "Simpl...
Saves the changes into data-source or xa-data-source using ModelNodeAdapter instead of autobean DataSource @param template The AddressTemplate to use @param dsName the datasource name @param changeset
[ "Saves", "the", "changes", "into", "data", "-", "source", "or", "xa", "-", "data", "-", "source", "using", "ModelNodeAdapter", "instead", "of", "autobean", "DataSource" ]
d6d03f0bb128dc0470f5dc75fdb1ea1014400602
https://github.com/hal/core/blob/d6d03f0bb128dc0470f5dc75fdb1ea1014400602/gui/src/main/java/org/jboss/as/console/client/shared/subsys/jca/XADataSourcePresenter.java#L506-L521
134,542
hal/core
gui/src/main/java/org/jboss/as/console/client/shared/subsys/jca/XADataSourceEditor.java
XADataSourceEditor.onCreateProperty
@Override public void onCreateProperty(String reference, PropertyRecord prop) { presenter.onCreateXAProperty(reference, prop); }
java
@Override public void onCreateProperty(String reference, PropertyRecord prop) { presenter.onCreateXAProperty(reference, prop); }
[ "@", "Override", "public", "void", "onCreateProperty", "(", "String", "reference", ",", "PropertyRecord", "prop", ")", "{", "presenter", ".", "onCreateXAProperty", "(", "reference", ",", "prop", ")", ";", "}" ]
property management below
[ "property", "management", "below" ]
d6d03f0bb128dc0470f5dc75fdb1ea1014400602
https://github.com/hal/core/blob/d6d03f0bb128dc0470f5dc75fdb1ea1014400602/gui/src/main/java/org/jboss/as/console/client/shared/subsys/jca/XADataSourceEditor.java#L324-L327
134,543
hal/core
processors/src/main/java/org/jboss/hal/processors/AbstractHalProcessor.java
AbstractHalProcessor.code
protected void code(String template, String packageName, String className, Supplier<Map<String, Object>> context) { StringBuffer code = generate(template, context); writeCode(packageName, className, code); }
java
protected void code(String template, String packageName, String className, Supplier<Map<String, Object>> context) { StringBuffer code = generate(template, context); writeCode(packageName, className, code); }
[ "protected", "void", "code", "(", "String", "template", ",", "String", "packageName", ",", "String", "className", ",", "Supplier", "<", "Map", "<", "String", ",", "Object", ">", ">", "context", ")", "{", "StringBuffer", "code", "=", "generate", "(", "templ...
Generates and writes java code in one call. @param template the relative template name (w/o path or package name) @param packageName the package name @param className the class name @param context a function to create the templates' context
[ "Generates", "and", "writes", "java", "code", "in", "one", "call", "." ]
d6d03f0bb128dc0470f5dc75fdb1ea1014400602
https://github.com/hal/core/blob/d6d03f0bb128dc0470f5dc75fdb1ea1014400602/processors/src/main/java/org/jboss/hal/processors/AbstractHalProcessor.java#L195-L198
134,544
hal/core
processors/src/main/java/org/jboss/hal/processors/AbstractHalProcessor.java
AbstractHalProcessor.resource
protected void resource(String template, String packageName, String resourceName, Supplier<Map<String, Object>> context) { StringBuffer code = generate(template, context); writeResource(packageName, resourceName, code); }
java
protected void resource(String template, String packageName, String resourceName, Supplier<Map<String, Object>> context) { StringBuffer code = generate(template, context); writeResource(packageName, resourceName, code); }
[ "protected", "void", "resource", "(", "String", "template", ",", "String", "packageName", ",", "String", "resourceName", ",", "Supplier", "<", "Map", "<", "String", ",", "Object", ">", ">", "context", ")", "{", "StringBuffer", "code", "=", "generate", "(", ...
Generates and writes a resource in one call. @param template the relative template name (w/o path or package name) @param packageName the package name @param resourceName the resource name @param context a function to create the templates' context
[ "Generates", "and", "writes", "a", "resource", "in", "one", "call", "." ]
d6d03f0bb128dc0470f5dc75fdb1ea1014400602
https://github.com/hal/core/blob/d6d03f0bb128dc0470f5dc75fdb1ea1014400602/processors/src/main/java/org/jboss/hal/processors/AbstractHalProcessor.java#L208-L211
134,545
hal/core
gui/src/main/java/org/useware/kernel/gui/behaviour/DialogState.java
DialogState.flushChildScopes
public void flushChildScopes(QName unitId) { Set<Integer> childScopes = findChildScopes(unitId); for(Integer scopeId : childScopes) { MutableContext mutableContext = statementContexts.get(scopeId); mutableContext.clearStatements(); } }
java
public void flushChildScopes(QName unitId) { Set<Integer> childScopes = findChildScopes(unitId); for(Integer scopeId : childScopes) { MutableContext mutableContext = statementContexts.get(scopeId); mutableContext.clearStatements(); } }
[ "public", "void", "flushChildScopes", "(", "QName", "unitId", ")", "{", "Set", "<", "Integer", ">", "childScopes", "=", "findChildScopes", "(", "unitId", ")", ";", "for", "(", "Integer", "scopeId", ":", "childScopes", ")", "{", "MutableContext", "mutableContex...
Flush the scope of unit and all children. @param unitId
[ "Flush", "the", "scope", "of", "unit", "and", "all", "children", "." ]
d6d03f0bb128dc0470f5dc75fdb1ea1014400602
https://github.com/hal/core/blob/d6d03f0bb128dc0470f5dc75fdb1ea1014400602/gui/src/main/java/org/useware/kernel/gui/behaviour/DialogState.java#L115-L122
134,546
hal/core
gui/src/main/java/org/useware/kernel/gui/behaviour/DialogState.java
DialogState.isWithinActiveScope
public boolean isWithinActiveScope(final QName unitId) { final Node<Scope> self = dialog.getScopeModel().findNode( dialog.findUnit(unitId).getScopeId() ); final Scope scopeOfUnit = self.getData(); int parentScopeId = getParentScope(unitId).getId(); Scope activeS...
java
public boolean isWithinActiveScope(final QName unitId) { final Node<Scope> self = dialog.getScopeModel().findNode( dialog.findUnit(unitId).getScopeId() ); final Scope scopeOfUnit = self.getData(); int parentScopeId = getParentScope(unitId).getId(); Scope activeS...
[ "public", "boolean", "isWithinActiveScope", "(", "final", "QName", "unitId", ")", "{", "final", "Node", "<", "Scope", ">", "self", "=", "dialog", ".", "getScopeModel", "(", ")", ".", "findNode", "(", "dialog", ".", "findUnit", "(", "unitId", ")", ".", "g...
Is within active scope when itself and all it's parent scopes are active as well. This is necessary to ensure access to statements from parent scopes. @param unitId @return
[ "Is", "within", "active", "scope", "when", "itself", "and", "all", "it", "s", "parent", "scopes", "are", "active", "as", "well", ".", "This", "is", "necessary", "to", "ensure", "access", "to", "statements", "from", "parent", "scopes", "." ]
d6d03f0bb128dc0470f5dc75fdb1ea1014400602
https://github.com/hal/core/blob/d6d03f0bb128dc0470f5dc75fdb1ea1014400602/gui/src/main/java/org/useware/kernel/gui/behaviour/DialogState.java#L235-L264
134,547
hal/core
gui/src/main/java/org/jboss/as/console/client/v3/behaviour/ModelNodeAdapter.java
ModelNodeAdapter.fromChangeSet
public ModelNode fromChangeSet(ResourceAddress resourceAddress, Map<String, Object> changeSet) { ModelNode define = new ModelNode(); define.get(ADDRESS).set(resourceAddress); define.get(OP).set(WRITE_ATTRIBUTE_OPERATION); ModelNode undefine = new ModelNode(); undefine.get(ADDRE...
java
public ModelNode fromChangeSet(ResourceAddress resourceAddress, Map<String, Object> changeSet) { ModelNode define = new ModelNode(); define.get(ADDRESS).set(resourceAddress); define.get(OP).set(WRITE_ATTRIBUTE_OPERATION); ModelNode undefine = new ModelNode(); undefine.get(ADDRE...
[ "public", "ModelNode", "fromChangeSet", "(", "ResourceAddress", "resourceAddress", ",", "Map", "<", "String", ",", "Object", ">", "changeSet", ")", "{", "ModelNode", "define", "=", "new", "ModelNode", "(", ")", ";", "define", ".", "get", "(", "ADDRESS", ")",...
Turns a change set into a composite write attribute operation. @param resourceAddress the address @param changeSet the changed attributes @return composite operation
[ "Turns", "a", "change", "set", "into", "a", "composite", "write", "attribute", "operation", "." ]
d6d03f0bb128dc0470f5dc75fdb1ea1014400602
https://github.com/hal/core/blob/d6d03f0bb128dc0470f5dc75fdb1ea1014400602/gui/src/main/java/org/jboss/as/console/client/v3/behaviour/ModelNodeAdapter.java#L26-L61
134,548
hal/core
gui/src/main/java/org/jboss/as/console/client/domain/model/EntityFilter.java
EntityFilter.apply
public List<T> apply(Predicate<T> predicate, List<T> candidates) { List<T> filtered = new ArrayList<T>(candidates.size()); for(T entity : candidates) { if(predicate.appliesTo(entity)) filtered.add(entity); } return filtered; }
java
public List<T> apply(Predicate<T> predicate, List<T> candidates) { List<T> filtered = new ArrayList<T>(candidates.size()); for(T entity : candidates) { if(predicate.appliesTo(entity)) filtered.add(entity); } return filtered; }
[ "public", "List", "<", "T", ">", "apply", "(", "Predicate", "<", "T", ">", "predicate", ",", "List", "<", "T", ">", "candidates", ")", "{", "List", "<", "T", ">", "filtered", "=", "new", "ArrayList", "<", "T", ">", "(", "candidates", ".", "size", ...
Filter a list of entities through a predicate. If the the predicate applies the entity will be included. @param predicate @param candidates @return a subset of the actual list of candidates
[ "Filter", "a", "list", "of", "entities", "through", "a", "predicate", ".", "If", "the", "the", "predicate", "applies", "the", "entity", "will", "be", "included", "." ]
d6d03f0bb128dc0470f5dc75fdb1ea1014400602
https://github.com/hal/core/blob/d6d03f0bb128dc0470f5dc75fdb1ea1014400602/gui/src/main/java/org/jboss/as/console/client/domain/model/EntityFilter.java#L42-L53
134,549
hal/core
gui/src/main/java/org/jboss/as/console/client/v3/deployment/Deployment.java
Deployment.parseSubsystems
static void parseSubsystems(ModelNode node, List<Subsystem> subsystems) { List<Property> properties = node.get("subsystem").asPropertyList(); for (Property property : properties) { Subsystem subsystem = new Subsystem(property.getName(), property.getValue()); subsystems.add(subsys...
java
static void parseSubsystems(ModelNode node, List<Subsystem> subsystems) { List<Property> properties = node.get("subsystem").asPropertyList(); for (Property property : properties) { Subsystem subsystem = new Subsystem(property.getName(), property.getValue()); subsystems.add(subsys...
[ "static", "void", "parseSubsystems", "(", "ModelNode", "node", ",", "List", "<", "Subsystem", ">", "subsystems", ")", "{", "List", "<", "Property", ">", "properties", "=", "node", ".", "get", "(", "\"subsystem\"", ")", ".", "asPropertyList", "(", ")", ";",...
Expects a "subsystem" child resource. Modeled as a static helper method to make it usable from both deployments and subdeployments.
[ "Expects", "a", "subsystem", "child", "resource", ".", "Modeled", "as", "a", "static", "helper", "method", "to", "make", "it", "usable", "from", "both", "deployments", "and", "subdeployments", "." ]
d6d03f0bb128dc0470f5dc75fdb1ea1014400602
https://github.com/hal/core/blob/d6d03f0bb128dc0470f5dc75fdb1ea1014400602/gui/src/main/java/org/jboss/as/console/client/v3/deployment/Deployment.java#L46-L52
134,550
hal/core
gui/src/main/java/org/jboss/as/console/mbui/behaviour/LoadResourceProcedure.java
LoadResourceProcedure.assignKeyFromAddressNode
private static void assignKeyFromAddressNode(ModelNode payload, ModelNode address) { List<Property> props = address.asPropertyList(); Property lastToken = props.get(props.size()-1); payload.get("entity.key").set(lastToken.getValue().asString()); }
java
private static void assignKeyFromAddressNode(ModelNode payload, ModelNode address) { List<Property> props = address.asPropertyList(); Property lastToken = props.get(props.size()-1); payload.get("entity.key").set(lastToken.getValue().asString()); }
[ "private", "static", "void", "assignKeyFromAddressNode", "(", "ModelNode", "payload", ",", "ModelNode", "address", ")", "{", "List", "<", "Property", ">", "props", "=", "address", ".", "asPropertyList", "(", ")", ";", "Property", "lastToken", "=", "props", "."...
the model representations we use internally carry along the entity keys. these are derived from the resource address, but will be available as synthetic resource attributes. @param payload @param address
[ "the", "model", "representations", "we", "use", "internally", "carry", "along", "the", "entity", "keys", ".", "these", "are", "derived", "from", "the", "resource", "address", "but", "will", "be", "available", "as", "synthetic", "resource", "attributes", "." ]
d6d03f0bb128dc0470f5dc75fdb1ea1014400602
https://github.com/hal/core/blob/d6d03f0bb128dc0470f5dc75fdb1ea1014400602/gui/src/main/java/org/jboss/as/console/mbui/behaviour/LoadResourceProcedure.java#L179-L183
134,551
hal/core
gui/src/main/java/org/jboss/as/console/client/shared/subsys/ws/WebServiceView.java
WebServiceView.navigateHandlerView
public void navigateHandlerView() { // if endpoint tab if (tabLayoutpanel.getSelectedIndex() == 1) { if (endpointHandlerPages.getPage() == 0) endpointHandlerPages.showPage(1); // else the client tab } else if (tabLayoutpanel.getSelectedIndex() == 2) { ...
java
public void navigateHandlerView() { // if endpoint tab if (tabLayoutpanel.getSelectedIndex() == 1) { if (endpointHandlerPages.getPage() == 0) endpointHandlerPages.showPage(1); // else the client tab } else if (tabLayoutpanel.getSelectedIndex() == 2) { ...
[ "public", "void", "navigateHandlerView", "(", ")", "{", "// if endpoint tab", "if", "(", "tabLayoutpanel", ".", "getSelectedIndex", "(", ")", "==", "1", ")", "{", "if", "(", "endpointHandlerPages", ".", "getPage", "(", ")", "==", "0", ")", "endpointHandlerPage...
to show a specific panel accordingly to the selected tab
[ "to", "show", "a", "specific", "panel", "accordingly", "to", "the", "selected", "tab" ]
d6d03f0bb128dc0470f5dc75fdb1ea1014400602
https://github.com/hal/core/blob/d6d03f0bb128dc0470f5dc75fdb1ea1014400602/gui/src/main/java/org/jboss/as/console/client/shared/subsys/ws/WebServiceView.java#L208-L218
134,552
hal/core
gui/src/main/java/org/jboss/as/console/client/semver/util/Stream.java
Stream.positiveLookaheadBefore
@SuppressWarnings("unchecked") public <T extends ElementType> boolean positiveLookaheadBefore( ElementType before, T... expected ) { Character lookahead; for (int i = 1; i <= elements.length; i++) { lookahead = lookahead(i); if (before.isMatchedBy(lookahea...
java
@SuppressWarnings("unchecked") public <T extends ElementType> boolean positiveLookaheadBefore( ElementType before, T... expected ) { Character lookahead; for (int i = 1; i <= elements.length; i++) { lookahead = lookahead(i); if (before.isMatchedBy(lookahea...
[ "@", "SuppressWarnings", "(", "\"unchecked\"", ")", "public", "<", "T", "extends", "ElementType", ">", "boolean", "positiveLookaheadBefore", "(", "ElementType", "before", ",", "T", "...", "expected", ")", "{", "Character", "lookahead", ";", "for", "(", "int", ...
Checks if there exists an element in this stream of the expected types before the specified type. @param <T> represents the element type of this stream, removes the "unchecked generic array creation for varargs parameter" warnings @param before the type before which to search @param expected the expected types @return...
[ "Checks", "if", "there", "exists", "an", "element", "in", "this", "stream", "of", "the", "expected", "types", "before", "the", "specified", "type", "." ]
d6d03f0bb128dc0470f5dc75fdb1ea1014400602
https://github.com/hal/core/blob/d6d03f0bb128dc0470f5dc75fdb1ea1014400602/gui/src/main/java/org/jboss/as/console/client/semver/util/Stream.java#L188-L206
134,553
hal/core
gui/src/main/java/org/jboss/as/console/client/v3/widgets/wizard/Wizard.java
Wizard.pushState
private void pushState(final S state) { this.state = state; header.setHTML(TEMPLATE.header(currentStep().getTitle())); clearError(); body.showWidget(state); // will call onShow(C) for the current step footer.back.setEnabled(state != initialState()); footer.next ...
java
private void pushState(final S state) { this.state = state; header.setHTML(TEMPLATE.header(currentStep().getTitle())); clearError(); body.showWidget(state); // will call onShow(C) for the current step footer.back.setEnabled(state != initialState()); footer.next ...
[ "private", "void", "pushState", "(", "final", "S", "state", ")", "{", "this", ".", "state", "=", "state", ";", "header", ".", "setHTML", "(", "TEMPLATE", ".", "header", "(", "currentStep", "(", ")", ".", "getTitle", "(", ")", ")", ")", ";", "clearErr...
Sets the current state to the specified state and updates the UI to reflect the current state. @param state the next state
[ "Sets", "the", "current", "state", "to", "the", "specified", "state", "and", "updates", "the", "UI", "to", "reflect", "the", "current", "state", "." ]
d6d03f0bb128dc0470f5dc75fdb1ea1014400602
https://github.com/hal/core/blob/d6d03f0bb128dc0470f5dc75fdb1ea1014400602/gui/src/main/java/org/jboss/as/console/client/v3/widgets/wizard/Wizard.java#L269-L279
134,554
hal/core
gui/src/main/java/org/jboss/as/console/client/tools/ChildView.java
ChildView.showAddDialog
public void showAddDialog(final ModelNode address, boolean isSingleton, SecurityContext securityContext, ModelNode description) { String resourceAddress = AddressUtils.asKey(address, isSingleton); if(securityContext.getOperationPriviledge(resourceAddress, "add").isGranted()) { _showAddDial...
java
public void showAddDialog(final ModelNode address, boolean isSingleton, SecurityContext securityContext, ModelNode description) { String resourceAddress = AddressUtils.asKey(address, isSingleton); if(securityContext.getOperationPriviledge(resourceAddress, "add").isGranted()) { _showAddDial...
[ "public", "void", "showAddDialog", "(", "final", "ModelNode", "address", ",", "boolean", "isSingleton", ",", "SecurityContext", "securityContext", ",", "ModelNode", "description", ")", "{", "String", "resourceAddress", "=", "AddressUtils", ".", "asKey", "(", "addres...
Callback for creation of add dialogs. Will be invoked once the presenter has loaded the resource description. @param address @param isSingleton @param securityContext @param description
[ "Callback", "for", "creation", "of", "add", "dialogs", ".", "Will", "be", "invoked", "once", "the", "presenter", "has", "loaded", "the", "resource", "description", "." ]
d6d03f0bb128dc0470f5dc75fdb1ea1014400602
https://github.com/hal/core/blob/d6d03f0bb128dc0470f5dc75fdb1ea1014400602/gui/src/main/java/org/jboss/as/console/client/tools/ChildView.java#L231-L244
134,555
hal/core
gui/src/main/java/org/jboss/as/console/client/shared/subsys/undertow/FilterPresenter.java
FilterPresenter.onSaveFilter
public void onSaveFilter(AddressTemplate address, String name, Map changeset) { operationDelegate.onSaveResource(address, name, changeset, defaultSaveOpCallbacks); }
java
public void onSaveFilter(AddressTemplate address, String name, Map changeset) { operationDelegate.onSaveResource(address, name, changeset, defaultSaveOpCallbacks); }
[ "public", "void", "onSaveFilter", "(", "AddressTemplate", "address", ",", "String", "name", ",", "Map", "changeset", ")", "{", "operationDelegate", ".", "onSaveResource", "(", "address", ",", "name", ",", "changeset", ",", "defaultSaveOpCallbacks", ")", ";", "}"...
Save an existent filter.
[ "Save", "an", "existent", "filter", "." ]
d6d03f0bb128dc0470f5dc75fdb1ea1014400602
https://github.com/hal/core/blob/d6d03f0bb128dc0470f5dc75fdb1ea1014400602/gui/src/main/java/org/jboss/as/console/client/shared/subsys/undertow/FilterPresenter.java#L252-L254
134,556
hal/core
gui/src/main/java/org/jboss/as/console/server/proxy/XmlHttpProxyServlet.java
XmlHttpProxyServlet.configUpdated
private boolean configUpdated() { try { URL url = ctx.getResource(resourcesDir + configResource); URLConnection con; if (url == null) return false ; con = url.openConnection(); long lastModified = con.getLastModified(); long XHP_LAST_MODIFI...
java
private boolean configUpdated() { try { URL url = ctx.getResource(resourcesDir + configResource); URLConnection con; if (url == null) return false ; con = url.openConnection(); long lastModified = con.getLastModified(); long XHP_LAST_MODIFI...
[ "private", "boolean", "configUpdated", "(", ")", "{", "try", "{", "URL", "url", "=", "ctx", ".", "getResource", "(", "resourcesDir", "+", "configResource", ")", ";", "URLConnection", "con", ";", "if", "(", "url", "==", "null", ")", "return", "false", ";"...
Check to see if the configuration file has been updated so that it may be reloaded.
[ "Check", "to", "see", "if", "the", "configuration", "file", "has", "been", "updated", "so", "that", "it", "may", "be", "reloaded", "." ]
d6d03f0bb128dc0470f5dc75fdb1ea1014400602
https://github.com/hal/core/blob/d6d03f0bb128dc0470f5dc75fdb1ea1014400602/gui/src/main/java/org/jboss/as/console/server/proxy/XmlHttpProxyServlet.java#L568-L590
134,557
hal/core
gui/src/main/java/org/useware/kernel/model/structure/InteractionUnit.java
InteractionUnit.getMapping
public <T extends Mapping> T getMapping(MappingType type) { return (T) mappings.get(type); }
java
public <T extends Mapping> T getMapping(MappingType type) { return (T) mappings.get(type); }
[ "public", "<", "T", "extends", "Mapping", ">", "T", "getMapping", "(", "MappingType", "type", ")", "{", "return", "(", "T", ")", "mappings", ".", "get", "(", "type", ")", ";", "}" ]
Get a mapping local to this unit. @param type @param <T> @return
[ "Get", "a", "mapping", "local", "to", "this", "unit", "." ]
d6d03f0bb128dc0470f5dc75fdb1ea1014400602
https://github.com/hal/core/blob/d6d03f0bb128dc0470f5dc75fdb1ea1014400602/gui/src/main/java/org/useware/kernel/model/structure/InteractionUnit.java#L129-L132
134,558
hal/core
gui/src/main/java/org/useware/kernel/model/structure/InteractionUnit.java
InteractionUnit.findMapping
public <T extends Mapping> T findMapping(MappingType type) { return (T) this.findMapping(type, DEFAULT_PREDICATE); }
java
public <T extends Mapping> T findMapping(MappingType type) { return (T) this.findMapping(type, DEFAULT_PREDICATE); }
[ "public", "<", "T", "extends", "Mapping", ">", "T", "findMapping", "(", "MappingType", "type", ")", "{", "return", "(", "T", ")", "this", ".", "findMapping", "(", "type", ",", "DEFAULT_PREDICATE", ")", ";", "}" ]
Finds the first mapping of a type within the hierarchy. Uses parent delegation if the mapping cannot be found locally. @param type @return
[ "Finds", "the", "first", "mapping", "of", "a", "type", "within", "the", "hierarchy", ".", "Uses", "parent", "delegation", "if", "the", "mapping", "cannot", "be", "found", "locally", "." ]
d6d03f0bb128dc0470f5dc75fdb1ea1014400602
https://github.com/hal/core/blob/d6d03f0bb128dc0470f5dc75fdb1ea1014400602/gui/src/main/java/org/useware/kernel/model/structure/InteractionUnit.java#L142-L145
134,559
hal/core
gui/src/main/java/org/jboss/as/console/server/proxy/XmlHttpProxy.java
XmlHttpProxy.transform
public void transform( InputStream xmlIS, InputStream xslIS, Map params, OutputStream result, String encoding) { try { TransformerFactory trFac = TransformerFactory.newInstance(); ...
java
public void transform( InputStream xmlIS, InputStream xslIS, Map params, OutputStream result, String encoding) { try { TransformerFactory trFac = TransformerFactory.newInstance(); ...
[ "public", "void", "transform", "(", "InputStream", "xmlIS", ",", "InputStream", "xslIS", ",", "Map", "params", ",", "OutputStream", "result", ",", "String", "encoding", ")", "{", "try", "{", "TransformerFactory", "trFac", "=", "TransformerFactory", ".", "newInst...
Do the XSLT transformation
[ "Do", "the", "XSLT", "transformation" ]
d6d03f0bb128dc0470f5dc75fdb1ea1014400602
https://github.com/hal/core/blob/d6d03f0bb128dc0470f5dc75fdb1ea1014400602/gui/src/main/java/org/jboss/as/console/server/proxy/XmlHttpProxy.java#L370-L388
134,560
hal/core
dmr/src/main/java/org/jboss/dmr/client/ModelValue.java
ModelValue.jsonEscape
protected static String jsonEscape(final String orig) { final int length = orig.length(); final StringBuilder builder = new StringBuilder(length + 32); builder.append('"'); for (int i = 0; i < length; i = orig.offsetByCodePoints(i,1)) { final char cp = orig.charAt(i); ...
java
protected static String jsonEscape(final String orig) { final int length = orig.length(); final StringBuilder builder = new StringBuilder(length + 32); builder.append('"'); for (int i = 0; i < length; i = orig.offsetByCodePoints(i,1)) { final char cp = orig.charAt(i); ...
[ "protected", "static", "String", "jsonEscape", "(", "final", "String", "orig", ")", "{", "final", "int", "length", "=", "orig", ".", "length", "(", ")", ";", "final", "StringBuilder", "builder", "=", "new", "StringBuilder", "(", "length", "+", "32", ")", ...
Escapes the original string for inclusion in a JSON string. @param orig A string to be included in a JSON string. @return The string appropriately escaped to produce valid JSON.
[ "Escapes", "the", "original", "string", "for", "inclusion", "in", "a", "JSON", "string", "." ]
d6d03f0bb128dc0470f5dc75fdb1ea1014400602
https://github.com/hal/core/blob/d6d03f0bb128dc0470f5dc75fdb1ea1014400602/dmr/src/main/java/org/jboss/dmr/client/ModelValue.java#L163-L210
134,561
hal/core
dmr/src/main/java/org/jboss/dmr/client/ModelValue.java
ModelValue.toJSONString
public String toJSONString(final boolean compact) { final StringBuilder builder = new StringBuilder(); formatAsJSON(builder, 0, !compact); return builder.toString(); }
java
public String toJSONString(final boolean compact) { final StringBuilder builder = new StringBuilder(); formatAsJSON(builder, 0, !compact); return builder.toString(); }
[ "public", "String", "toJSONString", "(", "final", "boolean", "compact", ")", "{", "final", "StringBuilder", "builder", "=", "new", "StringBuilder", "(", ")", ";", "formatAsJSON", "(", "builder", ",", "0", ",", "!", "compact", ")", ";", "return", "builder", ...
Converts this value to a JSON string representation. @param compact Flag indicating whether or not to include new lines in the generated string representation. @return The JSON formatted string.
[ "Converts", "this", "value", "to", "a", "JSON", "string", "representation", "." ]
d6d03f0bb128dc0470f5dc75fdb1ea1014400602
https://github.com/hal/core/blob/d6d03f0bb128dc0470f5dc75fdb1ea1014400602/dmr/src/main/java/org/jboss/dmr/client/ModelValue.java#L299-L303
134,562
hal/core
gui/src/main/java/org/jboss/as/console/client/shared/flow/FunctionContext.java
FunctionContext.set
public <T> void set(String key, T value) { data.put(key, value); }
java
public <T> void set(String key, T value) { data.put(key, value); }
[ "public", "<", "T", ">", "void", "set", "(", "String", "key", ",", "T", "value", ")", "{", "data", ".", "put", "(", "key", ",", "value", ")", ";", "}" ]
Stores the value under the given key in the context map.
[ "Stores", "the", "value", "under", "the", "given", "key", "in", "the", "context", "map", "." ]
d6d03f0bb128dc0470f5dc75fdb1ea1014400602
https://github.com/hal/core/blob/d6d03f0bb128dc0470f5dc75fdb1ea1014400602/gui/src/main/java/org/jboss/as/console/client/shared/flow/FunctionContext.java#L74-L76
134,563
hal/core
flow/core/src/main/java/org/jboss/gwt/flow/client/Async.java
Async.single
public void single(final C context, Outcome<C> outcome, final Function<C> function) { SingletonControl ctrl = new SingletonControl(context, outcome); progress.reset(1); function.execute(ctrl); }
java
public void single(final C context, Outcome<C> outcome, final Function<C> function) { SingletonControl ctrl = new SingletonControl(context, outcome); progress.reset(1); function.execute(ctrl); }
[ "public", "void", "single", "(", "final", "C", "context", ",", "Outcome", "<", "C", ">", "outcome", ",", "final", "Function", "<", "C", ">", "function", ")", "{", "SingletonControl", "ctrl", "=", "new", "SingletonControl", "(", "context", ",", "outcome", ...
Convenience method to executes a single function. Use this method if you have implemented your business logic across different functions, but just want to execute a single function.
[ "Convenience", "method", "to", "executes", "a", "single", "function", ".", "Use", "this", "method", "if", "you", "have", "implemented", "your", "business", "logic", "across", "different", "functions", "but", "just", "want", "to", "execute", "a", "single", "fun...
d6d03f0bb128dc0470f5dc75fdb1ea1014400602
https://github.com/hal/core/blob/d6d03f0bb128dc0470f5dc75fdb1ea1014400602/flow/core/src/main/java/org/jboss/gwt/flow/client/Async.java#L46-L50
134,564
hal/core
flow/core/src/main/java/org/jboss/gwt/flow/client/Async.java
Async.series
@SuppressWarnings("unchecked") public void series(final Outcome outcome, final Function... functions) { _series(null, outcome, functions); // generic signature problem, hence null }
java
@SuppressWarnings("unchecked") public void series(final Outcome outcome, final Function... functions) { _series(null, outcome, functions); // generic signature problem, hence null }
[ "@", "SuppressWarnings", "(", "\"unchecked\"", ")", "public", "void", "series", "(", "final", "Outcome", "outcome", ",", "final", "Function", "...", "functions", ")", "{", "_series", "(", "null", ",", "outcome", ",", "functions", ")", ";", "// generic signatur...
Run an array of functions in series, each one running once the previous function has completed. If any functions in the series pass an error to its callback, no more functions are run and outcome for the series is immediately called with the value of the error.
[ "Run", "an", "array", "of", "functions", "in", "series", "each", "one", "running", "once", "the", "previous", "function", "has", "completed", ".", "If", "any", "functions", "in", "the", "series", "pass", "an", "error", "to", "its", "callback", "no", "more"...
d6d03f0bb128dc0470f5dc75fdb1ea1014400602
https://github.com/hal/core/blob/d6d03f0bb128dc0470f5dc75fdb1ea1014400602/flow/core/src/main/java/org/jboss/gwt/flow/client/Async.java#L57-L60
134,565
hal/core
flow/core/src/main/java/org/jboss/gwt/flow/client/Async.java
Async.waterfall
@SafeVarargs public final void waterfall(final C context, final Outcome<C> outcome, final Function<C>... functions) { _series(context, outcome, functions); }
java
@SafeVarargs public final void waterfall(final C context, final Outcome<C> outcome, final Function<C>... functions) { _series(context, outcome, functions); }
[ "@", "SafeVarargs", "public", "final", "void", "waterfall", "(", "final", "C", "context", ",", "final", "Outcome", "<", "C", ">", "outcome", ",", "final", "Function", "<", "C", ">", "...", "functions", ")", "{", "_series", "(", "context", ",", "outcome",...
Runs an array of functions in series, working on a shared context. However, if any of the functions pass an error to the callback, the next function is not executed and the outcome is immediately called with the error.
[ "Runs", "an", "array", "of", "functions", "in", "series", "working", "on", "a", "shared", "context", ".", "However", "if", "any", "of", "the", "functions", "pass", "an", "error", "to", "the", "callback", "the", "next", "function", "is", "not", "executed", ...
d6d03f0bb128dc0470f5dc75fdb1ea1014400602
https://github.com/hal/core/blob/d6d03f0bb128dc0470f5dc75fdb1ea1014400602/flow/core/src/main/java/org/jboss/gwt/flow/client/Async.java#L67-L70
134,566
hal/core
flow/core/src/main/java/org/jboss/gwt/flow/client/Async.java
Async.parallel
@SuppressWarnings("unchecked") public void parallel(C context, final Outcome<C> outcome, final Function<C>... functions) { final C finalContext = context != null ? context : (C) EMPTY_CONTEXT; final CountingControl ctrl = new CountingControl(finalContext, functions); progress.reset(functions...
java
@SuppressWarnings("unchecked") public void parallel(C context, final Outcome<C> outcome, final Function<C>... functions) { final C finalContext = context != null ? context : (C) EMPTY_CONTEXT; final CountingControl ctrl = new CountingControl(finalContext, functions); progress.reset(functions...
[ "@", "SuppressWarnings", "(", "\"unchecked\"", ")", "public", "void", "parallel", "(", "C", "context", ",", "final", "Outcome", "<", "C", ">", "outcome", ",", "final", "Function", "<", "C", ">", "...", "functions", ")", "{", "final", "C", "finalContext", ...
Run an array of functions in parallel, without waiting until the previous function has completed. If any of the functions pass an error to its callback, the outcome is immediately called with the value of the error.
[ "Run", "an", "array", "of", "functions", "in", "parallel", "without", "waiting", "until", "the", "previous", "function", "has", "completed", ".", "If", "any", "of", "the", "functions", "pass", "an", "error", "to", "its", "callback", "the", "outcome", "is", ...
d6d03f0bb128dc0470f5dc75fdb1ea1014400602
https://github.com/hal/core/blob/d6d03f0bb128dc0470f5dc75fdb1ea1014400602/flow/core/src/main/java/org/jboss/gwt/flow/client/Async.java#L119-L152
134,567
hal/core
flow/core/src/main/java/org/jboss/gwt/flow/client/Async.java
Async.whilst
public void whilst(Precondition condition, final Outcome outcome, final Function function) { whilst(condition, outcome, function, -1); }
java
public void whilst(Precondition condition, final Outcome outcome, final Function function) { whilst(condition, outcome, function, -1); }
[ "public", "void", "whilst", "(", "Precondition", "condition", ",", "final", "Outcome", "outcome", ",", "final", "Function", "function", ")", "{", "whilst", "(", "condition", ",", "outcome", ",", "function", ",", "-", "1", ")", ";", "}" ]
Repeatedly call function, while condition is met. Calls the callback when stopped, or an error occurs.
[ "Repeatedly", "call", "function", "while", "condition", "is", "met", ".", "Calls", "the", "callback", "when", "stopped", "or", "an", "error", "occurs", "." ]
d6d03f0bb128dc0470f5dc75fdb1ea1014400602
https://github.com/hal/core/blob/d6d03f0bb128dc0470f5dc75fdb1ea1014400602/flow/core/src/main/java/org/jboss/gwt/flow/client/Async.java#L157-L159
134,568
hal/core
gui/src/main/java/org/useware/kernel/gui/behaviour/Integrity.java
Integrity.assertConsumer
private static void assertConsumer(InteractionUnit unit, Map<QName, Set<Procedure>> behaviours, IntegrityErrors err) { Set<Resource<ResourceType>> producedTypes = unit.getOutputs(); for (Resource<ResourceType> resource : producedTypes) { boolean match = false; for(QName id : b...
java
private static void assertConsumer(InteractionUnit unit, Map<QName, Set<Procedure>> behaviours, IntegrityErrors err) { Set<Resource<ResourceType>> producedTypes = unit.getOutputs(); for (Resource<ResourceType> resource : producedTypes) { boolean match = false; for(QName id : b...
[ "private", "static", "void", "assertConsumer", "(", "InteractionUnit", "unit", ",", "Map", "<", "QName", ",", "Set", "<", "Procedure", ">", ">", "behaviours", ",", "IntegrityErrors", "err", ")", "{", "Set", "<", "Resource", "<", "ResourceType", ">>", "produc...
Assertion that a consumer exists for the produced resources of an interaction unit. @param unit @param err
[ "Assertion", "that", "a", "consumer", "exists", "for", "the", "produced", "resources", "of", "an", "interaction", "unit", "." ]
d6d03f0bb128dc0470f5dc75fdb1ea1014400602
https://github.com/hal/core/blob/d6d03f0bb128dc0470f5dc75fdb1ea1014400602/gui/src/main/java/org/useware/kernel/gui/behaviour/Integrity.java#L63-L84
134,569
hal/core
gui/src/main/java/org/useware/kernel/gui/behaviour/Integrity.java
Integrity.assertProducer
private static void assertProducer(InteractionUnit unit, Map<QName, Set<Procedure>> behaviours, IntegrityErrors err) { Set<Resource<ResourceType>> consumedTypes = unit.getInputs(); for (Resource<ResourceType> resource : consumedTypes) { boolean match = false; for(QName id : beh...
java
private static void assertProducer(InteractionUnit unit, Map<QName, Set<Procedure>> behaviours, IntegrityErrors err) { Set<Resource<ResourceType>> consumedTypes = unit.getInputs(); for (Resource<ResourceType> resource : consumedTypes) { boolean match = false; for(QName id : beh...
[ "private", "static", "void", "assertProducer", "(", "InteractionUnit", "unit", ",", "Map", "<", "QName", ",", "Set", "<", "Procedure", ">", ">", "behaviours", ",", "IntegrityErrors", "err", ")", "{", "Set", "<", "Resource", "<", "ResourceType", ">>", "consum...
Assertion that a producer exists for the consumed resources of an interaction unit. @param unit @param behaviours @param err
[ "Assertion", "that", "a", "producer", "exists", "for", "the", "consumed", "resources", "of", "an", "interaction", "unit", "." ]
d6d03f0bb128dc0470f5dc75fdb1ea1014400602
https://github.com/hal/core/blob/d6d03f0bb128dc0470f5dc75fdb1ea1014400602/gui/src/main/java/org/useware/kernel/gui/behaviour/Integrity.java#L93-L115
134,570
hal/core
gui/src/main/java/org/jboss/as/console/client/widgets/deprecated/NewListItemWizard.java
NewListItemWizard.setChoices
public void setChoices(List<String> choices) { if (!limitChoices) throw new IllegalArgumentException("Attempted to set choices when choices are not limited."); List<String> sorted = new ArrayList<String>(); sorted.addAll(choices); Collections.sort(sorted); ((ComboBoxItem)this.na...
java
public void setChoices(List<String> choices) { if (!limitChoices) throw new IllegalArgumentException("Attempted to set choices when choices are not limited."); List<String> sorted = new ArrayList<String>(); sorted.addAll(choices); Collections.sort(sorted); ((ComboBoxItem)this.na...
[ "public", "void", "setChoices", "(", "List", "<", "String", ">", "choices", ")", "{", "if", "(", "!", "limitChoices", ")", "throw", "new", "IllegalArgumentException", "(", "\"Attempted to set choices when choices are not limited.\"", ")", ";", "List", "<", "String",...
Called before opening the dialog so that the user sees only the valid choices. @param choices
[ "Called", "before", "opening", "the", "dialog", "so", "that", "the", "user", "sees", "only", "the", "valid", "choices", "." ]
d6d03f0bb128dc0470f5dc75fdb1ea1014400602
https://github.com/hal/core/blob/d6d03f0bb128dc0470f5dc75fdb1ea1014400602/gui/src/main/java/org/jboss/as/console/client/widgets/deprecated/NewListItemWizard.java#L112-L119
134,571
hal/core
gui/src/main/java/org/jboss/as/console/client/v3/dmr/AddressTemplate.java
AddressTemplate.getResourceType
public String getResourceType() { if (!tokens.isEmpty() && tokens.getLast().hasKey()) { return tokens.getLast().getKey(); } return null; }
java
public String getResourceType() { if (!tokens.isEmpty() && tokens.getLast().hasKey()) { return tokens.getLast().getKey(); } return null; }
[ "public", "String", "getResourceType", "(", ")", "{", "if", "(", "!", "tokens", ".", "isEmpty", "(", ")", "&&", "tokens", ".", "getLast", "(", ")", ".", "hasKey", "(", ")", ")", "{", "return", "tokens", ".", "getLast", "(", ")", ".", "getKey", "(",...
Returns the resource type of the last segment for this address template @return the resource type
[ "Returns", "the", "resource", "type", "of", "the", "last", "segment", "for", "this", "address", "template" ]
d6d03f0bb128dc0470f5dc75fdb1ea1014400602
https://github.com/hal/core/blob/d6d03f0bb128dc0470f5dc75fdb1ea1014400602/gui/src/main/java/org/jboss/as/console/client/v3/dmr/AddressTemplate.java#L202-L207
134,572
hal/core
gui/src/main/java/org/jboss/as/console/client/search/Index.java
Index.reset
public void reset() { for (long i = 0; i < idCounter; i++) { localStorage.removeItem(key(i)); } idCounter = 0; localStorage.removeItem(documentsKey()); localStorage.removeItem(indexKey()); resetInternal(); Log.info("Reset index to " + indexKey()); ...
java
public void reset() { for (long i = 0; i < idCounter; i++) { localStorage.removeItem(key(i)); } idCounter = 0; localStorage.removeItem(documentsKey()); localStorage.removeItem(indexKey()); resetInternal(); Log.info("Reset index to " + indexKey()); ...
[ "public", "void", "reset", "(", ")", "{", "for", "(", "long", "i", "=", "0", ";", "i", "<", "idCounter", ";", "i", "++", ")", "{", "localStorage", ".", "removeItem", "(", "key", "(", "i", ")", ")", ";", "}", "idCounter", "=", "0", ";", "localSt...
Resets the index
[ "Resets", "the", "index" ]
d6d03f0bb128dc0470f5dc75fdb1ea1014400602
https://github.com/hal/core/blob/d6d03f0bb128dc0470f5dc75fdb1ea1014400602/gui/src/main/java/org/jboss/as/console/client/search/Index.java#L108-L118
134,573
hal/core
dmr/src/main/java/org/jboss/dmr/client/ModelNode.java
ModelNode.asPropertyList
public List<Property> asPropertyList() throws IllegalArgumentException { if(ModelValue.UNDEFINED == value) return Collections.EMPTY_LIST; else return value.asPropertyList(); }
java
public List<Property> asPropertyList() throws IllegalArgumentException { if(ModelValue.UNDEFINED == value) return Collections.EMPTY_LIST; else return value.asPropertyList(); }
[ "public", "List", "<", "Property", ">", "asPropertyList", "(", ")", "throws", "IllegalArgumentException", "{", "if", "(", "ModelValue", ".", "UNDEFINED", "==", "value", ")", "return", "Collections", ".", "EMPTY_LIST", ";", "else", "return", "value", ".", "asPr...
Get the value of this node as a property list. Object values will return a list of properties representing each key-value pair in the object. List values will return all the values of the list, failing if any of the values are not convertible to a property value. @return the property list value @throws IllegalArgume...
[ "Get", "the", "value", "of", "this", "node", "as", "a", "property", "list", ".", "Object", "values", "will", "return", "a", "list", "of", "properties", "representing", "each", "key", "-", "value", "pair", "in", "the", "object", ".", "List", "values", "wi...
d6d03f0bb128dc0470f5dc75fdb1ea1014400602
https://github.com/hal/core/blob/d6d03f0bb128dc0470f5dc75fdb1ea1014400602/dmr/src/main/java/org/jboss/dmr/client/ModelNode.java#L253-L258
134,574
hal/core
dmr/src/main/java/org/jboss/dmr/client/ModelNode.java
ModelNode.setExpression
public ModelNode setExpression(final String newValue) { if (newValue == null) { throw new IllegalArgumentException("newValue is null"); } checkProtect(); value = new ExpressionValue(newValue); return this; }
java
public ModelNode setExpression(final String newValue) { if (newValue == null) { throw new IllegalArgumentException("newValue is null"); } checkProtect(); value = new ExpressionValue(newValue); return this; }
[ "public", "ModelNode", "setExpression", "(", "final", "String", "newValue", ")", "{", "if", "(", "newValue", "==", "null", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"newValue is null\"", ")", ";", "}", "checkProtect", "(", ")", ";", "value",...
Change this node's value to the given expression value. @param newValue the new value @return this node
[ "Change", "this", "node", "s", "value", "to", "the", "given", "expression", "value", "." ]
d6d03f0bb128dc0470f5dc75fdb1ea1014400602
https://github.com/hal/core/blob/d6d03f0bb128dc0470f5dc75fdb1ea1014400602/dmr/src/main/java/org/jboss/dmr/client/ModelNode.java#L342-L349
134,575
hal/core
dmr/src/main/java/org/jboss/dmr/client/ModelNode.java
ModelNode.set
public ModelNode set(final String newValue) { if (newValue == null) { throw new IllegalArgumentException("newValue is null"); } checkProtect(); value = new StringModelValue(newValue); return this; }
java
public ModelNode set(final String newValue) { if (newValue == null) { throw new IllegalArgumentException("newValue is null"); } checkProtect(); value = new StringModelValue(newValue); return this; }
[ "public", "ModelNode", "set", "(", "final", "String", "newValue", ")", "{", "if", "(", "newValue", "==", "null", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"newValue is null\"", ")", ";", "}", "checkProtect", "(", ")", ";", "value", "=", ...
Change this node's value to the given value. @param newValue the new value @return this node
[ "Change", "this", "node", "s", "value", "to", "the", "given", "value", "." ]
d6d03f0bb128dc0470f5dc75fdb1ea1014400602
https://github.com/hal/core/blob/d6d03f0bb128dc0470f5dc75fdb1ea1014400602/dmr/src/main/java/org/jboss/dmr/client/ModelNode.java#L357-L364
134,576
hal/core
gui/src/main/java/org/jboss/as/console/client/v3/behaviour/CrudOperationDelegate.java
CrudOperationDelegate.onCreateResource
public void onCreateResource(final AddressTemplate addressTemplate, final String name, final ModelNode payload, final Callback... callback) { ModelNode op = payload.clone(); op.get(ADDRESS).set(addressTemplate.resolve(statementContext, name)); op.get(OP).set(ADD)...
java
public void onCreateResource(final AddressTemplate addressTemplate, final String name, final ModelNode payload, final Callback... callback) { ModelNode op = payload.clone(); op.get(ADDRESS).set(addressTemplate.resolve(statementContext, name)); op.get(OP).set(ADD)...
[ "public", "void", "onCreateResource", "(", "final", "AddressTemplate", "addressTemplate", ",", "final", "String", "name", ",", "final", "ModelNode", "payload", ",", "final", "Callback", "...", "callback", ")", "{", "ModelNode", "op", "=", "payload", ".", "clone"...
Creates a new resource using the given address, name and payload. @param addressTemplate The address template for the new resource. Might end with a wildcard, in that case the name is mandatory. @param name the name of the new resource. Might be null if the address template already contains the name. @param payload the...
[ "Creates", "a", "new", "resource", "using", "the", "given", "address", "name", "and", "payload", "." ]
d6d03f0bb128dc0470f5dc75fdb1ea1014400602
https://github.com/hal/core/blob/d6d03f0bb128dc0470f5dc75fdb1ea1014400602/gui/src/main/java/org/jboss/as/console/client/v3/behaviour/CrudOperationDelegate.java#L47-L77
134,577
hal/core
gui/src/main/java/org/jboss/as/console/client/v3/behaviour/CrudOperationDelegate.java
CrudOperationDelegate.onSaveResource
public void onSaveResource(final AddressTemplate addressTemplate, final String name, Map<String, Object> changedValues, final Callback... callback) { final ResourceAddress address = addressTemplate.resolve(statementContext, name); final ModelNodeAdapter adapter = new Mode...
java
public void onSaveResource(final AddressTemplate addressTemplate, final String name, Map<String, Object> changedValues, final Callback... callback) { final ResourceAddress address = addressTemplate.resolve(statementContext, name); final ModelNodeAdapter adapter = new Mode...
[ "public", "void", "onSaveResource", "(", "final", "AddressTemplate", "addressTemplate", ",", "final", "String", "name", ",", "Map", "<", "String", ",", "Object", ">", "changedValues", ",", "final", "Callback", "...", "callback", ")", "{", "final", "ResourceAddre...
Updates an existing resource using the given address, name and changed values. @param addressTemplate The address template for the resource. Might end with a wildcard, in that case the name is mandatory. @param name the name of the new resource. Might be null if the address template already contains the name. @param ch...
[ "Updates", "an", "existing", "resource", "using", "the", "given", "address", "name", "and", "changed", "values", "." ]
d6d03f0bb128dc0470f5dc75fdb1ea1014400602
https://github.com/hal/core/blob/d6d03f0bb128dc0470f5dc75fdb1ea1014400602/gui/src/main/java/org/jboss/as/console/client/v3/behaviour/CrudOperationDelegate.java#L87-L119
134,578
hal/core
gui/src/main/java/org/jboss/as/console/client/widgets/nav/v3/FinderTooltip.java
FinderTooltip.prepare
public void prepare(Element anchor, T item) { this.currentAnchor = anchor; this.currentItem = item; if(!this.timer.isRunning()) { timer.schedule(DELAY_MS); } }
java
public void prepare(Element anchor, T item) { this.currentAnchor = anchor; this.currentItem = item; if(!this.timer.isRunning()) { timer.schedule(DELAY_MS); } }
[ "public", "void", "prepare", "(", "Element", "anchor", ",", "T", "item", ")", "{", "this", ".", "currentAnchor", "=", "anchor", ";", "this", ".", "currentItem", "=", "item", ";", "if", "(", "!", "this", ".", "timer", ".", "isRunning", "(", ")", ")", ...
prepare the displaying of the tooltip or ignore the call when it's already active
[ "prepare", "the", "displaying", "of", "the", "tooltip", "or", "ignore", "the", "call", "when", "it", "s", "already", "active" ]
d6d03f0bb128dc0470f5dc75fdb1ea1014400602
https://github.com/hal/core/blob/d6d03f0bb128dc0470f5dc75fdb1ea1014400602/gui/src/main/java/org/jboss/as/console/client/widgets/nav/v3/FinderTooltip.java#L72-L79
134,579
hal/core
gui/src/main/java/org/jboss/as/console/client/widgets/CollapsibleSplitLayoutPanel.java
CollapsibleSplitLayoutPanel.setWidgetMinSize
public void setWidgetMinSize(Widget child, int minSize) { assertIsChild(child); Splitter splitter = getAssociatedSplitter(child); // The splitter is null for the center element. if (splitter != null) { splitter.setMinSize(minSize); } }
java
public void setWidgetMinSize(Widget child, int minSize) { assertIsChild(child); Splitter splitter = getAssociatedSplitter(child); // The splitter is null for the center element. if (splitter != null) { splitter.setMinSize(minSize); } }
[ "public", "void", "setWidgetMinSize", "(", "Widget", "child", ",", "int", "minSize", ")", "{", "assertIsChild", "(", "child", ")", ";", "Splitter", "splitter", "=", "getAssociatedSplitter", "(", "child", ")", ";", "// The splitter is null for the center element.", "...
Sets the minimum allowable size for the given widget. <p> Its associated splitter cannot be dragged to a position that would make it smaller than this size. This method has no effect for the {@link DockLayoutPanel.Direction#CENTER} widget. </p> @param child the child whose minimum size will be set @param minSize the ...
[ "Sets", "the", "minimum", "allowable", "size", "for", "the", "given", "widget", "." ]
d6d03f0bb128dc0470f5dc75fdb1ea1014400602
https://github.com/hal/core/blob/d6d03f0bb128dc0470f5dc75fdb1ea1014400602/gui/src/main/java/org/jboss/as/console/client/widgets/CollapsibleSplitLayoutPanel.java#L416-L423
134,580
hal/core
gui/src/main/java/org/jboss/as/console/client/widgets/CollapsibleSplitLayoutPanel.java
CollapsibleSplitLayoutPanel.setWidgetToggleDisplayAllowed
public void setWidgetToggleDisplayAllowed(Widget child, boolean allowed) { assertIsChild(child); Splitter splitter = getAssociatedSplitter(child); // The splitter is null for the center element. if (splitter != null) { splitter.setToggleDisplayAllowed(allowed); } ...
java
public void setWidgetToggleDisplayAllowed(Widget child, boolean allowed) { assertIsChild(child); Splitter splitter = getAssociatedSplitter(child); // The splitter is null for the center element. if (splitter != null) { splitter.setToggleDisplayAllowed(allowed); } ...
[ "public", "void", "setWidgetToggleDisplayAllowed", "(", "Widget", "child", ",", "boolean", "allowed", ")", "{", "assertIsChild", "(", "child", ")", ";", "Splitter", "splitter", "=", "getAssociatedSplitter", "(", "child", ")", ";", "// The splitter is null for the cent...
Sets whether or not double-clicking on the splitter should toggle the display of the widget. @param child the child whose display toggling will be allowed or not. @param allowed whether or not display toggling is allowed for this widget
[ "Sets", "whether", "or", "not", "double", "-", "clicking", "on", "the", "splitter", "should", "toggle", "the", "display", "of", "the", "widget", "." ]
d6d03f0bb128dc0470f5dc75fdb1ea1014400602
https://github.com/hal/core/blob/d6d03f0bb128dc0470f5dc75fdb1ea1014400602/gui/src/main/java/org/jboss/as/console/client/widgets/CollapsibleSplitLayoutPanel.java#L456-L463
134,581
hal/core
gui/src/main/java/org/jboss/as/console/client/tools/ModelBrowserView.java
ModelBrowserView.onItemSelected
private void onItemSelected(TreeItem treeItem) { treeItem.getElement().focus(); final LinkedList<String> path = resolvePath(treeItem); formView.clearDisplay(); descView.clearDisplay(); ModelNode address = toAddress(path); ModelNode displayAddress = address.clone(); ...
java
private void onItemSelected(TreeItem treeItem) { treeItem.getElement().focus(); final LinkedList<String> path = resolvePath(treeItem); formView.clearDisplay(); descView.clearDisplay(); ModelNode address = toAddress(path); ModelNode displayAddress = address.clone(); ...
[ "private", "void", "onItemSelected", "(", "TreeItem", "treeItem", ")", "{", "treeItem", ".", "getElement", "(", ")", ".", "focus", "(", ")", ";", "final", "LinkedList", "<", "String", ">", "path", "=", "resolvePath", "(", "treeItem", ")", ";", "formView", ...
When a tree item is clicked we load the resource. @param treeItem
[ "When", "a", "tree", "item", "is", "clicked", "we", "load", "the", "resource", "." ]
d6d03f0bb128dc0470f5dc75fdb1ea1014400602
https://github.com/hal/core/blob/d6d03f0bb128dc0470f5dc75fdb1ea1014400602/gui/src/main/java/org/jboss/as/console/client/tools/ModelBrowserView.java#L229-L266
134,582
hal/core
gui/src/main/java/org/jboss/as/console/client/tools/ModelBrowserView.java
ModelBrowserView.updateRootTypes
public void updateRootTypes(ModelNode address, List<ModelNode> modelNodes) { deck.showWidget(CHILD_VIEW); tree.clear(); descView.clearDisplay(); formView.clearDisplay(); offsetDisplay.clear(); // IMPORTANT: when pin down is active, we need to consider the offset to calc...
java
public void updateRootTypes(ModelNode address, List<ModelNode> modelNodes) { deck.showWidget(CHILD_VIEW); tree.clear(); descView.clearDisplay(); formView.clearDisplay(); offsetDisplay.clear(); // IMPORTANT: when pin down is active, we need to consider the offset to calc...
[ "public", "void", "updateRootTypes", "(", "ModelNode", "address", ",", "List", "<", "ModelNode", ">", "modelNodes", ")", "{", "deck", ".", "showWidget", "(", "CHILD_VIEW", ")", ";", "tree", ".", "clear", "(", ")", ";", "descView", ".", "clearDisplay", "(",...
Update root node. Basicaly a refresh of the tree. @param address @param modelNodes
[ "Update", "root", "node", ".", "Basicaly", "a", "refresh", "of", "the", "tree", "." ]
d6d03f0bb128dc0470f5dc75fdb1ea1014400602
https://github.com/hal/core/blob/d6d03f0bb128dc0470f5dc75fdb1ea1014400602/gui/src/main/java/org/jboss/as/console/client/tools/ModelBrowserView.java#L411-L463
134,583
hal/core
gui/src/main/java/org/jboss/as/console/client/tools/ModelBrowserView.java
ModelBrowserView.updateChildrenTypes
public void updateChildrenTypes(ModelNode address, List<ModelNode> modelNodes) { TreeItem rootItem = findTreeItem(tree, address); addChildrenTypes((ModelTreeItem) rootItem, modelNodes); }
java
public void updateChildrenTypes(ModelNode address, List<ModelNode> modelNodes) { TreeItem rootItem = findTreeItem(tree, address); addChildrenTypes((ModelTreeItem) rootItem, modelNodes); }
[ "public", "void", "updateChildrenTypes", "(", "ModelNode", "address", ",", "List", "<", "ModelNode", ">", "modelNodes", ")", "{", "TreeItem", "rootItem", "=", "findTreeItem", "(", "tree", ",", "address", ")", ";", "addChildrenTypes", "(", "(", "ModelTreeItem", ...
Update sub parts of the tree @param address @param modelNodes
[ "Update", "sub", "parts", "of", "the", "tree" ]
d6d03f0bb128dc0470f5dc75fdb1ea1014400602
https://github.com/hal/core/blob/d6d03f0bb128dc0470f5dc75fdb1ea1014400602/gui/src/main/java/org/jboss/as/console/client/tools/ModelBrowserView.java#L471-L476
134,584
hal/core
gui/src/main/java/org/jboss/as/console/client/domain/model/impl/ServerGroupDAOImpl.java
ServerGroupDAOImpl.model2ServerGroup
private ServerGroupRecord model2ServerGroup(String groupName, ModelNode model) { ServerGroupRecord record = factory.serverGroup().as(); record.setName(groupName); record.setProfileName(model.get("profile").asString()); record.setSocketBinding(model.get("socket-binding-group").asString()...
java
private ServerGroupRecord model2ServerGroup(String groupName, ModelNode model) { ServerGroupRecord record = factory.serverGroup().as(); record.setName(groupName); record.setProfileName(model.get("profile").asString()); record.setSocketBinding(model.get("socket-binding-group").asString()...
[ "private", "ServerGroupRecord", "model2ServerGroup", "(", "String", "groupName", ",", "ModelNode", "model", ")", "{", "ServerGroupRecord", "record", "=", "factory", ".", "serverGroup", "(", ")", ".", "as", "(", ")", ";", "record", ".", "setName", "(", "groupNa...
Turns a server group DMR model into a strongly typed entity @param groupName @param model @return
[ "Turns", "a", "server", "group", "DMR", "model", "into", "a", "strongly", "typed", "entity" ]
d6d03f0bb128dc0470f5dc75fdb1ea1014400602
https://github.com/hal/core/blob/d6d03f0bb128dc0470f5dc75fdb1ea1014400602/gui/src/main/java/org/jboss/as/console/client/domain/model/impl/ServerGroupDAOImpl.java#L217-L235
134,585
hal/core
gui/src/main/java/org/jboss/as/console/client/rbac/SecurityContextImpl.java
SecurityContextImpl.getReadPriviledge
public AuthorisationDecision getReadPriviledge() { return checkPriviledge(new Priviledge() { @Override public boolean isGranted(Constraints c) { boolean readable = c.isReadResource(); if (!readable) Log.info("read privilege denied for...
java
public AuthorisationDecision getReadPriviledge() { return checkPriviledge(new Priviledge() { @Override public boolean isGranted(Constraints c) { boolean readable = c.isReadResource(); if (!readable) Log.info("read privilege denied for...
[ "public", "AuthorisationDecision", "getReadPriviledge", "(", ")", "{", "return", "checkPriviledge", "(", "new", "Priviledge", "(", ")", "{", "@", "Override", "public", "boolean", "isGranted", "(", "Constraints", "c", ")", "{", "boolean", "readable", "=", "c", ...
If any of the required resources is not accessible, overall access will be rejected @return
[ "If", "any", "of", "the", "required", "resources", "is", "not", "accessible", "overall", "access", "will", "be", "rejected" ]
d6d03f0bb128dc0470f5dc75fdb1ea1014400602
https://github.com/hal/core/blob/d6d03f0bb128dc0470f5dc75fdb1ea1014400602/gui/src/main/java/org/jboss/as/console/client/rbac/SecurityContextImpl.java#L114-L127
134,586
hal/core
gui/src/main/java/org/jboss/as/console/mbui/widgets/ModelNodeFormBuilder.java
ModelNodeFormBuilder.setValue
public static void setValue(ModelNode target, ModelType type, Object propValue) { if (type.equals(ModelType.STRING)) { target.set((String) propValue); } else if (type.equals(ModelType.INT)) { target.set((Integer) propValue); } else if (type.equals(ModelType.DOUBLE)) { ...
java
public static void setValue(ModelNode target, ModelType type, Object propValue) { if (type.equals(ModelType.STRING)) { target.set((String) propValue); } else if (type.equals(ModelType.INT)) { target.set((Integer) propValue); } else if (type.equals(ModelType.DOUBLE)) { ...
[ "public", "static", "void", "setValue", "(", "ModelNode", "target", ",", "ModelType", "type", ",", "Object", "propValue", ")", "{", "if", "(", "type", ".", "equals", "(", "ModelType", ".", "STRING", ")", ")", "{", "target", ".", "set", "(", "(", "Strin...
a more lenient way to update values by type
[ "a", "more", "lenient", "way", "to", "update", "values", "by", "type" ]
d6d03f0bb128dc0470f5dc75fdb1ea1014400602
https://github.com/hal/core/blob/d6d03f0bb128dc0470f5dc75fdb1ea1014400602/gui/src/main/java/org/jboss/as/console/mbui/widgets/ModelNodeFormBuilder.java#L94-L132
134,587
hal/core
gui/src/main/java/org/jboss/as/console/client/widgets/forms/FormMetaData.java
FormMetaData.doGroupCheck
private void doGroupCheck() { if (!hasTabs()) return; for (String groupName : getGroupNames()) { String tabName = getGroupedAttribtes(groupName).get(0).getTabName(); for (PropertyBinding propBinding : getGroupedAttribtes(groupName)) { if (!tabName.equals(pr...
java
private void doGroupCheck() { if (!hasTabs()) return; for (String groupName : getGroupNames()) { String tabName = getGroupedAttribtes(groupName).get(0).getTabName(); for (PropertyBinding propBinding : getGroupedAttribtes(groupName)) { if (!tabName.equals(pr...
[ "private", "void", "doGroupCheck", "(", ")", "{", "if", "(", "!", "hasTabs", "(", ")", ")", "return", ";", "for", "(", "String", "groupName", ":", "getGroupNames", "(", ")", ")", "{", "String", "tabName", "=", "getGroupedAttribtes", "(", "groupName", ")"...
make sure all grouped attributes are on the same tab
[ "make", "sure", "all", "grouped", "attributes", "are", "on", "the", "same", "tab" ]
d6d03f0bb128dc0470f5dc75fdb1ea1014400602
https://github.com/hal/core/blob/d6d03f0bb128dc0470f5dc75fdb1ea1014400602/gui/src/main/java/org/jboss/as/console/client/widgets/forms/FormMetaData.java#L94-L105
134,588
hal/core
gui/src/main/java/org/jboss/as/console/client/tools/ModelBrowser.java
ModelBrowser.onRemoveChildResource
public void onRemoveChildResource(final ModelNode address, final ModelNode selection) { final ModelNode fqAddress = AddressUtils.toFqAddress(address, selection.asString()); _loadMetaData(fqAddress, new ResourceData(true), new Outcome<ResourceData>() { @Override p...
java
public void onRemoveChildResource(final ModelNode address, final ModelNode selection) { final ModelNode fqAddress = AddressUtils.toFqAddress(address, selection.asString()); _loadMetaData(fqAddress, new ResourceData(true), new Outcome<ResourceData>() { @Override p...
[ "public", "void", "onRemoveChildResource", "(", "final", "ModelNode", "address", ",", "final", "ModelNode", "selection", ")", "{", "final", "ModelNode", "fqAddress", "=", "AddressUtils", ".", "toFqAddress", "(", "address", ",", "selection", ".", "asString", "(", ...
Checks permissions and removes a child resource @param address @param selection
[ "Checks", "permissions", "and", "removes", "a", "child", "resource" ]
d6d03f0bb128dc0470f5dc75fdb1ea1014400602
https://github.com/hal/core/blob/d6d03f0bb128dc0470f5dc75fdb1ea1014400602/gui/src/main/java/org/jboss/as/console/client/tools/ModelBrowser.java#L447-L468
134,589
hal/core
gui/src/main/java/org/jboss/as/console/client/tools/ModelBrowser.java
ModelBrowser._onRemoveChildResource
private void _onRemoveChildResource(final ModelNode address, final ModelNode selection) { final ModelNode fqAddress = AddressUtils.toFqAddress(address, selection.asString()); final ModelNode operation = new ModelNode(); operation.get(OP).set(REMOVE); operation.get(ADDRESS).set(fqAddres...
java
private void _onRemoveChildResource(final ModelNode address, final ModelNode selection) { final ModelNode fqAddress = AddressUtils.toFqAddress(address, selection.asString()); final ModelNode operation = new ModelNode(); operation.get(OP).set(REMOVE); operation.get(ADDRESS).set(fqAddres...
[ "private", "void", "_onRemoveChildResource", "(", "final", "ModelNode", "address", ",", "final", "ModelNode", "selection", ")", "{", "final", "ModelNode", "fqAddress", "=", "AddressUtils", ".", "toFqAddress", "(", "address", ",", "selection", ".", "asString", "(",...
Remove a child resource @param address @param selection
[ "Remove", "a", "child", "resource" ]
d6d03f0bb128dc0470f5dc75fdb1ea1014400602
https://github.com/hal/core/blob/d6d03f0bb128dc0470f5dc75fdb1ea1014400602/gui/src/main/java/org/jboss/as/console/client/tools/ModelBrowser.java#L475-L510
134,590
hal/core
gui/src/main/java/org/jboss/as/console/client/tools/ModelBrowser.java
ModelBrowser.onPrepareAddChildResource
public void onPrepareAddChildResource(final ModelNode address, final boolean isSingleton) { _loadMetaData(address, new ResourceData(true), new Outcome<ResourceData>() { @Override public void onFailure(ResourceData context) { Console.error("Failed ...
java
public void onPrepareAddChildResource(final ModelNode address, final boolean isSingleton) { _loadMetaData(address, new ResourceData(true), new Outcome<ResourceData>() { @Override public void onFailure(ResourceData context) { Console.error("Failed ...
[ "public", "void", "onPrepareAddChildResource", "(", "final", "ModelNode", "address", ",", "final", "boolean", "isSingleton", ")", "{", "_loadMetaData", "(", "address", ",", "new", "ResourceData", "(", "true", ")", ",", "new", "Outcome", "<", "ResourceData", ">",...
Add a child resource @param address @param isSingleton
[ "Add", "a", "child", "resource" ]
d6d03f0bb128dc0470f5dc75fdb1ea1014400602
https://github.com/hal/core/blob/d6d03f0bb128dc0470f5dc75fdb1ea1014400602/gui/src/main/java/org/jboss/as/console/client/tools/ModelBrowser.java#L517-L538
134,591
hal/core
gui/src/main/java/org/jboss/as/console/client/shared/subsys/undertow/ApplicationSecurityDomainResourceView.java
ApplicationSecurityDomainResourceView.populateRepackagedToCredentialReference
private void populateRepackagedToCredentialReference(ModelNode payload, String repackagedPropName, String propertyName) { ModelNode value = payload.get(repackagedPropName); if (payload.hasDefined(repackagedPropName) && value.asString().trim().length() > 0) { payload.get(CREDENTIAL_REFERENCE)...
java
private void populateRepackagedToCredentialReference(ModelNode payload, String repackagedPropName, String propertyName) { ModelNode value = payload.get(repackagedPropName); if (payload.hasDefined(repackagedPropName) && value.asString().trim().length() > 0) { payload.get(CREDENTIAL_REFERENCE)...
[ "private", "void", "populateRepackagedToCredentialReference", "(", "ModelNode", "payload", ",", "String", "repackagedPropName", ",", "String", "propertyName", ")", "{", "ModelNode", "value", "=", "payload", ".", "get", "(", "repackagedPropName", ")", ";", "if", "(",...
create a flat node, copying the credential-reference complex attribute as regular attributes of the payload
[ "create", "a", "flat", "node", "copying", "the", "credential", "-", "reference", "complex", "attribute", "as", "regular", "attributes", "of", "the", "payload" ]
d6d03f0bb128dc0470f5dc75fdb1ea1014400602
https://github.com/hal/core/blob/d6d03f0bb128dc0470f5dc75fdb1ea1014400602/gui/src/main/java/org/jboss/as/console/client/shared/subsys/undertow/ApplicationSecurityDomainResourceView.java#L328-L334
134,592
hal/core
gui/src/main/java/org/jboss/as/console/mbui/model/mapping/AddressMapping.java
AddressMapping.getRequiredStatements
public Map<String, Integer> getRequiredStatements() { Map<String, Integer> required = new HashMap<String,Integer>(); for(Token token : address) { if(!token.hasKey()) { // a single token or token expression // These are currently skipped: S...
java
public Map<String, Integer> getRequiredStatements() { Map<String, Integer> required = new HashMap<String,Integer>(); for(Token token : address) { if(!token.hasKey()) { // a single token or token expression // These are currently skipped: S...
[ "public", "Map", "<", "String", ",", "Integer", ">", "getRequiredStatements", "(", ")", "{", "Map", "<", "String", ",", "Integer", ">", "required", "=", "new", "HashMap", "<", "String", ",", "Integer", ">", "(", ")", ";", "for", "(", "Token", "token", ...
Parses the address declaration for tokens that need to be resolved against the statement context. @return
[ "Parses", "the", "address", "declaration", "for", "tokens", "that", "need", "to", "be", "resolved", "against", "the", "statement", "context", "." ]
d6d03f0bb128dc0470f5dc75fdb1ea1014400602
https://github.com/hal/core/blob/d6d03f0bb128dc0470f5dc75fdb1ea1014400602/gui/src/main/java/org/jboss/as/console/mbui/model/mapping/AddressMapping.java#L65-L99
134,593
hal/core
gui/src/main/java/org/jboss/as/console/server/proxy/HttpClient.java
HttpClient.getURLConnection
private HttpURLConnection getURLConnection(String str) throws MalformedURLException { try { if (isHttps) { /* when communicating with the server which has unsigned or invalid * certificate (https), SSLException or IOException is thrown. * ...
java
private HttpURLConnection getURLConnection(String str) throws MalformedURLException { try { if (isHttps) { /* when communicating with the server which has unsigned or invalid * certificate (https), SSLException or IOException is thrown. * ...
[ "private", "HttpURLConnection", "getURLConnection", "(", "String", "str", ")", "throws", "MalformedURLException", "{", "try", "{", "if", "(", "isHttps", ")", "{", "/* when communicating with the server which has unsigned or invalid\n * certificate (https), SSLExcepti...
private method to get the URLConnection @param str URL string
[ "private", "method", "to", "get", "the", "URLConnection" ]
d6d03f0bb128dc0470f5dc75fdb1ea1014400602
https://github.com/hal/core/blob/d6d03f0bb128dc0470f5dc75fdb1ea1014400602/gui/src/main/java/org/jboss/as/console/server/proxy/HttpClient.java#L185-L233
134,594
hal/core
gui/src/main/java/org/jboss/as/console/server/proxy/HttpClient.java
HttpClient.getInputStream
public InputStream getInputStream() { try { int responseCode = this.urlConnection.getResponseCode(); try { // HACK: manually follow redirects, for the login to work // HTTPUrlConnection auto redirect doesn't respect the provided header...
java
public InputStream getInputStream() { try { int responseCode = this.urlConnection.getResponseCode(); try { // HACK: manually follow redirects, for the login to work // HTTPUrlConnection auto redirect doesn't respect the provided header...
[ "public", "InputStream", "getInputStream", "(", ")", "{", "try", "{", "int", "responseCode", "=", "this", ".", "urlConnection", ".", "getResponseCode", "(", ")", ";", "try", "{", "// HACK: manually follow redirects, for the login to work", "// HTTPUrlConnection auto redir...
returns the inputstream from URLConnection @return InputStream
[ "returns", "the", "inputstream", "from", "URLConnection" ]
d6d03f0bb128dc0470f5dc75fdb1ea1014400602
https://github.com/hal/core/blob/d6d03f0bb128dc0470f5dc75fdb1ea1014400602/gui/src/main/java/org/jboss/as/console/server/proxy/HttpClient.java#L260-L292
134,595
hal/core
gui/src/main/java/org/jboss/as/console/server/proxy/HttpClient.java
HttpClient.doPost
public InputStream doPost(byte[] postData, String contentType) { this.urlConnection.setDoOutput(true); if (contentType != null) this.urlConnection.setRequestProperty( "Content-type", contentType ); OutputStream out = null; try { out = this.getOutputStream(); if(o...
java
public InputStream doPost(byte[] postData, String contentType) { this.urlConnection.setDoOutput(true); if (contentType != null) this.urlConnection.setRequestProperty( "Content-type", contentType ); OutputStream out = null; try { out = this.getOutputStream(); if(o...
[ "public", "InputStream", "doPost", "(", "byte", "[", "]", "postData", ",", "String", "contentType", ")", "{", "this", ".", "urlConnection", ".", "setDoOutput", "(", "true", ")", ";", "if", "(", "contentType", "!=", "null", ")", "this", ".", "urlConnection"...
posts data to the inputstream and returns the InputStream. @param postData data to be posted. must be url-encoded already. @param contentType allows you to set the contentType of the request. @return InputStream input stream from URLConnection
[ "posts", "data", "to", "the", "inputstream", "and", "returns", "the", "InputStream", "." ]
d6d03f0bb128dc0470f5dc75fdb1ea1014400602
https://github.com/hal/core/blob/d6d03f0bb128dc0470f5dc75fdb1ea1014400602/gui/src/main/java/org/jboss/as/console/server/proxy/HttpClient.java#L315-L340
134,596
hal/core
diagnostics/src/main/java/com/google/gwt/debugpanel/widgets/TogglingCommandLink.java
TogglingCommandLink.toggle
public void toggle() { Command cmd = state.isPrimary() ? command1 : command2; setState(state.other()); cmd.execute(); }
java
public void toggle() { Command cmd = state.isPrimary() ? command1 : command2; setState(state.other()); cmd.execute(); }
[ "public", "void", "toggle", "(", ")", "{", "Command", "cmd", "=", "state", ".", "isPrimary", "(", ")", "?", "command1", ":", "command2", ";", "setState", "(", "state", ".", "other", "(", ")", ")", ";", "cmd", ".", "execute", "(", ")", ";", "}" ]
Toggles the link executing the command. All state is changed before the command is executed and it is therefore safe to call this from within the commands.
[ "Toggles", "the", "link", "executing", "the", "command", ".", "All", "state", "is", "changed", "before", "the", "command", "is", "executed", "and", "it", "is", "therefore", "safe", "to", "call", "this", "from", "within", "the", "commands", "." ]
d6d03f0bb128dc0470f5dc75fdb1ea1014400602
https://github.com/hal/core/blob/d6d03f0bb128dc0470f5dc75fdb1ea1014400602/diagnostics/src/main/java/com/google/gwt/debugpanel/widgets/TogglingCommandLink.java#L53-L57
134,597
hal/core
diagnostics/src/main/java/com/google/gwt/debugpanel/widgets/TogglingCommandLink.java
TogglingCommandLink.setState
public void setState(State state) { this.state = state; setText(state.isPrimary() ? text1 : text2); }
java
public void setState(State state) { this.state = state; setText(state.isPrimary() ? text1 : text2); }
[ "public", "void", "setState", "(", "State", "state", ")", "{", "this", ".", "state", "=", "state", ";", "setText", "(", "state", ".", "isPrimary", "(", ")", "?", "text1", ":", "text2", ")", ";", "}" ]
Changes the state without executing the command.
[ "Changes", "the", "state", "without", "executing", "the", "command", "." ]
d6d03f0bb128dc0470f5dc75fdb1ea1014400602
https://github.com/hal/core/blob/d6d03f0bb128dc0470f5dc75fdb1ea1014400602/diagnostics/src/main/java/com/google/gwt/debugpanel/widgets/TogglingCommandLink.java#L69-L72
134,598
hal/core
gui/src/main/java/org/useware/kernel/model/structure/QName.java
QName.getNormalizedLocalPart
public String getNormalizedLocalPart() { int i = localPart.indexOf("#"); if(i!=-1) return localPart.substring(0, i); else return localPart; }
java
public String getNormalizedLocalPart() { int i = localPart.indexOf("#"); if(i!=-1) return localPart.substring(0, i); else return localPart; }
[ "public", "String", "getNormalizedLocalPart", "(", ")", "{", "int", "i", "=", "localPart", ".", "indexOf", "(", "\"#\"", ")", ";", "if", "(", "i", "!=", "-", "1", ")", "return", "localPart", ".", "substring", "(", "0", ",", "i", ")", ";", "else", "...
return the local part without suffix
[ "return", "the", "local", "part", "without", "suffix" ]
d6d03f0bb128dc0470f5dc75fdb1ea1014400602
https://github.com/hal/core/blob/d6d03f0bb128dc0470f5dc75fdb1ea1014400602/gui/src/main/java/org/useware/kernel/model/structure/QName.java#L289-L295
134,599
hal/core
gui/src/main/java/org/jboss/as/console/client/shared/runtime/naming/JndiTreeParser.java
JndiTreeParser.createChild
private boolean createChild(Property sibling, String parentURI) { boolean skipped = sibling.getName().equals("children"); if (!skipped) { //dump(sibling); String dataType = null; String uri = ""; if (sibling.getValue().hasDefined("class-name")) { ...
java
private boolean createChild(Property sibling, String parentURI) { boolean skipped = sibling.getName().equals("children"); if (!skipped) { //dump(sibling); String dataType = null; String uri = ""; if (sibling.getValue().hasDefined("class-name")) { ...
[ "private", "boolean", "createChild", "(", "Property", "sibling", ",", "String", "parentURI", ")", "{", "boolean", "skipped", "=", "sibling", ".", "getName", "(", ")", ".", "equals", "(", "\"children\"", ")", ";", "if", "(", "!", "skipped", ")", "{", "//d...
create actual children @param sibling @return
[ "create", "actual", "children" ]
d6d03f0bb128dc0470f5dc75fdb1ea1014400602
https://github.com/hal/core/blob/d6d03f0bb128dc0470f5dc75fdb1ea1014400602/gui/src/main/java/org/jboss/as/console/client/shared/runtime/naming/JndiTreeParser.java#L103-L131