query
stringlengths 7
33.1k
| document
stringlengths 7
335k
| metadata
dict | negatives
listlengths 3
101
| negative_scores
listlengths 3
101
| document_score
stringlengths 3
10
| document_rank
stringclasses 102
values |
---|---|---|---|---|---|---|
The status of all the requests to other nodes repeated .NodeReplicationStatus nodeStatusList = 3;
|
java.util.List<entities.Torrent.NodeReplicationStatus>
getNodeStatusListList();
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"entities.Torrent.NodeReplicationStatus getNodeStatusList(int index);",
"@java.lang.Override\n public java.util.List<entities.Torrent.NodeReplicationStatus> getNodeStatusListList() {\n return nodeStatusList_;\n }",
"public java.util.List<entities.Torrent.NodeReplicationStatus> getNodeStatusListList() {\n if (nodeStatusListBuilder_ == null) {\n return java.util.Collections.unmodifiableList(nodeStatusList_);\n } else {\n return nodeStatusListBuilder_.getMessageList();\n }\n }",
"@java.lang.Override\n public java.util.List<? extends entities.Torrent.NodeReplicationStatusOrBuilder>\n getNodeStatusListOrBuilderList() {\n return nodeStatusList_;\n }",
"public java.util.List<? extends entities.Torrent.NodeReplicationStatusOrBuilder>\n getNodeStatusListOrBuilderList() {\n if (nodeStatusListBuilder_ != null) {\n return nodeStatusListBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(nodeStatusList_);\n }\n }",
"@java.lang.Override\n public int getNodeStatusListCount() {\n return nodeStatusList_.size();\n }",
"java.util.List<? extends entities.Torrent.NodeReplicationStatusOrBuilder>\n getNodeStatusListOrBuilderList();",
"public entities.Torrent.NodeReplicationStatus.Builder addNodeStatusListBuilder() {\n return getNodeStatusListFieldBuilder().addBuilder(\n entities.Torrent.NodeReplicationStatus.getDefaultInstance());\n }",
"int getNodeStatusListCount();",
"@java.lang.Override\n public entities.Torrent.NodeReplicationStatus getNodeStatusList(int index) {\n return nodeStatusList_.get(index);\n }",
"entities.Torrent.NodeReplicationStatusOrBuilder getNodeStatusListOrBuilder(\n int index);",
"@java.lang.Override\n public entities.Torrent.NodeReplicationStatusOrBuilder getNodeStatusListOrBuilder(\n int index) {\n return nodeStatusList_.get(index);\n }",
"public entities.Torrent.NodeReplicationStatus getNodeStatusList(int index) {\n if (nodeStatusListBuilder_ == null) {\n return nodeStatusList_.get(index);\n } else {\n return nodeStatusListBuilder_.getMessage(index);\n }\n }",
"public Builder addNodeStatusList(entities.Torrent.NodeReplicationStatus value) {\n if (nodeStatusListBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureNodeStatusListIsMutable();\n nodeStatusList_.add(value);\n onChanged();\n } else {\n nodeStatusListBuilder_.addMessage(value);\n }\n return this;\n }",
"public Builder addAllNodeStatusList(\n java.lang.Iterable<? extends entities.Torrent.NodeReplicationStatus> values) {\n if (nodeStatusListBuilder_ == null) {\n ensureNodeStatusListIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, nodeStatusList_);\n onChanged();\n } else {\n nodeStatusListBuilder_.addAllMessages(values);\n }\n return this;\n }",
"public entities.Torrent.NodeReplicationStatusOrBuilder getNodeStatusListOrBuilder(\n int index) {\n if (nodeStatusListBuilder_ == null) {\n return nodeStatusList_.get(index); } else {\n return nodeStatusListBuilder_.getMessageOrBuilder(index);\n }\n }",
"public int getNodeStatusListCount() {\n if (nodeStatusListBuilder_ == null) {\n return nodeStatusList_.size();\n } else {\n return nodeStatusListBuilder_.getCount();\n }\n }",
"public final int[] cacheNodeStatus() {\n return new int[]{0,0,0,0,0,0,0,0,0,0};\r\n }",
"public java.util.List<entities.Torrent.NodeReplicationStatus.Builder>\n getNodeStatusListBuilderList() {\n return getNodeStatusListFieldBuilder().getBuilderList();\n }",
"public Builder setNodeStatusList(\n int index, entities.Torrent.NodeReplicationStatus value) {\n if (nodeStatusListBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureNodeStatusListIsMutable();\n nodeStatusList_.set(index, value);\n onChanged();\n } else {\n nodeStatusListBuilder_.setMessage(index, value);\n }\n return this;\n }",
"private NodeReplicationStatus(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"int getReplicationCount();",
"public Builder addNodeStatusList(\n int index, entities.Torrent.NodeReplicationStatus value) {\n if (nodeStatusListBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureNodeStatusListIsMutable();\n nodeStatusList_.add(index, value);\n onChanged();\n } else {\n nodeStatusListBuilder_.addMessage(index, value);\n }\n return this;\n }",
"public entities.Torrent.NodeReplicationStatus.Builder addNodeStatusListBuilder(\n int index) {\n return getNodeStatusListFieldBuilder().addBuilder(\n index, entities.Torrent.NodeReplicationStatus.getDefaultInstance());\n }",
"public int getNumNodesSeenByMessage() {\r\n return numNodesSeenByMessage;\r\n }",
"public abstract String getNodeStatusVariableName();",
"public Builder addNodeStatusList(\n entities.Torrent.NodeReplicationStatus.Builder builderForValue) {\n if (nodeStatusListBuilder_ == null) {\n ensureNodeStatusListIsMutable();\n nodeStatusList_.add(builderForValue.build());\n onChanged();\n } else {\n nodeStatusListBuilder_.addMessage(builderForValue.build());\n }\n return this;\n }",
"public entities.Torrent.NodeReplicationStatus.Builder getNodeStatusListBuilder(\n int index) {\n return getNodeStatusListFieldBuilder().getBuilder(index);\n }",
"java.util.List<io.netifi.proteus.admin.om.Node> \n getNodesList();",
"public void list() {\r\n\t\tfor (String key : nodeMap.keySet()) {\r\n\t\t\tNodeRef node = nodeMap.get(key);\r\n\t\t\tSystem.out.println(node.getIp() + \" : \" + node.getPort());\r\n\t\t}\t\t\r\n\t}",
"public static int countNodes() {\n\t\treturn count_nodes;\n\t}",
"default Promise<List<String>> findAllNodesWithStatus(HealthStatus queryStatus) {\n final Promise<List<String>> promise = Promises.promise();\n promise.resolve(Collections.emptyList());\n return promise;\n\n }",
"@Override\n\tpublic long numNodes() {\n\t\treturn numNodes;\n\t}",
"public java.util.List<entities.Torrent.NodeId> getNodesList() {\n if (nodesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(nodes_);\n } else {\n return nodesBuilder_.getMessageList();\n }\n }",
"public NodeInformation[] getNodes() throws CassandraServerManagementException {\r\n StorageServiceMBean ssMBean = null;\r\n try {\r\n ssMBean = CassandraAdminDataHolder\r\n .getInstance().getCassandraMBeanLocator().locateStorageServiceMBean();\r\n } catch (CassandraServerManagementException e) {\r\n handleException(\"Error occurred while retrieving node information list\", e);\r\n }\r\n\r\n if (ssMBean == null) {\r\n handleException(\"Storage Server MBean is null\");\r\n }\r\n\r\n Map<String, String> tokenToEndpoint = ssMBean.getTokenToEndpointMap();\r\n List<String> sortedTokens = new ArrayList<String>(tokenToEndpoint.keySet());\r\n Collections.sort(sortedTokens);\r\n\r\n /* Calculate per-token ownership of the ring */\r\n Map<InetAddress, Float> ownerships = ssMBean.getOwnership();\r\n\r\n List<NodeInformation> nodeInfoList = new ArrayList<NodeInformation>();\r\n for (String token : sortedTokens) {\r\n String primaryEndpoint = tokenToEndpoint.get(token);\r\n String status = ssMBean.getLiveNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_UP\r\n : ssMBean.getUnreachableNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_DOWN\r\n : CassandraManagementConstants.NodeStatuses.NODE_STATUS_UNKNOWN;\r\n\r\n String state = ssMBean.getJoiningNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_JOINING\r\n : ssMBean.getLeavingNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_LEAVING\r\n : CassandraManagementConstants.NodeStatuses.NODE_STATUS_NORMAL;\r\n\r\n Map<String, String> loadMap = ssMBean.getLoadMap();\r\n String load = loadMap.containsKey(primaryEndpoint)\r\n ? loadMap.get(primaryEndpoint)\r\n : CassandraManagementConstants.NodeStatuses.NODE_STATUS_UNKNOWN;\r\n\r\n Float ownership = ownerships.get(token);\r\n String owns = \"N/A\";\r\n if(ownership!=null){\r\n owns = new DecimalFormat(\"##0.00%\").format(ownership);\r\n }\r\n NodeInformation nodeInfo = new NodeInformation();\r\n nodeInfo.setAddress(primaryEndpoint);\r\n nodeInfo.setState(state);\r\n nodeInfo.setStatus(status);\r\n nodeInfo.setOwn(owns);\r\n nodeInfo.setLoad(load);\r\n nodeInfo.setToken(token);\r\n nodeInfoList.add(nodeInfo);\r\n }\r\n return nodeInfoList.toArray(new NodeInformation[nodeInfoList.size()]);\r\n }",
"public String replicationState() {\n return this.replicationState;\n }",
"@Override\n public boolean getCurrentNodeStatus(InetAddress ia) {\n if (ia.isAnyLocalAddress()) {\n return true;\n }\n // Check if given address is in cluster\n for (Client c : instance.getClientService().getConnectedClients()) {\n if (c.getSocketAddress().getAddress().equals(ia)) {\n return true;\n }\n }\n // reject all other addresses\n return false;\n }",
"int numNodes() {\n\t\treturn num_nodes;\n\t}",
"private int numNodes()\r\n\t{\r\n\t return nodeMap.size();\r\n\t}",
"public int lockedNodeCount() {\n\treturn lockedNodes;\n }",
"@Override\n\tpublic Collection<TaskStatus> getTaskStatus(){\n \tcheckInitialized();\n \t\n \t@SuppressWarnings(\"unchecked\")\n\t\tCollection<Collection<TaskStatus>> statusTree=Collections.EMPTY_LIST;\n \tfinal MultiTask<Collection<TaskStatus>> mtask;\n \ttry {\n\t\t\t mtask = breeder.executeCallable(new GetTaskStatus(this));\n\t\t\t statusTree = mtask.get();\n \t} catch (ExecutionException ex){\n \t\tlog.fatal(\"Could not get status of tasks for job \"+this.getId(), ex);\n \t} catch(InterruptedException ex) {\n \t\tlog.fatal(\"Could not get status of tasks for job \"+this.getId(), ex);\n \t}\n\t\t\t\n\t\t// Flatten into single collection\n\t\tList<TaskStatus> result = new ArrayList<TaskStatus>((int)(statusTree.size()*this.getThreadCount()));\n\t\tfor(Collection<TaskStatus> statusForNode: statusTree) {\n\t\t\tresult.addAll(statusForNode);\n\t\t}\n\t\t\n\t\treturn result;\n \n\t}",
"int getNodeCount() {\n\t\treturn m_list_nodes.size();\n\t}",
"int getNodesCount();",
"int getNodesCount();",
"public java.util.List<java.lang.Integer>\n getStatusList() {\n return status_;\n }",
"public static int getNumberOfNodes() {\n return(numberOfNodes);\n\t }",
"@java.lang.Override\n public int getNodesCount() {\n return nodes_.size();\n }",
"java.util.List<entities.Torrent.NodeId>\n getNodesList();",
"private NodeRestartRequest() {\n\t\t}",
"List<CommunicationLink> getAllNodes()\n {\n return new ArrayList<>(allNodes.values());\n }",
"public ODocument clusterStatus() {\n checkConnected();\n return remote.getClusterStatus(user, password);\n }",
"public StatusChecker(Node node){\n this.node=node;\n start();\n }",
"public Builder clearNodeStatusList() {\n if (nodeStatusListBuilder_ == null) {\n nodeStatusList_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n nodeStatusListBuilder_.clear();\n }\n return this;\n }",
"@java.lang.Override\n public java.util.List<entities.Torrent.NodeId> getNodesList() {\n return nodes_;\n }",
"public int getNumberOfNodesEvaluated();",
"java.util.List<java.lang.Integer> getStatusList();",
"private List<Node> getNodes() {\n List<Node> nodes = new ArrayList<Node>();\n NodeApi.GetConnectedNodesResult rawNodes =\n Wearable.NodeApi.getConnectedNodes(mGoogleApiClient).await();\n for (Node node : rawNodes.getNodes()) {\n nodes.add(node);\n }\n return nodes;\n }",
"public int numNodes() {\n\t\treturn numNodes;\n\t}",
"void updateRmiClientsCount() {\n int noOfClientsConnected = 0;\n\n String[] connectionIds = rmiConnector.getConnectionIds();\n\n if (connectionIds != null) {\n noOfClientsConnected = connectionIds.length;\n }\n\n logger.info(\"No. of RMI clients connected :: {}\", noOfClientsConnected);\n\n AdminDistributedSystemJmxImpl adminDSJmx = (AdminDistributedSystemJmxImpl) system;\n\n adminDSJmx.setRmiClientCountZero(noOfClientsConnected == 0);\n }",
"public int getReplicationDegree() {\n return replicationDegree;\n }",
"public int getReplicationDegree() {\n return replicationDegree;\n }",
"public List<NetworkNode> listNetworkNode();",
"private void updateGeoRepStatus(GlusterVolumeEntity volume, GlusterGeoRepSession session) {\n\n List<HashSet<GeoRepSessionStatus>> list = new ArrayList<>();\n // grouped node status\n int replicaCount = volume.getReplicaCount() == 0 ? 1 : volume.getReplicaCount();\n for (int i = 0; i < volume.getBricks().size(); i = i + replicaCount) {\n HashSet<GeoRepSessionStatus> subVolumeStatusSet = new HashSet<>();\n int j = 0;\n while (j < replicaCount) {\n Guid brickId = volume.getBricks().get(i + j).getId();\n subVolumeStatusSet.add(getStatusForBrickFromSession(session, brickId));\n j++;\n }\n list.add(subVolumeStatusSet);\n }\n\n session.setStatus(GeoRepSessionStatus.ACTIVE);\n // iterate through grouped status to set consolidated status\n for (HashSet<GeoRepSessionStatus> subVolumeStatusValues : list) {\n if (subVolumeStatusValues.contains(GeoRepSessionStatus.ACTIVE)) {\n // healthy\n continue;\n } else if (subVolumeStatusValues.contains(GeoRepSessionStatus.FAULTY)) {\n session.setStatus(GeoRepSessionStatus.FAULTY);\n // if any one of the sub-volume is faulty, the overall session status if faulty\n return;\n }\n // override status in case of these values\n if (ArrayUtils.contains(overridableStatuses, session.getStatus())) {\n if (subVolumeStatusValues.size() == 1) {\n session.setStatus((GeoRepSessionStatus) subVolumeStatusValues.toArray()[0]);\n } else {\n // if status values in sub-volume are not the same, what do we do?\n // this should not happen, so we'll log it for now\n log.info(\"Multiple status values found in volume '{}'\", session.getMasterVolumeName());\n }\n }\n }\n\n }",
"@SuppressWarnings(\"unused\")\n private ReplicationStatusResponse() {\n this(false);\n }",
"int getNrNodes() {\n\t\treturn adjList.size();\n\t}",
"public int getConnectionStatus()\r\n { return connectionStatus; }",
"int getNodeCount();",
"int getNodeCount();",
"public int getNodeCount() {\n return nodeCount;\n }",
"public int getNetworkNodesNumber() {\n\t\t\n\t\t//Return nodes size\n\t\treturn nodes.size();\n\t\t\n\t}",
"void nodeOnline();",
"public static String getClusterStatusNodePath() {\n return String.join(\"/\", \"\", ROOT_NODE, COMPUTE_NODE, STATUS_NODE);\n }",
"@Override\n protected int minimumNumberOfReplicas() {\n return 1;\n }",
"@Override\n public void statusUpdate(final String asgName, final ASGStatus newStatus, final boolean isReplication) {\n if (isReplication) {\n return;\n }\n for (final PeerEurekaNode node : peerEurekaNodes.getPeerEurekaNodes()) {\n replicateASGInfoToReplicaNodes(asgName, newStatus, node);\n\n }\n }",
"@PostMapping(\"/queryGroupStatus/list\")\n @PreAuthorize(ConstantProperties.HAS_ROLE_ADMIN)\n public BaseResponse getGroupStatusList(@Valid @RequestBody ReqGroupStatus reqGroupStatus) throws NodeMgrException {\n Instant startTime = Instant.now();\n BaseResponse baseResponse = new BaseResponse(ConstantCode.SUCCESS);\n log.info(\"start getGroupStatusMap startTime:{}\", startTime.toEpochMilli());\n List<String> nodeIdList = reqGroupStatus.getNodeIdList();\n List<RspGroupStatus> resList = groupService.listGroupStatus(nodeIdList,\n reqGroupStatus.getGroupIdList());\n baseResponse.setData(resList);\n log.info(\"end getGroupStatusMap useTime:{} result:{}\",\n Duration.between(startTime, Instant.now()).toMillis(),\n JsonTools.toJSONString(baseResponse));\n return baseResponse;\n }",
"public String getNumberOfNodesEvaluated(){return Integer.toString(NumberOfVisitedNodes);}",
"private void getNodesCount(HttpServletRequest request, HttpServletResponse response) throws IOException {\n int countNodes = SimApi.getNodesCount();\n response.getWriter().write(Integer.toString(countNodes));\n }",
"java.util.List<? extends io.netifi.proteus.admin.om.NodeOrBuilder> \n getNodesOrBuilderList();",
"@Test(timeout = 10000L)\n public void testNodesInformation() throws Exception {\n CommonDriverAdminTests.testNodesInformation(client, nbNodes);\n }",
"public int getNumNodes() {\n\t\treturn nodes.size();\n\t}",
"public abstract Collection<Node> getAllSuccessors();",
"@RequestLine(\"GET /status\")\n Status getNeustarNetworkStatus();",
"public void printStatus(){\n System.out.println(\"Nodes: \" + \n getVertexCount() + \" Edges: \" + \n getEdgeCount()); \n //and \" + getEdgeCount() + \" edges active.\");\n }",
"public int getStatusCount() {\n return status_.size();\n }",
"public List<Long> getSessionNodes() {\n List<Long> ret = new ArrayList<>();\n\n for (int i = 0; i < sessionsList.size(); i++) {\n ret.add(sessionsList.get(i).dhtNodes());\n }\n\n return ret;\n }",
"@Override\n public ClusterStatus getCurrentClusterStatus() {\n if (getMemberList().size() > 1) {\n return CLUSTER_FUNCTIONAL;\n }\n // when only one node is connected return degraded\n if (getMemberList().size() == 1) {\n return CLUSTER_DEGRADED;\n }\n // consider all other states as illegal\n return CLUSTER_ILLEGAL;\n }",
"private void refreshNodeList() {\n if (UnderNet.router.status.equals(InterfaceStatus.STARTED)) {\n //Using connected and cached nodes if the router has started.\n ArrayList<Node> nodesToList = UnderNet.router.getConnectedNodes();\n for (Node cachedNode :\n EntryNodeCache.cachedNodes) {\n boolean canAdd = true;\n for (Node connectedNode : UnderNet.router.getConnectedNodes()) {\n if (cachedNode.getAddress().equals(connectedNode.getAddress())) {\n canAdd = false;\n }\n }\n if (canAdd) {\n nodesToList.add(cachedNode);\n }\n }\n nodeList.setListData(nodesToList.toArray());\n } else {\n //Using cached nodes if the router isn't online.\n nodeList.setListData(EntryNodeCache.cachedNodes.toArray());\n }\n }",
"public int getNodeCount() {\n return node_.size();\n }",
"public Builder setNodeStatusList(\n int index, entities.Torrent.NodeReplicationStatus.Builder builderForValue) {\n if (nodeStatusListBuilder_ == null) {\n ensureNodeStatusListIsMutable();\n nodeStatusList_.set(index, builderForValue.build());\n onChanged();\n } else {\n nodeStatusListBuilder_.setMessage(index, builderForValue.build());\n }\n return this;\n }",
"List<StatusListener> mo9950b();",
"int getStatusCount();",
"public List<Output<TInt32>> nodeIdsList() {\n return nodeIdsList;\n }",
"@Override\r\n\tpublic int getNumberOfNodes() {\n\t\treturn 0;\r\n\t}",
"@Override\n public void onNewClusterState(ClusterState state) {\n transportService.sendRequest(\n clusterService.localNode(),\n transportReplicaAction,\n replicaRequest,\n new ActionListenerResponseHandler<>(onCompletionListener, ReplicaResponse::new)\n );\n }",
"public java.util.List<? extends entities.Torrent.NodeIdOrBuilder>\n getNodesOrBuilderList() {\n if (nodesBuilder_ != null) {\n return nodesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(nodes_);\n }\n }",
"public java.util.List<java.lang.Integer>\n getStatusList() {\n return java.util.Collections.unmodifiableList(status_);\n }",
"void refreshNodeHostCount(int nodeHostCount);",
"protected int numNodes() {\n\t\treturn nodes.size();\n\t}",
"public static void getStatus() {\n\t\ttry {\n\t\t\tint i = 1;\n\t\t\tList<Object[]>serverDetails = ServerStatus.getServerDetails();\n\t\t\tfor (Object[] servers:serverDetails){\n\t\t\t\tServerStatus.verifyServerStatus(i,(String)servers[0], (String)servers[1], (String)servers[2]);\n\t\t\t\ti++;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tcatch (Exception ex){\n\t\t\tex.printStackTrace();\n\t\t}\n\t}",
"public Vector<Node> getNodes(){\n\t\treturn this.listOfNodes;\n\t}"
] |
[
"0.7677481",
"0.7332279",
"0.71873355",
"0.71560276",
"0.7116769",
"0.7109518",
"0.70585376",
"0.7024147",
"0.6879867",
"0.6876868",
"0.6864218",
"0.67323005",
"0.6665114",
"0.6640871",
"0.6559848",
"0.6556308",
"0.6390153",
"0.63229275",
"0.63024855",
"0.6215867",
"0.6154482",
"0.6059501",
"0.6021897",
"0.596904",
"0.5747415",
"0.5746043",
"0.572507",
"0.57199895",
"0.57014227",
"0.55606055",
"0.55531794",
"0.5541874",
"0.5535034",
"0.5529633",
"0.5514081",
"0.5508731",
"0.5476352",
"0.54575264",
"0.54510856",
"0.54392225",
"0.5431914",
"0.54128003",
"0.5403353",
"0.5403353",
"0.5391939",
"0.53903574",
"0.5383281",
"0.5371443",
"0.53700656",
"0.536878",
"0.53676504",
"0.535534",
"0.5338024",
"0.5328059",
"0.5311786",
"0.5306224",
"0.53053415",
"0.52958065",
"0.52942604",
"0.5293356",
"0.5293356",
"0.52853906",
"0.5275481",
"0.5274735",
"0.5272081",
"0.52704126",
"0.5269814",
"0.5269814",
"0.5261532",
"0.52604467",
"0.5249879",
"0.5249766",
"0.52476424",
"0.52447534",
"0.5238364",
"0.52316946",
"0.52309597",
"0.52308846",
"0.5225883",
"0.5223006",
"0.52158034",
"0.5215295",
"0.5214578",
"0.5205377",
"0.51992106",
"0.5189863",
"0.51856333",
"0.5185279",
"0.5179929",
"0.51792306",
"0.5179208",
"0.51784956",
"0.5153981",
"0.51533186",
"0.5152661",
"0.514974",
"0.51477605",
"0.51399446",
"0.5139098",
"0.51240915"
] |
0.7275059
|
2
|
The status of all the requests to other nodes repeated .NodeReplicationStatus nodeStatusList = 3;
|
entities.Torrent.NodeReplicationStatus getNodeStatusList(int index);
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@java.lang.Override\n public java.util.List<entities.Torrent.NodeReplicationStatus> getNodeStatusListList() {\n return nodeStatusList_;\n }",
"java.util.List<entities.Torrent.NodeReplicationStatus>\n getNodeStatusListList();",
"public java.util.List<entities.Torrent.NodeReplicationStatus> getNodeStatusListList() {\n if (nodeStatusListBuilder_ == null) {\n return java.util.Collections.unmodifiableList(nodeStatusList_);\n } else {\n return nodeStatusListBuilder_.getMessageList();\n }\n }",
"@java.lang.Override\n public java.util.List<? extends entities.Torrent.NodeReplicationStatusOrBuilder>\n getNodeStatusListOrBuilderList() {\n return nodeStatusList_;\n }",
"public java.util.List<? extends entities.Torrent.NodeReplicationStatusOrBuilder>\n getNodeStatusListOrBuilderList() {\n if (nodeStatusListBuilder_ != null) {\n return nodeStatusListBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(nodeStatusList_);\n }\n }",
"@java.lang.Override\n public int getNodeStatusListCount() {\n return nodeStatusList_.size();\n }",
"java.util.List<? extends entities.Torrent.NodeReplicationStatusOrBuilder>\n getNodeStatusListOrBuilderList();",
"public entities.Torrent.NodeReplicationStatus.Builder addNodeStatusListBuilder() {\n return getNodeStatusListFieldBuilder().addBuilder(\n entities.Torrent.NodeReplicationStatus.getDefaultInstance());\n }",
"int getNodeStatusListCount();",
"@java.lang.Override\n public entities.Torrent.NodeReplicationStatus getNodeStatusList(int index) {\n return nodeStatusList_.get(index);\n }",
"entities.Torrent.NodeReplicationStatusOrBuilder getNodeStatusListOrBuilder(\n int index);",
"@java.lang.Override\n public entities.Torrent.NodeReplicationStatusOrBuilder getNodeStatusListOrBuilder(\n int index) {\n return nodeStatusList_.get(index);\n }",
"public entities.Torrent.NodeReplicationStatus getNodeStatusList(int index) {\n if (nodeStatusListBuilder_ == null) {\n return nodeStatusList_.get(index);\n } else {\n return nodeStatusListBuilder_.getMessage(index);\n }\n }",
"public Builder addNodeStatusList(entities.Torrent.NodeReplicationStatus value) {\n if (nodeStatusListBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureNodeStatusListIsMutable();\n nodeStatusList_.add(value);\n onChanged();\n } else {\n nodeStatusListBuilder_.addMessage(value);\n }\n return this;\n }",
"public Builder addAllNodeStatusList(\n java.lang.Iterable<? extends entities.Torrent.NodeReplicationStatus> values) {\n if (nodeStatusListBuilder_ == null) {\n ensureNodeStatusListIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, nodeStatusList_);\n onChanged();\n } else {\n nodeStatusListBuilder_.addAllMessages(values);\n }\n return this;\n }",
"public entities.Torrent.NodeReplicationStatusOrBuilder getNodeStatusListOrBuilder(\n int index) {\n if (nodeStatusListBuilder_ == null) {\n return nodeStatusList_.get(index); } else {\n return nodeStatusListBuilder_.getMessageOrBuilder(index);\n }\n }",
"public int getNodeStatusListCount() {\n if (nodeStatusListBuilder_ == null) {\n return nodeStatusList_.size();\n } else {\n return nodeStatusListBuilder_.getCount();\n }\n }",
"public final int[] cacheNodeStatus() {\n return new int[]{0,0,0,0,0,0,0,0,0,0};\r\n }",
"public java.util.List<entities.Torrent.NodeReplicationStatus.Builder>\n getNodeStatusListBuilderList() {\n return getNodeStatusListFieldBuilder().getBuilderList();\n }",
"public Builder setNodeStatusList(\n int index, entities.Torrent.NodeReplicationStatus value) {\n if (nodeStatusListBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureNodeStatusListIsMutable();\n nodeStatusList_.set(index, value);\n onChanged();\n } else {\n nodeStatusListBuilder_.setMessage(index, value);\n }\n return this;\n }",
"private NodeReplicationStatus(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"int getReplicationCount();",
"public Builder addNodeStatusList(\n int index, entities.Torrent.NodeReplicationStatus value) {\n if (nodeStatusListBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureNodeStatusListIsMutable();\n nodeStatusList_.add(index, value);\n onChanged();\n } else {\n nodeStatusListBuilder_.addMessage(index, value);\n }\n return this;\n }",
"public entities.Torrent.NodeReplicationStatus.Builder addNodeStatusListBuilder(\n int index) {\n return getNodeStatusListFieldBuilder().addBuilder(\n index, entities.Torrent.NodeReplicationStatus.getDefaultInstance());\n }",
"public int getNumNodesSeenByMessage() {\r\n return numNodesSeenByMessage;\r\n }",
"public abstract String getNodeStatusVariableName();",
"public Builder addNodeStatusList(\n entities.Torrent.NodeReplicationStatus.Builder builderForValue) {\n if (nodeStatusListBuilder_ == null) {\n ensureNodeStatusListIsMutable();\n nodeStatusList_.add(builderForValue.build());\n onChanged();\n } else {\n nodeStatusListBuilder_.addMessage(builderForValue.build());\n }\n return this;\n }",
"public entities.Torrent.NodeReplicationStatus.Builder getNodeStatusListBuilder(\n int index) {\n return getNodeStatusListFieldBuilder().getBuilder(index);\n }",
"java.util.List<io.netifi.proteus.admin.om.Node> \n getNodesList();",
"public void list() {\r\n\t\tfor (String key : nodeMap.keySet()) {\r\n\t\t\tNodeRef node = nodeMap.get(key);\r\n\t\t\tSystem.out.println(node.getIp() + \" : \" + node.getPort());\r\n\t\t}\t\t\r\n\t}",
"public static int countNodes() {\n\t\treturn count_nodes;\n\t}",
"default Promise<List<String>> findAllNodesWithStatus(HealthStatus queryStatus) {\n final Promise<List<String>> promise = Promises.promise();\n promise.resolve(Collections.emptyList());\n return promise;\n\n }",
"@Override\n\tpublic long numNodes() {\n\t\treturn numNodes;\n\t}",
"public java.util.List<entities.Torrent.NodeId> getNodesList() {\n if (nodesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(nodes_);\n } else {\n return nodesBuilder_.getMessageList();\n }\n }",
"public NodeInformation[] getNodes() throws CassandraServerManagementException {\r\n StorageServiceMBean ssMBean = null;\r\n try {\r\n ssMBean = CassandraAdminDataHolder\r\n .getInstance().getCassandraMBeanLocator().locateStorageServiceMBean();\r\n } catch (CassandraServerManagementException e) {\r\n handleException(\"Error occurred while retrieving node information list\", e);\r\n }\r\n\r\n if (ssMBean == null) {\r\n handleException(\"Storage Server MBean is null\");\r\n }\r\n\r\n Map<String, String> tokenToEndpoint = ssMBean.getTokenToEndpointMap();\r\n List<String> sortedTokens = new ArrayList<String>(tokenToEndpoint.keySet());\r\n Collections.sort(sortedTokens);\r\n\r\n /* Calculate per-token ownership of the ring */\r\n Map<InetAddress, Float> ownerships = ssMBean.getOwnership();\r\n\r\n List<NodeInformation> nodeInfoList = new ArrayList<NodeInformation>();\r\n for (String token : sortedTokens) {\r\n String primaryEndpoint = tokenToEndpoint.get(token);\r\n String status = ssMBean.getLiveNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_UP\r\n : ssMBean.getUnreachableNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_DOWN\r\n : CassandraManagementConstants.NodeStatuses.NODE_STATUS_UNKNOWN;\r\n\r\n String state = ssMBean.getJoiningNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_JOINING\r\n : ssMBean.getLeavingNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_LEAVING\r\n : CassandraManagementConstants.NodeStatuses.NODE_STATUS_NORMAL;\r\n\r\n Map<String, String> loadMap = ssMBean.getLoadMap();\r\n String load = loadMap.containsKey(primaryEndpoint)\r\n ? loadMap.get(primaryEndpoint)\r\n : CassandraManagementConstants.NodeStatuses.NODE_STATUS_UNKNOWN;\r\n\r\n Float ownership = ownerships.get(token);\r\n String owns = \"N/A\";\r\n if(ownership!=null){\r\n owns = new DecimalFormat(\"##0.00%\").format(ownership);\r\n }\r\n NodeInformation nodeInfo = new NodeInformation();\r\n nodeInfo.setAddress(primaryEndpoint);\r\n nodeInfo.setState(state);\r\n nodeInfo.setStatus(status);\r\n nodeInfo.setOwn(owns);\r\n nodeInfo.setLoad(load);\r\n nodeInfo.setToken(token);\r\n nodeInfoList.add(nodeInfo);\r\n }\r\n return nodeInfoList.toArray(new NodeInformation[nodeInfoList.size()]);\r\n }",
"public String replicationState() {\n return this.replicationState;\n }",
"@Override\n public boolean getCurrentNodeStatus(InetAddress ia) {\n if (ia.isAnyLocalAddress()) {\n return true;\n }\n // Check if given address is in cluster\n for (Client c : instance.getClientService().getConnectedClients()) {\n if (c.getSocketAddress().getAddress().equals(ia)) {\n return true;\n }\n }\n // reject all other addresses\n return false;\n }",
"int numNodes() {\n\t\treturn num_nodes;\n\t}",
"private int numNodes()\r\n\t{\r\n\t return nodeMap.size();\r\n\t}",
"public int lockedNodeCount() {\n\treturn lockedNodes;\n }",
"@Override\n\tpublic Collection<TaskStatus> getTaskStatus(){\n \tcheckInitialized();\n \t\n \t@SuppressWarnings(\"unchecked\")\n\t\tCollection<Collection<TaskStatus>> statusTree=Collections.EMPTY_LIST;\n \tfinal MultiTask<Collection<TaskStatus>> mtask;\n \ttry {\n\t\t\t mtask = breeder.executeCallable(new GetTaskStatus(this));\n\t\t\t statusTree = mtask.get();\n \t} catch (ExecutionException ex){\n \t\tlog.fatal(\"Could not get status of tasks for job \"+this.getId(), ex);\n \t} catch(InterruptedException ex) {\n \t\tlog.fatal(\"Could not get status of tasks for job \"+this.getId(), ex);\n \t}\n\t\t\t\n\t\t// Flatten into single collection\n\t\tList<TaskStatus> result = new ArrayList<TaskStatus>((int)(statusTree.size()*this.getThreadCount()));\n\t\tfor(Collection<TaskStatus> statusForNode: statusTree) {\n\t\t\tresult.addAll(statusForNode);\n\t\t}\n\t\t\n\t\treturn result;\n \n\t}",
"int getNodeCount() {\n\t\treturn m_list_nodes.size();\n\t}",
"int getNodesCount();",
"int getNodesCount();",
"public java.util.List<java.lang.Integer>\n getStatusList() {\n return status_;\n }",
"public static int getNumberOfNodes() {\n return(numberOfNodes);\n\t }",
"@java.lang.Override\n public int getNodesCount() {\n return nodes_.size();\n }",
"private NodeRestartRequest() {\n\t\t}",
"java.util.List<entities.Torrent.NodeId>\n getNodesList();",
"List<CommunicationLink> getAllNodes()\n {\n return new ArrayList<>(allNodes.values());\n }",
"public ODocument clusterStatus() {\n checkConnected();\n return remote.getClusterStatus(user, password);\n }",
"public StatusChecker(Node node){\n this.node=node;\n start();\n }",
"public Builder clearNodeStatusList() {\n if (nodeStatusListBuilder_ == null) {\n nodeStatusList_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n nodeStatusListBuilder_.clear();\n }\n return this;\n }",
"@java.lang.Override\n public java.util.List<entities.Torrent.NodeId> getNodesList() {\n return nodes_;\n }",
"public int getNumberOfNodesEvaluated();",
"java.util.List<java.lang.Integer> getStatusList();",
"private List<Node> getNodes() {\n List<Node> nodes = new ArrayList<Node>();\n NodeApi.GetConnectedNodesResult rawNodes =\n Wearable.NodeApi.getConnectedNodes(mGoogleApiClient).await();\n for (Node node : rawNodes.getNodes()) {\n nodes.add(node);\n }\n return nodes;\n }",
"public int numNodes() {\n\t\treturn numNodes;\n\t}",
"void updateRmiClientsCount() {\n int noOfClientsConnected = 0;\n\n String[] connectionIds = rmiConnector.getConnectionIds();\n\n if (connectionIds != null) {\n noOfClientsConnected = connectionIds.length;\n }\n\n logger.info(\"No. of RMI clients connected :: {}\", noOfClientsConnected);\n\n AdminDistributedSystemJmxImpl adminDSJmx = (AdminDistributedSystemJmxImpl) system;\n\n adminDSJmx.setRmiClientCountZero(noOfClientsConnected == 0);\n }",
"public int getReplicationDegree() {\n return replicationDegree;\n }",
"public int getReplicationDegree() {\n return replicationDegree;\n }",
"public List<NetworkNode> listNetworkNode();",
"private void updateGeoRepStatus(GlusterVolumeEntity volume, GlusterGeoRepSession session) {\n\n List<HashSet<GeoRepSessionStatus>> list = new ArrayList<>();\n // grouped node status\n int replicaCount = volume.getReplicaCount() == 0 ? 1 : volume.getReplicaCount();\n for (int i = 0; i < volume.getBricks().size(); i = i + replicaCount) {\n HashSet<GeoRepSessionStatus> subVolumeStatusSet = new HashSet<>();\n int j = 0;\n while (j < replicaCount) {\n Guid brickId = volume.getBricks().get(i + j).getId();\n subVolumeStatusSet.add(getStatusForBrickFromSession(session, brickId));\n j++;\n }\n list.add(subVolumeStatusSet);\n }\n\n session.setStatus(GeoRepSessionStatus.ACTIVE);\n // iterate through grouped status to set consolidated status\n for (HashSet<GeoRepSessionStatus> subVolumeStatusValues : list) {\n if (subVolumeStatusValues.contains(GeoRepSessionStatus.ACTIVE)) {\n // healthy\n continue;\n } else if (subVolumeStatusValues.contains(GeoRepSessionStatus.FAULTY)) {\n session.setStatus(GeoRepSessionStatus.FAULTY);\n // if any one of the sub-volume is faulty, the overall session status if faulty\n return;\n }\n // override status in case of these values\n if (ArrayUtils.contains(overridableStatuses, session.getStatus())) {\n if (subVolumeStatusValues.size() == 1) {\n session.setStatus((GeoRepSessionStatus) subVolumeStatusValues.toArray()[0]);\n } else {\n // if status values in sub-volume are not the same, what do we do?\n // this should not happen, so we'll log it for now\n log.info(\"Multiple status values found in volume '{}'\", session.getMasterVolumeName());\n }\n }\n }\n\n }",
"@SuppressWarnings(\"unused\")\n private ReplicationStatusResponse() {\n this(false);\n }",
"int getNrNodes() {\n\t\treturn adjList.size();\n\t}",
"int getNodeCount();",
"int getNodeCount();",
"public int getConnectionStatus()\r\n { return connectionStatus; }",
"public int getNodeCount() {\n return nodeCount;\n }",
"public int getNetworkNodesNumber() {\n\t\t\n\t\t//Return nodes size\n\t\treturn nodes.size();\n\t\t\n\t}",
"void nodeOnline();",
"public static String getClusterStatusNodePath() {\n return String.join(\"/\", \"\", ROOT_NODE, COMPUTE_NODE, STATUS_NODE);\n }",
"@Override\n protected int minimumNumberOfReplicas() {\n return 1;\n }",
"@Override\n public void statusUpdate(final String asgName, final ASGStatus newStatus, final boolean isReplication) {\n if (isReplication) {\n return;\n }\n for (final PeerEurekaNode node : peerEurekaNodes.getPeerEurekaNodes()) {\n replicateASGInfoToReplicaNodes(asgName, newStatus, node);\n\n }\n }",
"@PostMapping(\"/queryGroupStatus/list\")\n @PreAuthorize(ConstantProperties.HAS_ROLE_ADMIN)\n public BaseResponse getGroupStatusList(@Valid @RequestBody ReqGroupStatus reqGroupStatus) throws NodeMgrException {\n Instant startTime = Instant.now();\n BaseResponse baseResponse = new BaseResponse(ConstantCode.SUCCESS);\n log.info(\"start getGroupStatusMap startTime:{}\", startTime.toEpochMilli());\n List<String> nodeIdList = reqGroupStatus.getNodeIdList();\n List<RspGroupStatus> resList = groupService.listGroupStatus(nodeIdList,\n reqGroupStatus.getGroupIdList());\n baseResponse.setData(resList);\n log.info(\"end getGroupStatusMap useTime:{} result:{}\",\n Duration.between(startTime, Instant.now()).toMillis(),\n JsonTools.toJSONString(baseResponse));\n return baseResponse;\n }",
"public String getNumberOfNodesEvaluated(){return Integer.toString(NumberOfVisitedNodes);}",
"private void getNodesCount(HttpServletRequest request, HttpServletResponse response) throws IOException {\n int countNodes = SimApi.getNodesCount();\n response.getWriter().write(Integer.toString(countNodes));\n }",
"java.util.List<? extends io.netifi.proteus.admin.om.NodeOrBuilder> \n getNodesOrBuilderList();",
"@Test(timeout = 10000L)\n public void testNodesInformation() throws Exception {\n CommonDriverAdminTests.testNodesInformation(client, nbNodes);\n }",
"public int getNumNodes() {\n\t\treturn nodes.size();\n\t}",
"@RequestLine(\"GET /status\")\n Status getNeustarNetworkStatus();",
"public void printStatus(){\n System.out.println(\"Nodes: \" + \n getVertexCount() + \" Edges: \" + \n getEdgeCount()); \n //and \" + getEdgeCount() + \" edges active.\");\n }",
"public abstract Collection<Node> getAllSuccessors();",
"public int getStatusCount() {\n return status_.size();\n }",
"public List<Long> getSessionNodes() {\n List<Long> ret = new ArrayList<>();\n\n for (int i = 0; i < sessionsList.size(); i++) {\n ret.add(sessionsList.get(i).dhtNodes());\n }\n\n return ret;\n }",
"@Override\n public ClusterStatus getCurrentClusterStatus() {\n if (getMemberList().size() > 1) {\n return CLUSTER_FUNCTIONAL;\n }\n // when only one node is connected return degraded\n if (getMemberList().size() == 1) {\n return CLUSTER_DEGRADED;\n }\n // consider all other states as illegal\n return CLUSTER_ILLEGAL;\n }",
"public int getNodeCount() {\n return node_.size();\n }",
"private void refreshNodeList() {\n if (UnderNet.router.status.equals(InterfaceStatus.STARTED)) {\n //Using connected and cached nodes if the router has started.\n ArrayList<Node> nodesToList = UnderNet.router.getConnectedNodes();\n for (Node cachedNode :\n EntryNodeCache.cachedNodes) {\n boolean canAdd = true;\n for (Node connectedNode : UnderNet.router.getConnectedNodes()) {\n if (cachedNode.getAddress().equals(connectedNode.getAddress())) {\n canAdd = false;\n }\n }\n if (canAdd) {\n nodesToList.add(cachedNode);\n }\n }\n nodeList.setListData(nodesToList.toArray());\n } else {\n //Using cached nodes if the router isn't online.\n nodeList.setListData(EntryNodeCache.cachedNodes.toArray());\n }\n }",
"int getStatusCount();",
"List<StatusListener> mo9950b();",
"public List<Output<TInt32>> nodeIdsList() {\n return nodeIdsList;\n }",
"public Builder setNodeStatusList(\n int index, entities.Torrent.NodeReplicationStatus.Builder builderForValue) {\n if (nodeStatusListBuilder_ == null) {\n ensureNodeStatusListIsMutable();\n nodeStatusList_.set(index, builderForValue.build());\n onChanged();\n } else {\n nodeStatusListBuilder_.setMessage(index, builderForValue.build());\n }\n return this;\n }",
"@Override\r\n\tpublic int getNumberOfNodes() {\n\t\treturn 0;\r\n\t}",
"public java.util.List<? extends entities.Torrent.NodeIdOrBuilder>\n getNodesOrBuilderList() {\n if (nodesBuilder_ != null) {\n return nodesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(nodes_);\n }\n }",
"@Override\n public void onNewClusterState(ClusterState state) {\n transportService.sendRequest(\n clusterService.localNode(),\n transportReplicaAction,\n replicaRequest,\n new ActionListenerResponseHandler<>(onCompletionListener, ReplicaResponse::new)\n );\n }",
"public java.util.List<java.lang.Integer>\n getStatusList() {\n return java.util.Collections.unmodifiableList(status_);\n }",
"void refreshNodeHostCount(int nodeHostCount);",
"protected int numNodes() {\n\t\treturn nodes.size();\n\t}",
"public static void getStatus() {\n\t\ttry {\n\t\t\tint i = 1;\n\t\t\tList<Object[]>serverDetails = ServerStatus.getServerDetails();\n\t\t\tfor (Object[] servers:serverDetails){\n\t\t\t\tServerStatus.verifyServerStatus(i,(String)servers[0], (String)servers[1], (String)servers[2]);\n\t\t\t\ti++;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tcatch (Exception ex){\n\t\t\tex.printStackTrace();\n\t\t}\n\t}",
"public Vector<Node> getNodes(){\n\t\treturn this.listOfNodes;\n\t}"
] |
[
"0.7330513",
"0.7273623",
"0.7185904",
"0.71540165",
"0.711505",
"0.71102214",
"0.7056519",
"0.7022613",
"0.6881543",
"0.68746865",
"0.68614775",
"0.6730206",
"0.66633195",
"0.6638524",
"0.6558738",
"0.6554595",
"0.6390956",
"0.6324348",
"0.6301884",
"0.62128437",
"0.6153897",
"0.6058742",
"0.60192406",
"0.596705",
"0.57494354",
"0.5748884",
"0.5723979",
"0.5719001",
"0.570223",
"0.5561525",
"0.5554988",
"0.5542978",
"0.5536758",
"0.5529717",
"0.5515723",
"0.5507869",
"0.5477924",
"0.545919",
"0.5453382",
"0.5440473",
"0.5432976",
"0.5413977",
"0.54059",
"0.54059",
"0.53920895",
"0.53919417",
"0.538495",
"0.53726",
"0.5371442",
"0.53705126",
"0.53690714",
"0.53564674",
"0.53378046",
"0.5328064",
"0.5315124",
"0.5306361",
"0.5305867",
"0.5297228",
"0.52948767",
"0.5292507",
"0.5292507",
"0.5286415",
"0.5276344",
"0.52740955",
"0.5273183",
"0.527266",
"0.527266",
"0.5272264",
"0.52635926",
"0.526193",
"0.52519333",
"0.52507585",
"0.5248499",
"0.52444947",
"0.52385783",
"0.5235392",
"0.52331",
"0.5231807",
"0.52273303",
"0.5224498",
"0.5218425",
"0.52174264",
"0.52173257",
"0.520692",
"0.5199218",
"0.5191387",
"0.51871306",
"0.5186112",
"0.5181667",
"0.5179533",
"0.51790094",
"0.51782185",
"0.51557237",
"0.5153083",
"0.5153054",
"0.5149576",
"0.51491016",
"0.5141703",
"0.51399857",
"0.51249874"
] |
0.76754725
|
0
|
The status of all the requests to other nodes repeated .NodeReplicationStatus nodeStatusList = 3;
|
int getNodeStatusListCount();
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"entities.Torrent.NodeReplicationStatus getNodeStatusList(int index);",
"@java.lang.Override\n public java.util.List<entities.Torrent.NodeReplicationStatus> getNodeStatusListList() {\n return nodeStatusList_;\n }",
"java.util.List<entities.Torrent.NodeReplicationStatus>\n getNodeStatusListList();",
"public java.util.List<entities.Torrent.NodeReplicationStatus> getNodeStatusListList() {\n if (nodeStatusListBuilder_ == null) {\n return java.util.Collections.unmodifiableList(nodeStatusList_);\n } else {\n return nodeStatusListBuilder_.getMessageList();\n }\n }",
"@java.lang.Override\n public java.util.List<? extends entities.Torrent.NodeReplicationStatusOrBuilder>\n getNodeStatusListOrBuilderList() {\n return nodeStatusList_;\n }",
"public java.util.List<? extends entities.Torrent.NodeReplicationStatusOrBuilder>\n getNodeStatusListOrBuilderList() {\n if (nodeStatusListBuilder_ != null) {\n return nodeStatusListBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(nodeStatusList_);\n }\n }",
"@java.lang.Override\n public int getNodeStatusListCount() {\n return nodeStatusList_.size();\n }",
"java.util.List<? extends entities.Torrent.NodeReplicationStatusOrBuilder>\n getNodeStatusListOrBuilderList();",
"public entities.Torrent.NodeReplicationStatus.Builder addNodeStatusListBuilder() {\n return getNodeStatusListFieldBuilder().addBuilder(\n entities.Torrent.NodeReplicationStatus.getDefaultInstance());\n }",
"@java.lang.Override\n public entities.Torrent.NodeReplicationStatus getNodeStatusList(int index) {\n return nodeStatusList_.get(index);\n }",
"entities.Torrent.NodeReplicationStatusOrBuilder getNodeStatusListOrBuilder(\n int index);",
"@java.lang.Override\n public entities.Torrent.NodeReplicationStatusOrBuilder getNodeStatusListOrBuilder(\n int index) {\n return nodeStatusList_.get(index);\n }",
"public entities.Torrent.NodeReplicationStatus getNodeStatusList(int index) {\n if (nodeStatusListBuilder_ == null) {\n return nodeStatusList_.get(index);\n } else {\n return nodeStatusListBuilder_.getMessage(index);\n }\n }",
"public Builder addNodeStatusList(entities.Torrent.NodeReplicationStatus value) {\n if (nodeStatusListBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureNodeStatusListIsMutable();\n nodeStatusList_.add(value);\n onChanged();\n } else {\n nodeStatusListBuilder_.addMessage(value);\n }\n return this;\n }",
"public Builder addAllNodeStatusList(\n java.lang.Iterable<? extends entities.Torrent.NodeReplicationStatus> values) {\n if (nodeStatusListBuilder_ == null) {\n ensureNodeStatusListIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, nodeStatusList_);\n onChanged();\n } else {\n nodeStatusListBuilder_.addAllMessages(values);\n }\n return this;\n }",
"public entities.Torrent.NodeReplicationStatusOrBuilder getNodeStatusListOrBuilder(\n int index) {\n if (nodeStatusListBuilder_ == null) {\n return nodeStatusList_.get(index); } else {\n return nodeStatusListBuilder_.getMessageOrBuilder(index);\n }\n }",
"public int getNodeStatusListCount() {\n if (nodeStatusListBuilder_ == null) {\n return nodeStatusList_.size();\n } else {\n return nodeStatusListBuilder_.getCount();\n }\n }",
"public final int[] cacheNodeStatus() {\n return new int[]{0,0,0,0,0,0,0,0,0,0};\r\n }",
"public java.util.List<entities.Torrent.NodeReplicationStatus.Builder>\n getNodeStatusListBuilderList() {\n return getNodeStatusListFieldBuilder().getBuilderList();\n }",
"public Builder setNodeStatusList(\n int index, entities.Torrent.NodeReplicationStatus value) {\n if (nodeStatusListBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureNodeStatusListIsMutable();\n nodeStatusList_.set(index, value);\n onChanged();\n } else {\n nodeStatusListBuilder_.setMessage(index, value);\n }\n return this;\n }",
"private NodeReplicationStatus(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"int getReplicationCount();",
"public Builder addNodeStatusList(\n int index, entities.Torrent.NodeReplicationStatus value) {\n if (nodeStatusListBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureNodeStatusListIsMutable();\n nodeStatusList_.add(index, value);\n onChanged();\n } else {\n nodeStatusListBuilder_.addMessage(index, value);\n }\n return this;\n }",
"public entities.Torrent.NodeReplicationStatus.Builder addNodeStatusListBuilder(\n int index) {\n return getNodeStatusListFieldBuilder().addBuilder(\n index, entities.Torrent.NodeReplicationStatus.getDefaultInstance());\n }",
"public int getNumNodesSeenByMessage() {\r\n return numNodesSeenByMessage;\r\n }",
"public abstract String getNodeStatusVariableName();",
"public Builder addNodeStatusList(\n entities.Torrent.NodeReplicationStatus.Builder builderForValue) {\n if (nodeStatusListBuilder_ == null) {\n ensureNodeStatusListIsMutable();\n nodeStatusList_.add(builderForValue.build());\n onChanged();\n } else {\n nodeStatusListBuilder_.addMessage(builderForValue.build());\n }\n return this;\n }",
"public entities.Torrent.NodeReplicationStatus.Builder getNodeStatusListBuilder(\n int index) {\n return getNodeStatusListFieldBuilder().getBuilder(index);\n }",
"java.util.List<io.netifi.proteus.admin.om.Node> \n getNodesList();",
"public void list() {\r\n\t\tfor (String key : nodeMap.keySet()) {\r\n\t\t\tNodeRef node = nodeMap.get(key);\r\n\t\t\tSystem.out.println(node.getIp() + \" : \" + node.getPort());\r\n\t\t}\t\t\r\n\t}",
"public static int countNodes() {\n\t\treturn count_nodes;\n\t}",
"default Promise<List<String>> findAllNodesWithStatus(HealthStatus queryStatus) {\n final Promise<List<String>> promise = Promises.promise();\n promise.resolve(Collections.emptyList());\n return promise;\n\n }",
"@Override\n\tpublic long numNodes() {\n\t\treturn numNodes;\n\t}",
"public java.util.List<entities.Torrent.NodeId> getNodesList() {\n if (nodesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(nodes_);\n } else {\n return nodesBuilder_.getMessageList();\n }\n }",
"public NodeInformation[] getNodes() throws CassandraServerManagementException {\r\n StorageServiceMBean ssMBean = null;\r\n try {\r\n ssMBean = CassandraAdminDataHolder\r\n .getInstance().getCassandraMBeanLocator().locateStorageServiceMBean();\r\n } catch (CassandraServerManagementException e) {\r\n handleException(\"Error occurred while retrieving node information list\", e);\r\n }\r\n\r\n if (ssMBean == null) {\r\n handleException(\"Storage Server MBean is null\");\r\n }\r\n\r\n Map<String, String> tokenToEndpoint = ssMBean.getTokenToEndpointMap();\r\n List<String> sortedTokens = new ArrayList<String>(tokenToEndpoint.keySet());\r\n Collections.sort(sortedTokens);\r\n\r\n /* Calculate per-token ownership of the ring */\r\n Map<InetAddress, Float> ownerships = ssMBean.getOwnership();\r\n\r\n List<NodeInformation> nodeInfoList = new ArrayList<NodeInformation>();\r\n for (String token : sortedTokens) {\r\n String primaryEndpoint = tokenToEndpoint.get(token);\r\n String status = ssMBean.getLiveNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_UP\r\n : ssMBean.getUnreachableNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_DOWN\r\n : CassandraManagementConstants.NodeStatuses.NODE_STATUS_UNKNOWN;\r\n\r\n String state = ssMBean.getJoiningNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_JOINING\r\n : ssMBean.getLeavingNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_LEAVING\r\n : CassandraManagementConstants.NodeStatuses.NODE_STATUS_NORMAL;\r\n\r\n Map<String, String> loadMap = ssMBean.getLoadMap();\r\n String load = loadMap.containsKey(primaryEndpoint)\r\n ? loadMap.get(primaryEndpoint)\r\n : CassandraManagementConstants.NodeStatuses.NODE_STATUS_UNKNOWN;\r\n\r\n Float ownership = ownerships.get(token);\r\n String owns = \"N/A\";\r\n if(ownership!=null){\r\n owns = new DecimalFormat(\"##0.00%\").format(ownership);\r\n }\r\n NodeInformation nodeInfo = new NodeInformation();\r\n nodeInfo.setAddress(primaryEndpoint);\r\n nodeInfo.setState(state);\r\n nodeInfo.setStatus(status);\r\n nodeInfo.setOwn(owns);\r\n nodeInfo.setLoad(load);\r\n nodeInfo.setToken(token);\r\n nodeInfoList.add(nodeInfo);\r\n }\r\n return nodeInfoList.toArray(new NodeInformation[nodeInfoList.size()]);\r\n }",
"public String replicationState() {\n return this.replicationState;\n }",
"@Override\n public boolean getCurrentNodeStatus(InetAddress ia) {\n if (ia.isAnyLocalAddress()) {\n return true;\n }\n // Check if given address is in cluster\n for (Client c : instance.getClientService().getConnectedClients()) {\n if (c.getSocketAddress().getAddress().equals(ia)) {\n return true;\n }\n }\n // reject all other addresses\n return false;\n }",
"int numNodes() {\n\t\treturn num_nodes;\n\t}",
"private int numNodes()\r\n\t{\r\n\t return nodeMap.size();\r\n\t}",
"public int lockedNodeCount() {\n\treturn lockedNodes;\n }",
"@Override\n\tpublic Collection<TaskStatus> getTaskStatus(){\n \tcheckInitialized();\n \t\n \t@SuppressWarnings(\"unchecked\")\n\t\tCollection<Collection<TaskStatus>> statusTree=Collections.EMPTY_LIST;\n \tfinal MultiTask<Collection<TaskStatus>> mtask;\n \ttry {\n\t\t\t mtask = breeder.executeCallable(new GetTaskStatus(this));\n\t\t\t statusTree = mtask.get();\n \t} catch (ExecutionException ex){\n \t\tlog.fatal(\"Could not get status of tasks for job \"+this.getId(), ex);\n \t} catch(InterruptedException ex) {\n \t\tlog.fatal(\"Could not get status of tasks for job \"+this.getId(), ex);\n \t}\n\t\t\t\n\t\t// Flatten into single collection\n\t\tList<TaskStatus> result = new ArrayList<TaskStatus>((int)(statusTree.size()*this.getThreadCount()));\n\t\tfor(Collection<TaskStatus> statusForNode: statusTree) {\n\t\t\tresult.addAll(statusForNode);\n\t\t}\n\t\t\n\t\treturn result;\n \n\t}",
"int getNodeCount() {\n\t\treturn m_list_nodes.size();\n\t}",
"int getNodesCount();",
"int getNodesCount();",
"public java.util.List<java.lang.Integer>\n getStatusList() {\n return status_;\n }",
"public static int getNumberOfNodes() {\n return(numberOfNodes);\n\t }",
"@java.lang.Override\n public int getNodesCount() {\n return nodes_.size();\n }",
"java.util.List<entities.Torrent.NodeId>\n getNodesList();",
"List<CommunicationLink> getAllNodes()\n {\n return new ArrayList<>(allNodes.values());\n }",
"private NodeRestartRequest() {\n\t\t}",
"public ODocument clusterStatus() {\n checkConnected();\n return remote.getClusterStatus(user, password);\n }",
"public StatusChecker(Node node){\n this.node=node;\n start();\n }",
"public Builder clearNodeStatusList() {\n if (nodeStatusListBuilder_ == null) {\n nodeStatusList_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n nodeStatusListBuilder_.clear();\n }\n return this;\n }",
"@java.lang.Override\n public java.util.List<entities.Torrent.NodeId> getNodesList() {\n return nodes_;\n }",
"public int getNumberOfNodesEvaluated();",
"private List<Node> getNodes() {\n List<Node> nodes = new ArrayList<Node>();\n NodeApi.GetConnectedNodesResult rawNodes =\n Wearable.NodeApi.getConnectedNodes(mGoogleApiClient).await();\n for (Node node : rawNodes.getNodes()) {\n nodes.add(node);\n }\n return nodes;\n }",
"java.util.List<java.lang.Integer> getStatusList();",
"public int numNodes() {\n\t\treturn numNodes;\n\t}",
"void updateRmiClientsCount() {\n int noOfClientsConnected = 0;\n\n String[] connectionIds = rmiConnector.getConnectionIds();\n\n if (connectionIds != null) {\n noOfClientsConnected = connectionIds.length;\n }\n\n logger.info(\"No. of RMI clients connected :: {}\", noOfClientsConnected);\n\n AdminDistributedSystemJmxImpl adminDSJmx = (AdminDistributedSystemJmxImpl) system;\n\n adminDSJmx.setRmiClientCountZero(noOfClientsConnected == 0);\n }",
"public int getReplicationDegree() {\n return replicationDegree;\n }",
"public int getReplicationDegree() {\n return replicationDegree;\n }",
"public List<NetworkNode> listNetworkNode();",
"private void updateGeoRepStatus(GlusterVolumeEntity volume, GlusterGeoRepSession session) {\n\n List<HashSet<GeoRepSessionStatus>> list = new ArrayList<>();\n // grouped node status\n int replicaCount = volume.getReplicaCount() == 0 ? 1 : volume.getReplicaCount();\n for (int i = 0; i < volume.getBricks().size(); i = i + replicaCount) {\n HashSet<GeoRepSessionStatus> subVolumeStatusSet = new HashSet<>();\n int j = 0;\n while (j < replicaCount) {\n Guid brickId = volume.getBricks().get(i + j).getId();\n subVolumeStatusSet.add(getStatusForBrickFromSession(session, brickId));\n j++;\n }\n list.add(subVolumeStatusSet);\n }\n\n session.setStatus(GeoRepSessionStatus.ACTIVE);\n // iterate through grouped status to set consolidated status\n for (HashSet<GeoRepSessionStatus> subVolumeStatusValues : list) {\n if (subVolumeStatusValues.contains(GeoRepSessionStatus.ACTIVE)) {\n // healthy\n continue;\n } else if (subVolumeStatusValues.contains(GeoRepSessionStatus.FAULTY)) {\n session.setStatus(GeoRepSessionStatus.FAULTY);\n // if any one of the sub-volume is faulty, the overall session status if faulty\n return;\n }\n // override status in case of these values\n if (ArrayUtils.contains(overridableStatuses, session.getStatus())) {\n if (subVolumeStatusValues.size() == 1) {\n session.setStatus((GeoRepSessionStatus) subVolumeStatusValues.toArray()[0]);\n } else {\n // if status values in sub-volume are not the same, what do we do?\n // this should not happen, so we'll log it for now\n log.info(\"Multiple status values found in volume '{}'\", session.getMasterVolumeName());\n }\n }\n }\n\n }",
"@SuppressWarnings(\"unused\")\n private ReplicationStatusResponse() {\n this(false);\n }",
"int getNrNodes() {\n\t\treturn adjList.size();\n\t}",
"public int getConnectionStatus()\r\n { return connectionStatus; }",
"int getNodeCount();",
"int getNodeCount();",
"public int getNodeCount() {\n return nodeCount;\n }",
"public int getNetworkNodesNumber() {\n\t\t\n\t\t//Return nodes size\n\t\treturn nodes.size();\n\t\t\n\t}",
"void nodeOnline();",
"public static String getClusterStatusNodePath() {\n return String.join(\"/\", \"\", ROOT_NODE, COMPUTE_NODE, STATUS_NODE);\n }",
"@Override\n protected int minimumNumberOfReplicas() {\n return 1;\n }",
"@Override\n public void statusUpdate(final String asgName, final ASGStatus newStatus, final boolean isReplication) {\n if (isReplication) {\n return;\n }\n for (final PeerEurekaNode node : peerEurekaNodes.getPeerEurekaNodes()) {\n replicateASGInfoToReplicaNodes(asgName, newStatus, node);\n\n }\n }",
"@PostMapping(\"/queryGroupStatus/list\")\n @PreAuthorize(ConstantProperties.HAS_ROLE_ADMIN)\n public BaseResponse getGroupStatusList(@Valid @RequestBody ReqGroupStatus reqGroupStatus) throws NodeMgrException {\n Instant startTime = Instant.now();\n BaseResponse baseResponse = new BaseResponse(ConstantCode.SUCCESS);\n log.info(\"start getGroupStatusMap startTime:{}\", startTime.toEpochMilli());\n List<String> nodeIdList = reqGroupStatus.getNodeIdList();\n List<RspGroupStatus> resList = groupService.listGroupStatus(nodeIdList,\n reqGroupStatus.getGroupIdList());\n baseResponse.setData(resList);\n log.info(\"end getGroupStatusMap useTime:{} result:{}\",\n Duration.between(startTime, Instant.now()).toMillis(),\n JsonTools.toJSONString(baseResponse));\n return baseResponse;\n }",
"java.util.List<? extends io.netifi.proteus.admin.om.NodeOrBuilder> \n getNodesOrBuilderList();",
"public String getNumberOfNodesEvaluated(){return Integer.toString(NumberOfVisitedNodes);}",
"private void getNodesCount(HttpServletRequest request, HttpServletResponse response) throws IOException {\n int countNodes = SimApi.getNodesCount();\n response.getWriter().write(Integer.toString(countNodes));\n }",
"@Test(timeout = 10000L)\n public void testNodesInformation() throws Exception {\n CommonDriverAdminTests.testNodesInformation(client, nbNodes);\n }",
"public int getNumNodes() {\n\t\treturn nodes.size();\n\t}",
"public abstract Collection<Node> getAllSuccessors();",
"@RequestLine(\"GET /status\")\n Status getNeustarNetworkStatus();",
"public void printStatus(){\n System.out.println(\"Nodes: \" + \n getVertexCount() + \" Edges: \" + \n getEdgeCount()); \n //and \" + getEdgeCount() + \" edges active.\");\n }",
"public int getStatusCount() {\n return status_.size();\n }",
"public List<Long> getSessionNodes() {\n List<Long> ret = new ArrayList<>();\n\n for (int i = 0; i < sessionsList.size(); i++) {\n ret.add(sessionsList.get(i).dhtNodes());\n }\n\n return ret;\n }",
"@Override\n public ClusterStatus getCurrentClusterStatus() {\n if (getMemberList().size() > 1) {\n return CLUSTER_FUNCTIONAL;\n }\n // when only one node is connected return degraded\n if (getMemberList().size() == 1) {\n return CLUSTER_DEGRADED;\n }\n // consider all other states as illegal\n return CLUSTER_ILLEGAL;\n }",
"private void refreshNodeList() {\n if (UnderNet.router.status.equals(InterfaceStatus.STARTED)) {\n //Using connected and cached nodes if the router has started.\n ArrayList<Node> nodesToList = UnderNet.router.getConnectedNodes();\n for (Node cachedNode :\n EntryNodeCache.cachedNodes) {\n boolean canAdd = true;\n for (Node connectedNode : UnderNet.router.getConnectedNodes()) {\n if (cachedNode.getAddress().equals(connectedNode.getAddress())) {\n canAdd = false;\n }\n }\n if (canAdd) {\n nodesToList.add(cachedNode);\n }\n }\n nodeList.setListData(nodesToList.toArray());\n } else {\n //Using cached nodes if the router isn't online.\n nodeList.setListData(EntryNodeCache.cachedNodes.toArray());\n }\n }",
"public int getNodeCount() {\n return node_.size();\n }",
"public Builder setNodeStatusList(\n int index, entities.Torrent.NodeReplicationStatus.Builder builderForValue) {\n if (nodeStatusListBuilder_ == null) {\n ensureNodeStatusListIsMutable();\n nodeStatusList_.set(index, builderForValue.build());\n onChanged();\n } else {\n nodeStatusListBuilder_.setMessage(index, builderForValue.build());\n }\n return this;\n }",
"public List<Output<TInt32>> nodeIdsList() {\n return nodeIdsList;\n }",
"List<StatusListener> mo9950b();",
"int getStatusCount();",
"@Override\n public void onNewClusterState(ClusterState state) {\n transportService.sendRequest(\n clusterService.localNode(),\n transportReplicaAction,\n replicaRequest,\n new ActionListenerResponseHandler<>(onCompletionListener, ReplicaResponse::new)\n );\n }",
"public java.util.List<? extends entities.Torrent.NodeIdOrBuilder>\n getNodesOrBuilderList() {\n if (nodesBuilder_ != null) {\n return nodesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(nodes_);\n }\n }",
"@Override\r\n\tpublic int getNumberOfNodes() {\n\t\treturn 0;\r\n\t}",
"public java.util.List<java.lang.Integer>\n getStatusList() {\n return java.util.Collections.unmodifiableList(status_);\n }",
"void refreshNodeHostCount(int nodeHostCount);",
"protected int numNodes() {\n\t\treturn nodes.size();\n\t}",
"public static void getStatus() {\n\t\ttry {\n\t\t\tint i = 1;\n\t\t\tList<Object[]>serverDetails = ServerStatus.getServerDetails();\n\t\t\tfor (Object[] servers:serverDetails){\n\t\t\t\tServerStatus.verifyServerStatus(i,(String)servers[0], (String)servers[1], (String)servers[2]);\n\t\t\t\ti++;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tcatch (Exception ex){\n\t\t\tex.printStackTrace();\n\t\t}\n\t}",
"public Vector<Node> getNodes(){\n\t\treturn this.listOfNodes;\n\t}"
] |
[
"0.7677447",
"0.73326534",
"0.72751945",
"0.7187517",
"0.7156577",
"0.71170497",
"0.71088874",
"0.70586026",
"0.70244354",
"0.68768275",
"0.6863607",
"0.6732412",
"0.6665126",
"0.6640762",
"0.65603524",
"0.6556245",
"0.63892424",
"0.63225454",
"0.6302617",
"0.62158686",
"0.6154571",
"0.6059235",
"0.6021623",
"0.5969211",
"0.5746757",
"0.5746533",
"0.5725065",
"0.5719905",
"0.5702983",
"0.5561155",
"0.55533105",
"0.5541831",
"0.5535313",
"0.55308056",
"0.55150694",
"0.5509859",
"0.54764414",
"0.54578775",
"0.5451353",
"0.5438688",
"0.54318774",
"0.54126287",
"0.54034257",
"0.54034257",
"0.5391672",
"0.5390411",
"0.53832936",
"0.53727967",
"0.5370394",
"0.53702694",
"0.53679216",
"0.5354863",
"0.5338436",
"0.53293514",
"0.53118134",
"0.530631",
"0.5305603",
"0.5295997",
"0.5294718",
"0.5293353",
"0.5293353",
"0.5286944",
"0.5276236",
"0.5274766",
"0.5272741",
"0.52713966",
"0.52693284",
"0.52693284",
"0.5261072",
"0.526089",
"0.5252027",
"0.52506906",
"0.52486336",
"0.5245913",
"0.5236892",
"0.5232337",
"0.5231927",
"0.5229986",
"0.5226807",
"0.52229863",
"0.5216052",
"0.5215427",
"0.5215198",
"0.5204292",
"0.5199826",
"0.519047",
"0.51865757",
"0.51846725",
"0.5180031",
"0.5179613",
"0.5179007",
"0.51780134",
"0.515467",
"0.51541543",
"0.5154118",
"0.5149366",
"0.514844",
"0.51400506",
"0.51396614",
"0.512528"
] |
0.68789655
|
9
|
The status of all the requests to other nodes repeated .NodeReplicationStatus nodeStatusList = 3;
|
java.util.List<? extends entities.Torrent.NodeReplicationStatusOrBuilder>
getNodeStatusListOrBuilderList();
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"entities.Torrent.NodeReplicationStatus getNodeStatusList(int index);",
"@java.lang.Override\n public java.util.List<entities.Torrent.NodeReplicationStatus> getNodeStatusListList() {\n return nodeStatusList_;\n }",
"java.util.List<entities.Torrent.NodeReplicationStatus>\n getNodeStatusListList();",
"public java.util.List<entities.Torrent.NodeReplicationStatus> getNodeStatusListList() {\n if (nodeStatusListBuilder_ == null) {\n return java.util.Collections.unmodifiableList(nodeStatusList_);\n } else {\n return nodeStatusListBuilder_.getMessageList();\n }\n }",
"@java.lang.Override\n public java.util.List<? extends entities.Torrent.NodeReplicationStatusOrBuilder>\n getNodeStatusListOrBuilderList() {\n return nodeStatusList_;\n }",
"public java.util.List<? extends entities.Torrent.NodeReplicationStatusOrBuilder>\n getNodeStatusListOrBuilderList() {\n if (nodeStatusListBuilder_ != null) {\n return nodeStatusListBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(nodeStatusList_);\n }\n }",
"@java.lang.Override\n public int getNodeStatusListCount() {\n return nodeStatusList_.size();\n }",
"public entities.Torrent.NodeReplicationStatus.Builder addNodeStatusListBuilder() {\n return getNodeStatusListFieldBuilder().addBuilder(\n entities.Torrent.NodeReplicationStatus.getDefaultInstance());\n }",
"int getNodeStatusListCount();",
"@java.lang.Override\n public entities.Torrent.NodeReplicationStatus getNodeStatusList(int index) {\n return nodeStatusList_.get(index);\n }",
"entities.Torrent.NodeReplicationStatusOrBuilder getNodeStatusListOrBuilder(\n int index);",
"@java.lang.Override\n public entities.Torrent.NodeReplicationStatusOrBuilder getNodeStatusListOrBuilder(\n int index) {\n return nodeStatusList_.get(index);\n }",
"public entities.Torrent.NodeReplicationStatus getNodeStatusList(int index) {\n if (nodeStatusListBuilder_ == null) {\n return nodeStatusList_.get(index);\n } else {\n return nodeStatusListBuilder_.getMessage(index);\n }\n }",
"public Builder addNodeStatusList(entities.Torrent.NodeReplicationStatus value) {\n if (nodeStatusListBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureNodeStatusListIsMutable();\n nodeStatusList_.add(value);\n onChanged();\n } else {\n nodeStatusListBuilder_.addMessage(value);\n }\n return this;\n }",
"public Builder addAllNodeStatusList(\n java.lang.Iterable<? extends entities.Torrent.NodeReplicationStatus> values) {\n if (nodeStatusListBuilder_ == null) {\n ensureNodeStatusListIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, nodeStatusList_);\n onChanged();\n } else {\n nodeStatusListBuilder_.addAllMessages(values);\n }\n return this;\n }",
"public entities.Torrent.NodeReplicationStatusOrBuilder getNodeStatusListOrBuilder(\n int index) {\n if (nodeStatusListBuilder_ == null) {\n return nodeStatusList_.get(index); } else {\n return nodeStatusListBuilder_.getMessageOrBuilder(index);\n }\n }",
"public int getNodeStatusListCount() {\n if (nodeStatusListBuilder_ == null) {\n return nodeStatusList_.size();\n } else {\n return nodeStatusListBuilder_.getCount();\n }\n }",
"public final int[] cacheNodeStatus() {\n return new int[]{0,0,0,0,0,0,0,0,0,0};\r\n }",
"public java.util.List<entities.Torrent.NodeReplicationStatus.Builder>\n getNodeStatusListBuilderList() {\n return getNodeStatusListFieldBuilder().getBuilderList();\n }",
"public Builder setNodeStatusList(\n int index, entities.Torrent.NodeReplicationStatus value) {\n if (nodeStatusListBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureNodeStatusListIsMutable();\n nodeStatusList_.set(index, value);\n onChanged();\n } else {\n nodeStatusListBuilder_.setMessage(index, value);\n }\n return this;\n }",
"private NodeReplicationStatus(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"int getReplicationCount();",
"public Builder addNodeStatusList(\n int index, entities.Torrent.NodeReplicationStatus value) {\n if (nodeStatusListBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureNodeStatusListIsMutable();\n nodeStatusList_.add(index, value);\n onChanged();\n } else {\n nodeStatusListBuilder_.addMessage(index, value);\n }\n return this;\n }",
"public entities.Torrent.NodeReplicationStatus.Builder addNodeStatusListBuilder(\n int index) {\n return getNodeStatusListFieldBuilder().addBuilder(\n index, entities.Torrent.NodeReplicationStatus.getDefaultInstance());\n }",
"public int getNumNodesSeenByMessage() {\r\n return numNodesSeenByMessage;\r\n }",
"public abstract String getNodeStatusVariableName();",
"public Builder addNodeStatusList(\n entities.Torrent.NodeReplicationStatus.Builder builderForValue) {\n if (nodeStatusListBuilder_ == null) {\n ensureNodeStatusListIsMutable();\n nodeStatusList_.add(builderForValue.build());\n onChanged();\n } else {\n nodeStatusListBuilder_.addMessage(builderForValue.build());\n }\n return this;\n }",
"public entities.Torrent.NodeReplicationStatus.Builder getNodeStatusListBuilder(\n int index) {\n return getNodeStatusListFieldBuilder().getBuilder(index);\n }",
"java.util.List<io.netifi.proteus.admin.om.Node> \n getNodesList();",
"public void list() {\r\n\t\tfor (String key : nodeMap.keySet()) {\r\n\t\t\tNodeRef node = nodeMap.get(key);\r\n\t\t\tSystem.out.println(node.getIp() + \" : \" + node.getPort());\r\n\t\t}\t\t\r\n\t}",
"public static int countNodes() {\n\t\treturn count_nodes;\n\t}",
"default Promise<List<String>> findAllNodesWithStatus(HealthStatus queryStatus) {\n final Promise<List<String>> promise = Promises.promise();\n promise.resolve(Collections.emptyList());\n return promise;\n\n }",
"@Override\n\tpublic long numNodes() {\n\t\treturn numNodes;\n\t}",
"public java.util.List<entities.Torrent.NodeId> getNodesList() {\n if (nodesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(nodes_);\n } else {\n return nodesBuilder_.getMessageList();\n }\n }",
"public NodeInformation[] getNodes() throws CassandraServerManagementException {\r\n StorageServiceMBean ssMBean = null;\r\n try {\r\n ssMBean = CassandraAdminDataHolder\r\n .getInstance().getCassandraMBeanLocator().locateStorageServiceMBean();\r\n } catch (CassandraServerManagementException e) {\r\n handleException(\"Error occurred while retrieving node information list\", e);\r\n }\r\n\r\n if (ssMBean == null) {\r\n handleException(\"Storage Server MBean is null\");\r\n }\r\n\r\n Map<String, String> tokenToEndpoint = ssMBean.getTokenToEndpointMap();\r\n List<String> sortedTokens = new ArrayList<String>(tokenToEndpoint.keySet());\r\n Collections.sort(sortedTokens);\r\n\r\n /* Calculate per-token ownership of the ring */\r\n Map<InetAddress, Float> ownerships = ssMBean.getOwnership();\r\n\r\n List<NodeInformation> nodeInfoList = new ArrayList<NodeInformation>();\r\n for (String token : sortedTokens) {\r\n String primaryEndpoint = tokenToEndpoint.get(token);\r\n String status = ssMBean.getLiveNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_UP\r\n : ssMBean.getUnreachableNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_DOWN\r\n : CassandraManagementConstants.NodeStatuses.NODE_STATUS_UNKNOWN;\r\n\r\n String state = ssMBean.getJoiningNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_JOINING\r\n : ssMBean.getLeavingNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_LEAVING\r\n : CassandraManagementConstants.NodeStatuses.NODE_STATUS_NORMAL;\r\n\r\n Map<String, String> loadMap = ssMBean.getLoadMap();\r\n String load = loadMap.containsKey(primaryEndpoint)\r\n ? loadMap.get(primaryEndpoint)\r\n : CassandraManagementConstants.NodeStatuses.NODE_STATUS_UNKNOWN;\r\n\r\n Float ownership = ownerships.get(token);\r\n String owns = \"N/A\";\r\n if(ownership!=null){\r\n owns = new DecimalFormat(\"##0.00%\").format(ownership);\r\n }\r\n NodeInformation nodeInfo = new NodeInformation();\r\n nodeInfo.setAddress(primaryEndpoint);\r\n nodeInfo.setState(state);\r\n nodeInfo.setStatus(status);\r\n nodeInfo.setOwn(owns);\r\n nodeInfo.setLoad(load);\r\n nodeInfo.setToken(token);\r\n nodeInfoList.add(nodeInfo);\r\n }\r\n return nodeInfoList.toArray(new NodeInformation[nodeInfoList.size()]);\r\n }",
"public String replicationState() {\n return this.replicationState;\n }",
"@Override\n public boolean getCurrentNodeStatus(InetAddress ia) {\n if (ia.isAnyLocalAddress()) {\n return true;\n }\n // Check if given address is in cluster\n for (Client c : instance.getClientService().getConnectedClients()) {\n if (c.getSocketAddress().getAddress().equals(ia)) {\n return true;\n }\n }\n // reject all other addresses\n return false;\n }",
"int numNodes() {\n\t\treturn num_nodes;\n\t}",
"private int numNodes()\r\n\t{\r\n\t return nodeMap.size();\r\n\t}",
"public int lockedNodeCount() {\n\treturn lockedNodes;\n }",
"@Override\n\tpublic Collection<TaskStatus> getTaskStatus(){\n \tcheckInitialized();\n \t\n \t@SuppressWarnings(\"unchecked\")\n\t\tCollection<Collection<TaskStatus>> statusTree=Collections.EMPTY_LIST;\n \tfinal MultiTask<Collection<TaskStatus>> mtask;\n \ttry {\n\t\t\t mtask = breeder.executeCallable(new GetTaskStatus(this));\n\t\t\t statusTree = mtask.get();\n \t} catch (ExecutionException ex){\n \t\tlog.fatal(\"Could not get status of tasks for job \"+this.getId(), ex);\n \t} catch(InterruptedException ex) {\n \t\tlog.fatal(\"Could not get status of tasks for job \"+this.getId(), ex);\n \t}\n\t\t\t\n\t\t// Flatten into single collection\n\t\tList<TaskStatus> result = new ArrayList<TaskStatus>((int)(statusTree.size()*this.getThreadCount()));\n\t\tfor(Collection<TaskStatus> statusForNode: statusTree) {\n\t\t\tresult.addAll(statusForNode);\n\t\t}\n\t\t\n\t\treturn result;\n \n\t}",
"int getNodeCount() {\n\t\treturn m_list_nodes.size();\n\t}",
"int getNodesCount();",
"int getNodesCount();",
"public java.util.List<java.lang.Integer>\n getStatusList() {\n return status_;\n }",
"public static int getNumberOfNodes() {\n return(numberOfNodes);\n\t }",
"@java.lang.Override\n public int getNodesCount() {\n return nodes_.size();\n }",
"private NodeRestartRequest() {\n\t\t}",
"java.util.List<entities.Torrent.NodeId>\n getNodesList();",
"List<CommunicationLink> getAllNodes()\n {\n return new ArrayList<>(allNodes.values());\n }",
"public ODocument clusterStatus() {\n checkConnected();\n return remote.getClusterStatus(user, password);\n }",
"public StatusChecker(Node node){\n this.node=node;\n start();\n }",
"public Builder clearNodeStatusList() {\n if (nodeStatusListBuilder_ == null) {\n nodeStatusList_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n nodeStatusListBuilder_.clear();\n }\n return this;\n }",
"@java.lang.Override\n public java.util.List<entities.Torrent.NodeId> getNodesList() {\n return nodes_;\n }",
"public int getNumberOfNodesEvaluated();",
"java.util.List<java.lang.Integer> getStatusList();",
"private List<Node> getNodes() {\n List<Node> nodes = new ArrayList<Node>();\n NodeApi.GetConnectedNodesResult rawNodes =\n Wearable.NodeApi.getConnectedNodes(mGoogleApiClient).await();\n for (Node node : rawNodes.getNodes()) {\n nodes.add(node);\n }\n return nodes;\n }",
"public int numNodes() {\n\t\treturn numNodes;\n\t}",
"void updateRmiClientsCount() {\n int noOfClientsConnected = 0;\n\n String[] connectionIds = rmiConnector.getConnectionIds();\n\n if (connectionIds != null) {\n noOfClientsConnected = connectionIds.length;\n }\n\n logger.info(\"No. of RMI clients connected :: {}\", noOfClientsConnected);\n\n AdminDistributedSystemJmxImpl adminDSJmx = (AdminDistributedSystemJmxImpl) system;\n\n adminDSJmx.setRmiClientCountZero(noOfClientsConnected == 0);\n }",
"public int getReplicationDegree() {\n return replicationDegree;\n }",
"public int getReplicationDegree() {\n return replicationDegree;\n }",
"public List<NetworkNode> listNetworkNode();",
"private void updateGeoRepStatus(GlusterVolumeEntity volume, GlusterGeoRepSession session) {\n\n List<HashSet<GeoRepSessionStatus>> list = new ArrayList<>();\n // grouped node status\n int replicaCount = volume.getReplicaCount() == 0 ? 1 : volume.getReplicaCount();\n for (int i = 0; i < volume.getBricks().size(); i = i + replicaCount) {\n HashSet<GeoRepSessionStatus> subVolumeStatusSet = new HashSet<>();\n int j = 0;\n while (j < replicaCount) {\n Guid brickId = volume.getBricks().get(i + j).getId();\n subVolumeStatusSet.add(getStatusForBrickFromSession(session, brickId));\n j++;\n }\n list.add(subVolumeStatusSet);\n }\n\n session.setStatus(GeoRepSessionStatus.ACTIVE);\n // iterate through grouped status to set consolidated status\n for (HashSet<GeoRepSessionStatus> subVolumeStatusValues : list) {\n if (subVolumeStatusValues.contains(GeoRepSessionStatus.ACTIVE)) {\n // healthy\n continue;\n } else if (subVolumeStatusValues.contains(GeoRepSessionStatus.FAULTY)) {\n session.setStatus(GeoRepSessionStatus.FAULTY);\n // if any one of the sub-volume is faulty, the overall session status if faulty\n return;\n }\n // override status in case of these values\n if (ArrayUtils.contains(overridableStatuses, session.getStatus())) {\n if (subVolumeStatusValues.size() == 1) {\n session.setStatus((GeoRepSessionStatus) subVolumeStatusValues.toArray()[0]);\n } else {\n // if status values in sub-volume are not the same, what do we do?\n // this should not happen, so we'll log it for now\n log.info(\"Multiple status values found in volume '{}'\", session.getMasterVolumeName());\n }\n }\n }\n\n }",
"@SuppressWarnings(\"unused\")\n private ReplicationStatusResponse() {\n this(false);\n }",
"int getNrNodes() {\n\t\treturn adjList.size();\n\t}",
"public int getConnectionStatus()\r\n { return connectionStatus; }",
"int getNodeCount();",
"int getNodeCount();",
"public int getNodeCount() {\n return nodeCount;\n }",
"public int getNetworkNodesNumber() {\n\t\t\n\t\t//Return nodes size\n\t\treturn nodes.size();\n\t\t\n\t}",
"void nodeOnline();",
"public static String getClusterStatusNodePath() {\n return String.join(\"/\", \"\", ROOT_NODE, COMPUTE_NODE, STATUS_NODE);\n }",
"@Override\n protected int minimumNumberOfReplicas() {\n return 1;\n }",
"@Override\n public void statusUpdate(final String asgName, final ASGStatus newStatus, final boolean isReplication) {\n if (isReplication) {\n return;\n }\n for (final PeerEurekaNode node : peerEurekaNodes.getPeerEurekaNodes()) {\n replicateASGInfoToReplicaNodes(asgName, newStatus, node);\n\n }\n }",
"@PostMapping(\"/queryGroupStatus/list\")\n @PreAuthorize(ConstantProperties.HAS_ROLE_ADMIN)\n public BaseResponse getGroupStatusList(@Valid @RequestBody ReqGroupStatus reqGroupStatus) throws NodeMgrException {\n Instant startTime = Instant.now();\n BaseResponse baseResponse = new BaseResponse(ConstantCode.SUCCESS);\n log.info(\"start getGroupStatusMap startTime:{}\", startTime.toEpochMilli());\n List<String> nodeIdList = reqGroupStatus.getNodeIdList();\n List<RspGroupStatus> resList = groupService.listGroupStatus(nodeIdList,\n reqGroupStatus.getGroupIdList());\n baseResponse.setData(resList);\n log.info(\"end getGroupStatusMap useTime:{} result:{}\",\n Duration.between(startTime, Instant.now()).toMillis(),\n JsonTools.toJSONString(baseResponse));\n return baseResponse;\n }",
"public String getNumberOfNodesEvaluated(){return Integer.toString(NumberOfVisitedNodes);}",
"java.util.List<? extends io.netifi.proteus.admin.om.NodeOrBuilder> \n getNodesOrBuilderList();",
"private void getNodesCount(HttpServletRequest request, HttpServletResponse response) throws IOException {\n int countNodes = SimApi.getNodesCount();\n response.getWriter().write(Integer.toString(countNodes));\n }",
"@Test(timeout = 10000L)\n public void testNodesInformation() throws Exception {\n CommonDriverAdminTests.testNodesInformation(client, nbNodes);\n }",
"public int getNumNodes() {\n\t\treturn nodes.size();\n\t}",
"public abstract Collection<Node> getAllSuccessors();",
"@RequestLine(\"GET /status\")\n Status getNeustarNetworkStatus();",
"public void printStatus(){\n System.out.println(\"Nodes: \" + \n getVertexCount() + \" Edges: \" + \n getEdgeCount()); \n //and \" + getEdgeCount() + \" edges active.\");\n }",
"public int getStatusCount() {\n return status_.size();\n }",
"public List<Long> getSessionNodes() {\n List<Long> ret = new ArrayList<>();\n\n for (int i = 0; i < sessionsList.size(); i++) {\n ret.add(sessionsList.get(i).dhtNodes());\n }\n\n return ret;\n }",
"@Override\n public ClusterStatus getCurrentClusterStatus() {\n if (getMemberList().size() > 1) {\n return CLUSTER_FUNCTIONAL;\n }\n // when only one node is connected return degraded\n if (getMemberList().size() == 1) {\n return CLUSTER_DEGRADED;\n }\n // consider all other states as illegal\n return CLUSTER_ILLEGAL;\n }",
"private void refreshNodeList() {\n if (UnderNet.router.status.equals(InterfaceStatus.STARTED)) {\n //Using connected and cached nodes if the router has started.\n ArrayList<Node> nodesToList = UnderNet.router.getConnectedNodes();\n for (Node cachedNode :\n EntryNodeCache.cachedNodes) {\n boolean canAdd = true;\n for (Node connectedNode : UnderNet.router.getConnectedNodes()) {\n if (cachedNode.getAddress().equals(connectedNode.getAddress())) {\n canAdd = false;\n }\n }\n if (canAdd) {\n nodesToList.add(cachedNode);\n }\n }\n nodeList.setListData(nodesToList.toArray());\n } else {\n //Using cached nodes if the router isn't online.\n nodeList.setListData(EntryNodeCache.cachedNodes.toArray());\n }\n }",
"public int getNodeCount() {\n return node_.size();\n }",
"public Builder setNodeStatusList(\n int index, entities.Torrent.NodeReplicationStatus.Builder builderForValue) {\n if (nodeStatusListBuilder_ == null) {\n ensureNodeStatusListIsMutable();\n nodeStatusList_.set(index, builderForValue.build());\n onChanged();\n } else {\n nodeStatusListBuilder_.setMessage(index, builderForValue.build());\n }\n return this;\n }",
"int getStatusCount();",
"List<StatusListener> mo9950b();",
"public List<Output<TInt32>> nodeIdsList() {\n return nodeIdsList;\n }",
"@Override\r\n\tpublic int getNumberOfNodes() {\n\t\treturn 0;\r\n\t}",
"@Override\n public void onNewClusterState(ClusterState state) {\n transportService.sendRequest(\n clusterService.localNode(),\n transportReplicaAction,\n replicaRequest,\n new ActionListenerResponseHandler<>(onCompletionListener, ReplicaResponse::new)\n );\n }",
"public java.util.List<? extends entities.Torrent.NodeIdOrBuilder>\n getNodesOrBuilderList() {\n if (nodesBuilder_ != null) {\n return nodesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(nodes_);\n }\n }",
"void refreshNodeHostCount(int nodeHostCount);",
"public java.util.List<java.lang.Integer>\n getStatusList() {\n return java.util.Collections.unmodifiableList(status_);\n }",
"protected int numNodes() {\n\t\treturn nodes.size();\n\t}",
"public static void getStatus() {\n\t\ttry {\n\t\t\tint i = 1;\n\t\t\tList<Object[]>serverDetails = ServerStatus.getServerDetails();\n\t\t\tfor (Object[] servers:serverDetails){\n\t\t\t\tServerStatus.verifyServerStatus(i,(String)servers[0], (String)servers[1], (String)servers[2]);\n\t\t\t\ti++;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tcatch (Exception ex){\n\t\t\tex.printStackTrace();\n\t\t}\n\t}",
"public Vector<Node> getNodes(){\n\t\treturn this.listOfNodes;\n\t}"
] |
[
"0.7676129",
"0.7331182",
"0.7273687",
"0.71861",
"0.715512",
"0.7115793",
"0.7109621",
"0.70231473",
"0.68802404",
"0.68754536",
"0.68622214",
"0.6731096",
"0.66640806",
"0.66391486",
"0.65591234",
"0.6555521",
"0.63903886",
"0.63232106",
"0.63019353",
"0.6214408",
"0.61544263",
"0.6059044",
"0.6020407",
"0.5968166",
"0.5747682",
"0.5747118",
"0.572477",
"0.5719498",
"0.5702324",
"0.55613613",
"0.5554103",
"0.55409944",
"0.55359095",
"0.55294245",
"0.5514939",
"0.5508245",
"0.54773027",
"0.54582757",
"0.5452121",
"0.54395384",
"0.5432274",
"0.5413921",
"0.5404272",
"0.5404272",
"0.5391273",
"0.5391093",
"0.53838295",
"0.5372251",
"0.5371431",
"0.53694195",
"0.53680325",
"0.5355719",
"0.5337264",
"0.5328223",
"0.5313206",
"0.53056794",
"0.5304752",
"0.52963203",
"0.5294912",
"0.52926546",
"0.52926546",
"0.52865416",
"0.52761674",
"0.52743804",
"0.52723396",
"0.52713174",
"0.5270979",
"0.5270979",
"0.5262344",
"0.5260428",
"0.5251417",
"0.525009",
"0.52486444",
"0.5244158",
"0.5236949",
"0.5233294",
"0.5232152",
"0.523205",
"0.5227255",
"0.5222861",
"0.5216217",
"0.5216119",
"0.5214923",
"0.52052957",
"0.5199027",
"0.5190343",
"0.51863825",
"0.5185727",
"0.5179844",
"0.51798075",
"0.51794755",
"0.51788676",
"0.5154731",
"0.5154184",
"0.51530594",
"0.51490337",
"0.514868",
"0.5140558",
"0.5139295",
"0.51247513"
] |
0.70572484
|
7
|
The status of all the requests to other nodes repeated .NodeReplicationStatus nodeStatusList = 3;
|
entities.Torrent.NodeReplicationStatusOrBuilder getNodeStatusListOrBuilder(
int index);
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"entities.Torrent.NodeReplicationStatus getNodeStatusList(int index);",
"@java.lang.Override\n public java.util.List<entities.Torrent.NodeReplicationStatus> getNodeStatusListList() {\n return nodeStatusList_;\n }",
"java.util.List<entities.Torrent.NodeReplicationStatus>\n getNodeStatusListList();",
"public java.util.List<entities.Torrent.NodeReplicationStatus> getNodeStatusListList() {\n if (nodeStatusListBuilder_ == null) {\n return java.util.Collections.unmodifiableList(nodeStatusList_);\n } else {\n return nodeStatusListBuilder_.getMessageList();\n }\n }",
"@java.lang.Override\n public java.util.List<? extends entities.Torrent.NodeReplicationStatusOrBuilder>\n getNodeStatusListOrBuilderList() {\n return nodeStatusList_;\n }",
"public java.util.List<? extends entities.Torrent.NodeReplicationStatusOrBuilder>\n getNodeStatusListOrBuilderList() {\n if (nodeStatusListBuilder_ != null) {\n return nodeStatusListBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(nodeStatusList_);\n }\n }",
"@java.lang.Override\n public int getNodeStatusListCount() {\n return nodeStatusList_.size();\n }",
"java.util.List<? extends entities.Torrent.NodeReplicationStatusOrBuilder>\n getNodeStatusListOrBuilderList();",
"public entities.Torrent.NodeReplicationStatus.Builder addNodeStatusListBuilder() {\n return getNodeStatusListFieldBuilder().addBuilder(\n entities.Torrent.NodeReplicationStatus.getDefaultInstance());\n }",
"int getNodeStatusListCount();",
"@java.lang.Override\n public entities.Torrent.NodeReplicationStatus getNodeStatusList(int index) {\n return nodeStatusList_.get(index);\n }",
"@java.lang.Override\n public entities.Torrent.NodeReplicationStatusOrBuilder getNodeStatusListOrBuilder(\n int index) {\n return nodeStatusList_.get(index);\n }",
"public entities.Torrent.NodeReplicationStatus getNodeStatusList(int index) {\n if (nodeStatusListBuilder_ == null) {\n return nodeStatusList_.get(index);\n } else {\n return nodeStatusListBuilder_.getMessage(index);\n }\n }",
"public Builder addNodeStatusList(entities.Torrent.NodeReplicationStatus value) {\n if (nodeStatusListBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureNodeStatusListIsMutable();\n nodeStatusList_.add(value);\n onChanged();\n } else {\n nodeStatusListBuilder_.addMessage(value);\n }\n return this;\n }",
"public Builder addAllNodeStatusList(\n java.lang.Iterable<? extends entities.Torrent.NodeReplicationStatus> values) {\n if (nodeStatusListBuilder_ == null) {\n ensureNodeStatusListIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, nodeStatusList_);\n onChanged();\n } else {\n nodeStatusListBuilder_.addAllMessages(values);\n }\n return this;\n }",
"public entities.Torrent.NodeReplicationStatusOrBuilder getNodeStatusListOrBuilder(\n int index) {\n if (nodeStatusListBuilder_ == null) {\n return nodeStatusList_.get(index); } else {\n return nodeStatusListBuilder_.getMessageOrBuilder(index);\n }\n }",
"public int getNodeStatusListCount() {\n if (nodeStatusListBuilder_ == null) {\n return nodeStatusList_.size();\n } else {\n return nodeStatusListBuilder_.getCount();\n }\n }",
"public final int[] cacheNodeStatus() {\n return new int[]{0,0,0,0,0,0,0,0,0,0};\r\n }",
"public java.util.List<entities.Torrent.NodeReplicationStatus.Builder>\n getNodeStatusListBuilderList() {\n return getNodeStatusListFieldBuilder().getBuilderList();\n }",
"public Builder setNodeStatusList(\n int index, entities.Torrent.NodeReplicationStatus value) {\n if (nodeStatusListBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureNodeStatusListIsMutable();\n nodeStatusList_.set(index, value);\n onChanged();\n } else {\n nodeStatusListBuilder_.setMessage(index, value);\n }\n return this;\n }",
"private NodeReplicationStatus(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"int getReplicationCount();",
"public Builder addNodeStatusList(\n int index, entities.Torrent.NodeReplicationStatus value) {\n if (nodeStatusListBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureNodeStatusListIsMutable();\n nodeStatusList_.add(index, value);\n onChanged();\n } else {\n nodeStatusListBuilder_.addMessage(index, value);\n }\n return this;\n }",
"public entities.Torrent.NodeReplicationStatus.Builder addNodeStatusListBuilder(\n int index) {\n return getNodeStatusListFieldBuilder().addBuilder(\n index, entities.Torrent.NodeReplicationStatus.getDefaultInstance());\n }",
"public int getNumNodesSeenByMessage() {\r\n return numNodesSeenByMessage;\r\n }",
"public abstract String getNodeStatusVariableName();",
"public Builder addNodeStatusList(\n entities.Torrent.NodeReplicationStatus.Builder builderForValue) {\n if (nodeStatusListBuilder_ == null) {\n ensureNodeStatusListIsMutable();\n nodeStatusList_.add(builderForValue.build());\n onChanged();\n } else {\n nodeStatusListBuilder_.addMessage(builderForValue.build());\n }\n return this;\n }",
"public entities.Torrent.NodeReplicationStatus.Builder getNodeStatusListBuilder(\n int index) {\n return getNodeStatusListFieldBuilder().getBuilder(index);\n }",
"java.util.List<io.netifi.proteus.admin.om.Node> \n getNodesList();",
"public void list() {\r\n\t\tfor (String key : nodeMap.keySet()) {\r\n\t\t\tNodeRef node = nodeMap.get(key);\r\n\t\t\tSystem.out.println(node.getIp() + \" : \" + node.getPort());\r\n\t\t}\t\t\r\n\t}",
"public static int countNodes() {\n\t\treturn count_nodes;\n\t}",
"default Promise<List<String>> findAllNodesWithStatus(HealthStatus queryStatus) {\n final Promise<List<String>> promise = Promises.promise();\n promise.resolve(Collections.emptyList());\n return promise;\n\n }",
"@Override\n\tpublic long numNodes() {\n\t\treturn numNodes;\n\t}",
"public java.util.List<entities.Torrent.NodeId> getNodesList() {\n if (nodesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(nodes_);\n } else {\n return nodesBuilder_.getMessageList();\n }\n }",
"public NodeInformation[] getNodes() throws CassandraServerManagementException {\r\n StorageServiceMBean ssMBean = null;\r\n try {\r\n ssMBean = CassandraAdminDataHolder\r\n .getInstance().getCassandraMBeanLocator().locateStorageServiceMBean();\r\n } catch (CassandraServerManagementException e) {\r\n handleException(\"Error occurred while retrieving node information list\", e);\r\n }\r\n\r\n if (ssMBean == null) {\r\n handleException(\"Storage Server MBean is null\");\r\n }\r\n\r\n Map<String, String> tokenToEndpoint = ssMBean.getTokenToEndpointMap();\r\n List<String> sortedTokens = new ArrayList<String>(tokenToEndpoint.keySet());\r\n Collections.sort(sortedTokens);\r\n\r\n /* Calculate per-token ownership of the ring */\r\n Map<InetAddress, Float> ownerships = ssMBean.getOwnership();\r\n\r\n List<NodeInformation> nodeInfoList = new ArrayList<NodeInformation>();\r\n for (String token : sortedTokens) {\r\n String primaryEndpoint = tokenToEndpoint.get(token);\r\n String status = ssMBean.getLiveNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_UP\r\n : ssMBean.getUnreachableNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_DOWN\r\n : CassandraManagementConstants.NodeStatuses.NODE_STATUS_UNKNOWN;\r\n\r\n String state = ssMBean.getJoiningNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_JOINING\r\n : ssMBean.getLeavingNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_LEAVING\r\n : CassandraManagementConstants.NodeStatuses.NODE_STATUS_NORMAL;\r\n\r\n Map<String, String> loadMap = ssMBean.getLoadMap();\r\n String load = loadMap.containsKey(primaryEndpoint)\r\n ? loadMap.get(primaryEndpoint)\r\n : CassandraManagementConstants.NodeStatuses.NODE_STATUS_UNKNOWN;\r\n\r\n Float ownership = ownerships.get(token);\r\n String owns = \"N/A\";\r\n if(ownership!=null){\r\n owns = new DecimalFormat(\"##0.00%\").format(ownership);\r\n }\r\n NodeInformation nodeInfo = new NodeInformation();\r\n nodeInfo.setAddress(primaryEndpoint);\r\n nodeInfo.setState(state);\r\n nodeInfo.setStatus(status);\r\n nodeInfo.setOwn(owns);\r\n nodeInfo.setLoad(load);\r\n nodeInfo.setToken(token);\r\n nodeInfoList.add(nodeInfo);\r\n }\r\n return nodeInfoList.toArray(new NodeInformation[nodeInfoList.size()]);\r\n }",
"public String replicationState() {\n return this.replicationState;\n }",
"@Override\n public boolean getCurrentNodeStatus(InetAddress ia) {\n if (ia.isAnyLocalAddress()) {\n return true;\n }\n // Check if given address is in cluster\n for (Client c : instance.getClientService().getConnectedClients()) {\n if (c.getSocketAddress().getAddress().equals(ia)) {\n return true;\n }\n }\n // reject all other addresses\n return false;\n }",
"int numNodes() {\n\t\treturn num_nodes;\n\t}",
"private int numNodes()\r\n\t{\r\n\t return nodeMap.size();\r\n\t}",
"public int lockedNodeCount() {\n\treturn lockedNodes;\n }",
"@Override\n\tpublic Collection<TaskStatus> getTaskStatus(){\n \tcheckInitialized();\n \t\n \t@SuppressWarnings(\"unchecked\")\n\t\tCollection<Collection<TaskStatus>> statusTree=Collections.EMPTY_LIST;\n \tfinal MultiTask<Collection<TaskStatus>> mtask;\n \ttry {\n\t\t\t mtask = breeder.executeCallable(new GetTaskStatus(this));\n\t\t\t statusTree = mtask.get();\n \t} catch (ExecutionException ex){\n \t\tlog.fatal(\"Could not get status of tasks for job \"+this.getId(), ex);\n \t} catch(InterruptedException ex) {\n \t\tlog.fatal(\"Could not get status of tasks for job \"+this.getId(), ex);\n \t}\n\t\t\t\n\t\t// Flatten into single collection\n\t\tList<TaskStatus> result = new ArrayList<TaskStatus>((int)(statusTree.size()*this.getThreadCount()));\n\t\tfor(Collection<TaskStatus> statusForNode: statusTree) {\n\t\t\tresult.addAll(statusForNode);\n\t\t}\n\t\t\n\t\treturn result;\n \n\t}",
"int getNodeCount() {\n\t\treturn m_list_nodes.size();\n\t}",
"int getNodesCount();",
"int getNodesCount();",
"public java.util.List<java.lang.Integer>\n getStatusList() {\n return status_;\n }",
"public static int getNumberOfNodes() {\n return(numberOfNodes);\n\t }",
"@java.lang.Override\n public int getNodesCount() {\n return nodes_.size();\n }",
"java.util.List<entities.Torrent.NodeId>\n getNodesList();",
"private NodeRestartRequest() {\n\t\t}",
"List<CommunicationLink> getAllNodes()\n {\n return new ArrayList<>(allNodes.values());\n }",
"public ODocument clusterStatus() {\n checkConnected();\n return remote.getClusterStatus(user, password);\n }",
"public StatusChecker(Node node){\n this.node=node;\n start();\n }",
"public Builder clearNodeStatusList() {\n if (nodeStatusListBuilder_ == null) {\n nodeStatusList_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n nodeStatusListBuilder_.clear();\n }\n return this;\n }",
"@java.lang.Override\n public java.util.List<entities.Torrent.NodeId> getNodesList() {\n return nodes_;\n }",
"public int getNumberOfNodesEvaluated();",
"java.util.List<java.lang.Integer> getStatusList();",
"private List<Node> getNodes() {\n List<Node> nodes = new ArrayList<Node>();\n NodeApi.GetConnectedNodesResult rawNodes =\n Wearable.NodeApi.getConnectedNodes(mGoogleApiClient).await();\n for (Node node : rawNodes.getNodes()) {\n nodes.add(node);\n }\n return nodes;\n }",
"public int numNodes() {\n\t\treturn numNodes;\n\t}",
"void updateRmiClientsCount() {\n int noOfClientsConnected = 0;\n\n String[] connectionIds = rmiConnector.getConnectionIds();\n\n if (connectionIds != null) {\n noOfClientsConnected = connectionIds.length;\n }\n\n logger.info(\"No. of RMI clients connected :: {}\", noOfClientsConnected);\n\n AdminDistributedSystemJmxImpl adminDSJmx = (AdminDistributedSystemJmxImpl) system;\n\n adminDSJmx.setRmiClientCountZero(noOfClientsConnected == 0);\n }",
"public int getReplicationDegree() {\n return replicationDegree;\n }",
"public int getReplicationDegree() {\n return replicationDegree;\n }",
"public List<NetworkNode> listNetworkNode();",
"private void updateGeoRepStatus(GlusterVolumeEntity volume, GlusterGeoRepSession session) {\n\n List<HashSet<GeoRepSessionStatus>> list = new ArrayList<>();\n // grouped node status\n int replicaCount = volume.getReplicaCount() == 0 ? 1 : volume.getReplicaCount();\n for (int i = 0; i < volume.getBricks().size(); i = i + replicaCount) {\n HashSet<GeoRepSessionStatus> subVolumeStatusSet = new HashSet<>();\n int j = 0;\n while (j < replicaCount) {\n Guid brickId = volume.getBricks().get(i + j).getId();\n subVolumeStatusSet.add(getStatusForBrickFromSession(session, brickId));\n j++;\n }\n list.add(subVolumeStatusSet);\n }\n\n session.setStatus(GeoRepSessionStatus.ACTIVE);\n // iterate through grouped status to set consolidated status\n for (HashSet<GeoRepSessionStatus> subVolumeStatusValues : list) {\n if (subVolumeStatusValues.contains(GeoRepSessionStatus.ACTIVE)) {\n // healthy\n continue;\n } else if (subVolumeStatusValues.contains(GeoRepSessionStatus.FAULTY)) {\n session.setStatus(GeoRepSessionStatus.FAULTY);\n // if any one of the sub-volume is faulty, the overall session status if faulty\n return;\n }\n // override status in case of these values\n if (ArrayUtils.contains(overridableStatuses, session.getStatus())) {\n if (subVolumeStatusValues.size() == 1) {\n session.setStatus((GeoRepSessionStatus) subVolumeStatusValues.toArray()[0]);\n } else {\n // if status values in sub-volume are not the same, what do we do?\n // this should not happen, so we'll log it for now\n log.info(\"Multiple status values found in volume '{}'\", session.getMasterVolumeName());\n }\n }\n }\n\n }",
"@SuppressWarnings(\"unused\")\n private ReplicationStatusResponse() {\n this(false);\n }",
"int getNrNodes() {\n\t\treturn adjList.size();\n\t}",
"public int getConnectionStatus()\r\n { return connectionStatus; }",
"int getNodeCount();",
"int getNodeCount();",
"public int getNodeCount() {\n return nodeCount;\n }",
"public int getNetworkNodesNumber() {\n\t\t\n\t\t//Return nodes size\n\t\treturn nodes.size();\n\t\t\n\t}",
"void nodeOnline();",
"public static String getClusterStatusNodePath() {\n return String.join(\"/\", \"\", ROOT_NODE, COMPUTE_NODE, STATUS_NODE);\n }",
"@Override\n protected int minimumNumberOfReplicas() {\n return 1;\n }",
"@Override\n public void statusUpdate(final String asgName, final ASGStatus newStatus, final boolean isReplication) {\n if (isReplication) {\n return;\n }\n for (final PeerEurekaNode node : peerEurekaNodes.getPeerEurekaNodes()) {\n replicateASGInfoToReplicaNodes(asgName, newStatus, node);\n\n }\n }",
"@PostMapping(\"/queryGroupStatus/list\")\n @PreAuthorize(ConstantProperties.HAS_ROLE_ADMIN)\n public BaseResponse getGroupStatusList(@Valid @RequestBody ReqGroupStatus reqGroupStatus) throws NodeMgrException {\n Instant startTime = Instant.now();\n BaseResponse baseResponse = new BaseResponse(ConstantCode.SUCCESS);\n log.info(\"start getGroupStatusMap startTime:{}\", startTime.toEpochMilli());\n List<String> nodeIdList = reqGroupStatus.getNodeIdList();\n List<RspGroupStatus> resList = groupService.listGroupStatus(nodeIdList,\n reqGroupStatus.getGroupIdList());\n baseResponse.setData(resList);\n log.info(\"end getGroupStatusMap useTime:{} result:{}\",\n Duration.between(startTime, Instant.now()).toMillis(),\n JsonTools.toJSONString(baseResponse));\n return baseResponse;\n }",
"public String getNumberOfNodesEvaluated(){return Integer.toString(NumberOfVisitedNodes);}",
"private void getNodesCount(HttpServletRequest request, HttpServletResponse response) throws IOException {\n int countNodes = SimApi.getNodesCount();\n response.getWriter().write(Integer.toString(countNodes));\n }",
"java.util.List<? extends io.netifi.proteus.admin.om.NodeOrBuilder> \n getNodesOrBuilderList();",
"@Test(timeout = 10000L)\n public void testNodesInformation() throws Exception {\n CommonDriverAdminTests.testNodesInformation(client, nbNodes);\n }",
"public int getNumNodes() {\n\t\treturn nodes.size();\n\t}",
"public abstract Collection<Node> getAllSuccessors();",
"@RequestLine(\"GET /status\")\n Status getNeustarNetworkStatus();",
"public void printStatus(){\n System.out.println(\"Nodes: \" + \n getVertexCount() + \" Edges: \" + \n getEdgeCount()); \n //and \" + getEdgeCount() + \" edges active.\");\n }",
"public int getStatusCount() {\n return status_.size();\n }",
"public List<Long> getSessionNodes() {\n List<Long> ret = new ArrayList<>();\n\n for (int i = 0; i < sessionsList.size(); i++) {\n ret.add(sessionsList.get(i).dhtNodes());\n }\n\n return ret;\n }",
"@Override\n public ClusterStatus getCurrentClusterStatus() {\n if (getMemberList().size() > 1) {\n return CLUSTER_FUNCTIONAL;\n }\n // when only one node is connected return degraded\n if (getMemberList().size() == 1) {\n return CLUSTER_DEGRADED;\n }\n // consider all other states as illegal\n return CLUSTER_ILLEGAL;\n }",
"private void refreshNodeList() {\n if (UnderNet.router.status.equals(InterfaceStatus.STARTED)) {\n //Using connected and cached nodes if the router has started.\n ArrayList<Node> nodesToList = UnderNet.router.getConnectedNodes();\n for (Node cachedNode :\n EntryNodeCache.cachedNodes) {\n boolean canAdd = true;\n for (Node connectedNode : UnderNet.router.getConnectedNodes()) {\n if (cachedNode.getAddress().equals(connectedNode.getAddress())) {\n canAdd = false;\n }\n }\n if (canAdd) {\n nodesToList.add(cachedNode);\n }\n }\n nodeList.setListData(nodesToList.toArray());\n } else {\n //Using cached nodes if the router isn't online.\n nodeList.setListData(EntryNodeCache.cachedNodes.toArray());\n }\n }",
"public int getNodeCount() {\n return node_.size();\n }",
"public Builder setNodeStatusList(\n int index, entities.Torrent.NodeReplicationStatus.Builder builderForValue) {\n if (nodeStatusListBuilder_ == null) {\n ensureNodeStatusListIsMutable();\n nodeStatusList_.set(index, builderForValue.build());\n onChanged();\n } else {\n nodeStatusListBuilder_.setMessage(index, builderForValue.build());\n }\n return this;\n }",
"List<StatusListener> mo9950b();",
"int getStatusCount();",
"public List<Output<TInt32>> nodeIdsList() {\n return nodeIdsList;\n }",
"@Override\r\n\tpublic int getNumberOfNodes() {\n\t\treturn 0;\r\n\t}",
"@Override\n public void onNewClusterState(ClusterState state) {\n transportService.sendRequest(\n clusterService.localNode(),\n transportReplicaAction,\n replicaRequest,\n new ActionListenerResponseHandler<>(onCompletionListener, ReplicaResponse::new)\n );\n }",
"public java.util.List<? extends entities.Torrent.NodeIdOrBuilder>\n getNodesOrBuilderList() {\n if (nodesBuilder_ != null) {\n return nodesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(nodes_);\n }\n }",
"public java.util.List<java.lang.Integer>\n getStatusList() {\n return java.util.Collections.unmodifiableList(status_);\n }",
"void refreshNodeHostCount(int nodeHostCount);",
"protected int numNodes() {\n\t\treturn nodes.size();\n\t}",
"public static void getStatus() {\n\t\ttry {\n\t\t\tint i = 1;\n\t\t\tList<Object[]>serverDetails = ServerStatus.getServerDetails();\n\t\t\tfor (Object[] servers:serverDetails){\n\t\t\t\tServerStatus.verifyServerStatus(i,(String)servers[0], (String)servers[1], (String)servers[2]);\n\t\t\t\ti++;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tcatch (Exception ex){\n\t\t\tex.printStackTrace();\n\t\t}\n\t}",
"public Vector<Node> getNodes(){\n\t\treturn this.listOfNodes;\n\t}"
] |
[
"0.7677481",
"0.7332279",
"0.7275059",
"0.71873355",
"0.71560276",
"0.7116769",
"0.7109518",
"0.70585376",
"0.7024147",
"0.6879867",
"0.6876868",
"0.67323005",
"0.6665114",
"0.6640871",
"0.6559848",
"0.6556308",
"0.6390153",
"0.63229275",
"0.63024855",
"0.6215867",
"0.6154482",
"0.6059501",
"0.6021897",
"0.596904",
"0.5747415",
"0.5746043",
"0.572507",
"0.57199895",
"0.57014227",
"0.55606055",
"0.55531794",
"0.5541874",
"0.5535034",
"0.5529633",
"0.5514081",
"0.5508731",
"0.5476352",
"0.54575264",
"0.54510856",
"0.54392225",
"0.5431914",
"0.54128003",
"0.5403353",
"0.5403353",
"0.5391939",
"0.53903574",
"0.5383281",
"0.5371443",
"0.53700656",
"0.536878",
"0.53676504",
"0.535534",
"0.5338024",
"0.5328059",
"0.5311786",
"0.5306224",
"0.53053415",
"0.52958065",
"0.52942604",
"0.5293356",
"0.5293356",
"0.52853906",
"0.5275481",
"0.5274735",
"0.5272081",
"0.52704126",
"0.5269814",
"0.5269814",
"0.5261532",
"0.52604467",
"0.5249879",
"0.5249766",
"0.52476424",
"0.52447534",
"0.5238364",
"0.52316946",
"0.52309597",
"0.52308846",
"0.5225883",
"0.5223006",
"0.52158034",
"0.5215295",
"0.5214578",
"0.5205377",
"0.51992106",
"0.5189863",
"0.51856333",
"0.5185279",
"0.5179929",
"0.51792306",
"0.5179208",
"0.51784956",
"0.5153981",
"0.51533186",
"0.5152661",
"0.514974",
"0.51477605",
"0.51399446",
"0.5139098",
"0.51240915"
] |
0.6864218
|
11
|
Use ReplicateResponse.newBuilder() to construct.
|
private ReplicateResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"entities.Torrent.ReplicateResponseOrBuilder getReplicateResponseOrBuilder();",
"public Builder setReplicateResponse(entities.Torrent.ReplicateResponse value) {\n if (replicateResponseBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n replicateResponse_ = value;\n onChanged();\n } else {\n replicateResponseBuilder_.setMessage(value);\n }\n\n return this;\n }",
"public Builder mergeReplicateResponse(entities.Torrent.ReplicateResponse value) {\n if (replicateResponseBuilder_ == null) {\n if (replicateResponse_ != null) {\n replicateResponse_ =\n entities.Torrent.ReplicateResponse.newBuilder(replicateResponse_).mergeFrom(value).buildPartial();\n } else {\n replicateResponse_ = value;\n }\n onChanged();\n } else {\n replicateResponseBuilder_.mergeFrom(value);\n }\n\n return this;\n }",
"public entities.Torrent.ReplicateResponse.Builder getReplicateResponseBuilder() {\n\n onChanged();\n return getReplicateResponseFieldBuilder().getBuilder();\n }",
"public entities.Torrent.ReplicateResponseOrBuilder getReplicateResponseOrBuilder() {\n if (replicateResponseBuilder_ != null) {\n return replicateResponseBuilder_.getMessageOrBuilder();\n } else {\n return replicateResponse_ == null ?\n entities.Torrent.ReplicateResponse.getDefaultInstance() : replicateResponse_;\n }\n }",
"@java.lang.Override\n public entities.Torrent.ReplicateResponseOrBuilder getReplicateResponseOrBuilder() {\n return getReplicateResponse();\n }",
"entities.Torrent.ReplicateResponse getReplicateResponse();",
"public entities.Torrent.ReplicateResponse getReplicateResponse() {\n if (replicateResponseBuilder_ == null) {\n return replicateResponse_ == null ? entities.Torrent.ReplicateResponse.getDefaultInstance() : replicateResponse_;\n } else {\n return replicateResponseBuilder_.getMessage();\n }\n }",
"public Builder clearReplicateResponse() {\n if (replicateResponseBuilder_ == null) {\n replicateResponse_ = null;\n onChanged();\n } else {\n replicateResponse_ = null;\n replicateResponseBuilder_ = null;\n }\n\n return this;\n }",
"private ReplicateRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.ReplicateResponse, entities.Torrent.ReplicateResponse.Builder, entities.Torrent.ReplicateResponseOrBuilder>\n getReplicateResponseFieldBuilder() {\n if (replicateResponseBuilder_ == null) {\n replicateResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.ReplicateResponse, entities.Torrent.ReplicateResponse.Builder, entities.Torrent.ReplicateResponseOrBuilder>(\n getReplicateResponse(),\n getParentForChildren(),\n isClean());\n replicateResponse_ = null;\n }\n return replicateResponseBuilder_;\n }",
"@java.lang.Override\n public entities.Torrent.ReplicateResponse getReplicateResponse() {\n return replicateResponse_ == null ? entities.Torrent.ReplicateResponse.getDefaultInstance() : replicateResponse_;\n }",
"public Builder setReplicateResponse(\n entities.Torrent.ReplicateResponse.Builder builderForValue) {\n if (replicateResponseBuilder_ == null) {\n replicateResponse_ = builderForValue.build();\n onChanged();\n } else {\n replicateResponseBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }",
"public Builder setReplicateRequest(entities.Torrent.ReplicateRequest value) {\n if (replicateRequestBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n replicateRequest_ = value;\n onChanged();\n } else {\n replicateRequestBuilder_.setMessage(value);\n }\n\n return this;\n }",
"entities.Torrent.ReplicateRequestOrBuilder getReplicateRequestOrBuilder();",
"public Builder mergeReplicateRequest(entities.Torrent.ReplicateRequest value) {\n if (replicateRequestBuilder_ == null) {\n if (replicateRequest_ != null) {\n replicateRequest_ =\n entities.Torrent.ReplicateRequest.newBuilder(replicateRequest_).mergeFrom(value).buildPartial();\n } else {\n replicateRequest_ = value;\n }\n onChanged();\n } else {\n replicateRequestBuilder_.mergeFrom(value);\n }\n\n return this;\n }",
"@java.lang.Override\n public entities.Torrent.ReplicateRequestOrBuilder getReplicateRequestOrBuilder() {\n return getReplicateRequest();\n }",
"boolean hasReplicateResponse();",
"entities.Torrent.ReplicateRequest getReplicateRequest();",
"public entities.Torrent.ReplicateRequestOrBuilder getReplicateRequestOrBuilder() {\n if (replicateRequestBuilder_ != null) {\n return replicateRequestBuilder_.getMessageOrBuilder();\n } else {\n return replicateRequest_ == null ?\n entities.Torrent.ReplicateRequest.getDefaultInstance() : replicateRequest_;\n }\n }",
"public entities.Torrent.ReplicateRequest.Builder getReplicateRequestBuilder() {\n\n onChanged();\n return getReplicateRequestFieldBuilder().getBuilder();\n }",
"private Reply(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private MessagesResponse(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n }",
"public Builder clearReplicateRequest() {\n if (replicateRequestBuilder_ == null) {\n replicateRequest_ = null;\n onChanged();\n } else {\n replicateRequest_ = null;\n replicateRequestBuilder_ = null;\n }\n\n return this;\n }",
"public entities.Torrent.ReplicateRequest getReplicateRequest() {\n if (replicateRequestBuilder_ == null) {\n return replicateRequest_ == null ? entities.Torrent.ReplicateRequest.getDefaultInstance() : replicateRequest_;\n } else {\n return replicateRequestBuilder_.getMessage();\n }\n }",
"private CreateResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"Response createResponse();",
"private BaseResponse(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n }",
"public Builder setReplicateRequest(\n entities.Torrent.ReplicateRequest.Builder builderForValue) {\n if (replicateRequestBuilder_ == null) {\n replicateRequest_ = builderForValue.build();\n onChanged();\n } else {\n replicateRequestBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }",
"private MessageResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public boolean hasReplicateResponse() {\n return replicateResponseBuilder_ != null || replicateResponse_ != null;\n }",
"private Response(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private Response(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private Response(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private Response(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private Response(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private Response(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private Response(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public static OperationResponse builder() {\n\t\treturn new OperationResponse();\n\t}",
"private PrepareResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"@java.lang.Override\n public entities.Torrent.ReplicateRequest getReplicateRequest() {\n return replicateRequest_ == null ? entities.Torrent.ReplicateRequest.getDefaultInstance() : replicateRequest_;\n }",
"private TestResponse(com.google.protobuf.GeneratedMessageLite.Builder builder) {\n super(builder);\n\n }",
"private CreateProofResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.ReplicateRequest, entities.Torrent.ReplicateRequest.Builder, entities.Torrent.ReplicateRequestOrBuilder>\n getReplicateRequestFieldBuilder() {\n if (replicateRequestBuilder_ == null) {\n replicateRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.ReplicateRequest, entities.Torrent.ReplicateRequest.Builder, entities.Torrent.ReplicateRequestOrBuilder>(\n getReplicateRequest(),\n getParentForChildren(),\n isClean());\n replicateRequest_ = null;\n }\n return replicateRequestBuilder_;\n }",
"private PraiseResponse(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }",
"private FetchResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private ClientResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private AddPhotoResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private MatrixResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private HelloResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public Builder addResponse(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureResponseIsMutable();\n response_.add(value);\n onChanged();\n return this;\n }",
"private ServerResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n\t\t\tsuper(builder);\n\t\t}",
"@SuppressWarnings(\"JavaUtilDate\")\n public OAIPMHtype build() {\n response.setRequest(requestType);\n GregorianCalendar cal = new GregorianCalendar();\n cal.setGregorianChange(new Date());\n try {\n response.setResponseDate(DatatypeFactory.newInstance().newXMLGregorianCalendar(cal));\n } catch (DatatypeConfigurationException ex) {\n LOGGER.error(\"Failed to set response date to OAI-PMH response.\", ex);\n }\n\n if (!isError()) {\n switch (verb) {\n case IDENTIFY:\n response.setIdentify(identifyType);\n break;\n case LIST_METADATA_FORMATS:\n response.setListMetadataFormats(listMetadataFormatsType);\n break;\n case LIST_SETS:\n response.setListSets(listSetsType);\n break;\n case GET_RECORD:\n response.setGetRecord(getRecordType);\n break;\n case LIST_IDENTIFIERS:\n response.setListIdentifiers(listIdentifiers);\n break;\n case LIST_RECORDS:\n response.setListRecords(listRecordsType);\n break;\n }\n }\n\n return response;\n }",
"private BenchmarkResponse(com.google.protobuf.GeneratedMessage.Builder builder) {\n super(builder);\n }",
"private ResultSetResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private MsgInstantiateContractResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private AnswerResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public Object clone() {\n SIPMessage retval = null;\n try {\n retval = (SIPMessage) this.getClass().newInstance();\n } catch ( IllegalAccessException ex) {\n InternalErrorHandler.handleException(ex);\n } catch (InstantiationException ex) {\n InternalErrorHandler.handleException(ex);\n }\n ListIterator li = headers.listIterator();\n while(li.hasNext()) {\n SIPHeader sipHeader = (SIPHeader)((SIPHeader) li.next()).clone();\n retval.attachHeader(sipHeader);\n }\n if (retval instanceof SIPRequest) {\n SIPRequest thisRequest = (SIPRequest) this;\n RequestLine rl = (RequestLine)\n (thisRequest.getRequestLine()).clone();\n ((SIPRequest) retval).setRequestLine(rl);\n } else {\n SIPResponse thisResponse = (SIPResponse) this;\n StatusLine sl = (StatusLine)\n (thisResponse.getStatusLine()).clone();\n ((SIPResponse) retval).setStatusLine(sl);\n }\n \n if (this.getContent() != null) {\n try {\n\t\tObject newContent ;\n\t\tObject currentContent = this.getContent();\n\t\t// Check the type of the returned content.\n\t\tif (currentContent instanceof String ) {\n\t\t // If it is a string allocate a new string for the body\n\t\t newContent = new String\n\t\t\t\t(currentContent.toString());\n\t\t} else if ( currentContent instanceof byte[] ) {\n\t\t // If it is raw bytes allocate a new array of bytes\n\t\t // and copy over the content.\n\t\t int cl = ((byte[])currentContent).length;\n\t\t byte[] nc = new byte[cl];\n\t\t System.arraycopy((byte[])currentContent,0,nc,0,cl);\n\t\t newContent = nc;\n\t\t} else {\n\t\t // See if the object has a clone method that is public\n\t\t // If so invoke the clone method for the new content.\n\t\t Class cl = currentContent.getClass();\n\t\t try {\n\t\t Method meth = cl.getMethod(\"clone\",null);\n\t\t if (Modifier.isPublic(meth.getModifiers())) {\n\t\t\t newContent = meth.invoke(currentContent,null);\n\t\t } else {\n\t\t\t newContent = currentContent;\n\t\t }\n\t\t } catch (Exception ex) {\n\t\t\tnewContent = currentContent;\n\t\t }\n\t\t}\n retval.setContent\n (newContent,this.getContentTypeHeader());\n } catch (ParseException ex) { /** Ignore **/ }\n }\n \n return retval;\n }",
"private HeartBeatResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private HeartBeatResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public RawAggregateUniqueResponse() {\n }",
"private TurnReply(com.google.protobuf.GeneratedMessage.Builder builder) {\n super(builder);\n }",
"public Response createFrom (Map map)\n {\n Map tmp = new HashMap ();\n tmp.putAll (map);\n tmp = FactoryUtil.normalize (tmp);\n try\n {\n return generate (tmp);\n }\n catch (Exception e)\n {\n log.info (e);\n return new ErrorResponse (tmp);\n }\n }",
"com.ipay.api.grpc.ServiceGenericReply getReply();",
"@java.lang.Override\n public boolean hasReplicateResponse() {\n return replicateResponse_ != null;\n }",
"public Builder clearInitialResponse() { copyOnWrite();\n instance.clearInitialResponse();\n return this;\n }",
"private ChatResponse(Builder builder) {\n super(builder);\n }",
"private Response() {}",
"private Response() {}",
"public OrderResponseBuilder() {\r\n orderResponse = new OrderResponse();\r\n }",
"private LivestockResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public Response(Builder builder) {\n this.id = builder.id;\n this.comment = builder.comment;\n this.date = builder.date;\n this.ipaddress = builder.ipaddress;\n this.contentFilter = builder.contentFilter;\n this.voteDown = builder.voteDown;\n this.user = builder.user;\n this.voteUp = builder.voteUp;\n this.abuseReport = builder.abuseReport;\n }",
"private DeleteResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"@Override\n public MyResponse createFromParcel(Parcel source) {\n return new MyResponse(source);\n }",
"private SendResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"com.ipay.api.grpc.ServiceGenericReplyOrBuilder getReplyOrBuilder();",
"private CallResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public interface IRcvResponse extends IRcvMessage\n{\n /** @return the unique request identifier of the original sent request */\n UUID getOriginalRequestId();\n\n /**\n * Promote the response by cloning all internal fields into a new message, including the content\n *\n * Since the library will try to reuse internal buffers you have to promote the message if it's contents are going\n * to be accessed from a separate thread.\n *\n * @return the new created promoted message\n */\n @Override\n IRcvResponse promote();\n}",
"private UResponses(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"TypedResponse createTypedResponse();",
"private TestBeanResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private SyncResultsResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public abstract Response create(Request request, Response response);",
"@SuppressWarnings(\"unused\")\n private ReplicationStatusResponse() {\n this(false);\n }",
"private ChunkResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private ResponseRegister(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }",
"private GetPictureResponse(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }",
"private DGResponse(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }",
"public Builder addAllResponse(\n java.lang.Iterable<? extends com.google.protobuf.ByteString> values) {\n ensureResponseIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, response_);\n onChanged();\n return this;\n }",
"private NewsDupRes(com.google.protobuf.GeneratedMessageLite.Builder builder) {\n super(builder);\n\n }",
"public Builder setResponseBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n response_ = value;\n onChanged();\n return this;\n }",
"private LesenRPCResponse(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }",
"private CreateStatementResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public MetadataResponse() {\n }",
"private RegisterResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private CommitResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private IssueResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public KafkaResponseParam.Builder getResponseBuilder() {\n bitField0_ |= 0x00000100;\n onChanged();\n return getResponseFieldBuilder().getBuilder();\n }",
"public com.example.products.ResponseMessage.Builder getResponseBuilder() {\n \n onChanged();\n return getResponseFieldBuilder().getBuilder();\n }",
"private Response() {\n initFields();\n }"
] |
[
"0.7779084",
"0.7641202",
"0.737688",
"0.7288656",
"0.727317",
"0.722266",
"0.70339596",
"0.6999325",
"0.6961734",
"0.6707648",
"0.65119517",
"0.6497311",
"0.64326096",
"0.6239999",
"0.6188886",
"0.61464083",
"0.5879035",
"0.5867376",
"0.57305497",
"0.57291275",
"0.5691768",
"0.5646003",
"0.56313455",
"0.56252944",
"0.5608443",
"0.56052166",
"0.54839474",
"0.54699355",
"0.5459655",
"0.5447657",
"0.5443189",
"0.5441041",
"0.5441041",
"0.5441041",
"0.5441041",
"0.5441041",
"0.5441041",
"0.5441041",
"0.54363996",
"0.5395005",
"0.5378346",
"0.53668666",
"0.53490275",
"0.5336683",
"0.53290576",
"0.5317411",
"0.53009576",
"0.5284042",
"0.52812576",
"0.5259413",
"0.5243432",
"0.5241337",
"0.523932",
"0.5225038",
"0.52204055",
"0.5211159",
"0.51879144",
"0.51785445",
"0.5145351",
"0.5145351",
"0.5142392",
"0.51398593",
"0.51372653",
"0.51239693",
"0.51123524",
"0.5104106",
"0.5103334",
"0.5098987",
"0.5098987",
"0.50924486",
"0.5083328",
"0.50829864",
"0.5081812",
"0.50580525",
"0.5039223",
"0.5033828",
"0.5032347",
"0.50272346",
"0.50177646",
"0.5017527",
"0.50164515",
"0.5001275",
"0.4991188",
"0.4985129",
"0.4977977",
"0.496818",
"0.49595913",
"0.4958191",
"0.49471346",
"0.49448755",
"0.49429125",
"0.49374676",
"0.4935481",
"0.4932606",
"0.49323955",
"0.4930768",
"0.49210382",
"0.49171984",
"0.49034417",
"0.49030328"
] |
0.7934031
|
0
|
.Status status = 1;
|
@java.lang.Override public int getStatusValue() {
return status_;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setStatus(String status) { this.status = status; }",
"void setStatus(STATUS status);",
"public void setStatus(EnumVar status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\r\n\t this.status = status;\r\n\t }",
"public void setStatus(Integer status) {\r\n this.status = status;\r\n }",
"public void setStatus(Integer status) {\r\n this.status = status;\r\n }",
"void setStatus(int status);",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(int status){\r\n\t\tthis.status=status;\r\n\t}",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(int status);",
"public void setStatus(int status);",
"public void setStatus(Boolean s){ status = s;}",
"public void setStatus(int status) {\n STATUS = status;\n }",
"public void setStatus(Status newStatus){\n status = newStatus;\n }",
"public void setStatus(String stat)\n {\n status = stat;\n }",
"private void setStatus(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n status_ = value;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(long status) {\r\n this.status = status;\r\n }",
"public void setStatus(Integer status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(Integer status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(String status) {\r\n this.status = status;\r\n }",
"public void setStatus(java.lang.Object status) {\n this.status = status;\n }",
"public void setStatus(Status status)\n {\n this.status = status;\n }",
"public void setgetStatus()\r\n\t{\r\n\t\tthis.status = 'S';\r\n\t}",
"public void setStatus(Byte status) {\r\n\t\tthis.status = status;\r\n\t}",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"@Override\n\t\tpublic void setStatus(int status) {\n\t\t\t\n\t\t}",
"public void setStatus(StatusEnum status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(Byte status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(int status) {\n this.status = status;\n }",
"public void setStatus(int status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\r\n this.status = status;\r\n }",
"public void setStatus(String status) {\r\n this.status = status;\r\n }",
"public void setStatus(String status) {\r\n this.status = status;\r\n }",
"public void setStatus(Short status) {\n this.status = status;\n }",
"public void setStatus(STATUS status) {\n this.status = status;\n }",
"void setStatus(String status);",
"public void setStatus(Short status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(Short status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(int v) \n {\n \n if (this.status != v)\n {\n this.status = v;\n setModified(true);\n }\n \n \n }",
"public void setStatus( Short status ) {\n this.status = status;\n }",
"public void setStatus(String newStatus){\n\n //assigns the value of newStatus to the status field\n this.status = newStatus;\n }",
"public Status getStatus(){\n return status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\n this.status = status;\n }"
] |
[
"0.7656765",
"0.76468766",
"0.7565312",
"0.7561203",
"0.75449044",
"0.75449044",
"0.75349724",
"0.74959093",
"0.74959093",
"0.74959093",
"0.74959093",
"0.74959093",
"0.74959093",
"0.74959093",
"0.7482147",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.74783385",
"0.74783385",
"0.746719",
"0.74658287",
"0.746098",
"0.7456925",
"0.7452718",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435248",
"0.7432568",
"0.7432568",
"0.7425985",
"0.74143654",
"0.74118876",
"0.7398544",
"0.7398282",
"0.73973185",
"0.73973185",
"0.7396562",
"0.73950607",
"0.7392215",
"0.7392215",
"0.7382456",
"0.7382456",
"0.7378742",
"0.73726434",
"0.73726434",
"0.7368736",
"0.73626804",
"0.7351154",
"0.7345713",
"0.7345713",
"0.73451585",
"0.7332328",
"0.7329264",
"0.73258084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.728639",
"0.728639",
"0.728639"
] |
0.0
|
-1
|
.Status status = 1;
|
@java.lang.Override public entities.Torrent.Status getStatus() {
@SuppressWarnings("deprecation")
entities.Torrent.Status result = entities.Torrent.Status.valueOf(status_);
return result == null ? entities.Torrent.Status.UNRECOGNIZED : result;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setStatus(String status) { this.status = status; }",
"void setStatus(STATUS status);",
"public void setStatus(EnumVar status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\r\n\t this.status = status;\r\n\t }",
"public void setStatus(Integer status) {\r\n this.status = status;\r\n }",
"public void setStatus(Integer status) {\r\n this.status = status;\r\n }",
"void setStatus(int status);",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(int status){\r\n\t\tthis.status=status;\r\n\t}",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(int status);",
"public void setStatus(int status);",
"public void setStatus(Boolean s){ status = s;}",
"public void setStatus(int status) {\n STATUS = status;\n }",
"public void setStatus(Status newStatus){\n status = newStatus;\n }",
"public void setStatus(String stat)\n {\n status = stat;\n }",
"private void setStatus(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n status_ = value;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(long status) {\r\n this.status = status;\r\n }",
"public void setStatus(Integer status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(Integer status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(String status) {\r\n this.status = status;\r\n }",
"public void setStatus(java.lang.Object status) {\n this.status = status;\n }",
"public void setStatus(Status status)\n {\n this.status = status;\n }",
"public void setgetStatus()\r\n\t{\r\n\t\tthis.status = 'S';\r\n\t}",
"public void setStatus(Byte status) {\r\n\t\tthis.status = status;\r\n\t}",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"@Override\n\t\tpublic void setStatus(int status) {\n\t\t\t\n\t\t}",
"public void setStatus(StatusEnum status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(Byte status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(int status) {\n this.status = status;\n }",
"public void setStatus(int status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\r\n this.status = status;\r\n }",
"public void setStatus(String status) {\r\n this.status = status;\r\n }",
"public void setStatus(String status) {\r\n this.status = status;\r\n }",
"public void setStatus(Short status) {\n this.status = status;\n }",
"public void setStatus(STATUS status) {\n this.status = status;\n }",
"void setStatus(String status);",
"public void setStatus(Short status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(Short status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(int v) \n {\n \n if (this.status != v)\n {\n this.status = v;\n setModified(true);\n }\n \n \n }",
"public void setStatus( Short status ) {\n this.status = status;\n }",
"public void setStatus(String newStatus){\n\n //assigns the value of newStatus to the status field\n this.status = newStatus;\n }",
"public Status getStatus(){\n return status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\n this.status = status;\n }"
] |
[
"0.7656765",
"0.76468766",
"0.7565312",
"0.7561203",
"0.75449044",
"0.75449044",
"0.75349724",
"0.74959093",
"0.74959093",
"0.74959093",
"0.74959093",
"0.74959093",
"0.74959093",
"0.74959093",
"0.7482147",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.74783385",
"0.74783385",
"0.746719",
"0.74658287",
"0.746098",
"0.7456925",
"0.7452718",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435248",
"0.7432568",
"0.7432568",
"0.7425985",
"0.74143654",
"0.74118876",
"0.7398544",
"0.7398282",
"0.73973185",
"0.73973185",
"0.7396562",
"0.73950607",
"0.7392215",
"0.7392215",
"0.7382456",
"0.7382456",
"0.7378742",
"0.73726434",
"0.73726434",
"0.7368736",
"0.73626804",
"0.7351154",
"0.7345713",
"0.7345713",
"0.73451585",
"0.7332328",
"0.7329264",
"0.73258084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.728639",
"0.728639",
"0.728639"
] |
0.0
|
-1
|
string errorMessage = 2;
|
@java.lang.Override
public java.lang.String getErrorMessage() {
java.lang.Object ref = errorMessage_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
errorMessage_ = s;
return s;
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"String errorMessage();",
"private void error(String string) {\n\t\r\n}",
"String getErrorMessage();",
"String getErrorMessage();",
"String getError(int i) {\n if (i >= 0 & i < msgs.length)\n return msgs[i];\n else\n return \"Invalid Error Code\";\n }",
"java.lang.String getError();",
"java.lang.String getError();",
"java.lang.String getError();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"void showErrorMsg(String string);",
"String getGetErrorMessage();",
"java.lang.String getErr();",
"public String getErrorString()\r\n\t{\r\n\t\t\r\n\t\treturn ERROR_STRING;\r\n\t}",
"public void error(String string) {\n\t\t\n\t}",
"String getInvalidMessage();",
"private static String getMessage(int code) {\n switch (code) {\n case ME_DIV_BY_ZERO:\n return \"Attempt to divide by zero.\";\n case ME_ASSIGNLITERAL:\n return \"Attempt to assign to a literal.\";\n case ME_NONVARASSIGN:\n return \"Attempt to assign to a non-variable.\";\n default:\n return \"Unknown error.\";\n }\n }",
"String getErrorsString();",
"public String error();",
"public String getError() {\n\treturn mistake;\n }",
"private String getErrorString() {\n\t\treturn \"GUID:ERROR:\" + mErrors[0][0]\n\t\t + \":\" + mErrors[1][0]\n\t\t + \":\" + mErrors[2][0]\n\t\t + \":\" + mErrors[3][0];\n\t}",
"public String getErrorMessage() \r\n\t{\r\n\t\t\r\n\t\treturn errorMessage;\r\n\t\t\r\n\t}",
"public java.lang.String getErrorMessage(){\n return localErrorMessage;\n }",
"java.lang.String getErrmsg();",
"public String getErrorString()\n\t{\n\t\treturn errorString;\n\t}",
"public static String getLastErrorMessage()\r\n\t{\n\t\treturn lastAlert;\r\n\t}",
"String getMessage();",
"String getMessage();",
"String getMessage();",
"private int getErrorId(final String message) {\n\t\tif (isLowerCase(message)) {\n\t\t\treturn ERROR_LOWER_CASE;\n\t\t} else if (isUnunsedMacro(message)) {\n\t\t\treturn ERROR_UNUSED_MACRO;\n\t\t} else if (isUnunsedVariable(message)) {\n\t\t\treturn ERROR_UNUSED_VARIABLE;\n\t\t} else if (isEndLineSpace(message) || isNoSpace(message)) {\n\t\t\treturn ERROR_NO_SPACE;\n\t\t} else if (isOneSpace(message)) {\n\t\t\treturn ERROR_ONE_SPACE;\n\t\t} else {\n\t\t\treturn ERROR_INVALID;\n\t\t}\n\t}",
"public String getErrorString(String message) {\n \t\treturn getString(new StringBuffer(\"error.\").append(message).toString());\n \t}",
"String getErrorMessage(E input);",
"public String errorMessage()\n {\n return new String(errorMessageAsBytes());\n }",
"String Message ();",
"public String errorMessage() {\n return errorMessage;\n }",
"void SemErr(String str);",
"public String getErrorMessage()\n {\n return errorMessage;\n }",
"ErrorCodes(int code){\n this.code = code;\n //this.message = message;\n }",
"int getErrorCode();",
"public String getErrorCode();",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n errorMessage_ = s;\n }\n return s;\n }\n }",
"void showError(@StringRes int errorMessage);",
"void showError(String errorMessage);",
"private static int getErrorLine(String errmsg){\n\t\treturn Integer.parseInt(errmsg.substring(0,errmsg.indexOf(\":\")).substring(errmsg.substring(0,errmsg.indexOf(\":\")).lastIndexOf(\" \")+1));\n\t}",
"public String errorMessage()\n {\n return edma_errorMsg;\n }",
"public String getErrorMessage() {\r\n return this.errorMessage;\r\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public String errorMessage() {\n return this.errorMessage;\n }",
"public String getErrorMessage() {\n\t\treturn errorMessage;\n\t}",
"public int getError() {\n return error;\n }",
"public String getErrorMessage() {\n return this.errorMessage;\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"void setErrorMessage(String errorMessage);",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"static int errorMsg(int eCode)\n {\n if (eCode == 0) return 0;\n String message = \"\";\n switch (eCode){\n case 1: message = \"Division by zero\"; break;\n case 2: message = \"Non-matching parenthesis in function\"; break;\n case 3: message = \"Must enclose negative exponents in parentheses\"; break;\n case 4: message = \"Incorrect Operator Syntax\"; break;\n case 5: message = \"Rightfunctions must use parenthesis. (example: ABS(-2);\"; break;\n case 6: message = \"Unrecognized token in function srtring.\"; break;\n case 8: message = \"Can not raise negative number to a fractional power.\"; break;\n case 10:message = \"Input a real number with no operators\"; break;\n }\n JOptionPane.showMessageDialog(null, message, \"Error \"+eCode, JOptionPane.ERROR_MESSAGE);\n return 0;\n }",
"public String getError() {\n return errMsg;\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n }\n }",
"public String getMsgError() {\r\n\t\treturn msgError;\r\n\t}",
"public String getErrorMessage() {\n return errorMessage;\n }",
"public String getErrorMessage() {\n return errorMessage;\n }",
"public String getErrorMessage() {\n return errorMessage;\n }",
"String getFailureMessage();",
"public int error() {\n return this.error;\n }",
"public String getParseErrorMessage();",
"public String getErrorMessage() {\n return ERROR_MESSAGE;\n }",
"public String getError() {\r\n if (scriptError == null) return \"\";\r\n return scriptError;\r\n }",
"private String getGUIErrorMsg(long errorcode) {\n\t\tif (errorcode == 0) {\n\t\t\treturn \"This popup shouldn't have launched!\";\n\t\t} else if (errorcode == 9) {\n\t\t\treturn \"Latitude input format incorrect!\\nValid Latitude values are -90 to 90 with negative values being south Latitude.\";\n\t\t} else if (errorcode == 10) {\n\t\t\treturn \"Longitude input format incorrect!\\nValid Longitude values are -180 to 180 with negative values being west latitude.\";\n\t\t} else if (errorcode == 11) {\n\t\t\treturn \"Date input format incorrect!\\nValid dates go <year>-<month>-<day>\\nValid month values are 1- 12 and valid day values are 1 - 31.\";\n\t\t} else if (errorcode == 12) {\n\t\t\treturn \"Time input format incorrect!\\nValid times go <hour>-<minute>-<second>\\nValid hour values are 0 - 23 and valid minute and second values are 0 - 59\";\n\t\t} else if (errorcode == 1) {\n\t\t\treturn \"Invalid latitude!\\nValid Latitude values are -90 to 90 with negative values being south Latitude.\";\n\t\t} else if (errorcode == 2) {\n\t\t\treturn \"Invalid Longitude!\\nValid Longitude values are -180 to 180 with negative values being west latitude.\";\n\t\t} else if (errorcode == 3) {\n\t\t\treturn \"Invalid Year!\\nValid year values are \" + Integer.MIN_VALUE + \" - \" + Integer.MAX_VALUE + \".\";\n\t\t} else if (errorcode == 4) {\n\t\t\treturn \"Invalid Month!\\nValid month values are 1 - 12\";\n\t\t} else if (errorcode == 5) {\n\t\t\treturn \"Invalid Day!\\nValid day values are 1 - 31\";\n\t\t} else if (errorcode == 6) {\n\t\t\treturn \"Invalid Hour!\\nValid hour values are 0 - 23\";\n\t\t} else if (errorcode == 7) {\n\t\t\treturn \"Invalid Minute!\\nValid minute values are 0 - 59\";\n\t\t} else if (errorcode == 8) {\n\t\t\treturn \"Invalid Second!\\nValid second values are 0 - 59\";\n\t\t} \n\t\treturn \"Undefined Error Message!\";\n\t}",
"public void setErrorMsg(String text) {\n this.errorMsg = text;\n }",
"public int getErrorNo() {\n return this.errorNo;\n }",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();"
] |
[
"0.7234827",
"0.68487597",
"0.68242407",
"0.68242407",
"0.66320926",
"0.6613902",
"0.6613902",
"0.6613902",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.6587221",
"0.6458624",
"0.642881",
"0.6387629",
"0.6339448",
"0.63337046",
"0.6318866",
"0.6310054",
"0.6266495",
"0.6207546",
"0.6169787",
"0.6162002",
"0.61556125",
"0.61209476",
"0.6114965",
"0.61042917",
"0.60988075",
"0.60988075",
"0.60988075",
"0.60916275",
"0.60737956",
"0.6044167",
"0.60035205",
"0.59917176",
"0.59845275",
"0.59643966",
"0.5963419",
"0.59538627",
"0.5917793",
"0.58881736",
"0.58858836",
"0.5880861",
"0.58786815",
"0.5865479",
"0.5863698",
"0.5842632",
"0.583974",
"0.583974",
"0.583974",
"0.583974",
"0.583974",
"0.583974",
"0.583974",
"0.58391654",
"0.58391654",
"0.58391654",
"0.5837601",
"0.5828023",
"0.58268774",
"0.58249444",
"0.5820853",
"0.5818837",
"0.5808825",
"0.5808012",
"0.5803665",
"0.57976645",
"0.5796016",
"0.57934284",
"0.57934284",
"0.57934284",
"0.5786855",
"0.57868457",
"0.5785435",
"0.578205",
"0.576942",
"0.57514906",
"0.57502955",
"0.5743453",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053"
] |
0.0
|
-1
|
string errorMessage = 2;
|
@java.lang.Override
public com.google.protobuf.ByteString
getErrorMessageBytes() {
java.lang.Object ref = errorMessage_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
errorMessage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"String errorMessage();",
"private void error(String string) {\n\t\r\n}",
"String getErrorMessage();",
"String getErrorMessage();",
"String getError(int i) {\n if (i >= 0 & i < msgs.length)\n return msgs[i];\n else\n return \"Invalid Error Code\";\n }",
"java.lang.String getError();",
"java.lang.String getError();",
"java.lang.String getError();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"void showErrorMsg(String string);",
"String getGetErrorMessage();",
"java.lang.String getErr();",
"public String getErrorString()\r\n\t{\r\n\t\t\r\n\t\treturn ERROR_STRING;\r\n\t}",
"public void error(String string) {\n\t\t\n\t}",
"String getInvalidMessage();",
"private static String getMessage(int code) {\n switch (code) {\n case ME_DIV_BY_ZERO:\n return \"Attempt to divide by zero.\";\n case ME_ASSIGNLITERAL:\n return \"Attempt to assign to a literal.\";\n case ME_NONVARASSIGN:\n return \"Attempt to assign to a non-variable.\";\n default:\n return \"Unknown error.\";\n }\n }",
"String getErrorsString();",
"public String error();",
"public String getError() {\n\treturn mistake;\n }",
"private String getErrorString() {\n\t\treturn \"GUID:ERROR:\" + mErrors[0][0]\n\t\t + \":\" + mErrors[1][0]\n\t\t + \":\" + mErrors[2][0]\n\t\t + \":\" + mErrors[3][0];\n\t}",
"public String getErrorMessage() \r\n\t{\r\n\t\t\r\n\t\treturn errorMessage;\r\n\t\t\r\n\t}",
"public java.lang.String getErrorMessage(){\n return localErrorMessage;\n }",
"java.lang.String getErrmsg();",
"public String getErrorString()\n\t{\n\t\treturn errorString;\n\t}",
"public static String getLastErrorMessage()\r\n\t{\n\t\treturn lastAlert;\r\n\t}",
"String getMessage();",
"String getMessage();",
"String getMessage();",
"private int getErrorId(final String message) {\n\t\tif (isLowerCase(message)) {\n\t\t\treturn ERROR_LOWER_CASE;\n\t\t} else if (isUnunsedMacro(message)) {\n\t\t\treturn ERROR_UNUSED_MACRO;\n\t\t} else if (isUnunsedVariable(message)) {\n\t\t\treturn ERROR_UNUSED_VARIABLE;\n\t\t} else if (isEndLineSpace(message) || isNoSpace(message)) {\n\t\t\treturn ERROR_NO_SPACE;\n\t\t} else if (isOneSpace(message)) {\n\t\t\treturn ERROR_ONE_SPACE;\n\t\t} else {\n\t\t\treturn ERROR_INVALID;\n\t\t}\n\t}",
"public String getErrorString(String message) {\n \t\treturn getString(new StringBuffer(\"error.\").append(message).toString());\n \t}",
"String getErrorMessage(E input);",
"public String errorMessage()\n {\n return new String(errorMessageAsBytes());\n }",
"String Message ();",
"public String errorMessage() {\n return errorMessage;\n }",
"void SemErr(String str);",
"public String getErrorMessage()\n {\n return errorMessage;\n }",
"ErrorCodes(int code){\n this.code = code;\n //this.message = message;\n }",
"int getErrorCode();",
"public String getErrorCode();",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n errorMessage_ = s;\n }\n return s;\n }\n }",
"void showError(@StringRes int errorMessage);",
"void showError(String errorMessage);",
"private static int getErrorLine(String errmsg){\n\t\treturn Integer.parseInt(errmsg.substring(0,errmsg.indexOf(\":\")).substring(errmsg.substring(0,errmsg.indexOf(\":\")).lastIndexOf(\" \")+1));\n\t}",
"public String errorMessage()\n {\n return edma_errorMsg;\n }",
"public String getErrorMessage() {\r\n return this.errorMessage;\r\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public String errorMessage() {\n return this.errorMessage;\n }",
"public String getErrorMessage() {\n\t\treturn errorMessage;\n\t}",
"public int getError() {\n return error;\n }",
"public String getErrorMessage() {\n return this.errorMessage;\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"void setErrorMessage(String errorMessage);",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"static int errorMsg(int eCode)\n {\n if (eCode == 0) return 0;\n String message = \"\";\n switch (eCode){\n case 1: message = \"Division by zero\"; break;\n case 2: message = \"Non-matching parenthesis in function\"; break;\n case 3: message = \"Must enclose negative exponents in parentheses\"; break;\n case 4: message = \"Incorrect Operator Syntax\"; break;\n case 5: message = \"Rightfunctions must use parenthesis. (example: ABS(-2);\"; break;\n case 6: message = \"Unrecognized token in function srtring.\"; break;\n case 8: message = \"Can not raise negative number to a fractional power.\"; break;\n case 10:message = \"Input a real number with no operators\"; break;\n }\n JOptionPane.showMessageDialog(null, message, \"Error \"+eCode, JOptionPane.ERROR_MESSAGE);\n return 0;\n }",
"public String getError() {\n return errMsg;\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n }\n }",
"public String getMsgError() {\r\n\t\treturn msgError;\r\n\t}",
"public String getErrorMessage() {\n return errorMessage;\n }",
"public String getErrorMessage() {\n return errorMessage;\n }",
"public String getErrorMessage() {\n return errorMessage;\n }",
"String getFailureMessage();",
"public int error() {\n return this.error;\n }",
"public String getParseErrorMessage();",
"public String getErrorMessage() {\n return ERROR_MESSAGE;\n }",
"public String getError() {\r\n if (scriptError == null) return \"\";\r\n return scriptError;\r\n }",
"private String getGUIErrorMsg(long errorcode) {\n\t\tif (errorcode == 0) {\n\t\t\treturn \"This popup shouldn't have launched!\";\n\t\t} else if (errorcode == 9) {\n\t\t\treturn \"Latitude input format incorrect!\\nValid Latitude values are -90 to 90 with negative values being south Latitude.\";\n\t\t} else if (errorcode == 10) {\n\t\t\treturn \"Longitude input format incorrect!\\nValid Longitude values are -180 to 180 with negative values being west latitude.\";\n\t\t} else if (errorcode == 11) {\n\t\t\treturn \"Date input format incorrect!\\nValid dates go <year>-<month>-<day>\\nValid month values are 1- 12 and valid day values are 1 - 31.\";\n\t\t} else if (errorcode == 12) {\n\t\t\treturn \"Time input format incorrect!\\nValid times go <hour>-<minute>-<second>\\nValid hour values are 0 - 23 and valid minute and second values are 0 - 59\";\n\t\t} else if (errorcode == 1) {\n\t\t\treturn \"Invalid latitude!\\nValid Latitude values are -90 to 90 with negative values being south Latitude.\";\n\t\t} else if (errorcode == 2) {\n\t\t\treturn \"Invalid Longitude!\\nValid Longitude values are -180 to 180 with negative values being west latitude.\";\n\t\t} else if (errorcode == 3) {\n\t\t\treturn \"Invalid Year!\\nValid year values are \" + Integer.MIN_VALUE + \" - \" + Integer.MAX_VALUE + \".\";\n\t\t} else if (errorcode == 4) {\n\t\t\treturn \"Invalid Month!\\nValid month values are 1 - 12\";\n\t\t} else if (errorcode == 5) {\n\t\t\treturn \"Invalid Day!\\nValid day values are 1 - 31\";\n\t\t} else if (errorcode == 6) {\n\t\t\treturn \"Invalid Hour!\\nValid hour values are 0 - 23\";\n\t\t} else if (errorcode == 7) {\n\t\t\treturn \"Invalid Minute!\\nValid minute values are 0 - 59\";\n\t\t} else if (errorcode == 8) {\n\t\t\treturn \"Invalid Second!\\nValid second values are 0 - 59\";\n\t\t} \n\t\treturn \"Undefined Error Message!\";\n\t}",
"public void setErrorMsg(String text) {\n this.errorMsg = text;\n }",
"public int getErrorNo() {\n return this.errorNo;\n }",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();"
] |
[
"0.7234827",
"0.68487597",
"0.68242407",
"0.68242407",
"0.66320926",
"0.6613902",
"0.6613902",
"0.6613902",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.6587221",
"0.6458624",
"0.642881",
"0.6387629",
"0.6339448",
"0.63337046",
"0.6318866",
"0.6310054",
"0.6266495",
"0.6207546",
"0.6169787",
"0.6162002",
"0.61556125",
"0.61209476",
"0.6114965",
"0.61042917",
"0.60988075",
"0.60988075",
"0.60988075",
"0.60916275",
"0.60737956",
"0.6044167",
"0.60035205",
"0.59917176",
"0.59845275",
"0.59643966",
"0.5963419",
"0.59538627",
"0.5917793",
"0.58881736",
"0.58858836",
"0.5880861",
"0.58786815",
"0.5865479",
"0.5863698",
"0.5842632",
"0.583974",
"0.583974",
"0.583974",
"0.583974",
"0.583974",
"0.583974",
"0.583974",
"0.58391654",
"0.58391654",
"0.58391654",
"0.5837601",
"0.5828023",
"0.58268774",
"0.58249444",
"0.5820853",
"0.5818837",
"0.5808825",
"0.5808012",
"0.5803665",
"0.57976645",
"0.5796016",
"0.57934284",
"0.57934284",
"0.57934284",
"0.5786855",
"0.57868457",
"0.5785435",
"0.578205",
"0.576942",
"0.57514906",
"0.57502955",
"0.5743453",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053"
] |
0.0
|
-1
|
The status of all the requests to other nodes repeated .NodeReplicationStatus nodeStatusList = 3;
|
@java.lang.Override
public java.util.List<entities.Torrent.NodeReplicationStatus> getNodeStatusListList() {
return nodeStatusList_;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"entities.Torrent.NodeReplicationStatus getNodeStatusList(int index);",
"java.util.List<entities.Torrent.NodeReplicationStatus>\n getNodeStatusListList();",
"public java.util.List<entities.Torrent.NodeReplicationStatus> getNodeStatusListList() {\n if (nodeStatusListBuilder_ == null) {\n return java.util.Collections.unmodifiableList(nodeStatusList_);\n } else {\n return nodeStatusListBuilder_.getMessageList();\n }\n }",
"@java.lang.Override\n public java.util.List<? extends entities.Torrent.NodeReplicationStatusOrBuilder>\n getNodeStatusListOrBuilderList() {\n return nodeStatusList_;\n }",
"public java.util.List<? extends entities.Torrent.NodeReplicationStatusOrBuilder>\n getNodeStatusListOrBuilderList() {\n if (nodeStatusListBuilder_ != null) {\n return nodeStatusListBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(nodeStatusList_);\n }\n }",
"@java.lang.Override\n public int getNodeStatusListCount() {\n return nodeStatusList_.size();\n }",
"java.util.List<? extends entities.Torrent.NodeReplicationStatusOrBuilder>\n getNodeStatusListOrBuilderList();",
"public entities.Torrent.NodeReplicationStatus.Builder addNodeStatusListBuilder() {\n return getNodeStatusListFieldBuilder().addBuilder(\n entities.Torrent.NodeReplicationStatus.getDefaultInstance());\n }",
"int getNodeStatusListCount();",
"@java.lang.Override\n public entities.Torrent.NodeReplicationStatus getNodeStatusList(int index) {\n return nodeStatusList_.get(index);\n }",
"entities.Torrent.NodeReplicationStatusOrBuilder getNodeStatusListOrBuilder(\n int index);",
"@java.lang.Override\n public entities.Torrent.NodeReplicationStatusOrBuilder getNodeStatusListOrBuilder(\n int index) {\n return nodeStatusList_.get(index);\n }",
"public entities.Torrent.NodeReplicationStatus getNodeStatusList(int index) {\n if (nodeStatusListBuilder_ == null) {\n return nodeStatusList_.get(index);\n } else {\n return nodeStatusListBuilder_.getMessage(index);\n }\n }",
"public Builder addNodeStatusList(entities.Torrent.NodeReplicationStatus value) {\n if (nodeStatusListBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureNodeStatusListIsMutable();\n nodeStatusList_.add(value);\n onChanged();\n } else {\n nodeStatusListBuilder_.addMessage(value);\n }\n return this;\n }",
"public Builder addAllNodeStatusList(\n java.lang.Iterable<? extends entities.Torrent.NodeReplicationStatus> values) {\n if (nodeStatusListBuilder_ == null) {\n ensureNodeStatusListIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, nodeStatusList_);\n onChanged();\n } else {\n nodeStatusListBuilder_.addAllMessages(values);\n }\n return this;\n }",
"public entities.Torrent.NodeReplicationStatusOrBuilder getNodeStatusListOrBuilder(\n int index) {\n if (nodeStatusListBuilder_ == null) {\n return nodeStatusList_.get(index); } else {\n return nodeStatusListBuilder_.getMessageOrBuilder(index);\n }\n }",
"public int getNodeStatusListCount() {\n if (nodeStatusListBuilder_ == null) {\n return nodeStatusList_.size();\n } else {\n return nodeStatusListBuilder_.getCount();\n }\n }",
"public final int[] cacheNodeStatus() {\n return new int[]{0,0,0,0,0,0,0,0,0,0};\r\n }",
"public java.util.List<entities.Torrent.NodeReplicationStatus.Builder>\n getNodeStatusListBuilderList() {\n return getNodeStatusListFieldBuilder().getBuilderList();\n }",
"public Builder setNodeStatusList(\n int index, entities.Torrent.NodeReplicationStatus value) {\n if (nodeStatusListBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureNodeStatusListIsMutable();\n nodeStatusList_.set(index, value);\n onChanged();\n } else {\n nodeStatusListBuilder_.setMessage(index, value);\n }\n return this;\n }",
"private NodeReplicationStatus(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"int getReplicationCount();",
"public Builder addNodeStatusList(\n int index, entities.Torrent.NodeReplicationStatus value) {\n if (nodeStatusListBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureNodeStatusListIsMutable();\n nodeStatusList_.add(index, value);\n onChanged();\n } else {\n nodeStatusListBuilder_.addMessage(index, value);\n }\n return this;\n }",
"public entities.Torrent.NodeReplicationStatus.Builder addNodeStatusListBuilder(\n int index) {\n return getNodeStatusListFieldBuilder().addBuilder(\n index, entities.Torrent.NodeReplicationStatus.getDefaultInstance());\n }",
"public int getNumNodesSeenByMessage() {\r\n return numNodesSeenByMessage;\r\n }",
"public abstract String getNodeStatusVariableName();",
"public Builder addNodeStatusList(\n entities.Torrent.NodeReplicationStatus.Builder builderForValue) {\n if (nodeStatusListBuilder_ == null) {\n ensureNodeStatusListIsMutable();\n nodeStatusList_.add(builderForValue.build());\n onChanged();\n } else {\n nodeStatusListBuilder_.addMessage(builderForValue.build());\n }\n return this;\n }",
"public entities.Torrent.NodeReplicationStatus.Builder getNodeStatusListBuilder(\n int index) {\n return getNodeStatusListFieldBuilder().getBuilder(index);\n }",
"java.util.List<io.netifi.proteus.admin.om.Node> \n getNodesList();",
"public void list() {\r\n\t\tfor (String key : nodeMap.keySet()) {\r\n\t\t\tNodeRef node = nodeMap.get(key);\r\n\t\t\tSystem.out.println(node.getIp() + \" : \" + node.getPort());\r\n\t\t}\t\t\r\n\t}",
"public static int countNodes() {\n\t\treturn count_nodes;\n\t}",
"default Promise<List<String>> findAllNodesWithStatus(HealthStatus queryStatus) {\n final Promise<List<String>> promise = Promises.promise();\n promise.resolve(Collections.emptyList());\n return promise;\n\n }",
"@Override\n\tpublic long numNodes() {\n\t\treturn numNodes;\n\t}",
"public java.util.List<entities.Torrent.NodeId> getNodesList() {\n if (nodesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(nodes_);\n } else {\n return nodesBuilder_.getMessageList();\n }\n }",
"public NodeInformation[] getNodes() throws CassandraServerManagementException {\r\n StorageServiceMBean ssMBean = null;\r\n try {\r\n ssMBean = CassandraAdminDataHolder\r\n .getInstance().getCassandraMBeanLocator().locateStorageServiceMBean();\r\n } catch (CassandraServerManagementException e) {\r\n handleException(\"Error occurred while retrieving node information list\", e);\r\n }\r\n\r\n if (ssMBean == null) {\r\n handleException(\"Storage Server MBean is null\");\r\n }\r\n\r\n Map<String, String> tokenToEndpoint = ssMBean.getTokenToEndpointMap();\r\n List<String> sortedTokens = new ArrayList<String>(tokenToEndpoint.keySet());\r\n Collections.sort(sortedTokens);\r\n\r\n /* Calculate per-token ownership of the ring */\r\n Map<InetAddress, Float> ownerships = ssMBean.getOwnership();\r\n\r\n List<NodeInformation> nodeInfoList = new ArrayList<NodeInformation>();\r\n for (String token : sortedTokens) {\r\n String primaryEndpoint = tokenToEndpoint.get(token);\r\n String status = ssMBean.getLiveNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_UP\r\n : ssMBean.getUnreachableNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_DOWN\r\n : CassandraManagementConstants.NodeStatuses.NODE_STATUS_UNKNOWN;\r\n\r\n String state = ssMBean.getJoiningNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_JOINING\r\n : ssMBean.getLeavingNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_LEAVING\r\n : CassandraManagementConstants.NodeStatuses.NODE_STATUS_NORMAL;\r\n\r\n Map<String, String> loadMap = ssMBean.getLoadMap();\r\n String load = loadMap.containsKey(primaryEndpoint)\r\n ? loadMap.get(primaryEndpoint)\r\n : CassandraManagementConstants.NodeStatuses.NODE_STATUS_UNKNOWN;\r\n\r\n Float ownership = ownerships.get(token);\r\n String owns = \"N/A\";\r\n if(ownership!=null){\r\n owns = new DecimalFormat(\"##0.00%\").format(ownership);\r\n }\r\n NodeInformation nodeInfo = new NodeInformation();\r\n nodeInfo.setAddress(primaryEndpoint);\r\n nodeInfo.setState(state);\r\n nodeInfo.setStatus(status);\r\n nodeInfo.setOwn(owns);\r\n nodeInfo.setLoad(load);\r\n nodeInfo.setToken(token);\r\n nodeInfoList.add(nodeInfo);\r\n }\r\n return nodeInfoList.toArray(new NodeInformation[nodeInfoList.size()]);\r\n }",
"public String replicationState() {\n return this.replicationState;\n }",
"@Override\n public boolean getCurrentNodeStatus(InetAddress ia) {\n if (ia.isAnyLocalAddress()) {\n return true;\n }\n // Check if given address is in cluster\n for (Client c : instance.getClientService().getConnectedClients()) {\n if (c.getSocketAddress().getAddress().equals(ia)) {\n return true;\n }\n }\n // reject all other addresses\n return false;\n }",
"int numNodes() {\n\t\treturn num_nodes;\n\t}",
"private int numNodes()\r\n\t{\r\n\t return nodeMap.size();\r\n\t}",
"public int lockedNodeCount() {\n\treturn lockedNodes;\n }",
"@Override\n\tpublic Collection<TaskStatus> getTaskStatus(){\n \tcheckInitialized();\n \t\n \t@SuppressWarnings(\"unchecked\")\n\t\tCollection<Collection<TaskStatus>> statusTree=Collections.EMPTY_LIST;\n \tfinal MultiTask<Collection<TaskStatus>> mtask;\n \ttry {\n\t\t\t mtask = breeder.executeCallable(new GetTaskStatus(this));\n\t\t\t statusTree = mtask.get();\n \t} catch (ExecutionException ex){\n \t\tlog.fatal(\"Could not get status of tasks for job \"+this.getId(), ex);\n \t} catch(InterruptedException ex) {\n \t\tlog.fatal(\"Could not get status of tasks for job \"+this.getId(), ex);\n \t}\n\t\t\t\n\t\t// Flatten into single collection\n\t\tList<TaskStatus> result = new ArrayList<TaskStatus>((int)(statusTree.size()*this.getThreadCount()));\n\t\tfor(Collection<TaskStatus> statusForNode: statusTree) {\n\t\t\tresult.addAll(statusForNode);\n\t\t}\n\t\t\n\t\treturn result;\n \n\t}",
"int getNodeCount() {\n\t\treturn m_list_nodes.size();\n\t}",
"int getNodesCount();",
"int getNodesCount();",
"public java.util.List<java.lang.Integer>\n getStatusList() {\n return status_;\n }",
"public static int getNumberOfNodes() {\n return(numberOfNodes);\n\t }",
"@java.lang.Override\n public int getNodesCount() {\n return nodes_.size();\n }",
"java.util.List<entities.Torrent.NodeId>\n getNodesList();",
"List<CommunicationLink> getAllNodes()\n {\n return new ArrayList<>(allNodes.values());\n }",
"private NodeRestartRequest() {\n\t\t}",
"public ODocument clusterStatus() {\n checkConnected();\n return remote.getClusterStatus(user, password);\n }",
"public StatusChecker(Node node){\n this.node=node;\n start();\n }",
"public Builder clearNodeStatusList() {\n if (nodeStatusListBuilder_ == null) {\n nodeStatusList_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n nodeStatusListBuilder_.clear();\n }\n return this;\n }",
"@java.lang.Override\n public java.util.List<entities.Torrent.NodeId> getNodesList() {\n return nodes_;\n }",
"public int getNumberOfNodesEvaluated();",
"private List<Node> getNodes() {\n List<Node> nodes = new ArrayList<Node>();\n NodeApi.GetConnectedNodesResult rawNodes =\n Wearable.NodeApi.getConnectedNodes(mGoogleApiClient).await();\n for (Node node : rawNodes.getNodes()) {\n nodes.add(node);\n }\n return nodes;\n }",
"java.util.List<java.lang.Integer> getStatusList();",
"public int numNodes() {\n\t\treturn numNodes;\n\t}",
"void updateRmiClientsCount() {\n int noOfClientsConnected = 0;\n\n String[] connectionIds = rmiConnector.getConnectionIds();\n\n if (connectionIds != null) {\n noOfClientsConnected = connectionIds.length;\n }\n\n logger.info(\"No. of RMI clients connected :: {}\", noOfClientsConnected);\n\n AdminDistributedSystemJmxImpl adminDSJmx = (AdminDistributedSystemJmxImpl) system;\n\n adminDSJmx.setRmiClientCountZero(noOfClientsConnected == 0);\n }",
"public int getReplicationDegree() {\n return replicationDegree;\n }",
"public int getReplicationDegree() {\n return replicationDegree;\n }",
"public List<NetworkNode> listNetworkNode();",
"private void updateGeoRepStatus(GlusterVolumeEntity volume, GlusterGeoRepSession session) {\n\n List<HashSet<GeoRepSessionStatus>> list = new ArrayList<>();\n // grouped node status\n int replicaCount = volume.getReplicaCount() == 0 ? 1 : volume.getReplicaCount();\n for (int i = 0; i < volume.getBricks().size(); i = i + replicaCount) {\n HashSet<GeoRepSessionStatus> subVolumeStatusSet = new HashSet<>();\n int j = 0;\n while (j < replicaCount) {\n Guid brickId = volume.getBricks().get(i + j).getId();\n subVolumeStatusSet.add(getStatusForBrickFromSession(session, brickId));\n j++;\n }\n list.add(subVolumeStatusSet);\n }\n\n session.setStatus(GeoRepSessionStatus.ACTIVE);\n // iterate through grouped status to set consolidated status\n for (HashSet<GeoRepSessionStatus> subVolumeStatusValues : list) {\n if (subVolumeStatusValues.contains(GeoRepSessionStatus.ACTIVE)) {\n // healthy\n continue;\n } else if (subVolumeStatusValues.contains(GeoRepSessionStatus.FAULTY)) {\n session.setStatus(GeoRepSessionStatus.FAULTY);\n // if any one of the sub-volume is faulty, the overall session status if faulty\n return;\n }\n // override status in case of these values\n if (ArrayUtils.contains(overridableStatuses, session.getStatus())) {\n if (subVolumeStatusValues.size() == 1) {\n session.setStatus((GeoRepSessionStatus) subVolumeStatusValues.toArray()[0]);\n } else {\n // if status values in sub-volume are not the same, what do we do?\n // this should not happen, so we'll log it for now\n log.info(\"Multiple status values found in volume '{}'\", session.getMasterVolumeName());\n }\n }\n }\n\n }",
"@SuppressWarnings(\"unused\")\n private ReplicationStatusResponse() {\n this(false);\n }",
"int getNrNodes() {\n\t\treturn adjList.size();\n\t}",
"public int getConnectionStatus()\r\n { return connectionStatus; }",
"int getNodeCount();",
"int getNodeCount();",
"public int getNodeCount() {\n return nodeCount;\n }",
"public int getNetworkNodesNumber() {\n\t\t\n\t\t//Return nodes size\n\t\treturn nodes.size();\n\t\t\n\t}",
"void nodeOnline();",
"public static String getClusterStatusNodePath() {\n return String.join(\"/\", \"\", ROOT_NODE, COMPUTE_NODE, STATUS_NODE);\n }",
"@Override\n protected int minimumNumberOfReplicas() {\n return 1;\n }",
"@Override\n public void statusUpdate(final String asgName, final ASGStatus newStatus, final boolean isReplication) {\n if (isReplication) {\n return;\n }\n for (final PeerEurekaNode node : peerEurekaNodes.getPeerEurekaNodes()) {\n replicateASGInfoToReplicaNodes(asgName, newStatus, node);\n\n }\n }",
"@PostMapping(\"/queryGroupStatus/list\")\n @PreAuthorize(ConstantProperties.HAS_ROLE_ADMIN)\n public BaseResponse getGroupStatusList(@Valid @RequestBody ReqGroupStatus reqGroupStatus) throws NodeMgrException {\n Instant startTime = Instant.now();\n BaseResponse baseResponse = new BaseResponse(ConstantCode.SUCCESS);\n log.info(\"start getGroupStatusMap startTime:{}\", startTime.toEpochMilli());\n List<String> nodeIdList = reqGroupStatus.getNodeIdList();\n List<RspGroupStatus> resList = groupService.listGroupStatus(nodeIdList,\n reqGroupStatus.getGroupIdList());\n baseResponse.setData(resList);\n log.info(\"end getGroupStatusMap useTime:{} result:{}\",\n Duration.between(startTime, Instant.now()).toMillis(),\n JsonTools.toJSONString(baseResponse));\n return baseResponse;\n }",
"java.util.List<? extends io.netifi.proteus.admin.om.NodeOrBuilder> \n getNodesOrBuilderList();",
"public String getNumberOfNodesEvaluated(){return Integer.toString(NumberOfVisitedNodes);}",
"private void getNodesCount(HttpServletRequest request, HttpServletResponse response) throws IOException {\n int countNodes = SimApi.getNodesCount();\n response.getWriter().write(Integer.toString(countNodes));\n }",
"@Test(timeout = 10000L)\n public void testNodesInformation() throws Exception {\n CommonDriverAdminTests.testNodesInformation(client, nbNodes);\n }",
"public int getNumNodes() {\n\t\treturn nodes.size();\n\t}",
"public abstract Collection<Node> getAllSuccessors();",
"@RequestLine(\"GET /status\")\n Status getNeustarNetworkStatus();",
"public void printStatus(){\n System.out.println(\"Nodes: \" + \n getVertexCount() + \" Edges: \" + \n getEdgeCount()); \n //and \" + getEdgeCount() + \" edges active.\");\n }",
"public int getStatusCount() {\n return status_.size();\n }",
"public List<Long> getSessionNodes() {\n List<Long> ret = new ArrayList<>();\n\n for (int i = 0; i < sessionsList.size(); i++) {\n ret.add(sessionsList.get(i).dhtNodes());\n }\n\n return ret;\n }",
"@Override\n public ClusterStatus getCurrentClusterStatus() {\n if (getMemberList().size() > 1) {\n return CLUSTER_FUNCTIONAL;\n }\n // when only one node is connected return degraded\n if (getMemberList().size() == 1) {\n return CLUSTER_DEGRADED;\n }\n // consider all other states as illegal\n return CLUSTER_ILLEGAL;\n }",
"private void refreshNodeList() {\n if (UnderNet.router.status.equals(InterfaceStatus.STARTED)) {\n //Using connected and cached nodes if the router has started.\n ArrayList<Node> nodesToList = UnderNet.router.getConnectedNodes();\n for (Node cachedNode :\n EntryNodeCache.cachedNodes) {\n boolean canAdd = true;\n for (Node connectedNode : UnderNet.router.getConnectedNodes()) {\n if (cachedNode.getAddress().equals(connectedNode.getAddress())) {\n canAdd = false;\n }\n }\n if (canAdd) {\n nodesToList.add(cachedNode);\n }\n }\n nodeList.setListData(nodesToList.toArray());\n } else {\n //Using cached nodes if the router isn't online.\n nodeList.setListData(EntryNodeCache.cachedNodes.toArray());\n }\n }",
"public int getNodeCount() {\n return node_.size();\n }",
"public Builder setNodeStatusList(\n int index, entities.Torrent.NodeReplicationStatus.Builder builderForValue) {\n if (nodeStatusListBuilder_ == null) {\n ensureNodeStatusListIsMutable();\n nodeStatusList_.set(index, builderForValue.build());\n onChanged();\n } else {\n nodeStatusListBuilder_.setMessage(index, builderForValue.build());\n }\n return this;\n }",
"public List<Output<TInt32>> nodeIdsList() {\n return nodeIdsList;\n }",
"List<StatusListener> mo9950b();",
"int getStatusCount();",
"@Override\n public void onNewClusterState(ClusterState state) {\n transportService.sendRequest(\n clusterService.localNode(),\n transportReplicaAction,\n replicaRequest,\n new ActionListenerResponseHandler<>(onCompletionListener, ReplicaResponse::new)\n );\n }",
"public java.util.List<? extends entities.Torrent.NodeIdOrBuilder>\n getNodesOrBuilderList() {\n if (nodesBuilder_ != null) {\n return nodesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(nodes_);\n }\n }",
"@Override\r\n\tpublic int getNumberOfNodes() {\n\t\treturn 0;\r\n\t}",
"public java.util.List<java.lang.Integer>\n getStatusList() {\n return java.util.Collections.unmodifiableList(status_);\n }",
"void refreshNodeHostCount(int nodeHostCount);",
"protected int numNodes() {\n\t\treturn nodes.size();\n\t}",
"public static void getStatus() {\n\t\ttry {\n\t\t\tint i = 1;\n\t\t\tList<Object[]>serverDetails = ServerStatus.getServerDetails();\n\t\t\tfor (Object[] servers:serverDetails){\n\t\t\t\tServerStatus.verifyServerStatus(i,(String)servers[0], (String)servers[1], (String)servers[2]);\n\t\t\t\ti++;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tcatch (Exception ex){\n\t\t\tex.printStackTrace();\n\t\t}\n\t}",
"public Vector<Node> getNodes(){\n\t\treturn this.listOfNodes;\n\t}"
] |
[
"0.7677447",
"0.72751945",
"0.7187517",
"0.7156577",
"0.71170497",
"0.71088874",
"0.70586026",
"0.70244354",
"0.68789655",
"0.68768275",
"0.6863607",
"0.6732412",
"0.6665126",
"0.6640762",
"0.65603524",
"0.6556245",
"0.63892424",
"0.63225454",
"0.6302617",
"0.62158686",
"0.6154571",
"0.6059235",
"0.6021623",
"0.5969211",
"0.5746757",
"0.5746533",
"0.5725065",
"0.5719905",
"0.5702983",
"0.5561155",
"0.55533105",
"0.5541831",
"0.5535313",
"0.55308056",
"0.55150694",
"0.5509859",
"0.54764414",
"0.54578775",
"0.5451353",
"0.5438688",
"0.54318774",
"0.54126287",
"0.54034257",
"0.54034257",
"0.5391672",
"0.5390411",
"0.53832936",
"0.53727967",
"0.5370394",
"0.53702694",
"0.53679216",
"0.5354863",
"0.5338436",
"0.53293514",
"0.53118134",
"0.530631",
"0.5305603",
"0.5295997",
"0.5294718",
"0.5293353",
"0.5293353",
"0.5286944",
"0.5276236",
"0.5274766",
"0.5272741",
"0.52713966",
"0.52693284",
"0.52693284",
"0.5261072",
"0.526089",
"0.5252027",
"0.52506906",
"0.52486336",
"0.5245913",
"0.5236892",
"0.5232337",
"0.5231927",
"0.5229986",
"0.5226807",
"0.52229863",
"0.5216052",
"0.5215427",
"0.5215198",
"0.5204292",
"0.5199826",
"0.519047",
"0.51865757",
"0.51846725",
"0.5180031",
"0.5179613",
"0.5179007",
"0.51780134",
"0.515467",
"0.51541543",
"0.5154118",
"0.5149366",
"0.514844",
"0.51400506",
"0.51396614",
"0.512528"
] |
0.73326534
|
1
|
The status of all the requests to other nodes repeated .NodeReplicationStatus nodeStatusList = 3;
|
@java.lang.Override
public java.util.List<? extends entities.Torrent.NodeReplicationStatusOrBuilder>
getNodeStatusListOrBuilderList() {
return nodeStatusList_;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"entities.Torrent.NodeReplicationStatus getNodeStatusList(int index);",
"@java.lang.Override\n public java.util.List<entities.Torrent.NodeReplicationStatus> getNodeStatusListList() {\n return nodeStatusList_;\n }",
"java.util.List<entities.Torrent.NodeReplicationStatus>\n getNodeStatusListList();",
"public java.util.List<entities.Torrent.NodeReplicationStatus> getNodeStatusListList() {\n if (nodeStatusListBuilder_ == null) {\n return java.util.Collections.unmodifiableList(nodeStatusList_);\n } else {\n return nodeStatusListBuilder_.getMessageList();\n }\n }",
"public java.util.List<? extends entities.Torrent.NodeReplicationStatusOrBuilder>\n getNodeStatusListOrBuilderList() {\n if (nodeStatusListBuilder_ != null) {\n return nodeStatusListBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(nodeStatusList_);\n }\n }",
"@java.lang.Override\n public int getNodeStatusListCount() {\n return nodeStatusList_.size();\n }",
"java.util.List<? extends entities.Torrent.NodeReplicationStatusOrBuilder>\n getNodeStatusListOrBuilderList();",
"public entities.Torrent.NodeReplicationStatus.Builder addNodeStatusListBuilder() {\n return getNodeStatusListFieldBuilder().addBuilder(\n entities.Torrent.NodeReplicationStatus.getDefaultInstance());\n }",
"int getNodeStatusListCount();",
"@java.lang.Override\n public entities.Torrent.NodeReplicationStatus getNodeStatusList(int index) {\n return nodeStatusList_.get(index);\n }",
"entities.Torrent.NodeReplicationStatusOrBuilder getNodeStatusListOrBuilder(\n int index);",
"@java.lang.Override\n public entities.Torrent.NodeReplicationStatusOrBuilder getNodeStatusListOrBuilder(\n int index) {\n return nodeStatusList_.get(index);\n }",
"public entities.Torrent.NodeReplicationStatus getNodeStatusList(int index) {\n if (nodeStatusListBuilder_ == null) {\n return nodeStatusList_.get(index);\n } else {\n return nodeStatusListBuilder_.getMessage(index);\n }\n }",
"public Builder addNodeStatusList(entities.Torrent.NodeReplicationStatus value) {\n if (nodeStatusListBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureNodeStatusListIsMutable();\n nodeStatusList_.add(value);\n onChanged();\n } else {\n nodeStatusListBuilder_.addMessage(value);\n }\n return this;\n }",
"public Builder addAllNodeStatusList(\n java.lang.Iterable<? extends entities.Torrent.NodeReplicationStatus> values) {\n if (nodeStatusListBuilder_ == null) {\n ensureNodeStatusListIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, nodeStatusList_);\n onChanged();\n } else {\n nodeStatusListBuilder_.addAllMessages(values);\n }\n return this;\n }",
"public entities.Torrent.NodeReplicationStatusOrBuilder getNodeStatusListOrBuilder(\n int index) {\n if (nodeStatusListBuilder_ == null) {\n return nodeStatusList_.get(index); } else {\n return nodeStatusListBuilder_.getMessageOrBuilder(index);\n }\n }",
"public int getNodeStatusListCount() {\n if (nodeStatusListBuilder_ == null) {\n return nodeStatusList_.size();\n } else {\n return nodeStatusListBuilder_.getCount();\n }\n }",
"public final int[] cacheNodeStatus() {\n return new int[]{0,0,0,0,0,0,0,0,0,0};\r\n }",
"public java.util.List<entities.Torrent.NodeReplicationStatus.Builder>\n getNodeStatusListBuilderList() {\n return getNodeStatusListFieldBuilder().getBuilderList();\n }",
"public Builder setNodeStatusList(\n int index, entities.Torrent.NodeReplicationStatus value) {\n if (nodeStatusListBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureNodeStatusListIsMutable();\n nodeStatusList_.set(index, value);\n onChanged();\n } else {\n nodeStatusListBuilder_.setMessage(index, value);\n }\n return this;\n }",
"private NodeReplicationStatus(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"int getReplicationCount();",
"public Builder addNodeStatusList(\n int index, entities.Torrent.NodeReplicationStatus value) {\n if (nodeStatusListBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureNodeStatusListIsMutable();\n nodeStatusList_.add(index, value);\n onChanged();\n } else {\n nodeStatusListBuilder_.addMessage(index, value);\n }\n return this;\n }",
"public entities.Torrent.NodeReplicationStatus.Builder addNodeStatusListBuilder(\n int index) {\n return getNodeStatusListFieldBuilder().addBuilder(\n index, entities.Torrent.NodeReplicationStatus.getDefaultInstance());\n }",
"public int getNumNodesSeenByMessage() {\r\n return numNodesSeenByMessage;\r\n }",
"public abstract String getNodeStatusVariableName();",
"public Builder addNodeStatusList(\n entities.Torrent.NodeReplicationStatus.Builder builderForValue) {\n if (nodeStatusListBuilder_ == null) {\n ensureNodeStatusListIsMutable();\n nodeStatusList_.add(builderForValue.build());\n onChanged();\n } else {\n nodeStatusListBuilder_.addMessage(builderForValue.build());\n }\n return this;\n }",
"public entities.Torrent.NodeReplicationStatus.Builder getNodeStatusListBuilder(\n int index) {\n return getNodeStatusListFieldBuilder().getBuilder(index);\n }",
"java.util.List<io.netifi.proteus.admin.om.Node> \n getNodesList();",
"public void list() {\r\n\t\tfor (String key : nodeMap.keySet()) {\r\n\t\t\tNodeRef node = nodeMap.get(key);\r\n\t\t\tSystem.out.println(node.getIp() + \" : \" + node.getPort());\r\n\t\t}\t\t\r\n\t}",
"public static int countNodes() {\n\t\treturn count_nodes;\n\t}",
"default Promise<List<String>> findAllNodesWithStatus(HealthStatus queryStatus) {\n final Promise<List<String>> promise = Promises.promise();\n promise.resolve(Collections.emptyList());\n return promise;\n\n }",
"@Override\n\tpublic long numNodes() {\n\t\treturn numNodes;\n\t}",
"public java.util.List<entities.Torrent.NodeId> getNodesList() {\n if (nodesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(nodes_);\n } else {\n return nodesBuilder_.getMessageList();\n }\n }",
"public NodeInformation[] getNodes() throws CassandraServerManagementException {\r\n StorageServiceMBean ssMBean = null;\r\n try {\r\n ssMBean = CassandraAdminDataHolder\r\n .getInstance().getCassandraMBeanLocator().locateStorageServiceMBean();\r\n } catch (CassandraServerManagementException e) {\r\n handleException(\"Error occurred while retrieving node information list\", e);\r\n }\r\n\r\n if (ssMBean == null) {\r\n handleException(\"Storage Server MBean is null\");\r\n }\r\n\r\n Map<String, String> tokenToEndpoint = ssMBean.getTokenToEndpointMap();\r\n List<String> sortedTokens = new ArrayList<String>(tokenToEndpoint.keySet());\r\n Collections.sort(sortedTokens);\r\n\r\n /* Calculate per-token ownership of the ring */\r\n Map<InetAddress, Float> ownerships = ssMBean.getOwnership();\r\n\r\n List<NodeInformation> nodeInfoList = new ArrayList<NodeInformation>();\r\n for (String token : sortedTokens) {\r\n String primaryEndpoint = tokenToEndpoint.get(token);\r\n String status = ssMBean.getLiveNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_UP\r\n : ssMBean.getUnreachableNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_DOWN\r\n : CassandraManagementConstants.NodeStatuses.NODE_STATUS_UNKNOWN;\r\n\r\n String state = ssMBean.getJoiningNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_JOINING\r\n : ssMBean.getLeavingNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_LEAVING\r\n : CassandraManagementConstants.NodeStatuses.NODE_STATUS_NORMAL;\r\n\r\n Map<String, String> loadMap = ssMBean.getLoadMap();\r\n String load = loadMap.containsKey(primaryEndpoint)\r\n ? loadMap.get(primaryEndpoint)\r\n : CassandraManagementConstants.NodeStatuses.NODE_STATUS_UNKNOWN;\r\n\r\n Float ownership = ownerships.get(token);\r\n String owns = \"N/A\";\r\n if(ownership!=null){\r\n owns = new DecimalFormat(\"##0.00%\").format(ownership);\r\n }\r\n NodeInformation nodeInfo = new NodeInformation();\r\n nodeInfo.setAddress(primaryEndpoint);\r\n nodeInfo.setState(state);\r\n nodeInfo.setStatus(status);\r\n nodeInfo.setOwn(owns);\r\n nodeInfo.setLoad(load);\r\n nodeInfo.setToken(token);\r\n nodeInfoList.add(nodeInfo);\r\n }\r\n return nodeInfoList.toArray(new NodeInformation[nodeInfoList.size()]);\r\n }",
"public String replicationState() {\n return this.replicationState;\n }",
"@Override\n public boolean getCurrentNodeStatus(InetAddress ia) {\n if (ia.isAnyLocalAddress()) {\n return true;\n }\n // Check if given address is in cluster\n for (Client c : instance.getClientService().getConnectedClients()) {\n if (c.getSocketAddress().getAddress().equals(ia)) {\n return true;\n }\n }\n // reject all other addresses\n return false;\n }",
"int numNodes() {\n\t\treturn num_nodes;\n\t}",
"private int numNodes()\r\n\t{\r\n\t return nodeMap.size();\r\n\t}",
"public int lockedNodeCount() {\n\treturn lockedNodes;\n }",
"@Override\n\tpublic Collection<TaskStatus> getTaskStatus(){\n \tcheckInitialized();\n \t\n \t@SuppressWarnings(\"unchecked\")\n\t\tCollection<Collection<TaskStatus>> statusTree=Collections.EMPTY_LIST;\n \tfinal MultiTask<Collection<TaskStatus>> mtask;\n \ttry {\n\t\t\t mtask = breeder.executeCallable(new GetTaskStatus(this));\n\t\t\t statusTree = mtask.get();\n \t} catch (ExecutionException ex){\n \t\tlog.fatal(\"Could not get status of tasks for job \"+this.getId(), ex);\n \t} catch(InterruptedException ex) {\n \t\tlog.fatal(\"Could not get status of tasks for job \"+this.getId(), ex);\n \t}\n\t\t\t\n\t\t// Flatten into single collection\n\t\tList<TaskStatus> result = new ArrayList<TaskStatus>((int)(statusTree.size()*this.getThreadCount()));\n\t\tfor(Collection<TaskStatus> statusForNode: statusTree) {\n\t\t\tresult.addAll(statusForNode);\n\t\t}\n\t\t\n\t\treturn result;\n \n\t}",
"int getNodeCount() {\n\t\treturn m_list_nodes.size();\n\t}",
"int getNodesCount();",
"int getNodesCount();",
"public java.util.List<java.lang.Integer>\n getStatusList() {\n return status_;\n }",
"public static int getNumberOfNodes() {\n return(numberOfNodes);\n\t }",
"@java.lang.Override\n public int getNodesCount() {\n return nodes_.size();\n }",
"private NodeRestartRequest() {\n\t\t}",
"java.util.List<entities.Torrent.NodeId>\n getNodesList();",
"List<CommunicationLink> getAllNodes()\n {\n return new ArrayList<>(allNodes.values());\n }",
"public ODocument clusterStatus() {\n checkConnected();\n return remote.getClusterStatus(user, password);\n }",
"public StatusChecker(Node node){\n this.node=node;\n start();\n }",
"public Builder clearNodeStatusList() {\n if (nodeStatusListBuilder_ == null) {\n nodeStatusList_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n nodeStatusListBuilder_.clear();\n }\n return this;\n }",
"@java.lang.Override\n public java.util.List<entities.Torrent.NodeId> getNodesList() {\n return nodes_;\n }",
"public int getNumberOfNodesEvaluated();",
"java.util.List<java.lang.Integer> getStatusList();",
"private List<Node> getNodes() {\n List<Node> nodes = new ArrayList<Node>();\n NodeApi.GetConnectedNodesResult rawNodes =\n Wearable.NodeApi.getConnectedNodes(mGoogleApiClient).await();\n for (Node node : rawNodes.getNodes()) {\n nodes.add(node);\n }\n return nodes;\n }",
"public int numNodes() {\n\t\treturn numNodes;\n\t}",
"void updateRmiClientsCount() {\n int noOfClientsConnected = 0;\n\n String[] connectionIds = rmiConnector.getConnectionIds();\n\n if (connectionIds != null) {\n noOfClientsConnected = connectionIds.length;\n }\n\n logger.info(\"No. of RMI clients connected :: {}\", noOfClientsConnected);\n\n AdminDistributedSystemJmxImpl adminDSJmx = (AdminDistributedSystemJmxImpl) system;\n\n adminDSJmx.setRmiClientCountZero(noOfClientsConnected == 0);\n }",
"public int getReplicationDegree() {\n return replicationDegree;\n }",
"public int getReplicationDegree() {\n return replicationDegree;\n }",
"public List<NetworkNode> listNetworkNode();",
"private void updateGeoRepStatus(GlusterVolumeEntity volume, GlusterGeoRepSession session) {\n\n List<HashSet<GeoRepSessionStatus>> list = new ArrayList<>();\n // grouped node status\n int replicaCount = volume.getReplicaCount() == 0 ? 1 : volume.getReplicaCount();\n for (int i = 0; i < volume.getBricks().size(); i = i + replicaCount) {\n HashSet<GeoRepSessionStatus> subVolumeStatusSet = new HashSet<>();\n int j = 0;\n while (j < replicaCount) {\n Guid brickId = volume.getBricks().get(i + j).getId();\n subVolumeStatusSet.add(getStatusForBrickFromSession(session, brickId));\n j++;\n }\n list.add(subVolumeStatusSet);\n }\n\n session.setStatus(GeoRepSessionStatus.ACTIVE);\n // iterate through grouped status to set consolidated status\n for (HashSet<GeoRepSessionStatus> subVolumeStatusValues : list) {\n if (subVolumeStatusValues.contains(GeoRepSessionStatus.ACTIVE)) {\n // healthy\n continue;\n } else if (subVolumeStatusValues.contains(GeoRepSessionStatus.FAULTY)) {\n session.setStatus(GeoRepSessionStatus.FAULTY);\n // if any one of the sub-volume is faulty, the overall session status if faulty\n return;\n }\n // override status in case of these values\n if (ArrayUtils.contains(overridableStatuses, session.getStatus())) {\n if (subVolumeStatusValues.size() == 1) {\n session.setStatus((GeoRepSessionStatus) subVolumeStatusValues.toArray()[0]);\n } else {\n // if status values in sub-volume are not the same, what do we do?\n // this should not happen, so we'll log it for now\n log.info(\"Multiple status values found in volume '{}'\", session.getMasterVolumeName());\n }\n }\n }\n\n }",
"@SuppressWarnings(\"unused\")\n private ReplicationStatusResponse() {\n this(false);\n }",
"int getNrNodes() {\n\t\treturn adjList.size();\n\t}",
"public int getConnectionStatus()\r\n { return connectionStatus; }",
"int getNodeCount();",
"int getNodeCount();",
"public int getNodeCount() {\n return nodeCount;\n }",
"public int getNetworkNodesNumber() {\n\t\t\n\t\t//Return nodes size\n\t\treturn nodes.size();\n\t\t\n\t}",
"void nodeOnline();",
"public static String getClusterStatusNodePath() {\n return String.join(\"/\", \"\", ROOT_NODE, COMPUTE_NODE, STATUS_NODE);\n }",
"@Override\n protected int minimumNumberOfReplicas() {\n return 1;\n }",
"@Override\n public void statusUpdate(final String asgName, final ASGStatus newStatus, final boolean isReplication) {\n if (isReplication) {\n return;\n }\n for (final PeerEurekaNode node : peerEurekaNodes.getPeerEurekaNodes()) {\n replicateASGInfoToReplicaNodes(asgName, newStatus, node);\n\n }\n }",
"@PostMapping(\"/queryGroupStatus/list\")\n @PreAuthorize(ConstantProperties.HAS_ROLE_ADMIN)\n public BaseResponse getGroupStatusList(@Valid @RequestBody ReqGroupStatus reqGroupStatus) throws NodeMgrException {\n Instant startTime = Instant.now();\n BaseResponse baseResponse = new BaseResponse(ConstantCode.SUCCESS);\n log.info(\"start getGroupStatusMap startTime:{}\", startTime.toEpochMilli());\n List<String> nodeIdList = reqGroupStatus.getNodeIdList();\n List<RspGroupStatus> resList = groupService.listGroupStatus(nodeIdList,\n reqGroupStatus.getGroupIdList());\n baseResponse.setData(resList);\n log.info(\"end getGroupStatusMap useTime:{} result:{}\",\n Duration.between(startTime, Instant.now()).toMillis(),\n JsonTools.toJSONString(baseResponse));\n return baseResponse;\n }",
"public String getNumberOfNodesEvaluated(){return Integer.toString(NumberOfVisitedNodes);}",
"java.util.List<? extends io.netifi.proteus.admin.om.NodeOrBuilder> \n getNodesOrBuilderList();",
"private void getNodesCount(HttpServletRequest request, HttpServletResponse response) throws IOException {\n int countNodes = SimApi.getNodesCount();\n response.getWriter().write(Integer.toString(countNodes));\n }",
"@Test(timeout = 10000L)\n public void testNodesInformation() throws Exception {\n CommonDriverAdminTests.testNodesInformation(client, nbNodes);\n }",
"public int getNumNodes() {\n\t\treturn nodes.size();\n\t}",
"public abstract Collection<Node> getAllSuccessors();",
"@RequestLine(\"GET /status\")\n Status getNeustarNetworkStatus();",
"public void printStatus(){\n System.out.println(\"Nodes: \" + \n getVertexCount() + \" Edges: \" + \n getEdgeCount()); \n //and \" + getEdgeCount() + \" edges active.\");\n }",
"public int getStatusCount() {\n return status_.size();\n }",
"public List<Long> getSessionNodes() {\n List<Long> ret = new ArrayList<>();\n\n for (int i = 0; i < sessionsList.size(); i++) {\n ret.add(sessionsList.get(i).dhtNodes());\n }\n\n return ret;\n }",
"@Override\n public ClusterStatus getCurrentClusterStatus() {\n if (getMemberList().size() > 1) {\n return CLUSTER_FUNCTIONAL;\n }\n // when only one node is connected return degraded\n if (getMemberList().size() == 1) {\n return CLUSTER_DEGRADED;\n }\n // consider all other states as illegal\n return CLUSTER_ILLEGAL;\n }",
"private void refreshNodeList() {\n if (UnderNet.router.status.equals(InterfaceStatus.STARTED)) {\n //Using connected and cached nodes if the router has started.\n ArrayList<Node> nodesToList = UnderNet.router.getConnectedNodes();\n for (Node cachedNode :\n EntryNodeCache.cachedNodes) {\n boolean canAdd = true;\n for (Node connectedNode : UnderNet.router.getConnectedNodes()) {\n if (cachedNode.getAddress().equals(connectedNode.getAddress())) {\n canAdd = false;\n }\n }\n if (canAdd) {\n nodesToList.add(cachedNode);\n }\n }\n nodeList.setListData(nodesToList.toArray());\n } else {\n //Using cached nodes if the router isn't online.\n nodeList.setListData(EntryNodeCache.cachedNodes.toArray());\n }\n }",
"public int getNodeCount() {\n return node_.size();\n }",
"public Builder setNodeStatusList(\n int index, entities.Torrent.NodeReplicationStatus.Builder builderForValue) {\n if (nodeStatusListBuilder_ == null) {\n ensureNodeStatusListIsMutable();\n nodeStatusList_.set(index, builderForValue.build());\n onChanged();\n } else {\n nodeStatusListBuilder_.setMessage(index, builderForValue.build());\n }\n return this;\n }",
"int getStatusCount();",
"List<StatusListener> mo9950b();",
"public List<Output<TInt32>> nodeIdsList() {\n return nodeIdsList;\n }",
"@Override\r\n\tpublic int getNumberOfNodes() {\n\t\treturn 0;\r\n\t}",
"@Override\n public void onNewClusterState(ClusterState state) {\n transportService.sendRequest(\n clusterService.localNode(),\n transportReplicaAction,\n replicaRequest,\n new ActionListenerResponseHandler<>(onCompletionListener, ReplicaResponse::new)\n );\n }",
"public java.util.List<? extends entities.Torrent.NodeIdOrBuilder>\n getNodesOrBuilderList() {\n if (nodesBuilder_ != null) {\n return nodesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(nodes_);\n }\n }",
"void refreshNodeHostCount(int nodeHostCount);",
"public java.util.List<java.lang.Integer>\n getStatusList() {\n return java.util.Collections.unmodifiableList(status_);\n }",
"protected int numNodes() {\n\t\treturn nodes.size();\n\t}",
"public static void getStatus() {\n\t\ttry {\n\t\t\tint i = 1;\n\t\t\tList<Object[]>serverDetails = ServerStatus.getServerDetails();\n\t\t\tfor (Object[] servers:serverDetails){\n\t\t\t\tServerStatus.verifyServerStatus(i,(String)servers[0], (String)servers[1], (String)servers[2]);\n\t\t\t\ti++;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tcatch (Exception ex){\n\t\t\tex.printStackTrace();\n\t\t}\n\t}",
"public Vector<Node> getNodes(){\n\t\treturn this.listOfNodes;\n\t}"
] |
[
"0.7676129",
"0.7331182",
"0.7273687",
"0.71861",
"0.7115793",
"0.7109621",
"0.70572484",
"0.70231473",
"0.68802404",
"0.68754536",
"0.68622214",
"0.6731096",
"0.66640806",
"0.66391486",
"0.65591234",
"0.6555521",
"0.63903886",
"0.63232106",
"0.63019353",
"0.6214408",
"0.61544263",
"0.6059044",
"0.6020407",
"0.5968166",
"0.5747682",
"0.5747118",
"0.572477",
"0.5719498",
"0.5702324",
"0.55613613",
"0.5554103",
"0.55409944",
"0.55359095",
"0.55294245",
"0.5514939",
"0.5508245",
"0.54773027",
"0.54582757",
"0.5452121",
"0.54395384",
"0.5432274",
"0.5413921",
"0.5404272",
"0.5404272",
"0.5391273",
"0.5391093",
"0.53838295",
"0.5372251",
"0.5371431",
"0.53694195",
"0.53680325",
"0.5355719",
"0.5337264",
"0.5328223",
"0.5313206",
"0.53056794",
"0.5304752",
"0.52963203",
"0.5294912",
"0.52926546",
"0.52926546",
"0.52865416",
"0.52761674",
"0.52743804",
"0.52723396",
"0.52713174",
"0.5270979",
"0.5270979",
"0.5262344",
"0.5260428",
"0.5251417",
"0.525009",
"0.52486444",
"0.5244158",
"0.5236949",
"0.5233294",
"0.5232152",
"0.523205",
"0.5227255",
"0.5222861",
"0.5216217",
"0.5216119",
"0.5214923",
"0.52052957",
"0.5199027",
"0.5190343",
"0.51863825",
"0.5185727",
"0.5179844",
"0.51798075",
"0.51794755",
"0.51788676",
"0.5154731",
"0.5154184",
"0.51530594",
"0.51490337",
"0.514868",
"0.5140558",
"0.5139295",
"0.51247513"
] |
0.715512
|
4
|
The status of all the requests to other nodes repeated .NodeReplicationStatus nodeStatusList = 3;
|
@java.lang.Override
public int getNodeStatusListCount() {
return nodeStatusList_.size();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"entities.Torrent.NodeReplicationStatus getNodeStatusList(int index);",
"@java.lang.Override\n public java.util.List<entities.Torrent.NodeReplicationStatus> getNodeStatusListList() {\n return nodeStatusList_;\n }",
"java.util.List<entities.Torrent.NodeReplicationStatus>\n getNodeStatusListList();",
"public java.util.List<entities.Torrent.NodeReplicationStatus> getNodeStatusListList() {\n if (nodeStatusListBuilder_ == null) {\n return java.util.Collections.unmodifiableList(nodeStatusList_);\n } else {\n return nodeStatusListBuilder_.getMessageList();\n }\n }",
"@java.lang.Override\n public java.util.List<? extends entities.Torrent.NodeReplicationStatusOrBuilder>\n getNodeStatusListOrBuilderList() {\n return nodeStatusList_;\n }",
"public java.util.List<? extends entities.Torrent.NodeReplicationStatusOrBuilder>\n getNodeStatusListOrBuilderList() {\n if (nodeStatusListBuilder_ != null) {\n return nodeStatusListBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(nodeStatusList_);\n }\n }",
"java.util.List<? extends entities.Torrent.NodeReplicationStatusOrBuilder>\n getNodeStatusListOrBuilderList();",
"public entities.Torrent.NodeReplicationStatus.Builder addNodeStatusListBuilder() {\n return getNodeStatusListFieldBuilder().addBuilder(\n entities.Torrent.NodeReplicationStatus.getDefaultInstance());\n }",
"int getNodeStatusListCount();",
"@java.lang.Override\n public entities.Torrent.NodeReplicationStatus getNodeStatusList(int index) {\n return nodeStatusList_.get(index);\n }",
"entities.Torrent.NodeReplicationStatusOrBuilder getNodeStatusListOrBuilder(\n int index);",
"@java.lang.Override\n public entities.Torrent.NodeReplicationStatusOrBuilder getNodeStatusListOrBuilder(\n int index) {\n return nodeStatusList_.get(index);\n }",
"public entities.Torrent.NodeReplicationStatus getNodeStatusList(int index) {\n if (nodeStatusListBuilder_ == null) {\n return nodeStatusList_.get(index);\n } else {\n return nodeStatusListBuilder_.getMessage(index);\n }\n }",
"public Builder addNodeStatusList(entities.Torrent.NodeReplicationStatus value) {\n if (nodeStatusListBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureNodeStatusListIsMutable();\n nodeStatusList_.add(value);\n onChanged();\n } else {\n nodeStatusListBuilder_.addMessage(value);\n }\n return this;\n }",
"public Builder addAllNodeStatusList(\n java.lang.Iterable<? extends entities.Torrent.NodeReplicationStatus> values) {\n if (nodeStatusListBuilder_ == null) {\n ensureNodeStatusListIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, nodeStatusList_);\n onChanged();\n } else {\n nodeStatusListBuilder_.addAllMessages(values);\n }\n return this;\n }",
"public entities.Torrent.NodeReplicationStatusOrBuilder getNodeStatusListOrBuilder(\n int index) {\n if (nodeStatusListBuilder_ == null) {\n return nodeStatusList_.get(index); } else {\n return nodeStatusListBuilder_.getMessageOrBuilder(index);\n }\n }",
"public int getNodeStatusListCount() {\n if (nodeStatusListBuilder_ == null) {\n return nodeStatusList_.size();\n } else {\n return nodeStatusListBuilder_.getCount();\n }\n }",
"public final int[] cacheNodeStatus() {\n return new int[]{0,0,0,0,0,0,0,0,0,0};\r\n }",
"public java.util.List<entities.Torrent.NodeReplicationStatus.Builder>\n getNodeStatusListBuilderList() {\n return getNodeStatusListFieldBuilder().getBuilderList();\n }",
"public Builder setNodeStatusList(\n int index, entities.Torrent.NodeReplicationStatus value) {\n if (nodeStatusListBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureNodeStatusListIsMutable();\n nodeStatusList_.set(index, value);\n onChanged();\n } else {\n nodeStatusListBuilder_.setMessage(index, value);\n }\n return this;\n }",
"private NodeReplicationStatus(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"int getReplicationCount();",
"public Builder addNodeStatusList(\n int index, entities.Torrent.NodeReplicationStatus value) {\n if (nodeStatusListBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureNodeStatusListIsMutable();\n nodeStatusList_.add(index, value);\n onChanged();\n } else {\n nodeStatusListBuilder_.addMessage(index, value);\n }\n return this;\n }",
"public entities.Torrent.NodeReplicationStatus.Builder addNodeStatusListBuilder(\n int index) {\n return getNodeStatusListFieldBuilder().addBuilder(\n index, entities.Torrent.NodeReplicationStatus.getDefaultInstance());\n }",
"public int getNumNodesSeenByMessage() {\r\n return numNodesSeenByMessage;\r\n }",
"public abstract String getNodeStatusVariableName();",
"public Builder addNodeStatusList(\n entities.Torrent.NodeReplicationStatus.Builder builderForValue) {\n if (nodeStatusListBuilder_ == null) {\n ensureNodeStatusListIsMutable();\n nodeStatusList_.add(builderForValue.build());\n onChanged();\n } else {\n nodeStatusListBuilder_.addMessage(builderForValue.build());\n }\n return this;\n }",
"public entities.Torrent.NodeReplicationStatus.Builder getNodeStatusListBuilder(\n int index) {\n return getNodeStatusListFieldBuilder().getBuilder(index);\n }",
"java.util.List<io.netifi.proteus.admin.om.Node> \n getNodesList();",
"public void list() {\r\n\t\tfor (String key : nodeMap.keySet()) {\r\n\t\t\tNodeRef node = nodeMap.get(key);\r\n\t\t\tSystem.out.println(node.getIp() + \" : \" + node.getPort());\r\n\t\t}\t\t\r\n\t}",
"public static int countNodes() {\n\t\treturn count_nodes;\n\t}",
"default Promise<List<String>> findAllNodesWithStatus(HealthStatus queryStatus) {\n final Promise<List<String>> promise = Promises.promise();\n promise.resolve(Collections.emptyList());\n return promise;\n\n }",
"@Override\n\tpublic long numNodes() {\n\t\treturn numNodes;\n\t}",
"public java.util.List<entities.Torrent.NodeId> getNodesList() {\n if (nodesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(nodes_);\n } else {\n return nodesBuilder_.getMessageList();\n }\n }",
"public NodeInformation[] getNodes() throws CassandraServerManagementException {\r\n StorageServiceMBean ssMBean = null;\r\n try {\r\n ssMBean = CassandraAdminDataHolder\r\n .getInstance().getCassandraMBeanLocator().locateStorageServiceMBean();\r\n } catch (CassandraServerManagementException e) {\r\n handleException(\"Error occurred while retrieving node information list\", e);\r\n }\r\n\r\n if (ssMBean == null) {\r\n handleException(\"Storage Server MBean is null\");\r\n }\r\n\r\n Map<String, String> tokenToEndpoint = ssMBean.getTokenToEndpointMap();\r\n List<String> sortedTokens = new ArrayList<String>(tokenToEndpoint.keySet());\r\n Collections.sort(sortedTokens);\r\n\r\n /* Calculate per-token ownership of the ring */\r\n Map<InetAddress, Float> ownerships = ssMBean.getOwnership();\r\n\r\n List<NodeInformation> nodeInfoList = new ArrayList<NodeInformation>();\r\n for (String token : sortedTokens) {\r\n String primaryEndpoint = tokenToEndpoint.get(token);\r\n String status = ssMBean.getLiveNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_UP\r\n : ssMBean.getUnreachableNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_DOWN\r\n : CassandraManagementConstants.NodeStatuses.NODE_STATUS_UNKNOWN;\r\n\r\n String state = ssMBean.getJoiningNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_JOINING\r\n : ssMBean.getLeavingNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_LEAVING\r\n : CassandraManagementConstants.NodeStatuses.NODE_STATUS_NORMAL;\r\n\r\n Map<String, String> loadMap = ssMBean.getLoadMap();\r\n String load = loadMap.containsKey(primaryEndpoint)\r\n ? loadMap.get(primaryEndpoint)\r\n : CassandraManagementConstants.NodeStatuses.NODE_STATUS_UNKNOWN;\r\n\r\n Float ownership = ownerships.get(token);\r\n String owns = \"N/A\";\r\n if(ownership!=null){\r\n owns = new DecimalFormat(\"##0.00%\").format(ownership);\r\n }\r\n NodeInformation nodeInfo = new NodeInformation();\r\n nodeInfo.setAddress(primaryEndpoint);\r\n nodeInfo.setState(state);\r\n nodeInfo.setStatus(status);\r\n nodeInfo.setOwn(owns);\r\n nodeInfo.setLoad(load);\r\n nodeInfo.setToken(token);\r\n nodeInfoList.add(nodeInfo);\r\n }\r\n return nodeInfoList.toArray(new NodeInformation[nodeInfoList.size()]);\r\n }",
"public String replicationState() {\n return this.replicationState;\n }",
"@Override\n public boolean getCurrentNodeStatus(InetAddress ia) {\n if (ia.isAnyLocalAddress()) {\n return true;\n }\n // Check if given address is in cluster\n for (Client c : instance.getClientService().getConnectedClients()) {\n if (c.getSocketAddress().getAddress().equals(ia)) {\n return true;\n }\n }\n // reject all other addresses\n return false;\n }",
"int numNodes() {\n\t\treturn num_nodes;\n\t}",
"private int numNodes()\r\n\t{\r\n\t return nodeMap.size();\r\n\t}",
"public int lockedNodeCount() {\n\treturn lockedNodes;\n }",
"@Override\n\tpublic Collection<TaskStatus> getTaskStatus(){\n \tcheckInitialized();\n \t\n \t@SuppressWarnings(\"unchecked\")\n\t\tCollection<Collection<TaskStatus>> statusTree=Collections.EMPTY_LIST;\n \tfinal MultiTask<Collection<TaskStatus>> mtask;\n \ttry {\n\t\t\t mtask = breeder.executeCallable(new GetTaskStatus(this));\n\t\t\t statusTree = mtask.get();\n \t} catch (ExecutionException ex){\n \t\tlog.fatal(\"Could not get status of tasks for job \"+this.getId(), ex);\n \t} catch(InterruptedException ex) {\n \t\tlog.fatal(\"Could not get status of tasks for job \"+this.getId(), ex);\n \t}\n\t\t\t\n\t\t// Flatten into single collection\n\t\tList<TaskStatus> result = new ArrayList<TaskStatus>((int)(statusTree.size()*this.getThreadCount()));\n\t\tfor(Collection<TaskStatus> statusForNode: statusTree) {\n\t\t\tresult.addAll(statusForNode);\n\t\t}\n\t\t\n\t\treturn result;\n \n\t}",
"int getNodeCount() {\n\t\treturn m_list_nodes.size();\n\t}",
"int getNodesCount();",
"int getNodesCount();",
"public java.util.List<java.lang.Integer>\n getStatusList() {\n return status_;\n }",
"public static int getNumberOfNodes() {\n return(numberOfNodes);\n\t }",
"@java.lang.Override\n public int getNodesCount() {\n return nodes_.size();\n }",
"java.util.List<entities.Torrent.NodeId>\n getNodesList();",
"private NodeRestartRequest() {\n\t\t}",
"List<CommunicationLink> getAllNodes()\n {\n return new ArrayList<>(allNodes.values());\n }",
"public ODocument clusterStatus() {\n checkConnected();\n return remote.getClusterStatus(user, password);\n }",
"public StatusChecker(Node node){\n this.node=node;\n start();\n }",
"public Builder clearNodeStatusList() {\n if (nodeStatusListBuilder_ == null) {\n nodeStatusList_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n nodeStatusListBuilder_.clear();\n }\n return this;\n }",
"@java.lang.Override\n public java.util.List<entities.Torrent.NodeId> getNodesList() {\n return nodes_;\n }",
"public int getNumberOfNodesEvaluated();",
"java.util.List<java.lang.Integer> getStatusList();",
"private List<Node> getNodes() {\n List<Node> nodes = new ArrayList<Node>();\n NodeApi.GetConnectedNodesResult rawNodes =\n Wearable.NodeApi.getConnectedNodes(mGoogleApiClient).await();\n for (Node node : rawNodes.getNodes()) {\n nodes.add(node);\n }\n return nodes;\n }",
"public int numNodes() {\n\t\treturn numNodes;\n\t}",
"void updateRmiClientsCount() {\n int noOfClientsConnected = 0;\n\n String[] connectionIds = rmiConnector.getConnectionIds();\n\n if (connectionIds != null) {\n noOfClientsConnected = connectionIds.length;\n }\n\n logger.info(\"No. of RMI clients connected :: {}\", noOfClientsConnected);\n\n AdminDistributedSystemJmxImpl adminDSJmx = (AdminDistributedSystemJmxImpl) system;\n\n adminDSJmx.setRmiClientCountZero(noOfClientsConnected == 0);\n }",
"public int getReplicationDegree() {\n return replicationDegree;\n }",
"public int getReplicationDegree() {\n return replicationDegree;\n }",
"public List<NetworkNode> listNetworkNode();",
"private void updateGeoRepStatus(GlusterVolumeEntity volume, GlusterGeoRepSession session) {\n\n List<HashSet<GeoRepSessionStatus>> list = new ArrayList<>();\n // grouped node status\n int replicaCount = volume.getReplicaCount() == 0 ? 1 : volume.getReplicaCount();\n for (int i = 0; i < volume.getBricks().size(); i = i + replicaCount) {\n HashSet<GeoRepSessionStatus> subVolumeStatusSet = new HashSet<>();\n int j = 0;\n while (j < replicaCount) {\n Guid brickId = volume.getBricks().get(i + j).getId();\n subVolumeStatusSet.add(getStatusForBrickFromSession(session, brickId));\n j++;\n }\n list.add(subVolumeStatusSet);\n }\n\n session.setStatus(GeoRepSessionStatus.ACTIVE);\n // iterate through grouped status to set consolidated status\n for (HashSet<GeoRepSessionStatus> subVolumeStatusValues : list) {\n if (subVolumeStatusValues.contains(GeoRepSessionStatus.ACTIVE)) {\n // healthy\n continue;\n } else if (subVolumeStatusValues.contains(GeoRepSessionStatus.FAULTY)) {\n session.setStatus(GeoRepSessionStatus.FAULTY);\n // if any one of the sub-volume is faulty, the overall session status if faulty\n return;\n }\n // override status in case of these values\n if (ArrayUtils.contains(overridableStatuses, session.getStatus())) {\n if (subVolumeStatusValues.size() == 1) {\n session.setStatus((GeoRepSessionStatus) subVolumeStatusValues.toArray()[0]);\n } else {\n // if status values in sub-volume are not the same, what do we do?\n // this should not happen, so we'll log it for now\n log.info(\"Multiple status values found in volume '{}'\", session.getMasterVolumeName());\n }\n }\n }\n\n }",
"@SuppressWarnings(\"unused\")\n private ReplicationStatusResponse() {\n this(false);\n }",
"int getNrNodes() {\n\t\treturn adjList.size();\n\t}",
"public int getConnectionStatus()\r\n { return connectionStatus; }",
"int getNodeCount();",
"int getNodeCount();",
"public int getNodeCount() {\n return nodeCount;\n }",
"public int getNetworkNodesNumber() {\n\t\t\n\t\t//Return nodes size\n\t\treturn nodes.size();\n\t\t\n\t}",
"void nodeOnline();",
"public static String getClusterStatusNodePath() {\n return String.join(\"/\", \"\", ROOT_NODE, COMPUTE_NODE, STATUS_NODE);\n }",
"@Override\n protected int minimumNumberOfReplicas() {\n return 1;\n }",
"@Override\n public void statusUpdate(final String asgName, final ASGStatus newStatus, final boolean isReplication) {\n if (isReplication) {\n return;\n }\n for (final PeerEurekaNode node : peerEurekaNodes.getPeerEurekaNodes()) {\n replicateASGInfoToReplicaNodes(asgName, newStatus, node);\n\n }\n }",
"@PostMapping(\"/queryGroupStatus/list\")\n @PreAuthorize(ConstantProperties.HAS_ROLE_ADMIN)\n public BaseResponse getGroupStatusList(@Valid @RequestBody ReqGroupStatus reqGroupStatus) throws NodeMgrException {\n Instant startTime = Instant.now();\n BaseResponse baseResponse = new BaseResponse(ConstantCode.SUCCESS);\n log.info(\"start getGroupStatusMap startTime:{}\", startTime.toEpochMilli());\n List<String> nodeIdList = reqGroupStatus.getNodeIdList();\n List<RspGroupStatus> resList = groupService.listGroupStatus(nodeIdList,\n reqGroupStatus.getGroupIdList());\n baseResponse.setData(resList);\n log.info(\"end getGroupStatusMap useTime:{} result:{}\",\n Duration.between(startTime, Instant.now()).toMillis(),\n JsonTools.toJSONString(baseResponse));\n return baseResponse;\n }",
"public String getNumberOfNodesEvaluated(){return Integer.toString(NumberOfVisitedNodes);}",
"private void getNodesCount(HttpServletRequest request, HttpServletResponse response) throws IOException {\n int countNodes = SimApi.getNodesCount();\n response.getWriter().write(Integer.toString(countNodes));\n }",
"java.util.List<? extends io.netifi.proteus.admin.om.NodeOrBuilder> \n getNodesOrBuilderList();",
"@Test(timeout = 10000L)\n public void testNodesInformation() throws Exception {\n CommonDriverAdminTests.testNodesInformation(client, nbNodes);\n }",
"public int getNumNodes() {\n\t\treturn nodes.size();\n\t}",
"public abstract Collection<Node> getAllSuccessors();",
"@RequestLine(\"GET /status\")\n Status getNeustarNetworkStatus();",
"public void printStatus(){\n System.out.println(\"Nodes: \" + \n getVertexCount() + \" Edges: \" + \n getEdgeCount()); \n //and \" + getEdgeCount() + \" edges active.\");\n }",
"public int getStatusCount() {\n return status_.size();\n }",
"public List<Long> getSessionNodes() {\n List<Long> ret = new ArrayList<>();\n\n for (int i = 0; i < sessionsList.size(); i++) {\n ret.add(sessionsList.get(i).dhtNodes());\n }\n\n return ret;\n }",
"@Override\n public ClusterStatus getCurrentClusterStatus() {\n if (getMemberList().size() > 1) {\n return CLUSTER_FUNCTIONAL;\n }\n // when only one node is connected return degraded\n if (getMemberList().size() == 1) {\n return CLUSTER_DEGRADED;\n }\n // consider all other states as illegal\n return CLUSTER_ILLEGAL;\n }",
"private void refreshNodeList() {\n if (UnderNet.router.status.equals(InterfaceStatus.STARTED)) {\n //Using connected and cached nodes if the router has started.\n ArrayList<Node> nodesToList = UnderNet.router.getConnectedNodes();\n for (Node cachedNode :\n EntryNodeCache.cachedNodes) {\n boolean canAdd = true;\n for (Node connectedNode : UnderNet.router.getConnectedNodes()) {\n if (cachedNode.getAddress().equals(connectedNode.getAddress())) {\n canAdd = false;\n }\n }\n if (canAdd) {\n nodesToList.add(cachedNode);\n }\n }\n nodeList.setListData(nodesToList.toArray());\n } else {\n //Using cached nodes if the router isn't online.\n nodeList.setListData(EntryNodeCache.cachedNodes.toArray());\n }\n }",
"public int getNodeCount() {\n return node_.size();\n }",
"public Builder setNodeStatusList(\n int index, entities.Torrent.NodeReplicationStatus.Builder builderForValue) {\n if (nodeStatusListBuilder_ == null) {\n ensureNodeStatusListIsMutable();\n nodeStatusList_.set(index, builderForValue.build());\n onChanged();\n } else {\n nodeStatusListBuilder_.setMessage(index, builderForValue.build());\n }\n return this;\n }",
"List<StatusListener> mo9950b();",
"int getStatusCount();",
"public List<Output<TInt32>> nodeIdsList() {\n return nodeIdsList;\n }",
"@Override\r\n\tpublic int getNumberOfNodes() {\n\t\treturn 0;\r\n\t}",
"@Override\n public void onNewClusterState(ClusterState state) {\n transportService.sendRequest(\n clusterService.localNode(),\n transportReplicaAction,\n replicaRequest,\n new ActionListenerResponseHandler<>(onCompletionListener, ReplicaResponse::new)\n );\n }",
"public java.util.List<? extends entities.Torrent.NodeIdOrBuilder>\n getNodesOrBuilderList() {\n if (nodesBuilder_ != null) {\n return nodesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(nodes_);\n }\n }",
"public java.util.List<java.lang.Integer>\n getStatusList() {\n return java.util.Collections.unmodifiableList(status_);\n }",
"void refreshNodeHostCount(int nodeHostCount);",
"protected int numNodes() {\n\t\treturn nodes.size();\n\t}",
"public static void getStatus() {\n\t\ttry {\n\t\t\tint i = 1;\n\t\t\tList<Object[]>serverDetails = ServerStatus.getServerDetails();\n\t\t\tfor (Object[] servers:serverDetails){\n\t\t\t\tServerStatus.verifyServerStatus(i,(String)servers[0], (String)servers[1], (String)servers[2]);\n\t\t\t\ti++;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tcatch (Exception ex){\n\t\t\tex.printStackTrace();\n\t\t}\n\t}",
"public Vector<Node> getNodes(){\n\t\treturn this.listOfNodes;\n\t}"
] |
[
"0.7677481",
"0.7332279",
"0.7275059",
"0.71873355",
"0.71560276",
"0.7116769",
"0.70585376",
"0.7024147",
"0.6879867",
"0.6876868",
"0.6864218",
"0.67323005",
"0.6665114",
"0.6640871",
"0.6559848",
"0.6556308",
"0.6390153",
"0.63229275",
"0.63024855",
"0.6215867",
"0.6154482",
"0.6059501",
"0.6021897",
"0.596904",
"0.5747415",
"0.5746043",
"0.572507",
"0.57199895",
"0.57014227",
"0.55606055",
"0.55531794",
"0.5541874",
"0.5535034",
"0.5529633",
"0.5514081",
"0.5508731",
"0.5476352",
"0.54575264",
"0.54510856",
"0.54392225",
"0.5431914",
"0.54128003",
"0.5403353",
"0.5403353",
"0.5391939",
"0.53903574",
"0.5383281",
"0.5371443",
"0.53700656",
"0.536878",
"0.53676504",
"0.535534",
"0.5338024",
"0.5328059",
"0.5311786",
"0.5306224",
"0.53053415",
"0.52958065",
"0.52942604",
"0.5293356",
"0.5293356",
"0.52853906",
"0.5275481",
"0.5274735",
"0.5272081",
"0.52704126",
"0.5269814",
"0.5269814",
"0.5261532",
"0.52604467",
"0.5249879",
"0.5249766",
"0.52476424",
"0.52447534",
"0.5238364",
"0.52316946",
"0.52309597",
"0.52308846",
"0.5225883",
"0.5223006",
"0.52158034",
"0.5215295",
"0.5214578",
"0.5205377",
"0.51992106",
"0.5189863",
"0.51856333",
"0.5185279",
"0.5179929",
"0.51792306",
"0.5179208",
"0.51784956",
"0.5153981",
"0.51533186",
"0.5152661",
"0.514974",
"0.51477605",
"0.51399446",
"0.5139098",
"0.51240915"
] |
0.7109518
|
6
|
The status of all the requests to other nodes repeated .NodeReplicationStatus nodeStatusList = 3;
|
@java.lang.Override
public entities.Torrent.NodeReplicationStatus getNodeStatusList(int index) {
return nodeStatusList_.get(index);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"entities.Torrent.NodeReplicationStatus getNodeStatusList(int index);",
"@java.lang.Override\n public java.util.List<entities.Torrent.NodeReplicationStatus> getNodeStatusListList() {\n return nodeStatusList_;\n }",
"java.util.List<entities.Torrent.NodeReplicationStatus>\n getNodeStatusListList();",
"public java.util.List<entities.Torrent.NodeReplicationStatus> getNodeStatusListList() {\n if (nodeStatusListBuilder_ == null) {\n return java.util.Collections.unmodifiableList(nodeStatusList_);\n } else {\n return nodeStatusListBuilder_.getMessageList();\n }\n }",
"@java.lang.Override\n public java.util.List<? extends entities.Torrent.NodeReplicationStatusOrBuilder>\n getNodeStatusListOrBuilderList() {\n return nodeStatusList_;\n }",
"public java.util.List<? extends entities.Torrent.NodeReplicationStatusOrBuilder>\n getNodeStatusListOrBuilderList() {\n if (nodeStatusListBuilder_ != null) {\n return nodeStatusListBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(nodeStatusList_);\n }\n }",
"@java.lang.Override\n public int getNodeStatusListCount() {\n return nodeStatusList_.size();\n }",
"java.util.List<? extends entities.Torrent.NodeReplicationStatusOrBuilder>\n getNodeStatusListOrBuilderList();",
"public entities.Torrent.NodeReplicationStatus.Builder addNodeStatusListBuilder() {\n return getNodeStatusListFieldBuilder().addBuilder(\n entities.Torrent.NodeReplicationStatus.getDefaultInstance());\n }",
"int getNodeStatusListCount();",
"entities.Torrent.NodeReplicationStatusOrBuilder getNodeStatusListOrBuilder(\n int index);",
"@java.lang.Override\n public entities.Torrent.NodeReplicationStatusOrBuilder getNodeStatusListOrBuilder(\n int index) {\n return nodeStatusList_.get(index);\n }",
"public entities.Torrent.NodeReplicationStatus getNodeStatusList(int index) {\n if (nodeStatusListBuilder_ == null) {\n return nodeStatusList_.get(index);\n } else {\n return nodeStatusListBuilder_.getMessage(index);\n }\n }",
"public Builder addNodeStatusList(entities.Torrent.NodeReplicationStatus value) {\n if (nodeStatusListBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureNodeStatusListIsMutable();\n nodeStatusList_.add(value);\n onChanged();\n } else {\n nodeStatusListBuilder_.addMessage(value);\n }\n return this;\n }",
"public Builder addAllNodeStatusList(\n java.lang.Iterable<? extends entities.Torrent.NodeReplicationStatus> values) {\n if (nodeStatusListBuilder_ == null) {\n ensureNodeStatusListIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, nodeStatusList_);\n onChanged();\n } else {\n nodeStatusListBuilder_.addAllMessages(values);\n }\n return this;\n }",
"public entities.Torrent.NodeReplicationStatusOrBuilder getNodeStatusListOrBuilder(\n int index) {\n if (nodeStatusListBuilder_ == null) {\n return nodeStatusList_.get(index); } else {\n return nodeStatusListBuilder_.getMessageOrBuilder(index);\n }\n }",
"public int getNodeStatusListCount() {\n if (nodeStatusListBuilder_ == null) {\n return nodeStatusList_.size();\n } else {\n return nodeStatusListBuilder_.getCount();\n }\n }",
"public final int[] cacheNodeStatus() {\n return new int[]{0,0,0,0,0,0,0,0,0,0};\r\n }",
"public java.util.List<entities.Torrent.NodeReplicationStatus.Builder>\n getNodeStatusListBuilderList() {\n return getNodeStatusListFieldBuilder().getBuilderList();\n }",
"public Builder setNodeStatusList(\n int index, entities.Torrent.NodeReplicationStatus value) {\n if (nodeStatusListBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureNodeStatusListIsMutable();\n nodeStatusList_.set(index, value);\n onChanged();\n } else {\n nodeStatusListBuilder_.setMessage(index, value);\n }\n return this;\n }",
"private NodeReplicationStatus(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"int getReplicationCount();",
"public Builder addNodeStatusList(\n int index, entities.Torrent.NodeReplicationStatus value) {\n if (nodeStatusListBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureNodeStatusListIsMutable();\n nodeStatusList_.add(index, value);\n onChanged();\n } else {\n nodeStatusListBuilder_.addMessage(index, value);\n }\n return this;\n }",
"public entities.Torrent.NodeReplicationStatus.Builder addNodeStatusListBuilder(\n int index) {\n return getNodeStatusListFieldBuilder().addBuilder(\n index, entities.Torrent.NodeReplicationStatus.getDefaultInstance());\n }",
"public int getNumNodesSeenByMessage() {\r\n return numNodesSeenByMessage;\r\n }",
"public abstract String getNodeStatusVariableName();",
"public Builder addNodeStatusList(\n entities.Torrent.NodeReplicationStatus.Builder builderForValue) {\n if (nodeStatusListBuilder_ == null) {\n ensureNodeStatusListIsMutable();\n nodeStatusList_.add(builderForValue.build());\n onChanged();\n } else {\n nodeStatusListBuilder_.addMessage(builderForValue.build());\n }\n return this;\n }",
"public entities.Torrent.NodeReplicationStatus.Builder getNodeStatusListBuilder(\n int index) {\n return getNodeStatusListFieldBuilder().getBuilder(index);\n }",
"java.util.List<io.netifi.proteus.admin.om.Node> \n getNodesList();",
"public void list() {\r\n\t\tfor (String key : nodeMap.keySet()) {\r\n\t\t\tNodeRef node = nodeMap.get(key);\r\n\t\t\tSystem.out.println(node.getIp() + \" : \" + node.getPort());\r\n\t\t}\t\t\r\n\t}",
"public static int countNodes() {\n\t\treturn count_nodes;\n\t}",
"default Promise<List<String>> findAllNodesWithStatus(HealthStatus queryStatus) {\n final Promise<List<String>> promise = Promises.promise();\n promise.resolve(Collections.emptyList());\n return promise;\n\n }",
"@Override\n\tpublic long numNodes() {\n\t\treturn numNodes;\n\t}",
"public java.util.List<entities.Torrent.NodeId> getNodesList() {\n if (nodesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(nodes_);\n } else {\n return nodesBuilder_.getMessageList();\n }\n }",
"public NodeInformation[] getNodes() throws CassandraServerManagementException {\r\n StorageServiceMBean ssMBean = null;\r\n try {\r\n ssMBean = CassandraAdminDataHolder\r\n .getInstance().getCassandraMBeanLocator().locateStorageServiceMBean();\r\n } catch (CassandraServerManagementException e) {\r\n handleException(\"Error occurred while retrieving node information list\", e);\r\n }\r\n\r\n if (ssMBean == null) {\r\n handleException(\"Storage Server MBean is null\");\r\n }\r\n\r\n Map<String, String> tokenToEndpoint = ssMBean.getTokenToEndpointMap();\r\n List<String> sortedTokens = new ArrayList<String>(tokenToEndpoint.keySet());\r\n Collections.sort(sortedTokens);\r\n\r\n /* Calculate per-token ownership of the ring */\r\n Map<InetAddress, Float> ownerships = ssMBean.getOwnership();\r\n\r\n List<NodeInformation> nodeInfoList = new ArrayList<NodeInformation>();\r\n for (String token : sortedTokens) {\r\n String primaryEndpoint = tokenToEndpoint.get(token);\r\n String status = ssMBean.getLiveNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_UP\r\n : ssMBean.getUnreachableNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_DOWN\r\n : CassandraManagementConstants.NodeStatuses.NODE_STATUS_UNKNOWN;\r\n\r\n String state = ssMBean.getJoiningNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_JOINING\r\n : ssMBean.getLeavingNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_LEAVING\r\n : CassandraManagementConstants.NodeStatuses.NODE_STATUS_NORMAL;\r\n\r\n Map<String, String> loadMap = ssMBean.getLoadMap();\r\n String load = loadMap.containsKey(primaryEndpoint)\r\n ? loadMap.get(primaryEndpoint)\r\n : CassandraManagementConstants.NodeStatuses.NODE_STATUS_UNKNOWN;\r\n\r\n Float ownership = ownerships.get(token);\r\n String owns = \"N/A\";\r\n if(ownership!=null){\r\n owns = new DecimalFormat(\"##0.00%\").format(ownership);\r\n }\r\n NodeInformation nodeInfo = new NodeInformation();\r\n nodeInfo.setAddress(primaryEndpoint);\r\n nodeInfo.setState(state);\r\n nodeInfo.setStatus(status);\r\n nodeInfo.setOwn(owns);\r\n nodeInfo.setLoad(load);\r\n nodeInfo.setToken(token);\r\n nodeInfoList.add(nodeInfo);\r\n }\r\n return nodeInfoList.toArray(new NodeInformation[nodeInfoList.size()]);\r\n }",
"public String replicationState() {\n return this.replicationState;\n }",
"@Override\n public boolean getCurrentNodeStatus(InetAddress ia) {\n if (ia.isAnyLocalAddress()) {\n return true;\n }\n // Check if given address is in cluster\n for (Client c : instance.getClientService().getConnectedClients()) {\n if (c.getSocketAddress().getAddress().equals(ia)) {\n return true;\n }\n }\n // reject all other addresses\n return false;\n }",
"int numNodes() {\n\t\treturn num_nodes;\n\t}",
"private int numNodes()\r\n\t{\r\n\t return nodeMap.size();\r\n\t}",
"public int lockedNodeCount() {\n\treturn lockedNodes;\n }",
"@Override\n\tpublic Collection<TaskStatus> getTaskStatus(){\n \tcheckInitialized();\n \t\n \t@SuppressWarnings(\"unchecked\")\n\t\tCollection<Collection<TaskStatus>> statusTree=Collections.EMPTY_LIST;\n \tfinal MultiTask<Collection<TaskStatus>> mtask;\n \ttry {\n\t\t\t mtask = breeder.executeCallable(new GetTaskStatus(this));\n\t\t\t statusTree = mtask.get();\n \t} catch (ExecutionException ex){\n \t\tlog.fatal(\"Could not get status of tasks for job \"+this.getId(), ex);\n \t} catch(InterruptedException ex) {\n \t\tlog.fatal(\"Could not get status of tasks for job \"+this.getId(), ex);\n \t}\n\t\t\t\n\t\t// Flatten into single collection\n\t\tList<TaskStatus> result = new ArrayList<TaskStatus>((int)(statusTree.size()*this.getThreadCount()));\n\t\tfor(Collection<TaskStatus> statusForNode: statusTree) {\n\t\t\tresult.addAll(statusForNode);\n\t\t}\n\t\t\n\t\treturn result;\n \n\t}",
"int getNodeCount() {\n\t\treturn m_list_nodes.size();\n\t}",
"int getNodesCount();",
"int getNodesCount();",
"public java.util.List<java.lang.Integer>\n getStatusList() {\n return status_;\n }",
"public static int getNumberOfNodes() {\n return(numberOfNodes);\n\t }",
"@java.lang.Override\n public int getNodesCount() {\n return nodes_.size();\n }",
"private NodeRestartRequest() {\n\t\t}",
"java.util.List<entities.Torrent.NodeId>\n getNodesList();",
"List<CommunicationLink> getAllNodes()\n {\n return new ArrayList<>(allNodes.values());\n }",
"public ODocument clusterStatus() {\n checkConnected();\n return remote.getClusterStatus(user, password);\n }",
"public StatusChecker(Node node){\n this.node=node;\n start();\n }",
"public Builder clearNodeStatusList() {\n if (nodeStatusListBuilder_ == null) {\n nodeStatusList_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n nodeStatusListBuilder_.clear();\n }\n return this;\n }",
"@java.lang.Override\n public java.util.List<entities.Torrent.NodeId> getNodesList() {\n return nodes_;\n }",
"public int getNumberOfNodesEvaluated();",
"java.util.List<java.lang.Integer> getStatusList();",
"private List<Node> getNodes() {\n List<Node> nodes = new ArrayList<Node>();\n NodeApi.GetConnectedNodesResult rawNodes =\n Wearable.NodeApi.getConnectedNodes(mGoogleApiClient).await();\n for (Node node : rawNodes.getNodes()) {\n nodes.add(node);\n }\n return nodes;\n }",
"public int numNodes() {\n\t\treturn numNodes;\n\t}",
"void updateRmiClientsCount() {\n int noOfClientsConnected = 0;\n\n String[] connectionIds = rmiConnector.getConnectionIds();\n\n if (connectionIds != null) {\n noOfClientsConnected = connectionIds.length;\n }\n\n logger.info(\"No. of RMI clients connected :: {}\", noOfClientsConnected);\n\n AdminDistributedSystemJmxImpl adminDSJmx = (AdminDistributedSystemJmxImpl) system;\n\n adminDSJmx.setRmiClientCountZero(noOfClientsConnected == 0);\n }",
"public int getReplicationDegree() {\n return replicationDegree;\n }",
"public int getReplicationDegree() {\n return replicationDegree;\n }",
"public List<NetworkNode> listNetworkNode();",
"private void updateGeoRepStatus(GlusterVolumeEntity volume, GlusterGeoRepSession session) {\n\n List<HashSet<GeoRepSessionStatus>> list = new ArrayList<>();\n // grouped node status\n int replicaCount = volume.getReplicaCount() == 0 ? 1 : volume.getReplicaCount();\n for (int i = 0; i < volume.getBricks().size(); i = i + replicaCount) {\n HashSet<GeoRepSessionStatus> subVolumeStatusSet = new HashSet<>();\n int j = 0;\n while (j < replicaCount) {\n Guid brickId = volume.getBricks().get(i + j).getId();\n subVolumeStatusSet.add(getStatusForBrickFromSession(session, brickId));\n j++;\n }\n list.add(subVolumeStatusSet);\n }\n\n session.setStatus(GeoRepSessionStatus.ACTIVE);\n // iterate through grouped status to set consolidated status\n for (HashSet<GeoRepSessionStatus> subVolumeStatusValues : list) {\n if (subVolumeStatusValues.contains(GeoRepSessionStatus.ACTIVE)) {\n // healthy\n continue;\n } else if (subVolumeStatusValues.contains(GeoRepSessionStatus.FAULTY)) {\n session.setStatus(GeoRepSessionStatus.FAULTY);\n // if any one of the sub-volume is faulty, the overall session status if faulty\n return;\n }\n // override status in case of these values\n if (ArrayUtils.contains(overridableStatuses, session.getStatus())) {\n if (subVolumeStatusValues.size() == 1) {\n session.setStatus((GeoRepSessionStatus) subVolumeStatusValues.toArray()[0]);\n } else {\n // if status values in sub-volume are not the same, what do we do?\n // this should not happen, so we'll log it for now\n log.info(\"Multiple status values found in volume '{}'\", session.getMasterVolumeName());\n }\n }\n }\n\n }",
"@SuppressWarnings(\"unused\")\n private ReplicationStatusResponse() {\n this(false);\n }",
"int getNrNodes() {\n\t\treturn adjList.size();\n\t}",
"int getNodeCount();",
"int getNodeCount();",
"public int getConnectionStatus()\r\n { return connectionStatus; }",
"public int getNodeCount() {\n return nodeCount;\n }",
"public int getNetworkNodesNumber() {\n\t\t\n\t\t//Return nodes size\n\t\treturn nodes.size();\n\t\t\n\t}",
"void nodeOnline();",
"public static String getClusterStatusNodePath() {\n return String.join(\"/\", \"\", ROOT_NODE, COMPUTE_NODE, STATUS_NODE);\n }",
"@Override\n protected int minimumNumberOfReplicas() {\n return 1;\n }",
"@Override\n public void statusUpdate(final String asgName, final ASGStatus newStatus, final boolean isReplication) {\n if (isReplication) {\n return;\n }\n for (final PeerEurekaNode node : peerEurekaNodes.getPeerEurekaNodes()) {\n replicateASGInfoToReplicaNodes(asgName, newStatus, node);\n\n }\n }",
"@PostMapping(\"/queryGroupStatus/list\")\n @PreAuthorize(ConstantProperties.HAS_ROLE_ADMIN)\n public BaseResponse getGroupStatusList(@Valid @RequestBody ReqGroupStatus reqGroupStatus) throws NodeMgrException {\n Instant startTime = Instant.now();\n BaseResponse baseResponse = new BaseResponse(ConstantCode.SUCCESS);\n log.info(\"start getGroupStatusMap startTime:{}\", startTime.toEpochMilli());\n List<String> nodeIdList = reqGroupStatus.getNodeIdList();\n List<RspGroupStatus> resList = groupService.listGroupStatus(nodeIdList,\n reqGroupStatus.getGroupIdList());\n baseResponse.setData(resList);\n log.info(\"end getGroupStatusMap useTime:{} result:{}\",\n Duration.between(startTime, Instant.now()).toMillis(),\n JsonTools.toJSONString(baseResponse));\n return baseResponse;\n }",
"public String getNumberOfNodesEvaluated(){return Integer.toString(NumberOfVisitedNodes);}",
"private void getNodesCount(HttpServletRequest request, HttpServletResponse response) throws IOException {\n int countNodes = SimApi.getNodesCount();\n response.getWriter().write(Integer.toString(countNodes));\n }",
"java.util.List<? extends io.netifi.proteus.admin.om.NodeOrBuilder> \n getNodesOrBuilderList();",
"@Test(timeout = 10000L)\n public void testNodesInformation() throws Exception {\n CommonDriverAdminTests.testNodesInformation(client, nbNodes);\n }",
"public int getNumNodes() {\n\t\treturn nodes.size();\n\t}",
"@RequestLine(\"GET /status\")\n Status getNeustarNetworkStatus();",
"public void printStatus(){\n System.out.println(\"Nodes: \" + \n getVertexCount() + \" Edges: \" + \n getEdgeCount()); \n //and \" + getEdgeCount() + \" edges active.\");\n }",
"public abstract Collection<Node> getAllSuccessors();",
"public int getStatusCount() {\n return status_.size();\n }",
"public List<Long> getSessionNodes() {\n List<Long> ret = new ArrayList<>();\n\n for (int i = 0; i < sessionsList.size(); i++) {\n ret.add(sessionsList.get(i).dhtNodes());\n }\n\n return ret;\n }",
"@Override\n public ClusterStatus getCurrentClusterStatus() {\n if (getMemberList().size() > 1) {\n return CLUSTER_FUNCTIONAL;\n }\n // when only one node is connected return degraded\n if (getMemberList().size() == 1) {\n return CLUSTER_DEGRADED;\n }\n // consider all other states as illegal\n return CLUSTER_ILLEGAL;\n }",
"public int getNodeCount() {\n return node_.size();\n }",
"private void refreshNodeList() {\n if (UnderNet.router.status.equals(InterfaceStatus.STARTED)) {\n //Using connected and cached nodes if the router has started.\n ArrayList<Node> nodesToList = UnderNet.router.getConnectedNodes();\n for (Node cachedNode :\n EntryNodeCache.cachedNodes) {\n boolean canAdd = true;\n for (Node connectedNode : UnderNet.router.getConnectedNodes()) {\n if (cachedNode.getAddress().equals(connectedNode.getAddress())) {\n canAdd = false;\n }\n }\n if (canAdd) {\n nodesToList.add(cachedNode);\n }\n }\n nodeList.setListData(nodesToList.toArray());\n } else {\n //Using cached nodes if the router isn't online.\n nodeList.setListData(EntryNodeCache.cachedNodes.toArray());\n }\n }",
"int getStatusCount();",
"List<StatusListener> mo9950b();",
"public List<Output<TInt32>> nodeIdsList() {\n return nodeIdsList;\n }",
"public Builder setNodeStatusList(\n int index, entities.Torrent.NodeReplicationStatus.Builder builderForValue) {\n if (nodeStatusListBuilder_ == null) {\n ensureNodeStatusListIsMutable();\n nodeStatusList_.set(index, builderForValue.build());\n onChanged();\n } else {\n nodeStatusListBuilder_.setMessage(index, builderForValue.build());\n }\n return this;\n }",
"@Override\r\n\tpublic int getNumberOfNodes() {\n\t\treturn 0;\r\n\t}",
"public java.util.List<? extends entities.Torrent.NodeIdOrBuilder>\n getNodesOrBuilderList() {\n if (nodesBuilder_ != null) {\n return nodesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(nodes_);\n }\n }",
"@Override\n public void onNewClusterState(ClusterState state) {\n transportService.sendRequest(\n clusterService.localNode(),\n transportReplicaAction,\n replicaRequest,\n new ActionListenerResponseHandler<>(onCompletionListener, ReplicaResponse::new)\n );\n }",
"public java.util.List<java.lang.Integer>\n getStatusList() {\n return java.util.Collections.unmodifiableList(status_);\n }",
"void refreshNodeHostCount(int nodeHostCount);",
"protected int numNodes() {\n\t\treturn nodes.size();\n\t}",
"public static void getStatus() {\n\t\ttry {\n\t\t\tint i = 1;\n\t\t\tList<Object[]>serverDetails = ServerStatus.getServerDetails();\n\t\t\tfor (Object[] servers:serverDetails){\n\t\t\t\tServerStatus.verifyServerStatus(i,(String)servers[0], (String)servers[1], (String)servers[2]);\n\t\t\t\ti++;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tcatch (Exception ex){\n\t\t\tex.printStackTrace();\n\t\t}\n\t}",
"public Vector<Node> getNodes(){\n\t\treturn this.listOfNodes;\n\t}"
] |
[
"0.76754725",
"0.7330513",
"0.7273623",
"0.7185904",
"0.71540165",
"0.711505",
"0.71102214",
"0.7056519",
"0.7022613",
"0.6881543",
"0.68614775",
"0.6730206",
"0.66633195",
"0.6638524",
"0.6558738",
"0.6554595",
"0.6390956",
"0.6324348",
"0.6301884",
"0.62128437",
"0.6153897",
"0.6058742",
"0.60192406",
"0.596705",
"0.57494354",
"0.5748884",
"0.5723979",
"0.5719001",
"0.570223",
"0.5561525",
"0.5554988",
"0.5542978",
"0.5536758",
"0.5529717",
"0.5515723",
"0.5507869",
"0.5477924",
"0.545919",
"0.5453382",
"0.5440473",
"0.5432976",
"0.5413977",
"0.54059",
"0.54059",
"0.53920895",
"0.53919417",
"0.538495",
"0.53726",
"0.5371442",
"0.53705126",
"0.53690714",
"0.53564674",
"0.53378046",
"0.5328064",
"0.5315124",
"0.5306361",
"0.5305867",
"0.5297228",
"0.52948767",
"0.5292507",
"0.5292507",
"0.5286415",
"0.5276344",
"0.52740955",
"0.5273183",
"0.527266",
"0.527266",
"0.5272264",
"0.52635926",
"0.526193",
"0.52519333",
"0.52507585",
"0.5248499",
"0.52444947",
"0.52385783",
"0.5235392",
"0.52331",
"0.5231807",
"0.52273303",
"0.5224498",
"0.5218425",
"0.52174264",
"0.52173257",
"0.520692",
"0.5199218",
"0.5191387",
"0.51871306",
"0.5186112",
"0.5181667",
"0.5179533",
"0.51790094",
"0.51782185",
"0.51557237",
"0.5153083",
"0.5153054",
"0.5149576",
"0.51491016",
"0.5141703",
"0.51399857",
"0.51249874"
] |
0.68746865
|
10
|
The status of all the requests to other nodes repeated .NodeReplicationStatus nodeStatusList = 3;
|
@java.lang.Override
public entities.Torrent.NodeReplicationStatusOrBuilder getNodeStatusListOrBuilder(
int index) {
return nodeStatusList_.get(index);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"entities.Torrent.NodeReplicationStatus getNodeStatusList(int index);",
"@java.lang.Override\n public java.util.List<entities.Torrent.NodeReplicationStatus> getNodeStatusListList() {\n return nodeStatusList_;\n }",
"java.util.List<entities.Torrent.NodeReplicationStatus>\n getNodeStatusListList();",
"public java.util.List<entities.Torrent.NodeReplicationStatus> getNodeStatusListList() {\n if (nodeStatusListBuilder_ == null) {\n return java.util.Collections.unmodifiableList(nodeStatusList_);\n } else {\n return nodeStatusListBuilder_.getMessageList();\n }\n }",
"@java.lang.Override\n public java.util.List<? extends entities.Torrent.NodeReplicationStatusOrBuilder>\n getNodeStatusListOrBuilderList() {\n return nodeStatusList_;\n }",
"public java.util.List<? extends entities.Torrent.NodeReplicationStatusOrBuilder>\n getNodeStatusListOrBuilderList() {\n if (nodeStatusListBuilder_ != null) {\n return nodeStatusListBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(nodeStatusList_);\n }\n }",
"@java.lang.Override\n public int getNodeStatusListCount() {\n return nodeStatusList_.size();\n }",
"java.util.List<? extends entities.Torrent.NodeReplicationStatusOrBuilder>\n getNodeStatusListOrBuilderList();",
"public entities.Torrent.NodeReplicationStatus.Builder addNodeStatusListBuilder() {\n return getNodeStatusListFieldBuilder().addBuilder(\n entities.Torrent.NodeReplicationStatus.getDefaultInstance());\n }",
"int getNodeStatusListCount();",
"@java.lang.Override\n public entities.Torrent.NodeReplicationStatus getNodeStatusList(int index) {\n return nodeStatusList_.get(index);\n }",
"entities.Torrent.NodeReplicationStatusOrBuilder getNodeStatusListOrBuilder(\n int index);",
"public entities.Torrent.NodeReplicationStatus getNodeStatusList(int index) {\n if (nodeStatusListBuilder_ == null) {\n return nodeStatusList_.get(index);\n } else {\n return nodeStatusListBuilder_.getMessage(index);\n }\n }",
"public Builder addNodeStatusList(entities.Torrent.NodeReplicationStatus value) {\n if (nodeStatusListBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureNodeStatusListIsMutable();\n nodeStatusList_.add(value);\n onChanged();\n } else {\n nodeStatusListBuilder_.addMessage(value);\n }\n return this;\n }",
"public Builder addAllNodeStatusList(\n java.lang.Iterable<? extends entities.Torrent.NodeReplicationStatus> values) {\n if (nodeStatusListBuilder_ == null) {\n ensureNodeStatusListIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, nodeStatusList_);\n onChanged();\n } else {\n nodeStatusListBuilder_.addAllMessages(values);\n }\n return this;\n }",
"public entities.Torrent.NodeReplicationStatusOrBuilder getNodeStatusListOrBuilder(\n int index) {\n if (nodeStatusListBuilder_ == null) {\n return nodeStatusList_.get(index); } else {\n return nodeStatusListBuilder_.getMessageOrBuilder(index);\n }\n }",
"public int getNodeStatusListCount() {\n if (nodeStatusListBuilder_ == null) {\n return nodeStatusList_.size();\n } else {\n return nodeStatusListBuilder_.getCount();\n }\n }",
"public final int[] cacheNodeStatus() {\n return new int[]{0,0,0,0,0,0,0,0,0,0};\r\n }",
"public java.util.List<entities.Torrent.NodeReplicationStatus.Builder>\n getNodeStatusListBuilderList() {\n return getNodeStatusListFieldBuilder().getBuilderList();\n }",
"public Builder setNodeStatusList(\n int index, entities.Torrent.NodeReplicationStatus value) {\n if (nodeStatusListBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureNodeStatusListIsMutable();\n nodeStatusList_.set(index, value);\n onChanged();\n } else {\n nodeStatusListBuilder_.setMessage(index, value);\n }\n return this;\n }",
"private NodeReplicationStatus(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"int getReplicationCount();",
"public Builder addNodeStatusList(\n int index, entities.Torrent.NodeReplicationStatus value) {\n if (nodeStatusListBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureNodeStatusListIsMutable();\n nodeStatusList_.add(index, value);\n onChanged();\n } else {\n nodeStatusListBuilder_.addMessage(index, value);\n }\n return this;\n }",
"public entities.Torrent.NodeReplicationStatus.Builder addNodeStatusListBuilder(\n int index) {\n return getNodeStatusListFieldBuilder().addBuilder(\n index, entities.Torrent.NodeReplicationStatus.getDefaultInstance());\n }",
"public int getNumNodesSeenByMessage() {\r\n return numNodesSeenByMessage;\r\n }",
"public abstract String getNodeStatusVariableName();",
"public Builder addNodeStatusList(\n entities.Torrent.NodeReplicationStatus.Builder builderForValue) {\n if (nodeStatusListBuilder_ == null) {\n ensureNodeStatusListIsMutable();\n nodeStatusList_.add(builderForValue.build());\n onChanged();\n } else {\n nodeStatusListBuilder_.addMessage(builderForValue.build());\n }\n return this;\n }",
"public entities.Torrent.NodeReplicationStatus.Builder getNodeStatusListBuilder(\n int index) {\n return getNodeStatusListFieldBuilder().getBuilder(index);\n }",
"java.util.List<io.netifi.proteus.admin.om.Node> \n getNodesList();",
"public void list() {\r\n\t\tfor (String key : nodeMap.keySet()) {\r\n\t\t\tNodeRef node = nodeMap.get(key);\r\n\t\t\tSystem.out.println(node.getIp() + \" : \" + node.getPort());\r\n\t\t}\t\t\r\n\t}",
"public static int countNodes() {\n\t\treturn count_nodes;\n\t}",
"default Promise<List<String>> findAllNodesWithStatus(HealthStatus queryStatus) {\n final Promise<List<String>> promise = Promises.promise();\n promise.resolve(Collections.emptyList());\n return promise;\n\n }",
"@Override\n\tpublic long numNodes() {\n\t\treturn numNodes;\n\t}",
"public java.util.List<entities.Torrent.NodeId> getNodesList() {\n if (nodesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(nodes_);\n } else {\n return nodesBuilder_.getMessageList();\n }\n }",
"public NodeInformation[] getNodes() throws CassandraServerManagementException {\r\n StorageServiceMBean ssMBean = null;\r\n try {\r\n ssMBean = CassandraAdminDataHolder\r\n .getInstance().getCassandraMBeanLocator().locateStorageServiceMBean();\r\n } catch (CassandraServerManagementException e) {\r\n handleException(\"Error occurred while retrieving node information list\", e);\r\n }\r\n\r\n if (ssMBean == null) {\r\n handleException(\"Storage Server MBean is null\");\r\n }\r\n\r\n Map<String, String> tokenToEndpoint = ssMBean.getTokenToEndpointMap();\r\n List<String> sortedTokens = new ArrayList<String>(tokenToEndpoint.keySet());\r\n Collections.sort(sortedTokens);\r\n\r\n /* Calculate per-token ownership of the ring */\r\n Map<InetAddress, Float> ownerships = ssMBean.getOwnership();\r\n\r\n List<NodeInformation> nodeInfoList = new ArrayList<NodeInformation>();\r\n for (String token : sortedTokens) {\r\n String primaryEndpoint = tokenToEndpoint.get(token);\r\n String status = ssMBean.getLiveNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_UP\r\n : ssMBean.getUnreachableNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_DOWN\r\n : CassandraManagementConstants.NodeStatuses.NODE_STATUS_UNKNOWN;\r\n\r\n String state = ssMBean.getJoiningNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_JOINING\r\n : ssMBean.getLeavingNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_LEAVING\r\n : CassandraManagementConstants.NodeStatuses.NODE_STATUS_NORMAL;\r\n\r\n Map<String, String> loadMap = ssMBean.getLoadMap();\r\n String load = loadMap.containsKey(primaryEndpoint)\r\n ? loadMap.get(primaryEndpoint)\r\n : CassandraManagementConstants.NodeStatuses.NODE_STATUS_UNKNOWN;\r\n\r\n Float ownership = ownerships.get(token);\r\n String owns = \"N/A\";\r\n if(ownership!=null){\r\n owns = new DecimalFormat(\"##0.00%\").format(ownership);\r\n }\r\n NodeInformation nodeInfo = new NodeInformation();\r\n nodeInfo.setAddress(primaryEndpoint);\r\n nodeInfo.setState(state);\r\n nodeInfo.setStatus(status);\r\n nodeInfo.setOwn(owns);\r\n nodeInfo.setLoad(load);\r\n nodeInfo.setToken(token);\r\n nodeInfoList.add(nodeInfo);\r\n }\r\n return nodeInfoList.toArray(new NodeInformation[nodeInfoList.size()]);\r\n }",
"public String replicationState() {\n return this.replicationState;\n }",
"@Override\n public boolean getCurrentNodeStatus(InetAddress ia) {\n if (ia.isAnyLocalAddress()) {\n return true;\n }\n // Check if given address is in cluster\n for (Client c : instance.getClientService().getConnectedClients()) {\n if (c.getSocketAddress().getAddress().equals(ia)) {\n return true;\n }\n }\n // reject all other addresses\n return false;\n }",
"int numNodes() {\n\t\treturn num_nodes;\n\t}",
"private int numNodes()\r\n\t{\r\n\t return nodeMap.size();\r\n\t}",
"public int lockedNodeCount() {\n\treturn lockedNodes;\n }",
"@Override\n\tpublic Collection<TaskStatus> getTaskStatus(){\n \tcheckInitialized();\n \t\n \t@SuppressWarnings(\"unchecked\")\n\t\tCollection<Collection<TaskStatus>> statusTree=Collections.EMPTY_LIST;\n \tfinal MultiTask<Collection<TaskStatus>> mtask;\n \ttry {\n\t\t\t mtask = breeder.executeCallable(new GetTaskStatus(this));\n\t\t\t statusTree = mtask.get();\n \t} catch (ExecutionException ex){\n \t\tlog.fatal(\"Could not get status of tasks for job \"+this.getId(), ex);\n \t} catch(InterruptedException ex) {\n \t\tlog.fatal(\"Could not get status of tasks for job \"+this.getId(), ex);\n \t}\n\t\t\t\n\t\t// Flatten into single collection\n\t\tList<TaskStatus> result = new ArrayList<TaskStatus>((int)(statusTree.size()*this.getThreadCount()));\n\t\tfor(Collection<TaskStatus> statusForNode: statusTree) {\n\t\t\tresult.addAll(statusForNode);\n\t\t}\n\t\t\n\t\treturn result;\n \n\t}",
"int getNodeCount() {\n\t\treturn m_list_nodes.size();\n\t}",
"int getNodesCount();",
"int getNodesCount();",
"public java.util.List<java.lang.Integer>\n getStatusList() {\n return status_;\n }",
"public static int getNumberOfNodes() {\n return(numberOfNodes);\n\t }",
"@java.lang.Override\n public int getNodesCount() {\n return nodes_.size();\n }",
"java.util.List<entities.Torrent.NodeId>\n getNodesList();",
"List<CommunicationLink> getAllNodes()\n {\n return new ArrayList<>(allNodes.values());\n }",
"private NodeRestartRequest() {\n\t\t}",
"public ODocument clusterStatus() {\n checkConnected();\n return remote.getClusterStatus(user, password);\n }",
"public StatusChecker(Node node){\n this.node=node;\n start();\n }",
"public Builder clearNodeStatusList() {\n if (nodeStatusListBuilder_ == null) {\n nodeStatusList_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n nodeStatusListBuilder_.clear();\n }\n return this;\n }",
"@java.lang.Override\n public java.util.List<entities.Torrent.NodeId> getNodesList() {\n return nodes_;\n }",
"public int getNumberOfNodesEvaluated();",
"private List<Node> getNodes() {\n List<Node> nodes = new ArrayList<Node>();\n NodeApi.GetConnectedNodesResult rawNodes =\n Wearable.NodeApi.getConnectedNodes(mGoogleApiClient).await();\n for (Node node : rawNodes.getNodes()) {\n nodes.add(node);\n }\n return nodes;\n }",
"java.util.List<java.lang.Integer> getStatusList();",
"public int numNodes() {\n\t\treturn numNodes;\n\t}",
"void updateRmiClientsCount() {\n int noOfClientsConnected = 0;\n\n String[] connectionIds = rmiConnector.getConnectionIds();\n\n if (connectionIds != null) {\n noOfClientsConnected = connectionIds.length;\n }\n\n logger.info(\"No. of RMI clients connected :: {}\", noOfClientsConnected);\n\n AdminDistributedSystemJmxImpl adminDSJmx = (AdminDistributedSystemJmxImpl) system;\n\n adminDSJmx.setRmiClientCountZero(noOfClientsConnected == 0);\n }",
"public int getReplicationDegree() {\n return replicationDegree;\n }",
"public int getReplicationDegree() {\n return replicationDegree;\n }",
"public List<NetworkNode> listNetworkNode();",
"private void updateGeoRepStatus(GlusterVolumeEntity volume, GlusterGeoRepSession session) {\n\n List<HashSet<GeoRepSessionStatus>> list = new ArrayList<>();\n // grouped node status\n int replicaCount = volume.getReplicaCount() == 0 ? 1 : volume.getReplicaCount();\n for (int i = 0; i < volume.getBricks().size(); i = i + replicaCount) {\n HashSet<GeoRepSessionStatus> subVolumeStatusSet = new HashSet<>();\n int j = 0;\n while (j < replicaCount) {\n Guid brickId = volume.getBricks().get(i + j).getId();\n subVolumeStatusSet.add(getStatusForBrickFromSession(session, brickId));\n j++;\n }\n list.add(subVolumeStatusSet);\n }\n\n session.setStatus(GeoRepSessionStatus.ACTIVE);\n // iterate through grouped status to set consolidated status\n for (HashSet<GeoRepSessionStatus> subVolumeStatusValues : list) {\n if (subVolumeStatusValues.contains(GeoRepSessionStatus.ACTIVE)) {\n // healthy\n continue;\n } else if (subVolumeStatusValues.contains(GeoRepSessionStatus.FAULTY)) {\n session.setStatus(GeoRepSessionStatus.FAULTY);\n // if any one of the sub-volume is faulty, the overall session status if faulty\n return;\n }\n // override status in case of these values\n if (ArrayUtils.contains(overridableStatuses, session.getStatus())) {\n if (subVolumeStatusValues.size() == 1) {\n session.setStatus((GeoRepSessionStatus) subVolumeStatusValues.toArray()[0]);\n } else {\n // if status values in sub-volume are not the same, what do we do?\n // this should not happen, so we'll log it for now\n log.info(\"Multiple status values found in volume '{}'\", session.getMasterVolumeName());\n }\n }\n }\n\n }",
"@SuppressWarnings(\"unused\")\n private ReplicationStatusResponse() {\n this(false);\n }",
"int getNrNodes() {\n\t\treturn adjList.size();\n\t}",
"public int getConnectionStatus()\r\n { return connectionStatus; }",
"int getNodeCount();",
"int getNodeCount();",
"public int getNodeCount() {\n return nodeCount;\n }",
"public int getNetworkNodesNumber() {\n\t\t\n\t\t//Return nodes size\n\t\treturn nodes.size();\n\t\t\n\t}",
"void nodeOnline();",
"public static String getClusterStatusNodePath() {\n return String.join(\"/\", \"\", ROOT_NODE, COMPUTE_NODE, STATUS_NODE);\n }",
"@Override\n protected int minimumNumberOfReplicas() {\n return 1;\n }",
"@Override\n public void statusUpdate(final String asgName, final ASGStatus newStatus, final boolean isReplication) {\n if (isReplication) {\n return;\n }\n for (final PeerEurekaNode node : peerEurekaNodes.getPeerEurekaNodes()) {\n replicateASGInfoToReplicaNodes(asgName, newStatus, node);\n\n }\n }",
"@PostMapping(\"/queryGroupStatus/list\")\n @PreAuthorize(ConstantProperties.HAS_ROLE_ADMIN)\n public BaseResponse getGroupStatusList(@Valid @RequestBody ReqGroupStatus reqGroupStatus) throws NodeMgrException {\n Instant startTime = Instant.now();\n BaseResponse baseResponse = new BaseResponse(ConstantCode.SUCCESS);\n log.info(\"start getGroupStatusMap startTime:{}\", startTime.toEpochMilli());\n List<String> nodeIdList = reqGroupStatus.getNodeIdList();\n List<RspGroupStatus> resList = groupService.listGroupStatus(nodeIdList,\n reqGroupStatus.getGroupIdList());\n baseResponse.setData(resList);\n log.info(\"end getGroupStatusMap useTime:{} result:{}\",\n Duration.between(startTime, Instant.now()).toMillis(),\n JsonTools.toJSONString(baseResponse));\n return baseResponse;\n }",
"java.util.List<? extends io.netifi.proteus.admin.om.NodeOrBuilder> \n getNodesOrBuilderList();",
"public String getNumberOfNodesEvaluated(){return Integer.toString(NumberOfVisitedNodes);}",
"private void getNodesCount(HttpServletRequest request, HttpServletResponse response) throws IOException {\n int countNodes = SimApi.getNodesCount();\n response.getWriter().write(Integer.toString(countNodes));\n }",
"@Test(timeout = 10000L)\n public void testNodesInformation() throws Exception {\n CommonDriverAdminTests.testNodesInformation(client, nbNodes);\n }",
"public int getNumNodes() {\n\t\treturn nodes.size();\n\t}",
"public abstract Collection<Node> getAllSuccessors();",
"@RequestLine(\"GET /status\")\n Status getNeustarNetworkStatus();",
"public void printStatus(){\n System.out.println(\"Nodes: \" + \n getVertexCount() + \" Edges: \" + \n getEdgeCount()); \n //and \" + getEdgeCount() + \" edges active.\");\n }",
"public int getStatusCount() {\n return status_.size();\n }",
"public List<Long> getSessionNodes() {\n List<Long> ret = new ArrayList<>();\n\n for (int i = 0; i < sessionsList.size(); i++) {\n ret.add(sessionsList.get(i).dhtNodes());\n }\n\n return ret;\n }",
"@Override\n public ClusterStatus getCurrentClusterStatus() {\n if (getMemberList().size() > 1) {\n return CLUSTER_FUNCTIONAL;\n }\n // when only one node is connected return degraded\n if (getMemberList().size() == 1) {\n return CLUSTER_DEGRADED;\n }\n // consider all other states as illegal\n return CLUSTER_ILLEGAL;\n }",
"private void refreshNodeList() {\n if (UnderNet.router.status.equals(InterfaceStatus.STARTED)) {\n //Using connected and cached nodes if the router has started.\n ArrayList<Node> nodesToList = UnderNet.router.getConnectedNodes();\n for (Node cachedNode :\n EntryNodeCache.cachedNodes) {\n boolean canAdd = true;\n for (Node connectedNode : UnderNet.router.getConnectedNodes()) {\n if (cachedNode.getAddress().equals(connectedNode.getAddress())) {\n canAdd = false;\n }\n }\n if (canAdd) {\n nodesToList.add(cachedNode);\n }\n }\n nodeList.setListData(nodesToList.toArray());\n } else {\n //Using cached nodes if the router isn't online.\n nodeList.setListData(EntryNodeCache.cachedNodes.toArray());\n }\n }",
"public int getNodeCount() {\n return node_.size();\n }",
"public Builder setNodeStatusList(\n int index, entities.Torrent.NodeReplicationStatus.Builder builderForValue) {\n if (nodeStatusListBuilder_ == null) {\n ensureNodeStatusListIsMutable();\n nodeStatusList_.set(index, builderForValue.build());\n onChanged();\n } else {\n nodeStatusListBuilder_.setMessage(index, builderForValue.build());\n }\n return this;\n }",
"public List<Output<TInt32>> nodeIdsList() {\n return nodeIdsList;\n }",
"List<StatusListener> mo9950b();",
"int getStatusCount();",
"@Override\n public void onNewClusterState(ClusterState state) {\n transportService.sendRequest(\n clusterService.localNode(),\n transportReplicaAction,\n replicaRequest,\n new ActionListenerResponseHandler<>(onCompletionListener, ReplicaResponse::new)\n );\n }",
"public java.util.List<? extends entities.Torrent.NodeIdOrBuilder>\n getNodesOrBuilderList() {\n if (nodesBuilder_ != null) {\n return nodesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(nodes_);\n }\n }",
"@Override\r\n\tpublic int getNumberOfNodes() {\n\t\treturn 0;\r\n\t}",
"public java.util.List<java.lang.Integer>\n getStatusList() {\n return java.util.Collections.unmodifiableList(status_);\n }",
"void refreshNodeHostCount(int nodeHostCount);",
"protected int numNodes() {\n\t\treturn nodes.size();\n\t}",
"public static void getStatus() {\n\t\ttry {\n\t\t\tint i = 1;\n\t\t\tList<Object[]>serverDetails = ServerStatus.getServerDetails();\n\t\t\tfor (Object[] servers:serverDetails){\n\t\t\t\tServerStatus.verifyServerStatus(i,(String)servers[0], (String)servers[1], (String)servers[2]);\n\t\t\t\ti++;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tcatch (Exception ex){\n\t\t\tex.printStackTrace();\n\t\t}\n\t}",
"public Vector<Node> getNodes(){\n\t\treturn this.listOfNodes;\n\t}"
] |
[
"0.7677447",
"0.73326534",
"0.72751945",
"0.7187517",
"0.7156577",
"0.71170497",
"0.71088874",
"0.70586026",
"0.70244354",
"0.68789655",
"0.68768275",
"0.6863607",
"0.6665126",
"0.6640762",
"0.65603524",
"0.6556245",
"0.63892424",
"0.63225454",
"0.6302617",
"0.62158686",
"0.6154571",
"0.6059235",
"0.6021623",
"0.5969211",
"0.5746757",
"0.5746533",
"0.5725065",
"0.5719905",
"0.5702983",
"0.5561155",
"0.55533105",
"0.5541831",
"0.5535313",
"0.55308056",
"0.55150694",
"0.5509859",
"0.54764414",
"0.54578775",
"0.5451353",
"0.5438688",
"0.54318774",
"0.54126287",
"0.54034257",
"0.54034257",
"0.5391672",
"0.5390411",
"0.53832936",
"0.53727967",
"0.5370394",
"0.53702694",
"0.53679216",
"0.5354863",
"0.5338436",
"0.53293514",
"0.53118134",
"0.530631",
"0.5305603",
"0.5295997",
"0.5294718",
"0.5293353",
"0.5293353",
"0.5286944",
"0.5276236",
"0.5274766",
"0.5272741",
"0.52713966",
"0.52693284",
"0.52693284",
"0.5261072",
"0.526089",
"0.5252027",
"0.52506906",
"0.52486336",
"0.5245913",
"0.5236892",
"0.5232337",
"0.5231927",
"0.5229986",
"0.5226807",
"0.52229863",
"0.5216052",
"0.5215427",
"0.5215198",
"0.5204292",
"0.5199826",
"0.519047",
"0.51865757",
"0.51846725",
"0.5180031",
"0.5179613",
"0.5179007",
"0.51780134",
"0.515467",
"0.51541543",
"0.5154118",
"0.5149366",
"0.514844",
"0.51400506",
"0.51396614",
"0.512528"
] |
0.6732412
|
12
|
.Status status = 1;
|
@java.lang.Override public int getStatusValue() {
return status_;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setStatus(String status) { this.status = status; }",
"void setStatus(STATUS status);",
"public void setStatus(EnumVar status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\r\n\t this.status = status;\r\n\t }",
"public void setStatus(Integer status) {\r\n this.status = status;\r\n }",
"public void setStatus(Integer status) {\r\n this.status = status;\r\n }",
"void setStatus(int status);",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(int status){\r\n\t\tthis.status=status;\r\n\t}",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(int status);",
"public void setStatus(int status);",
"public void setStatus(Boolean s){ status = s;}",
"public void setStatus(int status) {\n STATUS = status;\n }",
"public void setStatus(Status newStatus){\n status = newStatus;\n }",
"public void setStatus(String stat)\n {\n status = stat;\n }",
"private void setStatus(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n status_ = value;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(long status) {\r\n this.status = status;\r\n }",
"public void setStatus(Integer status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(Integer status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(String status) {\r\n this.status = status;\r\n }",
"public void setStatus(java.lang.Object status) {\n this.status = status;\n }",
"public void setStatus(Status status)\n {\n this.status = status;\n }",
"public void setgetStatus()\r\n\t{\r\n\t\tthis.status = 'S';\r\n\t}",
"public void setStatus(Byte status) {\r\n\t\tthis.status = status;\r\n\t}",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"@Override\n\t\tpublic void setStatus(int status) {\n\t\t\t\n\t\t}",
"public void setStatus(StatusEnum status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(Byte status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(int status) {\n this.status = status;\n }",
"public void setStatus(int status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\r\n this.status = status;\r\n }",
"public void setStatus(String status) {\r\n this.status = status;\r\n }",
"public void setStatus(String status) {\r\n this.status = status;\r\n }",
"public void setStatus(Short status) {\n this.status = status;\n }",
"public void setStatus(STATUS status) {\n this.status = status;\n }",
"void setStatus(String status);",
"public void setStatus(Short status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(Short status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(int v) \n {\n \n if (this.status != v)\n {\n this.status = v;\n setModified(true);\n }\n \n \n }",
"public void setStatus( Short status ) {\n this.status = status;\n }",
"public void setStatus(String newStatus){\n\n //assigns the value of newStatus to the status field\n this.status = newStatus;\n }",
"public Status getStatus(){\n return status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\n this.status = status;\n }"
] |
[
"0.7656765",
"0.76468766",
"0.7565312",
"0.7561203",
"0.75449044",
"0.75449044",
"0.75349724",
"0.74959093",
"0.74959093",
"0.74959093",
"0.74959093",
"0.74959093",
"0.74959093",
"0.74959093",
"0.7482147",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.74783385",
"0.74783385",
"0.746719",
"0.74658287",
"0.746098",
"0.7456925",
"0.7452718",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435248",
"0.7432568",
"0.7432568",
"0.7425985",
"0.74143654",
"0.74118876",
"0.7398544",
"0.7398282",
"0.73973185",
"0.73973185",
"0.7396562",
"0.73950607",
"0.7392215",
"0.7392215",
"0.7382456",
"0.7382456",
"0.7378742",
"0.73726434",
"0.73726434",
"0.7368736",
"0.73626804",
"0.7351154",
"0.7345713",
"0.7345713",
"0.73451585",
"0.7332328",
"0.7329264",
"0.73258084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.728639",
"0.728639",
"0.728639"
] |
0.0
|
-1
|
.Status status = 1;
|
public Builder setStatusValue(int value) {
status_ = value;
onChanged();
return this;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setStatus(String status) { this.status = status; }",
"void setStatus(STATUS status);",
"public void setStatus(EnumVar status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\r\n\t this.status = status;\r\n\t }",
"public void setStatus(Integer status) {\r\n this.status = status;\r\n }",
"public void setStatus(Integer status) {\r\n this.status = status;\r\n }",
"void setStatus(int status);",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(int status){\r\n\t\tthis.status=status;\r\n\t}",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(int status);",
"public void setStatus(int status);",
"public void setStatus(Boolean s){ status = s;}",
"public void setStatus(int status) {\n STATUS = status;\n }",
"public void setStatus(Status newStatus){\n status = newStatus;\n }",
"public void setStatus(String stat)\n {\n status = stat;\n }",
"private void setStatus(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n status_ = value;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(long status) {\r\n this.status = status;\r\n }",
"public void setStatus(Integer status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(Integer status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(String status) {\r\n this.status = status;\r\n }",
"public void setStatus(java.lang.Object status) {\n this.status = status;\n }",
"public void setStatus(Status status)\n {\n this.status = status;\n }",
"public void setgetStatus()\r\n\t{\r\n\t\tthis.status = 'S';\r\n\t}",
"public void setStatus(Byte status) {\r\n\t\tthis.status = status;\r\n\t}",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"@Override\n\t\tpublic void setStatus(int status) {\n\t\t\t\n\t\t}",
"public void setStatus(StatusEnum status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(Byte status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(int status) {\n this.status = status;\n }",
"public void setStatus(int status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\r\n this.status = status;\r\n }",
"public void setStatus(String status) {\r\n this.status = status;\r\n }",
"public void setStatus(String status) {\r\n this.status = status;\r\n }",
"public void setStatus(Short status) {\n this.status = status;\n }",
"public void setStatus(STATUS status) {\n this.status = status;\n }",
"void setStatus(String status);",
"public void setStatus(Short status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(Short status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(int v) \n {\n \n if (this.status != v)\n {\n this.status = v;\n setModified(true);\n }\n \n \n }",
"public void setStatus( Short status ) {\n this.status = status;\n }",
"public void setStatus(String newStatus){\n\n //assigns the value of newStatus to the status field\n this.status = newStatus;\n }",
"public Status getStatus(){\n return status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\n this.status = status;\n }"
] |
[
"0.7656765",
"0.76468766",
"0.7565312",
"0.7561203",
"0.75449044",
"0.75449044",
"0.75349724",
"0.74959093",
"0.74959093",
"0.74959093",
"0.74959093",
"0.74959093",
"0.74959093",
"0.74959093",
"0.7482147",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.74783385",
"0.74783385",
"0.746719",
"0.74658287",
"0.746098",
"0.7456925",
"0.7452718",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435248",
"0.7432568",
"0.7432568",
"0.7425985",
"0.74143654",
"0.74118876",
"0.7398544",
"0.7398282",
"0.73973185",
"0.73973185",
"0.7396562",
"0.73950607",
"0.7392215",
"0.7392215",
"0.7382456",
"0.7382456",
"0.7378742",
"0.73726434",
"0.73726434",
"0.7368736",
"0.73626804",
"0.7351154",
"0.7345713",
"0.7345713",
"0.73451585",
"0.7332328",
"0.7329264",
"0.73258084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.728639",
"0.728639",
"0.728639"
] |
0.0
|
-1
|
.Status status = 1;
|
@java.lang.Override
public entities.Torrent.Status getStatus() {
@SuppressWarnings("deprecation")
entities.Torrent.Status result = entities.Torrent.Status.valueOf(status_);
return result == null ? entities.Torrent.Status.UNRECOGNIZED : result;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setStatus(String status) { this.status = status; }",
"void setStatus(STATUS status);",
"public void setStatus(EnumVar status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\r\n\t this.status = status;\r\n\t }",
"public void setStatus(Integer status) {\r\n this.status = status;\r\n }",
"public void setStatus(Integer status) {\r\n this.status = status;\r\n }",
"void setStatus(int status);",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(int status){\r\n\t\tthis.status=status;\r\n\t}",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(int status);",
"public void setStatus(int status);",
"public void setStatus(Boolean s){ status = s;}",
"public void setStatus(int status) {\n STATUS = status;\n }",
"public void setStatus(Status newStatus){\n status = newStatus;\n }",
"public void setStatus(String stat)\n {\n status = stat;\n }",
"private void setStatus(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n status_ = value;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(long status) {\r\n this.status = status;\r\n }",
"public void setStatus(Integer status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(Integer status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(String status) {\r\n this.status = status;\r\n }",
"public void setStatus(java.lang.Object status) {\n this.status = status;\n }",
"public void setStatus(Status status)\n {\n this.status = status;\n }",
"public void setgetStatus()\r\n\t{\r\n\t\tthis.status = 'S';\r\n\t}",
"public void setStatus(Byte status) {\r\n\t\tthis.status = status;\r\n\t}",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"@Override\n\t\tpublic void setStatus(int status) {\n\t\t\t\n\t\t}",
"public void setStatus(StatusEnum status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(Byte status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(int status) {\n this.status = status;\n }",
"public void setStatus(int status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\r\n this.status = status;\r\n }",
"public void setStatus(String status) {\r\n this.status = status;\r\n }",
"public void setStatus(String status) {\r\n this.status = status;\r\n }",
"public void setStatus(Short status) {\n this.status = status;\n }",
"public void setStatus(STATUS status) {\n this.status = status;\n }",
"void setStatus(String status);",
"public void setStatus(Short status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(Short status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(int v) \n {\n \n if (this.status != v)\n {\n this.status = v;\n setModified(true);\n }\n \n \n }",
"public void setStatus( Short status ) {\n this.status = status;\n }",
"public void setStatus(String newStatus){\n\n //assigns the value of newStatus to the status field\n this.status = newStatus;\n }",
"public Status getStatus(){\n return status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\n this.status = status;\n }"
] |
[
"0.7656765",
"0.76468766",
"0.7565312",
"0.7561203",
"0.75449044",
"0.75449044",
"0.75349724",
"0.74959093",
"0.74959093",
"0.74959093",
"0.74959093",
"0.74959093",
"0.74959093",
"0.74959093",
"0.7482147",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.74783385",
"0.74783385",
"0.746719",
"0.74658287",
"0.746098",
"0.7456925",
"0.7452718",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435248",
"0.7432568",
"0.7432568",
"0.7425985",
"0.74143654",
"0.74118876",
"0.7398544",
"0.7398282",
"0.73973185",
"0.73973185",
"0.7396562",
"0.73950607",
"0.7392215",
"0.7392215",
"0.7382456",
"0.7382456",
"0.7378742",
"0.73726434",
"0.73726434",
"0.7368736",
"0.73626804",
"0.7351154",
"0.7345713",
"0.7345713",
"0.73451585",
"0.7332328",
"0.7329264",
"0.73258084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.728639",
"0.728639",
"0.728639"
] |
0.0
|
-1
|
.Status status = 1;
|
public Builder setStatus(entities.Torrent.Status value) {
if (value == null) {
throw new NullPointerException();
}
status_ = value.getNumber();
onChanged();
return this;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setStatus(String status) { this.status = status; }",
"void setStatus(STATUS status);",
"public void setStatus(EnumVar status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\r\n\t this.status = status;\r\n\t }",
"public void setStatus(Integer status) {\r\n this.status = status;\r\n }",
"public void setStatus(Integer status) {\r\n this.status = status;\r\n }",
"void setStatus(int status);",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(int status){\r\n\t\tthis.status=status;\r\n\t}",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(int status);",
"public void setStatus(int status);",
"public void setStatus(Boolean s){ status = s;}",
"public void setStatus(int status) {\n STATUS = status;\n }",
"public void setStatus(Status newStatus){\n status = newStatus;\n }",
"public void setStatus(String stat)\n {\n status = stat;\n }",
"private void setStatus(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n status_ = value;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(long status) {\r\n this.status = status;\r\n }",
"public void setStatus(Integer status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(Integer status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(String status) {\r\n this.status = status;\r\n }",
"public void setStatus(java.lang.Object status) {\n this.status = status;\n }",
"public void setStatus(Status status)\n {\n this.status = status;\n }",
"public void setgetStatus()\r\n\t{\r\n\t\tthis.status = 'S';\r\n\t}",
"public void setStatus(Byte status) {\r\n\t\tthis.status = status;\r\n\t}",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"@Override\n\t\tpublic void setStatus(int status) {\n\t\t\t\n\t\t}",
"public void setStatus(StatusEnum status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(Byte status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(int status) {\n this.status = status;\n }",
"public void setStatus(int status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\r\n this.status = status;\r\n }",
"public void setStatus(String status) {\r\n this.status = status;\r\n }",
"public void setStatus(String status) {\r\n this.status = status;\r\n }",
"public void setStatus(Short status) {\n this.status = status;\n }",
"public void setStatus(STATUS status) {\n this.status = status;\n }",
"void setStatus(String status);",
"public void setStatus(Short status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(Short status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(int v) \n {\n \n if (this.status != v)\n {\n this.status = v;\n setModified(true);\n }\n \n \n }",
"public void setStatus( Short status ) {\n this.status = status;\n }",
"public void setStatus(String newStatus){\n\n //assigns the value of newStatus to the status field\n this.status = newStatus;\n }",
"public Status getStatus(){\n return status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\n this.status = status;\n }"
] |
[
"0.7656765",
"0.76468766",
"0.7565312",
"0.7561203",
"0.75449044",
"0.75449044",
"0.75349724",
"0.74959093",
"0.74959093",
"0.74959093",
"0.74959093",
"0.74959093",
"0.74959093",
"0.74959093",
"0.7482147",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.74783385",
"0.74783385",
"0.746719",
"0.74658287",
"0.746098",
"0.7456925",
"0.7452718",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435248",
"0.7432568",
"0.7432568",
"0.7425985",
"0.74143654",
"0.74118876",
"0.7398544",
"0.7398282",
"0.73973185",
"0.73973185",
"0.7396562",
"0.73950607",
"0.7392215",
"0.7392215",
"0.7382456",
"0.7382456",
"0.7378742",
"0.73726434",
"0.73726434",
"0.7368736",
"0.73626804",
"0.7351154",
"0.7345713",
"0.7345713",
"0.73451585",
"0.7332328",
"0.7329264",
"0.73258084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.728639",
"0.728639",
"0.728639"
] |
0.0
|
-1
|
.Status status = 1;
|
public Builder clearStatus() {
status_ = 0;
onChanged();
return this;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setStatus(String status) { this.status = status; }",
"void setStatus(STATUS status);",
"public void setStatus(EnumVar status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\r\n\t this.status = status;\r\n\t }",
"public void setStatus(Integer status) {\r\n this.status = status;\r\n }",
"public void setStatus(Integer status) {\r\n this.status = status;\r\n }",
"void setStatus(int status);",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(int status){\r\n\t\tthis.status=status;\r\n\t}",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(int status);",
"public void setStatus(int status);",
"public void setStatus(Boolean s){ status = s;}",
"public void setStatus(int status) {\n STATUS = status;\n }",
"public void setStatus(Status newStatus){\n status = newStatus;\n }",
"public void setStatus(String stat)\n {\n status = stat;\n }",
"private void setStatus(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n status_ = value;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(long status) {\r\n this.status = status;\r\n }",
"public void setStatus(Integer status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(Integer status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(String status) {\r\n this.status = status;\r\n }",
"public void setStatus(java.lang.Object status) {\n this.status = status;\n }",
"public void setStatus(Status status)\n {\n this.status = status;\n }",
"public void setgetStatus()\r\n\t{\r\n\t\tthis.status = 'S';\r\n\t}",
"public void setStatus(Byte status) {\r\n\t\tthis.status = status;\r\n\t}",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"@Override\n\t\tpublic void setStatus(int status) {\n\t\t\t\n\t\t}",
"public void setStatus(StatusEnum status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(Byte status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(int status) {\n this.status = status;\n }",
"public void setStatus(int status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\r\n this.status = status;\r\n }",
"public void setStatus(String status) {\r\n this.status = status;\r\n }",
"public void setStatus(String status) {\r\n this.status = status;\r\n }",
"public void setStatus(Short status) {\n this.status = status;\n }",
"public void setStatus(STATUS status) {\n this.status = status;\n }",
"void setStatus(String status);",
"public void setStatus(Short status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(Short status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(int v) \n {\n \n if (this.status != v)\n {\n this.status = v;\n setModified(true);\n }\n \n \n }",
"public void setStatus( Short status ) {\n this.status = status;\n }",
"public void setStatus(String newStatus){\n\n //assigns the value of newStatus to the status field\n this.status = newStatus;\n }",
"public Status getStatus(){\n return status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\n this.status = status;\n }"
] |
[
"0.7656765",
"0.76468766",
"0.7565312",
"0.7561203",
"0.75449044",
"0.75449044",
"0.75349724",
"0.74959093",
"0.74959093",
"0.74959093",
"0.74959093",
"0.74959093",
"0.74959093",
"0.74959093",
"0.7482147",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.74783385",
"0.74783385",
"0.746719",
"0.74658287",
"0.746098",
"0.7456925",
"0.7452718",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435248",
"0.7432568",
"0.7432568",
"0.7425985",
"0.74143654",
"0.74118876",
"0.7398544",
"0.7398282",
"0.73973185",
"0.73973185",
"0.7396562",
"0.73950607",
"0.7392215",
"0.7392215",
"0.7382456",
"0.7382456",
"0.7378742",
"0.73726434",
"0.73726434",
"0.7368736",
"0.73626804",
"0.7351154",
"0.7345713",
"0.7345713",
"0.73451585",
"0.7332328",
"0.7329264",
"0.73258084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.728639",
"0.728639",
"0.728639"
] |
0.0
|
-1
|
string errorMessage = 2;
|
public java.lang.String getErrorMessage() {
java.lang.Object ref = errorMessage_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
errorMessage_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"String errorMessage();",
"private void error(String string) {\n\t\r\n}",
"String getErrorMessage();",
"String getErrorMessage();",
"String getError(int i) {\n if (i >= 0 & i < msgs.length)\n return msgs[i];\n else\n return \"Invalid Error Code\";\n }",
"java.lang.String getError();",
"java.lang.String getError();",
"java.lang.String getError();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"void showErrorMsg(String string);",
"String getGetErrorMessage();",
"java.lang.String getErr();",
"public String getErrorString()\r\n\t{\r\n\t\t\r\n\t\treturn ERROR_STRING;\r\n\t}",
"public void error(String string) {\n\t\t\n\t}",
"String getInvalidMessage();",
"private static String getMessage(int code) {\n switch (code) {\n case ME_DIV_BY_ZERO:\n return \"Attempt to divide by zero.\";\n case ME_ASSIGNLITERAL:\n return \"Attempt to assign to a literal.\";\n case ME_NONVARASSIGN:\n return \"Attempt to assign to a non-variable.\";\n default:\n return \"Unknown error.\";\n }\n }",
"String getErrorsString();",
"public String error();",
"public String getError() {\n\treturn mistake;\n }",
"private String getErrorString() {\n\t\treturn \"GUID:ERROR:\" + mErrors[0][0]\n\t\t + \":\" + mErrors[1][0]\n\t\t + \":\" + mErrors[2][0]\n\t\t + \":\" + mErrors[3][0];\n\t}",
"public String getErrorMessage() \r\n\t{\r\n\t\t\r\n\t\treturn errorMessage;\r\n\t\t\r\n\t}",
"public java.lang.String getErrorMessage(){\n return localErrorMessage;\n }",
"java.lang.String getErrmsg();",
"public String getErrorString()\n\t{\n\t\treturn errorString;\n\t}",
"public static String getLastErrorMessage()\r\n\t{\n\t\treturn lastAlert;\r\n\t}",
"String getMessage();",
"String getMessage();",
"String getMessage();",
"private int getErrorId(final String message) {\n\t\tif (isLowerCase(message)) {\n\t\t\treturn ERROR_LOWER_CASE;\n\t\t} else if (isUnunsedMacro(message)) {\n\t\t\treturn ERROR_UNUSED_MACRO;\n\t\t} else if (isUnunsedVariable(message)) {\n\t\t\treturn ERROR_UNUSED_VARIABLE;\n\t\t} else if (isEndLineSpace(message) || isNoSpace(message)) {\n\t\t\treturn ERROR_NO_SPACE;\n\t\t} else if (isOneSpace(message)) {\n\t\t\treturn ERROR_ONE_SPACE;\n\t\t} else {\n\t\t\treturn ERROR_INVALID;\n\t\t}\n\t}",
"public String getErrorString(String message) {\n \t\treturn getString(new StringBuffer(\"error.\").append(message).toString());\n \t}",
"String getErrorMessage(E input);",
"public String errorMessage()\n {\n return new String(errorMessageAsBytes());\n }",
"String Message ();",
"public String errorMessage() {\n return errorMessage;\n }",
"void SemErr(String str);",
"public String getErrorMessage()\n {\n return errorMessage;\n }",
"ErrorCodes(int code){\n this.code = code;\n //this.message = message;\n }",
"int getErrorCode();",
"public String getErrorCode();",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n errorMessage_ = s;\n }\n return s;\n }\n }",
"void showError(@StringRes int errorMessage);",
"void showError(String errorMessage);",
"private static int getErrorLine(String errmsg){\n\t\treturn Integer.parseInt(errmsg.substring(0,errmsg.indexOf(\":\")).substring(errmsg.substring(0,errmsg.indexOf(\":\")).lastIndexOf(\" \")+1));\n\t}",
"public String errorMessage()\n {\n return edma_errorMsg;\n }",
"public String getErrorMessage() {\r\n return this.errorMessage;\r\n }",
"public String errorMessage() {\n return this.errorMessage;\n }",
"public String getErrorMessage() {\n\t\treturn errorMessage;\n\t}",
"public int getError() {\n return error;\n }",
"public String getErrorMessage() {\n return this.errorMessage;\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"void setErrorMessage(String errorMessage);",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"static int errorMsg(int eCode)\n {\n if (eCode == 0) return 0;\n String message = \"\";\n switch (eCode){\n case 1: message = \"Division by zero\"; break;\n case 2: message = \"Non-matching parenthesis in function\"; break;\n case 3: message = \"Must enclose negative exponents in parentheses\"; break;\n case 4: message = \"Incorrect Operator Syntax\"; break;\n case 5: message = \"Rightfunctions must use parenthesis. (example: ABS(-2);\"; break;\n case 6: message = \"Unrecognized token in function srtring.\"; break;\n case 8: message = \"Can not raise negative number to a fractional power.\"; break;\n case 10:message = \"Input a real number with no operators\"; break;\n }\n JOptionPane.showMessageDialog(null, message, \"Error \"+eCode, JOptionPane.ERROR_MESSAGE);\n return 0;\n }",
"public String getError() {\n return errMsg;\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n }\n }",
"public String getMsgError() {\r\n\t\treturn msgError;\r\n\t}",
"public String getErrorMessage() {\n return errorMessage;\n }",
"public String getErrorMessage() {\n return errorMessage;\n }",
"public String getErrorMessage() {\n return errorMessage;\n }",
"String getFailureMessage();",
"public int error() {\n return this.error;\n }",
"public String getParseErrorMessage();",
"public String getErrorMessage() {\n return ERROR_MESSAGE;\n }",
"public String getError() {\r\n if (scriptError == null) return \"\";\r\n return scriptError;\r\n }",
"private String getGUIErrorMsg(long errorcode) {\n\t\tif (errorcode == 0) {\n\t\t\treturn \"This popup shouldn't have launched!\";\n\t\t} else if (errorcode == 9) {\n\t\t\treturn \"Latitude input format incorrect!\\nValid Latitude values are -90 to 90 with negative values being south Latitude.\";\n\t\t} else if (errorcode == 10) {\n\t\t\treturn \"Longitude input format incorrect!\\nValid Longitude values are -180 to 180 with negative values being west latitude.\";\n\t\t} else if (errorcode == 11) {\n\t\t\treturn \"Date input format incorrect!\\nValid dates go <year>-<month>-<day>\\nValid month values are 1- 12 and valid day values are 1 - 31.\";\n\t\t} else if (errorcode == 12) {\n\t\t\treturn \"Time input format incorrect!\\nValid times go <hour>-<minute>-<second>\\nValid hour values are 0 - 23 and valid minute and second values are 0 - 59\";\n\t\t} else if (errorcode == 1) {\n\t\t\treturn \"Invalid latitude!\\nValid Latitude values are -90 to 90 with negative values being south Latitude.\";\n\t\t} else if (errorcode == 2) {\n\t\t\treturn \"Invalid Longitude!\\nValid Longitude values are -180 to 180 with negative values being west latitude.\";\n\t\t} else if (errorcode == 3) {\n\t\t\treturn \"Invalid Year!\\nValid year values are \" + Integer.MIN_VALUE + \" - \" + Integer.MAX_VALUE + \".\";\n\t\t} else if (errorcode == 4) {\n\t\t\treturn \"Invalid Month!\\nValid month values are 1 - 12\";\n\t\t} else if (errorcode == 5) {\n\t\t\treturn \"Invalid Day!\\nValid day values are 1 - 31\";\n\t\t} else if (errorcode == 6) {\n\t\t\treturn \"Invalid Hour!\\nValid hour values are 0 - 23\";\n\t\t} else if (errorcode == 7) {\n\t\t\treturn \"Invalid Minute!\\nValid minute values are 0 - 59\";\n\t\t} else if (errorcode == 8) {\n\t\t\treturn \"Invalid Second!\\nValid second values are 0 - 59\";\n\t\t} \n\t\treturn \"Undefined Error Message!\";\n\t}",
"public void setErrorMsg(String text) {\n this.errorMsg = text;\n }",
"public int getErrorNo() {\n return this.errorNo;\n }",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();"
] |
[
"0.7234827",
"0.68487597",
"0.68242407",
"0.68242407",
"0.66320926",
"0.6613902",
"0.6613902",
"0.6613902",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.6587221",
"0.6458624",
"0.642881",
"0.6387629",
"0.6339448",
"0.63337046",
"0.6318866",
"0.6310054",
"0.6266495",
"0.6207546",
"0.6169787",
"0.6162002",
"0.61556125",
"0.61209476",
"0.6114965",
"0.61042917",
"0.60988075",
"0.60988075",
"0.60988075",
"0.60916275",
"0.60737956",
"0.6044167",
"0.60035205",
"0.59917176",
"0.59845275",
"0.59643966",
"0.5963419",
"0.59538627",
"0.5917793",
"0.58881736",
"0.58858836",
"0.5880861",
"0.58786815",
"0.5865479",
"0.5863698",
"0.5842632",
"0.5837601",
"0.5828023",
"0.58268774",
"0.58249444",
"0.5820853",
"0.5818837",
"0.5808825",
"0.5808012",
"0.5803665",
"0.57976645",
"0.5796016",
"0.57934284",
"0.57934284",
"0.57934284",
"0.5786855",
"0.57868457",
"0.5785435",
"0.578205",
"0.576942",
"0.57514906",
"0.57502955",
"0.5743453",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053"
] |
0.58391654
|
63
|
string errorMessage = 2;
|
public com.google.protobuf.ByteString
getErrorMessageBytes() {
java.lang.Object ref = errorMessage_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
errorMessage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"String errorMessage();",
"private void error(String string) {\n\t\r\n}",
"String getErrorMessage();",
"String getErrorMessage();",
"String getError(int i) {\n if (i >= 0 & i < msgs.length)\n return msgs[i];\n else\n return \"Invalid Error Code\";\n }",
"java.lang.String getError();",
"java.lang.String getError();",
"java.lang.String getError();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"void showErrorMsg(String string);",
"String getGetErrorMessage();",
"java.lang.String getErr();",
"public String getErrorString()\r\n\t{\r\n\t\t\r\n\t\treturn ERROR_STRING;\r\n\t}",
"public void error(String string) {\n\t\t\n\t}",
"String getInvalidMessage();",
"private static String getMessage(int code) {\n switch (code) {\n case ME_DIV_BY_ZERO:\n return \"Attempt to divide by zero.\";\n case ME_ASSIGNLITERAL:\n return \"Attempt to assign to a literal.\";\n case ME_NONVARASSIGN:\n return \"Attempt to assign to a non-variable.\";\n default:\n return \"Unknown error.\";\n }\n }",
"String getErrorsString();",
"public String error();",
"public String getError() {\n\treturn mistake;\n }",
"private String getErrorString() {\n\t\treturn \"GUID:ERROR:\" + mErrors[0][0]\n\t\t + \":\" + mErrors[1][0]\n\t\t + \":\" + mErrors[2][0]\n\t\t + \":\" + mErrors[3][0];\n\t}",
"public String getErrorMessage() \r\n\t{\r\n\t\t\r\n\t\treturn errorMessage;\r\n\t\t\r\n\t}",
"public java.lang.String getErrorMessage(){\n return localErrorMessage;\n }",
"java.lang.String getErrmsg();",
"public String getErrorString()\n\t{\n\t\treturn errorString;\n\t}",
"public static String getLastErrorMessage()\r\n\t{\n\t\treturn lastAlert;\r\n\t}",
"String getMessage();",
"String getMessage();",
"String getMessage();",
"private int getErrorId(final String message) {\n\t\tif (isLowerCase(message)) {\n\t\t\treturn ERROR_LOWER_CASE;\n\t\t} else if (isUnunsedMacro(message)) {\n\t\t\treturn ERROR_UNUSED_MACRO;\n\t\t} else if (isUnunsedVariable(message)) {\n\t\t\treturn ERROR_UNUSED_VARIABLE;\n\t\t} else if (isEndLineSpace(message) || isNoSpace(message)) {\n\t\t\treturn ERROR_NO_SPACE;\n\t\t} else if (isOneSpace(message)) {\n\t\t\treturn ERROR_ONE_SPACE;\n\t\t} else {\n\t\t\treturn ERROR_INVALID;\n\t\t}\n\t}",
"public String getErrorString(String message) {\n \t\treturn getString(new StringBuffer(\"error.\").append(message).toString());\n \t}",
"String getErrorMessage(E input);",
"public String errorMessage()\n {\n return new String(errorMessageAsBytes());\n }",
"String Message ();",
"public String errorMessage() {\n return errorMessage;\n }",
"void SemErr(String str);",
"public String getErrorMessage()\n {\n return errorMessage;\n }",
"ErrorCodes(int code){\n this.code = code;\n //this.message = message;\n }",
"int getErrorCode();",
"public String getErrorCode();",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n errorMessage_ = s;\n }\n return s;\n }\n }",
"void showError(@StringRes int errorMessage);",
"void showError(String errorMessage);",
"private static int getErrorLine(String errmsg){\n\t\treturn Integer.parseInt(errmsg.substring(0,errmsg.indexOf(\":\")).substring(errmsg.substring(0,errmsg.indexOf(\":\")).lastIndexOf(\" \")+1));\n\t}",
"public String errorMessage()\n {\n return edma_errorMsg;\n }",
"public String getErrorMessage() {\r\n return this.errorMessage;\r\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public String errorMessage() {\n return this.errorMessage;\n }",
"public String getErrorMessage() {\n\t\treturn errorMessage;\n\t}",
"public int getError() {\n return error;\n }",
"public String getErrorMessage() {\n return this.errorMessage;\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"void setErrorMessage(String errorMessage);",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"static int errorMsg(int eCode)\n {\n if (eCode == 0) return 0;\n String message = \"\";\n switch (eCode){\n case 1: message = \"Division by zero\"; break;\n case 2: message = \"Non-matching parenthesis in function\"; break;\n case 3: message = \"Must enclose negative exponents in parentheses\"; break;\n case 4: message = \"Incorrect Operator Syntax\"; break;\n case 5: message = \"Rightfunctions must use parenthesis. (example: ABS(-2);\"; break;\n case 6: message = \"Unrecognized token in function srtring.\"; break;\n case 8: message = \"Can not raise negative number to a fractional power.\"; break;\n case 10:message = \"Input a real number with no operators\"; break;\n }\n JOptionPane.showMessageDialog(null, message, \"Error \"+eCode, JOptionPane.ERROR_MESSAGE);\n return 0;\n }",
"public String getError() {\n return errMsg;\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n }\n }",
"public String getMsgError() {\r\n\t\treturn msgError;\r\n\t}",
"public String getErrorMessage() {\n return errorMessage;\n }",
"public String getErrorMessage() {\n return errorMessage;\n }",
"public String getErrorMessage() {\n return errorMessage;\n }",
"String getFailureMessage();",
"public int error() {\n return this.error;\n }",
"public String getParseErrorMessage();",
"public String getErrorMessage() {\n return ERROR_MESSAGE;\n }",
"public String getError() {\r\n if (scriptError == null) return \"\";\r\n return scriptError;\r\n }",
"private String getGUIErrorMsg(long errorcode) {\n\t\tif (errorcode == 0) {\n\t\t\treturn \"This popup shouldn't have launched!\";\n\t\t} else if (errorcode == 9) {\n\t\t\treturn \"Latitude input format incorrect!\\nValid Latitude values are -90 to 90 with negative values being south Latitude.\";\n\t\t} else if (errorcode == 10) {\n\t\t\treturn \"Longitude input format incorrect!\\nValid Longitude values are -180 to 180 with negative values being west latitude.\";\n\t\t} else if (errorcode == 11) {\n\t\t\treturn \"Date input format incorrect!\\nValid dates go <year>-<month>-<day>\\nValid month values are 1- 12 and valid day values are 1 - 31.\";\n\t\t} else if (errorcode == 12) {\n\t\t\treturn \"Time input format incorrect!\\nValid times go <hour>-<minute>-<second>\\nValid hour values are 0 - 23 and valid minute and second values are 0 - 59\";\n\t\t} else if (errorcode == 1) {\n\t\t\treturn \"Invalid latitude!\\nValid Latitude values are -90 to 90 with negative values being south Latitude.\";\n\t\t} else if (errorcode == 2) {\n\t\t\treturn \"Invalid Longitude!\\nValid Longitude values are -180 to 180 with negative values being west latitude.\";\n\t\t} else if (errorcode == 3) {\n\t\t\treturn \"Invalid Year!\\nValid year values are \" + Integer.MIN_VALUE + \" - \" + Integer.MAX_VALUE + \".\";\n\t\t} else if (errorcode == 4) {\n\t\t\treturn \"Invalid Month!\\nValid month values are 1 - 12\";\n\t\t} else if (errorcode == 5) {\n\t\t\treturn \"Invalid Day!\\nValid day values are 1 - 31\";\n\t\t} else if (errorcode == 6) {\n\t\t\treturn \"Invalid Hour!\\nValid hour values are 0 - 23\";\n\t\t} else if (errorcode == 7) {\n\t\t\treturn \"Invalid Minute!\\nValid minute values are 0 - 59\";\n\t\t} else if (errorcode == 8) {\n\t\t\treturn \"Invalid Second!\\nValid second values are 0 - 59\";\n\t\t} \n\t\treturn \"Undefined Error Message!\";\n\t}",
"public void setErrorMsg(String text) {\n this.errorMsg = text;\n }",
"public int getErrorNo() {\n return this.errorNo;\n }",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();"
] |
[
"0.7234827",
"0.68487597",
"0.68242407",
"0.68242407",
"0.66320926",
"0.6613902",
"0.6613902",
"0.6613902",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.6587221",
"0.6458624",
"0.642881",
"0.6387629",
"0.6339448",
"0.63337046",
"0.6318866",
"0.6310054",
"0.6266495",
"0.6207546",
"0.6169787",
"0.6162002",
"0.61556125",
"0.61209476",
"0.6114965",
"0.61042917",
"0.60988075",
"0.60988075",
"0.60988075",
"0.60916275",
"0.60737956",
"0.6044167",
"0.60035205",
"0.59917176",
"0.59845275",
"0.59643966",
"0.5963419",
"0.59538627",
"0.5917793",
"0.58881736",
"0.58858836",
"0.5880861",
"0.58786815",
"0.5865479",
"0.5863698",
"0.5842632",
"0.583974",
"0.583974",
"0.583974",
"0.583974",
"0.583974",
"0.583974",
"0.583974",
"0.58391654",
"0.58391654",
"0.58391654",
"0.5837601",
"0.5828023",
"0.58268774",
"0.58249444",
"0.5820853",
"0.5818837",
"0.5808825",
"0.5808012",
"0.5803665",
"0.57976645",
"0.5796016",
"0.57934284",
"0.57934284",
"0.57934284",
"0.5786855",
"0.57868457",
"0.5785435",
"0.578205",
"0.576942",
"0.57514906",
"0.57502955",
"0.5743453",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053"
] |
0.0
|
-1
|
string errorMessage = 2;
|
public Builder setErrorMessage(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
errorMessage_ = value;
onChanged();
return this;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"String errorMessage();",
"private void error(String string) {\n\t\r\n}",
"String getErrorMessage();",
"String getErrorMessage();",
"String getError(int i) {\n if (i >= 0 & i < msgs.length)\n return msgs[i];\n else\n return \"Invalid Error Code\";\n }",
"java.lang.String getError();",
"java.lang.String getError();",
"java.lang.String getError();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"void showErrorMsg(String string);",
"String getGetErrorMessage();",
"java.lang.String getErr();",
"public String getErrorString()\r\n\t{\r\n\t\t\r\n\t\treturn ERROR_STRING;\r\n\t}",
"public void error(String string) {\n\t\t\n\t}",
"String getInvalidMessage();",
"private static String getMessage(int code) {\n switch (code) {\n case ME_DIV_BY_ZERO:\n return \"Attempt to divide by zero.\";\n case ME_ASSIGNLITERAL:\n return \"Attempt to assign to a literal.\";\n case ME_NONVARASSIGN:\n return \"Attempt to assign to a non-variable.\";\n default:\n return \"Unknown error.\";\n }\n }",
"String getErrorsString();",
"public String error();",
"public String getError() {\n\treturn mistake;\n }",
"private String getErrorString() {\n\t\treturn \"GUID:ERROR:\" + mErrors[0][0]\n\t\t + \":\" + mErrors[1][0]\n\t\t + \":\" + mErrors[2][0]\n\t\t + \":\" + mErrors[3][0];\n\t}",
"public String getErrorMessage() \r\n\t{\r\n\t\t\r\n\t\treturn errorMessage;\r\n\t\t\r\n\t}",
"public java.lang.String getErrorMessage(){\n return localErrorMessage;\n }",
"java.lang.String getErrmsg();",
"public String getErrorString()\n\t{\n\t\treturn errorString;\n\t}",
"public static String getLastErrorMessage()\r\n\t{\n\t\treturn lastAlert;\r\n\t}",
"String getMessage();",
"String getMessage();",
"String getMessage();",
"private int getErrorId(final String message) {\n\t\tif (isLowerCase(message)) {\n\t\t\treturn ERROR_LOWER_CASE;\n\t\t} else if (isUnunsedMacro(message)) {\n\t\t\treturn ERROR_UNUSED_MACRO;\n\t\t} else if (isUnunsedVariable(message)) {\n\t\t\treturn ERROR_UNUSED_VARIABLE;\n\t\t} else if (isEndLineSpace(message) || isNoSpace(message)) {\n\t\t\treturn ERROR_NO_SPACE;\n\t\t} else if (isOneSpace(message)) {\n\t\t\treturn ERROR_ONE_SPACE;\n\t\t} else {\n\t\t\treturn ERROR_INVALID;\n\t\t}\n\t}",
"public String getErrorString(String message) {\n \t\treturn getString(new StringBuffer(\"error.\").append(message).toString());\n \t}",
"String getErrorMessage(E input);",
"public String errorMessage()\n {\n return new String(errorMessageAsBytes());\n }",
"String Message ();",
"public String errorMessage() {\n return errorMessage;\n }",
"void SemErr(String str);",
"public String getErrorMessage()\n {\n return errorMessage;\n }",
"ErrorCodes(int code){\n this.code = code;\n //this.message = message;\n }",
"int getErrorCode();",
"public String getErrorCode();",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n errorMessage_ = s;\n }\n return s;\n }\n }",
"void showError(@StringRes int errorMessage);",
"void showError(String errorMessage);",
"private static int getErrorLine(String errmsg){\n\t\treturn Integer.parseInt(errmsg.substring(0,errmsg.indexOf(\":\")).substring(errmsg.substring(0,errmsg.indexOf(\":\")).lastIndexOf(\" \")+1));\n\t}",
"public String errorMessage()\n {\n return edma_errorMsg;\n }",
"public String getErrorMessage() {\r\n return this.errorMessage;\r\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public String errorMessage() {\n return this.errorMessage;\n }",
"public String getErrorMessage() {\n\t\treturn errorMessage;\n\t}",
"public int getError() {\n return error;\n }",
"public String getErrorMessage() {\n return this.errorMessage;\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"void setErrorMessage(String errorMessage);",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"static int errorMsg(int eCode)\n {\n if (eCode == 0) return 0;\n String message = \"\";\n switch (eCode){\n case 1: message = \"Division by zero\"; break;\n case 2: message = \"Non-matching parenthesis in function\"; break;\n case 3: message = \"Must enclose negative exponents in parentheses\"; break;\n case 4: message = \"Incorrect Operator Syntax\"; break;\n case 5: message = \"Rightfunctions must use parenthesis. (example: ABS(-2);\"; break;\n case 6: message = \"Unrecognized token in function srtring.\"; break;\n case 8: message = \"Can not raise negative number to a fractional power.\"; break;\n case 10:message = \"Input a real number with no operators\"; break;\n }\n JOptionPane.showMessageDialog(null, message, \"Error \"+eCode, JOptionPane.ERROR_MESSAGE);\n return 0;\n }",
"public String getError() {\n return errMsg;\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n }\n }",
"public String getMsgError() {\r\n\t\treturn msgError;\r\n\t}",
"public String getErrorMessage() {\n return errorMessage;\n }",
"public String getErrorMessage() {\n return errorMessage;\n }",
"public String getErrorMessage() {\n return errorMessage;\n }",
"String getFailureMessage();",
"public int error() {\n return this.error;\n }",
"public String getParseErrorMessage();",
"public String getErrorMessage() {\n return ERROR_MESSAGE;\n }",
"public String getError() {\r\n if (scriptError == null) return \"\";\r\n return scriptError;\r\n }",
"private String getGUIErrorMsg(long errorcode) {\n\t\tif (errorcode == 0) {\n\t\t\treturn \"This popup shouldn't have launched!\";\n\t\t} else if (errorcode == 9) {\n\t\t\treturn \"Latitude input format incorrect!\\nValid Latitude values are -90 to 90 with negative values being south Latitude.\";\n\t\t} else if (errorcode == 10) {\n\t\t\treturn \"Longitude input format incorrect!\\nValid Longitude values are -180 to 180 with negative values being west latitude.\";\n\t\t} else if (errorcode == 11) {\n\t\t\treturn \"Date input format incorrect!\\nValid dates go <year>-<month>-<day>\\nValid month values are 1- 12 and valid day values are 1 - 31.\";\n\t\t} else if (errorcode == 12) {\n\t\t\treturn \"Time input format incorrect!\\nValid times go <hour>-<minute>-<second>\\nValid hour values are 0 - 23 and valid minute and second values are 0 - 59\";\n\t\t} else if (errorcode == 1) {\n\t\t\treturn \"Invalid latitude!\\nValid Latitude values are -90 to 90 with negative values being south Latitude.\";\n\t\t} else if (errorcode == 2) {\n\t\t\treturn \"Invalid Longitude!\\nValid Longitude values are -180 to 180 with negative values being west latitude.\";\n\t\t} else if (errorcode == 3) {\n\t\t\treturn \"Invalid Year!\\nValid year values are \" + Integer.MIN_VALUE + \" - \" + Integer.MAX_VALUE + \".\";\n\t\t} else if (errorcode == 4) {\n\t\t\treturn \"Invalid Month!\\nValid month values are 1 - 12\";\n\t\t} else if (errorcode == 5) {\n\t\t\treturn \"Invalid Day!\\nValid day values are 1 - 31\";\n\t\t} else if (errorcode == 6) {\n\t\t\treturn \"Invalid Hour!\\nValid hour values are 0 - 23\";\n\t\t} else if (errorcode == 7) {\n\t\t\treturn \"Invalid Minute!\\nValid minute values are 0 - 59\";\n\t\t} else if (errorcode == 8) {\n\t\t\treturn \"Invalid Second!\\nValid second values are 0 - 59\";\n\t\t} \n\t\treturn \"Undefined Error Message!\";\n\t}",
"public void setErrorMsg(String text) {\n this.errorMsg = text;\n }",
"public int getErrorNo() {\n return this.errorNo;\n }",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();"
] |
[
"0.7234827",
"0.68487597",
"0.68242407",
"0.68242407",
"0.66320926",
"0.6613902",
"0.6613902",
"0.6613902",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.6587221",
"0.6458624",
"0.642881",
"0.6387629",
"0.6339448",
"0.63337046",
"0.6318866",
"0.6310054",
"0.6266495",
"0.6207546",
"0.6169787",
"0.6162002",
"0.61556125",
"0.61209476",
"0.6114965",
"0.61042917",
"0.60988075",
"0.60988075",
"0.60988075",
"0.60916275",
"0.60737956",
"0.6044167",
"0.60035205",
"0.59917176",
"0.59845275",
"0.59643966",
"0.5963419",
"0.59538627",
"0.5917793",
"0.58881736",
"0.58858836",
"0.5880861",
"0.58786815",
"0.5865479",
"0.5863698",
"0.5842632",
"0.583974",
"0.583974",
"0.583974",
"0.583974",
"0.583974",
"0.583974",
"0.583974",
"0.58391654",
"0.58391654",
"0.58391654",
"0.5837601",
"0.5828023",
"0.58268774",
"0.58249444",
"0.5820853",
"0.5818837",
"0.5808825",
"0.5808012",
"0.5803665",
"0.57976645",
"0.5796016",
"0.57934284",
"0.57934284",
"0.57934284",
"0.5786855",
"0.57868457",
"0.5785435",
"0.578205",
"0.576942",
"0.57514906",
"0.57502955",
"0.5743453",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053"
] |
0.0
|
-1
|
string errorMessage = 2;
|
public Builder clearErrorMessage() {
errorMessage_ = getDefaultInstance().getErrorMessage();
onChanged();
return this;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"String errorMessage();",
"private void error(String string) {\n\t\r\n}",
"String getErrorMessage();",
"String getErrorMessage();",
"String getError(int i) {\n if (i >= 0 & i < msgs.length)\n return msgs[i];\n else\n return \"Invalid Error Code\";\n }",
"java.lang.String getError();",
"java.lang.String getError();",
"java.lang.String getError();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"void showErrorMsg(String string);",
"String getGetErrorMessage();",
"java.lang.String getErr();",
"public String getErrorString()\r\n\t{\r\n\t\t\r\n\t\treturn ERROR_STRING;\r\n\t}",
"public void error(String string) {\n\t\t\n\t}",
"String getInvalidMessage();",
"private static String getMessage(int code) {\n switch (code) {\n case ME_DIV_BY_ZERO:\n return \"Attempt to divide by zero.\";\n case ME_ASSIGNLITERAL:\n return \"Attempt to assign to a literal.\";\n case ME_NONVARASSIGN:\n return \"Attempt to assign to a non-variable.\";\n default:\n return \"Unknown error.\";\n }\n }",
"String getErrorsString();",
"public String error();",
"public String getError() {\n\treturn mistake;\n }",
"private String getErrorString() {\n\t\treturn \"GUID:ERROR:\" + mErrors[0][0]\n\t\t + \":\" + mErrors[1][0]\n\t\t + \":\" + mErrors[2][0]\n\t\t + \":\" + mErrors[3][0];\n\t}",
"public String getErrorMessage() \r\n\t{\r\n\t\t\r\n\t\treturn errorMessage;\r\n\t\t\r\n\t}",
"public java.lang.String getErrorMessage(){\n return localErrorMessage;\n }",
"java.lang.String getErrmsg();",
"public String getErrorString()\n\t{\n\t\treturn errorString;\n\t}",
"public static String getLastErrorMessage()\r\n\t{\n\t\treturn lastAlert;\r\n\t}",
"String getMessage();",
"String getMessage();",
"String getMessage();",
"private int getErrorId(final String message) {\n\t\tif (isLowerCase(message)) {\n\t\t\treturn ERROR_LOWER_CASE;\n\t\t} else if (isUnunsedMacro(message)) {\n\t\t\treturn ERROR_UNUSED_MACRO;\n\t\t} else if (isUnunsedVariable(message)) {\n\t\t\treturn ERROR_UNUSED_VARIABLE;\n\t\t} else if (isEndLineSpace(message) || isNoSpace(message)) {\n\t\t\treturn ERROR_NO_SPACE;\n\t\t} else if (isOneSpace(message)) {\n\t\t\treturn ERROR_ONE_SPACE;\n\t\t} else {\n\t\t\treturn ERROR_INVALID;\n\t\t}\n\t}",
"public String getErrorString(String message) {\n \t\treturn getString(new StringBuffer(\"error.\").append(message).toString());\n \t}",
"String getErrorMessage(E input);",
"public String errorMessage()\n {\n return new String(errorMessageAsBytes());\n }",
"String Message ();",
"public String errorMessage() {\n return errorMessage;\n }",
"void SemErr(String str);",
"public String getErrorMessage()\n {\n return errorMessage;\n }",
"ErrorCodes(int code){\n this.code = code;\n //this.message = message;\n }",
"int getErrorCode();",
"public String getErrorCode();",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n errorMessage_ = s;\n }\n return s;\n }\n }",
"void showError(@StringRes int errorMessage);",
"void showError(String errorMessage);",
"private static int getErrorLine(String errmsg){\n\t\treturn Integer.parseInt(errmsg.substring(0,errmsg.indexOf(\":\")).substring(errmsg.substring(0,errmsg.indexOf(\":\")).lastIndexOf(\" \")+1));\n\t}",
"public String errorMessage()\n {\n return edma_errorMsg;\n }",
"public String getErrorMessage() {\r\n return this.errorMessage;\r\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public String errorMessage() {\n return this.errorMessage;\n }",
"public String getErrorMessage() {\n\t\treturn errorMessage;\n\t}",
"public int getError() {\n return error;\n }",
"public String getErrorMessage() {\n return this.errorMessage;\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"void setErrorMessage(String errorMessage);",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"static int errorMsg(int eCode)\n {\n if (eCode == 0) return 0;\n String message = \"\";\n switch (eCode){\n case 1: message = \"Division by zero\"; break;\n case 2: message = \"Non-matching parenthesis in function\"; break;\n case 3: message = \"Must enclose negative exponents in parentheses\"; break;\n case 4: message = \"Incorrect Operator Syntax\"; break;\n case 5: message = \"Rightfunctions must use parenthesis. (example: ABS(-2);\"; break;\n case 6: message = \"Unrecognized token in function srtring.\"; break;\n case 8: message = \"Can not raise negative number to a fractional power.\"; break;\n case 10:message = \"Input a real number with no operators\"; break;\n }\n JOptionPane.showMessageDialog(null, message, \"Error \"+eCode, JOptionPane.ERROR_MESSAGE);\n return 0;\n }",
"public String getError() {\n return errMsg;\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n }\n }",
"public String getMsgError() {\r\n\t\treturn msgError;\r\n\t}",
"public String getErrorMessage() {\n return errorMessage;\n }",
"public String getErrorMessage() {\n return errorMessage;\n }",
"public String getErrorMessage() {\n return errorMessage;\n }",
"String getFailureMessage();",
"public int error() {\n return this.error;\n }",
"public String getParseErrorMessage();",
"public String getErrorMessage() {\n return ERROR_MESSAGE;\n }",
"public String getError() {\r\n if (scriptError == null) return \"\";\r\n return scriptError;\r\n }",
"private String getGUIErrorMsg(long errorcode) {\n\t\tif (errorcode == 0) {\n\t\t\treturn \"This popup shouldn't have launched!\";\n\t\t} else if (errorcode == 9) {\n\t\t\treturn \"Latitude input format incorrect!\\nValid Latitude values are -90 to 90 with negative values being south Latitude.\";\n\t\t} else if (errorcode == 10) {\n\t\t\treturn \"Longitude input format incorrect!\\nValid Longitude values are -180 to 180 with negative values being west latitude.\";\n\t\t} else if (errorcode == 11) {\n\t\t\treturn \"Date input format incorrect!\\nValid dates go <year>-<month>-<day>\\nValid month values are 1- 12 and valid day values are 1 - 31.\";\n\t\t} else if (errorcode == 12) {\n\t\t\treturn \"Time input format incorrect!\\nValid times go <hour>-<minute>-<second>\\nValid hour values are 0 - 23 and valid minute and second values are 0 - 59\";\n\t\t} else if (errorcode == 1) {\n\t\t\treturn \"Invalid latitude!\\nValid Latitude values are -90 to 90 with negative values being south Latitude.\";\n\t\t} else if (errorcode == 2) {\n\t\t\treturn \"Invalid Longitude!\\nValid Longitude values are -180 to 180 with negative values being west latitude.\";\n\t\t} else if (errorcode == 3) {\n\t\t\treturn \"Invalid Year!\\nValid year values are \" + Integer.MIN_VALUE + \" - \" + Integer.MAX_VALUE + \".\";\n\t\t} else if (errorcode == 4) {\n\t\t\treturn \"Invalid Month!\\nValid month values are 1 - 12\";\n\t\t} else if (errorcode == 5) {\n\t\t\treturn \"Invalid Day!\\nValid day values are 1 - 31\";\n\t\t} else if (errorcode == 6) {\n\t\t\treturn \"Invalid Hour!\\nValid hour values are 0 - 23\";\n\t\t} else if (errorcode == 7) {\n\t\t\treturn \"Invalid Minute!\\nValid minute values are 0 - 59\";\n\t\t} else if (errorcode == 8) {\n\t\t\treturn \"Invalid Second!\\nValid second values are 0 - 59\";\n\t\t} \n\t\treturn \"Undefined Error Message!\";\n\t}",
"public void setErrorMsg(String text) {\n this.errorMsg = text;\n }",
"public int getErrorNo() {\n return this.errorNo;\n }",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();"
] |
[
"0.7234827",
"0.68487597",
"0.68242407",
"0.68242407",
"0.66320926",
"0.6613902",
"0.6613902",
"0.6613902",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.6587221",
"0.6458624",
"0.642881",
"0.6387629",
"0.6339448",
"0.63337046",
"0.6318866",
"0.6310054",
"0.6266495",
"0.6207546",
"0.6169787",
"0.6162002",
"0.61556125",
"0.61209476",
"0.6114965",
"0.61042917",
"0.60988075",
"0.60988075",
"0.60988075",
"0.60916275",
"0.60737956",
"0.6044167",
"0.60035205",
"0.59917176",
"0.59845275",
"0.59643966",
"0.5963419",
"0.59538627",
"0.5917793",
"0.58881736",
"0.58858836",
"0.5880861",
"0.58786815",
"0.5865479",
"0.5863698",
"0.5842632",
"0.583974",
"0.583974",
"0.583974",
"0.583974",
"0.583974",
"0.583974",
"0.583974",
"0.58391654",
"0.58391654",
"0.58391654",
"0.5837601",
"0.5828023",
"0.58268774",
"0.58249444",
"0.5820853",
"0.5818837",
"0.5808825",
"0.5808012",
"0.5803665",
"0.57976645",
"0.5796016",
"0.57934284",
"0.57934284",
"0.57934284",
"0.5786855",
"0.57868457",
"0.5785435",
"0.578205",
"0.576942",
"0.57514906",
"0.57502955",
"0.5743453",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053"
] |
0.0
|
-1
|
string errorMessage = 2;
|
public Builder setErrorMessageBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
errorMessage_ = value;
onChanged();
return this;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"String errorMessage();",
"private void error(String string) {\n\t\r\n}",
"String getErrorMessage();",
"String getErrorMessage();",
"String getError(int i) {\n if (i >= 0 & i < msgs.length)\n return msgs[i];\n else\n return \"Invalid Error Code\";\n }",
"java.lang.String getError();",
"java.lang.String getError();",
"java.lang.String getError();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"void showErrorMsg(String string);",
"String getGetErrorMessage();",
"java.lang.String getErr();",
"public String getErrorString()\r\n\t{\r\n\t\t\r\n\t\treturn ERROR_STRING;\r\n\t}",
"public void error(String string) {\n\t\t\n\t}",
"String getInvalidMessage();",
"private static String getMessage(int code) {\n switch (code) {\n case ME_DIV_BY_ZERO:\n return \"Attempt to divide by zero.\";\n case ME_ASSIGNLITERAL:\n return \"Attempt to assign to a literal.\";\n case ME_NONVARASSIGN:\n return \"Attempt to assign to a non-variable.\";\n default:\n return \"Unknown error.\";\n }\n }",
"String getErrorsString();",
"public String error();",
"public String getError() {\n\treturn mistake;\n }",
"private String getErrorString() {\n\t\treturn \"GUID:ERROR:\" + mErrors[0][0]\n\t\t + \":\" + mErrors[1][0]\n\t\t + \":\" + mErrors[2][0]\n\t\t + \":\" + mErrors[3][0];\n\t}",
"public String getErrorMessage() \r\n\t{\r\n\t\t\r\n\t\treturn errorMessage;\r\n\t\t\r\n\t}",
"public java.lang.String getErrorMessage(){\n return localErrorMessage;\n }",
"java.lang.String getErrmsg();",
"public String getErrorString()\n\t{\n\t\treturn errorString;\n\t}",
"public static String getLastErrorMessage()\r\n\t{\n\t\treturn lastAlert;\r\n\t}",
"String getMessage();",
"String getMessage();",
"String getMessage();",
"private int getErrorId(final String message) {\n\t\tif (isLowerCase(message)) {\n\t\t\treturn ERROR_LOWER_CASE;\n\t\t} else if (isUnunsedMacro(message)) {\n\t\t\treturn ERROR_UNUSED_MACRO;\n\t\t} else if (isUnunsedVariable(message)) {\n\t\t\treturn ERROR_UNUSED_VARIABLE;\n\t\t} else if (isEndLineSpace(message) || isNoSpace(message)) {\n\t\t\treturn ERROR_NO_SPACE;\n\t\t} else if (isOneSpace(message)) {\n\t\t\treturn ERROR_ONE_SPACE;\n\t\t} else {\n\t\t\treturn ERROR_INVALID;\n\t\t}\n\t}",
"public String getErrorString(String message) {\n \t\treturn getString(new StringBuffer(\"error.\").append(message).toString());\n \t}",
"String getErrorMessage(E input);",
"public String errorMessage()\n {\n return new String(errorMessageAsBytes());\n }",
"String Message ();",
"public String errorMessage() {\n return errorMessage;\n }",
"void SemErr(String str);",
"public String getErrorMessage()\n {\n return errorMessage;\n }",
"ErrorCodes(int code){\n this.code = code;\n //this.message = message;\n }",
"int getErrorCode();",
"public String getErrorCode();",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n errorMessage_ = s;\n }\n return s;\n }\n }",
"void showError(@StringRes int errorMessage);",
"void showError(String errorMessage);",
"private static int getErrorLine(String errmsg){\n\t\treturn Integer.parseInt(errmsg.substring(0,errmsg.indexOf(\":\")).substring(errmsg.substring(0,errmsg.indexOf(\":\")).lastIndexOf(\" \")+1));\n\t}",
"public String errorMessage()\n {\n return edma_errorMsg;\n }",
"public String getErrorMessage() {\r\n return this.errorMessage;\r\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public String errorMessage() {\n return this.errorMessage;\n }",
"public String getErrorMessage() {\n\t\treturn errorMessage;\n\t}",
"public int getError() {\n return error;\n }",
"public String getErrorMessage() {\n return this.errorMessage;\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"void setErrorMessage(String errorMessage);",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"static int errorMsg(int eCode)\n {\n if (eCode == 0) return 0;\n String message = \"\";\n switch (eCode){\n case 1: message = \"Division by zero\"; break;\n case 2: message = \"Non-matching parenthesis in function\"; break;\n case 3: message = \"Must enclose negative exponents in parentheses\"; break;\n case 4: message = \"Incorrect Operator Syntax\"; break;\n case 5: message = \"Rightfunctions must use parenthesis. (example: ABS(-2);\"; break;\n case 6: message = \"Unrecognized token in function srtring.\"; break;\n case 8: message = \"Can not raise negative number to a fractional power.\"; break;\n case 10:message = \"Input a real number with no operators\"; break;\n }\n JOptionPane.showMessageDialog(null, message, \"Error \"+eCode, JOptionPane.ERROR_MESSAGE);\n return 0;\n }",
"public String getError() {\n return errMsg;\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n }\n }",
"public String getMsgError() {\r\n\t\treturn msgError;\r\n\t}",
"public String getErrorMessage() {\n return errorMessage;\n }",
"public String getErrorMessage() {\n return errorMessage;\n }",
"public String getErrorMessage() {\n return errorMessage;\n }",
"String getFailureMessage();",
"public int error() {\n return this.error;\n }",
"public String getParseErrorMessage();",
"public String getErrorMessage() {\n return ERROR_MESSAGE;\n }",
"public String getError() {\r\n if (scriptError == null) return \"\";\r\n return scriptError;\r\n }",
"private String getGUIErrorMsg(long errorcode) {\n\t\tif (errorcode == 0) {\n\t\t\treturn \"This popup shouldn't have launched!\";\n\t\t} else if (errorcode == 9) {\n\t\t\treturn \"Latitude input format incorrect!\\nValid Latitude values are -90 to 90 with negative values being south Latitude.\";\n\t\t} else if (errorcode == 10) {\n\t\t\treturn \"Longitude input format incorrect!\\nValid Longitude values are -180 to 180 with negative values being west latitude.\";\n\t\t} else if (errorcode == 11) {\n\t\t\treturn \"Date input format incorrect!\\nValid dates go <year>-<month>-<day>\\nValid month values are 1- 12 and valid day values are 1 - 31.\";\n\t\t} else if (errorcode == 12) {\n\t\t\treturn \"Time input format incorrect!\\nValid times go <hour>-<minute>-<second>\\nValid hour values are 0 - 23 and valid minute and second values are 0 - 59\";\n\t\t} else if (errorcode == 1) {\n\t\t\treturn \"Invalid latitude!\\nValid Latitude values are -90 to 90 with negative values being south Latitude.\";\n\t\t} else if (errorcode == 2) {\n\t\t\treturn \"Invalid Longitude!\\nValid Longitude values are -180 to 180 with negative values being west latitude.\";\n\t\t} else if (errorcode == 3) {\n\t\t\treturn \"Invalid Year!\\nValid year values are \" + Integer.MIN_VALUE + \" - \" + Integer.MAX_VALUE + \".\";\n\t\t} else if (errorcode == 4) {\n\t\t\treturn \"Invalid Month!\\nValid month values are 1 - 12\";\n\t\t} else if (errorcode == 5) {\n\t\t\treturn \"Invalid Day!\\nValid day values are 1 - 31\";\n\t\t} else if (errorcode == 6) {\n\t\t\treturn \"Invalid Hour!\\nValid hour values are 0 - 23\";\n\t\t} else if (errorcode == 7) {\n\t\t\treturn \"Invalid Minute!\\nValid minute values are 0 - 59\";\n\t\t} else if (errorcode == 8) {\n\t\t\treturn \"Invalid Second!\\nValid second values are 0 - 59\";\n\t\t} \n\t\treturn \"Undefined Error Message!\";\n\t}",
"public void setErrorMsg(String text) {\n this.errorMsg = text;\n }",
"public int getErrorNo() {\n return this.errorNo;\n }",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();"
] |
[
"0.7234827",
"0.68487597",
"0.68242407",
"0.68242407",
"0.66320926",
"0.6613902",
"0.6613902",
"0.6613902",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.6587221",
"0.6458624",
"0.642881",
"0.6387629",
"0.6339448",
"0.63337046",
"0.6318866",
"0.6310054",
"0.6266495",
"0.6207546",
"0.6169787",
"0.6162002",
"0.61556125",
"0.61209476",
"0.6114965",
"0.61042917",
"0.60988075",
"0.60988075",
"0.60988075",
"0.60916275",
"0.60737956",
"0.6044167",
"0.60035205",
"0.59917176",
"0.59845275",
"0.59643966",
"0.5963419",
"0.59538627",
"0.5917793",
"0.58881736",
"0.58858836",
"0.5880861",
"0.58786815",
"0.5865479",
"0.5863698",
"0.5842632",
"0.583974",
"0.583974",
"0.583974",
"0.583974",
"0.583974",
"0.583974",
"0.583974",
"0.58391654",
"0.58391654",
"0.58391654",
"0.5837601",
"0.5828023",
"0.58268774",
"0.58249444",
"0.5820853",
"0.5818837",
"0.5808825",
"0.5808012",
"0.5803665",
"0.57976645",
"0.5796016",
"0.57934284",
"0.57934284",
"0.57934284",
"0.5786855",
"0.57868457",
"0.5785435",
"0.578205",
"0.576942",
"0.57514906",
"0.57502955",
"0.5743453",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053"
] |
0.0
|
-1
|
The status of all the requests to other nodes repeated .NodeReplicationStatus nodeStatusList = 3;
|
public java.util.List<entities.Torrent.NodeReplicationStatus> getNodeStatusListList() {
if (nodeStatusListBuilder_ == null) {
return java.util.Collections.unmodifiableList(nodeStatusList_);
} else {
return nodeStatusListBuilder_.getMessageList();
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"entities.Torrent.NodeReplicationStatus getNodeStatusList(int index);",
"@java.lang.Override\n public java.util.List<entities.Torrent.NodeReplicationStatus> getNodeStatusListList() {\n return nodeStatusList_;\n }",
"java.util.List<entities.Torrent.NodeReplicationStatus>\n getNodeStatusListList();",
"@java.lang.Override\n public java.util.List<? extends entities.Torrent.NodeReplicationStatusOrBuilder>\n getNodeStatusListOrBuilderList() {\n return nodeStatusList_;\n }",
"public java.util.List<? extends entities.Torrent.NodeReplicationStatusOrBuilder>\n getNodeStatusListOrBuilderList() {\n if (nodeStatusListBuilder_ != null) {\n return nodeStatusListBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(nodeStatusList_);\n }\n }",
"@java.lang.Override\n public int getNodeStatusListCount() {\n return nodeStatusList_.size();\n }",
"java.util.List<? extends entities.Torrent.NodeReplicationStatusOrBuilder>\n getNodeStatusListOrBuilderList();",
"public entities.Torrent.NodeReplicationStatus.Builder addNodeStatusListBuilder() {\n return getNodeStatusListFieldBuilder().addBuilder(\n entities.Torrent.NodeReplicationStatus.getDefaultInstance());\n }",
"int getNodeStatusListCount();",
"@java.lang.Override\n public entities.Torrent.NodeReplicationStatus getNodeStatusList(int index) {\n return nodeStatusList_.get(index);\n }",
"entities.Torrent.NodeReplicationStatusOrBuilder getNodeStatusListOrBuilder(\n int index);",
"@java.lang.Override\n public entities.Torrent.NodeReplicationStatusOrBuilder getNodeStatusListOrBuilder(\n int index) {\n return nodeStatusList_.get(index);\n }",
"public entities.Torrent.NodeReplicationStatus getNodeStatusList(int index) {\n if (nodeStatusListBuilder_ == null) {\n return nodeStatusList_.get(index);\n } else {\n return nodeStatusListBuilder_.getMessage(index);\n }\n }",
"public Builder addNodeStatusList(entities.Torrent.NodeReplicationStatus value) {\n if (nodeStatusListBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureNodeStatusListIsMutable();\n nodeStatusList_.add(value);\n onChanged();\n } else {\n nodeStatusListBuilder_.addMessage(value);\n }\n return this;\n }",
"public Builder addAllNodeStatusList(\n java.lang.Iterable<? extends entities.Torrent.NodeReplicationStatus> values) {\n if (nodeStatusListBuilder_ == null) {\n ensureNodeStatusListIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, nodeStatusList_);\n onChanged();\n } else {\n nodeStatusListBuilder_.addAllMessages(values);\n }\n return this;\n }",
"public entities.Torrent.NodeReplicationStatusOrBuilder getNodeStatusListOrBuilder(\n int index) {\n if (nodeStatusListBuilder_ == null) {\n return nodeStatusList_.get(index); } else {\n return nodeStatusListBuilder_.getMessageOrBuilder(index);\n }\n }",
"public int getNodeStatusListCount() {\n if (nodeStatusListBuilder_ == null) {\n return nodeStatusList_.size();\n } else {\n return nodeStatusListBuilder_.getCount();\n }\n }",
"public final int[] cacheNodeStatus() {\n return new int[]{0,0,0,0,0,0,0,0,0,0};\r\n }",
"public java.util.List<entities.Torrent.NodeReplicationStatus.Builder>\n getNodeStatusListBuilderList() {\n return getNodeStatusListFieldBuilder().getBuilderList();\n }",
"public Builder setNodeStatusList(\n int index, entities.Torrent.NodeReplicationStatus value) {\n if (nodeStatusListBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureNodeStatusListIsMutable();\n nodeStatusList_.set(index, value);\n onChanged();\n } else {\n nodeStatusListBuilder_.setMessage(index, value);\n }\n return this;\n }",
"private NodeReplicationStatus(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"int getReplicationCount();",
"public Builder addNodeStatusList(\n int index, entities.Torrent.NodeReplicationStatus value) {\n if (nodeStatusListBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureNodeStatusListIsMutable();\n nodeStatusList_.add(index, value);\n onChanged();\n } else {\n nodeStatusListBuilder_.addMessage(index, value);\n }\n return this;\n }",
"public entities.Torrent.NodeReplicationStatus.Builder addNodeStatusListBuilder(\n int index) {\n return getNodeStatusListFieldBuilder().addBuilder(\n index, entities.Torrent.NodeReplicationStatus.getDefaultInstance());\n }",
"public int getNumNodesSeenByMessage() {\r\n return numNodesSeenByMessage;\r\n }",
"public abstract String getNodeStatusVariableName();",
"public Builder addNodeStatusList(\n entities.Torrent.NodeReplicationStatus.Builder builderForValue) {\n if (nodeStatusListBuilder_ == null) {\n ensureNodeStatusListIsMutable();\n nodeStatusList_.add(builderForValue.build());\n onChanged();\n } else {\n nodeStatusListBuilder_.addMessage(builderForValue.build());\n }\n return this;\n }",
"public entities.Torrent.NodeReplicationStatus.Builder getNodeStatusListBuilder(\n int index) {\n return getNodeStatusListFieldBuilder().getBuilder(index);\n }",
"java.util.List<io.netifi.proteus.admin.om.Node> \n getNodesList();",
"public void list() {\r\n\t\tfor (String key : nodeMap.keySet()) {\r\n\t\t\tNodeRef node = nodeMap.get(key);\r\n\t\t\tSystem.out.println(node.getIp() + \" : \" + node.getPort());\r\n\t\t}\t\t\r\n\t}",
"public static int countNodes() {\n\t\treturn count_nodes;\n\t}",
"default Promise<List<String>> findAllNodesWithStatus(HealthStatus queryStatus) {\n final Promise<List<String>> promise = Promises.promise();\n promise.resolve(Collections.emptyList());\n return promise;\n\n }",
"@Override\n\tpublic long numNodes() {\n\t\treturn numNodes;\n\t}",
"public java.util.List<entities.Torrent.NodeId> getNodesList() {\n if (nodesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(nodes_);\n } else {\n return nodesBuilder_.getMessageList();\n }\n }",
"public NodeInformation[] getNodes() throws CassandraServerManagementException {\r\n StorageServiceMBean ssMBean = null;\r\n try {\r\n ssMBean = CassandraAdminDataHolder\r\n .getInstance().getCassandraMBeanLocator().locateStorageServiceMBean();\r\n } catch (CassandraServerManagementException e) {\r\n handleException(\"Error occurred while retrieving node information list\", e);\r\n }\r\n\r\n if (ssMBean == null) {\r\n handleException(\"Storage Server MBean is null\");\r\n }\r\n\r\n Map<String, String> tokenToEndpoint = ssMBean.getTokenToEndpointMap();\r\n List<String> sortedTokens = new ArrayList<String>(tokenToEndpoint.keySet());\r\n Collections.sort(sortedTokens);\r\n\r\n /* Calculate per-token ownership of the ring */\r\n Map<InetAddress, Float> ownerships = ssMBean.getOwnership();\r\n\r\n List<NodeInformation> nodeInfoList = new ArrayList<NodeInformation>();\r\n for (String token : sortedTokens) {\r\n String primaryEndpoint = tokenToEndpoint.get(token);\r\n String status = ssMBean.getLiveNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_UP\r\n : ssMBean.getUnreachableNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_DOWN\r\n : CassandraManagementConstants.NodeStatuses.NODE_STATUS_UNKNOWN;\r\n\r\n String state = ssMBean.getJoiningNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_JOINING\r\n : ssMBean.getLeavingNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_LEAVING\r\n : CassandraManagementConstants.NodeStatuses.NODE_STATUS_NORMAL;\r\n\r\n Map<String, String> loadMap = ssMBean.getLoadMap();\r\n String load = loadMap.containsKey(primaryEndpoint)\r\n ? loadMap.get(primaryEndpoint)\r\n : CassandraManagementConstants.NodeStatuses.NODE_STATUS_UNKNOWN;\r\n\r\n Float ownership = ownerships.get(token);\r\n String owns = \"N/A\";\r\n if(ownership!=null){\r\n owns = new DecimalFormat(\"##0.00%\").format(ownership);\r\n }\r\n NodeInformation nodeInfo = new NodeInformation();\r\n nodeInfo.setAddress(primaryEndpoint);\r\n nodeInfo.setState(state);\r\n nodeInfo.setStatus(status);\r\n nodeInfo.setOwn(owns);\r\n nodeInfo.setLoad(load);\r\n nodeInfo.setToken(token);\r\n nodeInfoList.add(nodeInfo);\r\n }\r\n return nodeInfoList.toArray(new NodeInformation[nodeInfoList.size()]);\r\n }",
"public String replicationState() {\n return this.replicationState;\n }",
"@Override\n public boolean getCurrentNodeStatus(InetAddress ia) {\n if (ia.isAnyLocalAddress()) {\n return true;\n }\n // Check if given address is in cluster\n for (Client c : instance.getClientService().getConnectedClients()) {\n if (c.getSocketAddress().getAddress().equals(ia)) {\n return true;\n }\n }\n // reject all other addresses\n return false;\n }",
"int numNodes() {\n\t\treturn num_nodes;\n\t}",
"private int numNodes()\r\n\t{\r\n\t return nodeMap.size();\r\n\t}",
"public int lockedNodeCount() {\n\treturn lockedNodes;\n }",
"@Override\n\tpublic Collection<TaskStatus> getTaskStatus(){\n \tcheckInitialized();\n \t\n \t@SuppressWarnings(\"unchecked\")\n\t\tCollection<Collection<TaskStatus>> statusTree=Collections.EMPTY_LIST;\n \tfinal MultiTask<Collection<TaskStatus>> mtask;\n \ttry {\n\t\t\t mtask = breeder.executeCallable(new GetTaskStatus(this));\n\t\t\t statusTree = mtask.get();\n \t} catch (ExecutionException ex){\n \t\tlog.fatal(\"Could not get status of tasks for job \"+this.getId(), ex);\n \t} catch(InterruptedException ex) {\n \t\tlog.fatal(\"Could not get status of tasks for job \"+this.getId(), ex);\n \t}\n\t\t\t\n\t\t// Flatten into single collection\n\t\tList<TaskStatus> result = new ArrayList<TaskStatus>((int)(statusTree.size()*this.getThreadCount()));\n\t\tfor(Collection<TaskStatus> statusForNode: statusTree) {\n\t\t\tresult.addAll(statusForNode);\n\t\t}\n\t\t\n\t\treturn result;\n \n\t}",
"int getNodeCount() {\n\t\treturn m_list_nodes.size();\n\t}",
"int getNodesCount();",
"int getNodesCount();",
"public java.util.List<java.lang.Integer>\n getStatusList() {\n return status_;\n }",
"public static int getNumberOfNodes() {\n return(numberOfNodes);\n\t }",
"@java.lang.Override\n public int getNodesCount() {\n return nodes_.size();\n }",
"private NodeRestartRequest() {\n\t\t}",
"java.util.List<entities.Torrent.NodeId>\n getNodesList();",
"List<CommunicationLink> getAllNodes()\n {\n return new ArrayList<>(allNodes.values());\n }",
"public ODocument clusterStatus() {\n checkConnected();\n return remote.getClusterStatus(user, password);\n }",
"public StatusChecker(Node node){\n this.node=node;\n start();\n }",
"public Builder clearNodeStatusList() {\n if (nodeStatusListBuilder_ == null) {\n nodeStatusList_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n nodeStatusListBuilder_.clear();\n }\n return this;\n }",
"@java.lang.Override\n public java.util.List<entities.Torrent.NodeId> getNodesList() {\n return nodes_;\n }",
"public int getNumberOfNodesEvaluated();",
"java.util.List<java.lang.Integer> getStatusList();",
"private List<Node> getNodes() {\n List<Node> nodes = new ArrayList<Node>();\n NodeApi.GetConnectedNodesResult rawNodes =\n Wearable.NodeApi.getConnectedNodes(mGoogleApiClient).await();\n for (Node node : rawNodes.getNodes()) {\n nodes.add(node);\n }\n return nodes;\n }",
"public int numNodes() {\n\t\treturn numNodes;\n\t}",
"void updateRmiClientsCount() {\n int noOfClientsConnected = 0;\n\n String[] connectionIds = rmiConnector.getConnectionIds();\n\n if (connectionIds != null) {\n noOfClientsConnected = connectionIds.length;\n }\n\n logger.info(\"No. of RMI clients connected :: {}\", noOfClientsConnected);\n\n AdminDistributedSystemJmxImpl adminDSJmx = (AdminDistributedSystemJmxImpl) system;\n\n adminDSJmx.setRmiClientCountZero(noOfClientsConnected == 0);\n }",
"public int getReplicationDegree() {\n return replicationDegree;\n }",
"public int getReplicationDegree() {\n return replicationDegree;\n }",
"public List<NetworkNode> listNetworkNode();",
"private void updateGeoRepStatus(GlusterVolumeEntity volume, GlusterGeoRepSession session) {\n\n List<HashSet<GeoRepSessionStatus>> list = new ArrayList<>();\n // grouped node status\n int replicaCount = volume.getReplicaCount() == 0 ? 1 : volume.getReplicaCount();\n for (int i = 0; i < volume.getBricks().size(); i = i + replicaCount) {\n HashSet<GeoRepSessionStatus> subVolumeStatusSet = new HashSet<>();\n int j = 0;\n while (j < replicaCount) {\n Guid brickId = volume.getBricks().get(i + j).getId();\n subVolumeStatusSet.add(getStatusForBrickFromSession(session, brickId));\n j++;\n }\n list.add(subVolumeStatusSet);\n }\n\n session.setStatus(GeoRepSessionStatus.ACTIVE);\n // iterate through grouped status to set consolidated status\n for (HashSet<GeoRepSessionStatus> subVolumeStatusValues : list) {\n if (subVolumeStatusValues.contains(GeoRepSessionStatus.ACTIVE)) {\n // healthy\n continue;\n } else if (subVolumeStatusValues.contains(GeoRepSessionStatus.FAULTY)) {\n session.setStatus(GeoRepSessionStatus.FAULTY);\n // if any one of the sub-volume is faulty, the overall session status if faulty\n return;\n }\n // override status in case of these values\n if (ArrayUtils.contains(overridableStatuses, session.getStatus())) {\n if (subVolumeStatusValues.size() == 1) {\n session.setStatus((GeoRepSessionStatus) subVolumeStatusValues.toArray()[0]);\n } else {\n // if status values in sub-volume are not the same, what do we do?\n // this should not happen, so we'll log it for now\n log.info(\"Multiple status values found in volume '{}'\", session.getMasterVolumeName());\n }\n }\n }\n\n }",
"@SuppressWarnings(\"unused\")\n private ReplicationStatusResponse() {\n this(false);\n }",
"int getNrNodes() {\n\t\treturn adjList.size();\n\t}",
"int getNodeCount();",
"int getNodeCount();",
"public int getConnectionStatus()\r\n { return connectionStatus; }",
"public int getNodeCount() {\n return nodeCount;\n }",
"public int getNetworkNodesNumber() {\n\t\t\n\t\t//Return nodes size\n\t\treturn nodes.size();\n\t\t\n\t}",
"void nodeOnline();",
"public static String getClusterStatusNodePath() {\n return String.join(\"/\", \"\", ROOT_NODE, COMPUTE_NODE, STATUS_NODE);\n }",
"@Override\n protected int minimumNumberOfReplicas() {\n return 1;\n }",
"@Override\n public void statusUpdate(final String asgName, final ASGStatus newStatus, final boolean isReplication) {\n if (isReplication) {\n return;\n }\n for (final PeerEurekaNode node : peerEurekaNodes.getPeerEurekaNodes()) {\n replicateASGInfoToReplicaNodes(asgName, newStatus, node);\n\n }\n }",
"@PostMapping(\"/queryGroupStatus/list\")\n @PreAuthorize(ConstantProperties.HAS_ROLE_ADMIN)\n public BaseResponse getGroupStatusList(@Valid @RequestBody ReqGroupStatus reqGroupStatus) throws NodeMgrException {\n Instant startTime = Instant.now();\n BaseResponse baseResponse = new BaseResponse(ConstantCode.SUCCESS);\n log.info(\"start getGroupStatusMap startTime:{}\", startTime.toEpochMilli());\n List<String> nodeIdList = reqGroupStatus.getNodeIdList();\n List<RspGroupStatus> resList = groupService.listGroupStatus(nodeIdList,\n reqGroupStatus.getGroupIdList());\n baseResponse.setData(resList);\n log.info(\"end getGroupStatusMap useTime:{} result:{}\",\n Duration.between(startTime, Instant.now()).toMillis(),\n JsonTools.toJSONString(baseResponse));\n return baseResponse;\n }",
"public String getNumberOfNodesEvaluated(){return Integer.toString(NumberOfVisitedNodes);}",
"private void getNodesCount(HttpServletRequest request, HttpServletResponse response) throws IOException {\n int countNodes = SimApi.getNodesCount();\n response.getWriter().write(Integer.toString(countNodes));\n }",
"java.util.List<? extends io.netifi.proteus.admin.om.NodeOrBuilder> \n getNodesOrBuilderList();",
"@Test(timeout = 10000L)\n public void testNodesInformation() throws Exception {\n CommonDriverAdminTests.testNodesInformation(client, nbNodes);\n }",
"public int getNumNodes() {\n\t\treturn nodes.size();\n\t}",
"@RequestLine(\"GET /status\")\n Status getNeustarNetworkStatus();",
"public void printStatus(){\n System.out.println(\"Nodes: \" + \n getVertexCount() + \" Edges: \" + \n getEdgeCount()); \n //and \" + getEdgeCount() + \" edges active.\");\n }",
"public abstract Collection<Node> getAllSuccessors();",
"public int getStatusCount() {\n return status_.size();\n }",
"public List<Long> getSessionNodes() {\n List<Long> ret = new ArrayList<>();\n\n for (int i = 0; i < sessionsList.size(); i++) {\n ret.add(sessionsList.get(i).dhtNodes());\n }\n\n return ret;\n }",
"@Override\n public ClusterStatus getCurrentClusterStatus() {\n if (getMemberList().size() > 1) {\n return CLUSTER_FUNCTIONAL;\n }\n // when only one node is connected return degraded\n if (getMemberList().size() == 1) {\n return CLUSTER_DEGRADED;\n }\n // consider all other states as illegal\n return CLUSTER_ILLEGAL;\n }",
"public int getNodeCount() {\n return node_.size();\n }",
"private void refreshNodeList() {\n if (UnderNet.router.status.equals(InterfaceStatus.STARTED)) {\n //Using connected and cached nodes if the router has started.\n ArrayList<Node> nodesToList = UnderNet.router.getConnectedNodes();\n for (Node cachedNode :\n EntryNodeCache.cachedNodes) {\n boolean canAdd = true;\n for (Node connectedNode : UnderNet.router.getConnectedNodes()) {\n if (cachedNode.getAddress().equals(connectedNode.getAddress())) {\n canAdd = false;\n }\n }\n if (canAdd) {\n nodesToList.add(cachedNode);\n }\n }\n nodeList.setListData(nodesToList.toArray());\n } else {\n //Using cached nodes if the router isn't online.\n nodeList.setListData(EntryNodeCache.cachedNodes.toArray());\n }\n }",
"int getStatusCount();",
"List<StatusListener> mo9950b();",
"public List<Output<TInt32>> nodeIdsList() {\n return nodeIdsList;\n }",
"public Builder setNodeStatusList(\n int index, entities.Torrent.NodeReplicationStatus.Builder builderForValue) {\n if (nodeStatusListBuilder_ == null) {\n ensureNodeStatusListIsMutable();\n nodeStatusList_.set(index, builderForValue.build());\n onChanged();\n } else {\n nodeStatusListBuilder_.setMessage(index, builderForValue.build());\n }\n return this;\n }",
"@Override\r\n\tpublic int getNumberOfNodes() {\n\t\treturn 0;\r\n\t}",
"public java.util.List<? extends entities.Torrent.NodeIdOrBuilder>\n getNodesOrBuilderList() {\n if (nodesBuilder_ != null) {\n return nodesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(nodes_);\n }\n }",
"@Override\n public void onNewClusterState(ClusterState state) {\n transportService.sendRequest(\n clusterService.localNode(),\n transportReplicaAction,\n replicaRequest,\n new ActionListenerResponseHandler<>(onCompletionListener, ReplicaResponse::new)\n );\n }",
"public java.util.List<java.lang.Integer>\n getStatusList() {\n return java.util.Collections.unmodifiableList(status_);\n }",
"void refreshNodeHostCount(int nodeHostCount);",
"protected int numNodes() {\n\t\treturn nodes.size();\n\t}",
"public static void getStatus() {\n\t\ttry {\n\t\t\tint i = 1;\n\t\t\tList<Object[]>serverDetails = ServerStatus.getServerDetails();\n\t\t\tfor (Object[] servers:serverDetails){\n\t\t\t\tServerStatus.verifyServerStatus(i,(String)servers[0], (String)servers[1], (String)servers[2]);\n\t\t\t\ti++;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tcatch (Exception ex){\n\t\t\tex.printStackTrace();\n\t\t}\n\t}",
"public Vector<Node> getNodes(){\n\t\treturn this.listOfNodes;\n\t}"
] |
[
"0.76754725",
"0.7330513",
"0.7273623",
"0.71540165",
"0.711505",
"0.71102214",
"0.7056519",
"0.7022613",
"0.6881543",
"0.68746865",
"0.68614775",
"0.6730206",
"0.66633195",
"0.6638524",
"0.6558738",
"0.6554595",
"0.6390956",
"0.6324348",
"0.6301884",
"0.62128437",
"0.6153897",
"0.6058742",
"0.60192406",
"0.596705",
"0.57494354",
"0.5748884",
"0.5723979",
"0.5719001",
"0.570223",
"0.5561525",
"0.5554988",
"0.5542978",
"0.5536758",
"0.5529717",
"0.5515723",
"0.5507869",
"0.5477924",
"0.545919",
"0.5453382",
"0.5440473",
"0.5432976",
"0.5413977",
"0.54059",
"0.54059",
"0.53920895",
"0.53919417",
"0.538495",
"0.53726",
"0.5371442",
"0.53705126",
"0.53690714",
"0.53564674",
"0.53378046",
"0.5328064",
"0.5315124",
"0.5306361",
"0.5305867",
"0.5297228",
"0.52948767",
"0.5292507",
"0.5292507",
"0.5286415",
"0.5276344",
"0.52740955",
"0.5273183",
"0.527266",
"0.527266",
"0.5272264",
"0.52635926",
"0.526193",
"0.52519333",
"0.52507585",
"0.5248499",
"0.52444947",
"0.52385783",
"0.5235392",
"0.52331",
"0.5231807",
"0.52273303",
"0.5224498",
"0.5218425",
"0.52174264",
"0.52173257",
"0.520692",
"0.5199218",
"0.5191387",
"0.51871306",
"0.5186112",
"0.5181667",
"0.5179533",
"0.51790094",
"0.51782185",
"0.51557237",
"0.5153083",
"0.5153054",
"0.5149576",
"0.51491016",
"0.5141703",
"0.51399857",
"0.51249874"
] |
0.7185904
|
3
|
The status of all the requests to other nodes repeated .NodeReplicationStatus nodeStatusList = 3;
|
public int getNodeStatusListCount() {
if (nodeStatusListBuilder_ == null) {
return nodeStatusList_.size();
} else {
return nodeStatusListBuilder_.getCount();
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"entities.Torrent.NodeReplicationStatus getNodeStatusList(int index);",
"@java.lang.Override\n public java.util.List<entities.Torrent.NodeReplicationStatus> getNodeStatusListList() {\n return nodeStatusList_;\n }",
"java.util.List<entities.Torrent.NodeReplicationStatus>\n getNodeStatusListList();",
"public java.util.List<entities.Torrent.NodeReplicationStatus> getNodeStatusListList() {\n if (nodeStatusListBuilder_ == null) {\n return java.util.Collections.unmodifiableList(nodeStatusList_);\n } else {\n return nodeStatusListBuilder_.getMessageList();\n }\n }",
"@java.lang.Override\n public java.util.List<? extends entities.Torrent.NodeReplicationStatusOrBuilder>\n getNodeStatusListOrBuilderList() {\n return nodeStatusList_;\n }",
"public java.util.List<? extends entities.Torrent.NodeReplicationStatusOrBuilder>\n getNodeStatusListOrBuilderList() {\n if (nodeStatusListBuilder_ != null) {\n return nodeStatusListBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(nodeStatusList_);\n }\n }",
"@java.lang.Override\n public int getNodeStatusListCount() {\n return nodeStatusList_.size();\n }",
"java.util.List<? extends entities.Torrent.NodeReplicationStatusOrBuilder>\n getNodeStatusListOrBuilderList();",
"public entities.Torrent.NodeReplicationStatus.Builder addNodeStatusListBuilder() {\n return getNodeStatusListFieldBuilder().addBuilder(\n entities.Torrent.NodeReplicationStatus.getDefaultInstance());\n }",
"int getNodeStatusListCount();",
"@java.lang.Override\n public entities.Torrent.NodeReplicationStatus getNodeStatusList(int index) {\n return nodeStatusList_.get(index);\n }",
"entities.Torrent.NodeReplicationStatusOrBuilder getNodeStatusListOrBuilder(\n int index);",
"@java.lang.Override\n public entities.Torrent.NodeReplicationStatusOrBuilder getNodeStatusListOrBuilder(\n int index) {\n return nodeStatusList_.get(index);\n }",
"public entities.Torrent.NodeReplicationStatus getNodeStatusList(int index) {\n if (nodeStatusListBuilder_ == null) {\n return nodeStatusList_.get(index);\n } else {\n return nodeStatusListBuilder_.getMessage(index);\n }\n }",
"public Builder addNodeStatusList(entities.Torrent.NodeReplicationStatus value) {\n if (nodeStatusListBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureNodeStatusListIsMutable();\n nodeStatusList_.add(value);\n onChanged();\n } else {\n nodeStatusListBuilder_.addMessage(value);\n }\n return this;\n }",
"public Builder addAllNodeStatusList(\n java.lang.Iterable<? extends entities.Torrent.NodeReplicationStatus> values) {\n if (nodeStatusListBuilder_ == null) {\n ensureNodeStatusListIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, nodeStatusList_);\n onChanged();\n } else {\n nodeStatusListBuilder_.addAllMessages(values);\n }\n return this;\n }",
"public entities.Torrent.NodeReplicationStatusOrBuilder getNodeStatusListOrBuilder(\n int index) {\n if (nodeStatusListBuilder_ == null) {\n return nodeStatusList_.get(index); } else {\n return nodeStatusListBuilder_.getMessageOrBuilder(index);\n }\n }",
"public final int[] cacheNodeStatus() {\n return new int[]{0,0,0,0,0,0,0,0,0,0};\r\n }",
"public java.util.List<entities.Torrent.NodeReplicationStatus.Builder>\n getNodeStatusListBuilderList() {\n return getNodeStatusListFieldBuilder().getBuilderList();\n }",
"public Builder setNodeStatusList(\n int index, entities.Torrent.NodeReplicationStatus value) {\n if (nodeStatusListBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureNodeStatusListIsMutable();\n nodeStatusList_.set(index, value);\n onChanged();\n } else {\n nodeStatusListBuilder_.setMessage(index, value);\n }\n return this;\n }",
"private NodeReplicationStatus(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"int getReplicationCount();",
"public Builder addNodeStatusList(\n int index, entities.Torrent.NodeReplicationStatus value) {\n if (nodeStatusListBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureNodeStatusListIsMutable();\n nodeStatusList_.add(index, value);\n onChanged();\n } else {\n nodeStatusListBuilder_.addMessage(index, value);\n }\n return this;\n }",
"public entities.Torrent.NodeReplicationStatus.Builder addNodeStatusListBuilder(\n int index) {\n return getNodeStatusListFieldBuilder().addBuilder(\n index, entities.Torrent.NodeReplicationStatus.getDefaultInstance());\n }",
"public int getNumNodesSeenByMessage() {\r\n return numNodesSeenByMessage;\r\n }",
"public abstract String getNodeStatusVariableName();",
"public Builder addNodeStatusList(\n entities.Torrent.NodeReplicationStatus.Builder builderForValue) {\n if (nodeStatusListBuilder_ == null) {\n ensureNodeStatusListIsMutable();\n nodeStatusList_.add(builderForValue.build());\n onChanged();\n } else {\n nodeStatusListBuilder_.addMessage(builderForValue.build());\n }\n return this;\n }",
"public entities.Torrent.NodeReplicationStatus.Builder getNodeStatusListBuilder(\n int index) {\n return getNodeStatusListFieldBuilder().getBuilder(index);\n }",
"java.util.List<io.netifi.proteus.admin.om.Node> \n getNodesList();",
"public void list() {\r\n\t\tfor (String key : nodeMap.keySet()) {\r\n\t\t\tNodeRef node = nodeMap.get(key);\r\n\t\t\tSystem.out.println(node.getIp() + \" : \" + node.getPort());\r\n\t\t}\t\t\r\n\t}",
"public static int countNodes() {\n\t\treturn count_nodes;\n\t}",
"default Promise<List<String>> findAllNodesWithStatus(HealthStatus queryStatus) {\n final Promise<List<String>> promise = Promises.promise();\n promise.resolve(Collections.emptyList());\n return promise;\n\n }",
"@Override\n\tpublic long numNodes() {\n\t\treturn numNodes;\n\t}",
"public java.util.List<entities.Torrent.NodeId> getNodesList() {\n if (nodesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(nodes_);\n } else {\n return nodesBuilder_.getMessageList();\n }\n }",
"public NodeInformation[] getNodes() throws CassandraServerManagementException {\r\n StorageServiceMBean ssMBean = null;\r\n try {\r\n ssMBean = CassandraAdminDataHolder\r\n .getInstance().getCassandraMBeanLocator().locateStorageServiceMBean();\r\n } catch (CassandraServerManagementException e) {\r\n handleException(\"Error occurred while retrieving node information list\", e);\r\n }\r\n\r\n if (ssMBean == null) {\r\n handleException(\"Storage Server MBean is null\");\r\n }\r\n\r\n Map<String, String> tokenToEndpoint = ssMBean.getTokenToEndpointMap();\r\n List<String> sortedTokens = new ArrayList<String>(tokenToEndpoint.keySet());\r\n Collections.sort(sortedTokens);\r\n\r\n /* Calculate per-token ownership of the ring */\r\n Map<InetAddress, Float> ownerships = ssMBean.getOwnership();\r\n\r\n List<NodeInformation> nodeInfoList = new ArrayList<NodeInformation>();\r\n for (String token : sortedTokens) {\r\n String primaryEndpoint = tokenToEndpoint.get(token);\r\n String status = ssMBean.getLiveNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_UP\r\n : ssMBean.getUnreachableNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_DOWN\r\n : CassandraManagementConstants.NodeStatuses.NODE_STATUS_UNKNOWN;\r\n\r\n String state = ssMBean.getJoiningNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_JOINING\r\n : ssMBean.getLeavingNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_LEAVING\r\n : CassandraManagementConstants.NodeStatuses.NODE_STATUS_NORMAL;\r\n\r\n Map<String, String> loadMap = ssMBean.getLoadMap();\r\n String load = loadMap.containsKey(primaryEndpoint)\r\n ? loadMap.get(primaryEndpoint)\r\n : CassandraManagementConstants.NodeStatuses.NODE_STATUS_UNKNOWN;\r\n\r\n Float ownership = ownerships.get(token);\r\n String owns = \"N/A\";\r\n if(ownership!=null){\r\n owns = new DecimalFormat(\"##0.00%\").format(ownership);\r\n }\r\n NodeInformation nodeInfo = new NodeInformation();\r\n nodeInfo.setAddress(primaryEndpoint);\r\n nodeInfo.setState(state);\r\n nodeInfo.setStatus(status);\r\n nodeInfo.setOwn(owns);\r\n nodeInfo.setLoad(load);\r\n nodeInfo.setToken(token);\r\n nodeInfoList.add(nodeInfo);\r\n }\r\n return nodeInfoList.toArray(new NodeInformation[nodeInfoList.size()]);\r\n }",
"public String replicationState() {\n return this.replicationState;\n }",
"@Override\n public boolean getCurrentNodeStatus(InetAddress ia) {\n if (ia.isAnyLocalAddress()) {\n return true;\n }\n // Check if given address is in cluster\n for (Client c : instance.getClientService().getConnectedClients()) {\n if (c.getSocketAddress().getAddress().equals(ia)) {\n return true;\n }\n }\n // reject all other addresses\n return false;\n }",
"int numNodes() {\n\t\treturn num_nodes;\n\t}",
"private int numNodes()\r\n\t{\r\n\t return nodeMap.size();\r\n\t}",
"public int lockedNodeCount() {\n\treturn lockedNodes;\n }",
"@Override\n\tpublic Collection<TaskStatus> getTaskStatus(){\n \tcheckInitialized();\n \t\n \t@SuppressWarnings(\"unchecked\")\n\t\tCollection<Collection<TaskStatus>> statusTree=Collections.EMPTY_LIST;\n \tfinal MultiTask<Collection<TaskStatus>> mtask;\n \ttry {\n\t\t\t mtask = breeder.executeCallable(new GetTaskStatus(this));\n\t\t\t statusTree = mtask.get();\n \t} catch (ExecutionException ex){\n \t\tlog.fatal(\"Could not get status of tasks for job \"+this.getId(), ex);\n \t} catch(InterruptedException ex) {\n \t\tlog.fatal(\"Could not get status of tasks for job \"+this.getId(), ex);\n \t}\n\t\t\t\n\t\t// Flatten into single collection\n\t\tList<TaskStatus> result = new ArrayList<TaskStatus>((int)(statusTree.size()*this.getThreadCount()));\n\t\tfor(Collection<TaskStatus> statusForNode: statusTree) {\n\t\t\tresult.addAll(statusForNode);\n\t\t}\n\t\t\n\t\treturn result;\n \n\t}",
"int getNodeCount() {\n\t\treturn m_list_nodes.size();\n\t}",
"int getNodesCount();",
"int getNodesCount();",
"public java.util.List<java.lang.Integer>\n getStatusList() {\n return status_;\n }",
"public static int getNumberOfNodes() {\n return(numberOfNodes);\n\t }",
"@java.lang.Override\n public int getNodesCount() {\n return nodes_.size();\n }",
"java.util.List<entities.Torrent.NodeId>\n getNodesList();",
"List<CommunicationLink> getAllNodes()\n {\n return new ArrayList<>(allNodes.values());\n }",
"private NodeRestartRequest() {\n\t\t}",
"public ODocument clusterStatus() {\n checkConnected();\n return remote.getClusterStatus(user, password);\n }",
"public StatusChecker(Node node){\n this.node=node;\n start();\n }",
"public Builder clearNodeStatusList() {\n if (nodeStatusListBuilder_ == null) {\n nodeStatusList_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n nodeStatusListBuilder_.clear();\n }\n return this;\n }",
"@java.lang.Override\n public java.util.List<entities.Torrent.NodeId> getNodesList() {\n return nodes_;\n }",
"public int getNumberOfNodesEvaluated();",
"private List<Node> getNodes() {\n List<Node> nodes = new ArrayList<Node>();\n NodeApi.GetConnectedNodesResult rawNodes =\n Wearable.NodeApi.getConnectedNodes(mGoogleApiClient).await();\n for (Node node : rawNodes.getNodes()) {\n nodes.add(node);\n }\n return nodes;\n }",
"java.util.List<java.lang.Integer> getStatusList();",
"public int numNodes() {\n\t\treturn numNodes;\n\t}",
"void updateRmiClientsCount() {\n int noOfClientsConnected = 0;\n\n String[] connectionIds = rmiConnector.getConnectionIds();\n\n if (connectionIds != null) {\n noOfClientsConnected = connectionIds.length;\n }\n\n logger.info(\"No. of RMI clients connected :: {}\", noOfClientsConnected);\n\n AdminDistributedSystemJmxImpl adminDSJmx = (AdminDistributedSystemJmxImpl) system;\n\n adminDSJmx.setRmiClientCountZero(noOfClientsConnected == 0);\n }",
"public int getReplicationDegree() {\n return replicationDegree;\n }",
"public int getReplicationDegree() {\n return replicationDegree;\n }",
"public List<NetworkNode> listNetworkNode();",
"private void updateGeoRepStatus(GlusterVolumeEntity volume, GlusterGeoRepSession session) {\n\n List<HashSet<GeoRepSessionStatus>> list = new ArrayList<>();\n // grouped node status\n int replicaCount = volume.getReplicaCount() == 0 ? 1 : volume.getReplicaCount();\n for (int i = 0; i < volume.getBricks().size(); i = i + replicaCount) {\n HashSet<GeoRepSessionStatus> subVolumeStatusSet = new HashSet<>();\n int j = 0;\n while (j < replicaCount) {\n Guid brickId = volume.getBricks().get(i + j).getId();\n subVolumeStatusSet.add(getStatusForBrickFromSession(session, brickId));\n j++;\n }\n list.add(subVolumeStatusSet);\n }\n\n session.setStatus(GeoRepSessionStatus.ACTIVE);\n // iterate through grouped status to set consolidated status\n for (HashSet<GeoRepSessionStatus> subVolumeStatusValues : list) {\n if (subVolumeStatusValues.contains(GeoRepSessionStatus.ACTIVE)) {\n // healthy\n continue;\n } else if (subVolumeStatusValues.contains(GeoRepSessionStatus.FAULTY)) {\n session.setStatus(GeoRepSessionStatus.FAULTY);\n // if any one of the sub-volume is faulty, the overall session status if faulty\n return;\n }\n // override status in case of these values\n if (ArrayUtils.contains(overridableStatuses, session.getStatus())) {\n if (subVolumeStatusValues.size() == 1) {\n session.setStatus((GeoRepSessionStatus) subVolumeStatusValues.toArray()[0]);\n } else {\n // if status values in sub-volume are not the same, what do we do?\n // this should not happen, so we'll log it for now\n log.info(\"Multiple status values found in volume '{}'\", session.getMasterVolumeName());\n }\n }\n }\n\n }",
"@SuppressWarnings(\"unused\")\n private ReplicationStatusResponse() {\n this(false);\n }",
"int getNrNodes() {\n\t\treturn adjList.size();\n\t}",
"public int getConnectionStatus()\r\n { return connectionStatus; }",
"int getNodeCount();",
"int getNodeCount();",
"public int getNodeCount() {\n return nodeCount;\n }",
"public int getNetworkNodesNumber() {\n\t\t\n\t\t//Return nodes size\n\t\treturn nodes.size();\n\t\t\n\t}",
"void nodeOnline();",
"public static String getClusterStatusNodePath() {\n return String.join(\"/\", \"\", ROOT_NODE, COMPUTE_NODE, STATUS_NODE);\n }",
"@Override\n protected int minimumNumberOfReplicas() {\n return 1;\n }",
"@Override\n public void statusUpdate(final String asgName, final ASGStatus newStatus, final boolean isReplication) {\n if (isReplication) {\n return;\n }\n for (final PeerEurekaNode node : peerEurekaNodes.getPeerEurekaNodes()) {\n replicateASGInfoToReplicaNodes(asgName, newStatus, node);\n\n }\n }",
"@PostMapping(\"/queryGroupStatus/list\")\n @PreAuthorize(ConstantProperties.HAS_ROLE_ADMIN)\n public BaseResponse getGroupStatusList(@Valid @RequestBody ReqGroupStatus reqGroupStatus) throws NodeMgrException {\n Instant startTime = Instant.now();\n BaseResponse baseResponse = new BaseResponse(ConstantCode.SUCCESS);\n log.info(\"start getGroupStatusMap startTime:{}\", startTime.toEpochMilli());\n List<String> nodeIdList = reqGroupStatus.getNodeIdList();\n List<RspGroupStatus> resList = groupService.listGroupStatus(nodeIdList,\n reqGroupStatus.getGroupIdList());\n baseResponse.setData(resList);\n log.info(\"end getGroupStatusMap useTime:{} result:{}\",\n Duration.between(startTime, Instant.now()).toMillis(),\n JsonTools.toJSONString(baseResponse));\n return baseResponse;\n }",
"java.util.List<? extends io.netifi.proteus.admin.om.NodeOrBuilder> \n getNodesOrBuilderList();",
"public String getNumberOfNodesEvaluated(){return Integer.toString(NumberOfVisitedNodes);}",
"private void getNodesCount(HttpServletRequest request, HttpServletResponse response) throws IOException {\n int countNodes = SimApi.getNodesCount();\n response.getWriter().write(Integer.toString(countNodes));\n }",
"@Test(timeout = 10000L)\n public void testNodesInformation() throws Exception {\n CommonDriverAdminTests.testNodesInformation(client, nbNodes);\n }",
"public int getNumNodes() {\n\t\treturn nodes.size();\n\t}",
"public abstract Collection<Node> getAllSuccessors();",
"@RequestLine(\"GET /status\")\n Status getNeustarNetworkStatus();",
"public void printStatus(){\n System.out.println(\"Nodes: \" + \n getVertexCount() + \" Edges: \" + \n getEdgeCount()); \n //and \" + getEdgeCount() + \" edges active.\");\n }",
"public int getStatusCount() {\n return status_.size();\n }",
"public List<Long> getSessionNodes() {\n List<Long> ret = new ArrayList<>();\n\n for (int i = 0; i < sessionsList.size(); i++) {\n ret.add(sessionsList.get(i).dhtNodes());\n }\n\n return ret;\n }",
"@Override\n public ClusterStatus getCurrentClusterStatus() {\n if (getMemberList().size() > 1) {\n return CLUSTER_FUNCTIONAL;\n }\n // when only one node is connected return degraded\n if (getMemberList().size() == 1) {\n return CLUSTER_DEGRADED;\n }\n // consider all other states as illegal\n return CLUSTER_ILLEGAL;\n }",
"private void refreshNodeList() {\n if (UnderNet.router.status.equals(InterfaceStatus.STARTED)) {\n //Using connected and cached nodes if the router has started.\n ArrayList<Node> nodesToList = UnderNet.router.getConnectedNodes();\n for (Node cachedNode :\n EntryNodeCache.cachedNodes) {\n boolean canAdd = true;\n for (Node connectedNode : UnderNet.router.getConnectedNodes()) {\n if (cachedNode.getAddress().equals(connectedNode.getAddress())) {\n canAdd = false;\n }\n }\n if (canAdd) {\n nodesToList.add(cachedNode);\n }\n }\n nodeList.setListData(nodesToList.toArray());\n } else {\n //Using cached nodes if the router isn't online.\n nodeList.setListData(EntryNodeCache.cachedNodes.toArray());\n }\n }",
"public int getNodeCount() {\n return node_.size();\n }",
"public Builder setNodeStatusList(\n int index, entities.Torrent.NodeReplicationStatus.Builder builderForValue) {\n if (nodeStatusListBuilder_ == null) {\n ensureNodeStatusListIsMutable();\n nodeStatusList_.set(index, builderForValue.build());\n onChanged();\n } else {\n nodeStatusListBuilder_.setMessage(index, builderForValue.build());\n }\n return this;\n }",
"public List<Output<TInt32>> nodeIdsList() {\n return nodeIdsList;\n }",
"List<StatusListener> mo9950b();",
"int getStatusCount();",
"@Override\n public void onNewClusterState(ClusterState state) {\n transportService.sendRequest(\n clusterService.localNode(),\n transportReplicaAction,\n replicaRequest,\n new ActionListenerResponseHandler<>(onCompletionListener, ReplicaResponse::new)\n );\n }",
"public java.util.List<? extends entities.Torrent.NodeIdOrBuilder>\n getNodesOrBuilderList() {\n if (nodesBuilder_ != null) {\n return nodesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(nodes_);\n }\n }",
"@Override\r\n\tpublic int getNumberOfNodes() {\n\t\treturn 0;\r\n\t}",
"public java.util.List<java.lang.Integer>\n getStatusList() {\n return java.util.Collections.unmodifiableList(status_);\n }",
"void refreshNodeHostCount(int nodeHostCount);",
"protected int numNodes() {\n\t\treturn nodes.size();\n\t}",
"public static void getStatus() {\n\t\ttry {\n\t\t\tint i = 1;\n\t\t\tList<Object[]>serverDetails = ServerStatus.getServerDetails();\n\t\t\tfor (Object[] servers:serverDetails){\n\t\t\t\tServerStatus.verifyServerStatus(i,(String)servers[0], (String)servers[1], (String)servers[2]);\n\t\t\t\ti++;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tcatch (Exception ex){\n\t\t\tex.printStackTrace();\n\t\t}\n\t}",
"public Vector<Node> getNodes(){\n\t\treturn this.listOfNodes;\n\t}"
] |
[
"0.7677447",
"0.73326534",
"0.72751945",
"0.7187517",
"0.7156577",
"0.71170497",
"0.71088874",
"0.70586026",
"0.70244354",
"0.68789655",
"0.68768275",
"0.6863607",
"0.6732412",
"0.6665126",
"0.6640762",
"0.65603524",
"0.6556245",
"0.63225454",
"0.6302617",
"0.62158686",
"0.6154571",
"0.6059235",
"0.6021623",
"0.5969211",
"0.5746757",
"0.5746533",
"0.5725065",
"0.5719905",
"0.5702983",
"0.5561155",
"0.55533105",
"0.5541831",
"0.5535313",
"0.55308056",
"0.55150694",
"0.5509859",
"0.54764414",
"0.54578775",
"0.5451353",
"0.5438688",
"0.54318774",
"0.54126287",
"0.54034257",
"0.54034257",
"0.5391672",
"0.5390411",
"0.53832936",
"0.53727967",
"0.5370394",
"0.53702694",
"0.53679216",
"0.5354863",
"0.5338436",
"0.53293514",
"0.53118134",
"0.530631",
"0.5305603",
"0.5295997",
"0.5294718",
"0.5293353",
"0.5293353",
"0.5286944",
"0.5276236",
"0.5274766",
"0.5272741",
"0.52713966",
"0.52693284",
"0.52693284",
"0.5261072",
"0.526089",
"0.5252027",
"0.52506906",
"0.52486336",
"0.5245913",
"0.5236892",
"0.5232337",
"0.5231927",
"0.5229986",
"0.5226807",
"0.52229863",
"0.5216052",
"0.5215427",
"0.5215198",
"0.5204292",
"0.5199826",
"0.519047",
"0.51865757",
"0.51846725",
"0.5180031",
"0.5179613",
"0.5179007",
"0.51780134",
"0.515467",
"0.51541543",
"0.5154118",
"0.5149366",
"0.514844",
"0.51400506",
"0.51396614",
"0.512528"
] |
0.63892424
|
17
|
The status of all the requests to other nodes repeated .NodeReplicationStatus nodeStatusList = 3;
|
public entities.Torrent.NodeReplicationStatus getNodeStatusList(int index) {
if (nodeStatusListBuilder_ == null) {
return nodeStatusList_.get(index);
} else {
return nodeStatusListBuilder_.getMessage(index);
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"entities.Torrent.NodeReplicationStatus getNodeStatusList(int index);",
"@java.lang.Override\n public java.util.List<entities.Torrent.NodeReplicationStatus> getNodeStatusListList() {\n return nodeStatusList_;\n }",
"java.util.List<entities.Torrent.NodeReplicationStatus>\n getNodeStatusListList();",
"public java.util.List<entities.Torrent.NodeReplicationStatus> getNodeStatusListList() {\n if (nodeStatusListBuilder_ == null) {\n return java.util.Collections.unmodifiableList(nodeStatusList_);\n } else {\n return nodeStatusListBuilder_.getMessageList();\n }\n }",
"@java.lang.Override\n public java.util.List<? extends entities.Torrent.NodeReplicationStatusOrBuilder>\n getNodeStatusListOrBuilderList() {\n return nodeStatusList_;\n }",
"public java.util.List<? extends entities.Torrent.NodeReplicationStatusOrBuilder>\n getNodeStatusListOrBuilderList() {\n if (nodeStatusListBuilder_ != null) {\n return nodeStatusListBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(nodeStatusList_);\n }\n }",
"@java.lang.Override\n public int getNodeStatusListCount() {\n return nodeStatusList_.size();\n }",
"java.util.List<? extends entities.Torrent.NodeReplicationStatusOrBuilder>\n getNodeStatusListOrBuilderList();",
"public entities.Torrent.NodeReplicationStatus.Builder addNodeStatusListBuilder() {\n return getNodeStatusListFieldBuilder().addBuilder(\n entities.Torrent.NodeReplicationStatus.getDefaultInstance());\n }",
"int getNodeStatusListCount();",
"@java.lang.Override\n public entities.Torrent.NodeReplicationStatus getNodeStatusList(int index) {\n return nodeStatusList_.get(index);\n }",
"entities.Torrent.NodeReplicationStatusOrBuilder getNodeStatusListOrBuilder(\n int index);",
"@java.lang.Override\n public entities.Torrent.NodeReplicationStatusOrBuilder getNodeStatusListOrBuilder(\n int index) {\n return nodeStatusList_.get(index);\n }",
"public Builder addNodeStatusList(entities.Torrent.NodeReplicationStatus value) {\n if (nodeStatusListBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureNodeStatusListIsMutable();\n nodeStatusList_.add(value);\n onChanged();\n } else {\n nodeStatusListBuilder_.addMessage(value);\n }\n return this;\n }",
"public Builder addAllNodeStatusList(\n java.lang.Iterable<? extends entities.Torrent.NodeReplicationStatus> values) {\n if (nodeStatusListBuilder_ == null) {\n ensureNodeStatusListIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, nodeStatusList_);\n onChanged();\n } else {\n nodeStatusListBuilder_.addAllMessages(values);\n }\n return this;\n }",
"public entities.Torrent.NodeReplicationStatusOrBuilder getNodeStatusListOrBuilder(\n int index) {\n if (nodeStatusListBuilder_ == null) {\n return nodeStatusList_.get(index); } else {\n return nodeStatusListBuilder_.getMessageOrBuilder(index);\n }\n }",
"public int getNodeStatusListCount() {\n if (nodeStatusListBuilder_ == null) {\n return nodeStatusList_.size();\n } else {\n return nodeStatusListBuilder_.getCount();\n }\n }",
"public final int[] cacheNodeStatus() {\n return new int[]{0,0,0,0,0,0,0,0,0,0};\r\n }",
"public java.util.List<entities.Torrent.NodeReplicationStatus.Builder>\n getNodeStatusListBuilderList() {\n return getNodeStatusListFieldBuilder().getBuilderList();\n }",
"public Builder setNodeStatusList(\n int index, entities.Torrent.NodeReplicationStatus value) {\n if (nodeStatusListBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureNodeStatusListIsMutable();\n nodeStatusList_.set(index, value);\n onChanged();\n } else {\n nodeStatusListBuilder_.setMessage(index, value);\n }\n return this;\n }",
"private NodeReplicationStatus(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"int getReplicationCount();",
"public Builder addNodeStatusList(\n int index, entities.Torrent.NodeReplicationStatus value) {\n if (nodeStatusListBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureNodeStatusListIsMutable();\n nodeStatusList_.add(index, value);\n onChanged();\n } else {\n nodeStatusListBuilder_.addMessage(index, value);\n }\n return this;\n }",
"public entities.Torrent.NodeReplicationStatus.Builder addNodeStatusListBuilder(\n int index) {\n return getNodeStatusListFieldBuilder().addBuilder(\n index, entities.Torrent.NodeReplicationStatus.getDefaultInstance());\n }",
"public int getNumNodesSeenByMessage() {\r\n return numNodesSeenByMessage;\r\n }",
"public abstract String getNodeStatusVariableName();",
"public Builder addNodeStatusList(\n entities.Torrent.NodeReplicationStatus.Builder builderForValue) {\n if (nodeStatusListBuilder_ == null) {\n ensureNodeStatusListIsMutable();\n nodeStatusList_.add(builderForValue.build());\n onChanged();\n } else {\n nodeStatusListBuilder_.addMessage(builderForValue.build());\n }\n return this;\n }",
"public entities.Torrent.NodeReplicationStatus.Builder getNodeStatusListBuilder(\n int index) {\n return getNodeStatusListFieldBuilder().getBuilder(index);\n }",
"java.util.List<io.netifi.proteus.admin.om.Node> \n getNodesList();",
"public void list() {\r\n\t\tfor (String key : nodeMap.keySet()) {\r\n\t\t\tNodeRef node = nodeMap.get(key);\r\n\t\t\tSystem.out.println(node.getIp() + \" : \" + node.getPort());\r\n\t\t}\t\t\r\n\t}",
"public static int countNodes() {\n\t\treturn count_nodes;\n\t}",
"default Promise<List<String>> findAllNodesWithStatus(HealthStatus queryStatus) {\n final Promise<List<String>> promise = Promises.promise();\n promise.resolve(Collections.emptyList());\n return promise;\n\n }",
"@Override\n\tpublic long numNodes() {\n\t\treturn numNodes;\n\t}",
"public java.util.List<entities.Torrent.NodeId> getNodesList() {\n if (nodesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(nodes_);\n } else {\n return nodesBuilder_.getMessageList();\n }\n }",
"public NodeInformation[] getNodes() throws CassandraServerManagementException {\r\n StorageServiceMBean ssMBean = null;\r\n try {\r\n ssMBean = CassandraAdminDataHolder\r\n .getInstance().getCassandraMBeanLocator().locateStorageServiceMBean();\r\n } catch (CassandraServerManagementException e) {\r\n handleException(\"Error occurred while retrieving node information list\", e);\r\n }\r\n\r\n if (ssMBean == null) {\r\n handleException(\"Storage Server MBean is null\");\r\n }\r\n\r\n Map<String, String> tokenToEndpoint = ssMBean.getTokenToEndpointMap();\r\n List<String> sortedTokens = new ArrayList<String>(tokenToEndpoint.keySet());\r\n Collections.sort(sortedTokens);\r\n\r\n /* Calculate per-token ownership of the ring */\r\n Map<InetAddress, Float> ownerships = ssMBean.getOwnership();\r\n\r\n List<NodeInformation> nodeInfoList = new ArrayList<NodeInformation>();\r\n for (String token : sortedTokens) {\r\n String primaryEndpoint = tokenToEndpoint.get(token);\r\n String status = ssMBean.getLiveNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_UP\r\n : ssMBean.getUnreachableNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_DOWN\r\n : CassandraManagementConstants.NodeStatuses.NODE_STATUS_UNKNOWN;\r\n\r\n String state = ssMBean.getJoiningNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_JOINING\r\n : ssMBean.getLeavingNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_LEAVING\r\n : CassandraManagementConstants.NodeStatuses.NODE_STATUS_NORMAL;\r\n\r\n Map<String, String> loadMap = ssMBean.getLoadMap();\r\n String load = loadMap.containsKey(primaryEndpoint)\r\n ? loadMap.get(primaryEndpoint)\r\n : CassandraManagementConstants.NodeStatuses.NODE_STATUS_UNKNOWN;\r\n\r\n Float ownership = ownerships.get(token);\r\n String owns = \"N/A\";\r\n if(ownership!=null){\r\n owns = new DecimalFormat(\"##0.00%\").format(ownership);\r\n }\r\n NodeInformation nodeInfo = new NodeInformation();\r\n nodeInfo.setAddress(primaryEndpoint);\r\n nodeInfo.setState(state);\r\n nodeInfo.setStatus(status);\r\n nodeInfo.setOwn(owns);\r\n nodeInfo.setLoad(load);\r\n nodeInfo.setToken(token);\r\n nodeInfoList.add(nodeInfo);\r\n }\r\n return nodeInfoList.toArray(new NodeInformation[nodeInfoList.size()]);\r\n }",
"public String replicationState() {\n return this.replicationState;\n }",
"@Override\n public boolean getCurrentNodeStatus(InetAddress ia) {\n if (ia.isAnyLocalAddress()) {\n return true;\n }\n // Check if given address is in cluster\n for (Client c : instance.getClientService().getConnectedClients()) {\n if (c.getSocketAddress().getAddress().equals(ia)) {\n return true;\n }\n }\n // reject all other addresses\n return false;\n }",
"int numNodes() {\n\t\treturn num_nodes;\n\t}",
"private int numNodes()\r\n\t{\r\n\t return nodeMap.size();\r\n\t}",
"public int lockedNodeCount() {\n\treturn lockedNodes;\n }",
"@Override\n\tpublic Collection<TaskStatus> getTaskStatus(){\n \tcheckInitialized();\n \t\n \t@SuppressWarnings(\"unchecked\")\n\t\tCollection<Collection<TaskStatus>> statusTree=Collections.EMPTY_LIST;\n \tfinal MultiTask<Collection<TaskStatus>> mtask;\n \ttry {\n\t\t\t mtask = breeder.executeCallable(new GetTaskStatus(this));\n\t\t\t statusTree = mtask.get();\n \t} catch (ExecutionException ex){\n \t\tlog.fatal(\"Could not get status of tasks for job \"+this.getId(), ex);\n \t} catch(InterruptedException ex) {\n \t\tlog.fatal(\"Could not get status of tasks for job \"+this.getId(), ex);\n \t}\n\t\t\t\n\t\t// Flatten into single collection\n\t\tList<TaskStatus> result = new ArrayList<TaskStatus>((int)(statusTree.size()*this.getThreadCount()));\n\t\tfor(Collection<TaskStatus> statusForNode: statusTree) {\n\t\t\tresult.addAll(statusForNode);\n\t\t}\n\t\t\n\t\treturn result;\n \n\t}",
"int getNodeCount() {\n\t\treturn m_list_nodes.size();\n\t}",
"int getNodesCount();",
"int getNodesCount();",
"public java.util.List<java.lang.Integer>\n getStatusList() {\n return status_;\n }",
"public static int getNumberOfNodes() {\n return(numberOfNodes);\n\t }",
"@java.lang.Override\n public int getNodesCount() {\n return nodes_.size();\n }",
"private NodeRestartRequest() {\n\t\t}",
"java.util.List<entities.Torrent.NodeId>\n getNodesList();",
"List<CommunicationLink> getAllNodes()\n {\n return new ArrayList<>(allNodes.values());\n }",
"public ODocument clusterStatus() {\n checkConnected();\n return remote.getClusterStatus(user, password);\n }",
"public StatusChecker(Node node){\n this.node=node;\n start();\n }",
"public Builder clearNodeStatusList() {\n if (nodeStatusListBuilder_ == null) {\n nodeStatusList_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n nodeStatusListBuilder_.clear();\n }\n return this;\n }",
"@java.lang.Override\n public java.util.List<entities.Torrent.NodeId> getNodesList() {\n return nodes_;\n }",
"public int getNumberOfNodesEvaluated();",
"java.util.List<java.lang.Integer> getStatusList();",
"private List<Node> getNodes() {\n List<Node> nodes = new ArrayList<Node>();\n NodeApi.GetConnectedNodesResult rawNodes =\n Wearable.NodeApi.getConnectedNodes(mGoogleApiClient).await();\n for (Node node : rawNodes.getNodes()) {\n nodes.add(node);\n }\n return nodes;\n }",
"public int numNodes() {\n\t\treturn numNodes;\n\t}",
"void updateRmiClientsCount() {\n int noOfClientsConnected = 0;\n\n String[] connectionIds = rmiConnector.getConnectionIds();\n\n if (connectionIds != null) {\n noOfClientsConnected = connectionIds.length;\n }\n\n logger.info(\"No. of RMI clients connected :: {}\", noOfClientsConnected);\n\n AdminDistributedSystemJmxImpl adminDSJmx = (AdminDistributedSystemJmxImpl) system;\n\n adminDSJmx.setRmiClientCountZero(noOfClientsConnected == 0);\n }",
"public int getReplicationDegree() {\n return replicationDegree;\n }",
"public int getReplicationDegree() {\n return replicationDegree;\n }",
"public List<NetworkNode> listNetworkNode();",
"private void updateGeoRepStatus(GlusterVolumeEntity volume, GlusterGeoRepSession session) {\n\n List<HashSet<GeoRepSessionStatus>> list = new ArrayList<>();\n // grouped node status\n int replicaCount = volume.getReplicaCount() == 0 ? 1 : volume.getReplicaCount();\n for (int i = 0; i < volume.getBricks().size(); i = i + replicaCount) {\n HashSet<GeoRepSessionStatus> subVolumeStatusSet = new HashSet<>();\n int j = 0;\n while (j < replicaCount) {\n Guid brickId = volume.getBricks().get(i + j).getId();\n subVolumeStatusSet.add(getStatusForBrickFromSession(session, brickId));\n j++;\n }\n list.add(subVolumeStatusSet);\n }\n\n session.setStatus(GeoRepSessionStatus.ACTIVE);\n // iterate through grouped status to set consolidated status\n for (HashSet<GeoRepSessionStatus> subVolumeStatusValues : list) {\n if (subVolumeStatusValues.contains(GeoRepSessionStatus.ACTIVE)) {\n // healthy\n continue;\n } else if (subVolumeStatusValues.contains(GeoRepSessionStatus.FAULTY)) {\n session.setStatus(GeoRepSessionStatus.FAULTY);\n // if any one of the sub-volume is faulty, the overall session status if faulty\n return;\n }\n // override status in case of these values\n if (ArrayUtils.contains(overridableStatuses, session.getStatus())) {\n if (subVolumeStatusValues.size() == 1) {\n session.setStatus((GeoRepSessionStatus) subVolumeStatusValues.toArray()[0]);\n } else {\n // if status values in sub-volume are not the same, what do we do?\n // this should not happen, so we'll log it for now\n log.info(\"Multiple status values found in volume '{}'\", session.getMasterVolumeName());\n }\n }\n }\n\n }",
"@SuppressWarnings(\"unused\")\n private ReplicationStatusResponse() {\n this(false);\n }",
"int getNrNodes() {\n\t\treturn adjList.size();\n\t}",
"public int getConnectionStatus()\r\n { return connectionStatus; }",
"int getNodeCount();",
"int getNodeCount();",
"public int getNodeCount() {\n return nodeCount;\n }",
"public int getNetworkNodesNumber() {\n\t\t\n\t\t//Return nodes size\n\t\treturn nodes.size();\n\t\t\n\t}",
"void nodeOnline();",
"public static String getClusterStatusNodePath() {\n return String.join(\"/\", \"\", ROOT_NODE, COMPUTE_NODE, STATUS_NODE);\n }",
"@Override\n protected int minimumNumberOfReplicas() {\n return 1;\n }",
"@Override\n public void statusUpdate(final String asgName, final ASGStatus newStatus, final boolean isReplication) {\n if (isReplication) {\n return;\n }\n for (final PeerEurekaNode node : peerEurekaNodes.getPeerEurekaNodes()) {\n replicateASGInfoToReplicaNodes(asgName, newStatus, node);\n\n }\n }",
"@PostMapping(\"/queryGroupStatus/list\")\n @PreAuthorize(ConstantProperties.HAS_ROLE_ADMIN)\n public BaseResponse getGroupStatusList(@Valid @RequestBody ReqGroupStatus reqGroupStatus) throws NodeMgrException {\n Instant startTime = Instant.now();\n BaseResponse baseResponse = new BaseResponse(ConstantCode.SUCCESS);\n log.info(\"start getGroupStatusMap startTime:{}\", startTime.toEpochMilli());\n List<String> nodeIdList = reqGroupStatus.getNodeIdList();\n List<RspGroupStatus> resList = groupService.listGroupStatus(nodeIdList,\n reqGroupStatus.getGroupIdList());\n baseResponse.setData(resList);\n log.info(\"end getGroupStatusMap useTime:{} result:{}\",\n Duration.between(startTime, Instant.now()).toMillis(),\n JsonTools.toJSONString(baseResponse));\n return baseResponse;\n }",
"public String getNumberOfNodesEvaluated(){return Integer.toString(NumberOfVisitedNodes);}",
"java.util.List<? extends io.netifi.proteus.admin.om.NodeOrBuilder> \n getNodesOrBuilderList();",
"private void getNodesCount(HttpServletRequest request, HttpServletResponse response) throws IOException {\n int countNodes = SimApi.getNodesCount();\n response.getWriter().write(Integer.toString(countNodes));\n }",
"@Test(timeout = 10000L)\n public void testNodesInformation() throws Exception {\n CommonDriverAdminTests.testNodesInformation(client, nbNodes);\n }",
"public int getNumNodes() {\n\t\treturn nodes.size();\n\t}",
"public abstract Collection<Node> getAllSuccessors();",
"@RequestLine(\"GET /status\")\n Status getNeustarNetworkStatus();",
"public void printStatus(){\n System.out.println(\"Nodes: \" + \n getVertexCount() + \" Edges: \" + \n getEdgeCount()); \n //and \" + getEdgeCount() + \" edges active.\");\n }",
"public int getStatusCount() {\n return status_.size();\n }",
"public List<Long> getSessionNodes() {\n List<Long> ret = new ArrayList<>();\n\n for (int i = 0; i < sessionsList.size(); i++) {\n ret.add(sessionsList.get(i).dhtNodes());\n }\n\n return ret;\n }",
"@Override\n public ClusterStatus getCurrentClusterStatus() {\n if (getMemberList().size() > 1) {\n return CLUSTER_FUNCTIONAL;\n }\n // when only one node is connected return degraded\n if (getMemberList().size() == 1) {\n return CLUSTER_DEGRADED;\n }\n // consider all other states as illegal\n return CLUSTER_ILLEGAL;\n }",
"private void refreshNodeList() {\n if (UnderNet.router.status.equals(InterfaceStatus.STARTED)) {\n //Using connected and cached nodes if the router has started.\n ArrayList<Node> nodesToList = UnderNet.router.getConnectedNodes();\n for (Node cachedNode :\n EntryNodeCache.cachedNodes) {\n boolean canAdd = true;\n for (Node connectedNode : UnderNet.router.getConnectedNodes()) {\n if (cachedNode.getAddress().equals(connectedNode.getAddress())) {\n canAdd = false;\n }\n }\n if (canAdd) {\n nodesToList.add(cachedNode);\n }\n }\n nodeList.setListData(nodesToList.toArray());\n } else {\n //Using cached nodes if the router isn't online.\n nodeList.setListData(EntryNodeCache.cachedNodes.toArray());\n }\n }",
"public int getNodeCount() {\n return node_.size();\n }",
"public Builder setNodeStatusList(\n int index, entities.Torrent.NodeReplicationStatus.Builder builderForValue) {\n if (nodeStatusListBuilder_ == null) {\n ensureNodeStatusListIsMutable();\n nodeStatusList_.set(index, builderForValue.build());\n onChanged();\n } else {\n nodeStatusListBuilder_.setMessage(index, builderForValue.build());\n }\n return this;\n }",
"int getStatusCount();",
"List<StatusListener> mo9950b();",
"public List<Output<TInt32>> nodeIdsList() {\n return nodeIdsList;\n }",
"@Override\r\n\tpublic int getNumberOfNodes() {\n\t\treturn 0;\r\n\t}",
"@Override\n public void onNewClusterState(ClusterState state) {\n transportService.sendRequest(\n clusterService.localNode(),\n transportReplicaAction,\n replicaRequest,\n new ActionListenerResponseHandler<>(onCompletionListener, ReplicaResponse::new)\n );\n }",
"public java.util.List<? extends entities.Torrent.NodeIdOrBuilder>\n getNodesOrBuilderList() {\n if (nodesBuilder_ != null) {\n return nodesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(nodes_);\n }\n }",
"void refreshNodeHostCount(int nodeHostCount);",
"public java.util.List<java.lang.Integer>\n getStatusList() {\n return java.util.Collections.unmodifiableList(status_);\n }",
"protected int numNodes() {\n\t\treturn nodes.size();\n\t}",
"public static void getStatus() {\n\t\ttry {\n\t\t\tint i = 1;\n\t\t\tList<Object[]>serverDetails = ServerStatus.getServerDetails();\n\t\t\tfor (Object[] servers:serverDetails){\n\t\t\t\tServerStatus.verifyServerStatus(i,(String)servers[0], (String)servers[1], (String)servers[2]);\n\t\t\t\ti++;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tcatch (Exception ex){\n\t\t\tex.printStackTrace();\n\t\t}\n\t}",
"public Vector<Node> getNodes(){\n\t\treturn this.listOfNodes;\n\t}"
] |
[
"0.7676129",
"0.7331182",
"0.7273687",
"0.71861",
"0.715512",
"0.7115793",
"0.7109621",
"0.70572484",
"0.70231473",
"0.68802404",
"0.68754536",
"0.68622214",
"0.6731096",
"0.66391486",
"0.65591234",
"0.6555521",
"0.63903886",
"0.63232106",
"0.63019353",
"0.6214408",
"0.61544263",
"0.6059044",
"0.6020407",
"0.5968166",
"0.5747682",
"0.5747118",
"0.572477",
"0.5719498",
"0.5702324",
"0.55613613",
"0.5554103",
"0.55409944",
"0.55359095",
"0.55294245",
"0.5514939",
"0.5508245",
"0.54773027",
"0.54582757",
"0.5452121",
"0.54395384",
"0.5432274",
"0.5413921",
"0.5404272",
"0.5404272",
"0.5391273",
"0.5391093",
"0.53838295",
"0.5372251",
"0.5371431",
"0.53694195",
"0.53680325",
"0.5355719",
"0.5337264",
"0.5328223",
"0.5313206",
"0.53056794",
"0.5304752",
"0.52963203",
"0.5294912",
"0.52926546",
"0.52926546",
"0.52865416",
"0.52761674",
"0.52743804",
"0.52723396",
"0.52713174",
"0.5270979",
"0.5270979",
"0.5262344",
"0.5260428",
"0.5251417",
"0.525009",
"0.52486444",
"0.5244158",
"0.5236949",
"0.5233294",
"0.5232152",
"0.523205",
"0.5227255",
"0.5222861",
"0.5216217",
"0.5216119",
"0.5214923",
"0.52052957",
"0.5199027",
"0.5190343",
"0.51863825",
"0.5185727",
"0.5179844",
"0.51798075",
"0.51794755",
"0.51788676",
"0.5154731",
"0.5154184",
"0.51530594",
"0.51490337",
"0.514868",
"0.5140558",
"0.5139295",
"0.51247513"
] |
0.66640806
|
13
|
The status of all the requests to other nodes repeated .NodeReplicationStatus nodeStatusList = 3;
|
public Builder setNodeStatusList(
int index, entities.Torrent.NodeReplicationStatus value) {
if (nodeStatusListBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureNodeStatusListIsMutable();
nodeStatusList_.set(index, value);
onChanged();
} else {
nodeStatusListBuilder_.setMessage(index, value);
}
return this;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"entities.Torrent.NodeReplicationStatus getNodeStatusList(int index);",
"@java.lang.Override\n public java.util.List<entities.Torrent.NodeReplicationStatus> getNodeStatusListList() {\n return nodeStatusList_;\n }",
"java.util.List<entities.Torrent.NodeReplicationStatus>\n getNodeStatusListList();",
"public java.util.List<entities.Torrent.NodeReplicationStatus> getNodeStatusListList() {\n if (nodeStatusListBuilder_ == null) {\n return java.util.Collections.unmodifiableList(nodeStatusList_);\n } else {\n return nodeStatusListBuilder_.getMessageList();\n }\n }",
"@java.lang.Override\n public java.util.List<? extends entities.Torrent.NodeReplicationStatusOrBuilder>\n getNodeStatusListOrBuilderList() {\n return nodeStatusList_;\n }",
"public java.util.List<? extends entities.Torrent.NodeReplicationStatusOrBuilder>\n getNodeStatusListOrBuilderList() {\n if (nodeStatusListBuilder_ != null) {\n return nodeStatusListBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(nodeStatusList_);\n }\n }",
"@java.lang.Override\n public int getNodeStatusListCount() {\n return nodeStatusList_.size();\n }",
"java.util.List<? extends entities.Torrent.NodeReplicationStatusOrBuilder>\n getNodeStatusListOrBuilderList();",
"public entities.Torrent.NodeReplicationStatus.Builder addNodeStatusListBuilder() {\n return getNodeStatusListFieldBuilder().addBuilder(\n entities.Torrent.NodeReplicationStatus.getDefaultInstance());\n }",
"int getNodeStatusListCount();",
"@java.lang.Override\n public entities.Torrent.NodeReplicationStatus getNodeStatusList(int index) {\n return nodeStatusList_.get(index);\n }",
"entities.Torrent.NodeReplicationStatusOrBuilder getNodeStatusListOrBuilder(\n int index);",
"@java.lang.Override\n public entities.Torrent.NodeReplicationStatusOrBuilder getNodeStatusListOrBuilder(\n int index) {\n return nodeStatusList_.get(index);\n }",
"public entities.Torrent.NodeReplicationStatus getNodeStatusList(int index) {\n if (nodeStatusListBuilder_ == null) {\n return nodeStatusList_.get(index);\n } else {\n return nodeStatusListBuilder_.getMessage(index);\n }\n }",
"public Builder addNodeStatusList(entities.Torrent.NodeReplicationStatus value) {\n if (nodeStatusListBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureNodeStatusListIsMutable();\n nodeStatusList_.add(value);\n onChanged();\n } else {\n nodeStatusListBuilder_.addMessage(value);\n }\n return this;\n }",
"public Builder addAllNodeStatusList(\n java.lang.Iterable<? extends entities.Torrent.NodeReplicationStatus> values) {\n if (nodeStatusListBuilder_ == null) {\n ensureNodeStatusListIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, nodeStatusList_);\n onChanged();\n } else {\n nodeStatusListBuilder_.addAllMessages(values);\n }\n return this;\n }",
"public entities.Torrent.NodeReplicationStatusOrBuilder getNodeStatusListOrBuilder(\n int index) {\n if (nodeStatusListBuilder_ == null) {\n return nodeStatusList_.get(index); } else {\n return nodeStatusListBuilder_.getMessageOrBuilder(index);\n }\n }",
"public int getNodeStatusListCount() {\n if (nodeStatusListBuilder_ == null) {\n return nodeStatusList_.size();\n } else {\n return nodeStatusListBuilder_.getCount();\n }\n }",
"public final int[] cacheNodeStatus() {\n return new int[]{0,0,0,0,0,0,0,0,0,0};\r\n }",
"public java.util.List<entities.Torrent.NodeReplicationStatus.Builder>\n getNodeStatusListBuilderList() {\n return getNodeStatusListFieldBuilder().getBuilderList();\n }",
"private NodeReplicationStatus(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"int getReplicationCount();",
"public Builder addNodeStatusList(\n int index, entities.Torrent.NodeReplicationStatus value) {\n if (nodeStatusListBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureNodeStatusListIsMutable();\n nodeStatusList_.add(index, value);\n onChanged();\n } else {\n nodeStatusListBuilder_.addMessage(index, value);\n }\n return this;\n }",
"public entities.Torrent.NodeReplicationStatus.Builder addNodeStatusListBuilder(\n int index) {\n return getNodeStatusListFieldBuilder().addBuilder(\n index, entities.Torrent.NodeReplicationStatus.getDefaultInstance());\n }",
"public int getNumNodesSeenByMessage() {\r\n return numNodesSeenByMessage;\r\n }",
"public abstract String getNodeStatusVariableName();",
"public Builder addNodeStatusList(\n entities.Torrent.NodeReplicationStatus.Builder builderForValue) {\n if (nodeStatusListBuilder_ == null) {\n ensureNodeStatusListIsMutable();\n nodeStatusList_.add(builderForValue.build());\n onChanged();\n } else {\n nodeStatusListBuilder_.addMessage(builderForValue.build());\n }\n return this;\n }",
"public entities.Torrent.NodeReplicationStatus.Builder getNodeStatusListBuilder(\n int index) {\n return getNodeStatusListFieldBuilder().getBuilder(index);\n }",
"java.util.List<io.netifi.proteus.admin.om.Node> \n getNodesList();",
"public void list() {\r\n\t\tfor (String key : nodeMap.keySet()) {\r\n\t\t\tNodeRef node = nodeMap.get(key);\r\n\t\t\tSystem.out.println(node.getIp() + \" : \" + node.getPort());\r\n\t\t}\t\t\r\n\t}",
"public static int countNodes() {\n\t\treturn count_nodes;\n\t}",
"default Promise<List<String>> findAllNodesWithStatus(HealthStatus queryStatus) {\n final Promise<List<String>> promise = Promises.promise();\n promise.resolve(Collections.emptyList());\n return promise;\n\n }",
"@Override\n\tpublic long numNodes() {\n\t\treturn numNodes;\n\t}",
"public java.util.List<entities.Torrent.NodeId> getNodesList() {\n if (nodesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(nodes_);\n } else {\n return nodesBuilder_.getMessageList();\n }\n }",
"public NodeInformation[] getNodes() throws CassandraServerManagementException {\r\n StorageServiceMBean ssMBean = null;\r\n try {\r\n ssMBean = CassandraAdminDataHolder\r\n .getInstance().getCassandraMBeanLocator().locateStorageServiceMBean();\r\n } catch (CassandraServerManagementException e) {\r\n handleException(\"Error occurred while retrieving node information list\", e);\r\n }\r\n\r\n if (ssMBean == null) {\r\n handleException(\"Storage Server MBean is null\");\r\n }\r\n\r\n Map<String, String> tokenToEndpoint = ssMBean.getTokenToEndpointMap();\r\n List<String> sortedTokens = new ArrayList<String>(tokenToEndpoint.keySet());\r\n Collections.sort(sortedTokens);\r\n\r\n /* Calculate per-token ownership of the ring */\r\n Map<InetAddress, Float> ownerships = ssMBean.getOwnership();\r\n\r\n List<NodeInformation> nodeInfoList = new ArrayList<NodeInformation>();\r\n for (String token : sortedTokens) {\r\n String primaryEndpoint = tokenToEndpoint.get(token);\r\n String status = ssMBean.getLiveNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_UP\r\n : ssMBean.getUnreachableNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_DOWN\r\n : CassandraManagementConstants.NodeStatuses.NODE_STATUS_UNKNOWN;\r\n\r\n String state = ssMBean.getJoiningNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_JOINING\r\n : ssMBean.getLeavingNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_LEAVING\r\n : CassandraManagementConstants.NodeStatuses.NODE_STATUS_NORMAL;\r\n\r\n Map<String, String> loadMap = ssMBean.getLoadMap();\r\n String load = loadMap.containsKey(primaryEndpoint)\r\n ? loadMap.get(primaryEndpoint)\r\n : CassandraManagementConstants.NodeStatuses.NODE_STATUS_UNKNOWN;\r\n\r\n Float ownership = ownerships.get(token);\r\n String owns = \"N/A\";\r\n if(ownership!=null){\r\n owns = new DecimalFormat(\"##0.00%\").format(ownership);\r\n }\r\n NodeInformation nodeInfo = new NodeInformation();\r\n nodeInfo.setAddress(primaryEndpoint);\r\n nodeInfo.setState(state);\r\n nodeInfo.setStatus(status);\r\n nodeInfo.setOwn(owns);\r\n nodeInfo.setLoad(load);\r\n nodeInfo.setToken(token);\r\n nodeInfoList.add(nodeInfo);\r\n }\r\n return nodeInfoList.toArray(new NodeInformation[nodeInfoList.size()]);\r\n }",
"public String replicationState() {\n return this.replicationState;\n }",
"@Override\n public boolean getCurrentNodeStatus(InetAddress ia) {\n if (ia.isAnyLocalAddress()) {\n return true;\n }\n // Check if given address is in cluster\n for (Client c : instance.getClientService().getConnectedClients()) {\n if (c.getSocketAddress().getAddress().equals(ia)) {\n return true;\n }\n }\n // reject all other addresses\n return false;\n }",
"int numNodes() {\n\t\treturn num_nodes;\n\t}",
"private int numNodes()\r\n\t{\r\n\t return nodeMap.size();\r\n\t}",
"public int lockedNodeCount() {\n\treturn lockedNodes;\n }",
"@Override\n\tpublic Collection<TaskStatus> getTaskStatus(){\n \tcheckInitialized();\n \t\n \t@SuppressWarnings(\"unchecked\")\n\t\tCollection<Collection<TaskStatus>> statusTree=Collections.EMPTY_LIST;\n \tfinal MultiTask<Collection<TaskStatus>> mtask;\n \ttry {\n\t\t\t mtask = breeder.executeCallable(new GetTaskStatus(this));\n\t\t\t statusTree = mtask.get();\n \t} catch (ExecutionException ex){\n \t\tlog.fatal(\"Could not get status of tasks for job \"+this.getId(), ex);\n \t} catch(InterruptedException ex) {\n \t\tlog.fatal(\"Could not get status of tasks for job \"+this.getId(), ex);\n \t}\n\t\t\t\n\t\t// Flatten into single collection\n\t\tList<TaskStatus> result = new ArrayList<TaskStatus>((int)(statusTree.size()*this.getThreadCount()));\n\t\tfor(Collection<TaskStatus> statusForNode: statusTree) {\n\t\t\tresult.addAll(statusForNode);\n\t\t}\n\t\t\n\t\treturn result;\n \n\t}",
"int getNodeCount() {\n\t\treturn m_list_nodes.size();\n\t}",
"int getNodesCount();",
"int getNodesCount();",
"public java.util.List<java.lang.Integer>\n getStatusList() {\n return status_;\n }",
"public static int getNumberOfNodes() {\n return(numberOfNodes);\n\t }",
"@java.lang.Override\n public int getNodesCount() {\n return nodes_.size();\n }",
"java.util.List<entities.Torrent.NodeId>\n getNodesList();",
"private NodeRestartRequest() {\n\t\t}",
"List<CommunicationLink> getAllNodes()\n {\n return new ArrayList<>(allNodes.values());\n }",
"public ODocument clusterStatus() {\n checkConnected();\n return remote.getClusterStatus(user, password);\n }",
"public StatusChecker(Node node){\n this.node=node;\n start();\n }",
"public Builder clearNodeStatusList() {\n if (nodeStatusListBuilder_ == null) {\n nodeStatusList_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n nodeStatusListBuilder_.clear();\n }\n return this;\n }",
"@java.lang.Override\n public java.util.List<entities.Torrent.NodeId> getNodesList() {\n return nodes_;\n }",
"public int getNumberOfNodesEvaluated();",
"java.util.List<java.lang.Integer> getStatusList();",
"private List<Node> getNodes() {\n List<Node> nodes = new ArrayList<Node>();\n NodeApi.GetConnectedNodesResult rawNodes =\n Wearable.NodeApi.getConnectedNodes(mGoogleApiClient).await();\n for (Node node : rawNodes.getNodes()) {\n nodes.add(node);\n }\n return nodes;\n }",
"public int numNodes() {\n\t\treturn numNodes;\n\t}",
"void updateRmiClientsCount() {\n int noOfClientsConnected = 0;\n\n String[] connectionIds = rmiConnector.getConnectionIds();\n\n if (connectionIds != null) {\n noOfClientsConnected = connectionIds.length;\n }\n\n logger.info(\"No. of RMI clients connected :: {}\", noOfClientsConnected);\n\n AdminDistributedSystemJmxImpl adminDSJmx = (AdminDistributedSystemJmxImpl) system;\n\n adminDSJmx.setRmiClientCountZero(noOfClientsConnected == 0);\n }",
"public int getReplicationDegree() {\n return replicationDegree;\n }",
"public int getReplicationDegree() {\n return replicationDegree;\n }",
"public List<NetworkNode> listNetworkNode();",
"private void updateGeoRepStatus(GlusterVolumeEntity volume, GlusterGeoRepSession session) {\n\n List<HashSet<GeoRepSessionStatus>> list = new ArrayList<>();\n // grouped node status\n int replicaCount = volume.getReplicaCount() == 0 ? 1 : volume.getReplicaCount();\n for (int i = 0; i < volume.getBricks().size(); i = i + replicaCount) {\n HashSet<GeoRepSessionStatus> subVolumeStatusSet = new HashSet<>();\n int j = 0;\n while (j < replicaCount) {\n Guid brickId = volume.getBricks().get(i + j).getId();\n subVolumeStatusSet.add(getStatusForBrickFromSession(session, brickId));\n j++;\n }\n list.add(subVolumeStatusSet);\n }\n\n session.setStatus(GeoRepSessionStatus.ACTIVE);\n // iterate through grouped status to set consolidated status\n for (HashSet<GeoRepSessionStatus> subVolumeStatusValues : list) {\n if (subVolumeStatusValues.contains(GeoRepSessionStatus.ACTIVE)) {\n // healthy\n continue;\n } else if (subVolumeStatusValues.contains(GeoRepSessionStatus.FAULTY)) {\n session.setStatus(GeoRepSessionStatus.FAULTY);\n // if any one of the sub-volume is faulty, the overall session status if faulty\n return;\n }\n // override status in case of these values\n if (ArrayUtils.contains(overridableStatuses, session.getStatus())) {\n if (subVolumeStatusValues.size() == 1) {\n session.setStatus((GeoRepSessionStatus) subVolumeStatusValues.toArray()[0]);\n } else {\n // if status values in sub-volume are not the same, what do we do?\n // this should not happen, so we'll log it for now\n log.info(\"Multiple status values found in volume '{}'\", session.getMasterVolumeName());\n }\n }\n }\n\n }",
"@SuppressWarnings(\"unused\")\n private ReplicationStatusResponse() {\n this(false);\n }",
"int getNrNodes() {\n\t\treturn adjList.size();\n\t}",
"public int getConnectionStatus()\r\n { return connectionStatus; }",
"int getNodeCount();",
"int getNodeCount();",
"public int getNodeCount() {\n return nodeCount;\n }",
"public int getNetworkNodesNumber() {\n\t\t\n\t\t//Return nodes size\n\t\treturn nodes.size();\n\t\t\n\t}",
"void nodeOnline();",
"public static String getClusterStatusNodePath() {\n return String.join(\"/\", \"\", ROOT_NODE, COMPUTE_NODE, STATUS_NODE);\n }",
"@Override\n protected int minimumNumberOfReplicas() {\n return 1;\n }",
"@Override\n public void statusUpdate(final String asgName, final ASGStatus newStatus, final boolean isReplication) {\n if (isReplication) {\n return;\n }\n for (final PeerEurekaNode node : peerEurekaNodes.getPeerEurekaNodes()) {\n replicateASGInfoToReplicaNodes(asgName, newStatus, node);\n\n }\n }",
"@PostMapping(\"/queryGroupStatus/list\")\n @PreAuthorize(ConstantProperties.HAS_ROLE_ADMIN)\n public BaseResponse getGroupStatusList(@Valid @RequestBody ReqGroupStatus reqGroupStatus) throws NodeMgrException {\n Instant startTime = Instant.now();\n BaseResponse baseResponse = new BaseResponse(ConstantCode.SUCCESS);\n log.info(\"start getGroupStatusMap startTime:{}\", startTime.toEpochMilli());\n List<String> nodeIdList = reqGroupStatus.getNodeIdList();\n List<RspGroupStatus> resList = groupService.listGroupStatus(nodeIdList,\n reqGroupStatus.getGroupIdList());\n baseResponse.setData(resList);\n log.info(\"end getGroupStatusMap useTime:{} result:{}\",\n Duration.between(startTime, Instant.now()).toMillis(),\n JsonTools.toJSONString(baseResponse));\n return baseResponse;\n }",
"public String getNumberOfNodesEvaluated(){return Integer.toString(NumberOfVisitedNodes);}",
"private void getNodesCount(HttpServletRequest request, HttpServletResponse response) throws IOException {\n int countNodes = SimApi.getNodesCount();\n response.getWriter().write(Integer.toString(countNodes));\n }",
"java.util.List<? extends io.netifi.proteus.admin.om.NodeOrBuilder> \n getNodesOrBuilderList();",
"@Test(timeout = 10000L)\n public void testNodesInformation() throws Exception {\n CommonDriverAdminTests.testNodesInformation(client, nbNodes);\n }",
"public int getNumNodes() {\n\t\treturn nodes.size();\n\t}",
"public abstract Collection<Node> getAllSuccessors();",
"@RequestLine(\"GET /status\")\n Status getNeustarNetworkStatus();",
"public void printStatus(){\n System.out.println(\"Nodes: \" + \n getVertexCount() + \" Edges: \" + \n getEdgeCount()); \n //and \" + getEdgeCount() + \" edges active.\");\n }",
"public int getStatusCount() {\n return status_.size();\n }",
"public List<Long> getSessionNodes() {\n List<Long> ret = new ArrayList<>();\n\n for (int i = 0; i < sessionsList.size(); i++) {\n ret.add(sessionsList.get(i).dhtNodes());\n }\n\n return ret;\n }",
"@Override\n public ClusterStatus getCurrentClusterStatus() {\n if (getMemberList().size() > 1) {\n return CLUSTER_FUNCTIONAL;\n }\n // when only one node is connected return degraded\n if (getMemberList().size() == 1) {\n return CLUSTER_DEGRADED;\n }\n // consider all other states as illegal\n return CLUSTER_ILLEGAL;\n }",
"private void refreshNodeList() {\n if (UnderNet.router.status.equals(InterfaceStatus.STARTED)) {\n //Using connected and cached nodes if the router has started.\n ArrayList<Node> nodesToList = UnderNet.router.getConnectedNodes();\n for (Node cachedNode :\n EntryNodeCache.cachedNodes) {\n boolean canAdd = true;\n for (Node connectedNode : UnderNet.router.getConnectedNodes()) {\n if (cachedNode.getAddress().equals(connectedNode.getAddress())) {\n canAdd = false;\n }\n }\n if (canAdd) {\n nodesToList.add(cachedNode);\n }\n }\n nodeList.setListData(nodesToList.toArray());\n } else {\n //Using cached nodes if the router isn't online.\n nodeList.setListData(EntryNodeCache.cachedNodes.toArray());\n }\n }",
"public int getNodeCount() {\n return node_.size();\n }",
"public Builder setNodeStatusList(\n int index, entities.Torrent.NodeReplicationStatus.Builder builderForValue) {\n if (nodeStatusListBuilder_ == null) {\n ensureNodeStatusListIsMutable();\n nodeStatusList_.set(index, builderForValue.build());\n onChanged();\n } else {\n nodeStatusListBuilder_.setMessage(index, builderForValue.build());\n }\n return this;\n }",
"List<StatusListener> mo9950b();",
"int getStatusCount();",
"public List<Output<TInt32>> nodeIdsList() {\n return nodeIdsList;\n }",
"@Override\r\n\tpublic int getNumberOfNodes() {\n\t\treturn 0;\r\n\t}",
"@Override\n public void onNewClusterState(ClusterState state) {\n transportService.sendRequest(\n clusterService.localNode(),\n transportReplicaAction,\n replicaRequest,\n new ActionListenerResponseHandler<>(onCompletionListener, ReplicaResponse::new)\n );\n }",
"public java.util.List<? extends entities.Torrent.NodeIdOrBuilder>\n getNodesOrBuilderList() {\n if (nodesBuilder_ != null) {\n return nodesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(nodes_);\n }\n }",
"public java.util.List<java.lang.Integer>\n getStatusList() {\n return java.util.Collections.unmodifiableList(status_);\n }",
"void refreshNodeHostCount(int nodeHostCount);",
"protected int numNodes() {\n\t\treturn nodes.size();\n\t}",
"public static void getStatus() {\n\t\ttry {\n\t\t\tint i = 1;\n\t\t\tList<Object[]>serverDetails = ServerStatus.getServerDetails();\n\t\t\tfor (Object[] servers:serverDetails){\n\t\t\t\tServerStatus.verifyServerStatus(i,(String)servers[0], (String)servers[1], (String)servers[2]);\n\t\t\t\ti++;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tcatch (Exception ex){\n\t\t\tex.printStackTrace();\n\t\t}\n\t}",
"public Vector<Node> getNodes(){\n\t\treturn this.listOfNodes;\n\t}"
] |
[
"0.7677481",
"0.7332279",
"0.7275059",
"0.71873355",
"0.71560276",
"0.7116769",
"0.7109518",
"0.70585376",
"0.7024147",
"0.6879867",
"0.6876868",
"0.6864218",
"0.67323005",
"0.6665114",
"0.6640871",
"0.6559848",
"0.6556308",
"0.6390153",
"0.63229275",
"0.63024855",
"0.6154482",
"0.6059501",
"0.6021897",
"0.596904",
"0.5747415",
"0.5746043",
"0.572507",
"0.57199895",
"0.57014227",
"0.55606055",
"0.55531794",
"0.5541874",
"0.5535034",
"0.5529633",
"0.5514081",
"0.5508731",
"0.5476352",
"0.54575264",
"0.54510856",
"0.54392225",
"0.5431914",
"0.54128003",
"0.5403353",
"0.5403353",
"0.5391939",
"0.53903574",
"0.5383281",
"0.5371443",
"0.53700656",
"0.536878",
"0.53676504",
"0.535534",
"0.5338024",
"0.5328059",
"0.5311786",
"0.5306224",
"0.53053415",
"0.52958065",
"0.52942604",
"0.5293356",
"0.5293356",
"0.52853906",
"0.5275481",
"0.5274735",
"0.5272081",
"0.52704126",
"0.5269814",
"0.5269814",
"0.5261532",
"0.52604467",
"0.5249879",
"0.5249766",
"0.52476424",
"0.52447534",
"0.5238364",
"0.52316946",
"0.52309597",
"0.52308846",
"0.5225883",
"0.5223006",
"0.52158034",
"0.5215295",
"0.5214578",
"0.5205377",
"0.51992106",
"0.5189863",
"0.51856333",
"0.5185279",
"0.5179929",
"0.51792306",
"0.5179208",
"0.51784956",
"0.5153981",
"0.51533186",
"0.5152661",
"0.514974",
"0.51477605",
"0.51399446",
"0.5139098",
"0.51240915"
] |
0.6215867
|
20
|
The status of all the requests to other nodes repeated .NodeReplicationStatus nodeStatusList = 3;
|
public Builder setNodeStatusList(
int index, entities.Torrent.NodeReplicationStatus.Builder builderForValue) {
if (nodeStatusListBuilder_ == null) {
ensureNodeStatusListIsMutable();
nodeStatusList_.set(index, builderForValue.build());
onChanged();
} else {
nodeStatusListBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"entities.Torrent.NodeReplicationStatus getNodeStatusList(int index);",
"@java.lang.Override\n public java.util.List<entities.Torrent.NodeReplicationStatus> getNodeStatusListList() {\n return nodeStatusList_;\n }",
"java.util.List<entities.Torrent.NodeReplicationStatus>\n getNodeStatusListList();",
"public java.util.List<entities.Torrent.NodeReplicationStatus> getNodeStatusListList() {\n if (nodeStatusListBuilder_ == null) {\n return java.util.Collections.unmodifiableList(nodeStatusList_);\n } else {\n return nodeStatusListBuilder_.getMessageList();\n }\n }",
"@java.lang.Override\n public java.util.List<? extends entities.Torrent.NodeReplicationStatusOrBuilder>\n getNodeStatusListOrBuilderList() {\n return nodeStatusList_;\n }",
"public java.util.List<? extends entities.Torrent.NodeReplicationStatusOrBuilder>\n getNodeStatusListOrBuilderList() {\n if (nodeStatusListBuilder_ != null) {\n return nodeStatusListBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(nodeStatusList_);\n }\n }",
"@java.lang.Override\n public int getNodeStatusListCount() {\n return nodeStatusList_.size();\n }",
"java.util.List<? extends entities.Torrent.NodeReplicationStatusOrBuilder>\n getNodeStatusListOrBuilderList();",
"public entities.Torrent.NodeReplicationStatus.Builder addNodeStatusListBuilder() {\n return getNodeStatusListFieldBuilder().addBuilder(\n entities.Torrent.NodeReplicationStatus.getDefaultInstance());\n }",
"int getNodeStatusListCount();",
"@java.lang.Override\n public entities.Torrent.NodeReplicationStatus getNodeStatusList(int index) {\n return nodeStatusList_.get(index);\n }",
"entities.Torrent.NodeReplicationStatusOrBuilder getNodeStatusListOrBuilder(\n int index);",
"@java.lang.Override\n public entities.Torrent.NodeReplicationStatusOrBuilder getNodeStatusListOrBuilder(\n int index) {\n return nodeStatusList_.get(index);\n }",
"public entities.Torrent.NodeReplicationStatus getNodeStatusList(int index) {\n if (nodeStatusListBuilder_ == null) {\n return nodeStatusList_.get(index);\n } else {\n return nodeStatusListBuilder_.getMessage(index);\n }\n }",
"public Builder addNodeStatusList(entities.Torrent.NodeReplicationStatus value) {\n if (nodeStatusListBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureNodeStatusListIsMutable();\n nodeStatusList_.add(value);\n onChanged();\n } else {\n nodeStatusListBuilder_.addMessage(value);\n }\n return this;\n }",
"public Builder addAllNodeStatusList(\n java.lang.Iterable<? extends entities.Torrent.NodeReplicationStatus> values) {\n if (nodeStatusListBuilder_ == null) {\n ensureNodeStatusListIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, nodeStatusList_);\n onChanged();\n } else {\n nodeStatusListBuilder_.addAllMessages(values);\n }\n return this;\n }",
"public entities.Torrent.NodeReplicationStatusOrBuilder getNodeStatusListOrBuilder(\n int index) {\n if (nodeStatusListBuilder_ == null) {\n return nodeStatusList_.get(index); } else {\n return nodeStatusListBuilder_.getMessageOrBuilder(index);\n }\n }",
"public int getNodeStatusListCount() {\n if (nodeStatusListBuilder_ == null) {\n return nodeStatusList_.size();\n } else {\n return nodeStatusListBuilder_.getCount();\n }\n }",
"public final int[] cacheNodeStatus() {\n return new int[]{0,0,0,0,0,0,0,0,0,0};\r\n }",
"public java.util.List<entities.Torrent.NodeReplicationStatus.Builder>\n getNodeStatusListBuilderList() {\n return getNodeStatusListFieldBuilder().getBuilderList();\n }",
"public Builder setNodeStatusList(\n int index, entities.Torrent.NodeReplicationStatus value) {\n if (nodeStatusListBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureNodeStatusListIsMutable();\n nodeStatusList_.set(index, value);\n onChanged();\n } else {\n nodeStatusListBuilder_.setMessage(index, value);\n }\n return this;\n }",
"private NodeReplicationStatus(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"int getReplicationCount();",
"public Builder addNodeStatusList(\n int index, entities.Torrent.NodeReplicationStatus value) {\n if (nodeStatusListBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureNodeStatusListIsMutable();\n nodeStatusList_.add(index, value);\n onChanged();\n } else {\n nodeStatusListBuilder_.addMessage(index, value);\n }\n return this;\n }",
"public entities.Torrent.NodeReplicationStatus.Builder addNodeStatusListBuilder(\n int index) {\n return getNodeStatusListFieldBuilder().addBuilder(\n index, entities.Torrent.NodeReplicationStatus.getDefaultInstance());\n }",
"public int getNumNodesSeenByMessage() {\r\n return numNodesSeenByMessage;\r\n }",
"public abstract String getNodeStatusVariableName();",
"public Builder addNodeStatusList(\n entities.Torrent.NodeReplicationStatus.Builder builderForValue) {\n if (nodeStatusListBuilder_ == null) {\n ensureNodeStatusListIsMutable();\n nodeStatusList_.add(builderForValue.build());\n onChanged();\n } else {\n nodeStatusListBuilder_.addMessage(builderForValue.build());\n }\n return this;\n }",
"public entities.Torrent.NodeReplicationStatus.Builder getNodeStatusListBuilder(\n int index) {\n return getNodeStatusListFieldBuilder().getBuilder(index);\n }",
"java.util.List<io.netifi.proteus.admin.om.Node> \n getNodesList();",
"public void list() {\r\n\t\tfor (String key : nodeMap.keySet()) {\r\n\t\t\tNodeRef node = nodeMap.get(key);\r\n\t\t\tSystem.out.println(node.getIp() + \" : \" + node.getPort());\r\n\t\t}\t\t\r\n\t}",
"public static int countNodes() {\n\t\treturn count_nodes;\n\t}",
"default Promise<List<String>> findAllNodesWithStatus(HealthStatus queryStatus) {\n final Promise<List<String>> promise = Promises.promise();\n promise.resolve(Collections.emptyList());\n return promise;\n\n }",
"@Override\n\tpublic long numNodes() {\n\t\treturn numNodes;\n\t}",
"public java.util.List<entities.Torrent.NodeId> getNodesList() {\n if (nodesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(nodes_);\n } else {\n return nodesBuilder_.getMessageList();\n }\n }",
"public NodeInformation[] getNodes() throws CassandraServerManagementException {\r\n StorageServiceMBean ssMBean = null;\r\n try {\r\n ssMBean = CassandraAdminDataHolder\r\n .getInstance().getCassandraMBeanLocator().locateStorageServiceMBean();\r\n } catch (CassandraServerManagementException e) {\r\n handleException(\"Error occurred while retrieving node information list\", e);\r\n }\r\n\r\n if (ssMBean == null) {\r\n handleException(\"Storage Server MBean is null\");\r\n }\r\n\r\n Map<String, String> tokenToEndpoint = ssMBean.getTokenToEndpointMap();\r\n List<String> sortedTokens = new ArrayList<String>(tokenToEndpoint.keySet());\r\n Collections.sort(sortedTokens);\r\n\r\n /* Calculate per-token ownership of the ring */\r\n Map<InetAddress, Float> ownerships = ssMBean.getOwnership();\r\n\r\n List<NodeInformation> nodeInfoList = new ArrayList<NodeInformation>();\r\n for (String token : sortedTokens) {\r\n String primaryEndpoint = tokenToEndpoint.get(token);\r\n String status = ssMBean.getLiveNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_UP\r\n : ssMBean.getUnreachableNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_DOWN\r\n : CassandraManagementConstants.NodeStatuses.NODE_STATUS_UNKNOWN;\r\n\r\n String state = ssMBean.getJoiningNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_JOINING\r\n : ssMBean.getLeavingNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_LEAVING\r\n : CassandraManagementConstants.NodeStatuses.NODE_STATUS_NORMAL;\r\n\r\n Map<String, String> loadMap = ssMBean.getLoadMap();\r\n String load = loadMap.containsKey(primaryEndpoint)\r\n ? loadMap.get(primaryEndpoint)\r\n : CassandraManagementConstants.NodeStatuses.NODE_STATUS_UNKNOWN;\r\n\r\n Float ownership = ownerships.get(token);\r\n String owns = \"N/A\";\r\n if(ownership!=null){\r\n owns = new DecimalFormat(\"##0.00%\").format(ownership);\r\n }\r\n NodeInformation nodeInfo = new NodeInformation();\r\n nodeInfo.setAddress(primaryEndpoint);\r\n nodeInfo.setState(state);\r\n nodeInfo.setStatus(status);\r\n nodeInfo.setOwn(owns);\r\n nodeInfo.setLoad(load);\r\n nodeInfo.setToken(token);\r\n nodeInfoList.add(nodeInfo);\r\n }\r\n return nodeInfoList.toArray(new NodeInformation[nodeInfoList.size()]);\r\n }",
"public String replicationState() {\n return this.replicationState;\n }",
"@Override\n public boolean getCurrentNodeStatus(InetAddress ia) {\n if (ia.isAnyLocalAddress()) {\n return true;\n }\n // Check if given address is in cluster\n for (Client c : instance.getClientService().getConnectedClients()) {\n if (c.getSocketAddress().getAddress().equals(ia)) {\n return true;\n }\n }\n // reject all other addresses\n return false;\n }",
"int numNodes() {\n\t\treturn num_nodes;\n\t}",
"private int numNodes()\r\n\t{\r\n\t return nodeMap.size();\r\n\t}",
"public int lockedNodeCount() {\n\treturn lockedNodes;\n }",
"@Override\n\tpublic Collection<TaskStatus> getTaskStatus(){\n \tcheckInitialized();\n \t\n \t@SuppressWarnings(\"unchecked\")\n\t\tCollection<Collection<TaskStatus>> statusTree=Collections.EMPTY_LIST;\n \tfinal MultiTask<Collection<TaskStatus>> mtask;\n \ttry {\n\t\t\t mtask = breeder.executeCallable(new GetTaskStatus(this));\n\t\t\t statusTree = mtask.get();\n \t} catch (ExecutionException ex){\n \t\tlog.fatal(\"Could not get status of tasks for job \"+this.getId(), ex);\n \t} catch(InterruptedException ex) {\n \t\tlog.fatal(\"Could not get status of tasks for job \"+this.getId(), ex);\n \t}\n\t\t\t\n\t\t// Flatten into single collection\n\t\tList<TaskStatus> result = new ArrayList<TaskStatus>((int)(statusTree.size()*this.getThreadCount()));\n\t\tfor(Collection<TaskStatus> statusForNode: statusTree) {\n\t\t\tresult.addAll(statusForNode);\n\t\t}\n\t\t\n\t\treturn result;\n \n\t}",
"int getNodeCount() {\n\t\treturn m_list_nodes.size();\n\t}",
"int getNodesCount();",
"int getNodesCount();",
"public java.util.List<java.lang.Integer>\n getStatusList() {\n return status_;\n }",
"public static int getNumberOfNodes() {\n return(numberOfNodes);\n\t }",
"@java.lang.Override\n public int getNodesCount() {\n return nodes_.size();\n }",
"private NodeRestartRequest() {\n\t\t}",
"java.util.List<entities.Torrent.NodeId>\n getNodesList();",
"List<CommunicationLink> getAllNodes()\n {\n return new ArrayList<>(allNodes.values());\n }",
"public ODocument clusterStatus() {\n checkConnected();\n return remote.getClusterStatus(user, password);\n }",
"public StatusChecker(Node node){\n this.node=node;\n start();\n }",
"public Builder clearNodeStatusList() {\n if (nodeStatusListBuilder_ == null) {\n nodeStatusList_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n nodeStatusListBuilder_.clear();\n }\n return this;\n }",
"@java.lang.Override\n public java.util.List<entities.Torrent.NodeId> getNodesList() {\n return nodes_;\n }",
"public int getNumberOfNodesEvaluated();",
"java.util.List<java.lang.Integer> getStatusList();",
"private List<Node> getNodes() {\n List<Node> nodes = new ArrayList<Node>();\n NodeApi.GetConnectedNodesResult rawNodes =\n Wearable.NodeApi.getConnectedNodes(mGoogleApiClient).await();\n for (Node node : rawNodes.getNodes()) {\n nodes.add(node);\n }\n return nodes;\n }",
"public int numNodes() {\n\t\treturn numNodes;\n\t}",
"void updateRmiClientsCount() {\n int noOfClientsConnected = 0;\n\n String[] connectionIds = rmiConnector.getConnectionIds();\n\n if (connectionIds != null) {\n noOfClientsConnected = connectionIds.length;\n }\n\n logger.info(\"No. of RMI clients connected :: {}\", noOfClientsConnected);\n\n AdminDistributedSystemJmxImpl adminDSJmx = (AdminDistributedSystemJmxImpl) system;\n\n adminDSJmx.setRmiClientCountZero(noOfClientsConnected == 0);\n }",
"public int getReplicationDegree() {\n return replicationDegree;\n }",
"public int getReplicationDegree() {\n return replicationDegree;\n }",
"public List<NetworkNode> listNetworkNode();",
"private void updateGeoRepStatus(GlusterVolumeEntity volume, GlusterGeoRepSession session) {\n\n List<HashSet<GeoRepSessionStatus>> list = new ArrayList<>();\n // grouped node status\n int replicaCount = volume.getReplicaCount() == 0 ? 1 : volume.getReplicaCount();\n for (int i = 0; i < volume.getBricks().size(); i = i + replicaCount) {\n HashSet<GeoRepSessionStatus> subVolumeStatusSet = new HashSet<>();\n int j = 0;\n while (j < replicaCount) {\n Guid brickId = volume.getBricks().get(i + j).getId();\n subVolumeStatusSet.add(getStatusForBrickFromSession(session, brickId));\n j++;\n }\n list.add(subVolumeStatusSet);\n }\n\n session.setStatus(GeoRepSessionStatus.ACTIVE);\n // iterate through grouped status to set consolidated status\n for (HashSet<GeoRepSessionStatus> subVolumeStatusValues : list) {\n if (subVolumeStatusValues.contains(GeoRepSessionStatus.ACTIVE)) {\n // healthy\n continue;\n } else if (subVolumeStatusValues.contains(GeoRepSessionStatus.FAULTY)) {\n session.setStatus(GeoRepSessionStatus.FAULTY);\n // if any one of the sub-volume is faulty, the overall session status if faulty\n return;\n }\n // override status in case of these values\n if (ArrayUtils.contains(overridableStatuses, session.getStatus())) {\n if (subVolumeStatusValues.size() == 1) {\n session.setStatus((GeoRepSessionStatus) subVolumeStatusValues.toArray()[0]);\n } else {\n // if status values in sub-volume are not the same, what do we do?\n // this should not happen, so we'll log it for now\n log.info(\"Multiple status values found in volume '{}'\", session.getMasterVolumeName());\n }\n }\n }\n\n }",
"@SuppressWarnings(\"unused\")\n private ReplicationStatusResponse() {\n this(false);\n }",
"int getNrNodes() {\n\t\treturn adjList.size();\n\t}",
"int getNodeCount();",
"int getNodeCount();",
"public int getConnectionStatus()\r\n { return connectionStatus; }",
"public int getNodeCount() {\n return nodeCount;\n }",
"public int getNetworkNodesNumber() {\n\t\t\n\t\t//Return nodes size\n\t\treturn nodes.size();\n\t\t\n\t}",
"void nodeOnline();",
"public static String getClusterStatusNodePath() {\n return String.join(\"/\", \"\", ROOT_NODE, COMPUTE_NODE, STATUS_NODE);\n }",
"@Override\n protected int minimumNumberOfReplicas() {\n return 1;\n }",
"@Override\n public void statusUpdate(final String asgName, final ASGStatus newStatus, final boolean isReplication) {\n if (isReplication) {\n return;\n }\n for (final PeerEurekaNode node : peerEurekaNodes.getPeerEurekaNodes()) {\n replicateASGInfoToReplicaNodes(asgName, newStatus, node);\n\n }\n }",
"@PostMapping(\"/queryGroupStatus/list\")\n @PreAuthorize(ConstantProperties.HAS_ROLE_ADMIN)\n public BaseResponse getGroupStatusList(@Valid @RequestBody ReqGroupStatus reqGroupStatus) throws NodeMgrException {\n Instant startTime = Instant.now();\n BaseResponse baseResponse = new BaseResponse(ConstantCode.SUCCESS);\n log.info(\"start getGroupStatusMap startTime:{}\", startTime.toEpochMilli());\n List<String> nodeIdList = reqGroupStatus.getNodeIdList();\n List<RspGroupStatus> resList = groupService.listGroupStatus(nodeIdList,\n reqGroupStatus.getGroupIdList());\n baseResponse.setData(resList);\n log.info(\"end getGroupStatusMap useTime:{} result:{}\",\n Duration.between(startTime, Instant.now()).toMillis(),\n JsonTools.toJSONString(baseResponse));\n return baseResponse;\n }",
"public String getNumberOfNodesEvaluated(){return Integer.toString(NumberOfVisitedNodes);}",
"private void getNodesCount(HttpServletRequest request, HttpServletResponse response) throws IOException {\n int countNodes = SimApi.getNodesCount();\n response.getWriter().write(Integer.toString(countNodes));\n }",
"java.util.List<? extends io.netifi.proteus.admin.om.NodeOrBuilder> \n getNodesOrBuilderList();",
"@Test(timeout = 10000L)\n public void testNodesInformation() throws Exception {\n CommonDriverAdminTests.testNodesInformation(client, nbNodes);\n }",
"public int getNumNodes() {\n\t\treturn nodes.size();\n\t}",
"@RequestLine(\"GET /status\")\n Status getNeustarNetworkStatus();",
"public void printStatus(){\n System.out.println(\"Nodes: \" + \n getVertexCount() + \" Edges: \" + \n getEdgeCount()); \n //and \" + getEdgeCount() + \" edges active.\");\n }",
"public abstract Collection<Node> getAllSuccessors();",
"public int getStatusCount() {\n return status_.size();\n }",
"public List<Long> getSessionNodes() {\n List<Long> ret = new ArrayList<>();\n\n for (int i = 0; i < sessionsList.size(); i++) {\n ret.add(sessionsList.get(i).dhtNodes());\n }\n\n return ret;\n }",
"@Override\n public ClusterStatus getCurrentClusterStatus() {\n if (getMemberList().size() > 1) {\n return CLUSTER_FUNCTIONAL;\n }\n // when only one node is connected return degraded\n if (getMemberList().size() == 1) {\n return CLUSTER_DEGRADED;\n }\n // consider all other states as illegal\n return CLUSTER_ILLEGAL;\n }",
"public int getNodeCount() {\n return node_.size();\n }",
"private void refreshNodeList() {\n if (UnderNet.router.status.equals(InterfaceStatus.STARTED)) {\n //Using connected and cached nodes if the router has started.\n ArrayList<Node> nodesToList = UnderNet.router.getConnectedNodes();\n for (Node cachedNode :\n EntryNodeCache.cachedNodes) {\n boolean canAdd = true;\n for (Node connectedNode : UnderNet.router.getConnectedNodes()) {\n if (cachedNode.getAddress().equals(connectedNode.getAddress())) {\n canAdd = false;\n }\n }\n if (canAdd) {\n nodesToList.add(cachedNode);\n }\n }\n nodeList.setListData(nodesToList.toArray());\n } else {\n //Using cached nodes if the router isn't online.\n nodeList.setListData(EntryNodeCache.cachedNodes.toArray());\n }\n }",
"int getStatusCount();",
"List<StatusListener> mo9950b();",
"public List<Output<TInt32>> nodeIdsList() {\n return nodeIdsList;\n }",
"@Override\r\n\tpublic int getNumberOfNodes() {\n\t\treturn 0;\r\n\t}",
"public java.util.List<? extends entities.Torrent.NodeIdOrBuilder>\n getNodesOrBuilderList() {\n if (nodesBuilder_ != null) {\n return nodesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(nodes_);\n }\n }",
"@Override\n public void onNewClusterState(ClusterState state) {\n transportService.sendRequest(\n clusterService.localNode(),\n transportReplicaAction,\n replicaRequest,\n new ActionListenerResponseHandler<>(onCompletionListener, ReplicaResponse::new)\n );\n }",
"public java.util.List<java.lang.Integer>\n getStatusList() {\n return java.util.Collections.unmodifiableList(status_);\n }",
"void refreshNodeHostCount(int nodeHostCount);",
"protected int numNodes() {\n\t\treturn nodes.size();\n\t}",
"public static void getStatus() {\n\t\ttry {\n\t\t\tint i = 1;\n\t\t\tList<Object[]>serverDetails = ServerStatus.getServerDetails();\n\t\t\tfor (Object[] servers:serverDetails){\n\t\t\t\tServerStatus.verifyServerStatus(i,(String)servers[0], (String)servers[1], (String)servers[2]);\n\t\t\t\ti++;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tcatch (Exception ex){\n\t\t\tex.printStackTrace();\n\t\t}\n\t}",
"public Vector<Node> getNodes(){\n\t\treturn this.listOfNodes;\n\t}"
] |
[
"0.76754725",
"0.7330513",
"0.7273623",
"0.7185904",
"0.71540165",
"0.711505",
"0.71102214",
"0.7056519",
"0.7022613",
"0.6881543",
"0.68746865",
"0.68614775",
"0.6730206",
"0.66633195",
"0.6638524",
"0.6558738",
"0.6554595",
"0.6390956",
"0.6324348",
"0.6301884",
"0.62128437",
"0.6153897",
"0.6058742",
"0.60192406",
"0.596705",
"0.57494354",
"0.5748884",
"0.5723979",
"0.5719001",
"0.570223",
"0.5561525",
"0.5554988",
"0.5542978",
"0.5536758",
"0.5529717",
"0.5515723",
"0.5507869",
"0.5477924",
"0.545919",
"0.5453382",
"0.5440473",
"0.5432976",
"0.5413977",
"0.54059",
"0.54059",
"0.53920895",
"0.53919417",
"0.538495",
"0.53726",
"0.5371442",
"0.53705126",
"0.53690714",
"0.53564674",
"0.53378046",
"0.5328064",
"0.5315124",
"0.5306361",
"0.5305867",
"0.5297228",
"0.52948767",
"0.5292507",
"0.5292507",
"0.5286415",
"0.5276344",
"0.52740955",
"0.5273183",
"0.527266",
"0.527266",
"0.5272264",
"0.52635926",
"0.526193",
"0.52519333",
"0.52507585",
"0.5248499",
"0.52444947",
"0.52385783",
"0.5235392",
"0.52331",
"0.5231807",
"0.52273303",
"0.5224498",
"0.5218425",
"0.52174264",
"0.52173257",
"0.520692",
"0.5199218",
"0.5191387",
"0.51871306",
"0.5186112",
"0.5181667",
"0.5179533",
"0.51790094",
"0.51557237",
"0.5153083",
"0.5153054",
"0.5149576",
"0.51491016",
"0.5141703",
"0.51399857",
"0.51249874"
] |
0.51782185
|
92
|
The status of all the requests to other nodes repeated .NodeReplicationStatus nodeStatusList = 3;
|
public Builder addNodeStatusList(entities.Torrent.NodeReplicationStatus value) {
if (nodeStatusListBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureNodeStatusListIsMutable();
nodeStatusList_.add(value);
onChanged();
} else {
nodeStatusListBuilder_.addMessage(value);
}
return this;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"entities.Torrent.NodeReplicationStatus getNodeStatusList(int index);",
"@java.lang.Override\n public java.util.List<entities.Torrent.NodeReplicationStatus> getNodeStatusListList() {\n return nodeStatusList_;\n }",
"java.util.List<entities.Torrent.NodeReplicationStatus>\n getNodeStatusListList();",
"public java.util.List<entities.Torrent.NodeReplicationStatus> getNodeStatusListList() {\n if (nodeStatusListBuilder_ == null) {\n return java.util.Collections.unmodifiableList(nodeStatusList_);\n } else {\n return nodeStatusListBuilder_.getMessageList();\n }\n }",
"@java.lang.Override\n public java.util.List<? extends entities.Torrent.NodeReplicationStatusOrBuilder>\n getNodeStatusListOrBuilderList() {\n return nodeStatusList_;\n }",
"public java.util.List<? extends entities.Torrent.NodeReplicationStatusOrBuilder>\n getNodeStatusListOrBuilderList() {\n if (nodeStatusListBuilder_ != null) {\n return nodeStatusListBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(nodeStatusList_);\n }\n }",
"@java.lang.Override\n public int getNodeStatusListCount() {\n return nodeStatusList_.size();\n }",
"java.util.List<? extends entities.Torrent.NodeReplicationStatusOrBuilder>\n getNodeStatusListOrBuilderList();",
"public entities.Torrent.NodeReplicationStatus.Builder addNodeStatusListBuilder() {\n return getNodeStatusListFieldBuilder().addBuilder(\n entities.Torrent.NodeReplicationStatus.getDefaultInstance());\n }",
"int getNodeStatusListCount();",
"@java.lang.Override\n public entities.Torrent.NodeReplicationStatus getNodeStatusList(int index) {\n return nodeStatusList_.get(index);\n }",
"entities.Torrent.NodeReplicationStatusOrBuilder getNodeStatusListOrBuilder(\n int index);",
"@java.lang.Override\n public entities.Torrent.NodeReplicationStatusOrBuilder getNodeStatusListOrBuilder(\n int index) {\n return nodeStatusList_.get(index);\n }",
"public entities.Torrent.NodeReplicationStatus getNodeStatusList(int index) {\n if (nodeStatusListBuilder_ == null) {\n return nodeStatusList_.get(index);\n } else {\n return nodeStatusListBuilder_.getMessage(index);\n }\n }",
"public Builder addAllNodeStatusList(\n java.lang.Iterable<? extends entities.Torrent.NodeReplicationStatus> values) {\n if (nodeStatusListBuilder_ == null) {\n ensureNodeStatusListIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, nodeStatusList_);\n onChanged();\n } else {\n nodeStatusListBuilder_.addAllMessages(values);\n }\n return this;\n }",
"public entities.Torrent.NodeReplicationStatusOrBuilder getNodeStatusListOrBuilder(\n int index) {\n if (nodeStatusListBuilder_ == null) {\n return nodeStatusList_.get(index); } else {\n return nodeStatusListBuilder_.getMessageOrBuilder(index);\n }\n }",
"public int getNodeStatusListCount() {\n if (nodeStatusListBuilder_ == null) {\n return nodeStatusList_.size();\n } else {\n return nodeStatusListBuilder_.getCount();\n }\n }",
"public final int[] cacheNodeStatus() {\n return new int[]{0,0,0,0,0,0,0,0,0,0};\r\n }",
"public java.util.List<entities.Torrent.NodeReplicationStatus.Builder>\n getNodeStatusListBuilderList() {\n return getNodeStatusListFieldBuilder().getBuilderList();\n }",
"public Builder setNodeStatusList(\n int index, entities.Torrent.NodeReplicationStatus value) {\n if (nodeStatusListBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureNodeStatusListIsMutable();\n nodeStatusList_.set(index, value);\n onChanged();\n } else {\n nodeStatusListBuilder_.setMessage(index, value);\n }\n return this;\n }",
"private NodeReplicationStatus(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"int getReplicationCount();",
"public Builder addNodeStatusList(\n int index, entities.Torrent.NodeReplicationStatus value) {\n if (nodeStatusListBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureNodeStatusListIsMutable();\n nodeStatusList_.add(index, value);\n onChanged();\n } else {\n nodeStatusListBuilder_.addMessage(index, value);\n }\n return this;\n }",
"public entities.Torrent.NodeReplicationStatus.Builder addNodeStatusListBuilder(\n int index) {\n return getNodeStatusListFieldBuilder().addBuilder(\n index, entities.Torrent.NodeReplicationStatus.getDefaultInstance());\n }",
"public int getNumNodesSeenByMessage() {\r\n return numNodesSeenByMessage;\r\n }",
"public abstract String getNodeStatusVariableName();",
"public Builder addNodeStatusList(\n entities.Torrent.NodeReplicationStatus.Builder builderForValue) {\n if (nodeStatusListBuilder_ == null) {\n ensureNodeStatusListIsMutable();\n nodeStatusList_.add(builderForValue.build());\n onChanged();\n } else {\n nodeStatusListBuilder_.addMessage(builderForValue.build());\n }\n return this;\n }",
"public entities.Torrent.NodeReplicationStatus.Builder getNodeStatusListBuilder(\n int index) {\n return getNodeStatusListFieldBuilder().getBuilder(index);\n }",
"java.util.List<io.netifi.proteus.admin.om.Node> \n getNodesList();",
"public void list() {\r\n\t\tfor (String key : nodeMap.keySet()) {\r\n\t\t\tNodeRef node = nodeMap.get(key);\r\n\t\t\tSystem.out.println(node.getIp() + \" : \" + node.getPort());\r\n\t\t}\t\t\r\n\t}",
"public static int countNodes() {\n\t\treturn count_nodes;\n\t}",
"default Promise<List<String>> findAllNodesWithStatus(HealthStatus queryStatus) {\n final Promise<List<String>> promise = Promises.promise();\n promise.resolve(Collections.emptyList());\n return promise;\n\n }",
"@Override\n\tpublic long numNodes() {\n\t\treturn numNodes;\n\t}",
"public java.util.List<entities.Torrent.NodeId> getNodesList() {\n if (nodesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(nodes_);\n } else {\n return nodesBuilder_.getMessageList();\n }\n }",
"public NodeInformation[] getNodes() throws CassandraServerManagementException {\r\n StorageServiceMBean ssMBean = null;\r\n try {\r\n ssMBean = CassandraAdminDataHolder\r\n .getInstance().getCassandraMBeanLocator().locateStorageServiceMBean();\r\n } catch (CassandraServerManagementException e) {\r\n handleException(\"Error occurred while retrieving node information list\", e);\r\n }\r\n\r\n if (ssMBean == null) {\r\n handleException(\"Storage Server MBean is null\");\r\n }\r\n\r\n Map<String, String> tokenToEndpoint = ssMBean.getTokenToEndpointMap();\r\n List<String> sortedTokens = new ArrayList<String>(tokenToEndpoint.keySet());\r\n Collections.sort(sortedTokens);\r\n\r\n /* Calculate per-token ownership of the ring */\r\n Map<InetAddress, Float> ownerships = ssMBean.getOwnership();\r\n\r\n List<NodeInformation> nodeInfoList = new ArrayList<NodeInformation>();\r\n for (String token : sortedTokens) {\r\n String primaryEndpoint = tokenToEndpoint.get(token);\r\n String status = ssMBean.getLiveNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_UP\r\n : ssMBean.getUnreachableNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_DOWN\r\n : CassandraManagementConstants.NodeStatuses.NODE_STATUS_UNKNOWN;\r\n\r\n String state = ssMBean.getJoiningNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_JOINING\r\n : ssMBean.getLeavingNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_LEAVING\r\n : CassandraManagementConstants.NodeStatuses.NODE_STATUS_NORMAL;\r\n\r\n Map<String, String> loadMap = ssMBean.getLoadMap();\r\n String load = loadMap.containsKey(primaryEndpoint)\r\n ? loadMap.get(primaryEndpoint)\r\n : CassandraManagementConstants.NodeStatuses.NODE_STATUS_UNKNOWN;\r\n\r\n Float ownership = ownerships.get(token);\r\n String owns = \"N/A\";\r\n if(ownership!=null){\r\n owns = new DecimalFormat(\"##0.00%\").format(ownership);\r\n }\r\n NodeInformation nodeInfo = new NodeInformation();\r\n nodeInfo.setAddress(primaryEndpoint);\r\n nodeInfo.setState(state);\r\n nodeInfo.setStatus(status);\r\n nodeInfo.setOwn(owns);\r\n nodeInfo.setLoad(load);\r\n nodeInfo.setToken(token);\r\n nodeInfoList.add(nodeInfo);\r\n }\r\n return nodeInfoList.toArray(new NodeInformation[nodeInfoList.size()]);\r\n }",
"public String replicationState() {\n return this.replicationState;\n }",
"@Override\n public boolean getCurrentNodeStatus(InetAddress ia) {\n if (ia.isAnyLocalAddress()) {\n return true;\n }\n // Check if given address is in cluster\n for (Client c : instance.getClientService().getConnectedClients()) {\n if (c.getSocketAddress().getAddress().equals(ia)) {\n return true;\n }\n }\n // reject all other addresses\n return false;\n }",
"int numNodes() {\n\t\treturn num_nodes;\n\t}",
"private int numNodes()\r\n\t{\r\n\t return nodeMap.size();\r\n\t}",
"public int lockedNodeCount() {\n\treturn lockedNodes;\n }",
"@Override\n\tpublic Collection<TaskStatus> getTaskStatus(){\n \tcheckInitialized();\n \t\n \t@SuppressWarnings(\"unchecked\")\n\t\tCollection<Collection<TaskStatus>> statusTree=Collections.EMPTY_LIST;\n \tfinal MultiTask<Collection<TaskStatus>> mtask;\n \ttry {\n\t\t\t mtask = breeder.executeCallable(new GetTaskStatus(this));\n\t\t\t statusTree = mtask.get();\n \t} catch (ExecutionException ex){\n \t\tlog.fatal(\"Could not get status of tasks for job \"+this.getId(), ex);\n \t} catch(InterruptedException ex) {\n \t\tlog.fatal(\"Could not get status of tasks for job \"+this.getId(), ex);\n \t}\n\t\t\t\n\t\t// Flatten into single collection\n\t\tList<TaskStatus> result = new ArrayList<TaskStatus>((int)(statusTree.size()*this.getThreadCount()));\n\t\tfor(Collection<TaskStatus> statusForNode: statusTree) {\n\t\t\tresult.addAll(statusForNode);\n\t\t}\n\t\t\n\t\treturn result;\n \n\t}",
"int getNodeCount() {\n\t\treturn m_list_nodes.size();\n\t}",
"int getNodesCount();",
"int getNodesCount();",
"public java.util.List<java.lang.Integer>\n getStatusList() {\n return status_;\n }",
"public static int getNumberOfNodes() {\n return(numberOfNodes);\n\t }",
"@java.lang.Override\n public int getNodesCount() {\n return nodes_.size();\n }",
"java.util.List<entities.Torrent.NodeId>\n getNodesList();",
"List<CommunicationLink> getAllNodes()\n {\n return new ArrayList<>(allNodes.values());\n }",
"private NodeRestartRequest() {\n\t\t}",
"public ODocument clusterStatus() {\n checkConnected();\n return remote.getClusterStatus(user, password);\n }",
"public StatusChecker(Node node){\n this.node=node;\n start();\n }",
"public Builder clearNodeStatusList() {\n if (nodeStatusListBuilder_ == null) {\n nodeStatusList_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n nodeStatusListBuilder_.clear();\n }\n return this;\n }",
"@java.lang.Override\n public java.util.List<entities.Torrent.NodeId> getNodesList() {\n return nodes_;\n }",
"public int getNumberOfNodesEvaluated();",
"private List<Node> getNodes() {\n List<Node> nodes = new ArrayList<Node>();\n NodeApi.GetConnectedNodesResult rawNodes =\n Wearable.NodeApi.getConnectedNodes(mGoogleApiClient).await();\n for (Node node : rawNodes.getNodes()) {\n nodes.add(node);\n }\n return nodes;\n }",
"java.util.List<java.lang.Integer> getStatusList();",
"public int numNodes() {\n\t\treturn numNodes;\n\t}",
"void updateRmiClientsCount() {\n int noOfClientsConnected = 0;\n\n String[] connectionIds = rmiConnector.getConnectionIds();\n\n if (connectionIds != null) {\n noOfClientsConnected = connectionIds.length;\n }\n\n logger.info(\"No. of RMI clients connected :: {}\", noOfClientsConnected);\n\n AdminDistributedSystemJmxImpl adminDSJmx = (AdminDistributedSystemJmxImpl) system;\n\n adminDSJmx.setRmiClientCountZero(noOfClientsConnected == 0);\n }",
"public int getReplicationDegree() {\n return replicationDegree;\n }",
"public int getReplicationDegree() {\n return replicationDegree;\n }",
"public List<NetworkNode> listNetworkNode();",
"private void updateGeoRepStatus(GlusterVolumeEntity volume, GlusterGeoRepSession session) {\n\n List<HashSet<GeoRepSessionStatus>> list = new ArrayList<>();\n // grouped node status\n int replicaCount = volume.getReplicaCount() == 0 ? 1 : volume.getReplicaCount();\n for (int i = 0; i < volume.getBricks().size(); i = i + replicaCount) {\n HashSet<GeoRepSessionStatus> subVolumeStatusSet = new HashSet<>();\n int j = 0;\n while (j < replicaCount) {\n Guid brickId = volume.getBricks().get(i + j).getId();\n subVolumeStatusSet.add(getStatusForBrickFromSession(session, brickId));\n j++;\n }\n list.add(subVolumeStatusSet);\n }\n\n session.setStatus(GeoRepSessionStatus.ACTIVE);\n // iterate through grouped status to set consolidated status\n for (HashSet<GeoRepSessionStatus> subVolumeStatusValues : list) {\n if (subVolumeStatusValues.contains(GeoRepSessionStatus.ACTIVE)) {\n // healthy\n continue;\n } else if (subVolumeStatusValues.contains(GeoRepSessionStatus.FAULTY)) {\n session.setStatus(GeoRepSessionStatus.FAULTY);\n // if any one of the sub-volume is faulty, the overall session status if faulty\n return;\n }\n // override status in case of these values\n if (ArrayUtils.contains(overridableStatuses, session.getStatus())) {\n if (subVolumeStatusValues.size() == 1) {\n session.setStatus((GeoRepSessionStatus) subVolumeStatusValues.toArray()[0]);\n } else {\n // if status values in sub-volume are not the same, what do we do?\n // this should not happen, so we'll log it for now\n log.info(\"Multiple status values found in volume '{}'\", session.getMasterVolumeName());\n }\n }\n }\n\n }",
"@SuppressWarnings(\"unused\")\n private ReplicationStatusResponse() {\n this(false);\n }",
"int getNrNodes() {\n\t\treturn adjList.size();\n\t}",
"public int getConnectionStatus()\r\n { return connectionStatus; }",
"int getNodeCount();",
"int getNodeCount();",
"public int getNodeCount() {\n return nodeCount;\n }",
"public int getNetworkNodesNumber() {\n\t\t\n\t\t//Return nodes size\n\t\treturn nodes.size();\n\t\t\n\t}",
"void nodeOnline();",
"public static String getClusterStatusNodePath() {\n return String.join(\"/\", \"\", ROOT_NODE, COMPUTE_NODE, STATUS_NODE);\n }",
"@Override\n protected int minimumNumberOfReplicas() {\n return 1;\n }",
"@Override\n public void statusUpdate(final String asgName, final ASGStatus newStatus, final boolean isReplication) {\n if (isReplication) {\n return;\n }\n for (final PeerEurekaNode node : peerEurekaNodes.getPeerEurekaNodes()) {\n replicateASGInfoToReplicaNodes(asgName, newStatus, node);\n\n }\n }",
"@PostMapping(\"/queryGroupStatus/list\")\n @PreAuthorize(ConstantProperties.HAS_ROLE_ADMIN)\n public BaseResponse getGroupStatusList(@Valid @RequestBody ReqGroupStatus reqGroupStatus) throws NodeMgrException {\n Instant startTime = Instant.now();\n BaseResponse baseResponse = new BaseResponse(ConstantCode.SUCCESS);\n log.info(\"start getGroupStatusMap startTime:{}\", startTime.toEpochMilli());\n List<String> nodeIdList = reqGroupStatus.getNodeIdList();\n List<RspGroupStatus> resList = groupService.listGroupStatus(nodeIdList,\n reqGroupStatus.getGroupIdList());\n baseResponse.setData(resList);\n log.info(\"end getGroupStatusMap useTime:{} result:{}\",\n Duration.between(startTime, Instant.now()).toMillis(),\n JsonTools.toJSONString(baseResponse));\n return baseResponse;\n }",
"java.util.List<? extends io.netifi.proteus.admin.om.NodeOrBuilder> \n getNodesOrBuilderList();",
"public String getNumberOfNodesEvaluated(){return Integer.toString(NumberOfVisitedNodes);}",
"private void getNodesCount(HttpServletRequest request, HttpServletResponse response) throws IOException {\n int countNodes = SimApi.getNodesCount();\n response.getWriter().write(Integer.toString(countNodes));\n }",
"@Test(timeout = 10000L)\n public void testNodesInformation() throws Exception {\n CommonDriverAdminTests.testNodesInformation(client, nbNodes);\n }",
"public int getNumNodes() {\n\t\treturn nodes.size();\n\t}",
"public abstract Collection<Node> getAllSuccessors();",
"@RequestLine(\"GET /status\")\n Status getNeustarNetworkStatus();",
"public void printStatus(){\n System.out.println(\"Nodes: \" + \n getVertexCount() + \" Edges: \" + \n getEdgeCount()); \n //and \" + getEdgeCount() + \" edges active.\");\n }",
"public int getStatusCount() {\n return status_.size();\n }",
"public List<Long> getSessionNodes() {\n List<Long> ret = new ArrayList<>();\n\n for (int i = 0; i < sessionsList.size(); i++) {\n ret.add(sessionsList.get(i).dhtNodes());\n }\n\n return ret;\n }",
"@Override\n public ClusterStatus getCurrentClusterStatus() {\n if (getMemberList().size() > 1) {\n return CLUSTER_FUNCTIONAL;\n }\n // when only one node is connected return degraded\n if (getMemberList().size() == 1) {\n return CLUSTER_DEGRADED;\n }\n // consider all other states as illegal\n return CLUSTER_ILLEGAL;\n }",
"private void refreshNodeList() {\n if (UnderNet.router.status.equals(InterfaceStatus.STARTED)) {\n //Using connected and cached nodes if the router has started.\n ArrayList<Node> nodesToList = UnderNet.router.getConnectedNodes();\n for (Node cachedNode :\n EntryNodeCache.cachedNodes) {\n boolean canAdd = true;\n for (Node connectedNode : UnderNet.router.getConnectedNodes()) {\n if (cachedNode.getAddress().equals(connectedNode.getAddress())) {\n canAdd = false;\n }\n }\n if (canAdd) {\n nodesToList.add(cachedNode);\n }\n }\n nodeList.setListData(nodesToList.toArray());\n } else {\n //Using cached nodes if the router isn't online.\n nodeList.setListData(EntryNodeCache.cachedNodes.toArray());\n }\n }",
"public int getNodeCount() {\n return node_.size();\n }",
"public Builder setNodeStatusList(\n int index, entities.Torrent.NodeReplicationStatus.Builder builderForValue) {\n if (nodeStatusListBuilder_ == null) {\n ensureNodeStatusListIsMutable();\n nodeStatusList_.set(index, builderForValue.build());\n onChanged();\n } else {\n nodeStatusListBuilder_.setMessage(index, builderForValue.build());\n }\n return this;\n }",
"public List<Output<TInt32>> nodeIdsList() {\n return nodeIdsList;\n }",
"List<StatusListener> mo9950b();",
"int getStatusCount();",
"@Override\n public void onNewClusterState(ClusterState state) {\n transportService.sendRequest(\n clusterService.localNode(),\n transportReplicaAction,\n replicaRequest,\n new ActionListenerResponseHandler<>(onCompletionListener, ReplicaResponse::new)\n );\n }",
"public java.util.List<? extends entities.Torrent.NodeIdOrBuilder>\n getNodesOrBuilderList() {\n if (nodesBuilder_ != null) {\n return nodesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(nodes_);\n }\n }",
"@Override\r\n\tpublic int getNumberOfNodes() {\n\t\treturn 0;\r\n\t}",
"public java.util.List<java.lang.Integer>\n getStatusList() {\n return java.util.Collections.unmodifiableList(status_);\n }",
"void refreshNodeHostCount(int nodeHostCount);",
"protected int numNodes() {\n\t\treturn nodes.size();\n\t}",
"public static void getStatus() {\n\t\ttry {\n\t\t\tint i = 1;\n\t\t\tList<Object[]>serverDetails = ServerStatus.getServerDetails();\n\t\t\tfor (Object[] servers:serverDetails){\n\t\t\t\tServerStatus.verifyServerStatus(i,(String)servers[0], (String)servers[1], (String)servers[2]);\n\t\t\t\ti++;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tcatch (Exception ex){\n\t\t\tex.printStackTrace();\n\t\t}\n\t}",
"public Vector<Node> getNodes(){\n\t\treturn this.listOfNodes;\n\t}"
] |
[
"0.7677447",
"0.73326534",
"0.72751945",
"0.7187517",
"0.7156577",
"0.71170497",
"0.71088874",
"0.70586026",
"0.70244354",
"0.68789655",
"0.68768275",
"0.6863607",
"0.6732412",
"0.6665126",
"0.65603524",
"0.6556245",
"0.63892424",
"0.63225454",
"0.6302617",
"0.62158686",
"0.6154571",
"0.6059235",
"0.6021623",
"0.5969211",
"0.5746757",
"0.5746533",
"0.5725065",
"0.5719905",
"0.5702983",
"0.5561155",
"0.55533105",
"0.5541831",
"0.5535313",
"0.55308056",
"0.55150694",
"0.5509859",
"0.54764414",
"0.54578775",
"0.5451353",
"0.5438688",
"0.54318774",
"0.54126287",
"0.54034257",
"0.54034257",
"0.5391672",
"0.5390411",
"0.53832936",
"0.53727967",
"0.5370394",
"0.53702694",
"0.53679216",
"0.5354863",
"0.5338436",
"0.53293514",
"0.53118134",
"0.530631",
"0.5305603",
"0.5295997",
"0.5294718",
"0.5293353",
"0.5293353",
"0.5286944",
"0.5276236",
"0.5274766",
"0.5272741",
"0.52713966",
"0.52693284",
"0.52693284",
"0.5261072",
"0.526089",
"0.5252027",
"0.52506906",
"0.52486336",
"0.5245913",
"0.5236892",
"0.5232337",
"0.5231927",
"0.5229986",
"0.5226807",
"0.52229863",
"0.5216052",
"0.5215427",
"0.5215198",
"0.5204292",
"0.5199826",
"0.519047",
"0.51865757",
"0.51846725",
"0.5180031",
"0.5179613",
"0.5179007",
"0.51780134",
"0.515467",
"0.51541543",
"0.5154118",
"0.5149366",
"0.514844",
"0.51400506",
"0.51396614",
"0.512528"
] |
0.6640762
|
14
|
The status of all the requests to other nodes repeated .NodeReplicationStatus nodeStatusList = 3;
|
public Builder addNodeStatusList(
int index, entities.Torrent.NodeReplicationStatus value) {
if (nodeStatusListBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureNodeStatusListIsMutable();
nodeStatusList_.add(index, value);
onChanged();
} else {
nodeStatusListBuilder_.addMessage(index, value);
}
return this;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"entities.Torrent.NodeReplicationStatus getNodeStatusList(int index);",
"@java.lang.Override\n public java.util.List<entities.Torrent.NodeReplicationStatus> getNodeStatusListList() {\n return nodeStatusList_;\n }",
"java.util.List<entities.Torrent.NodeReplicationStatus>\n getNodeStatusListList();",
"public java.util.List<entities.Torrent.NodeReplicationStatus> getNodeStatusListList() {\n if (nodeStatusListBuilder_ == null) {\n return java.util.Collections.unmodifiableList(nodeStatusList_);\n } else {\n return nodeStatusListBuilder_.getMessageList();\n }\n }",
"@java.lang.Override\n public java.util.List<? extends entities.Torrent.NodeReplicationStatusOrBuilder>\n getNodeStatusListOrBuilderList() {\n return nodeStatusList_;\n }",
"public java.util.List<? extends entities.Torrent.NodeReplicationStatusOrBuilder>\n getNodeStatusListOrBuilderList() {\n if (nodeStatusListBuilder_ != null) {\n return nodeStatusListBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(nodeStatusList_);\n }\n }",
"@java.lang.Override\n public int getNodeStatusListCount() {\n return nodeStatusList_.size();\n }",
"java.util.List<? extends entities.Torrent.NodeReplicationStatusOrBuilder>\n getNodeStatusListOrBuilderList();",
"public entities.Torrent.NodeReplicationStatus.Builder addNodeStatusListBuilder() {\n return getNodeStatusListFieldBuilder().addBuilder(\n entities.Torrent.NodeReplicationStatus.getDefaultInstance());\n }",
"int getNodeStatusListCount();",
"@java.lang.Override\n public entities.Torrent.NodeReplicationStatus getNodeStatusList(int index) {\n return nodeStatusList_.get(index);\n }",
"entities.Torrent.NodeReplicationStatusOrBuilder getNodeStatusListOrBuilder(\n int index);",
"@java.lang.Override\n public entities.Torrent.NodeReplicationStatusOrBuilder getNodeStatusListOrBuilder(\n int index) {\n return nodeStatusList_.get(index);\n }",
"public entities.Torrent.NodeReplicationStatus getNodeStatusList(int index) {\n if (nodeStatusListBuilder_ == null) {\n return nodeStatusList_.get(index);\n } else {\n return nodeStatusListBuilder_.getMessage(index);\n }\n }",
"public Builder addNodeStatusList(entities.Torrent.NodeReplicationStatus value) {\n if (nodeStatusListBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureNodeStatusListIsMutable();\n nodeStatusList_.add(value);\n onChanged();\n } else {\n nodeStatusListBuilder_.addMessage(value);\n }\n return this;\n }",
"public Builder addAllNodeStatusList(\n java.lang.Iterable<? extends entities.Torrent.NodeReplicationStatus> values) {\n if (nodeStatusListBuilder_ == null) {\n ensureNodeStatusListIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, nodeStatusList_);\n onChanged();\n } else {\n nodeStatusListBuilder_.addAllMessages(values);\n }\n return this;\n }",
"public entities.Torrent.NodeReplicationStatusOrBuilder getNodeStatusListOrBuilder(\n int index) {\n if (nodeStatusListBuilder_ == null) {\n return nodeStatusList_.get(index); } else {\n return nodeStatusListBuilder_.getMessageOrBuilder(index);\n }\n }",
"public int getNodeStatusListCount() {\n if (nodeStatusListBuilder_ == null) {\n return nodeStatusList_.size();\n } else {\n return nodeStatusListBuilder_.getCount();\n }\n }",
"public final int[] cacheNodeStatus() {\n return new int[]{0,0,0,0,0,0,0,0,0,0};\r\n }",
"public java.util.List<entities.Torrent.NodeReplicationStatus.Builder>\n getNodeStatusListBuilderList() {\n return getNodeStatusListFieldBuilder().getBuilderList();\n }",
"public Builder setNodeStatusList(\n int index, entities.Torrent.NodeReplicationStatus value) {\n if (nodeStatusListBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureNodeStatusListIsMutable();\n nodeStatusList_.set(index, value);\n onChanged();\n } else {\n nodeStatusListBuilder_.setMessage(index, value);\n }\n return this;\n }",
"private NodeReplicationStatus(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"int getReplicationCount();",
"public entities.Torrent.NodeReplicationStatus.Builder addNodeStatusListBuilder(\n int index) {\n return getNodeStatusListFieldBuilder().addBuilder(\n index, entities.Torrent.NodeReplicationStatus.getDefaultInstance());\n }",
"public int getNumNodesSeenByMessage() {\r\n return numNodesSeenByMessage;\r\n }",
"public abstract String getNodeStatusVariableName();",
"public Builder addNodeStatusList(\n entities.Torrent.NodeReplicationStatus.Builder builderForValue) {\n if (nodeStatusListBuilder_ == null) {\n ensureNodeStatusListIsMutable();\n nodeStatusList_.add(builderForValue.build());\n onChanged();\n } else {\n nodeStatusListBuilder_.addMessage(builderForValue.build());\n }\n return this;\n }",
"public entities.Torrent.NodeReplicationStatus.Builder getNodeStatusListBuilder(\n int index) {\n return getNodeStatusListFieldBuilder().getBuilder(index);\n }",
"java.util.List<io.netifi.proteus.admin.om.Node> \n getNodesList();",
"public void list() {\r\n\t\tfor (String key : nodeMap.keySet()) {\r\n\t\t\tNodeRef node = nodeMap.get(key);\r\n\t\t\tSystem.out.println(node.getIp() + \" : \" + node.getPort());\r\n\t\t}\t\t\r\n\t}",
"public static int countNodes() {\n\t\treturn count_nodes;\n\t}",
"default Promise<List<String>> findAllNodesWithStatus(HealthStatus queryStatus) {\n final Promise<List<String>> promise = Promises.promise();\n promise.resolve(Collections.emptyList());\n return promise;\n\n }",
"@Override\n\tpublic long numNodes() {\n\t\treturn numNodes;\n\t}",
"public java.util.List<entities.Torrent.NodeId> getNodesList() {\n if (nodesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(nodes_);\n } else {\n return nodesBuilder_.getMessageList();\n }\n }",
"public NodeInformation[] getNodes() throws CassandraServerManagementException {\r\n StorageServiceMBean ssMBean = null;\r\n try {\r\n ssMBean = CassandraAdminDataHolder\r\n .getInstance().getCassandraMBeanLocator().locateStorageServiceMBean();\r\n } catch (CassandraServerManagementException e) {\r\n handleException(\"Error occurred while retrieving node information list\", e);\r\n }\r\n\r\n if (ssMBean == null) {\r\n handleException(\"Storage Server MBean is null\");\r\n }\r\n\r\n Map<String, String> tokenToEndpoint = ssMBean.getTokenToEndpointMap();\r\n List<String> sortedTokens = new ArrayList<String>(tokenToEndpoint.keySet());\r\n Collections.sort(sortedTokens);\r\n\r\n /* Calculate per-token ownership of the ring */\r\n Map<InetAddress, Float> ownerships = ssMBean.getOwnership();\r\n\r\n List<NodeInformation> nodeInfoList = new ArrayList<NodeInformation>();\r\n for (String token : sortedTokens) {\r\n String primaryEndpoint = tokenToEndpoint.get(token);\r\n String status = ssMBean.getLiveNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_UP\r\n : ssMBean.getUnreachableNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_DOWN\r\n : CassandraManagementConstants.NodeStatuses.NODE_STATUS_UNKNOWN;\r\n\r\n String state = ssMBean.getJoiningNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_JOINING\r\n : ssMBean.getLeavingNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_LEAVING\r\n : CassandraManagementConstants.NodeStatuses.NODE_STATUS_NORMAL;\r\n\r\n Map<String, String> loadMap = ssMBean.getLoadMap();\r\n String load = loadMap.containsKey(primaryEndpoint)\r\n ? loadMap.get(primaryEndpoint)\r\n : CassandraManagementConstants.NodeStatuses.NODE_STATUS_UNKNOWN;\r\n\r\n Float ownership = ownerships.get(token);\r\n String owns = \"N/A\";\r\n if(ownership!=null){\r\n owns = new DecimalFormat(\"##0.00%\").format(ownership);\r\n }\r\n NodeInformation nodeInfo = new NodeInformation();\r\n nodeInfo.setAddress(primaryEndpoint);\r\n nodeInfo.setState(state);\r\n nodeInfo.setStatus(status);\r\n nodeInfo.setOwn(owns);\r\n nodeInfo.setLoad(load);\r\n nodeInfo.setToken(token);\r\n nodeInfoList.add(nodeInfo);\r\n }\r\n return nodeInfoList.toArray(new NodeInformation[nodeInfoList.size()]);\r\n }",
"public String replicationState() {\n return this.replicationState;\n }",
"@Override\n public boolean getCurrentNodeStatus(InetAddress ia) {\n if (ia.isAnyLocalAddress()) {\n return true;\n }\n // Check if given address is in cluster\n for (Client c : instance.getClientService().getConnectedClients()) {\n if (c.getSocketAddress().getAddress().equals(ia)) {\n return true;\n }\n }\n // reject all other addresses\n return false;\n }",
"int numNodes() {\n\t\treturn num_nodes;\n\t}",
"private int numNodes()\r\n\t{\r\n\t return nodeMap.size();\r\n\t}",
"public int lockedNodeCount() {\n\treturn lockedNodes;\n }",
"@Override\n\tpublic Collection<TaskStatus> getTaskStatus(){\n \tcheckInitialized();\n \t\n \t@SuppressWarnings(\"unchecked\")\n\t\tCollection<Collection<TaskStatus>> statusTree=Collections.EMPTY_LIST;\n \tfinal MultiTask<Collection<TaskStatus>> mtask;\n \ttry {\n\t\t\t mtask = breeder.executeCallable(new GetTaskStatus(this));\n\t\t\t statusTree = mtask.get();\n \t} catch (ExecutionException ex){\n \t\tlog.fatal(\"Could not get status of tasks for job \"+this.getId(), ex);\n \t} catch(InterruptedException ex) {\n \t\tlog.fatal(\"Could not get status of tasks for job \"+this.getId(), ex);\n \t}\n\t\t\t\n\t\t// Flatten into single collection\n\t\tList<TaskStatus> result = new ArrayList<TaskStatus>((int)(statusTree.size()*this.getThreadCount()));\n\t\tfor(Collection<TaskStatus> statusForNode: statusTree) {\n\t\t\tresult.addAll(statusForNode);\n\t\t}\n\t\t\n\t\treturn result;\n \n\t}",
"int getNodeCount() {\n\t\treturn m_list_nodes.size();\n\t}",
"int getNodesCount();",
"int getNodesCount();",
"public java.util.List<java.lang.Integer>\n getStatusList() {\n return status_;\n }",
"public static int getNumberOfNodes() {\n return(numberOfNodes);\n\t }",
"@java.lang.Override\n public int getNodesCount() {\n return nodes_.size();\n }",
"private NodeRestartRequest() {\n\t\t}",
"java.util.List<entities.Torrent.NodeId>\n getNodesList();",
"List<CommunicationLink> getAllNodes()\n {\n return new ArrayList<>(allNodes.values());\n }",
"public ODocument clusterStatus() {\n checkConnected();\n return remote.getClusterStatus(user, password);\n }",
"public StatusChecker(Node node){\n this.node=node;\n start();\n }",
"public Builder clearNodeStatusList() {\n if (nodeStatusListBuilder_ == null) {\n nodeStatusList_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n nodeStatusListBuilder_.clear();\n }\n return this;\n }",
"@java.lang.Override\n public java.util.List<entities.Torrent.NodeId> getNodesList() {\n return nodes_;\n }",
"public int getNumberOfNodesEvaluated();",
"java.util.List<java.lang.Integer> getStatusList();",
"private List<Node> getNodes() {\n List<Node> nodes = new ArrayList<Node>();\n NodeApi.GetConnectedNodesResult rawNodes =\n Wearable.NodeApi.getConnectedNodes(mGoogleApiClient).await();\n for (Node node : rawNodes.getNodes()) {\n nodes.add(node);\n }\n return nodes;\n }",
"public int numNodes() {\n\t\treturn numNodes;\n\t}",
"void updateRmiClientsCount() {\n int noOfClientsConnected = 0;\n\n String[] connectionIds = rmiConnector.getConnectionIds();\n\n if (connectionIds != null) {\n noOfClientsConnected = connectionIds.length;\n }\n\n logger.info(\"No. of RMI clients connected :: {}\", noOfClientsConnected);\n\n AdminDistributedSystemJmxImpl adminDSJmx = (AdminDistributedSystemJmxImpl) system;\n\n adminDSJmx.setRmiClientCountZero(noOfClientsConnected == 0);\n }",
"public int getReplicationDegree() {\n return replicationDegree;\n }",
"public int getReplicationDegree() {\n return replicationDegree;\n }",
"public List<NetworkNode> listNetworkNode();",
"private void updateGeoRepStatus(GlusterVolumeEntity volume, GlusterGeoRepSession session) {\n\n List<HashSet<GeoRepSessionStatus>> list = new ArrayList<>();\n // grouped node status\n int replicaCount = volume.getReplicaCount() == 0 ? 1 : volume.getReplicaCount();\n for (int i = 0; i < volume.getBricks().size(); i = i + replicaCount) {\n HashSet<GeoRepSessionStatus> subVolumeStatusSet = new HashSet<>();\n int j = 0;\n while (j < replicaCount) {\n Guid brickId = volume.getBricks().get(i + j).getId();\n subVolumeStatusSet.add(getStatusForBrickFromSession(session, brickId));\n j++;\n }\n list.add(subVolumeStatusSet);\n }\n\n session.setStatus(GeoRepSessionStatus.ACTIVE);\n // iterate through grouped status to set consolidated status\n for (HashSet<GeoRepSessionStatus> subVolumeStatusValues : list) {\n if (subVolumeStatusValues.contains(GeoRepSessionStatus.ACTIVE)) {\n // healthy\n continue;\n } else if (subVolumeStatusValues.contains(GeoRepSessionStatus.FAULTY)) {\n session.setStatus(GeoRepSessionStatus.FAULTY);\n // if any one of the sub-volume is faulty, the overall session status if faulty\n return;\n }\n // override status in case of these values\n if (ArrayUtils.contains(overridableStatuses, session.getStatus())) {\n if (subVolumeStatusValues.size() == 1) {\n session.setStatus((GeoRepSessionStatus) subVolumeStatusValues.toArray()[0]);\n } else {\n // if status values in sub-volume are not the same, what do we do?\n // this should not happen, so we'll log it for now\n log.info(\"Multiple status values found in volume '{}'\", session.getMasterVolumeName());\n }\n }\n }\n\n }",
"@SuppressWarnings(\"unused\")\n private ReplicationStatusResponse() {\n this(false);\n }",
"int getNrNodes() {\n\t\treturn adjList.size();\n\t}",
"public int getConnectionStatus()\r\n { return connectionStatus; }",
"int getNodeCount();",
"int getNodeCount();",
"public int getNodeCount() {\n return nodeCount;\n }",
"public int getNetworkNodesNumber() {\n\t\t\n\t\t//Return nodes size\n\t\treturn nodes.size();\n\t\t\n\t}",
"void nodeOnline();",
"public static String getClusterStatusNodePath() {\n return String.join(\"/\", \"\", ROOT_NODE, COMPUTE_NODE, STATUS_NODE);\n }",
"@Override\n protected int minimumNumberOfReplicas() {\n return 1;\n }",
"@Override\n public void statusUpdate(final String asgName, final ASGStatus newStatus, final boolean isReplication) {\n if (isReplication) {\n return;\n }\n for (final PeerEurekaNode node : peerEurekaNodes.getPeerEurekaNodes()) {\n replicateASGInfoToReplicaNodes(asgName, newStatus, node);\n\n }\n }",
"@PostMapping(\"/queryGroupStatus/list\")\n @PreAuthorize(ConstantProperties.HAS_ROLE_ADMIN)\n public BaseResponse getGroupStatusList(@Valid @RequestBody ReqGroupStatus reqGroupStatus) throws NodeMgrException {\n Instant startTime = Instant.now();\n BaseResponse baseResponse = new BaseResponse(ConstantCode.SUCCESS);\n log.info(\"start getGroupStatusMap startTime:{}\", startTime.toEpochMilli());\n List<String> nodeIdList = reqGroupStatus.getNodeIdList();\n List<RspGroupStatus> resList = groupService.listGroupStatus(nodeIdList,\n reqGroupStatus.getGroupIdList());\n baseResponse.setData(resList);\n log.info(\"end getGroupStatusMap useTime:{} result:{}\",\n Duration.between(startTime, Instant.now()).toMillis(),\n JsonTools.toJSONString(baseResponse));\n return baseResponse;\n }",
"public String getNumberOfNodesEvaluated(){return Integer.toString(NumberOfVisitedNodes);}",
"java.util.List<? extends io.netifi.proteus.admin.om.NodeOrBuilder> \n getNodesOrBuilderList();",
"private void getNodesCount(HttpServletRequest request, HttpServletResponse response) throws IOException {\n int countNodes = SimApi.getNodesCount();\n response.getWriter().write(Integer.toString(countNodes));\n }",
"@Test(timeout = 10000L)\n public void testNodesInformation() throws Exception {\n CommonDriverAdminTests.testNodesInformation(client, nbNodes);\n }",
"public int getNumNodes() {\n\t\treturn nodes.size();\n\t}",
"public abstract Collection<Node> getAllSuccessors();",
"@RequestLine(\"GET /status\")\n Status getNeustarNetworkStatus();",
"public void printStatus(){\n System.out.println(\"Nodes: \" + \n getVertexCount() + \" Edges: \" + \n getEdgeCount()); \n //and \" + getEdgeCount() + \" edges active.\");\n }",
"public int getStatusCount() {\n return status_.size();\n }",
"public List<Long> getSessionNodes() {\n List<Long> ret = new ArrayList<>();\n\n for (int i = 0; i < sessionsList.size(); i++) {\n ret.add(sessionsList.get(i).dhtNodes());\n }\n\n return ret;\n }",
"@Override\n public ClusterStatus getCurrentClusterStatus() {\n if (getMemberList().size() > 1) {\n return CLUSTER_FUNCTIONAL;\n }\n // when only one node is connected return degraded\n if (getMemberList().size() == 1) {\n return CLUSTER_DEGRADED;\n }\n // consider all other states as illegal\n return CLUSTER_ILLEGAL;\n }",
"private void refreshNodeList() {\n if (UnderNet.router.status.equals(InterfaceStatus.STARTED)) {\n //Using connected and cached nodes if the router has started.\n ArrayList<Node> nodesToList = UnderNet.router.getConnectedNodes();\n for (Node cachedNode :\n EntryNodeCache.cachedNodes) {\n boolean canAdd = true;\n for (Node connectedNode : UnderNet.router.getConnectedNodes()) {\n if (cachedNode.getAddress().equals(connectedNode.getAddress())) {\n canAdd = false;\n }\n }\n if (canAdd) {\n nodesToList.add(cachedNode);\n }\n }\n nodeList.setListData(nodesToList.toArray());\n } else {\n //Using cached nodes if the router isn't online.\n nodeList.setListData(EntryNodeCache.cachedNodes.toArray());\n }\n }",
"public int getNodeCount() {\n return node_.size();\n }",
"public Builder setNodeStatusList(\n int index, entities.Torrent.NodeReplicationStatus.Builder builderForValue) {\n if (nodeStatusListBuilder_ == null) {\n ensureNodeStatusListIsMutable();\n nodeStatusList_.set(index, builderForValue.build());\n onChanged();\n } else {\n nodeStatusListBuilder_.setMessage(index, builderForValue.build());\n }\n return this;\n }",
"int getStatusCount();",
"List<StatusListener> mo9950b();",
"public List<Output<TInt32>> nodeIdsList() {\n return nodeIdsList;\n }",
"@Override\r\n\tpublic int getNumberOfNodes() {\n\t\treturn 0;\r\n\t}",
"@Override\n public void onNewClusterState(ClusterState state) {\n transportService.sendRequest(\n clusterService.localNode(),\n transportReplicaAction,\n replicaRequest,\n new ActionListenerResponseHandler<>(onCompletionListener, ReplicaResponse::new)\n );\n }",
"public java.util.List<? extends entities.Torrent.NodeIdOrBuilder>\n getNodesOrBuilderList() {\n if (nodesBuilder_ != null) {\n return nodesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(nodes_);\n }\n }",
"void refreshNodeHostCount(int nodeHostCount);",
"public java.util.List<java.lang.Integer>\n getStatusList() {\n return java.util.Collections.unmodifiableList(status_);\n }",
"protected int numNodes() {\n\t\treturn nodes.size();\n\t}",
"public static void getStatus() {\n\t\ttry {\n\t\t\tint i = 1;\n\t\t\tList<Object[]>serverDetails = ServerStatus.getServerDetails();\n\t\t\tfor (Object[] servers:serverDetails){\n\t\t\t\tServerStatus.verifyServerStatus(i,(String)servers[0], (String)servers[1], (String)servers[2]);\n\t\t\t\ti++;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tcatch (Exception ex){\n\t\t\tex.printStackTrace();\n\t\t}\n\t}",
"public Vector<Node> getNodes(){\n\t\treturn this.listOfNodes;\n\t}"
] |
[
"0.7676129",
"0.7331182",
"0.7273687",
"0.71861",
"0.715512",
"0.7115793",
"0.7109621",
"0.70572484",
"0.70231473",
"0.68802404",
"0.68754536",
"0.68622214",
"0.6731096",
"0.66640806",
"0.66391486",
"0.65591234",
"0.6555521",
"0.63903886",
"0.63232106",
"0.63019353",
"0.6214408",
"0.61544263",
"0.6059044",
"0.5968166",
"0.5747682",
"0.5747118",
"0.572477",
"0.5719498",
"0.5702324",
"0.55613613",
"0.5554103",
"0.55409944",
"0.55359095",
"0.55294245",
"0.5514939",
"0.5508245",
"0.54773027",
"0.54582757",
"0.5452121",
"0.54395384",
"0.5432274",
"0.5413921",
"0.5404272",
"0.5404272",
"0.5391273",
"0.5391093",
"0.53838295",
"0.5372251",
"0.5371431",
"0.53694195",
"0.53680325",
"0.5355719",
"0.5337264",
"0.5328223",
"0.5313206",
"0.53056794",
"0.5304752",
"0.52963203",
"0.5294912",
"0.52926546",
"0.52926546",
"0.52865416",
"0.52761674",
"0.52743804",
"0.52723396",
"0.52713174",
"0.5270979",
"0.5270979",
"0.5262344",
"0.5260428",
"0.5251417",
"0.525009",
"0.52486444",
"0.5244158",
"0.5236949",
"0.5233294",
"0.5232152",
"0.523205",
"0.5227255",
"0.5222861",
"0.5216217",
"0.5216119",
"0.5214923",
"0.52052957",
"0.5199027",
"0.5190343",
"0.51863825",
"0.5185727",
"0.5179844",
"0.51798075",
"0.51794755",
"0.51788676",
"0.5154731",
"0.5154184",
"0.51530594",
"0.51490337",
"0.514868",
"0.5140558",
"0.5139295",
"0.51247513"
] |
0.6020407
|
23
|
The status of all the requests to other nodes repeated .NodeReplicationStatus nodeStatusList = 3;
|
public Builder addNodeStatusList(
entities.Torrent.NodeReplicationStatus.Builder builderForValue) {
if (nodeStatusListBuilder_ == null) {
ensureNodeStatusListIsMutable();
nodeStatusList_.add(builderForValue.build());
onChanged();
} else {
nodeStatusListBuilder_.addMessage(builderForValue.build());
}
return this;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"entities.Torrent.NodeReplicationStatus getNodeStatusList(int index);",
"@java.lang.Override\n public java.util.List<entities.Torrent.NodeReplicationStatus> getNodeStatusListList() {\n return nodeStatusList_;\n }",
"java.util.List<entities.Torrent.NodeReplicationStatus>\n getNodeStatusListList();",
"public java.util.List<entities.Torrent.NodeReplicationStatus> getNodeStatusListList() {\n if (nodeStatusListBuilder_ == null) {\n return java.util.Collections.unmodifiableList(nodeStatusList_);\n } else {\n return nodeStatusListBuilder_.getMessageList();\n }\n }",
"@java.lang.Override\n public java.util.List<? extends entities.Torrent.NodeReplicationStatusOrBuilder>\n getNodeStatusListOrBuilderList() {\n return nodeStatusList_;\n }",
"public java.util.List<? extends entities.Torrent.NodeReplicationStatusOrBuilder>\n getNodeStatusListOrBuilderList() {\n if (nodeStatusListBuilder_ != null) {\n return nodeStatusListBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(nodeStatusList_);\n }\n }",
"@java.lang.Override\n public int getNodeStatusListCount() {\n return nodeStatusList_.size();\n }",
"java.util.List<? extends entities.Torrent.NodeReplicationStatusOrBuilder>\n getNodeStatusListOrBuilderList();",
"public entities.Torrent.NodeReplicationStatus.Builder addNodeStatusListBuilder() {\n return getNodeStatusListFieldBuilder().addBuilder(\n entities.Torrent.NodeReplicationStatus.getDefaultInstance());\n }",
"int getNodeStatusListCount();",
"@java.lang.Override\n public entities.Torrent.NodeReplicationStatus getNodeStatusList(int index) {\n return nodeStatusList_.get(index);\n }",
"entities.Torrent.NodeReplicationStatusOrBuilder getNodeStatusListOrBuilder(\n int index);",
"@java.lang.Override\n public entities.Torrent.NodeReplicationStatusOrBuilder getNodeStatusListOrBuilder(\n int index) {\n return nodeStatusList_.get(index);\n }",
"public entities.Torrent.NodeReplicationStatus getNodeStatusList(int index) {\n if (nodeStatusListBuilder_ == null) {\n return nodeStatusList_.get(index);\n } else {\n return nodeStatusListBuilder_.getMessage(index);\n }\n }",
"public Builder addNodeStatusList(entities.Torrent.NodeReplicationStatus value) {\n if (nodeStatusListBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureNodeStatusListIsMutable();\n nodeStatusList_.add(value);\n onChanged();\n } else {\n nodeStatusListBuilder_.addMessage(value);\n }\n return this;\n }",
"public Builder addAllNodeStatusList(\n java.lang.Iterable<? extends entities.Torrent.NodeReplicationStatus> values) {\n if (nodeStatusListBuilder_ == null) {\n ensureNodeStatusListIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, nodeStatusList_);\n onChanged();\n } else {\n nodeStatusListBuilder_.addAllMessages(values);\n }\n return this;\n }",
"public entities.Torrent.NodeReplicationStatusOrBuilder getNodeStatusListOrBuilder(\n int index) {\n if (nodeStatusListBuilder_ == null) {\n return nodeStatusList_.get(index); } else {\n return nodeStatusListBuilder_.getMessageOrBuilder(index);\n }\n }",
"public int getNodeStatusListCount() {\n if (nodeStatusListBuilder_ == null) {\n return nodeStatusList_.size();\n } else {\n return nodeStatusListBuilder_.getCount();\n }\n }",
"public final int[] cacheNodeStatus() {\n return new int[]{0,0,0,0,0,0,0,0,0,0};\r\n }",
"public java.util.List<entities.Torrent.NodeReplicationStatus.Builder>\n getNodeStatusListBuilderList() {\n return getNodeStatusListFieldBuilder().getBuilderList();\n }",
"public Builder setNodeStatusList(\n int index, entities.Torrent.NodeReplicationStatus value) {\n if (nodeStatusListBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureNodeStatusListIsMutable();\n nodeStatusList_.set(index, value);\n onChanged();\n } else {\n nodeStatusListBuilder_.setMessage(index, value);\n }\n return this;\n }",
"private NodeReplicationStatus(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"int getReplicationCount();",
"public Builder addNodeStatusList(\n int index, entities.Torrent.NodeReplicationStatus value) {\n if (nodeStatusListBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureNodeStatusListIsMutable();\n nodeStatusList_.add(index, value);\n onChanged();\n } else {\n nodeStatusListBuilder_.addMessage(index, value);\n }\n return this;\n }",
"public entities.Torrent.NodeReplicationStatus.Builder addNodeStatusListBuilder(\n int index) {\n return getNodeStatusListFieldBuilder().addBuilder(\n index, entities.Torrent.NodeReplicationStatus.getDefaultInstance());\n }",
"public int getNumNodesSeenByMessage() {\r\n return numNodesSeenByMessage;\r\n }",
"public abstract String getNodeStatusVariableName();",
"public entities.Torrent.NodeReplicationStatus.Builder getNodeStatusListBuilder(\n int index) {\n return getNodeStatusListFieldBuilder().getBuilder(index);\n }",
"java.util.List<io.netifi.proteus.admin.om.Node> \n getNodesList();",
"public void list() {\r\n\t\tfor (String key : nodeMap.keySet()) {\r\n\t\t\tNodeRef node = nodeMap.get(key);\r\n\t\t\tSystem.out.println(node.getIp() + \" : \" + node.getPort());\r\n\t\t}\t\t\r\n\t}",
"public static int countNodes() {\n\t\treturn count_nodes;\n\t}",
"default Promise<List<String>> findAllNodesWithStatus(HealthStatus queryStatus) {\n final Promise<List<String>> promise = Promises.promise();\n promise.resolve(Collections.emptyList());\n return promise;\n\n }",
"@Override\n\tpublic long numNodes() {\n\t\treturn numNodes;\n\t}",
"public java.util.List<entities.Torrent.NodeId> getNodesList() {\n if (nodesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(nodes_);\n } else {\n return nodesBuilder_.getMessageList();\n }\n }",
"public NodeInformation[] getNodes() throws CassandraServerManagementException {\r\n StorageServiceMBean ssMBean = null;\r\n try {\r\n ssMBean = CassandraAdminDataHolder\r\n .getInstance().getCassandraMBeanLocator().locateStorageServiceMBean();\r\n } catch (CassandraServerManagementException e) {\r\n handleException(\"Error occurred while retrieving node information list\", e);\r\n }\r\n\r\n if (ssMBean == null) {\r\n handleException(\"Storage Server MBean is null\");\r\n }\r\n\r\n Map<String, String> tokenToEndpoint = ssMBean.getTokenToEndpointMap();\r\n List<String> sortedTokens = new ArrayList<String>(tokenToEndpoint.keySet());\r\n Collections.sort(sortedTokens);\r\n\r\n /* Calculate per-token ownership of the ring */\r\n Map<InetAddress, Float> ownerships = ssMBean.getOwnership();\r\n\r\n List<NodeInformation> nodeInfoList = new ArrayList<NodeInformation>();\r\n for (String token : sortedTokens) {\r\n String primaryEndpoint = tokenToEndpoint.get(token);\r\n String status = ssMBean.getLiveNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_UP\r\n : ssMBean.getUnreachableNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_DOWN\r\n : CassandraManagementConstants.NodeStatuses.NODE_STATUS_UNKNOWN;\r\n\r\n String state = ssMBean.getJoiningNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_JOINING\r\n : ssMBean.getLeavingNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_LEAVING\r\n : CassandraManagementConstants.NodeStatuses.NODE_STATUS_NORMAL;\r\n\r\n Map<String, String> loadMap = ssMBean.getLoadMap();\r\n String load = loadMap.containsKey(primaryEndpoint)\r\n ? loadMap.get(primaryEndpoint)\r\n : CassandraManagementConstants.NodeStatuses.NODE_STATUS_UNKNOWN;\r\n\r\n Float ownership = ownerships.get(token);\r\n String owns = \"N/A\";\r\n if(ownership!=null){\r\n owns = new DecimalFormat(\"##0.00%\").format(ownership);\r\n }\r\n NodeInformation nodeInfo = new NodeInformation();\r\n nodeInfo.setAddress(primaryEndpoint);\r\n nodeInfo.setState(state);\r\n nodeInfo.setStatus(status);\r\n nodeInfo.setOwn(owns);\r\n nodeInfo.setLoad(load);\r\n nodeInfo.setToken(token);\r\n nodeInfoList.add(nodeInfo);\r\n }\r\n return nodeInfoList.toArray(new NodeInformation[nodeInfoList.size()]);\r\n }",
"public String replicationState() {\n return this.replicationState;\n }",
"@Override\n public boolean getCurrentNodeStatus(InetAddress ia) {\n if (ia.isAnyLocalAddress()) {\n return true;\n }\n // Check if given address is in cluster\n for (Client c : instance.getClientService().getConnectedClients()) {\n if (c.getSocketAddress().getAddress().equals(ia)) {\n return true;\n }\n }\n // reject all other addresses\n return false;\n }",
"int numNodes() {\n\t\treturn num_nodes;\n\t}",
"private int numNodes()\r\n\t{\r\n\t return nodeMap.size();\r\n\t}",
"public int lockedNodeCount() {\n\treturn lockedNodes;\n }",
"@Override\n\tpublic Collection<TaskStatus> getTaskStatus(){\n \tcheckInitialized();\n \t\n \t@SuppressWarnings(\"unchecked\")\n\t\tCollection<Collection<TaskStatus>> statusTree=Collections.EMPTY_LIST;\n \tfinal MultiTask<Collection<TaskStatus>> mtask;\n \ttry {\n\t\t\t mtask = breeder.executeCallable(new GetTaskStatus(this));\n\t\t\t statusTree = mtask.get();\n \t} catch (ExecutionException ex){\n \t\tlog.fatal(\"Could not get status of tasks for job \"+this.getId(), ex);\n \t} catch(InterruptedException ex) {\n \t\tlog.fatal(\"Could not get status of tasks for job \"+this.getId(), ex);\n \t}\n\t\t\t\n\t\t// Flatten into single collection\n\t\tList<TaskStatus> result = new ArrayList<TaskStatus>((int)(statusTree.size()*this.getThreadCount()));\n\t\tfor(Collection<TaskStatus> statusForNode: statusTree) {\n\t\t\tresult.addAll(statusForNode);\n\t\t}\n\t\t\n\t\treturn result;\n \n\t}",
"int getNodeCount() {\n\t\treturn m_list_nodes.size();\n\t}",
"int getNodesCount();",
"int getNodesCount();",
"public java.util.List<java.lang.Integer>\n getStatusList() {\n return status_;\n }",
"public static int getNumberOfNodes() {\n return(numberOfNodes);\n\t }",
"@java.lang.Override\n public int getNodesCount() {\n return nodes_.size();\n }",
"java.util.List<entities.Torrent.NodeId>\n getNodesList();",
"private NodeRestartRequest() {\n\t\t}",
"List<CommunicationLink> getAllNodes()\n {\n return new ArrayList<>(allNodes.values());\n }",
"public ODocument clusterStatus() {\n checkConnected();\n return remote.getClusterStatus(user, password);\n }",
"public StatusChecker(Node node){\n this.node=node;\n start();\n }",
"public Builder clearNodeStatusList() {\n if (nodeStatusListBuilder_ == null) {\n nodeStatusList_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n nodeStatusListBuilder_.clear();\n }\n return this;\n }",
"@java.lang.Override\n public java.util.List<entities.Torrent.NodeId> getNodesList() {\n return nodes_;\n }",
"public int getNumberOfNodesEvaluated();",
"java.util.List<java.lang.Integer> getStatusList();",
"private List<Node> getNodes() {\n List<Node> nodes = new ArrayList<Node>();\n NodeApi.GetConnectedNodesResult rawNodes =\n Wearable.NodeApi.getConnectedNodes(mGoogleApiClient).await();\n for (Node node : rawNodes.getNodes()) {\n nodes.add(node);\n }\n return nodes;\n }",
"public int numNodes() {\n\t\treturn numNodes;\n\t}",
"void updateRmiClientsCount() {\n int noOfClientsConnected = 0;\n\n String[] connectionIds = rmiConnector.getConnectionIds();\n\n if (connectionIds != null) {\n noOfClientsConnected = connectionIds.length;\n }\n\n logger.info(\"No. of RMI clients connected :: {}\", noOfClientsConnected);\n\n AdminDistributedSystemJmxImpl adminDSJmx = (AdminDistributedSystemJmxImpl) system;\n\n adminDSJmx.setRmiClientCountZero(noOfClientsConnected == 0);\n }",
"public int getReplicationDegree() {\n return replicationDegree;\n }",
"public int getReplicationDegree() {\n return replicationDegree;\n }",
"public List<NetworkNode> listNetworkNode();",
"private void updateGeoRepStatus(GlusterVolumeEntity volume, GlusterGeoRepSession session) {\n\n List<HashSet<GeoRepSessionStatus>> list = new ArrayList<>();\n // grouped node status\n int replicaCount = volume.getReplicaCount() == 0 ? 1 : volume.getReplicaCount();\n for (int i = 0; i < volume.getBricks().size(); i = i + replicaCount) {\n HashSet<GeoRepSessionStatus> subVolumeStatusSet = new HashSet<>();\n int j = 0;\n while (j < replicaCount) {\n Guid brickId = volume.getBricks().get(i + j).getId();\n subVolumeStatusSet.add(getStatusForBrickFromSession(session, brickId));\n j++;\n }\n list.add(subVolumeStatusSet);\n }\n\n session.setStatus(GeoRepSessionStatus.ACTIVE);\n // iterate through grouped status to set consolidated status\n for (HashSet<GeoRepSessionStatus> subVolumeStatusValues : list) {\n if (subVolumeStatusValues.contains(GeoRepSessionStatus.ACTIVE)) {\n // healthy\n continue;\n } else if (subVolumeStatusValues.contains(GeoRepSessionStatus.FAULTY)) {\n session.setStatus(GeoRepSessionStatus.FAULTY);\n // if any one of the sub-volume is faulty, the overall session status if faulty\n return;\n }\n // override status in case of these values\n if (ArrayUtils.contains(overridableStatuses, session.getStatus())) {\n if (subVolumeStatusValues.size() == 1) {\n session.setStatus((GeoRepSessionStatus) subVolumeStatusValues.toArray()[0]);\n } else {\n // if status values in sub-volume are not the same, what do we do?\n // this should not happen, so we'll log it for now\n log.info(\"Multiple status values found in volume '{}'\", session.getMasterVolumeName());\n }\n }\n }\n\n }",
"@SuppressWarnings(\"unused\")\n private ReplicationStatusResponse() {\n this(false);\n }",
"int getNrNodes() {\n\t\treturn adjList.size();\n\t}",
"public int getConnectionStatus()\r\n { return connectionStatus; }",
"int getNodeCount();",
"int getNodeCount();",
"public int getNodeCount() {\n return nodeCount;\n }",
"public int getNetworkNodesNumber() {\n\t\t\n\t\t//Return nodes size\n\t\treturn nodes.size();\n\t\t\n\t}",
"void nodeOnline();",
"public static String getClusterStatusNodePath() {\n return String.join(\"/\", \"\", ROOT_NODE, COMPUTE_NODE, STATUS_NODE);\n }",
"@Override\n protected int minimumNumberOfReplicas() {\n return 1;\n }",
"@Override\n public void statusUpdate(final String asgName, final ASGStatus newStatus, final boolean isReplication) {\n if (isReplication) {\n return;\n }\n for (final PeerEurekaNode node : peerEurekaNodes.getPeerEurekaNodes()) {\n replicateASGInfoToReplicaNodes(asgName, newStatus, node);\n\n }\n }",
"@PostMapping(\"/queryGroupStatus/list\")\n @PreAuthorize(ConstantProperties.HAS_ROLE_ADMIN)\n public BaseResponse getGroupStatusList(@Valid @RequestBody ReqGroupStatus reqGroupStatus) throws NodeMgrException {\n Instant startTime = Instant.now();\n BaseResponse baseResponse = new BaseResponse(ConstantCode.SUCCESS);\n log.info(\"start getGroupStatusMap startTime:{}\", startTime.toEpochMilli());\n List<String> nodeIdList = reqGroupStatus.getNodeIdList();\n List<RspGroupStatus> resList = groupService.listGroupStatus(nodeIdList,\n reqGroupStatus.getGroupIdList());\n baseResponse.setData(resList);\n log.info(\"end getGroupStatusMap useTime:{} result:{}\",\n Duration.between(startTime, Instant.now()).toMillis(),\n JsonTools.toJSONString(baseResponse));\n return baseResponse;\n }",
"public String getNumberOfNodesEvaluated(){return Integer.toString(NumberOfVisitedNodes);}",
"private void getNodesCount(HttpServletRequest request, HttpServletResponse response) throws IOException {\n int countNodes = SimApi.getNodesCount();\n response.getWriter().write(Integer.toString(countNodes));\n }",
"java.util.List<? extends io.netifi.proteus.admin.om.NodeOrBuilder> \n getNodesOrBuilderList();",
"@Test(timeout = 10000L)\n public void testNodesInformation() throws Exception {\n CommonDriverAdminTests.testNodesInformation(client, nbNodes);\n }",
"public int getNumNodes() {\n\t\treturn nodes.size();\n\t}",
"public abstract Collection<Node> getAllSuccessors();",
"@RequestLine(\"GET /status\")\n Status getNeustarNetworkStatus();",
"public void printStatus(){\n System.out.println(\"Nodes: \" + \n getVertexCount() + \" Edges: \" + \n getEdgeCount()); \n //and \" + getEdgeCount() + \" edges active.\");\n }",
"public int getStatusCount() {\n return status_.size();\n }",
"public List<Long> getSessionNodes() {\n List<Long> ret = new ArrayList<>();\n\n for (int i = 0; i < sessionsList.size(); i++) {\n ret.add(sessionsList.get(i).dhtNodes());\n }\n\n return ret;\n }",
"@Override\n public ClusterStatus getCurrentClusterStatus() {\n if (getMemberList().size() > 1) {\n return CLUSTER_FUNCTIONAL;\n }\n // when only one node is connected return degraded\n if (getMemberList().size() == 1) {\n return CLUSTER_DEGRADED;\n }\n // consider all other states as illegal\n return CLUSTER_ILLEGAL;\n }",
"private void refreshNodeList() {\n if (UnderNet.router.status.equals(InterfaceStatus.STARTED)) {\n //Using connected and cached nodes if the router has started.\n ArrayList<Node> nodesToList = UnderNet.router.getConnectedNodes();\n for (Node cachedNode :\n EntryNodeCache.cachedNodes) {\n boolean canAdd = true;\n for (Node connectedNode : UnderNet.router.getConnectedNodes()) {\n if (cachedNode.getAddress().equals(connectedNode.getAddress())) {\n canAdd = false;\n }\n }\n if (canAdd) {\n nodesToList.add(cachedNode);\n }\n }\n nodeList.setListData(nodesToList.toArray());\n } else {\n //Using cached nodes if the router isn't online.\n nodeList.setListData(EntryNodeCache.cachedNodes.toArray());\n }\n }",
"public int getNodeCount() {\n return node_.size();\n }",
"public Builder setNodeStatusList(\n int index, entities.Torrent.NodeReplicationStatus.Builder builderForValue) {\n if (nodeStatusListBuilder_ == null) {\n ensureNodeStatusListIsMutable();\n nodeStatusList_.set(index, builderForValue.build());\n onChanged();\n } else {\n nodeStatusListBuilder_.setMessage(index, builderForValue.build());\n }\n return this;\n }",
"List<StatusListener> mo9950b();",
"int getStatusCount();",
"public List<Output<TInt32>> nodeIdsList() {\n return nodeIdsList;\n }",
"@Override\r\n\tpublic int getNumberOfNodes() {\n\t\treturn 0;\r\n\t}",
"@Override\n public void onNewClusterState(ClusterState state) {\n transportService.sendRequest(\n clusterService.localNode(),\n transportReplicaAction,\n replicaRequest,\n new ActionListenerResponseHandler<>(onCompletionListener, ReplicaResponse::new)\n );\n }",
"public java.util.List<? extends entities.Torrent.NodeIdOrBuilder>\n getNodesOrBuilderList() {\n if (nodesBuilder_ != null) {\n return nodesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(nodes_);\n }\n }",
"public java.util.List<java.lang.Integer>\n getStatusList() {\n return java.util.Collections.unmodifiableList(status_);\n }",
"void refreshNodeHostCount(int nodeHostCount);",
"protected int numNodes() {\n\t\treturn nodes.size();\n\t}",
"public static void getStatus() {\n\t\ttry {\n\t\t\tint i = 1;\n\t\t\tList<Object[]>serverDetails = ServerStatus.getServerDetails();\n\t\t\tfor (Object[] servers:serverDetails){\n\t\t\t\tServerStatus.verifyServerStatus(i,(String)servers[0], (String)servers[1], (String)servers[2]);\n\t\t\t\ti++;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tcatch (Exception ex){\n\t\t\tex.printStackTrace();\n\t\t}\n\t}",
"public Vector<Node> getNodes(){\n\t\treturn this.listOfNodes;\n\t}"
] |
[
"0.7677481",
"0.7332279",
"0.7275059",
"0.71873355",
"0.71560276",
"0.7116769",
"0.7109518",
"0.70585376",
"0.7024147",
"0.6879867",
"0.6876868",
"0.6864218",
"0.67323005",
"0.6665114",
"0.6640871",
"0.6559848",
"0.6556308",
"0.6390153",
"0.63229275",
"0.63024855",
"0.6215867",
"0.6154482",
"0.6059501",
"0.6021897",
"0.596904",
"0.5747415",
"0.5746043",
"0.57199895",
"0.57014227",
"0.55606055",
"0.55531794",
"0.5541874",
"0.5535034",
"0.5529633",
"0.5514081",
"0.5508731",
"0.5476352",
"0.54575264",
"0.54510856",
"0.54392225",
"0.5431914",
"0.54128003",
"0.5403353",
"0.5403353",
"0.5391939",
"0.53903574",
"0.5383281",
"0.5371443",
"0.53700656",
"0.536878",
"0.53676504",
"0.535534",
"0.5338024",
"0.5328059",
"0.5311786",
"0.5306224",
"0.53053415",
"0.52958065",
"0.52942604",
"0.5293356",
"0.5293356",
"0.52853906",
"0.5275481",
"0.5274735",
"0.5272081",
"0.52704126",
"0.5269814",
"0.5269814",
"0.5261532",
"0.52604467",
"0.5249879",
"0.5249766",
"0.52476424",
"0.52447534",
"0.5238364",
"0.52316946",
"0.52309597",
"0.52308846",
"0.5225883",
"0.5223006",
"0.52158034",
"0.5215295",
"0.5214578",
"0.5205377",
"0.51992106",
"0.5189863",
"0.51856333",
"0.5185279",
"0.5179929",
"0.51792306",
"0.5179208",
"0.51784956",
"0.5153981",
"0.51533186",
"0.5152661",
"0.514974",
"0.51477605",
"0.51399446",
"0.5139098",
"0.51240915"
] |
0.572507
|
27
|
The status of all the requests to other nodes repeated .NodeReplicationStatus nodeStatusList = 3;
|
public Builder addNodeStatusList(
int index, entities.Torrent.NodeReplicationStatus.Builder builderForValue) {
if (nodeStatusListBuilder_ == null) {
ensureNodeStatusListIsMutable();
nodeStatusList_.add(index, builderForValue.build());
onChanged();
} else {
nodeStatusListBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"entities.Torrent.NodeReplicationStatus getNodeStatusList(int index);",
"@java.lang.Override\n public java.util.List<entities.Torrent.NodeReplicationStatus> getNodeStatusListList() {\n return nodeStatusList_;\n }",
"java.util.List<entities.Torrent.NodeReplicationStatus>\n getNodeStatusListList();",
"public java.util.List<entities.Torrent.NodeReplicationStatus> getNodeStatusListList() {\n if (nodeStatusListBuilder_ == null) {\n return java.util.Collections.unmodifiableList(nodeStatusList_);\n } else {\n return nodeStatusListBuilder_.getMessageList();\n }\n }",
"@java.lang.Override\n public java.util.List<? extends entities.Torrent.NodeReplicationStatusOrBuilder>\n getNodeStatusListOrBuilderList() {\n return nodeStatusList_;\n }",
"public java.util.List<? extends entities.Torrent.NodeReplicationStatusOrBuilder>\n getNodeStatusListOrBuilderList() {\n if (nodeStatusListBuilder_ != null) {\n return nodeStatusListBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(nodeStatusList_);\n }\n }",
"@java.lang.Override\n public int getNodeStatusListCount() {\n return nodeStatusList_.size();\n }",
"java.util.List<? extends entities.Torrent.NodeReplicationStatusOrBuilder>\n getNodeStatusListOrBuilderList();",
"public entities.Torrent.NodeReplicationStatus.Builder addNodeStatusListBuilder() {\n return getNodeStatusListFieldBuilder().addBuilder(\n entities.Torrent.NodeReplicationStatus.getDefaultInstance());\n }",
"int getNodeStatusListCount();",
"@java.lang.Override\n public entities.Torrent.NodeReplicationStatus getNodeStatusList(int index) {\n return nodeStatusList_.get(index);\n }",
"entities.Torrent.NodeReplicationStatusOrBuilder getNodeStatusListOrBuilder(\n int index);",
"@java.lang.Override\n public entities.Torrent.NodeReplicationStatusOrBuilder getNodeStatusListOrBuilder(\n int index) {\n return nodeStatusList_.get(index);\n }",
"public entities.Torrent.NodeReplicationStatus getNodeStatusList(int index) {\n if (nodeStatusListBuilder_ == null) {\n return nodeStatusList_.get(index);\n } else {\n return nodeStatusListBuilder_.getMessage(index);\n }\n }",
"public Builder addNodeStatusList(entities.Torrent.NodeReplicationStatus value) {\n if (nodeStatusListBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureNodeStatusListIsMutable();\n nodeStatusList_.add(value);\n onChanged();\n } else {\n nodeStatusListBuilder_.addMessage(value);\n }\n return this;\n }",
"public Builder addAllNodeStatusList(\n java.lang.Iterable<? extends entities.Torrent.NodeReplicationStatus> values) {\n if (nodeStatusListBuilder_ == null) {\n ensureNodeStatusListIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, nodeStatusList_);\n onChanged();\n } else {\n nodeStatusListBuilder_.addAllMessages(values);\n }\n return this;\n }",
"public entities.Torrent.NodeReplicationStatusOrBuilder getNodeStatusListOrBuilder(\n int index) {\n if (nodeStatusListBuilder_ == null) {\n return nodeStatusList_.get(index); } else {\n return nodeStatusListBuilder_.getMessageOrBuilder(index);\n }\n }",
"public int getNodeStatusListCount() {\n if (nodeStatusListBuilder_ == null) {\n return nodeStatusList_.size();\n } else {\n return nodeStatusListBuilder_.getCount();\n }\n }",
"public final int[] cacheNodeStatus() {\n return new int[]{0,0,0,0,0,0,0,0,0,0};\r\n }",
"public java.util.List<entities.Torrent.NodeReplicationStatus.Builder>\n getNodeStatusListBuilderList() {\n return getNodeStatusListFieldBuilder().getBuilderList();\n }",
"public Builder setNodeStatusList(\n int index, entities.Torrent.NodeReplicationStatus value) {\n if (nodeStatusListBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureNodeStatusListIsMutable();\n nodeStatusList_.set(index, value);\n onChanged();\n } else {\n nodeStatusListBuilder_.setMessage(index, value);\n }\n return this;\n }",
"private NodeReplicationStatus(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"int getReplicationCount();",
"public Builder addNodeStatusList(\n int index, entities.Torrent.NodeReplicationStatus value) {\n if (nodeStatusListBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureNodeStatusListIsMutable();\n nodeStatusList_.add(index, value);\n onChanged();\n } else {\n nodeStatusListBuilder_.addMessage(index, value);\n }\n return this;\n }",
"public entities.Torrent.NodeReplicationStatus.Builder addNodeStatusListBuilder(\n int index) {\n return getNodeStatusListFieldBuilder().addBuilder(\n index, entities.Torrent.NodeReplicationStatus.getDefaultInstance());\n }",
"public int getNumNodesSeenByMessage() {\r\n return numNodesSeenByMessage;\r\n }",
"public abstract String getNodeStatusVariableName();",
"public Builder addNodeStatusList(\n entities.Torrent.NodeReplicationStatus.Builder builderForValue) {\n if (nodeStatusListBuilder_ == null) {\n ensureNodeStatusListIsMutable();\n nodeStatusList_.add(builderForValue.build());\n onChanged();\n } else {\n nodeStatusListBuilder_.addMessage(builderForValue.build());\n }\n return this;\n }",
"public entities.Torrent.NodeReplicationStatus.Builder getNodeStatusListBuilder(\n int index) {\n return getNodeStatusListFieldBuilder().getBuilder(index);\n }",
"java.util.List<io.netifi.proteus.admin.om.Node> \n getNodesList();",
"public void list() {\r\n\t\tfor (String key : nodeMap.keySet()) {\r\n\t\t\tNodeRef node = nodeMap.get(key);\r\n\t\t\tSystem.out.println(node.getIp() + \" : \" + node.getPort());\r\n\t\t}\t\t\r\n\t}",
"public static int countNodes() {\n\t\treturn count_nodes;\n\t}",
"default Promise<List<String>> findAllNodesWithStatus(HealthStatus queryStatus) {\n final Promise<List<String>> promise = Promises.promise();\n promise.resolve(Collections.emptyList());\n return promise;\n\n }",
"@Override\n\tpublic long numNodes() {\n\t\treturn numNodes;\n\t}",
"public java.util.List<entities.Torrent.NodeId> getNodesList() {\n if (nodesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(nodes_);\n } else {\n return nodesBuilder_.getMessageList();\n }\n }",
"public NodeInformation[] getNodes() throws CassandraServerManagementException {\r\n StorageServiceMBean ssMBean = null;\r\n try {\r\n ssMBean = CassandraAdminDataHolder\r\n .getInstance().getCassandraMBeanLocator().locateStorageServiceMBean();\r\n } catch (CassandraServerManagementException e) {\r\n handleException(\"Error occurred while retrieving node information list\", e);\r\n }\r\n\r\n if (ssMBean == null) {\r\n handleException(\"Storage Server MBean is null\");\r\n }\r\n\r\n Map<String, String> tokenToEndpoint = ssMBean.getTokenToEndpointMap();\r\n List<String> sortedTokens = new ArrayList<String>(tokenToEndpoint.keySet());\r\n Collections.sort(sortedTokens);\r\n\r\n /* Calculate per-token ownership of the ring */\r\n Map<InetAddress, Float> ownerships = ssMBean.getOwnership();\r\n\r\n List<NodeInformation> nodeInfoList = new ArrayList<NodeInformation>();\r\n for (String token : sortedTokens) {\r\n String primaryEndpoint = tokenToEndpoint.get(token);\r\n String status = ssMBean.getLiveNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_UP\r\n : ssMBean.getUnreachableNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_DOWN\r\n : CassandraManagementConstants.NodeStatuses.NODE_STATUS_UNKNOWN;\r\n\r\n String state = ssMBean.getJoiningNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_JOINING\r\n : ssMBean.getLeavingNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_LEAVING\r\n : CassandraManagementConstants.NodeStatuses.NODE_STATUS_NORMAL;\r\n\r\n Map<String, String> loadMap = ssMBean.getLoadMap();\r\n String load = loadMap.containsKey(primaryEndpoint)\r\n ? loadMap.get(primaryEndpoint)\r\n : CassandraManagementConstants.NodeStatuses.NODE_STATUS_UNKNOWN;\r\n\r\n Float ownership = ownerships.get(token);\r\n String owns = \"N/A\";\r\n if(ownership!=null){\r\n owns = new DecimalFormat(\"##0.00%\").format(ownership);\r\n }\r\n NodeInformation nodeInfo = new NodeInformation();\r\n nodeInfo.setAddress(primaryEndpoint);\r\n nodeInfo.setState(state);\r\n nodeInfo.setStatus(status);\r\n nodeInfo.setOwn(owns);\r\n nodeInfo.setLoad(load);\r\n nodeInfo.setToken(token);\r\n nodeInfoList.add(nodeInfo);\r\n }\r\n return nodeInfoList.toArray(new NodeInformation[nodeInfoList.size()]);\r\n }",
"public String replicationState() {\n return this.replicationState;\n }",
"@Override\n public boolean getCurrentNodeStatus(InetAddress ia) {\n if (ia.isAnyLocalAddress()) {\n return true;\n }\n // Check if given address is in cluster\n for (Client c : instance.getClientService().getConnectedClients()) {\n if (c.getSocketAddress().getAddress().equals(ia)) {\n return true;\n }\n }\n // reject all other addresses\n return false;\n }",
"int numNodes() {\n\t\treturn num_nodes;\n\t}",
"private int numNodes()\r\n\t{\r\n\t return nodeMap.size();\r\n\t}",
"public int lockedNodeCount() {\n\treturn lockedNodes;\n }",
"@Override\n\tpublic Collection<TaskStatus> getTaskStatus(){\n \tcheckInitialized();\n \t\n \t@SuppressWarnings(\"unchecked\")\n\t\tCollection<Collection<TaskStatus>> statusTree=Collections.EMPTY_LIST;\n \tfinal MultiTask<Collection<TaskStatus>> mtask;\n \ttry {\n\t\t\t mtask = breeder.executeCallable(new GetTaskStatus(this));\n\t\t\t statusTree = mtask.get();\n \t} catch (ExecutionException ex){\n \t\tlog.fatal(\"Could not get status of tasks for job \"+this.getId(), ex);\n \t} catch(InterruptedException ex) {\n \t\tlog.fatal(\"Could not get status of tasks for job \"+this.getId(), ex);\n \t}\n\t\t\t\n\t\t// Flatten into single collection\n\t\tList<TaskStatus> result = new ArrayList<TaskStatus>((int)(statusTree.size()*this.getThreadCount()));\n\t\tfor(Collection<TaskStatus> statusForNode: statusTree) {\n\t\t\tresult.addAll(statusForNode);\n\t\t}\n\t\t\n\t\treturn result;\n \n\t}",
"int getNodeCount() {\n\t\treturn m_list_nodes.size();\n\t}",
"int getNodesCount();",
"int getNodesCount();",
"public java.util.List<java.lang.Integer>\n getStatusList() {\n return status_;\n }",
"public static int getNumberOfNodes() {\n return(numberOfNodes);\n\t }",
"@java.lang.Override\n public int getNodesCount() {\n return nodes_.size();\n }",
"private NodeRestartRequest() {\n\t\t}",
"java.util.List<entities.Torrent.NodeId>\n getNodesList();",
"List<CommunicationLink> getAllNodes()\n {\n return new ArrayList<>(allNodes.values());\n }",
"public ODocument clusterStatus() {\n checkConnected();\n return remote.getClusterStatus(user, password);\n }",
"public StatusChecker(Node node){\n this.node=node;\n start();\n }",
"public Builder clearNodeStatusList() {\n if (nodeStatusListBuilder_ == null) {\n nodeStatusList_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n nodeStatusListBuilder_.clear();\n }\n return this;\n }",
"@java.lang.Override\n public java.util.List<entities.Torrent.NodeId> getNodesList() {\n return nodes_;\n }",
"public int getNumberOfNodesEvaluated();",
"java.util.List<java.lang.Integer> getStatusList();",
"private List<Node> getNodes() {\n List<Node> nodes = new ArrayList<Node>();\n NodeApi.GetConnectedNodesResult rawNodes =\n Wearable.NodeApi.getConnectedNodes(mGoogleApiClient).await();\n for (Node node : rawNodes.getNodes()) {\n nodes.add(node);\n }\n return nodes;\n }",
"public int numNodes() {\n\t\treturn numNodes;\n\t}",
"void updateRmiClientsCount() {\n int noOfClientsConnected = 0;\n\n String[] connectionIds = rmiConnector.getConnectionIds();\n\n if (connectionIds != null) {\n noOfClientsConnected = connectionIds.length;\n }\n\n logger.info(\"No. of RMI clients connected :: {}\", noOfClientsConnected);\n\n AdminDistributedSystemJmxImpl adminDSJmx = (AdminDistributedSystemJmxImpl) system;\n\n adminDSJmx.setRmiClientCountZero(noOfClientsConnected == 0);\n }",
"public int getReplicationDegree() {\n return replicationDegree;\n }",
"public int getReplicationDegree() {\n return replicationDegree;\n }",
"public List<NetworkNode> listNetworkNode();",
"private void updateGeoRepStatus(GlusterVolumeEntity volume, GlusterGeoRepSession session) {\n\n List<HashSet<GeoRepSessionStatus>> list = new ArrayList<>();\n // grouped node status\n int replicaCount = volume.getReplicaCount() == 0 ? 1 : volume.getReplicaCount();\n for (int i = 0; i < volume.getBricks().size(); i = i + replicaCount) {\n HashSet<GeoRepSessionStatus> subVolumeStatusSet = new HashSet<>();\n int j = 0;\n while (j < replicaCount) {\n Guid brickId = volume.getBricks().get(i + j).getId();\n subVolumeStatusSet.add(getStatusForBrickFromSession(session, brickId));\n j++;\n }\n list.add(subVolumeStatusSet);\n }\n\n session.setStatus(GeoRepSessionStatus.ACTIVE);\n // iterate through grouped status to set consolidated status\n for (HashSet<GeoRepSessionStatus> subVolumeStatusValues : list) {\n if (subVolumeStatusValues.contains(GeoRepSessionStatus.ACTIVE)) {\n // healthy\n continue;\n } else if (subVolumeStatusValues.contains(GeoRepSessionStatus.FAULTY)) {\n session.setStatus(GeoRepSessionStatus.FAULTY);\n // if any one of the sub-volume is faulty, the overall session status if faulty\n return;\n }\n // override status in case of these values\n if (ArrayUtils.contains(overridableStatuses, session.getStatus())) {\n if (subVolumeStatusValues.size() == 1) {\n session.setStatus((GeoRepSessionStatus) subVolumeStatusValues.toArray()[0]);\n } else {\n // if status values in sub-volume are not the same, what do we do?\n // this should not happen, so we'll log it for now\n log.info(\"Multiple status values found in volume '{}'\", session.getMasterVolumeName());\n }\n }\n }\n\n }",
"@SuppressWarnings(\"unused\")\n private ReplicationStatusResponse() {\n this(false);\n }",
"int getNrNodes() {\n\t\treturn adjList.size();\n\t}",
"int getNodeCount();",
"int getNodeCount();",
"public int getConnectionStatus()\r\n { return connectionStatus; }",
"public int getNodeCount() {\n return nodeCount;\n }",
"public int getNetworkNodesNumber() {\n\t\t\n\t\t//Return nodes size\n\t\treturn nodes.size();\n\t\t\n\t}",
"void nodeOnline();",
"public static String getClusterStatusNodePath() {\n return String.join(\"/\", \"\", ROOT_NODE, COMPUTE_NODE, STATUS_NODE);\n }",
"@Override\n protected int minimumNumberOfReplicas() {\n return 1;\n }",
"@Override\n public void statusUpdate(final String asgName, final ASGStatus newStatus, final boolean isReplication) {\n if (isReplication) {\n return;\n }\n for (final PeerEurekaNode node : peerEurekaNodes.getPeerEurekaNodes()) {\n replicateASGInfoToReplicaNodes(asgName, newStatus, node);\n\n }\n }",
"@PostMapping(\"/queryGroupStatus/list\")\n @PreAuthorize(ConstantProperties.HAS_ROLE_ADMIN)\n public BaseResponse getGroupStatusList(@Valid @RequestBody ReqGroupStatus reqGroupStatus) throws NodeMgrException {\n Instant startTime = Instant.now();\n BaseResponse baseResponse = new BaseResponse(ConstantCode.SUCCESS);\n log.info(\"start getGroupStatusMap startTime:{}\", startTime.toEpochMilli());\n List<String> nodeIdList = reqGroupStatus.getNodeIdList();\n List<RspGroupStatus> resList = groupService.listGroupStatus(nodeIdList,\n reqGroupStatus.getGroupIdList());\n baseResponse.setData(resList);\n log.info(\"end getGroupStatusMap useTime:{} result:{}\",\n Duration.between(startTime, Instant.now()).toMillis(),\n JsonTools.toJSONString(baseResponse));\n return baseResponse;\n }",
"public String getNumberOfNodesEvaluated(){return Integer.toString(NumberOfVisitedNodes);}",
"private void getNodesCount(HttpServletRequest request, HttpServletResponse response) throws IOException {\n int countNodes = SimApi.getNodesCount();\n response.getWriter().write(Integer.toString(countNodes));\n }",
"java.util.List<? extends io.netifi.proteus.admin.om.NodeOrBuilder> \n getNodesOrBuilderList();",
"@Test(timeout = 10000L)\n public void testNodesInformation() throws Exception {\n CommonDriverAdminTests.testNodesInformation(client, nbNodes);\n }",
"public int getNumNodes() {\n\t\treturn nodes.size();\n\t}",
"@RequestLine(\"GET /status\")\n Status getNeustarNetworkStatus();",
"public void printStatus(){\n System.out.println(\"Nodes: \" + \n getVertexCount() + \" Edges: \" + \n getEdgeCount()); \n //and \" + getEdgeCount() + \" edges active.\");\n }",
"public abstract Collection<Node> getAllSuccessors();",
"public int getStatusCount() {\n return status_.size();\n }",
"public List<Long> getSessionNodes() {\n List<Long> ret = new ArrayList<>();\n\n for (int i = 0; i < sessionsList.size(); i++) {\n ret.add(sessionsList.get(i).dhtNodes());\n }\n\n return ret;\n }",
"@Override\n public ClusterStatus getCurrentClusterStatus() {\n if (getMemberList().size() > 1) {\n return CLUSTER_FUNCTIONAL;\n }\n // when only one node is connected return degraded\n if (getMemberList().size() == 1) {\n return CLUSTER_DEGRADED;\n }\n // consider all other states as illegal\n return CLUSTER_ILLEGAL;\n }",
"public int getNodeCount() {\n return node_.size();\n }",
"private void refreshNodeList() {\n if (UnderNet.router.status.equals(InterfaceStatus.STARTED)) {\n //Using connected and cached nodes if the router has started.\n ArrayList<Node> nodesToList = UnderNet.router.getConnectedNodes();\n for (Node cachedNode :\n EntryNodeCache.cachedNodes) {\n boolean canAdd = true;\n for (Node connectedNode : UnderNet.router.getConnectedNodes()) {\n if (cachedNode.getAddress().equals(connectedNode.getAddress())) {\n canAdd = false;\n }\n }\n if (canAdd) {\n nodesToList.add(cachedNode);\n }\n }\n nodeList.setListData(nodesToList.toArray());\n } else {\n //Using cached nodes if the router isn't online.\n nodeList.setListData(EntryNodeCache.cachedNodes.toArray());\n }\n }",
"int getStatusCount();",
"List<StatusListener> mo9950b();",
"public List<Output<TInt32>> nodeIdsList() {\n return nodeIdsList;\n }",
"public Builder setNodeStatusList(\n int index, entities.Torrent.NodeReplicationStatus.Builder builderForValue) {\n if (nodeStatusListBuilder_ == null) {\n ensureNodeStatusListIsMutable();\n nodeStatusList_.set(index, builderForValue.build());\n onChanged();\n } else {\n nodeStatusListBuilder_.setMessage(index, builderForValue.build());\n }\n return this;\n }",
"@Override\r\n\tpublic int getNumberOfNodes() {\n\t\treturn 0;\r\n\t}",
"public java.util.List<? extends entities.Torrent.NodeIdOrBuilder>\n getNodesOrBuilderList() {\n if (nodesBuilder_ != null) {\n return nodesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(nodes_);\n }\n }",
"@Override\n public void onNewClusterState(ClusterState state) {\n transportService.sendRequest(\n clusterService.localNode(),\n transportReplicaAction,\n replicaRequest,\n new ActionListenerResponseHandler<>(onCompletionListener, ReplicaResponse::new)\n );\n }",
"public java.util.List<java.lang.Integer>\n getStatusList() {\n return java.util.Collections.unmodifiableList(status_);\n }",
"void refreshNodeHostCount(int nodeHostCount);",
"protected int numNodes() {\n\t\treturn nodes.size();\n\t}",
"public static void getStatus() {\n\t\ttry {\n\t\t\tint i = 1;\n\t\t\tList<Object[]>serverDetails = ServerStatus.getServerDetails();\n\t\t\tfor (Object[] servers:serverDetails){\n\t\t\t\tServerStatus.verifyServerStatus(i,(String)servers[0], (String)servers[1], (String)servers[2]);\n\t\t\t\ti++;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tcatch (Exception ex){\n\t\t\tex.printStackTrace();\n\t\t}\n\t}",
"public Vector<Node> getNodes(){\n\t\treturn this.listOfNodes;\n\t}"
] |
[
"0.76754725",
"0.7330513",
"0.7273623",
"0.7185904",
"0.71540165",
"0.711505",
"0.71102214",
"0.7056519",
"0.7022613",
"0.6881543",
"0.68746865",
"0.68614775",
"0.6730206",
"0.66633195",
"0.6638524",
"0.6558738",
"0.6554595",
"0.6390956",
"0.6324348",
"0.6301884",
"0.62128437",
"0.6153897",
"0.6058742",
"0.60192406",
"0.596705",
"0.57494354",
"0.5748884",
"0.5723979",
"0.5719001",
"0.570223",
"0.5561525",
"0.5554988",
"0.5542978",
"0.5536758",
"0.5529717",
"0.5515723",
"0.5507869",
"0.5477924",
"0.545919",
"0.5453382",
"0.5440473",
"0.5432976",
"0.5413977",
"0.54059",
"0.54059",
"0.53920895",
"0.53919417",
"0.538495",
"0.53726",
"0.5371442",
"0.53705126",
"0.53690714",
"0.53564674",
"0.53378046",
"0.5328064",
"0.5315124",
"0.5306361",
"0.5305867",
"0.5297228",
"0.52948767",
"0.5292507",
"0.5292507",
"0.5286415",
"0.5276344",
"0.52740955",
"0.5273183",
"0.527266",
"0.527266",
"0.5272264",
"0.52635926",
"0.526193",
"0.52519333",
"0.52507585",
"0.5248499",
"0.52444947",
"0.52385783",
"0.5235392",
"0.52331",
"0.5231807",
"0.52273303",
"0.5224498",
"0.5218425",
"0.52174264",
"0.52173257",
"0.520692",
"0.5199218",
"0.5191387",
"0.51871306",
"0.5186112",
"0.5181667",
"0.5179533",
"0.51790094",
"0.51782185",
"0.51557237",
"0.5153083",
"0.5153054",
"0.5149576",
"0.51491016",
"0.5141703",
"0.51399857",
"0.51249874"
] |
0.0
|
-1
|
The status of all the requests to other nodes repeated .NodeReplicationStatus nodeStatusList = 3;
|
public Builder addAllNodeStatusList(
java.lang.Iterable<? extends entities.Torrent.NodeReplicationStatus> values) {
if (nodeStatusListBuilder_ == null) {
ensureNodeStatusListIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, nodeStatusList_);
onChanged();
} else {
nodeStatusListBuilder_.addAllMessages(values);
}
return this;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"entities.Torrent.NodeReplicationStatus getNodeStatusList(int index);",
"@java.lang.Override\n public java.util.List<entities.Torrent.NodeReplicationStatus> getNodeStatusListList() {\n return nodeStatusList_;\n }",
"java.util.List<entities.Torrent.NodeReplicationStatus>\n getNodeStatusListList();",
"public java.util.List<entities.Torrent.NodeReplicationStatus> getNodeStatusListList() {\n if (nodeStatusListBuilder_ == null) {\n return java.util.Collections.unmodifiableList(nodeStatusList_);\n } else {\n return nodeStatusListBuilder_.getMessageList();\n }\n }",
"@java.lang.Override\n public java.util.List<? extends entities.Torrent.NodeReplicationStatusOrBuilder>\n getNodeStatusListOrBuilderList() {\n return nodeStatusList_;\n }",
"public java.util.List<? extends entities.Torrent.NodeReplicationStatusOrBuilder>\n getNodeStatusListOrBuilderList() {\n if (nodeStatusListBuilder_ != null) {\n return nodeStatusListBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(nodeStatusList_);\n }\n }",
"@java.lang.Override\n public int getNodeStatusListCount() {\n return nodeStatusList_.size();\n }",
"java.util.List<? extends entities.Torrent.NodeReplicationStatusOrBuilder>\n getNodeStatusListOrBuilderList();",
"public entities.Torrent.NodeReplicationStatus.Builder addNodeStatusListBuilder() {\n return getNodeStatusListFieldBuilder().addBuilder(\n entities.Torrent.NodeReplicationStatus.getDefaultInstance());\n }",
"int getNodeStatusListCount();",
"@java.lang.Override\n public entities.Torrent.NodeReplicationStatus getNodeStatusList(int index) {\n return nodeStatusList_.get(index);\n }",
"entities.Torrent.NodeReplicationStatusOrBuilder getNodeStatusListOrBuilder(\n int index);",
"@java.lang.Override\n public entities.Torrent.NodeReplicationStatusOrBuilder getNodeStatusListOrBuilder(\n int index) {\n return nodeStatusList_.get(index);\n }",
"public entities.Torrent.NodeReplicationStatus getNodeStatusList(int index) {\n if (nodeStatusListBuilder_ == null) {\n return nodeStatusList_.get(index);\n } else {\n return nodeStatusListBuilder_.getMessage(index);\n }\n }",
"public Builder addNodeStatusList(entities.Torrent.NodeReplicationStatus value) {\n if (nodeStatusListBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureNodeStatusListIsMutable();\n nodeStatusList_.add(value);\n onChanged();\n } else {\n nodeStatusListBuilder_.addMessage(value);\n }\n return this;\n }",
"public entities.Torrent.NodeReplicationStatusOrBuilder getNodeStatusListOrBuilder(\n int index) {\n if (nodeStatusListBuilder_ == null) {\n return nodeStatusList_.get(index); } else {\n return nodeStatusListBuilder_.getMessageOrBuilder(index);\n }\n }",
"public int getNodeStatusListCount() {\n if (nodeStatusListBuilder_ == null) {\n return nodeStatusList_.size();\n } else {\n return nodeStatusListBuilder_.getCount();\n }\n }",
"public final int[] cacheNodeStatus() {\n return new int[]{0,0,0,0,0,0,0,0,0,0};\r\n }",
"public java.util.List<entities.Torrent.NodeReplicationStatus.Builder>\n getNodeStatusListBuilderList() {\n return getNodeStatusListFieldBuilder().getBuilderList();\n }",
"public Builder setNodeStatusList(\n int index, entities.Torrent.NodeReplicationStatus value) {\n if (nodeStatusListBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureNodeStatusListIsMutable();\n nodeStatusList_.set(index, value);\n onChanged();\n } else {\n nodeStatusListBuilder_.setMessage(index, value);\n }\n return this;\n }",
"private NodeReplicationStatus(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"int getReplicationCount();",
"public Builder addNodeStatusList(\n int index, entities.Torrent.NodeReplicationStatus value) {\n if (nodeStatusListBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureNodeStatusListIsMutable();\n nodeStatusList_.add(index, value);\n onChanged();\n } else {\n nodeStatusListBuilder_.addMessage(index, value);\n }\n return this;\n }",
"public entities.Torrent.NodeReplicationStatus.Builder addNodeStatusListBuilder(\n int index) {\n return getNodeStatusListFieldBuilder().addBuilder(\n index, entities.Torrent.NodeReplicationStatus.getDefaultInstance());\n }",
"public int getNumNodesSeenByMessage() {\r\n return numNodesSeenByMessage;\r\n }",
"public abstract String getNodeStatusVariableName();",
"public Builder addNodeStatusList(\n entities.Torrent.NodeReplicationStatus.Builder builderForValue) {\n if (nodeStatusListBuilder_ == null) {\n ensureNodeStatusListIsMutable();\n nodeStatusList_.add(builderForValue.build());\n onChanged();\n } else {\n nodeStatusListBuilder_.addMessage(builderForValue.build());\n }\n return this;\n }",
"public entities.Torrent.NodeReplicationStatus.Builder getNodeStatusListBuilder(\n int index) {\n return getNodeStatusListFieldBuilder().getBuilder(index);\n }",
"java.util.List<io.netifi.proteus.admin.om.Node> \n getNodesList();",
"public void list() {\r\n\t\tfor (String key : nodeMap.keySet()) {\r\n\t\t\tNodeRef node = nodeMap.get(key);\r\n\t\t\tSystem.out.println(node.getIp() + \" : \" + node.getPort());\r\n\t\t}\t\t\r\n\t}",
"public static int countNodes() {\n\t\treturn count_nodes;\n\t}",
"default Promise<List<String>> findAllNodesWithStatus(HealthStatus queryStatus) {\n final Promise<List<String>> promise = Promises.promise();\n promise.resolve(Collections.emptyList());\n return promise;\n\n }",
"@Override\n\tpublic long numNodes() {\n\t\treturn numNodes;\n\t}",
"public java.util.List<entities.Torrent.NodeId> getNodesList() {\n if (nodesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(nodes_);\n } else {\n return nodesBuilder_.getMessageList();\n }\n }",
"public NodeInformation[] getNodes() throws CassandraServerManagementException {\r\n StorageServiceMBean ssMBean = null;\r\n try {\r\n ssMBean = CassandraAdminDataHolder\r\n .getInstance().getCassandraMBeanLocator().locateStorageServiceMBean();\r\n } catch (CassandraServerManagementException e) {\r\n handleException(\"Error occurred while retrieving node information list\", e);\r\n }\r\n\r\n if (ssMBean == null) {\r\n handleException(\"Storage Server MBean is null\");\r\n }\r\n\r\n Map<String, String> tokenToEndpoint = ssMBean.getTokenToEndpointMap();\r\n List<String> sortedTokens = new ArrayList<String>(tokenToEndpoint.keySet());\r\n Collections.sort(sortedTokens);\r\n\r\n /* Calculate per-token ownership of the ring */\r\n Map<InetAddress, Float> ownerships = ssMBean.getOwnership();\r\n\r\n List<NodeInformation> nodeInfoList = new ArrayList<NodeInformation>();\r\n for (String token : sortedTokens) {\r\n String primaryEndpoint = tokenToEndpoint.get(token);\r\n String status = ssMBean.getLiveNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_UP\r\n : ssMBean.getUnreachableNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_DOWN\r\n : CassandraManagementConstants.NodeStatuses.NODE_STATUS_UNKNOWN;\r\n\r\n String state = ssMBean.getJoiningNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_JOINING\r\n : ssMBean.getLeavingNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_LEAVING\r\n : CassandraManagementConstants.NodeStatuses.NODE_STATUS_NORMAL;\r\n\r\n Map<String, String> loadMap = ssMBean.getLoadMap();\r\n String load = loadMap.containsKey(primaryEndpoint)\r\n ? loadMap.get(primaryEndpoint)\r\n : CassandraManagementConstants.NodeStatuses.NODE_STATUS_UNKNOWN;\r\n\r\n Float ownership = ownerships.get(token);\r\n String owns = \"N/A\";\r\n if(ownership!=null){\r\n owns = new DecimalFormat(\"##0.00%\").format(ownership);\r\n }\r\n NodeInformation nodeInfo = new NodeInformation();\r\n nodeInfo.setAddress(primaryEndpoint);\r\n nodeInfo.setState(state);\r\n nodeInfo.setStatus(status);\r\n nodeInfo.setOwn(owns);\r\n nodeInfo.setLoad(load);\r\n nodeInfo.setToken(token);\r\n nodeInfoList.add(nodeInfo);\r\n }\r\n return nodeInfoList.toArray(new NodeInformation[nodeInfoList.size()]);\r\n }",
"public String replicationState() {\n return this.replicationState;\n }",
"@Override\n public boolean getCurrentNodeStatus(InetAddress ia) {\n if (ia.isAnyLocalAddress()) {\n return true;\n }\n // Check if given address is in cluster\n for (Client c : instance.getClientService().getConnectedClients()) {\n if (c.getSocketAddress().getAddress().equals(ia)) {\n return true;\n }\n }\n // reject all other addresses\n return false;\n }",
"int numNodes() {\n\t\treturn num_nodes;\n\t}",
"private int numNodes()\r\n\t{\r\n\t return nodeMap.size();\r\n\t}",
"public int lockedNodeCount() {\n\treturn lockedNodes;\n }",
"@Override\n\tpublic Collection<TaskStatus> getTaskStatus(){\n \tcheckInitialized();\n \t\n \t@SuppressWarnings(\"unchecked\")\n\t\tCollection<Collection<TaskStatus>> statusTree=Collections.EMPTY_LIST;\n \tfinal MultiTask<Collection<TaskStatus>> mtask;\n \ttry {\n\t\t\t mtask = breeder.executeCallable(new GetTaskStatus(this));\n\t\t\t statusTree = mtask.get();\n \t} catch (ExecutionException ex){\n \t\tlog.fatal(\"Could not get status of tasks for job \"+this.getId(), ex);\n \t} catch(InterruptedException ex) {\n \t\tlog.fatal(\"Could not get status of tasks for job \"+this.getId(), ex);\n \t}\n\t\t\t\n\t\t// Flatten into single collection\n\t\tList<TaskStatus> result = new ArrayList<TaskStatus>((int)(statusTree.size()*this.getThreadCount()));\n\t\tfor(Collection<TaskStatus> statusForNode: statusTree) {\n\t\t\tresult.addAll(statusForNode);\n\t\t}\n\t\t\n\t\treturn result;\n \n\t}",
"int getNodeCount() {\n\t\treturn m_list_nodes.size();\n\t}",
"int getNodesCount();",
"int getNodesCount();",
"public java.util.List<java.lang.Integer>\n getStatusList() {\n return status_;\n }",
"public static int getNumberOfNodes() {\n return(numberOfNodes);\n\t }",
"@java.lang.Override\n public int getNodesCount() {\n return nodes_.size();\n }",
"java.util.List<entities.Torrent.NodeId>\n getNodesList();",
"List<CommunicationLink> getAllNodes()\n {\n return new ArrayList<>(allNodes.values());\n }",
"private NodeRestartRequest() {\n\t\t}",
"public ODocument clusterStatus() {\n checkConnected();\n return remote.getClusterStatus(user, password);\n }",
"public StatusChecker(Node node){\n this.node=node;\n start();\n }",
"public Builder clearNodeStatusList() {\n if (nodeStatusListBuilder_ == null) {\n nodeStatusList_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n nodeStatusListBuilder_.clear();\n }\n return this;\n }",
"@java.lang.Override\n public java.util.List<entities.Torrent.NodeId> getNodesList() {\n return nodes_;\n }",
"public int getNumberOfNodesEvaluated();",
"private List<Node> getNodes() {\n List<Node> nodes = new ArrayList<Node>();\n NodeApi.GetConnectedNodesResult rawNodes =\n Wearable.NodeApi.getConnectedNodes(mGoogleApiClient).await();\n for (Node node : rawNodes.getNodes()) {\n nodes.add(node);\n }\n return nodes;\n }",
"java.util.List<java.lang.Integer> getStatusList();",
"public int numNodes() {\n\t\treturn numNodes;\n\t}",
"void updateRmiClientsCount() {\n int noOfClientsConnected = 0;\n\n String[] connectionIds = rmiConnector.getConnectionIds();\n\n if (connectionIds != null) {\n noOfClientsConnected = connectionIds.length;\n }\n\n logger.info(\"No. of RMI clients connected :: {}\", noOfClientsConnected);\n\n AdminDistributedSystemJmxImpl adminDSJmx = (AdminDistributedSystemJmxImpl) system;\n\n adminDSJmx.setRmiClientCountZero(noOfClientsConnected == 0);\n }",
"public int getReplicationDegree() {\n return replicationDegree;\n }",
"public int getReplicationDegree() {\n return replicationDegree;\n }",
"public List<NetworkNode> listNetworkNode();",
"private void updateGeoRepStatus(GlusterVolumeEntity volume, GlusterGeoRepSession session) {\n\n List<HashSet<GeoRepSessionStatus>> list = new ArrayList<>();\n // grouped node status\n int replicaCount = volume.getReplicaCount() == 0 ? 1 : volume.getReplicaCount();\n for (int i = 0; i < volume.getBricks().size(); i = i + replicaCount) {\n HashSet<GeoRepSessionStatus> subVolumeStatusSet = new HashSet<>();\n int j = 0;\n while (j < replicaCount) {\n Guid brickId = volume.getBricks().get(i + j).getId();\n subVolumeStatusSet.add(getStatusForBrickFromSession(session, brickId));\n j++;\n }\n list.add(subVolumeStatusSet);\n }\n\n session.setStatus(GeoRepSessionStatus.ACTIVE);\n // iterate through grouped status to set consolidated status\n for (HashSet<GeoRepSessionStatus> subVolumeStatusValues : list) {\n if (subVolumeStatusValues.contains(GeoRepSessionStatus.ACTIVE)) {\n // healthy\n continue;\n } else if (subVolumeStatusValues.contains(GeoRepSessionStatus.FAULTY)) {\n session.setStatus(GeoRepSessionStatus.FAULTY);\n // if any one of the sub-volume is faulty, the overall session status if faulty\n return;\n }\n // override status in case of these values\n if (ArrayUtils.contains(overridableStatuses, session.getStatus())) {\n if (subVolumeStatusValues.size() == 1) {\n session.setStatus((GeoRepSessionStatus) subVolumeStatusValues.toArray()[0]);\n } else {\n // if status values in sub-volume are not the same, what do we do?\n // this should not happen, so we'll log it for now\n log.info(\"Multiple status values found in volume '{}'\", session.getMasterVolumeName());\n }\n }\n }\n\n }",
"@SuppressWarnings(\"unused\")\n private ReplicationStatusResponse() {\n this(false);\n }",
"int getNrNodes() {\n\t\treturn adjList.size();\n\t}",
"public int getConnectionStatus()\r\n { return connectionStatus; }",
"int getNodeCount();",
"int getNodeCount();",
"public int getNodeCount() {\n return nodeCount;\n }",
"public int getNetworkNodesNumber() {\n\t\t\n\t\t//Return nodes size\n\t\treturn nodes.size();\n\t\t\n\t}",
"void nodeOnline();",
"public static String getClusterStatusNodePath() {\n return String.join(\"/\", \"\", ROOT_NODE, COMPUTE_NODE, STATUS_NODE);\n }",
"@Override\n protected int minimumNumberOfReplicas() {\n return 1;\n }",
"@Override\n public void statusUpdate(final String asgName, final ASGStatus newStatus, final boolean isReplication) {\n if (isReplication) {\n return;\n }\n for (final PeerEurekaNode node : peerEurekaNodes.getPeerEurekaNodes()) {\n replicateASGInfoToReplicaNodes(asgName, newStatus, node);\n\n }\n }",
"@PostMapping(\"/queryGroupStatus/list\")\n @PreAuthorize(ConstantProperties.HAS_ROLE_ADMIN)\n public BaseResponse getGroupStatusList(@Valid @RequestBody ReqGroupStatus reqGroupStatus) throws NodeMgrException {\n Instant startTime = Instant.now();\n BaseResponse baseResponse = new BaseResponse(ConstantCode.SUCCESS);\n log.info(\"start getGroupStatusMap startTime:{}\", startTime.toEpochMilli());\n List<String> nodeIdList = reqGroupStatus.getNodeIdList();\n List<RspGroupStatus> resList = groupService.listGroupStatus(nodeIdList,\n reqGroupStatus.getGroupIdList());\n baseResponse.setData(resList);\n log.info(\"end getGroupStatusMap useTime:{} result:{}\",\n Duration.between(startTime, Instant.now()).toMillis(),\n JsonTools.toJSONString(baseResponse));\n return baseResponse;\n }",
"java.util.List<? extends io.netifi.proteus.admin.om.NodeOrBuilder> \n getNodesOrBuilderList();",
"public String getNumberOfNodesEvaluated(){return Integer.toString(NumberOfVisitedNodes);}",
"private void getNodesCount(HttpServletRequest request, HttpServletResponse response) throws IOException {\n int countNodes = SimApi.getNodesCount();\n response.getWriter().write(Integer.toString(countNodes));\n }",
"@Test(timeout = 10000L)\n public void testNodesInformation() throws Exception {\n CommonDriverAdminTests.testNodesInformation(client, nbNodes);\n }",
"public int getNumNodes() {\n\t\treturn nodes.size();\n\t}",
"public abstract Collection<Node> getAllSuccessors();",
"@RequestLine(\"GET /status\")\n Status getNeustarNetworkStatus();",
"public void printStatus(){\n System.out.println(\"Nodes: \" + \n getVertexCount() + \" Edges: \" + \n getEdgeCount()); \n //and \" + getEdgeCount() + \" edges active.\");\n }",
"public int getStatusCount() {\n return status_.size();\n }",
"public List<Long> getSessionNodes() {\n List<Long> ret = new ArrayList<>();\n\n for (int i = 0; i < sessionsList.size(); i++) {\n ret.add(sessionsList.get(i).dhtNodes());\n }\n\n return ret;\n }",
"@Override\n public ClusterStatus getCurrentClusterStatus() {\n if (getMemberList().size() > 1) {\n return CLUSTER_FUNCTIONAL;\n }\n // when only one node is connected return degraded\n if (getMemberList().size() == 1) {\n return CLUSTER_DEGRADED;\n }\n // consider all other states as illegal\n return CLUSTER_ILLEGAL;\n }",
"private void refreshNodeList() {\n if (UnderNet.router.status.equals(InterfaceStatus.STARTED)) {\n //Using connected and cached nodes if the router has started.\n ArrayList<Node> nodesToList = UnderNet.router.getConnectedNodes();\n for (Node cachedNode :\n EntryNodeCache.cachedNodes) {\n boolean canAdd = true;\n for (Node connectedNode : UnderNet.router.getConnectedNodes()) {\n if (cachedNode.getAddress().equals(connectedNode.getAddress())) {\n canAdd = false;\n }\n }\n if (canAdd) {\n nodesToList.add(cachedNode);\n }\n }\n nodeList.setListData(nodesToList.toArray());\n } else {\n //Using cached nodes if the router isn't online.\n nodeList.setListData(EntryNodeCache.cachedNodes.toArray());\n }\n }",
"public int getNodeCount() {\n return node_.size();\n }",
"public Builder setNodeStatusList(\n int index, entities.Torrent.NodeReplicationStatus.Builder builderForValue) {\n if (nodeStatusListBuilder_ == null) {\n ensureNodeStatusListIsMutable();\n nodeStatusList_.set(index, builderForValue.build());\n onChanged();\n } else {\n nodeStatusListBuilder_.setMessage(index, builderForValue.build());\n }\n return this;\n }",
"public List<Output<TInt32>> nodeIdsList() {\n return nodeIdsList;\n }",
"List<StatusListener> mo9950b();",
"int getStatusCount();",
"@Override\n public void onNewClusterState(ClusterState state) {\n transportService.sendRequest(\n clusterService.localNode(),\n transportReplicaAction,\n replicaRequest,\n new ActionListenerResponseHandler<>(onCompletionListener, ReplicaResponse::new)\n );\n }",
"public java.util.List<? extends entities.Torrent.NodeIdOrBuilder>\n getNodesOrBuilderList() {\n if (nodesBuilder_ != null) {\n return nodesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(nodes_);\n }\n }",
"@Override\r\n\tpublic int getNumberOfNodes() {\n\t\treturn 0;\r\n\t}",
"public java.util.List<java.lang.Integer>\n getStatusList() {\n return java.util.Collections.unmodifiableList(status_);\n }",
"void refreshNodeHostCount(int nodeHostCount);",
"protected int numNodes() {\n\t\treturn nodes.size();\n\t}",
"public static void getStatus() {\n\t\ttry {\n\t\t\tint i = 1;\n\t\t\tList<Object[]>serverDetails = ServerStatus.getServerDetails();\n\t\t\tfor (Object[] servers:serverDetails){\n\t\t\t\tServerStatus.verifyServerStatus(i,(String)servers[0], (String)servers[1], (String)servers[2]);\n\t\t\t\ti++;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tcatch (Exception ex){\n\t\t\tex.printStackTrace();\n\t\t}\n\t}",
"public Vector<Node> getNodes(){\n\t\treturn this.listOfNodes;\n\t}"
] |
[
"0.7677447",
"0.73326534",
"0.72751945",
"0.7187517",
"0.7156577",
"0.71170497",
"0.71088874",
"0.70586026",
"0.70244354",
"0.68789655",
"0.68768275",
"0.6863607",
"0.6732412",
"0.6665126",
"0.6640762",
"0.6556245",
"0.63892424",
"0.63225454",
"0.6302617",
"0.62158686",
"0.6154571",
"0.6059235",
"0.6021623",
"0.5969211",
"0.5746757",
"0.5746533",
"0.5725065",
"0.5719905",
"0.5702983",
"0.5561155",
"0.55533105",
"0.5541831",
"0.5535313",
"0.55308056",
"0.55150694",
"0.5509859",
"0.54764414",
"0.54578775",
"0.5451353",
"0.5438688",
"0.54318774",
"0.54126287",
"0.54034257",
"0.54034257",
"0.5391672",
"0.5390411",
"0.53832936",
"0.53727967",
"0.5370394",
"0.53702694",
"0.53679216",
"0.5354863",
"0.5338436",
"0.53293514",
"0.53118134",
"0.530631",
"0.5305603",
"0.5295997",
"0.5294718",
"0.5293353",
"0.5293353",
"0.5286944",
"0.5276236",
"0.5274766",
"0.5272741",
"0.52713966",
"0.52693284",
"0.52693284",
"0.5261072",
"0.526089",
"0.5252027",
"0.52506906",
"0.52486336",
"0.5245913",
"0.5236892",
"0.5232337",
"0.5231927",
"0.5229986",
"0.5226807",
"0.52229863",
"0.5216052",
"0.5215427",
"0.5215198",
"0.5204292",
"0.5199826",
"0.519047",
"0.51865757",
"0.51846725",
"0.5180031",
"0.5179613",
"0.5179007",
"0.51780134",
"0.515467",
"0.51541543",
"0.5154118",
"0.5149366",
"0.514844",
"0.51400506",
"0.51396614",
"0.512528"
] |
0.65603524
|
15
|
The status of all the requests to other nodes repeated .NodeReplicationStatus nodeStatusList = 3;
|
public Builder clearNodeStatusList() {
if (nodeStatusListBuilder_ == null) {
nodeStatusList_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
nodeStatusListBuilder_.clear();
}
return this;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"entities.Torrent.NodeReplicationStatus getNodeStatusList(int index);",
"@java.lang.Override\n public java.util.List<entities.Torrent.NodeReplicationStatus> getNodeStatusListList() {\n return nodeStatusList_;\n }",
"java.util.List<entities.Torrent.NodeReplicationStatus>\n getNodeStatusListList();",
"public java.util.List<entities.Torrent.NodeReplicationStatus> getNodeStatusListList() {\n if (nodeStatusListBuilder_ == null) {\n return java.util.Collections.unmodifiableList(nodeStatusList_);\n } else {\n return nodeStatusListBuilder_.getMessageList();\n }\n }",
"@java.lang.Override\n public java.util.List<? extends entities.Torrent.NodeReplicationStatusOrBuilder>\n getNodeStatusListOrBuilderList() {\n return nodeStatusList_;\n }",
"public java.util.List<? extends entities.Torrent.NodeReplicationStatusOrBuilder>\n getNodeStatusListOrBuilderList() {\n if (nodeStatusListBuilder_ != null) {\n return nodeStatusListBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(nodeStatusList_);\n }\n }",
"@java.lang.Override\n public int getNodeStatusListCount() {\n return nodeStatusList_.size();\n }",
"java.util.List<? extends entities.Torrent.NodeReplicationStatusOrBuilder>\n getNodeStatusListOrBuilderList();",
"public entities.Torrent.NodeReplicationStatus.Builder addNodeStatusListBuilder() {\n return getNodeStatusListFieldBuilder().addBuilder(\n entities.Torrent.NodeReplicationStatus.getDefaultInstance());\n }",
"int getNodeStatusListCount();",
"@java.lang.Override\n public entities.Torrent.NodeReplicationStatus getNodeStatusList(int index) {\n return nodeStatusList_.get(index);\n }",
"entities.Torrent.NodeReplicationStatusOrBuilder getNodeStatusListOrBuilder(\n int index);",
"@java.lang.Override\n public entities.Torrent.NodeReplicationStatusOrBuilder getNodeStatusListOrBuilder(\n int index) {\n return nodeStatusList_.get(index);\n }",
"public entities.Torrent.NodeReplicationStatus getNodeStatusList(int index) {\n if (nodeStatusListBuilder_ == null) {\n return nodeStatusList_.get(index);\n } else {\n return nodeStatusListBuilder_.getMessage(index);\n }\n }",
"public Builder addNodeStatusList(entities.Torrent.NodeReplicationStatus value) {\n if (nodeStatusListBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureNodeStatusListIsMutable();\n nodeStatusList_.add(value);\n onChanged();\n } else {\n nodeStatusListBuilder_.addMessage(value);\n }\n return this;\n }",
"public Builder addAllNodeStatusList(\n java.lang.Iterable<? extends entities.Torrent.NodeReplicationStatus> values) {\n if (nodeStatusListBuilder_ == null) {\n ensureNodeStatusListIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, nodeStatusList_);\n onChanged();\n } else {\n nodeStatusListBuilder_.addAllMessages(values);\n }\n return this;\n }",
"public entities.Torrent.NodeReplicationStatusOrBuilder getNodeStatusListOrBuilder(\n int index) {\n if (nodeStatusListBuilder_ == null) {\n return nodeStatusList_.get(index); } else {\n return nodeStatusListBuilder_.getMessageOrBuilder(index);\n }\n }",
"public int getNodeStatusListCount() {\n if (nodeStatusListBuilder_ == null) {\n return nodeStatusList_.size();\n } else {\n return nodeStatusListBuilder_.getCount();\n }\n }",
"public final int[] cacheNodeStatus() {\n return new int[]{0,0,0,0,0,0,0,0,0,0};\r\n }",
"public java.util.List<entities.Torrent.NodeReplicationStatus.Builder>\n getNodeStatusListBuilderList() {\n return getNodeStatusListFieldBuilder().getBuilderList();\n }",
"public Builder setNodeStatusList(\n int index, entities.Torrent.NodeReplicationStatus value) {\n if (nodeStatusListBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureNodeStatusListIsMutable();\n nodeStatusList_.set(index, value);\n onChanged();\n } else {\n nodeStatusListBuilder_.setMessage(index, value);\n }\n return this;\n }",
"private NodeReplicationStatus(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"int getReplicationCount();",
"public Builder addNodeStatusList(\n int index, entities.Torrent.NodeReplicationStatus value) {\n if (nodeStatusListBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureNodeStatusListIsMutable();\n nodeStatusList_.add(index, value);\n onChanged();\n } else {\n nodeStatusListBuilder_.addMessage(index, value);\n }\n return this;\n }",
"public entities.Torrent.NodeReplicationStatus.Builder addNodeStatusListBuilder(\n int index) {\n return getNodeStatusListFieldBuilder().addBuilder(\n index, entities.Torrent.NodeReplicationStatus.getDefaultInstance());\n }",
"public int getNumNodesSeenByMessage() {\r\n return numNodesSeenByMessage;\r\n }",
"public abstract String getNodeStatusVariableName();",
"public Builder addNodeStatusList(\n entities.Torrent.NodeReplicationStatus.Builder builderForValue) {\n if (nodeStatusListBuilder_ == null) {\n ensureNodeStatusListIsMutable();\n nodeStatusList_.add(builderForValue.build());\n onChanged();\n } else {\n nodeStatusListBuilder_.addMessage(builderForValue.build());\n }\n return this;\n }",
"public entities.Torrent.NodeReplicationStatus.Builder getNodeStatusListBuilder(\n int index) {\n return getNodeStatusListFieldBuilder().getBuilder(index);\n }",
"java.util.List<io.netifi.proteus.admin.om.Node> \n getNodesList();",
"public void list() {\r\n\t\tfor (String key : nodeMap.keySet()) {\r\n\t\t\tNodeRef node = nodeMap.get(key);\r\n\t\t\tSystem.out.println(node.getIp() + \" : \" + node.getPort());\r\n\t\t}\t\t\r\n\t}",
"public static int countNodes() {\n\t\treturn count_nodes;\n\t}",
"default Promise<List<String>> findAllNodesWithStatus(HealthStatus queryStatus) {\n final Promise<List<String>> promise = Promises.promise();\n promise.resolve(Collections.emptyList());\n return promise;\n\n }",
"@Override\n\tpublic long numNodes() {\n\t\treturn numNodes;\n\t}",
"public java.util.List<entities.Torrent.NodeId> getNodesList() {\n if (nodesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(nodes_);\n } else {\n return nodesBuilder_.getMessageList();\n }\n }",
"public NodeInformation[] getNodes() throws CassandraServerManagementException {\r\n StorageServiceMBean ssMBean = null;\r\n try {\r\n ssMBean = CassandraAdminDataHolder\r\n .getInstance().getCassandraMBeanLocator().locateStorageServiceMBean();\r\n } catch (CassandraServerManagementException e) {\r\n handleException(\"Error occurred while retrieving node information list\", e);\r\n }\r\n\r\n if (ssMBean == null) {\r\n handleException(\"Storage Server MBean is null\");\r\n }\r\n\r\n Map<String, String> tokenToEndpoint = ssMBean.getTokenToEndpointMap();\r\n List<String> sortedTokens = new ArrayList<String>(tokenToEndpoint.keySet());\r\n Collections.sort(sortedTokens);\r\n\r\n /* Calculate per-token ownership of the ring */\r\n Map<InetAddress, Float> ownerships = ssMBean.getOwnership();\r\n\r\n List<NodeInformation> nodeInfoList = new ArrayList<NodeInformation>();\r\n for (String token : sortedTokens) {\r\n String primaryEndpoint = tokenToEndpoint.get(token);\r\n String status = ssMBean.getLiveNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_UP\r\n : ssMBean.getUnreachableNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_DOWN\r\n : CassandraManagementConstants.NodeStatuses.NODE_STATUS_UNKNOWN;\r\n\r\n String state = ssMBean.getJoiningNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_JOINING\r\n : ssMBean.getLeavingNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_LEAVING\r\n : CassandraManagementConstants.NodeStatuses.NODE_STATUS_NORMAL;\r\n\r\n Map<String, String> loadMap = ssMBean.getLoadMap();\r\n String load = loadMap.containsKey(primaryEndpoint)\r\n ? loadMap.get(primaryEndpoint)\r\n : CassandraManagementConstants.NodeStatuses.NODE_STATUS_UNKNOWN;\r\n\r\n Float ownership = ownerships.get(token);\r\n String owns = \"N/A\";\r\n if(ownership!=null){\r\n owns = new DecimalFormat(\"##0.00%\").format(ownership);\r\n }\r\n NodeInformation nodeInfo = new NodeInformation();\r\n nodeInfo.setAddress(primaryEndpoint);\r\n nodeInfo.setState(state);\r\n nodeInfo.setStatus(status);\r\n nodeInfo.setOwn(owns);\r\n nodeInfo.setLoad(load);\r\n nodeInfo.setToken(token);\r\n nodeInfoList.add(nodeInfo);\r\n }\r\n return nodeInfoList.toArray(new NodeInformation[nodeInfoList.size()]);\r\n }",
"public String replicationState() {\n return this.replicationState;\n }",
"@Override\n public boolean getCurrentNodeStatus(InetAddress ia) {\n if (ia.isAnyLocalAddress()) {\n return true;\n }\n // Check if given address is in cluster\n for (Client c : instance.getClientService().getConnectedClients()) {\n if (c.getSocketAddress().getAddress().equals(ia)) {\n return true;\n }\n }\n // reject all other addresses\n return false;\n }",
"int numNodes() {\n\t\treturn num_nodes;\n\t}",
"private int numNodes()\r\n\t{\r\n\t return nodeMap.size();\r\n\t}",
"public int lockedNodeCount() {\n\treturn lockedNodes;\n }",
"@Override\n\tpublic Collection<TaskStatus> getTaskStatus(){\n \tcheckInitialized();\n \t\n \t@SuppressWarnings(\"unchecked\")\n\t\tCollection<Collection<TaskStatus>> statusTree=Collections.EMPTY_LIST;\n \tfinal MultiTask<Collection<TaskStatus>> mtask;\n \ttry {\n\t\t\t mtask = breeder.executeCallable(new GetTaskStatus(this));\n\t\t\t statusTree = mtask.get();\n \t} catch (ExecutionException ex){\n \t\tlog.fatal(\"Could not get status of tasks for job \"+this.getId(), ex);\n \t} catch(InterruptedException ex) {\n \t\tlog.fatal(\"Could not get status of tasks for job \"+this.getId(), ex);\n \t}\n\t\t\t\n\t\t// Flatten into single collection\n\t\tList<TaskStatus> result = new ArrayList<TaskStatus>((int)(statusTree.size()*this.getThreadCount()));\n\t\tfor(Collection<TaskStatus> statusForNode: statusTree) {\n\t\t\tresult.addAll(statusForNode);\n\t\t}\n\t\t\n\t\treturn result;\n \n\t}",
"int getNodeCount() {\n\t\treturn m_list_nodes.size();\n\t}",
"int getNodesCount();",
"int getNodesCount();",
"public java.util.List<java.lang.Integer>\n getStatusList() {\n return status_;\n }",
"public static int getNumberOfNodes() {\n return(numberOfNodes);\n\t }",
"@java.lang.Override\n public int getNodesCount() {\n return nodes_.size();\n }",
"private NodeRestartRequest() {\n\t\t}",
"java.util.List<entities.Torrent.NodeId>\n getNodesList();",
"List<CommunicationLink> getAllNodes()\n {\n return new ArrayList<>(allNodes.values());\n }",
"public ODocument clusterStatus() {\n checkConnected();\n return remote.getClusterStatus(user, password);\n }",
"public StatusChecker(Node node){\n this.node=node;\n start();\n }",
"@java.lang.Override\n public java.util.List<entities.Torrent.NodeId> getNodesList() {\n return nodes_;\n }",
"public int getNumberOfNodesEvaluated();",
"java.util.List<java.lang.Integer> getStatusList();",
"private List<Node> getNodes() {\n List<Node> nodes = new ArrayList<Node>();\n NodeApi.GetConnectedNodesResult rawNodes =\n Wearable.NodeApi.getConnectedNodes(mGoogleApiClient).await();\n for (Node node : rawNodes.getNodes()) {\n nodes.add(node);\n }\n return nodes;\n }",
"public int numNodes() {\n\t\treturn numNodes;\n\t}",
"void updateRmiClientsCount() {\n int noOfClientsConnected = 0;\n\n String[] connectionIds = rmiConnector.getConnectionIds();\n\n if (connectionIds != null) {\n noOfClientsConnected = connectionIds.length;\n }\n\n logger.info(\"No. of RMI clients connected :: {}\", noOfClientsConnected);\n\n AdminDistributedSystemJmxImpl adminDSJmx = (AdminDistributedSystemJmxImpl) system;\n\n adminDSJmx.setRmiClientCountZero(noOfClientsConnected == 0);\n }",
"public int getReplicationDegree() {\n return replicationDegree;\n }",
"public int getReplicationDegree() {\n return replicationDegree;\n }",
"public List<NetworkNode> listNetworkNode();",
"private void updateGeoRepStatus(GlusterVolumeEntity volume, GlusterGeoRepSession session) {\n\n List<HashSet<GeoRepSessionStatus>> list = new ArrayList<>();\n // grouped node status\n int replicaCount = volume.getReplicaCount() == 0 ? 1 : volume.getReplicaCount();\n for (int i = 0; i < volume.getBricks().size(); i = i + replicaCount) {\n HashSet<GeoRepSessionStatus> subVolumeStatusSet = new HashSet<>();\n int j = 0;\n while (j < replicaCount) {\n Guid brickId = volume.getBricks().get(i + j).getId();\n subVolumeStatusSet.add(getStatusForBrickFromSession(session, brickId));\n j++;\n }\n list.add(subVolumeStatusSet);\n }\n\n session.setStatus(GeoRepSessionStatus.ACTIVE);\n // iterate through grouped status to set consolidated status\n for (HashSet<GeoRepSessionStatus> subVolumeStatusValues : list) {\n if (subVolumeStatusValues.contains(GeoRepSessionStatus.ACTIVE)) {\n // healthy\n continue;\n } else if (subVolumeStatusValues.contains(GeoRepSessionStatus.FAULTY)) {\n session.setStatus(GeoRepSessionStatus.FAULTY);\n // if any one of the sub-volume is faulty, the overall session status if faulty\n return;\n }\n // override status in case of these values\n if (ArrayUtils.contains(overridableStatuses, session.getStatus())) {\n if (subVolumeStatusValues.size() == 1) {\n session.setStatus((GeoRepSessionStatus) subVolumeStatusValues.toArray()[0]);\n } else {\n // if status values in sub-volume are not the same, what do we do?\n // this should not happen, so we'll log it for now\n log.info(\"Multiple status values found in volume '{}'\", session.getMasterVolumeName());\n }\n }\n }\n\n }",
"@SuppressWarnings(\"unused\")\n private ReplicationStatusResponse() {\n this(false);\n }",
"int getNrNodes() {\n\t\treturn adjList.size();\n\t}",
"public int getConnectionStatus()\r\n { return connectionStatus; }",
"int getNodeCount();",
"int getNodeCount();",
"public int getNodeCount() {\n return nodeCount;\n }",
"public int getNetworkNodesNumber() {\n\t\t\n\t\t//Return nodes size\n\t\treturn nodes.size();\n\t\t\n\t}",
"void nodeOnline();",
"public static String getClusterStatusNodePath() {\n return String.join(\"/\", \"\", ROOT_NODE, COMPUTE_NODE, STATUS_NODE);\n }",
"@Override\n protected int minimumNumberOfReplicas() {\n return 1;\n }",
"@Override\n public void statusUpdate(final String asgName, final ASGStatus newStatus, final boolean isReplication) {\n if (isReplication) {\n return;\n }\n for (final PeerEurekaNode node : peerEurekaNodes.getPeerEurekaNodes()) {\n replicateASGInfoToReplicaNodes(asgName, newStatus, node);\n\n }\n }",
"@PostMapping(\"/queryGroupStatus/list\")\n @PreAuthorize(ConstantProperties.HAS_ROLE_ADMIN)\n public BaseResponse getGroupStatusList(@Valid @RequestBody ReqGroupStatus reqGroupStatus) throws NodeMgrException {\n Instant startTime = Instant.now();\n BaseResponse baseResponse = new BaseResponse(ConstantCode.SUCCESS);\n log.info(\"start getGroupStatusMap startTime:{}\", startTime.toEpochMilli());\n List<String> nodeIdList = reqGroupStatus.getNodeIdList();\n List<RspGroupStatus> resList = groupService.listGroupStatus(nodeIdList,\n reqGroupStatus.getGroupIdList());\n baseResponse.setData(resList);\n log.info(\"end getGroupStatusMap useTime:{} result:{}\",\n Duration.between(startTime, Instant.now()).toMillis(),\n JsonTools.toJSONString(baseResponse));\n return baseResponse;\n }",
"public String getNumberOfNodesEvaluated(){return Integer.toString(NumberOfVisitedNodes);}",
"java.util.List<? extends io.netifi.proteus.admin.om.NodeOrBuilder> \n getNodesOrBuilderList();",
"private void getNodesCount(HttpServletRequest request, HttpServletResponse response) throws IOException {\n int countNodes = SimApi.getNodesCount();\n response.getWriter().write(Integer.toString(countNodes));\n }",
"@Test(timeout = 10000L)\n public void testNodesInformation() throws Exception {\n CommonDriverAdminTests.testNodesInformation(client, nbNodes);\n }",
"public int getNumNodes() {\n\t\treturn nodes.size();\n\t}",
"public abstract Collection<Node> getAllSuccessors();",
"@RequestLine(\"GET /status\")\n Status getNeustarNetworkStatus();",
"public void printStatus(){\n System.out.println(\"Nodes: \" + \n getVertexCount() + \" Edges: \" + \n getEdgeCount()); \n //and \" + getEdgeCount() + \" edges active.\");\n }",
"public int getStatusCount() {\n return status_.size();\n }",
"public List<Long> getSessionNodes() {\n List<Long> ret = new ArrayList<>();\n\n for (int i = 0; i < sessionsList.size(); i++) {\n ret.add(sessionsList.get(i).dhtNodes());\n }\n\n return ret;\n }",
"@Override\n public ClusterStatus getCurrentClusterStatus() {\n if (getMemberList().size() > 1) {\n return CLUSTER_FUNCTIONAL;\n }\n // when only one node is connected return degraded\n if (getMemberList().size() == 1) {\n return CLUSTER_DEGRADED;\n }\n // consider all other states as illegal\n return CLUSTER_ILLEGAL;\n }",
"private void refreshNodeList() {\n if (UnderNet.router.status.equals(InterfaceStatus.STARTED)) {\n //Using connected and cached nodes if the router has started.\n ArrayList<Node> nodesToList = UnderNet.router.getConnectedNodes();\n for (Node cachedNode :\n EntryNodeCache.cachedNodes) {\n boolean canAdd = true;\n for (Node connectedNode : UnderNet.router.getConnectedNodes()) {\n if (cachedNode.getAddress().equals(connectedNode.getAddress())) {\n canAdd = false;\n }\n }\n if (canAdd) {\n nodesToList.add(cachedNode);\n }\n }\n nodeList.setListData(nodesToList.toArray());\n } else {\n //Using cached nodes if the router isn't online.\n nodeList.setListData(EntryNodeCache.cachedNodes.toArray());\n }\n }",
"public int getNodeCount() {\n return node_.size();\n }",
"public Builder setNodeStatusList(\n int index, entities.Torrent.NodeReplicationStatus.Builder builderForValue) {\n if (nodeStatusListBuilder_ == null) {\n ensureNodeStatusListIsMutable();\n nodeStatusList_.set(index, builderForValue.build());\n onChanged();\n } else {\n nodeStatusListBuilder_.setMessage(index, builderForValue.build());\n }\n return this;\n }",
"int getStatusCount();",
"List<StatusListener> mo9950b();",
"public List<Output<TInt32>> nodeIdsList() {\n return nodeIdsList;\n }",
"@Override\r\n\tpublic int getNumberOfNodes() {\n\t\treturn 0;\r\n\t}",
"@Override\n public void onNewClusterState(ClusterState state) {\n transportService.sendRequest(\n clusterService.localNode(),\n transportReplicaAction,\n replicaRequest,\n new ActionListenerResponseHandler<>(onCompletionListener, ReplicaResponse::new)\n );\n }",
"public java.util.List<? extends entities.Torrent.NodeIdOrBuilder>\n getNodesOrBuilderList() {\n if (nodesBuilder_ != null) {\n return nodesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(nodes_);\n }\n }",
"void refreshNodeHostCount(int nodeHostCount);",
"public java.util.List<java.lang.Integer>\n getStatusList() {\n return java.util.Collections.unmodifiableList(status_);\n }",
"protected int numNodes() {\n\t\treturn nodes.size();\n\t}",
"public static void getStatus() {\n\t\ttry {\n\t\t\tint i = 1;\n\t\t\tList<Object[]>serverDetails = ServerStatus.getServerDetails();\n\t\t\tfor (Object[] servers:serverDetails){\n\t\t\t\tServerStatus.verifyServerStatus(i,(String)servers[0], (String)servers[1], (String)servers[2]);\n\t\t\t\ti++;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tcatch (Exception ex){\n\t\t\tex.printStackTrace();\n\t\t}\n\t}",
"public Vector<Node> getNodes(){\n\t\treturn this.listOfNodes;\n\t}"
] |
[
"0.7676129",
"0.7331182",
"0.7273687",
"0.71861",
"0.715512",
"0.7115793",
"0.7109621",
"0.70572484",
"0.70231473",
"0.68802404",
"0.68754536",
"0.68622214",
"0.6731096",
"0.66640806",
"0.66391486",
"0.65591234",
"0.6555521",
"0.63903886",
"0.63232106",
"0.63019353",
"0.6214408",
"0.61544263",
"0.6059044",
"0.6020407",
"0.5968166",
"0.5747682",
"0.5747118",
"0.572477",
"0.5719498",
"0.5702324",
"0.55613613",
"0.5554103",
"0.55409944",
"0.55359095",
"0.55294245",
"0.5514939",
"0.5508245",
"0.54773027",
"0.54582757",
"0.5452121",
"0.54395384",
"0.5432274",
"0.5413921",
"0.5404272",
"0.5404272",
"0.5391273",
"0.5391093",
"0.53838295",
"0.5372251",
"0.5371431",
"0.53694195",
"0.53680325",
"0.5355719",
"0.5328223",
"0.5313206",
"0.53056794",
"0.5304752",
"0.52963203",
"0.5294912",
"0.52926546",
"0.52926546",
"0.52865416",
"0.52761674",
"0.52743804",
"0.52723396",
"0.52713174",
"0.5270979",
"0.5270979",
"0.5262344",
"0.5260428",
"0.5251417",
"0.525009",
"0.52486444",
"0.5244158",
"0.5236949",
"0.5233294",
"0.5232152",
"0.523205",
"0.5227255",
"0.5222861",
"0.5216217",
"0.5216119",
"0.5214923",
"0.52052957",
"0.5199027",
"0.5190343",
"0.51863825",
"0.5185727",
"0.5179844",
"0.51798075",
"0.51794755",
"0.51788676",
"0.5154731",
"0.5154184",
"0.51530594",
"0.51490337",
"0.514868",
"0.5140558",
"0.5139295",
"0.51247513"
] |
0.5337264
|
53
|
The status of all the requests to other nodes repeated .NodeReplicationStatus nodeStatusList = 3;
|
public Builder removeNodeStatusList(int index) {
if (nodeStatusListBuilder_ == null) {
ensureNodeStatusListIsMutable();
nodeStatusList_.remove(index);
onChanged();
} else {
nodeStatusListBuilder_.remove(index);
}
return this;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"entities.Torrent.NodeReplicationStatus getNodeStatusList(int index);",
"@java.lang.Override\n public java.util.List<entities.Torrent.NodeReplicationStatus> getNodeStatusListList() {\n return nodeStatusList_;\n }",
"java.util.List<entities.Torrent.NodeReplicationStatus>\n getNodeStatusListList();",
"public java.util.List<entities.Torrent.NodeReplicationStatus> getNodeStatusListList() {\n if (nodeStatusListBuilder_ == null) {\n return java.util.Collections.unmodifiableList(nodeStatusList_);\n } else {\n return nodeStatusListBuilder_.getMessageList();\n }\n }",
"@java.lang.Override\n public java.util.List<? extends entities.Torrent.NodeReplicationStatusOrBuilder>\n getNodeStatusListOrBuilderList() {\n return nodeStatusList_;\n }",
"public java.util.List<? extends entities.Torrent.NodeReplicationStatusOrBuilder>\n getNodeStatusListOrBuilderList() {\n if (nodeStatusListBuilder_ != null) {\n return nodeStatusListBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(nodeStatusList_);\n }\n }",
"@java.lang.Override\n public int getNodeStatusListCount() {\n return nodeStatusList_.size();\n }",
"java.util.List<? extends entities.Torrent.NodeReplicationStatusOrBuilder>\n getNodeStatusListOrBuilderList();",
"public entities.Torrent.NodeReplicationStatus.Builder addNodeStatusListBuilder() {\n return getNodeStatusListFieldBuilder().addBuilder(\n entities.Torrent.NodeReplicationStatus.getDefaultInstance());\n }",
"int getNodeStatusListCount();",
"@java.lang.Override\n public entities.Torrent.NodeReplicationStatus getNodeStatusList(int index) {\n return nodeStatusList_.get(index);\n }",
"entities.Torrent.NodeReplicationStatusOrBuilder getNodeStatusListOrBuilder(\n int index);",
"@java.lang.Override\n public entities.Torrent.NodeReplicationStatusOrBuilder getNodeStatusListOrBuilder(\n int index) {\n return nodeStatusList_.get(index);\n }",
"public entities.Torrent.NodeReplicationStatus getNodeStatusList(int index) {\n if (nodeStatusListBuilder_ == null) {\n return nodeStatusList_.get(index);\n } else {\n return nodeStatusListBuilder_.getMessage(index);\n }\n }",
"public Builder addNodeStatusList(entities.Torrent.NodeReplicationStatus value) {\n if (nodeStatusListBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureNodeStatusListIsMutable();\n nodeStatusList_.add(value);\n onChanged();\n } else {\n nodeStatusListBuilder_.addMessage(value);\n }\n return this;\n }",
"public Builder addAllNodeStatusList(\n java.lang.Iterable<? extends entities.Torrent.NodeReplicationStatus> values) {\n if (nodeStatusListBuilder_ == null) {\n ensureNodeStatusListIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, nodeStatusList_);\n onChanged();\n } else {\n nodeStatusListBuilder_.addAllMessages(values);\n }\n return this;\n }",
"public entities.Torrent.NodeReplicationStatusOrBuilder getNodeStatusListOrBuilder(\n int index) {\n if (nodeStatusListBuilder_ == null) {\n return nodeStatusList_.get(index); } else {\n return nodeStatusListBuilder_.getMessageOrBuilder(index);\n }\n }",
"public int getNodeStatusListCount() {\n if (nodeStatusListBuilder_ == null) {\n return nodeStatusList_.size();\n } else {\n return nodeStatusListBuilder_.getCount();\n }\n }",
"public final int[] cacheNodeStatus() {\n return new int[]{0,0,0,0,0,0,0,0,0,0};\r\n }",
"public java.util.List<entities.Torrent.NodeReplicationStatus.Builder>\n getNodeStatusListBuilderList() {\n return getNodeStatusListFieldBuilder().getBuilderList();\n }",
"public Builder setNodeStatusList(\n int index, entities.Torrent.NodeReplicationStatus value) {\n if (nodeStatusListBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureNodeStatusListIsMutable();\n nodeStatusList_.set(index, value);\n onChanged();\n } else {\n nodeStatusListBuilder_.setMessage(index, value);\n }\n return this;\n }",
"private NodeReplicationStatus(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"int getReplicationCount();",
"public Builder addNodeStatusList(\n int index, entities.Torrent.NodeReplicationStatus value) {\n if (nodeStatusListBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureNodeStatusListIsMutable();\n nodeStatusList_.add(index, value);\n onChanged();\n } else {\n nodeStatusListBuilder_.addMessage(index, value);\n }\n return this;\n }",
"public entities.Torrent.NodeReplicationStatus.Builder addNodeStatusListBuilder(\n int index) {\n return getNodeStatusListFieldBuilder().addBuilder(\n index, entities.Torrent.NodeReplicationStatus.getDefaultInstance());\n }",
"public int getNumNodesSeenByMessage() {\r\n return numNodesSeenByMessage;\r\n }",
"public abstract String getNodeStatusVariableName();",
"public Builder addNodeStatusList(\n entities.Torrent.NodeReplicationStatus.Builder builderForValue) {\n if (nodeStatusListBuilder_ == null) {\n ensureNodeStatusListIsMutable();\n nodeStatusList_.add(builderForValue.build());\n onChanged();\n } else {\n nodeStatusListBuilder_.addMessage(builderForValue.build());\n }\n return this;\n }",
"public entities.Torrent.NodeReplicationStatus.Builder getNodeStatusListBuilder(\n int index) {\n return getNodeStatusListFieldBuilder().getBuilder(index);\n }",
"java.util.List<io.netifi.proteus.admin.om.Node> \n getNodesList();",
"public void list() {\r\n\t\tfor (String key : nodeMap.keySet()) {\r\n\t\t\tNodeRef node = nodeMap.get(key);\r\n\t\t\tSystem.out.println(node.getIp() + \" : \" + node.getPort());\r\n\t\t}\t\t\r\n\t}",
"public static int countNodes() {\n\t\treturn count_nodes;\n\t}",
"default Promise<List<String>> findAllNodesWithStatus(HealthStatus queryStatus) {\n final Promise<List<String>> promise = Promises.promise();\n promise.resolve(Collections.emptyList());\n return promise;\n\n }",
"@Override\n\tpublic long numNodes() {\n\t\treturn numNodes;\n\t}",
"public java.util.List<entities.Torrent.NodeId> getNodesList() {\n if (nodesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(nodes_);\n } else {\n return nodesBuilder_.getMessageList();\n }\n }",
"public NodeInformation[] getNodes() throws CassandraServerManagementException {\r\n StorageServiceMBean ssMBean = null;\r\n try {\r\n ssMBean = CassandraAdminDataHolder\r\n .getInstance().getCassandraMBeanLocator().locateStorageServiceMBean();\r\n } catch (CassandraServerManagementException e) {\r\n handleException(\"Error occurred while retrieving node information list\", e);\r\n }\r\n\r\n if (ssMBean == null) {\r\n handleException(\"Storage Server MBean is null\");\r\n }\r\n\r\n Map<String, String> tokenToEndpoint = ssMBean.getTokenToEndpointMap();\r\n List<String> sortedTokens = new ArrayList<String>(tokenToEndpoint.keySet());\r\n Collections.sort(sortedTokens);\r\n\r\n /* Calculate per-token ownership of the ring */\r\n Map<InetAddress, Float> ownerships = ssMBean.getOwnership();\r\n\r\n List<NodeInformation> nodeInfoList = new ArrayList<NodeInformation>();\r\n for (String token : sortedTokens) {\r\n String primaryEndpoint = tokenToEndpoint.get(token);\r\n String status = ssMBean.getLiveNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_UP\r\n : ssMBean.getUnreachableNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_DOWN\r\n : CassandraManagementConstants.NodeStatuses.NODE_STATUS_UNKNOWN;\r\n\r\n String state = ssMBean.getJoiningNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_JOINING\r\n : ssMBean.getLeavingNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_LEAVING\r\n : CassandraManagementConstants.NodeStatuses.NODE_STATUS_NORMAL;\r\n\r\n Map<String, String> loadMap = ssMBean.getLoadMap();\r\n String load = loadMap.containsKey(primaryEndpoint)\r\n ? loadMap.get(primaryEndpoint)\r\n : CassandraManagementConstants.NodeStatuses.NODE_STATUS_UNKNOWN;\r\n\r\n Float ownership = ownerships.get(token);\r\n String owns = \"N/A\";\r\n if(ownership!=null){\r\n owns = new DecimalFormat(\"##0.00%\").format(ownership);\r\n }\r\n NodeInformation nodeInfo = new NodeInformation();\r\n nodeInfo.setAddress(primaryEndpoint);\r\n nodeInfo.setState(state);\r\n nodeInfo.setStatus(status);\r\n nodeInfo.setOwn(owns);\r\n nodeInfo.setLoad(load);\r\n nodeInfo.setToken(token);\r\n nodeInfoList.add(nodeInfo);\r\n }\r\n return nodeInfoList.toArray(new NodeInformation[nodeInfoList.size()]);\r\n }",
"public String replicationState() {\n return this.replicationState;\n }",
"@Override\n public boolean getCurrentNodeStatus(InetAddress ia) {\n if (ia.isAnyLocalAddress()) {\n return true;\n }\n // Check if given address is in cluster\n for (Client c : instance.getClientService().getConnectedClients()) {\n if (c.getSocketAddress().getAddress().equals(ia)) {\n return true;\n }\n }\n // reject all other addresses\n return false;\n }",
"int numNodes() {\n\t\treturn num_nodes;\n\t}",
"private int numNodes()\r\n\t{\r\n\t return nodeMap.size();\r\n\t}",
"public int lockedNodeCount() {\n\treturn lockedNodes;\n }",
"@Override\n\tpublic Collection<TaskStatus> getTaskStatus(){\n \tcheckInitialized();\n \t\n \t@SuppressWarnings(\"unchecked\")\n\t\tCollection<Collection<TaskStatus>> statusTree=Collections.EMPTY_LIST;\n \tfinal MultiTask<Collection<TaskStatus>> mtask;\n \ttry {\n\t\t\t mtask = breeder.executeCallable(new GetTaskStatus(this));\n\t\t\t statusTree = mtask.get();\n \t} catch (ExecutionException ex){\n \t\tlog.fatal(\"Could not get status of tasks for job \"+this.getId(), ex);\n \t} catch(InterruptedException ex) {\n \t\tlog.fatal(\"Could not get status of tasks for job \"+this.getId(), ex);\n \t}\n\t\t\t\n\t\t// Flatten into single collection\n\t\tList<TaskStatus> result = new ArrayList<TaskStatus>((int)(statusTree.size()*this.getThreadCount()));\n\t\tfor(Collection<TaskStatus> statusForNode: statusTree) {\n\t\t\tresult.addAll(statusForNode);\n\t\t}\n\t\t\n\t\treturn result;\n \n\t}",
"int getNodeCount() {\n\t\treturn m_list_nodes.size();\n\t}",
"int getNodesCount();",
"int getNodesCount();",
"public java.util.List<java.lang.Integer>\n getStatusList() {\n return status_;\n }",
"public static int getNumberOfNodes() {\n return(numberOfNodes);\n\t }",
"@java.lang.Override\n public int getNodesCount() {\n return nodes_.size();\n }",
"java.util.List<entities.Torrent.NodeId>\n getNodesList();",
"private NodeRestartRequest() {\n\t\t}",
"List<CommunicationLink> getAllNodes()\n {\n return new ArrayList<>(allNodes.values());\n }",
"public ODocument clusterStatus() {\n checkConnected();\n return remote.getClusterStatus(user, password);\n }",
"public StatusChecker(Node node){\n this.node=node;\n start();\n }",
"public Builder clearNodeStatusList() {\n if (nodeStatusListBuilder_ == null) {\n nodeStatusList_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n nodeStatusListBuilder_.clear();\n }\n return this;\n }",
"@java.lang.Override\n public java.util.List<entities.Torrent.NodeId> getNodesList() {\n return nodes_;\n }",
"public int getNumberOfNodesEvaluated();",
"java.util.List<java.lang.Integer> getStatusList();",
"private List<Node> getNodes() {\n List<Node> nodes = new ArrayList<Node>();\n NodeApi.GetConnectedNodesResult rawNodes =\n Wearable.NodeApi.getConnectedNodes(mGoogleApiClient).await();\n for (Node node : rawNodes.getNodes()) {\n nodes.add(node);\n }\n return nodes;\n }",
"public int numNodes() {\n\t\treturn numNodes;\n\t}",
"void updateRmiClientsCount() {\n int noOfClientsConnected = 0;\n\n String[] connectionIds = rmiConnector.getConnectionIds();\n\n if (connectionIds != null) {\n noOfClientsConnected = connectionIds.length;\n }\n\n logger.info(\"No. of RMI clients connected :: {}\", noOfClientsConnected);\n\n AdminDistributedSystemJmxImpl adminDSJmx = (AdminDistributedSystemJmxImpl) system;\n\n adminDSJmx.setRmiClientCountZero(noOfClientsConnected == 0);\n }",
"public int getReplicationDegree() {\n return replicationDegree;\n }",
"public int getReplicationDegree() {\n return replicationDegree;\n }",
"public List<NetworkNode> listNetworkNode();",
"private void updateGeoRepStatus(GlusterVolumeEntity volume, GlusterGeoRepSession session) {\n\n List<HashSet<GeoRepSessionStatus>> list = new ArrayList<>();\n // grouped node status\n int replicaCount = volume.getReplicaCount() == 0 ? 1 : volume.getReplicaCount();\n for (int i = 0; i < volume.getBricks().size(); i = i + replicaCount) {\n HashSet<GeoRepSessionStatus> subVolumeStatusSet = new HashSet<>();\n int j = 0;\n while (j < replicaCount) {\n Guid brickId = volume.getBricks().get(i + j).getId();\n subVolumeStatusSet.add(getStatusForBrickFromSession(session, brickId));\n j++;\n }\n list.add(subVolumeStatusSet);\n }\n\n session.setStatus(GeoRepSessionStatus.ACTIVE);\n // iterate through grouped status to set consolidated status\n for (HashSet<GeoRepSessionStatus> subVolumeStatusValues : list) {\n if (subVolumeStatusValues.contains(GeoRepSessionStatus.ACTIVE)) {\n // healthy\n continue;\n } else if (subVolumeStatusValues.contains(GeoRepSessionStatus.FAULTY)) {\n session.setStatus(GeoRepSessionStatus.FAULTY);\n // if any one of the sub-volume is faulty, the overall session status if faulty\n return;\n }\n // override status in case of these values\n if (ArrayUtils.contains(overridableStatuses, session.getStatus())) {\n if (subVolumeStatusValues.size() == 1) {\n session.setStatus((GeoRepSessionStatus) subVolumeStatusValues.toArray()[0]);\n } else {\n // if status values in sub-volume are not the same, what do we do?\n // this should not happen, so we'll log it for now\n log.info(\"Multiple status values found in volume '{}'\", session.getMasterVolumeName());\n }\n }\n }\n\n }",
"@SuppressWarnings(\"unused\")\n private ReplicationStatusResponse() {\n this(false);\n }",
"int getNrNodes() {\n\t\treturn adjList.size();\n\t}",
"public int getConnectionStatus()\r\n { return connectionStatus; }",
"int getNodeCount();",
"int getNodeCount();",
"public int getNodeCount() {\n return nodeCount;\n }",
"public int getNetworkNodesNumber() {\n\t\t\n\t\t//Return nodes size\n\t\treturn nodes.size();\n\t\t\n\t}",
"void nodeOnline();",
"public static String getClusterStatusNodePath() {\n return String.join(\"/\", \"\", ROOT_NODE, COMPUTE_NODE, STATUS_NODE);\n }",
"@Override\n protected int minimumNumberOfReplicas() {\n return 1;\n }",
"@Override\n public void statusUpdate(final String asgName, final ASGStatus newStatus, final boolean isReplication) {\n if (isReplication) {\n return;\n }\n for (final PeerEurekaNode node : peerEurekaNodes.getPeerEurekaNodes()) {\n replicateASGInfoToReplicaNodes(asgName, newStatus, node);\n\n }\n }",
"@PostMapping(\"/queryGroupStatus/list\")\n @PreAuthorize(ConstantProperties.HAS_ROLE_ADMIN)\n public BaseResponse getGroupStatusList(@Valid @RequestBody ReqGroupStatus reqGroupStatus) throws NodeMgrException {\n Instant startTime = Instant.now();\n BaseResponse baseResponse = new BaseResponse(ConstantCode.SUCCESS);\n log.info(\"start getGroupStatusMap startTime:{}\", startTime.toEpochMilli());\n List<String> nodeIdList = reqGroupStatus.getNodeIdList();\n List<RspGroupStatus> resList = groupService.listGroupStatus(nodeIdList,\n reqGroupStatus.getGroupIdList());\n baseResponse.setData(resList);\n log.info(\"end getGroupStatusMap useTime:{} result:{}\",\n Duration.between(startTime, Instant.now()).toMillis(),\n JsonTools.toJSONString(baseResponse));\n return baseResponse;\n }",
"public String getNumberOfNodesEvaluated(){return Integer.toString(NumberOfVisitedNodes);}",
"private void getNodesCount(HttpServletRequest request, HttpServletResponse response) throws IOException {\n int countNodes = SimApi.getNodesCount();\n response.getWriter().write(Integer.toString(countNodes));\n }",
"java.util.List<? extends io.netifi.proteus.admin.om.NodeOrBuilder> \n getNodesOrBuilderList();",
"@Test(timeout = 10000L)\n public void testNodesInformation() throws Exception {\n CommonDriverAdminTests.testNodesInformation(client, nbNodes);\n }",
"public int getNumNodes() {\n\t\treturn nodes.size();\n\t}",
"public abstract Collection<Node> getAllSuccessors();",
"@RequestLine(\"GET /status\")\n Status getNeustarNetworkStatus();",
"public void printStatus(){\n System.out.println(\"Nodes: \" + \n getVertexCount() + \" Edges: \" + \n getEdgeCount()); \n //and \" + getEdgeCount() + \" edges active.\");\n }",
"public int getStatusCount() {\n return status_.size();\n }",
"public List<Long> getSessionNodes() {\n List<Long> ret = new ArrayList<>();\n\n for (int i = 0; i < sessionsList.size(); i++) {\n ret.add(sessionsList.get(i).dhtNodes());\n }\n\n return ret;\n }",
"@Override\n public ClusterStatus getCurrentClusterStatus() {\n if (getMemberList().size() > 1) {\n return CLUSTER_FUNCTIONAL;\n }\n // when only one node is connected return degraded\n if (getMemberList().size() == 1) {\n return CLUSTER_DEGRADED;\n }\n // consider all other states as illegal\n return CLUSTER_ILLEGAL;\n }",
"private void refreshNodeList() {\n if (UnderNet.router.status.equals(InterfaceStatus.STARTED)) {\n //Using connected and cached nodes if the router has started.\n ArrayList<Node> nodesToList = UnderNet.router.getConnectedNodes();\n for (Node cachedNode :\n EntryNodeCache.cachedNodes) {\n boolean canAdd = true;\n for (Node connectedNode : UnderNet.router.getConnectedNodes()) {\n if (cachedNode.getAddress().equals(connectedNode.getAddress())) {\n canAdd = false;\n }\n }\n if (canAdd) {\n nodesToList.add(cachedNode);\n }\n }\n nodeList.setListData(nodesToList.toArray());\n } else {\n //Using cached nodes if the router isn't online.\n nodeList.setListData(EntryNodeCache.cachedNodes.toArray());\n }\n }",
"public int getNodeCount() {\n return node_.size();\n }",
"public Builder setNodeStatusList(\n int index, entities.Torrent.NodeReplicationStatus.Builder builderForValue) {\n if (nodeStatusListBuilder_ == null) {\n ensureNodeStatusListIsMutable();\n nodeStatusList_.set(index, builderForValue.build());\n onChanged();\n } else {\n nodeStatusListBuilder_.setMessage(index, builderForValue.build());\n }\n return this;\n }",
"List<StatusListener> mo9950b();",
"int getStatusCount();",
"public List<Output<TInt32>> nodeIdsList() {\n return nodeIdsList;\n }",
"@Override\r\n\tpublic int getNumberOfNodes() {\n\t\treturn 0;\r\n\t}",
"@Override\n public void onNewClusterState(ClusterState state) {\n transportService.sendRequest(\n clusterService.localNode(),\n transportReplicaAction,\n replicaRequest,\n new ActionListenerResponseHandler<>(onCompletionListener, ReplicaResponse::new)\n );\n }",
"public java.util.List<? extends entities.Torrent.NodeIdOrBuilder>\n getNodesOrBuilderList() {\n if (nodesBuilder_ != null) {\n return nodesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(nodes_);\n }\n }",
"public java.util.List<java.lang.Integer>\n getStatusList() {\n return java.util.Collections.unmodifiableList(status_);\n }",
"void refreshNodeHostCount(int nodeHostCount);",
"protected int numNodes() {\n\t\treturn nodes.size();\n\t}",
"public static void getStatus() {\n\t\ttry {\n\t\t\tint i = 1;\n\t\t\tList<Object[]>serverDetails = ServerStatus.getServerDetails();\n\t\t\tfor (Object[] servers:serverDetails){\n\t\t\t\tServerStatus.verifyServerStatus(i,(String)servers[0], (String)servers[1], (String)servers[2]);\n\t\t\t\ti++;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tcatch (Exception ex){\n\t\t\tex.printStackTrace();\n\t\t}\n\t}",
"public Vector<Node> getNodes(){\n\t\treturn this.listOfNodes;\n\t}"
] |
[
"0.7677481",
"0.7332279",
"0.7275059",
"0.71873355",
"0.71560276",
"0.7116769",
"0.7109518",
"0.70585376",
"0.7024147",
"0.6879867",
"0.6876868",
"0.6864218",
"0.67323005",
"0.6665114",
"0.6640871",
"0.6559848",
"0.6556308",
"0.6390153",
"0.63229275",
"0.63024855",
"0.6215867",
"0.6154482",
"0.6059501",
"0.6021897",
"0.596904",
"0.5747415",
"0.5746043",
"0.572507",
"0.57199895",
"0.57014227",
"0.55606055",
"0.55531794",
"0.5541874",
"0.5535034",
"0.5529633",
"0.5514081",
"0.5508731",
"0.5476352",
"0.54575264",
"0.54510856",
"0.54392225",
"0.5431914",
"0.54128003",
"0.5403353",
"0.5403353",
"0.5391939",
"0.53903574",
"0.5383281",
"0.5371443",
"0.53700656",
"0.536878",
"0.53676504",
"0.535534",
"0.5338024",
"0.5328059",
"0.5311786",
"0.5306224",
"0.53053415",
"0.52958065",
"0.52942604",
"0.5293356",
"0.5293356",
"0.52853906",
"0.5275481",
"0.5274735",
"0.5272081",
"0.52704126",
"0.5269814",
"0.5269814",
"0.5261532",
"0.52604467",
"0.5249879",
"0.5249766",
"0.52476424",
"0.52447534",
"0.5238364",
"0.52316946",
"0.52309597",
"0.52308846",
"0.5225883",
"0.5223006",
"0.52158034",
"0.5215295",
"0.5214578",
"0.5205377",
"0.51992106",
"0.5189863",
"0.51856333",
"0.5185279",
"0.5179929",
"0.51792306",
"0.5179208",
"0.51784956",
"0.5153981",
"0.51533186",
"0.5152661",
"0.514974",
"0.51477605",
"0.51399446",
"0.5139098",
"0.51240915"
] |
0.0
|
-1
|
The status of all the requests to other nodes repeated .NodeReplicationStatus nodeStatusList = 3;
|
public entities.Torrent.NodeReplicationStatus.Builder getNodeStatusListBuilder(
int index) {
return getNodeStatusListFieldBuilder().getBuilder(index);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"entities.Torrent.NodeReplicationStatus getNodeStatusList(int index);",
"@java.lang.Override\n public java.util.List<entities.Torrent.NodeReplicationStatus> getNodeStatusListList() {\n return nodeStatusList_;\n }",
"java.util.List<entities.Torrent.NodeReplicationStatus>\n getNodeStatusListList();",
"public java.util.List<entities.Torrent.NodeReplicationStatus> getNodeStatusListList() {\n if (nodeStatusListBuilder_ == null) {\n return java.util.Collections.unmodifiableList(nodeStatusList_);\n } else {\n return nodeStatusListBuilder_.getMessageList();\n }\n }",
"@java.lang.Override\n public java.util.List<? extends entities.Torrent.NodeReplicationStatusOrBuilder>\n getNodeStatusListOrBuilderList() {\n return nodeStatusList_;\n }",
"public java.util.List<? extends entities.Torrent.NodeReplicationStatusOrBuilder>\n getNodeStatusListOrBuilderList() {\n if (nodeStatusListBuilder_ != null) {\n return nodeStatusListBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(nodeStatusList_);\n }\n }",
"@java.lang.Override\n public int getNodeStatusListCount() {\n return nodeStatusList_.size();\n }",
"java.util.List<? extends entities.Torrent.NodeReplicationStatusOrBuilder>\n getNodeStatusListOrBuilderList();",
"public entities.Torrent.NodeReplicationStatus.Builder addNodeStatusListBuilder() {\n return getNodeStatusListFieldBuilder().addBuilder(\n entities.Torrent.NodeReplicationStatus.getDefaultInstance());\n }",
"int getNodeStatusListCount();",
"@java.lang.Override\n public entities.Torrent.NodeReplicationStatus getNodeStatusList(int index) {\n return nodeStatusList_.get(index);\n }",
"entities.Torrent.NodeReplicationStatusOrBuilder getNodeStatusListOrBuilder(\n int index);",
"@java.lang.Override\n public entities.Torrent.NodeReplicationStatusOrBuilder getNodeStatusListOrBuilder(\n int index) {\n return nodeStatusList_.get(index);\n }",
"public entities.Torrent.NodeReplicationStatus getNodeStatusList(int index) {\n if (nodeStatusListBuilder_ == null) {\n return nodeStatusList_.get(index);\n } else {\n return nodeStatusListBuilder_.getMessage(index);\n }\n }",
"public Builder addNodeStatusList(entities.Torrent.NodeReplicationStatus value) {\n if (nodeStatusListBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureNodeStatusListIsMutable();\n nodeStatusList_.add(value);\n onChanged();\n } else {\n nodeStatusListBuilder_.addMessage(value);\n }\n return this;\n }",
"public Builder addAllNodeStatusList(\n java.lang.Iterable<? extends entities.Torrent.NodeReplicationStatus> values) {\n if (nodeStatusListBuilder_ == null) {\n ensureNodeStatusListIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, nodeStatusList_);\n onChanged();\n } else {\n nodeStatusListBuilder_.addAllMessages(values);\n }\n return this;\n }",
"public entities.Torrent.NodeReplicationStatusOrBuilder getNodeStatusListOrBuilder(\n int index) {\n if (nodeStatusListBuilder_ == null) {\n return nodeStatusList_.get(index); } else {\n return nodeStatusListBuilder_.getMessageOrBuilder(index);\n }\n }",
"public int getNodeStatusListCount() {\n if (nodeStatusListBuilder_ == null) {\n return nodeStatusList_.size();\n } else {\n return nodeStatusListBuilder_.getCount();\n }\n }",
"public final int[] cacheNodeStatus() {\n return new int[]{0,0,0,0,0,0,0,0,0,0};\r\n }",
"public java.util.List<entities.Torrent.NodeReplicationStatus.Builder>\n getNodeStatusListBuilderList() {\n return getNodeStatusListFieldBuilder().getBuilderList();\n }",
"public Builder setNodeStatusList(\n int index, entities.Torrent.NodeReplicationStatus value) {\n if (nodeStatusListBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureNodeStatusListIsMutable();\n nodeStatusList_.set(index, value);\n onChanged();\n } else {\n nodeStatusListBuilder_.setMessage(index, value);\n }\n return this;\n }",
"private NodeReplicationStatus(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"int getReplicationCount();",
"public Builder addNodeStatusList(\n int index, entities.Torrent.NodeReplicationStatus value) {\n if (nodeStatusListBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureNodeStatusListIsMutable();\n nodeStatusList_.add(index, value);\n onChanged();\n } else {\n nodeStatusListBuilder_.addMessage(index, value);\n }\n return this;\n }",
"public entities.Torrent.NodeReplicationStatus.Builder addNodeStatusListBuilder(\n int index) {\n return getNodeStatusListFieldBuilder().addBuilder(\n index, entities.Torrent.NodeReplicationStatus.getDefaultInstance());\n }",
"public int getNumNodesSeenByMessage() {\r\n return numNodesSeenByMessage;\r\n }",
"public abstract String getNodeStatusVariableName();",
"public Builder addNodeStatusList(\n entities.Torrent.NodeReplicationStatus.Builder builderForValue) {\n if (nodeStatusListBuilder_ == null) {\n ensureNodeStatusListIsMutable();\n nodeStatusList_.add(builderForValue.build());\n onChanged();\n } else {\n nodeStatusListBuilder_.addMessage(builderForValue.build());\n }\n return this;\n }",
"java.util.List<io.netifi.proteus.admin.om.Node> \n getNodesList();",
"public void list() {\r\n\t\tfor (String key : nodeMap.keySet()) {\r\n\t\t\tNodeRef node = nodeMap.get(key);\r\n\t\t\tSystem.out.println(node.getIp() + \" : \" + node.getPort());\r\n\t\t}\t\t\r\n\t}",
"public static int countNodes() {\n\t\treturn count_nodes;\n\t}",
"default Promise<List<String>> findAllNodesWithStatus(HealthStatus queryStatus) {\n final Promise<List<String>> promise = Promises.promise();\n promise.resolve(Collections.emptyList());\n return promise;\n\n }",
"@Override\n\tpublic long numNodes() {\n\t\treturn numNodes;\n\t}",
"public java.util.List<entities.Torrent.NodeId> getNodesList() {\n if (nodesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(nodes_);\n } else {\n return nodesBuilder_.getMessageList();\n }\n }",
"public NodeInformation[] getNodes() throws CassandraServerManagementException {\r\n StorageServiceMBean ssMBean = null;\r\n try {\r\n ssMBean = CassandraAdminDataHolder\r\n .getInstance().getCassandraMBeanLocator().locateStorageServiceMBean();\r\n } catch (CassandraServerManagementException e) {\r\n handleException(\"Error occurred while retrieving node information list\", e);\r\n }\r\n\r\n if (ssMBean == null) {\r\n handleException(\"Storage Server MBean is null\");\r\n }\r\n\r\n Map<String, String> tokenToEndpoint = ssMBean.getTokenToEndpointMap();\r\n List<String> sortedTokens = new ArrayList<String>(tokenToEndpoint.keySet());\r\n Collections.sort(sortedTokens);\r\n\r\n /* Calculate per-token ownership of the ring */\r\n Map<InetAddress, Float> ownerships = ssMBean.getOwnership();\r\n\r\n List<NodeInformation> nodeInfoList = new ArrayList<NodeInformation>();\r\n for (String token : sortedTokens) {\r\n String primaryEndpoint = tokenToEndpoint.get(token);\r\n String status = ssMBean.getLiveNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_UP\r\n : ssMBean.getUnreachableNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_DOWN\r\n : CassandraManagementConstants.NodeStatuses.NODE_STATUS_UNKNOWN;\r\n\r\n String state = ssMBean.getJoiningNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_JOINING\r\n : ssMBean.getLeavingNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_LEAVING\r\n : CassandraManagementConstants.NodeStatuses.NODE_STATUS_NORMAL;\r\n\r\n Map<String, String> loadMap = ssMBean.getLoadMap();\r\n String load = loadMap.containsKey(primaryEndpoint)\r\n ? loadMap.get(primaryEndpoint)\r\n : CassandraManagementConstants.NodeStatuses.NODE_STATUS_UNKNOWN;\r\n\r\n Float ownership = ownerships.get(token);\r\n String owns = \"N/A\";\r\n if(ownership!=null){\r\n owns = new DecimalFormat(\"##0.00%\").format(ownership);\r\n }\r\n NodeInformation nodeInfo = new NodeInformation();\r\n nodeInfo.setAddress(primaryEndpoint);\r\n nodeInfo.setState(state);\r\n nodeInfo.setStatus(status);\r\n nodeInfo.setOwn(owns);\r\n nodeInfo.setLoad(load);\r\n nodeInfo.setToken(token);\r\n nodeInfoList.add(nodeInfo);\r\n }\r\n return nodeInfoList.toArray(new NodeInformation[nodeInfoList.size()]);\r\n }",
"public String replicationState() {\n return this.replicationState;\n }",
"@Override\n public boolean getCurrentNodeStatus(InetAddress ia) {\n if (ia.isAnyLocalAddress()) {\n return true;\n }\n // Check if given address is in cluster\n for (Client c : instance.getClientService().getConnectedClients()) {\n if (c.getSocketAddress().getAddress().equals(ia)) {\n return true;\n }\n }\n // reject all other addresses\n return false;\n }",
"int numNodes() {\n\t\treturn num_nodes;\n\t}",
"private int numNodes()\r\n\t{\r\n\t return nodeMap.size();\r\n\t}",
"public int lockedNodeCount() {\n\treturn lockedNodes;\n }",
"@Override\n\tpublic Collection<TaskStatus> getTaskStatus(){\n \tcheckInitialized();\n \t\n \t@SuppressWarnings(\"unchecked\")\n\t\tCollection<Collection<TaskStatus>> statusTree=Collections.EMPTY_LIST;\n \tfinal MultiTask<Collection<TaskStatus>> mtask;\n \ttry {\n\t\t\t mtask = breeder.executeCallable(new GetTaskStatus(this));\n\t\t\t statusTree = mtask.get();\n \t} catch (ExecutionException ex){\n \t\tlog.fatal(\"Could not get status of tasks for job \"+this.getId(), ex);\n \t} catch(InterruptedException ex) {\n \t\tlog.fatal(\"Could not get status of tasks for job \"+this.getId(), ex);\n \t}\n\t\t\t\n\t\t// Flatten into single collection\n\t\tList<TaskStatus> result = new ArrayList<TaskStatus>((int)(statusTree.size()*this.getThreadCount()));\n\t\tfor(Collection<TaskStatus> statusForNode: statusTree) {\n\t\t\tresult.addAll(statusForNode);\n\t\t}\n\t\t\n\t\treturn result;\n \n\t}",
"int getNodeCount() {\n\t\treturn m_list_nodes.size();\n\t}",
"int getNodesCount();",
"int getNodesCount();",
"public java.util.List<java.lang.Integer>\n getStatusList() {\n return status_;\n }",
"public static int getNumberOfNodes() {\n return(numberOfNodes);\n\t }",
"@java.lang.Override\n public int getNodesCount() {\n return nodes_.size();\n }",
"private NodeRestartRequest() {\n\t\t}",
"java.util.List<entities.Torrent.NodeId>\n getNodesList();",
"List<CommunicationLink> getAllNodes()\n {\n return new ArrayList<>(allNodes.values());\n }",
"public ODocument clusterStatus() {\n checkConnected();\n return remote.getClusterStatus(user, password);\n }",
"public StatusChecker(Node node){\n this.node=node;\n start();\n }",
"public Builder clearNodeStatusList() {\n if (nodeStatusListBuilder_ == null) {\n nodeStatusList_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n nodeStatusListBuilder_.clear();\n }\n return this;\n }",
"@java.lang.Override\n public java.util.List<entities.Torrent.NodeId> getNodesList() {\n return nodes_;\n }",
"public int getNumberOfNodesEvaluated();",
"java.util.List<java.lang.Integer> getStatusList();",
"private List<Node> getNodes() {\n List<Node> nodes = new ArrayList<Node>();\n NodeApi.GetConnectedNodesResult rawNodes =\n Wearable.NodeApi.getConnectedNodes(mGoogleApiClient).await();\n for (Node node : rawNodes.getNodes()) {\n nodes.add(node);\n }\n return nodes;\n }",
"public int numNodes() {\n\t\treturn numNodes;\n\t}",
"void updateRmiClientsCount() {\n int noOfClientsConnected = 0;\n\n String[] connectionIds = rmiConnector.getConnectionIds();\n\n if (connectionIds != null) {\n noOfClientsConnected = connectionIds.length;\n }\n\n logger.info(\"No. of RMI clients connected :: {}\", noOfClientsConnected);\n\n AdminDistributedSystemJmxImpl adminDSJmx = (AdminDistributedSystemJmxImpl) system;\n\n adminDSJmx.setRmiClientCountZero(noOfClientsConnected == 0);\n }",
"public int getReplicationDegree() {\n return replicationDegree;\n }",
"public int getReplicationDegree() {\n return replicationDegree;\n }",
"public List<NetworkNode> listNetworkNode();",
"private void updateGeoRepStatus(GlusterVolumeEntity volume, GlusterGeoRepSession session) {\n\n List<HashSet<GeoRepSessionStatus>> list = new ArrayList<>();\n // grouped node status\n int replicaCount = volume.getReplicaCount() == 0 ? 1 : volume.getReplicaCount();\n for (int i = 0; i < volume.getBricks().size(); i = i + replicaCount) {\n HashSet<GeoRepSessionStatus> subVolumeStatusSet = new HashSet<>();\n int j = 0;\n while (j < replicaCount) {\n Guid brickId = volume.getBricks().get(i + j).getId();\n subVolumeStatusSet.add(getStatusForBrickFromSession(session, brickId));\n j++;\n }\n list.add(subVolumeStatusSet);\n }\n\n session.setStatus(GeoRepSessionStatus.ACTIVE);\n // iterate through grouped status to set consolidated status\n for (HashSet<GeoRepSessionStatus> subVolumeStatusValues : list) {\n if (subVolumeStatusValues.contains(GeoRepSessionStatus.ACTIVE)) {\n // healthy\n continue;\n } else if (subVolumeStatusValues.contains(GeoRepSessionStatus.FAULTY)) {\n session.setStatus(GeoRepSessionStatus.FAULTY);\n // if any one of the sub-volume is faulty, the overall session status if faulty\n return;\n }\n // override status in case of these values\n if (ArrayUtils.contains(overridableStatuses, session.getStatus())) {\n if (subVolumeStatusValues.size() == 1) {\n session.setStatus((GeoRepSessionStatus) subVolumeStatusValues.toArray()[0]);\n } else {\n // if status values in sub-volume are not the same, what do we do?\n // this should not happen, so we'll log it for now\n log.info(\"Multiple status values found in volume '{}'\", session.getMasterVolumeName());\n }\n }\n }\n\n }",
"@SuppressWarnings(\"unused\")\n private ReplicationStatusResponse() {\n this(false);\n }",
"int getNrNodes() {\n\t\treturn adjList.size();\n\t}",
"int getNodeCount();",
"int getNodeCount();",
"public int getConnectionStatus()\r\n { return connectionStatus; }",
"public int getNodeCount() {\n return nodeCount;\n }",
"public int getNetworkNodesNumber() {\n\t\t\n\t\t//Return nodes size\n\t\treturn nodes.size();\n\t\t\n\t}",
"void nodeOnline();",
"public static String getClusterStatusNodePath() {\n return String.join(\"/\", \"\", ROOT_NODE, COMPUTE_NODE, STATUS_NODE);\n }",
"@Override\n protected int minimumNumberOfReplicas() {\n return 1;\n }",
"@Override\n public void statusUpdate(final String asgName, final ASGStatus newStatus, final boolean isReplication) {\n if (isReplication) {\n return;\n }\n for (final PeerEurekaNode node : peerEurekaNodes.getPeerEurekaNodes()) {\n replicateASGInfoToReplicaNodes(asgName, newStatus, node);\n\n }\n }",
"@PostMapping(\"/queryGroupStatus/list\")\n @PreAuthorize(ConstantProperties.HAS_ROLE_ADMIN)\n public BaseResponse getGroupStatusList(@Valid @RequestBody ReqGroupStatus reqGroupStatus) throws NodeMgrException {\n Instant startTime = Instant.now();\n BaseResponse baseResponse = new BaseResponse(ConstantCode.SUCCESS);\n log.info(\"start getGroupStatusMap startTime:{}\", startTime.toEpochMilli());\n List<String> nodeIdList = reqGroupStatus.getNodeIdList();\n List<RspGroupStatus> resList = groupService.listGroupStatus(nodeIdList,\n reqGroupStatus.getGroupIdList());\n baseResponse.setData(resList);\n log.info(\"end getGroupStatusMap useTime:{} result:{}\",\n Duration.between(startTime, Instant.now()).toMillis(),\n JsonTools.toJSONString(baseResponse));\n return baseResponse;\n }",
"public String getNumberOfNodesEvaluated(){return Integer.toString(NumberOfVisitedNodes);}",
"private void getNodesCount(HttpServletRequest request, HttpServletResponse response) throws IOException {\n int countNodes = SimApi.getNodesCount();\n response.getWriter().write(Integer.toString(countNodes));\n }",
"java.util.List<? extends io.netifi.proteus.admin.om.NodeOrBuilder> \n getNodesOrBuilderList();",
"@Test(timeout = 10000L)\n public void testNodesInformation() throws Exception {\n CommonDriverAdminTests.testNodesInformation(client, nbNodes);\n }",
"public int getNumNodes() {\n\t\treturn nodes.size();\n\t}",
"@RequestLine(\"GET /status\")\n Status getNeustarNetworkStatus();",
"public void printStatus(){\n System.out.println(\"Nodes: \" + \n getVertexCount() + \" Edges: \" + \n getEdgeCount()); \n //and \" + getEdgeCount() + \" edges active.\");\n }",
"public abstract Collection<Node> getAllSuccessors();",
"public int getStatusCount() {\n return status_.size();\n }",
"public List<Long> getSessionNodes() {\n List<Long> ret = new ArrayList<>();\n\n for (int i = 0; i < sessionsList.size(); i++) {\n ret.add(sessionsList.get(i).dhtNodes());\n }\n\n return ret;\n }",
"@Override\n public ClusterStatus getCurrentClusterStatus() {\n if (getMemberList().size() > 1) {\n return CLUSTER_FUNCTIONAL;\n }\n // when only one node is connected return degraded\n if (getMemberList().size() == 1) {\n return CLUSTER_DEGRADED;\n }\n // consider all other states as illegal\n return CLUSTER_ILLEGAL;\n }",
"public int getNodeCount() {\n return node_.size();\n }",
"private void refreshNodeList() {\n if (UnderNet.router.status.equals(InterfaceStatus.STARTED)) {\n //Using connected and cached nodes if the router has started.\n ArrayList<Node> nodesToList = UnderNet.router.getConnectedNodes();\n for (Node cachedNode :\n EntryNodeCache.cachedNodes) {\n boolean canAdd = true;\n for (Node connectedNode : UnderNet.router.getConnectedNodes()) {\n if (cachedNode.getAddress().equals(connectedNode.getAddress())) {\n canAdd = false;\n }\n }\n if (canAdd) {\n nodesToList.add(cachedNode);\n }\n }\n nodeList.setListData(nodesToList.toArray());\n } else {\n //Using cached nodes if the router isn't online.\n nodeList.setListData(EntryNodeCache.cachedNodes.toArray());\n }\n }",
"int getStatusCount();",
"List<StatusListener> mo9950b();",
"public List<Output<TInt32>> nodeIdsList() {\n return nodeIdsList;\n }",
"public Builder setNodeStatusList(\n int index, entities.Torrent.NodeReplicationStatus.Builder builderForValue) {\n if (nodeStatusListBuilder_ == null) {\n ensureNodeStatusListIsMutable();\n nodeStatusList_.set(index, builderForValue.build());\n onChanged();\n } else {\n nodeStatusListBuilder_.setMessage(index, builderForValue.build());\n }\n return this;\n }",
"@Override\r\n\tpublic int getNumberOfNodes() {\n\t\treturn 0;\r\n\t}",
"public java.util.List<? extends entities.Torrent.NodeIdOrBuilder>\n getNodesOrBuilderList() {\n if (nodesBuilder_ != null) {\n return nodesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(nodes_);\n }\n }",
"@Override\n public void onNewClusterState(ClusterState state) {\n transportService.sendRequest(\n clusterService.localNode(),\n transportReplicaAction,\n replicaRequest,\n new ActionListenerResponseHandler<>(onCompletionListener, ReplicaResponse::new)\n );\n }",
"public java.util.List<java.lang.Integer>\n getStatusList() {\n return java.util.Collections.unmodifiableList(status_);\n }",
"void refreshNodeHostCount(int nodeHostCount);",
"protected int numNodes() {\n\t\treturn nodes.size();\n\t}",
"public static void getStatus() {\n\t\ttry {\n\t\t\tint i = 1;\n\t\t\tList<Object[]>serverDetails = ServerStatus.getServerDetails();\n\t\t\tfor (Object[] servers:serverDetails){\n\t\t\t\tServerStatus.verifyServerStatus(i,(String)servers[0], (String)servers[1], (String)servers[2]);\n\t\t\t\ti++;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tcatch (Exception ex){\n\t\t\tex.printStackTrace();\n\t\t}\n\t}",
"public Vector<Node> getNodes(){\n\t\treturn this.listOfNodes;\n\t}"
] |
[
"0.76754725",
"0.7330513",
"0.7273623",
"0.7185904",
"0.71540165",
"0.711505",
"0.71102214",
"0.7056519",
"0.7022613",
"0.6881543",
"0.68746865",
"0.68614775",
"0.6730206",
"0.66633195",
"0.6638524",
"0.6558738",
"0.6554595",
"0.6390956",
"0.6324348",
"0.6301884",
"0.62128437",
"0.6153897",
"0.6058742",
"0.60192406",
"0.596705",
"0.57494354",
"0.5748884",
"0.5723979",
"0.570223",
"0.5561525",
"0.5554988",
"0.5542978",
"0.5536758",
"0.5529717",
"0.5515723",
"0.5507869",
"0.5477924",
"0.545919",
"0.5453382",
"0.5440473",
"0.5432976",
"0.5413977",
"0.54059",
"0.54059",
"0.53920895",
"0.53919417",
"0.538495",
"0.53726",
"0.5371442",
"0.53705126",
"0.53690714",
"0.53564674",
"0.53378046",
"0.5328064",
"0.5315124",
"0.5306361",
"0.5305867",
"0.5297228",
"0.52948767",
"0.5292507",
"0.5292507",
"0.5286415",
"0.5276344",
"0.52740955",
"0.5273183",
"0.527266",
"0.527266",
"0.5272264",
"0.52635926",
"0.526193",
"0.52519333",
"0.52507585",
"0.5248499",
"0.52444947",
"0.52385783",
"0.5235392",
"0.52331",
"0.5231807",
"0.52273303",
"0.5224498",
"0.5218425",
"0.52174264",
"0.52173257",
"0.520692",
"0.5199218",
"0.5191387",
"0.51871306",
"0.5186112",
"0.5181667",
"0.5179533",
"0.51790094",
"0.51782185",
"0.51557237",
"0.5153083",
"0.5153054",
"0.5149576",
"0.51491016",
"0.5141703",
"0.51399857",
"0.51249874"
] |
0.5719001
|
28
|
The status of all the requests to other nodes repeated .NodeReplicationStatus nodeStatusList = 3;
|
public entities.Torrent.NodeReplicationStatusOrBuilder getNodeStatusListOrBuilder(
int index) {
if (nodeStatusListBuilder_ == null) {
return nodeStatusList_.get(index); } else {
return nodeStatusListBuilder_.getMessageOrBuilder(index);
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"entities.Torrent.NodeReplicationStatus getNodeStatusList(int index);",
"@java.lang.Override\n public java.util.List<entities.Torrent.NodeReplicationStatus> getNodeStatusListList() {\n return nodeStatusList_;\n }",
"java.util.List<entities.Torrent.NodeReplicationStatus>\n getNodeStatusListList();",
"public java.util.List<entities.Torrent.NodeReplicationStatus> getNodeStatusListList() {\n if (nodeStatusListBuilder_ == null) {\n return java.util.Collections.unmodifiableList(nodeStatusList_);\n } else {\n return nodeStatusListBuilder_.getMessageList();\n }\n }",
"@java.lang.Override\n public java.util.List<? extends entities.Torrent.NodeReplicationStatusOrBuilder>\n getNodeStatusListOrBuilderList() {\n return nodeStatusList_;\n }",
"public java.util.List<? extends entities.Torrent.NodeReplicationStatusOrBuilder>\n getNodeStatusListOrBuilderList() {\n if (nodeStatusListBuilder_ != null) {\n return nodeStatusListBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(nodeStatusList_);\n }\n }",
"@java.lang.Override\n public int getNodeStatusListCount() {\n return nodeStatusList_.size();\n }",
"java.util.List<? extends entities.Torrent.NodeReplicationStatusOrBuilder>\n getNodeStatusListOrBuilderList();",
"public entities.Torrent.NodeReplicationStatus.Builder addNodeStatusListBuilder() {\n return getNodeStatusListFieldBuilder().addBuilder(\n entities.Torrent.NodeReplicationStatus.getDefaultInstance());\n }",
"int getNodeStatusListCount();",
"@java.lang.Override\n public entities.Torrent.NodeReplicationStatus getNodeStatusList(int index) {\n return nodeStatusList_.get(index);\n }",
"entities.Torrent.NodeReplicationStatusOrBuilder getNodeStatusListOrBuilder(\n int index);",
"@java.lang.Override\n public entities.Torrent.NodeReplicationStatusOrBuilder getNodeStatusListOrBuilder(\n int index) {\n return nodeStatusList_.get(index);\n }",
"public entities.Torrent.NodeReplicationStatus getNodeStatusList(int index) {\n if (nodeStatusListBuilder_ == null) {\n return nodeStatusList_.get(index);\n } else {\n return nodeStatusListBuilder_.getMessage(index);\n }\n }",
"public Builder addNodeStatusList(entities.Torrent.NodeReplicationStatus value) {\n if (nodeStatusListBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureNodeStatusListIsMutable();\n nodeStatusList_.add(value);\n onChanged();\n } else {\n nodeStatusListBuilder_.addMessage(value);\n }\n return this;\n }",
"public Builder addAllNodeStatusList(\n java.lang.Iterable<? extends entities.Torrent.NodeReplicationStatus> values) {\n if (nodeStatusListBuilder_ == null) {\n ensureNodeStatusListIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, nodeStatusList_);\n onChanged();\n } else {\n nodeStatusListBuilder_.addAllMessages(values);\n }\n return this;\n }",
"public int getNodeStatusListCount() {\n if (nodeStatusListBuilder_ == null) {\n return nodeStatusList_.size();\n } else {\n return nodeStatusListBuilder_.getCount();\n }\n }",
"public final int[] cacheNodeStatus() {\n return new int[]{0,0,0,0,0,0,0,0,0,0};\r\n }",
"public java.util.List<entities.Torrent.NodeReplicationStatus.Builder>\n getNodeStatusListBuilderList() {\n return getNodeStatusListFieldBuilder().getBuilderList();\n }",
"public Builder setNodeStatusList(\n int index, entities.Torrent.NodeReplicationStatus value) {\n if (nodeStatusListBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureNodeStatusListIsMutable();\n nodeStatusList_.set(index, value);\n onChanged();\n } else {\n nodeStatusListBuilder_.setMessage(index, value);\n }\n return this;\n }",
"private NodeReplicationStatus(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"int getReplicationCount();",
"public Builder addNodeStatusList(\n int index, entities.Torrent.NodeReplicationStatus value) {\n if (nodeStatusListBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureNodeStatusListIsMutable();\n nodeStatusList_.add(index, value);\n onChanged();\n } else {\n nodeStatusListBuilder_.addMessage(index, value);\n }\n return this;\n }",
"public entities.Torrent.NodeReplicationStatus.Builder addNodeStatusListBuilder(\n int index) {\n return getNodeStatusListFieldBuilder().addBuilder(\n index, entities.Torrent.NodeReplicationStatus.getDefaultInstance());\n }",
"public int getNumNodesSeenByMessage() {\r\n return numNodesSeenByMessage;\r\n }",
"public abstract String getNodeStatusVariableName();",
"public Builder addNodeStatusList(\n entities.Torrent.NodeReplicationStatus.Builder builderForValue) {\n if (nodeStatusListBuilder_ == null) {\n ensureNodeStatusListIsMutable();\n nodeStatusList_.add(builderForValue.build());\n onChanged();\n } else {\n nodeStatusListBuilder_.addMessage(builderForValue.build());\n }\n return this;\n }",
"public entities.Torrent.NodeReplicationStatus.Builder getNodeStatusListBuilder(\n int index) {\n return getNodeStatusListFieldBuilder().getBuilder(index);\n }",
"java.util.List<io.netifi.proteus.admin.om.Node> \n getNodesList();",
"public void list() {\r\n\t\tfor (String key : nodeMap.keySet()) {\r\n\t\t\tNodeRef node = nodeMap.get(key);\r\n\t\t\tSystem.out.println(node.getIp() + \" : \" + node.getPort());\r\n\t\t}\t\t\r\n\t}",
"public static int countNodes() {\n\t\treturn count_nodes;\n\t}",
"default Promise<List<String>> findAllNodesWithStatus(HealthStatus queryStatus) {\n final Promise<List<String>> promise = Promises.promise();\n promise.resolve(Collections.emptyList());\n return promise;\n\n }",
"@Override\n\tpublic long numNodes() {\n\t\treturn numNodes;\n\t}",
"public java.util.List<entities.Torrent.NodeId> getNodesList() {\n if (nodesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(nodes_);\n } else {\n return nodesBuilder_.getMessageList();\n }\n }",
"public NodeInformation[] getNodes() throws CassandraServerManagementException {\r\n StorageServiceMBean ssMBean = null;\r\n try {\r\n ssMBean = CassandraAdminDataHolder\r\n .getInstance().getCassandraMBeanLocator().locateStorageServiceMBean();\r\n } catch (CassandraServerManagementException e) {\r\n handleException(\"Error occurred while retrieving node information list\", e);\r\n }\r\n\r\n if (ssMBean == null) {\r\n handleException(\"Storage Server MBean is null\");\r\n }\r\n\r\n Map<String, String> tokenToEndpoint = ssMBean.getTokenToEndpointMap();\r\n List<String> sortedTokens = new ArrayList<String>(tokenToEndpoint.keySet());\r\n Collections.sort(sortedTokens);\r\n\r\n /* Calculate per-token ownership of the ring */\r\n Map<InetAddress, Float> ownerships = ssMBean.getOwnership();\r\n\r\n List<NodeInformation> nodeInfoList = new ArrayList<NodeInformation>();\r\n for (String token : sortedTokens) {\r\n String primaryEndpoint = tokenToEndpoint.get(token);\r\n String status = ssMBean.getLiveNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_UP\r\n : ssMBean.getUnreachableNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_DOWN\r\n : CassandraManagementConstants.NodeStatuses.NODE_STATUS_UNKNOWN;\r\n\r\n String state = ssMBean.getJoiningNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_JOINING\r\n : ssMBean.getLeavingNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_LEAVING\r\n : CassandraManagementConstants.NodeStatuses.NODE_STATUS_NORMAL;\r\n\r\n Map<String, String> loadMap = ssMBean.getLoadMap();\r\n String load = loadMap.containsKey(primaryEndpoint)\r\n ? loadMap.get(primaryEndpoint)\r\n : CassandraManagementConstants.NodeStatuses.NODE_STATUS_UNKNOWN;\r\n\r\n Float ownership = ownerships.get(token);\r\n String owns = \"N/A\";\r\n if(ownership!=null){\r\n owns = new DecimalFormat(\"##0.00%\").format(ownership);\r\n }\r\n NodeInformation nodeInfo = new NodeInformation();\r\n nodeInfo.setAddress(primaryEndpoint);\r\n nodeInfo.setState(state);\r\n nodeInfo.setStatus(status);\r\n nodeInfo.setOwn(owns);\r\n nodeInfo.setLoad(load);\r\n nodeInfo.setToken(token);\r\n nodeInfoList.add(nodeInfo);\r\n }\r\n return nodeInfoList.toArray(new NodeInformation[nodeInfoList.size()]);\r\n }",
"public String replicationState() {\n return this.replicationState;\n }",
"@Override\n public boolean getCurrentNodeStatus(InetAddress ia) {\n if (ia.isAnyLocalAddress()) {\n return true;\n }\n // Check if given address is in cluster\n for (Client c : instance.getClientService().getConnectedClients()) {\n if (c.getSocketAddress().getAddress().equals(ia)) {\n return true;\n }\n }\n // reject all other addresses\n return false;\n }",
"int numNodes() {\n\t\treturn num_nodes;\n\t}",
"private int numNodes()\r\n\t{\r\n\t return nodeMap.size();\r\n\t}",
"public int lockedNodeCount() {\n\treturn lockedNodes;\n }",
"@Override\n\tpublic Collection<TaskStatus> getTaskStatus(){\n \tcheckInitialized();\n \t\n \t@SuppressWarnings(\"unchecked\")\n\t\tCollection<Collection<TaskStatus>> statusTree=Collections.EMPTY_LIST;\n \tfinal MultiTask<Collection<TaskStatus>> mtask;\n \ttry {\n\t\t\t mtask = breeder.executeCallable(new GetTaskStatus(this));\n\t\t\t statusTree = mtask.get();\n \t} catch (ExecutionException ex){\n \t\tlog.fatal(\"Could not get status of tasks for job \"+this.getId(), ex);\n \t} catch(InterruptedException ex) {\n \t\tlog.fatal(\"Could not get status of tasks for job \"+this.getId(), ex);\n \t}\n\t\t\t\n\t\t// Flatten into single collection\n\t\tList<TaskStatus> result = new ArrayList<TaskStatus>((int)(statusTree.size()*this.getThreadCount()));\n\t\tfor(Collection<TaskStatus> statusForNode: statusTree) {\n\t\t\tresult.addAll(statusForNode);\n\t\t}\n\t\t\n\t\treturn result;\n \n\t}",
"int getNodeCount() {\n\t\treturn m_list_nodes.size();\n\t}",
"int getNodesCount();",
"int getNodesCount();",
"public java.util.List<java.lang.Integer>\n getStatusList() {\n return status_;\n }",
"public static int getNumberOfNodes() {\n return(numberOfNodes);\n\t }",
"@java.lang.Override\n public int getNodesCount() {\n return nodes_.size();\n }",
"java.util.List<entities.Torrent.NodeId>\n getNodesList();",
"List<CommunicationLink> getAllNodes()\n {\n return new ArrayList<>(allNodes.values());\n }",
"private NodeRestartRequest() {\n\t\t}",
"public ODocument clusterStatus() {\n checkConnected();\n return remote.getClusterStatus(user, password);\n }",
"public StatusChecker(Node node){\n this.node=node;\n start();\n }",
"public Builder clearNodeStatusList() {\n if (nodeStatusListBuilder_ == null) {\n nodeStatusList_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n nodeStatusListBuilder_.clear();\n }\n return this;\n }",
"@java.lang.Override\n public java.util.List<entities.Torrent.NodeId> getNodesList() {\n return nodes_;\n }",
"public int getNumberOfNodesEvaluated();",
"private List<Node> getNodes() {\n List<Node> nodes = new ArrayList<Node>();\n NodeApi.GetConnectedNodesResult rawNodes =\n Wearable.NodeApi.getConnectedNodes(mGoogleApiClient).await();\n for (Node node : rawNodes.getNodes()) {\n nodes.add(node);\n }\n return nodes;\n }",
"java.util.List<java.lang.Integer> getStatusList();",
"public int numNodes() {\n\t\treturn numNodes;\n\t}",
"void updateRmiClientsCount() {\n int noOfClientsConnected = 0;\n\n String[] connectionIds = rmiConnector.getConnectionIds();\n\n if (connectionIds != null) {\n noOfClientsConnected = connectionIds.length;\n }\n\n logger.info(\"No. of RMI clients connected :: {}\", noOfClientsConnected);\n\n AdminDistributedSystemJmxImpl adminDSJmx = (AdminDistributedSystemJmxImpl) system;\n\n adminDSJmx.setRmiClientCountZero(noOfClientsConnected == 0);\n }",
"public int getReplicationDegree() {\n return replicationDegree;\n }",
"public int getReplicationDegree() {\n return replicationDegree;\n }",
"public List<NetworkNode> listNetworkNode();",
"private void updateGeoRepStatus(GlusterVolumeEntity volume, GlusterGeoRepSession session) {\n\n List<HashSet<GeoRepSessionStatus>> list = new ArrayList<>();\n // grouped node status\n int replicaCount = volume.getReplicaCount() == 0 ? 1 : volume.getReplicaCount();\n for (int i = 0; i < volume.getBricks().size(); i = i + replicaCount) {\n HashSet<GeoRepSessionStatus> subVolumeStatusSet = new HashSet<>();\n int j = 0;\n while (j < replicaCount) {\n Guid brickId = volume.getBricks().get(i + j).getId();\n subVolumeStatusSet.add(getStatusForBrickFromSession(session, brickId));\n j++;\n }\n list.add(subVolumeStatusSet);\n }\n\n session.setStatus(GeoRepSessionStatus.ACTIVE);\n // iterate through grouped status to set consolidated status\n for (HashSet<GeoRepSessionStatus> subVolumeStatusValues : list) {\n if (subVolumeStatusValues.contains(GeoRepSessionStatus.ACTIVE)) {\n // healthy\n continue;\n } else if (subVolumeStatusValues.contains(GeoRepSessionStatus.FAULTY)) {\n session.setStatus(GeoRepSessionStatus.FAULTY);\n // if any one of the sub-volume is faulty, the overall session status if faulty\n return;\n }\n // override status in case of these values\n if (ArrayUtils.contains(overridableStatuses, session.getStatus())) {\n if (subVolumeStatusValues.size() == 1) {\n session.setStatus((GeoRepSessionStatus) subVolumeStatusValues.toArray()[0]);\n } else {\n // if status values in sub-volume are not the same, what do we do?\n // this should not happen, so we'll log it for now\n log.info(\"Multiple status values found in volume '{}'\", session.getMasterVolumeName());\n }\n }\n }\n\n }",
"@SuppressWarnings(\"unused\")\n private ReplicationStatusResponse() {\n this(false);\n }",
"int getNrNodes() {\n\t\treturn adjList.size();\n\t}",
"public int getConnectionStatus()\r\n { return connectionStatus; }",
"int getNodeCount();",
"int getNodeCount();",
"public int getNodeCount() {\n return nodeCount;\n }",
"public int getNetworkNodesNumber() {\n\t\t\n\t\t//Return nodes size\n\t\treturn nodes.size();\n\t\t\n\t}",
"void nodeOnline();",
"public static String getClusterStatusNodePath() {\n return String.join(\"/\", \"\", ROOT_NODE, COMPUTE_NODE, STATUS_NODE);\n }",
"@Override\n protected int minimumNumberOfReplicas() {\n return 1;\n }",
"@Override\n public void statusUpdate(final String asgName, final ASGStatus newStatus, final boolean isReplication) {\n if (isReplication) {\n return;\n }\n for (final PeerEurekaNode node : peerEurekaNodes.getPeerEurekaNodes()) {\n replicateASGInfoToReplicaNodes(asgName, newStatus, node);\n\n }\n }",
"@PostMapping(\"/queryGroupStatus/list\")\n @PreAuthorize(ConstantProperties.HAS_ROLE_ADMIN)\n public BaseResponse getGroupStatusList(@Valid @RequestBody ReqGroupStatus reqGroupStatus) throws NodeMgrException {\n Instant startTime = Instant.now();\n BaseResponse baseResponse = new BaseResponse(ConstantCode.SUCCESS);\n log.info(\"start getGroupStatusMap startTime:{}\", startTime.toEpochMilli());\n List<String> nodeIdList = reqGroupStatus.getNodeIdList();\n List<RspGroupStatus> resList = groupService.listGroupStatus(nodeIdList,\n reqGroupStatus.getGroupIdList());\n baseResponse.setData(resList);\n log.info(\"end getGroupStatusMap useTime:{} result:{}\",\n Duration.between(startTime, Instant.now()).toMillis(),\n JsonTools.toJSONString(baseResponse));\n return baseResponse;\n }",
"java.util.List<? extends io.netifi.proteus.admin.om.NodeOrBuilder> \n getNodesOrBuilderList();",
"public String getNumberOfNodesEvaluated(){return Integer.toString(NumberOfVisitedNodes);}",
"private void getNodesCount(HttpServletRequest request, HttpServletResponse response) throws IOException {\n int countNodes = SimApi.getNodesCount();\n response.getWriter().write(Integer.toString(countNodes));\n }",
"@Test(timeout = 10000L)\n public void testNodesInformation() throws Exception {\n CommonDriverAdminTests.testNodesInformation(client, nbNodes);\n }",
"public int getNumNodes() {\n\t\treturn nodes.size();\n\t}",
"public abstract Collection<Node> getAllSuccessors();",
"@RequestLine(\"GET /status\")\n Status getNeustarNetworkStatus();",
"public void printStatus(){\n System.out.println(\"Nodes: \" + \n getVertexCount() + \" Edges: \" + \n getEdgeCount()); \n //and \" + getEdgeCount() + \" edges active.\");\n }",
"public int getStatusCount() {\n return status_.size();\n }",
"public List<Long> getSessionNodes() {\n List<Long> ret = new ArrayList<>();\n\n for (int i = 0; i < sessionsList.size(); i++) {\n ret.add(sessionsList.get(i).dhtNodes());\n }\n\n return ret;\n }",
"@Override\n public ClusterStatus getCurrentClusterStatus() {\n if (getMemberList().size() > 1) {\n return CLUSTER_FUNCTIONAL;\n }\n // when only one node is connected return degraded\n if (getMemberList().size() == 1) {\n return CLUSTER_DEGRADED;\n }\n // consider all other states as illegal\n return CLUSTER_ILLEGAL;\n }",
"private void refreshNodeList() {\n if (UnderNet.router.status.equals(InterfaceStatus.STARTED)) {\n //Using connected and cached nodes if the router has started.\n ArrayList<Node> nodesToList = UnderNet.router.getConnectedNodes();\n for (Node cachedNode :\n EntryNodeCache.cachedNodes) {\n boolean canAdd = true;\n for (Node connectedNode : UnderNet.router.getConnectedNodes()) {\n if (cachedNode.getAddress().equals(connectedNode.getAddress())) {\n canAdd = false;\n }\n }\n if (canAdd) {\n nodesToList.add(cachedNode);\n }\n }\n nodeList.setListData(nodesToList.toArray());\n } else {\n //Using cached nodes if the router isn't online.\n nodeList.setListData(EntryNodeCache.cachedNodes.toArray());\n }\n }",
"public int getNodeCount() {\n return node_.size();\n }",
"public Builder setNodeStatusList(\n int index, entities.Torrent.NodeReplicationStatus.Builder builderForValue) {\n if (nodeStatusListBuilder_ == null) {\n ensureNodeStatusListIsMutable();\n nodeStatusList_.set(index, builderForValue.build());\n onChanged();\n } else {\n nodeStatusListBuilder_.setMessage(index, builderForValue.build());\n }\n return this;\n }",
"public List<Output<TInt32>> nodeIdsList() {\n return nodeIdsList;\n }",
"List<StatusListener> mo9950b();",
"int getStatusCount();",
"@Override\n public void onNewClusterState(ClusterState state) {\n transportService.sendRequest(\n clusterService.localNode(),\n transportReplicaAction,\n replicaRequest,\n new ActionListenerResponseHandler<>(onCompletionListener, ReplicaResponse::new)\n );\n }",
"public java.util.List<? extends entities.Torrent.NodeIdOrBuilder>\n getNodesOrBuilderList() {\n if (nodesBuilder_ != null) {\n return nodesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(nodes_);\n }\n }",
"@Override\r\n\tpublic int getNumberOfNodes() {\n\t\treturn 0;\r\n\t}",
"public java.util.List<java.lang.Integer>\n getStatusList() {\n return java.util.Collections.unmodifiableList(status_);\n }",
"void refreshNodeHostCount(int nodeHostCount);",
"protected int numNodes() {\n\t\treturn nodes.size();\n\t}",
"public static void getStatus() {\n\t\ttry {\n\t\t\tint i = 1;\n\t\t\tList<Object[]>serverDetails = ServerStatus.getServerDetails();\n\t\t\tfor (Object[] servers:serverDetails){\n\t\t\t\tServerStatus.verifyServerStatus(i,(String)servers[0], (String)servers[1], (String)servers[2]);\n\t\t\t\ti++;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tcatch (Exception ex){\n\t\t\tex.printStackTrace();\n\t\t}\n\t}",
"public Vector<Node> getNodes(){\n\t\treturn this.listOfNodes;\n\t}"
] |
[
"0.7677447",
"0.73326534",
"0.72751945",
"0.7187517",
"0.7156577",
"0.71170497",
"0.71088874",
"0.70586026",
"0.70244354",
"0.68789655",
"0.68768275",
"0.6863607",
"0.6732412",
"0.6665126",
"0.6640762",
"0.65603524",
"0.63892424",
"0.63225454",
"0.6302617",
"0.62158686",
"0.6154571",
"0.6059235",
"0.6021623",
"0.5969211",
"0.5746757",
"0.5746533",
"0.5725065",
"0.5719905",
"0.5702983",
"0.5561155",
"0.55533105",
"0.5541831",
"0.5535313",
"0.55308056",
"0.55150694",
"0.5509859",
"0.54764414",
"0.54578775",
"0.5451353",
"0.5438688",
"0.54318774",
"0.54126287",
"0.54034257",
"0.54034257",
"0.5391672",
"0.5390411",
"0.53832936",
"0.53727967",
"0.5370394",
"0.53702694",
"0.53679216",
"0.5354863",
"0.5338436",
"0.53293514",
"0.53118134",
"0.530631",
"0.5305603",
"0.5295997",
"0.5294718",
"0.5293353",
"0.5293353",
"0.5286944",
"0.5276236",
"0.5274766",
"0.5272741",
"0.52713966",
"0.52693284",
"0.52693284",
"0.5261072",
"0.526089",
"0.5252027",
"0.52506906",
"0.52486336",
"0.5245913",
"0.5236892",
"0.5232337",
"0.5231927",
"0.5229986",
"0.5226807",
"0.52229863",
"0.5216052",
"0.5215427",
"0.5215198",
"0.5204292",
"0.5199826",
"0.519047",
"0.51865757",
"0.51846725",
"0.5180031",
"0.5179613",
"0.5179007",
"0.51780134",
"0.515467",
"0.51541543",
"0.5154118",
"0.5149366",
"0.514844",
"0.51400506",
"0.51396614",
"0.512528"
] |
0.6556245
|
16
|
The status of all the requests to other nodes repeated .NodeReplicationStatus nodeStatusList = 3;
|
public java.util.List<? extends entities.Torrent.NodeReplicationStatusOrBuilder>
getNodeStatusListOrBuilderList() {
if (nodeStatusListBuilder_ != null) {
return nodeStatusListBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(nodeStatusList_);
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"entities.Torrent.NodeReplicationStatus getNodeStatusList(int index);",
"@java.lang.Override\n public java.util.List<entities.Torrent.NodeReplicationStatus> getNodeStatusListList() {\n return nodeStatusList_;\n }",
"java.util.List<entities.Torrent.NodeReplicationStatus>\n getNodeStatusListList();",
"public java.util.List<entities.Torrent.NodeReplicationStatus> getNodeStatusListList() {\n if (nodeStatusListBuilder_ == null) {\n return java.util.Collections.unmodifiableList(nodeStatusList_);\n } else {\n return nodeStatusListBuilder_.getMessageList();\n }\n }",
"@java.lang.Override\n public java.util.List<? extends entities.Torrent.NodeReplicationStatusOrBuilder>\n getNodeStatusListOrBuilderList() {\n return nodeStatusList_;\n }",
"@java.lang.Override\n public int getNodeStatusListCount() {\n return nodeStatusList_.size();\n }",
"java.util.List<? extends entities.Torrent.NodeReplicationStatusOrBuilder>\n getNodeStatusListOrBuilderList();",
"public entities.Torrent.NodeReplicationStatus.Builder addNodeStatusListBuilder() {\n return getNodeStatusListFieldBuilder().addBuilder(\n entities.Torrent.NodeReplicationStatus.getDefaultInstance());\n }",
"int getNodeStatusListCount();",
"@java.lang.Override\n public entities.Torrent.NodeReplicationStatus getNodeStatusList(int index) {\n return nodeStatusList_.get(index);\n }",
"entities.Torrent.NodeReplicationStatusOrBuilder getNodeStatusListOrBuilder(\n int index);",
"@java.lang.Override\n public entities.Torrent.NodeReplicationStatusOrBuilder getNodeStatusListOrBuilder(\n int index) {\n return nodeStatusList_.get(index);\n }",
"public entities.Torrent.NodeReplicationStatus getNodeStatusList(int index) {\n if (nodeStatusListBuilder_ == null) {\n return nodeStatusList_.get(index);\n } else {\n return nodeStatusListBuilder_.getMessage(index);\n }\n }",
"public Builder addNodeStatusList(entities.Torrent.NodeReplicationStatus value) {\n if (nodeStatusListBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureNodeStatusListIsMutable();\n nodeStatusList_.add(value);\n onChanged();\n } else {\n nodeStatusListBuilder_.addMessage(value);\n }\n return this;\n }",
"public Builder addAllNodeStatusList(\n java.lang.Iterable<? extends entities.Torrent.NodeReplicationStatus> values) {\n if (nodeStatusListBuilder_ == null) {\n ensureNodeStatusListIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, nodeStatusList_);\n onChanged();\n } else {\n nodeStatusListBuilder_.addAllMessages(values);\n }\n return this;\n }",
"public entities.Torrent.NodeReplicationStatusOrBuilder getNodeStatusListOrBuilder(\n int index) {\n if (nodeStatusListBuilder_ == null) {\n return nodeStatusList_.get(index); } else {\n return nodeStatusListBuilder_.getMessageOrBuilder(index);\n }\n }",
"public int getNodeStatusListCount() {\n if (nodeStatusListBuilder_ == null) {\n return nodeStatusList_.size();\n } else {\n return nodeStatusListBuilder_.getCount();\n }\n }",
"public final int[] cacheNodeStatus() {\n return new int[]{0,0,0,0,0,0,0,0,0,0};\r\n }",
"public java.util.List<entities.Torrent.NodeReplicationStatus.Builder>\n getNodeStatusListBuilderList() {\n return getNodeStatusListFieldBuilder().getBuilderList();\n }",
"public Builder setNodeStatusList(\n int index, entities.Torrent.NodeReplicationStatus value) {\n if (nodeStatusListBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureNodeStatusListIsMutable();\n nodeStatusList_.set(index, value);\n onChanged();\n } else {\n nodeStatusListBuilder_.setMessage(index, value);\n }\n return this;\n }",
"private NodeReplicationStatus(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"int getReplicationCount();",
"public Builder addNodeStatusList(\n int index, entities.Torrent.NodeReplicationStatus value) {\n if (nodeStatusListBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureNodeStatusListIsMutable();\n nodeStatusList_.add(index, value);\n onChanged();\n } else {\n nodeStatusListBuilder_.addMessage(index, value);\n }\n return this;\n }",
"public entities.Torrent.NodeReplicationStatus.Builder addNodeStatusListBuilder(\n int index) {\n return getNodeStatusListFieldBuilder().addBuilder(\n index, entities.Torrent.NodeReplicationStatus.getDefaultInstance());\n }",
"public int getNumNodesSeenByMessage() {\r\n return numNodesSeenByMessage;\r\n }",
"public abstract String getNodeStatusVariableName();",
"public Builder addNodeStatusList(\n entities.Torrent.NodeReplicationStatus.Builder builderForValue) {\n if (nodeStatusListBuilder_ == null) {\n ensureNodeStatusListIsMutable();\n nodeStatusList_.add(builderForValue.build());\n onChanged();\n } else {\n nodeStatusListBuilder_.addMessage(builderForValue.build());\n }\n return this;\n }",
"public entities.Torrent.NodeReplicationStatus.Builder getNodeStatusListBuilder(\n int index) {\n return getNodeStatusListFieldBuilder().getBuilder(index);\n }",
"java.util.List<io.netifi.proteus.admin.om.Node> \n getNodesList();",
"public void list() {\r\n\t\tfor (String key : nodeMap.keySet()) {\r\n\t\t\tNodeRef node = nodeMap.get(key);\r\n\t\t\tSystem.out.println(node.getIp() + \" : \" + node.getPort());\r\n\t\t}\t\t\r\n\t}",
"public static int countNodes() {\n\t\treturn count_nodes;\n\t}",
"default Promise<List<String>> findAllNodesWithStatus(HealthStatus queryStatus) {\n final Promise<List<String>> promise = Promises.promise();\n promise.resolve(Collections.emptyList());\n return promise;\n\n }",
"@Override\n\tpublic long numNodes() {\n\t\treturn numNodes;\n\t}",
"public java.util.List<entities.Torrent.NodeId> getNodesList() {\n if (nodesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(nodes_);\n } else {\n return nodesBuilder_.getMessageList();\n }\n }",
"public NodeInformation[] getNodes() throws CassandraServerManagementException {\r\n StorageServiceMBean ssMBean = null;\r\n try {\r\n ssMBean = CassandraAdminDataHolder\r\n .getInstance().getCassandraMBeanLocator().locateStorageServiceMBean();\r\n } catch (CassandraServerManagementException e) {\r\n handleException(\"Error occurred while retrieving node information list\", e);\r\n }\r\n\r\n if (ssMBean == null) {\r\n handleException(\"Storage Server MBean is null\");\r\n }\r\n\r\n Map<String, String> tokenToEndpoint = ssMBean.getTokenToEndpointMap();\r\n List<String> sortedTokens = new ArrayList<String>(tokenToEndpoint.keySet());\r\n Collections.sort(sortedTokens);\r\n\r\n /* Calculate per-token ownership of the ring */\r\n Map<InetAddress, Float> ownerships = ssMBean.getOwnership();\r\n\r\n List<NodeInformation> nodeInfoList = new ArrayList<NodeInformation>();\r\n for (String token : sortedTokens) {\r\n String primaryEndpoint = tokenToEndpoint.get(token);\r\n String status = ssMBean.getLiveNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_UP\r\n : ssMBean.getUnreachableNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_DOWN\r\n : CassandraManagementConstants.NodeStatuses.NODE_STATUS_UNKNOWN;\r\n\r\n String state = ssMBean.getJoiningNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_JOINING\r\n : ssMBean.getLeavingNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_LEAVING\r\n : CassandraManagementConstants.NodeStatuses.NODE_STATUS_NORMAL;\r\n\r\n Map<String, String> loadMap = ssMBean.getLoadMap();\r\n String load = loadMap.containsKey(primaryEndpoint)\r\n ? loadMap.get(primaryEndpoint)\r\n : CassandraManagementConstants.NodeStatuses.NODE_STATUS_UNKNOWN;\r\n\r\n Float ownership = ownerships.get(token);\r\n String owns = \"N/A\";\r\n if(ownership!=null){\r\n owns = new DecimalFormat(\"##0.00%\").format(ownership);\r\n }\r\n NodeInformation nodeInfo = new NodeInformation();\r\n nodeInfo.setAddress(primaryEndpoint);\r\n nodeInfo.setState(state);\r\n nodeInfo.setStatus(status);\r\n nodeInfo.setOwn(owns);\r\n nodeInfo.setLoad(load);\r\n nodeInfo.setToken(token);\r\n nodeInfoList.add(nodeInfo);\r\n }\r\n return nodeInfoList.toArray(new NodeInformation[nodeInfoList.size()]);\r\n }",
"public String replicationState() {\n return this.replicationState;\n }",
"@Override\n public boolean getCurrentNodeStatus(InetAddress ia) {\n if (ia.isAnyLocalAddress()) {\n return true;\n }\n // Check if given address is in cluster\n for (Client c : instance.getClientService().getConnectedClients()) {\n if (c.getSocketAddress().getAddress().equals(ia)) {\n return true;\n }\n }\n // reject all other addresses\n return false;\n }",
"int numNodes() {\n\t\treturn num_nodes;\n\t}",
"private int numNodes()\r\n\t{\r\n\t return nodeMap.size();\r\n\t}",
"public int lockedNodeCount() {\n\treturn lockedNodes;\n }",
"@Override\n\tpublic Collection<TaskStatus> getTaskStatus(){\n \tcheckInitialized();\n \t\n \t@SuppressWarnings(\"unchecked\")\n\t\tCollection<Collection<TaskStatus>> statusTree=Collections.EMPTY_LIST;\n \tfinal MultiTask<Collection<TaskStatus>> mtask;\n \ttry {\n\t\t\t mtask = breeder.executeCallable(new GetTaskStatus(this));\n\t\t\t statusTree = mtask.get();\n \t} catch (ExecutionException ex){\n \t\tlog.fatal(\"Could not get status of tasks for job \"+this.getId(), ex);\n \t} catch(InterruptedException ex) {\n \t\tlog.fatal(\"Could not get status of tasks for job \"+this.getId(), ex);\n \t}\n\t\t\t\n\t\t// Flatten into single collection\n\t\tList<TaskStatus> result = new ArrayList<TaskStatus>((int)(statusTree.size()*this.getThreadCount()));\n\t\tfor(Collection<TaskStatus> statusForNode: statusTree) {\n\t\t\tresult.addAll(statusForNode);\n\t\t}\n\t\t\n\t\treturn result;\n \n\t}",
"int getNodeCount() {\n\t\treturn m_list_nodes.size();\n\t}",
"int getNodesCount();",
"int getNodesCount();",
"public java.util.List<java.lang.Integer>\n getStatusList() {\n return status_;\n }",
"public static int getNumberOfNodes() {\n return(numberOfNodes);\n\t }",
"@java.lang.Override\n public int getNodesCount() {\n return nodes_.size();\n }",
"private NodeRestartRequest() {\n\t\t}",
"java.util.List<entities.Torrent.NodeId>\n getNodesList();",
"List<CommunicationLink> getAllNodes()\n {\n return new ArrayList<>(allNodes.values());\n }",
"public ODocument clusterStatus() {\n checkConnected();\n return remote.getClusterStatus(user, password);\n }",
"public StatusChecker(Node node){\n this.node=node;\n start();\n }",
"public Builder clearNodeStatusList() {\n if (nodeStatusListBuilder_ == null) {\n nodeStatusList_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n nodeStatusListBuilder_.clear();\n }\n return this;\n }",
"@java.lang.Override\n public java.util.List<entities.Torrent.NodeId> getNodesList() {\n return nodes_;\n }",
"public int getNumberOfNodesEvaluated();",
"java.util.List<java.lang.Integer> getStatusList();",
"private List<Node> getNodes() {\n List<Node> nodes = new ArrayList<Node>();\n NodeApi.GetConnectedNodesResult rawNodes =\n Wearable.NodeApi.getConnectedNodes(mGoogleApiClient).await();\n for (Node node : rawNodes.getNodes()) {\n nodes.add(node);\n }\n return nodes;\n }",
"public int numNodes() {\n\t\treturn numNodes;\n\t}",
"void updateRmiClientsCount() {\n int noOfClientsConnected = 0;\n\n String[] connectionIds = rmiConnector.getConnectionIds();\n\n if (connectionIds != null) {\n noOfClientsConnected = connectionIds.length;\n }\n\n logger.info(\"No. of RMI clients connected :: {}\", noOfClientsConnected);\n\n AdminDistributedSystemJmxImpl adminDSJmx = (AdminDistributedSystemJmxImpl) system;\n\n adminDSJmx.setRmiClientCountZero(noOfClientsConnected == 0);\n }",
"public int getReplicationDegree() {\n return replicationDegree;\n }",
"public int getReplicationDegree() {\n return replicationDegree;\n }",
"public List<NetworkNode> listNetworkNode();",
"private void updateGeoRepStatus(GlusterVolumeEntity volume, GlusterGeoRepSession session) {\n\n List<HashSet<GeoRepSessionStatus>> list = new ArrayList<>();\n // grouped node status\n int replicaCount = volume.getReplicaCount() == 0 ? 1 : volume.getReplicaCount();\n for (int i = 0; i < volume.getBricks().size(); i = i + replicaCount) {\n HashSet<GeoRepSessionStatus> subVolumeStatusSet = new HashSet<>();\n int j = 0;\n while (j < replicaCount) {\n Guid brickId = volume.getBricks().get(i + j).getId();\n subVolumeStatusSet.add(getStatusForBrickFromSession(session, brickId));\n j++;\n }\n list.add(subVolumeStatusSet);\n }\n\n session.setStatus(GeoRepSessionStatus.ACTIVE);\n // iterate through grouped status to set consolidated status\n for (HashSet<GeoRepSessionStatus> subVolumeStatusValues : list) {\n if (subVolumeStatusValues.contains(GeoRepSessionStatus.ACTIVE)) {\n // healthy\n continue;\n } else if (subVolumeStatusValues.contains(GeoRepSessionStatus.FAULTY)) {\n session.setStatus(GeoRepSessionStatus.FAULTY);\n // if any one of the sub-volume is faulty, the overall session status if faulty\n return;\n }\n // override status in case of these values\n if (ArrayUtils.contains(overridableStatuses, session.getStatus())) {\n if (subVolumeStatusValues.size() == 1) {\n session.setStatus((GeoRepSessionStatus) subVolumeStatusValues.toArray()[0]);\n } else {\n // if status values in sub-volume are not the same, what do we do?\n // this should not happen, so we'll log it for now\n log.info(\"Multiple status values found in volume '{}'\", session.getMasterVolumeName());\n }\n }\n }\n\n }",
"@SuppressWarnings(\"unused\")\n private ReplicationStatusResponse() {\n this(false);\n }",
"int getNrNodes() {\n\t\treturn adjList.size();\n\t}",
"public int getConnectionStatus()\r\n { return connectionStatus; }",
"int getNodeCount();",
"int getNodeCount();",
"public int getNodeCount() {\n return nodeCount;\n }",
"public int getNetworkNodesNumber() {\n\t\t\n\t\t//Return nodes size\n\t\treturn nodes.size();\n\t\t\n\t}",
"void nodeOnline();",
"public static String getClusterStatusNodePath() {\n return String.join(\"/\", \"\", ROOT_NODE, COMPUTE_NODE, STATUS_NODE);\n }",
"@Override\n protected int minimumNumberOfReplicas() {\n return 1;\n }",
"@Override\n public void statusUpdate(final String asgName, final ASGStatus newStatus, final boolean isReplication) {\n if (isReplication) {\n return;\n }\n for (final PeerEurekaNode node : peerEurekaNodes.getPeerEurekaNodes()) {\n replicateASGInfoToReplicaNodes(asgName, newStatus, node);\n\n }\n }",
"@PostMapping(\"/queryGroupStatus/list\")\n @PreAuthorize(ConstantProperties.HAS_ROLE_ADMIN)\n public BaseResponse getGroupStatusList(@Valid @RequestBody ReqGroupStatus reqGroupStatus) throws NodeMgrException {\n Instant startTime = Instant.now();\n BaseResponse baseResponse = new BaseResponse(ConstantCode.SUCCESS);\n log.info(\"start getGroupStatusMap startTime:{}\", startTime.toEpochMilli());\n List<String> nodeIdList = reqGroupStatus.getNodeIdList();\n List<RspGroupStatus> resList = groupService.listGroupStatus(nodeIdList,\n reqGroupStatus.getGroupIdList());\n baseResponse.setData(resList);\n log.info(\"end getGroupStatusMap useTime:{} result:{}\",\n Duration.between(startTime, Instant.now()).toMillis(),\n JsonTools.toJSONString(baseResponse));\n return baseResponse;\n }",
"public String getNumberOfNodesEvaluated(){return Integer.toString(NumberOfVisitedNodes);}",
"java.util.List<? extends io.netifi.proteus.admin.om.NodeOrBuilder> \n getNodesOrBuilderList();",
"private void getNodesCount(HttpServletRequest request, HttpServletResponse response) throws IOException {\n int countNodes = SimApi.getNodesCount();\n response.getWriter().write(Integer.toString(countNodes));\n }",
"@Test(timeout = 10000L)\n public void testNodesInformation() throws Exception {\n CommonDriverAdminTests.testNodesInformation(client, nbNodes);\n }",
"public int getNumNodes() {\n\t\treturn nodes.size();\n\t}",
"public abstract Collection<Node> getAllSuccessors();",
"@RequestLine(\"GET /status\")\n Status getNeustarNetworkStatus();",
"public void printStatus(){\n System.out.println(\"Nodes: \" + \n getVertexCount() + \" Edges: \" + \n getEdgeCount()); \n //and \" + getEdgeCount() + \" edges active.\");\n }",
"public int getStatusCount() {\n return status_.size();\n }",
"public List<Long> getSessionNodes() {\n List<Long> ret = new ArrayList<>();\n\n for (int i = 0; i < sessionsList.size(); i++) {\n ret.add(sessionsList.get(i).dhtNodes());\n }\n\n return ret;\n }",
"@Override\n public ClusterStatus getCurrentClusterStatus() {\n if (getMemberList().size() > 1) {\n return CLUSTER_FUNCTIONAL;\n }\n // when only one node is connected return degraded\n if (getMemberList().size() == 1) {\n return CLUSTER_DEGRADED;\n }\n // consider all other states as illegal\n return CLUSTER_ILLEGAL;\n }",
"private void refreshNodeList() {\n if (UnderNet.router.status.equals(InterfaceStatus.STARTED)) {\n //Using connected and cached nodes if the router has started.\n ArrayList<Node> nodesToList = UnderNet.router.getConnectedNodes();\n for (Node cachedNode :\n EntryNodeCache.cachedNodes) {\n boolean canAdd = true;\n for (Node connectedNode : UnderNet.router.getConnectedNodes()) {\n if (cachedNode.getAddress().equals(connectedNode.getAddress())) {\n canAdd = false;\n }\n }\n if (canAdd) {\n nodesToList.add(cachedNode);\n }\n }\n nodeList.setListData(nodesToList.toArray());\n } else {\n //Using cached nodes if the router isn't online.\n nodeList.setListData(EntryNodeCache.cachedNodes.toArray());\n }\n }",
"public int getNodeCount() {\n return node_.size();\n }",
"public Builder setNodeStatusList(\n int index, entities.Torrent.NodeReplicationStatus.Builder builderForValue) {\n if (nodeStatusListBuilder_ == null) {\n ensureNodeStatusListIsMutable();\n nodeStatusList_.set(index, builderForValue.build());\n onChanged();\n } else {\n nodeStatusListBuilder_.setMessage(index, builderForValue.build());\n }\n return this;\n }",
"int getStatusCount();",
"List<StatusListener> mo9950b();",
"public List<Output<TInt32>> nodeIdsList() {\n return nodeIdsList;\n }",
"@Override\r\n\tpublic int getNumberOfNodes() {\n\t\treturn 0;\r\n\t}",
"@Override\n public void onNewClusterState(ClusterState state) {\n transportService.sendRequest(\n clusterService.localNode(),\n transportReplicaAction,\n replicaRequest,\n new ActionListenerResponseHandler<>(onCompletionListener, ReplicaResponse::new)\n );\n }",
"public java.util.List<? extends entities.Torrent.NodeIdOrBuilder>\n getNodesOrBuilderList() {\n if (nodesBuilder_ != null) {\n return nodesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(nodes_);\n }\n }",
"void refreshNodeHostCount(int nodeHostCount);",
"public java.util.List<java.lang.Integer>\n getStatusList() {\n return java.util.Collections.unmodifiableList(status_);\n }",
"protected int numNodes() {\n\t\treturn nodes.size();\n\t}",
"public static void getStatus() {\n\t\ttry {\n\t\t\tint i = 1;\n\t\t\tList<Object[]>serverDetails = ServerStatus.getServerDetails();\n\t\t\tfor (Object[] servers:serverDetails){\n\t\t\t\tServerStatus.verifyServerStatus(i,(String)servers[0], (String)servers[1], (String)servers[2]);\n\t\t\t\ti++;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tcatch (Exception ex){\n\t\t\tex.printStackTrace();\n\t\t}\n\t}",
"public Vector<Node> getNodes(){\n\t\treturn this.listOfNodes;\n\t}"
] |
[
"0.7676129",
"0.7331182",
"0.7273687",
"0.71861",
"0.715512",
"0.7109621",
"0.70572484",
"0.70231473",
"0.68802404",
"0.68754536",
"0.68622214",
"0.6731096",
"0.66640806",
"0.66391486",
"0.65591234",
"0.6555521",
"0.63903886",
"0.63232106",
"0.63019353",
"0.6214408",
"0.61544263",
"0.6059044",
"0.6020407",
"0.5968166",
"0.5747682",
"0.5747118",
"0.572477",
"0.5719498",
"0.5702324",
"0.55613613",
"0.5554103",
"0.55409944",
"0.55359095",
"0.55294245",
"0.5514939",
"0.5508245",
"0.54773027",
"0.54582757",
"0.5452121",
"0.54395384",
"0.5432274",
"0.5413921",
"0.5404272",
"0.5404272",
"0.5391273",
"0.5391093",
"0.53838295",
"0.5372251",
"0.5371431",
"0.53694195",
"0.53680325",
"0.5355719",
"0.5337264",
"0.5328223",
"0.5313206",
"0.53056794",
"0.5304752",
"0.52963203",
"0.5294912",
"0.52926546",
"0.52926546",
"0.52865416",
"0.52761674",
"0.52743804",
"0.52723396",
"0.52713174",
"0.5270979",
"0.5270979",
"0.5262344",
"0.5260428",
"0.5251417",
"0.525009",
"0.52486444",
"0.5244158",
"0.5236949",
"0.5233294",
"0.5232152",
"0.523205",
"0.5227255",
"0.5222861",
"0.5216217",
"0.5216119",
"0.5214923",
"0.52052957",
"0.5199027",
"0.5190343",
"0.51863825",
"0.5185727",
"0.5179844",
"0.51798075",
"0.51794755",
"0.51788676",
"0.5154731",
"0.5154184",
"0.51530594",
"0.51490337",
"0.514868",
"0.5140558",
"0.5139295",
"0.51247513"
] |
0.7115793
|
5
|
The status of all the requests to other nodes repeated .NodeReplicationStatus nodeStatusList = 3;
|
public entities.Torrent.NodeReplicationStatus.Builder addNodeStatusListBuilder() {
return getNodeStatusListFieldBuilder().addBuilder(
entities.Torrent.NodeReplicationStatus.getDefaultInstance());
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"entities.Torrent.NodeReplicationStatus getNodeStatusList(int index);",
"@java.lang.Override\n public java.util.List<entities.Torrent.NodeReplicationStatus> getNodeStatusListList() {\n return nodeStatusList_;\n }",
"java.util.List<entities.Torrent.NodeReplicationStatus>\n getNodeStatusListList();",
"public java.util.List<entities.Torrent.NodeReplicationStatus> getNodeStatusListList() {\n if (nodeStatusListBuilder_ == null) {\n return java.util.Collections.unmodifiableList(nodeStatusList_);\n } else {\n return nodeStatusListBuilder_.getMessageList();\n }\n }",
"@java.lang.Override\n public java.util.List<? extends entities.Torrent.NodeReplicationStatusOrBuilder>\n getNodeStatusListOrBuilderList() {\n return nodeStatusList_;\n }",
"public java.util.List<? extends entities.Torrent.NodeReplicationStatusOrBuilder>\n getNodeStatusListOrBuilderList() {\n if (nodeStatusListBuilder_ != null) {\n return nodeStatusListBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(nodeStatusList_);\n }\n }",
"@java.lang.Override\n public int getNodeStatusListCount() {\n return nodeStatusList_.size();\n }",
"java.util.List<? extends entities.Torrent.NodeReplicationStatusOrBuilder>\n getNodeStatusListOrBuilderList();",
"int getNodeStatusListCount();",
"@java.lang.Override\n public entities.Torrent.NodeReplicationStatus getNodeStatusList(int index) {\n return nodeStatusList_.get(index);\n }",
"entities.Torrent.NodeReplicationStatusOrBuilder getNodeStatusListOrBuilder(\n int index);",
"@java.lang.Override\n public entities.Torrent.NodeReplicationStatusOrBuilder getNodeStatusListOrBuilder(\n int index) {\n return nodeStatusList_.get(index);\n }",
"public entities.Torrent.NodeReplicationStatus getNodeStatusList(int index) {\n if (nodeStatusListBuilder_ == null) {\n return nodeStatusList_.get(index);\n } else {\n return nodeStatusListBuilder_.getMessage(index);\n }\n }",
"public Builder addNodeStatusList(entities.Torrent.NodeReplicationStatus value) {\n if (nodeStatusListBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureNodeStatusListIsMutable();\n nodeStatusList_.add(value);\n onChanged();\n } else {\n nodeStatusListBuilder_.addMessage(value);\n }\n return this;\n }",
"public Builder addAllNodeStatusList(\n java.lang.Iterable<? extends entities.Torrent.NodeReplicationStatus> values) {\n if (nodeStatusListBuilder_ == null) {\n ensureNodeStatusListIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, nodeStatusList_);\n onChanged();\n } else {\n nodeStatusListBuilder_.addAllMessages(values);\n }\n return this;\n }",
"public entities.Torrent.NodeReplicationStatusOrBuilder getNodeStatusListOrBuilder(\n int index) {\n if (nodeStatusListBuilder_ == null) {\n return nodeStatusList_.get(index); } else {\n return nodeStatusListBuilder_.getMessageOrBuilder(index);\n }\n }",
"public int getNodeStatusListCount() {\n if (nodeStatusListBuilder_ == null) {\n return nodeStatusList_.size();\n } else {\n return nodeStatusListBuilder_.getCount();\n }\n }",
"public final int[] cacheNodeStatus() {\n return new int[]{0,0,0,0,0,0,0,0,0,0};\r\n }",
"public java.util.List<entities.Torrent.NodeReplicationStatus.Builder>\n getNodeStatusListBuilderList() {\n return getNodeStatusListFieldBuilder().getBuilderList();\n }",
"public Builder setNodeStatusList(\n int index, entities.Torrent.NodeReplicationStatus value) {\n if (nodeStatusListBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureNodeStatusListIsMutable();\n nodeStatusList_.set(index, value);\n onChanged();\n } else {\n nodeStatusListBuilder_.setMessage(index, value);\n }\n return this;\n }",
"private NodeReplicationStatus(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"int getReplicationCount();",
"public Builder addNodeStatusList(\n int index, entities.Torrent.NodeReplicationStatus value) {\n if (nodeStatusListBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureNodeStatusListIsMutable();\n nodeStatusList_.add(index, value);\n onChanged();\n } else {\n nodeStatusListBuilder_.addMessage(index, value);\n }\n return this;\n }",
"public entities.Torrent.NodeReplicationStatus.Builder addNodeStatusListBuilder(\n int index) {\n return getNodeStatusListFieldBuilder().addBuilder(\n index, entities.Torrent.NodeReplicationStatus.getDefaultInstance());\n }",
"public int getNumNodesSeenByMessage() {\r\n return numNodesSeenByMessage;\r\n }",
"public abstract String getNodeStatusVariableName();",
"public Builder addNodeStatusList(\n entities.Torrent.NodeReplicationStatus.Builder builderForValue) {\n if (nodeStatusListBuilder_ == null) {\n ensureNodeStatusListIsMutable();\n nodeStatusList_.add(builderForValue.build());\n onChanged();\n } else {\n nodeStatusListBuilder_.addMessage(builderForValue.build());\n }\n return this;\n }",
"public entities.Torrent.NodeReplicationStatus.Builder getNodeStatusListBuilder(\n int index) {\n return getNodeStatusListFieldBuilder().getBuilder(index);\n }",
"java.util.List<io.netifi.proteus.admin.om.Node> \n getNodesList();",
"public void list() {\r\n\t\tfor (String key : nodeMap.keySet()) {\r\n\t\t\tNodeRef node = nodeMap.get(key);\r\n\t\t\tSystem.out.println(node.getIp() + \" : \" + node.getPort());\r\n\t\t}\t\t\r\n\t}",
"public static int countNodes() {\n\t\treturn count_nodes;\n\t}",
"default Promise<List<String>> findAllNodesWithStatus(HealthStatus queryStatus) {\n final Promise<List<String>> promise = Promises.promise();\n promise.resolve(Collections.emptyList());\n return promise;\n\n }",
"@Override\n\tpublic long numNodes() {\n\t\treturn numNodes;\n\t}",
"public java.util.List<entities.Torrent.NodeId> getNodesList() {\n if (nodesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(nodes_);\n } else {\n return nodesBuilder_.getMessageList();\n }\n }",
"public NodeInformation[] getNodes() throws CassandraServerManagementException {\r\n StorageServiceMBean ssMBean = null;\r\n try {\r\n ssMBean = CassandraAdminDataHolder\r\n .getInstance().getCassandraMBeanLocator().locateStorageServiceMBean();\r\n } catch (CassandraServerManagementException e) {\r\n handleException(\"Error occurred while retrieving node information list\", e);\r\n }\r\n\r\n if (ssMBean == null) {\r\n handleException(\"Storage Server MBean is null\");\r\n }\r\n\r\n Map<String, String> tokenToEndpoint = ssMBean.getTokenToEndpointMap();\r\n List<String> sortedTokens = new ArrayList<String>(tokenToEndpoint.keySet());\r\n Collections.sort(sortedTokens);\r\n\r\n /* Calculate per-token ownership of the ring */\r\n Map<InetAddress, Float> ownerships = ssMBean.getOwnership();\r\n\r\n List<NodeInformation> nodeInfoList = new ArrayList<NodeInformation>();\r\n for (String token : sortedTokens) {\r\n String primaryEndpoint = tokenToEndpoint.get(token);\r\n String status = ssMBean.getLiveNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_UP\r\n : ssMBean.getUnreachableNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_DOWN\r\n : CassandraManagementConstants.NodeStatuses.NODE_STATUS_UNKNOWN;\r\n\r\n String state = ssMBean.getJoiningNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_JOINING\r\n : ssMBean.getLeavingNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_LEAVING\r\n : CassandraManagementConstants.NodeStatuses.NODE_STATUS_NORMAL;\r\n\r\n Map<String, String> loadMap = ssMBean.getLoadMap();\r\n String load = loadMap.containsKey(primaryEndpoint)\r\n ? loadMap.get(primaryEndpoint)\r\n : CassandraManagementConstants.NodeStatuses.NODE_STATUS_UNKNOWN;\r\n\r\n Float ownership = ownerships.get(token);\r\n String owns = \"N/A\";\r\n if(ownership!=null){\r\n owns = new DecimalFormat(\"##0.00%\").format(ownership);\r\n }\r\n NodeInformation nodeInfo = new NodeInformation();\r\n nodeInfo.setAddress(primaryEndpoint);\r\n nodeInfo.setState(state);\r\n nodeInfo.setStatus(status);\r\n nodeInfo.setOwn(owns);\r\n nodeInfo.setLoad(load);\r\n nodeInfo.setToken(token);\r\n nodeInfoList.add(nodeInfo);\r\n }\r\n return nodeInfoList.toArray(new NodeInformation[nodeInfoList.size()]);\r\n }",
"public String replicationState() {\n return this.replicationState;\n }",
"@Override\n public boolean getCurrentNodeStatus(InetAddress ia) {\n if (ia.isAnyLocalAddress()) {\n return true;\n }\n // Check if given address is in cluster\n for (Client c : instance.getClientService().getConnectedClients()) {\n if (c.getSocketAddress().getAddress().equals(ia)) {\n return true;\n }\n }\n // reject all other addresses\n return false;\n }",
"int numNodes() {\n\t\treturn num_nodes;\n\t}",
"private int numNodes()\r\n\t{\r\n\t return nodeMap.size();\r\n\t}",
"public int lockedNodeCount() {\n\treturn lockedNodes;\n }",
"@Override\n\tpublic Collection<TaskStatus> getTaskStatus(){\n \tcheckInitialized();\n \t\n \t@SuppressWarnings(\"unchecked\")\n\t\tCollection<Collection<TaskStatus>> statusTree=Collections.EMPTY_LIST;\n \tfinal MultiTask<Collection<TaskStatus>> mtask;\n \ttry {\n\t\t\t mtask = breeder.executeCallable(new GetTaskStatus(this));\n\t\t\t statusTree = mtask.get();\n \t} catch (ExecutionException ex){\n \t\tlog.fatal(\"Could not get status of tasks for job \"+this.getId(), ex);\n \t} catch(InterruptedException ex) {\n \t\tlog.fatal(\"Could not get status of tasks for job \"+this.getId(), ex);\n \t}\n\t\t\t\n\t\t// Flatten into single collection\n\t\tList<TaskStatus> result = new ArrayList<TaskStatus>((int)(statusTree.size()*this.getThreadCount()));\n\t\tfor(Collection<TaskStatus> statusForNode: statusTree) {\n\t\t\tresult.addAll(statusForNode);\n\t\t}\n\t\t\n\t\treturn result;\n \n\t}",
"int getNodeCount() {\n\t\treturn m_list_nodes.size();\n\t}",
"int getNodesCount();",
"int getNodesCount();",
"public java.util.List<java.lang.Integer>\n getStatusList() {\n return status_;\n }",
"public static int getNumberOfNodes() {\n return(numberOfNodes);\n\t }",
"@java.lang.Override\n public int getNodesCount() {\n return nodes_.size();\n }",
"java.util.List<entities.Torrent.NodeId>\n getNodesList();",
"private NodeRestartRequest() {\n\t\t}",
"List<CommunicationLink> getAllNodes()\n {\n return new ArrayList<>(allNodes.values());\n }",
"public ODocument clusterStatus() {\n checkConnected();\n return remote.getClusterStatus(user, password);\n }",
"public StatusChecker(Node node){\n this.node=node;\n start();\n }",
"public Builder clearNodeStatusList() {\n if (nodeStatusListBuilder_ == null) {\n nodeStatusList_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n nodeStatusListBuilder_.clear();\n }\n return this;\n }",
"@java.lang.Override\n public java.util.List<entities.Torrent.NodeId> getNodesList() {\n return nodes_;\n }",
"public int getNumberOfNodesEvaluated();",
"java.util.List<java.lang.Integer> getStatusList();",
"private List<Node> getNodes() {\n List<Node> nodes = new ArrayList<Node>();\n NodeApi.GetConnectedNodesResult rawNodes =\n Wearable.NodeApi.getConnectedNodes(mGoogleApiClient).await();\n for (Node node : rawNodes.getNodes()) {\n nodes.add(node);\n }\n return nodes;\n }",
"public int numNodes() {\n\t\treturn numNodes;\n\t}",
"void updateRmiClientsCount() {\n int noOfClientsConnected = 0;\n\n String[] connectionIds = rmiConnector.getConnectionIds();\n\n if (connectionIds != null) {\n noOfClientsConnected = connectionIds.length;\n }\n\n logger.info(\"No. of RMI clients connected :: {}\", noOfClientsConnected);\n\n AdminDistributedSystemJmxImpl adminDSJmx = (AdminDistributedSystemJmxImpl) system;\n\n adminDSJmx.setRmiClientCountZero(noOfClientsConnected == 0);\n }",
"public int getReplicationDegree() {\n return replicationDegree;\n }",
"public int getReplicationDegree() {\n return replicationDegree;\n }",
"public List<NetworkNode> listNetworkNode();",
"private void updateGeoRepStatus(GlusterVolumeEntity volume, GlusterGeoRepSession session) {\n\n List<HashSet<GeoRepSessionStatus>> list = new ArrayList<>();\n // grouped node status\n int replicaCount = volume.getReplicaCount() == 0 ? 1 : volume.getReplicaCount();\n for (int i = 0; i < volume.getBricks().size(); i = i + replicaCount) {\n HashSet<GeoRepSessionStatus> subVolumeStatusSet = new HashSet<>();\n int j = 0;\n while (j < replicaCount) {\n Guid brickId = volume.getBricks().get(i + j).getId();\n subVolumeStatusSet.add(getStatusForBrickFromSession(session, brickId));\n j++;\n }\n list.add(subVolumeStatusSet);\n }\n\n session.setStatus(GeoRepSessionStatus.ACTIVE);\n // iterate through grouped status to set consolidated status\n for (HashSet<GeoRepSessionStatus> subVolumeStatusValues : list) {\n if (subVolumeStatusValues.contains(GeoRepSessionStatus.ACTIVE)) {\n // healthy\n continue;\n } else if (subVolumeStatusValues.contains(GeoRepSessionStatus.FAULTY)) {\n session.setStatus(GeoRepSessionStatus.FAULTY);\n // if any one of the sub-volume is faulty, the overall session status if faulty\n return;\n }\n // override status in case of these values\n if (ArrayUtils.contains(overridableStatuses, session.getStatus())) {\n if (subVolumeStatusValues.size() == 1) {\n session.setStatus((GeoRepSessionStatus) subVolumeStatusValues.toArray()[0]);\n } else {\n // if status values in sub-volume are not the same, what do we do?\n // this should not happen, so we'll log it for now\n log.info(\"Multiple status values found in volume '{}'\", session.getMasterVolumeName());\n }\n }\n }\n\n }",
"@SuppressWarnings(\"unused\")\n private ReplicationStatusResponse() {\n this(false);\n }",
"int getNrNodes() {\n\t\treturn adjList.size();\n\t}",
"public int getConnectionStatus()\r\n { return connectionStatus; }",
"int getNodeCount();",
"int getNodeCount();",
"public int getNodeCount() {\n return nodeCount;\n }",
"public int getNetworkNodesNumber() {\n\t\t\n\t\t//Return nodes size\n\t\treturn nodes.size();\n\t\t\n\t}",
"void nodeOnline();",
"public static String getClusterStatusNodePath() {\n return String.join(\"/\", \"\", ROOT_NODE, COMPUTE_NODE, STATUS_NODE);\n }",
"@Override\n protected int minimumNumberOfReplicas() {\n return 1;\n }",
"@Override\n public void statusUpdate(final String asgName, final ASGStatus newStatus, final boolean isReplication) {\n if (isReplication) {\n return;\n }\n for (final PeerEurekaNode node : peerEurekaNodes.getPeerEurekaNodes()) {\n replicateASGInfoToReplicaNodes(asgName, newStatus, node);\n\n }\n }",
"@PostMapping(\"/queryGroupStatus/list\")\n @PreAuthorize(ConstantProperties.HAS_ROLE_ADMIN)\n public BaseResponse getGroupStatusList(@Valid @RequestBody ReqGroupStatus reqGroupStatus) throws NodeMgrException {\n Instant startTime = Instant.now();\n BaseResponse baseResponse = new BaseResponse(ConstantCode.SUCCESS);\n log.info(\"start getGroupStatusMap startTime:{}\", startTime.toEpochMilli());\n List<String> nodeIdList = reqGroupStatus.getNodeIdList();\n List<RspGroupStatus> resList = groupService.listGroupStatus(nodeIdList,\n reqGroupStatus.getGroupIdList());\n baseResponse.setData(resList);\n log.info(\"end getGroupStatusMap useTime:{} result:{}\",\n Duration.between(startTime, Instant.now()).toMillis(),\n JsonTools.toJSONString(baseResponse));\n return baseResponse;\n }",
"public String getNumberOfNodesEvaluated(){return Integer.toString(NumberOfVisitedNodes);}",
"private void getNodesCount(HttpServletRequest request, HttpServletResponse response) throws IOException {\n int countNodes = SimApi.getNodesCount();\n response.getWriter().write(Integer.toString(countNodes));\n }",
"java.util.List<? extends io.netifi.proteus.admin.om.NodeOrBuilder> \n getNodesOrBuilderList();",
"@Test(timeout = 10000L)\n public void testNodesInformation() throws Exception {\n CommonDriverAdminTests.testNodesInformation(client, nbNodes);\n }",
"public int getNumNodes() {\n\t\treturn nodes.size();\n\t}",
"public abstract Collection<Node> getAllSuccessors();",
"@RequestLine(\"GET /status\")\n Status getNeustarNetworkStatus();",
"public void printStatus(){\n System.out.println(\"Nodes: \" + \n getVertexCount() + \" Edges: \" + \n getEdgeCount()); \n //and \" + getEdgeCount() + \" edges active.\");\n }",
"public int getStatusCount() {\n return status_.size();\n }",
"public List<Long> getSessionNodes() {\n List<Long> ret = new ArrayList<>();\n\n for (int i = 0; i < sessionsList.size(); i++) {\n ret.add(sessionsList.get(i).dhtNodes());\n }\n\n return ret;\n }",
"@Override\n public ClusterStatus getCurrentClusterStatus() {\n if (getMemberList().size() > 1) {\n return CLUSTER_FUNCTIONAL;\n }\n // when only one node is connected return degraded\n if (getMemberList().size() == 1) {\n return CLUSTER_DEGRADED;\n }\n // consider all other states as illegal\n return CLUSTER_ILLEGAL;\n }",
"private void refreshNodeList() {\n if (UnderNet.router.status.equals(InterfaceStatus.STARTED)) {\n //Using connected and cached nodes if the router has started.\n ArrayList<Node> nodesToList = UnderNet.router.getConnectedNodes();\n for (Node cachedNode :\n EntryNodeCache.cachedNodes) {\n boolean canAdd = true;\n for (Node connectedNode : UnderNet.router.getConnectedNodes()) {\n if (cachedNode.getAddress().equals(connectedNode.getAddress())) {\n canAdd = false;\n }\n }\n if (canAdd) {\n nodesToList.add(cachedNode);\n }\n }\n nodeList.setListData(nodesToList.toArray());\n } else {\n //Using cached nodes if the router isn't online.\n nodeList.setListData(EntryNodeCache.cachedNodes.toArray());\n }\n }",
"public int getNodeCount() {\n return node_.size();\n }",
"public Builder setNodeStatusList(\n int index, entities.Torrent.NodeReplicationStatus.Builder builderForValue) {\n if (nodeStatusListBuilder_ == null) {\n ensureNodeStatusListIsMutable();\n nodeStatusList_.set(index, builderForValue.build());\n onChanged();\n } else {\n nodeStatusListBuilder_.setMessage(index, builderForValue.build());\n }\n return this;\n }",
"List<StatusListener> mo9950b();",
"int getStatusCount();",
"public List<Output<TInt32>> nodeIdsList() {\n return nodeIdsList;\n }",
"@Override\r\n\tpublic int getNumberOfNodes() {\n\t\treturn 0;\r\n\t}",
"@Override\n public void onNewClusterState(ClusterState state) {\n transportService.sendRequest(\n clusterService.localNode(),\n transportReplicaAction,\n replicaRequest,\n new ActionListenerResponseHandler<>(onCompletionListener, ReplicaResponse::new)\n );\n }",
"public java.util.List<? extends entities.Torrent.NodeIdOrBuilder>\n getNodesOrBuilderList() {\n if (nodesBuilder_ != null) {\n return nodesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(nodes_);\n }\n }",
"public java.util.List<java.lang.Integer>\n getStatusList() {\n return java.util.Collections.unmodifiableList(status_);\n }",
"void refreshNodeHostCount(int nodeHostCount);",
"protected int numNodes() {\n\t\treturn nodes.size();\n\t}",
"public static void getStatus() {\n\t\ttry {\n\t\t\tint i = 1;\n\t\t\tList<Object[]>serverDetails = ServerStatus.getServerDetails();\n\t\t\tfor (Object[] servers:serverDetails){\n\t\t\t\tServerStatus.verifyServerStatus(i,(String)servers[0], (String)servers[1], (String)servers[2]);\n\t\t\t\ti++;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tcatch (Exception ex){\n\t\t\tex.printStackTrace();\n\t\t}\n\t}",
"public Vector<Node> getNodes(){\n\t\treturn this.listOfNodes;\n\t}"
] |
[
"0.7677481",
"0.7332279",
"0.7275059",
"0.71873355",
"0.71560276",
"0.7116769",
"0.7109518",
"0.70585376",
"0.6879867",
"0.6876868",
"0.6864218",
"0.67323005",
"0.6665114",
"0.6640871",
"0.6559848",
"0.6556308",
"0.6390153",
"0.63229275",
"0.63024855",
"0.6215867",
"0.6154482",
"0.6059501",
"0.6021897",
"0.596904",
"0.5747415",
"0.5746043",
"0.572507",
"0.57199895",
"0.57014227",
"0.55606055",
"0.55531794",
"0.5541874",
"0.5535034",
"0.5529633",
"0.5514081",
"0.5508731",
"0.5476352",
"0.54575264",
"0.54510856",
"0.54392225",
"0.5431914",
"0.54128003",
"0.5403353",
"0.5403353",
"0.5391939",
"0.53903574",
"0.5383281",
"0.5371443",
"0.53700656",
"0.536878",
"0.53676504",
"0.535534",
"0.5338024",
"0.5328059",
"0.5311786",
"0.5306224",
"0.53053415",
"0.52958065",
"0.52942604",
"0.5293356",
"0.5293356",
"0.52853906",
"0.5275481",
"0.5274735",
"0.5272081",
"0.52704126",
"0.5269814",
"0.5269814",
"0.5261532",
"0.52604467",
"0.5249879",
"0.5249766",
"0.52476424",
"0.52447534",
"0.5238364",
"0.52316946",
"0.52309597",
"0.52308846",
"0.5225883",
"0.5223006",
"0.52158034",
"0.5215295",
"0.5214578",
"0.5205377",
"0.51992106",
"0.5189863",
"0.51856333",
"0.5185279",
"0.5179929",
"0.51792306",
"0.5179208",
"0.51784956",
"0.5153981",
"0.51533186",
"0.5152661",
"0.514974",
"0.51477605",
"0.51399446",
"0.5139098",
"0.51240915"
] |
0.7024147
|
8
|
The status of all the requests to other nodes repeated .NodeReplicationStatus nodeStatusList = 3;
|
public entities.Torrent.NodeReplicationStatus.Builder addNodeStatusListBuilder(
int index) {
return getNodeStatusListFieldBuilder().addBuilder(
index, entities.Torrent.NodeReplicationStatus.getDefaultInstance());
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"entities.Torrent.NodeReplicationStatus getNodeStatusList(int index);",
"@java.lang.Override\n public java.util.List<entities.Torrent.NodeReplicationStatus> getNodeStatusListList() {\n return nodeStatusList_;\n }",
"java.util.List<entities.Torrent.NodeReplicationStatus>\n getNodeStatusListList();",
"public java.util.List<entities.Torrent.NodeReplicationStatus> getNodeStatusListList() {\n if (nodeStatusListBuilder_ == null) {\n return java.util.Collections.unmodifiableList(nodeStatusList_);\n } else {\n return nodeStatusListBuilder_.getMessageList();\n }\n }",
"@java.lang.Override\n public java.util.List<? extends entities.Torrent.NodeReplicationStatusOrBuilder>\n getNodeStatusListOrBuilderList() {\n return nodeStatusList_;\n }",
"public java.util.List<? extends entities.Torrent.NodeReplicationStatusOrBuilder>\n getNodeStatusListOrBuilderList() {\n if (nodeStatusListBuilder_ != null) {\n return nodeStatusListBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(nodeStatusList_);\n }\n }",
"@java.lang.Override\n public int getNodeStatusListCount() {\n return nodeStatusList_.size();\n }",
"java.util.List<? extends entities.Torrent.NodeReplicationStatusOrBuilder>\n getNodeStatusListOrBuilderList();",
"public entities.Torrent.NodeReplicationStatus.Builder addNodeStatusListBuilder() {\n return getNodeStatusListFieldBuilder().addBuilder(\n entities.Torrent.NodeReplicationStatus.getDefaultInstance());\n }",
"int getNodeStatusListCount();",
"@java.lang.Override\n public entities.Torrent.NodeReplicationStatus getNodeStatusList(int index) {\n return nodeStatusList_.get(index);\n }",
"entities.Torrent.NodeReplicationStatusOrBuilder getNodeStatusListOrBuilder(\n int index);",
"@java.lang.Override\n public entities.Torrent.NodeReplicationStatusOrBuilder getNodeStatusListOrBuilder(\n int index) {\n return nodeStatusList_.get(index);\n }",
"public entities.Torrent.NodeReplicationStatus getNodeStatusList(int index) {\n if (nodeStatusListBuilder_ == null) {\n return nodeStatusList_.get(index);\n } else {\n return nodeStatusListBuilder_.getMessage(index);\n }\n }",
"public Builder addNodeStatusList(entities.Torrent.NodeReplicationStatus value) {\n if (nodeStatusListBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureNodeStatusListIsMutable();\n nodeStatusList_.add(value);\n onChanged();\n } else {\n nodeStatusListBuilder_.addMessage(value);\n }\n return this;\n }",
"public Builder addAllNodeStatusList(\n java.lang.Iterable<? extends entities.Torrent.NodeReplicationStatus> values) {\n if (nodeStatusListBuilder_ == null) {\n ensureNodeStatusListIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, nodeStatusList_);\n onChanged();\n } else {\n nodeStatusListBuilder_.addAllMessages(values);\n }\n return this;\n }",
"public entities.Torrent.NodeReplicationStatusOrBuilder getNodeStatusListOrBuilder(\n int index) {\n if (nodeStatusListBuilder_ == null) {\n return nodeStatusList_.get(index); } else {\n return nodeStatusListBuilder_.getMessageOrBuilder(index);\n }\n }",
"public int getNodeStatusListCount() {\n if (nodeStatusListBuilder_ == null) {\n return nodeStatusList_.size();\n } else {\n return nodeStatusListBuilder_.getCount();\n }\n }",
"public final int[] cacheNodeStatus() {\n return new int[]{0,0,0,0,0,0,0,0,0,0};\r\n }",
"public java.util.List<entities.Torrent.NodeReplicationStatus.Builder>\n getNodeStatusListBuilderList() {\n return getNodeStatusListFieldBuilder().getBuilderList();\n }",
"public Builder setNodeStatusList(\n int index, entities.Torrent.NodeReplicationStatus value) {\n if (nodeStatusListBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureNodeStatusListIsMutable();\n nodeStatusList_.set(index, value);\n onChanged();\n } else {\n nodeStatusListBuilder_.setMessage(index, value);\n }\n return this;\n }",
"private NodeReplicationStatus(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"int getReplicationCount();",
"public Builder addNodeStatusList(\n int index, entities.Torrent.NodeReplicationStatus value) {\n if (nodeStatusListBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureNodeStatusListIsMutable();\n nodeStatusList_.add(index, value);\n onChanged();\n } else {\n nodeStatusListBuilder_.addMessage(index, value);\n }\n return this;\n }",
"public int getNumNodesSeenByMessage() {\r\n return numNodesSeenByMessage;\r\n }",
"public abstract String getNodeStatusVariableName();",
"public Builder addNodeStatusList(\n entities.Torrent.NodeReplicationStatus.Builder builderForValue) {\n if (nodeStatusListBuilder_ == null) {\n ensureNodeStatusListIsMutable();\n nodeStatusList_.add(builderForValue.build());\n onChanged();\n } else {\n nodeStatusListBuilder_.addMessage(builderForValue.build());\n }\n return this;\n }",
"public entities.Torrent.NodeReplicationStatus.Builder getNodeStatusListBuilder(\n int index) {\n return getNodeStatusListFieldBuilder().getBuilder(index);\n }",
"java.util.List<io.netifi.proteus.admin.om.Node> \n getNodesList();",
"public void list() {\r\n\t\tfor (String key : nodeMap.keySet()) {\r\n\t\t\tNodeRef node = nodeMap.get(key);\r\n\t\t\tSystem.out.println(node.getIp() + \" : \" + node.getPort());\r\n\t\t}\t\t\r\n\t}",
"public static int countNodes() {\n\t\treturn count_nodes;\n\t}",
"default Promise<List<String>> findAllNodesWithStatus(HealthStatus queryStatus) {\n final Promise<List<String>> promise = Promises.promise();\n promise.resolve(Collections.emptyList());\n return promise;\n\n }",
"@Override\n\tpublic long numNodes() {\n\t\treturn numNodes;\n\t}",
"public java.util.List<entities.Torrent.NodeId> getNodesList() {\n if (nodesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(nodes_);\n } else {\n return nodesBuilder_.getMessageList();\n }\n }",
"public NodeInformation[] getNodes() throws CassandraServerManagementException {\r\n StorageServiceMBean ssMBean = null;\r\n try {\r\n ssMBean = CassandraAdminDataHolder\r\n .getInstance().getCassandraMBeanLocator().locateStorageServiceMBean();\r\n } catch (CassandraServerManagementException e) {\r\n handleException(\"Error occurred while retrieving node information list\", e);\r\n }\r\n\r\n if (ssMBean == null) {\r\n handleException(\"Storage Server MBean is null\");\r\n }\r\n\r\n Map<String, String> tokenToEndpoint = ssMBean.getTokenToEndpointMap();\r\n List<String> sortedTokens = new ArrayList<String>(tokenToEndpoint.keySet());\r\n Collections.sort(sortedTokens);\r\n\r\n /* Calculate per-token ownership of the ring */\r\n Map<InetAddress, Float> ownerships = ssMBean.getOwnership();\r\n\r\n List<NodeInformation> nodeInfoList = new ArrayList<NodeInformation>();\r\n for (String token : sortedTokens) {\r\n String primaryEndpoint = tokenToEndpoint.get(token);\r\n String status = ssMBean.getLiveNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_UP\r\n : ssMBean.getUnreachableNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_DOWN\r\n : CassandraManagementConstants.NodeStatuses.NODE_STATUS_UNKNOWN;\r\n\r\n String state = ssMBean.getJoiningNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_JOINING\r\n : ssMBean.getLeavingNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_LEAVING\r\n : CassandraManagementConstants.NodeStatuses.NODE_STATUS_NORMAL;\r\n\r\n Map<String, String> loadMap = ssMBean.getLoadMap();\r\n String load = loadMap.containsKey(primaryEndpoint)\r\n ? loadMap.get(primaryEndpoint)\r\n : CassandraManagementConstants.NodeStatuses.NODE_STATUS_UNKNOWN;\r\n\r\n Float ownership = ownerships.get(token);\r\n String owns = \"N/A\";\r\n if(ownership!=null){\r\n owns = new DecimalFormat(\"##0.00%\").format(ownership);\r\n }\r\n NodeInformation nodeInfo = new NodeInformation();\r\n nodeInfo.setAddress(primaryEndpoint);\r\n nodeInfo.setState(state);\r\n nodeInfo.setStatus(status);\r\n nodeInfo.setOwn(owns);\r\n nodeInfo.setLoad(load);\r\n nodeInfo.setToken(token);\r\n nodeInfoList.add(nodeInfo);\r\n }\r\n return nodeInfoList.toArray(new NodeInformation[nodeInfoList.size()]);\r\n }",
"public String replicationState() {\n return this.replicationState;\n }",
"@Override\n public boolean getCurrentNodeStatus(InetAddress ia) {\n if (ia.isAnyLocalAddress()) {\n return true;\n }\n // Check if given address is in cluster\n for (Client c : instance.getClientService().getConnectedClients()) {\n if (c.getSocketAddress().getAddress().equals(ia)) {\n return true;\n }\n }\n // reject all other addresses\n return false;\n }",
"int numNodes() {\n\t\treturn num_nodes;\n\t}",
"private int numNodes()\r\n\t{\r\n\t return nodeMap.size();\r\n\t}",
"public int lockedNodeCount() {\n\treturn lockedNodes;\n }",
"@Override\n\tpublic Collection<TaskStatus> getTaskStatus(){\n \tcheckInitialized();\n \t\n \t@SuppressWarnings(\"unchecked\")\n\t\tCollection<Collection<TaskStatus>> statusTree=Collections.EMPTY_LIST;\n \tfinal MultiTask<Collection<TaskStatus>> mtask;\n \ttry {\n\t\t\t mtask = breeder.executeCallable(new GetTaskStatus(this));\n\t\t\t statusTree = mtask.get();\n \t} catch (ExecutionException ex){\n \t\tlog.fatal(\"Could not get status of tasks for job \"+this.getId(), ex);\n \t} catch(InterruptedException ex) {\n \t\tlog.fatal(\"Could not get status of tasks for job \"+this.getId(), ex);\n \t}\n\t\t\t\n\t\t// Flatten into single collection\n\t\tList<TaskStatus> result = new ArrayList<TaskStatus>((int)(statusTree.size()*this.getThreadCount()));\n\t\tfor(Collection<TaskStatus> statusForNode: statusTree) {\n\t\t\tresult.addAll(statusForNode);\n\t\t}\n\t\t\n\t\treturn result;\n \n\t}",
"int getNodeCount() {\n\t\treturn m_list_nodes.size();\n\t}",
"int getNodesCount();",
"int getNodesCount();",
"public java.util.List<java.lang.Integer>\n getStatusList() {\n return status_;\n }",
"public static int getNumberOfNodes() {\n return(numberOfNodes);\n\t }",
"@java.lang.Override\n public int getNodesCount() {\n return nodes_.size();\n }",
"private NodeRestartRequest() {\n\t\t}",
"java.util.List<entities.Torrent.NodeId>\n getNodesList();",
"List<CommunicationLink> getAllNodes()\n {\n return new ArrayList<>(allNodes.values());\n }",
"public ODocument clusterStatus() {\n checkConnected();\n return remote.getClusterStatus(user, password);\n }",
"public StatusChecker(Node node){\n this.node=node;\n start();\n }",
"public Builder clearNodeStatusList() {\n if (nodeStatusListBuilder_ == null) {\n nodeStatusList_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n nodeStatusListBuilder_.clear();\n }\n return this;\n }",
"@java.lang.Override\n public java.util.List<entities.Torrent.NodeId> getNodesList() {\n return nodes_;\n }",
"public int getNumberOfNodesEvaluated();",
"java.util.List<java.lang.Integer> getStatusList();",
"private List<Node> getNodes() {\n List<Node> nodes = new ArrayList<Node>();\n NodeApi.GetConnectedNodesResult rawNodes =\n Wearable.NodeApi.getConnectedNodes(mGoogleApiClient).await();\n for (Node node : rawNodes.getNodes()) {\n nodes.add(node);\n }\n return nodes;\n }",
"public int numNodes() {\n\t\treturn numNodes;\n\t}",
"void updateRmiClientsCount() {\n int noOfClientsConnected = 0;\n\n String[] connectionIds = rmiConnector.getConnectionIds();\n\n if (connectionIds != null) {\n noOfClientsConnected = connectionIds.length;\n }\n\n logger.info(\"No. of RMI clients connected :: {}\", noOfClientsConnected);\n\n AdminDistributedSystemJmxImpl adminDSJmx = (AdminDistributedSystemJmxImpl) system;\n\n adminDSJmx.setRmiClientCountZero(noOfClientsConnected == 0);\n }",
"public int getReplicationDegree() {\n return replicationDegree;\n }",
"public int getReplicationDegree() {\n return replicationDegree;\n }",
"public List<NetworkNode> listNetworkNode();",
"private void updateGeoRepStatus(GlusterVolumeEntity volume, GlusterGeoRepSession session) {\n\n List<HashSet<GeoRepSessionStatus>> list = new ArrayList<>();\n // grouped node status\n int replicaCount = volume.getReplicaCount() == 0 ? 1 : volume.getReplicaCount();\n for (int i = 0; i < volume.getBricks().size(); i = i + replicaCount) {\n HashSet<GeoRepSessionStatus> subVolumeStatusSet = new HashSet<>();\n int j = 0;\n while (j < replicaCount) {\n Guid brickId = volume.getBricks().get(i + j).getId();\n subVolumeStatusSet.add(getStatusForBrickFromSession(session, brickId));\n j++;\n }\n list.add(subVolumeStatusSet);\n }\n\n session.setStatus(GeoRepSessionStatus.ACTIVE);\n // iterate through grouped status to set consolidated status\n for (HashSet<GeoRepSessionStatus> subVolumeStatusValues : list) {\n if (subVolumeStatusValues.contains(GeoRepSessionStatus.ACTIVE)) {\n // healthy\n continue;\n } else if (subVolumeStatusValues.contains(GeoRepSessionStatus.FAULTY)) {\n session.setStatus(GeoRepSessionStatus.FAULTY);\n // if any one of the sub-volume is faulty, the overall session status if faulty\n return;\n }\n // override status in case of these values\n if (ArrayUtils.contains(overridableStatuses, session.getStatus())) {\n if (subVolumeStatusValues.size() == 1) {\n session.setStatus((GeoRepSessionStatus) subVolumeStatusValues.toArray()[0]);\n } else {\n // if status values in sub-volume are not the same, what do we do?\n // this should not happen, so we'll log it for now\n log.info(\"Multiple status values found in volume '{}'\", session.getMasterVolumeName());\n }\n }\n }\n\n }",
"@SuppressWarnings(\"unused\")\n private ReplicationStatusResponse() {\n this(false);\n }",
"int getNrNodes() {\n\t\treturn adjList.size();\n\t}",
"int getNodeCount();",
"int getNodeCount();",
"public int getConnectionStatus()\r\n { return connectionStatus; }",
"public int getNodeCount() {\n return nodeCount;\n }",
"public int getNetworkNodesNumber() {\n\t\t\n\t\t//Return nodes size\n\t\treturn nodes.size();\n\t\t\n\t}",
"void nodeOnline();",
"public static String getClusterStatusNodePath() {\n return String.join(\"/\", \"\", ROOT_NODE, COMPUTE_NODE, STATUS_NODE);\n }",
"@Override\n protected int minimumNumberOfReplicas() {\n return 1;\n }",
"@Override\n public void statusUpdate(final String asgName, final ASGStatus newStatus, final boolean isReplication) {\n if (isReplication) {\n return;\n }\n for (final PeerEurekaNode node : peerEurekaNodes.getPeerEurekaNodes()) {\n replicateASGInfoToReplicaNodes(asgName, newStatus, node);\n\n }\n }",
"@PostMapping(\"/queryGroupStatus/list\")\n @PreAuthorize(ConstantProperties.HAS_ROLE_ADMIN)\n public BaseResponse getGroupStatusList(@Valid @RequestBody ReqGroupStatus reqGroupStatus) throws NodeMgrException {\n Instant startTime = Instant.now();\n BaseResponse baseResponse = new BaseResponse(ConstantCode.SUCCESS);\n log.info(\"start getGroupStatusMap startTime:{}\", startTime.toEpochMilli());\n List<String> nodeIdList = reqGroupStatus.getNodeIdList();\n List<RspGroupStatus> resList = groupService.listGroupStatus(nodeIdList,\n reqGroupStatus.getGroupIdList());\n baseResponse.setData(resList);\n log.info(\"end getGroupStatusMap useTime:{} result:{}\",\n Duration.between(startTime, Instant.now()).toMillis(),\n JsonTools.toJSONString(baseResponse));\n return baseResponse;\n }",
"public String getNumberOfNodesEvaluated(){return Integer.toString(NumberOfVisitedNodes);}",
"private void getNodesCount(HttpServletRequest request, HttpServletResponse response) throws IOException {\n int countNodes = SimApi.getNodesCount();\n response.getWriter().write(Integer.toString(countNodes));\n }",
"java.util.List<? extends io.netifi.proteus.admin.om.NodeOrBuilder> \n getNodesOrBuilderList();",
"@Test(timeout = 10000L)\n public void testNodesInformation() throws Exception {\n CommonDriverAdminTests.testNodesInformation(client, nbNodes);\n }",
"public int getNumNodes() {\n\t\treturn nodes.size();\n\t}",
"@RequestLine(\"GET /status\")\n Status getNeustarNetworkStatus();",
"public void printStatus(){\n System.out.println(\"Nodes: \" + \n getVertexCount() + \" Edges: \" + \n getEdgeCount()); \n //and \" + getEdgeCount() + \" edges active.\");\n }",
"public abstract Collection<Node> getAllSuccessors();",
"public int getStatusCount() {\n return status_.size();\n }",
"public List<Long> getSessionNodes() {\n List<Long> ret = new ArrayList<>();\n\n for (int i = 0; i < sessionsList.size(); i++) {\n ret.add(sessionsList.get(i).dhtNodes());\n }\n\n return ret;\n }",
"@Override\n public ClusterStatus getCurrentClusterStatus() {\n if (getMemberList().size() > 1) {\n return CLUSTER_FUNCTIONAL;\n }\n // when only one node is connected return degraded\n if (getMemberList().size() == 1) {\n return CLUSTER_DEGRADED;\n }\n // consider all other states as illegal\n return CLUSTER_ILLEGAL;\n }",
"public int getNodeCount() {\n return node_.size();\n }",
"private void refreshNodeList() {\n if (UnderNet.router.status.equals(InterfaceStatus.STARTED)) {\n //Using connected and cached nodes if the router has started.\n ArrayList<Node> nodesToList = UnderNet.router.getConnectedNodes();\n for (Node cachedNode :\n EntryNodeCache.cachedNodes) {\n boolean canAdd = true;\n for (Node connectedNode : UnderNet.router.getConnectedNodes()) {\n if (cachedNode.getAddress().equals(connectedNode.getAddress())) {\n canAdd = false;\n }\n }\n if (canAdd) {\n nodesToList.add(cachedNode);\n }\n }\n nodeList.setListData(nodesToList.toArray());\n } else {\n //Using cached nodes if the router isn't online.\n nodeList.setListData(EntryNodeCache.cachedNodes.toArray());\n }\n }",
"int getStatusCount();",
"List<StatusListener> mo9950b();",
"public List<Output<TInt32>> nodeIdsList() {\n return nodeIdsList;\n }",
"public Builder setNodeStatusList(\n int index, entities.Torrent.NodeReplicationStatus.Builder builderForValue) {\n if (nodeStatusListBuilder_ == null) {\n ensureNodeStatusListIsMutable();\n nodeStatusList_.set(index, builderForValue.build());\n onChanged();\n } else {\n nodeStatusListBuilder_.setMessage(index, builderForValue.build());\n }\n return this;\n }",
"@Override\r\n\tpublic int getNumberOfNodes() {\n\t\treturn 0;\r\n\t}",
"public java.util.List<? extends entities.Torrent.NodeIdOrBuilder>\n getNodesOrBuilderList() {\n if (nodesBuilder_ != null) {\n return nodesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(nodes_);\n }\n }",
"@Override\n public void onNewClusterState(ClusterState state) {\n transportService.sendRequest(\n clusterService.localNode(),\n transportReplicaAction,\n replicaRequest,\n new ActionListenerResponseHandler<>(onCompletionListener, ReplicaResponse::new)\n );\n }",
"public java.util.List<java.lang.Integer>\n getStatusList() {\n return java.util.Collections.unmodifiableList(status_);\n }",
"void refreshNodeHostCount(int nodeHostCount);",
"protected int numNodes() {\n\t\treturn nodes.size();\n\t}",
"public static void getStatus() {\n\t\ttry {\n\t\t\tint i = 1;\n\t\t\tList<Object[]>serverDetails = ServerStatus.getServerDetails();\n\t\t\tfor (Object[] servers:serverDetails){\n\t\t\t\tServerStatus.verifyServerStatus(i,(String)servers[0], (String)servers[1], (String)servers[2]);\n\t\t\t\ti++;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tcatch (Exception ex){\n\t\t\tex.printStackTrace();\n\t\t}\n\t}",
"public Vector<Node> getNodes(){\n\t\treturn this.listOfNodes;\n\t}"
] |
[
"0.76754725",
"0.7330513",
"0.7273623",
"0.7185904",
"0.71540165",
"0.711505",
"0.71102214",
"0.7056519",
"0.7022613",
"0.6881543",
"0.68746865",
"0.68614775",
"0.6730206",
"0.66633195",
"0.6638524",
"0.6558738",
"0.6554595",
"0.6390956",
"0.6324348",
"0.6301884",
"0.62128437",
"0.6153897",
"0.6058742",
"0.60192406",
"0.57494354",
"0.5748884",
"0.5723979",
"0.5719001",
"0.570223",
"0.5561525",
"0.5554988",
"0.5542978",
"0.5536758",
"0.5529717",
"0.5515723",
"0.5507869",
"0.5477924",
"0.545919",
"0.5453382",
"0.5440473",
"0.5432976",
"0.5413977",
"0.54059",
"0.54059",
"0.53920895",
"0.53919417",
"0.538495",
"0.53726",
"0.5371442",
"0.53705126",
"0.53690714",
"0.53564674",
"0.53378046",
"0.5328064",
"0.5315124",
"0.5306361",
"0.5305867",
"0.5297228",
"0.52948767",
"0.5292507",
"0.5292507",
"0.5286415",
"0.5276344",
"0.52740955",
"0.5273183",
"0.527266",
"0.527266",
"0.5272264",
"0.52635926",
"0.526193",
"0.52519333",
"0.52507585",
"0.5248499",
"0.52444947",
"0.52385783",
"0.5235392",
"0.52331",
"0.5231807",
"0.52273303",
"0.5224498",
"0.5218425",
"0.52174264",
"0.52173257",
"0.520692",
"0.5199218",
"0.5191387",
"0.51871306",
"0.5186112",
"0.5181667",
"0.5179533",
"0.51790094",
"0.51782185",
"0.51557237",
"0.5153083",
"0.5153054",
"0.5149576",
"0.51491016",
"0.5141703",
"0.51399857",
"0.51249874"
] |
0.596705
|
24
|
The status of all the requests to other nodes repeated .NodeReplicationStatus nodeStatusList = 3;
|
public java.util.List<entities.Torrent.NodeReplicationStatus.Builder>
getNodeStatusListBuilderList() {
return getNodeStatusListFieldBuilder().getBuilderList();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"entities.Torrent.NodeReplicationStatus getNodeStatusList(int index);",
"@java.lang.Override\n public java.util.List<entities.Torrent.NodeReplicationStatus> getNodeStatusListList() {\n return nodeStatusList_;\n }",
"java.util.List<entities.Torrent.NodeReplicationStatus>\n getNodeStatusListList();",
"public java.util.List<entities.Torrent.NodeReplicationStatus> getNodeStatusListList() {\n if (nodeStatusListBuilder_ == null) {\n return java.util.Collections.unmodifiableList(nodeStatusList_);\n } else {\n return nodeStatusListBuilder_.getMessageList();\n }\n }",
"@java.lang.Override\n public java.util.List<? extends entities.Torrent.NodeReplicationStatusOrBuilder>\n getNodeStatusListOrBuilderList() {\n return nodeStatusList_;\n }",
"public java.util.List<? extends entities.Torrent.NodeReplicationStatusOrBuilder>\n getNodeStatusListOrBuilderList() {\n if (nodeStatusListBuilder_ != null) {\n return nodeStatusListBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(nodeStatusList_);\n }\n }",
"@java.lang.Override\n public int getNodeStatusListCount() {\n return nodeStatusList_.size();\n }",
"java.util.List<? extends entities.Torrent.NodeReplicationStatusOrBuilder>\n getNodeStatusListOrBuilderList();",
"public entities.Torrent.NodeReplicationStatus.Builder addNodeStatusListBuilder() {\n return getNodeStatusListFieldBuilder().addBuilder(\n entities.Torrent.NodeReplicationStatus.getDefaultInstance());\n }",
"int getNodeStatusListCount();",
"@java.lang.Override\n public entities.Torrent.NodeReplicationStatus getNodeStatusList(int index) {\n return nodeStatusList_.get(index);\n }",
"entities.Torrent.NodeReplicationStatusOrBuilder getNodeStatusListOrBuilder(\n int index);",
"@java.lang.Override\n public entities.Torrent.NodeReplicationStatusOrBuilder getNodeStatusListOrBuilder(\n int index) {\n return nodeStatusList_.get(index);\n }",
"public entities.Torrent.NodeReplicationStatus getNodeStatusList(int index) {\n if (nodeStatusListBuilder_ == null) {\n return nodeStatusList_.get(index);\n } else {\n return nodeStatusListBuilder_.getMessage(index);\n }\n }",
"public Builder addNodeStatusList(entities.Torrent.NodeReplicationStatus value) {\n if (nodeStatusListBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureNodeStatusListIsMutable();\n nodeStatusList_.add(value);\n onChanged();\n } else {\n nodeStatusListBuilder_.addMessage(value);\n }\n return this;\n }",
"public Builder addAllNodeStatusList(\n java.lang.Iterable<? extends entities.Torrent.NodeReplicationStatus> values) {\n if (nodeStatusListBuilder_ == null) {\n ensureNodeStatusListIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, nodeStatusList_);\n onChanged();\n } else {\n nodeStatusListBuilder_.addAllMessages(values);\n }\n return this;\n }",
"public entities.Torrent.NodeReplicationStatusOrBuilder getNodeStatusListOrBuilder(\n int index) {\n if (nodeStatusListBuilder_ == null) {\n return nodeStatusList_.get(index); } else {\n return nodeStatusListBuilder_.getMessageOrBuilder(index);\n }\n }",
"public int getNodeStatusListCount() {\n if (nodeStatusListBuilder_ == null) {\n return nodeStatusList_.size();\n } else {\n return nodeStatusListBuilder_.getCount();\n }\n }",
"public final int[] cacheNodeStatus() {\n return new int[]{0,0,0,0,0,0,0,0,0,0};\r\n }",
"public Builder setNodeStatusList(\n int index, entities.Torrent.NodeReplicationStatus value) {\n if (nodeStatusListBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureNodeStatusListIsMutable();\n nodeStatusList_.set(index, value);\n onChanged();\n } else {\n nodeStatusListBuilder_.setMessage(index, value);\n }\n return this;\n }",
"private NodeReplicationStatus(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"int getReplicationCount();",
"public Builder addNodeStatusList(\n int index, entities.Torrent.NodeReplicationStatus value) {\n if (nodeStatusListBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureNodeStatusListIsMutable();\n nodeStatusList_.add(index, value);\n onChanged();\n } else {\n nodeStatusListBuilder_.addMessage(index, value);\n }\n return this;\n }",
"public entities.Torrent.NodeReplicationStatus.Builder addNodeStatusListBuilder(\n int index) {\n return getNodeStatusListFieldBuilder().addBuilder(\n index, entities.Torrent.NodeReplicationStatus.getDefaultInstance());\n }",
"public int getNumNodesSeenByMessage() {\r\n return numNodesSeenByMessage;\r\n }",
"public abstract String getNodeStatusVariableName();",
"public Builder addNodeStatusList(\n entities.Torrent.NodeReplicationStatus.Builder builderForValue) {\n if (nodeStatusListBuilder_ == null) {\n ensureNodeStatusListIsMutable();\n nodeStatusList_.add(builderForValue.build());\n onChanged();\n } else {\n nodeStatusListBuilder_.addMessage(builderForValue.build());\n }\n return this;\n }",
"public entities.Torrent.NodeReplicationStatus.Builder getNodeStatusListBuilder(\n int index) {\n return getNodeStatusListFieldBuilder().getBuilder(index);\n }",
"java.util.List<io.netifi.proteus.admin.om.Node> \n getNodesList();",
"public void list() {\r\n\t\tfor (String key : nodeMap.keySet()) {\r\n\t\t\tNodeRef node = nodeMap.get(key);\r\n\t\t\tSystem.out.println(node.getIp() + \" : \" + node.getPort());\r\n\t\t}\t\t\r\n\t}",
"public static int countNodes() {\n\t\treturn count_nodes;\n\t}",
"default Promise<List<String>> findAllNodesWithStatus(HealthStatus queryStatus) {\n final Promise<List<String>> promise = Promises.promise();\n promise.resolve(Collections.emptyList());\n return promise;\n\n }",
"@Override\n\tpublic long numNodes() {\n\t\treturn numNodes;\n\t}",
"public java.util.List<entities.Torrent.NodeId> getNodesList() {\n if (nodesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(nodes_);\n } else {\n return nodesBuilder_.getMessageList();\n }\n }",
"public NodeInformation[] getNodes() throws CassandraServerManagementException {\r\n StorageServiceMBean ssMBean = null;\r\n try {\r\n ssMBean = CassandraAdminDataHolder\r\n .getInstance().getCassandraMBeanLocator().locateStorageServiceMBean();\r\n } catch (CassandraServerManagementException e) {\r\n handleException(\"Error occurred while retrieving node information list\", e);\r\n }\r\n\r\n if (ssMBean == null) {\r\n handleException(\"Storage Server MBean is null\");\r\n }\r\n\r\n Map<String, String> tokenToEndpoint = ssMBean.getTokenToEndpointMap();\r\n List<String> sortedTokens = new ArrayList<String>(tokenToEndpoint.keySet());\r\n Collections.sort(sortedTokens);\r\n\r\n /* Calculate per-token ownership of the ring */\r\n Map<InetAddress, Float> ownerships = ssMBean.getOwnership();\r\n\r\n List<NodeInformation> nodeInfoList = new ArrayList<NodeInformation>();\r\n for (String token : sortedTokens) {\r\n String primaryEndpoint = tokenToEndpoint.get(token);\r\n String status = ssMBean.getLiveNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_UP\r\n : ssMBean.getUnreachableNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_DOWN\r\n : CassandraManagementConstants.NodeStatuses.NODE_STATUS_UNKNOWN;\r\n\r\n String state = ssMBean.getJoiningNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_JOINING\r\n : ssMBean.getLeavingNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_LEAVING\r\n : CassandraManagementConstants.NodeStatuses.NODE_STATUS_NORMAL;\r\n\r\n Map<String, String> loadMap = ssMBean.getLoadMap();\r\n String load = loadMap.containsKey(primaryEndpoint)\r\n ? loadMap.get(primaryEndpoint)\r\n : CassandraManagementConstants.NodeStatuses.NODE_STATUS_UNKNOWN;\r\n\r\n Float ownership = ownerships.get(token);\r\n String owns = \"N/A\";\r\n if(ownership!=null){\r\n owns = new DecimalFormat(\"##0.00%\").format(ownership);\r\n }\r\n NodeInformation nodeInfo = new NodeInformation();\r\n nodeInfo.setAddress(primaryEndpoint);\r\n nodeInfo.setState(state);\r\n nodeInfo.setStatus(status);\r\n nodeInfo.setOwn(owns);\r\n nodeInfo.setLoad(load);\r\n nodeInfo.setToken(token);\r\n nodeInfoList.add(nodeInfo);\r\n }\r\n return nodeInfoList.toArray(new NodeInformation[nodeInfoList.size()]);\r\n }",
"public String replicationState() {\n return this.replicationState;\n }",
"@Override\n public boolean getCurrentNodeStatus(InetAddress ia) {\n if (ia.isAnyLocalAddress()) {\n return true;\n }\n // Check if given address is in cluster\n for (Client c : instance.getClientService().getConnectedClients()) {\n if (c.getSocketAddress().getAddress().equals(ia)) {\n return true;\n }\n }\n // reject all other addresses\n return false;\n }",
"int numNodes() {\n\t\treturn num_nodes;\n\t}",
"private int numNodes()\r\n\t{\r\n\t return nodeMap.size();\r\n\t}",
"public int lockedNodeCount() {\n\treturn lockedNodes;\n }",
"@Override\n\tpublic Collection<TaskStatus> getTaskStatus(){\n \tcheckInitialized();\n \t\n \t@SuppressWarnings(\"unchecked\")\n\t\tCollection<Collection<TaskStatus>> statusTree=Collections.EMPTY_LIST;\n \tfinal MultiTask<Collection<TaskStatus>> mtask;\n \ttry {\n\t\t\t mtask = breeder.executeCallable(new GetTaskStatus(this));\n\t\t\t statusTree = mtask.get();\n \t} catch (ExecutionException ex){\n \t\tlog.fatal(\"Could not get status of tasks for job \"+this.getId(), ex);\n \t} catch(InterruptedException ex) {\n \t\tlog.fatal(\"Could not get status of tasks for job \"+this.getId(), ex);\n \t}\n\t\t\t\n\t\t// Flatten into single collection\n\t\tList<TaskStatus> result = new ArrayList<TaskStatus>((int)(statusTree.size()*this.getThreadCount()));\n\t\tfor(Collection<TaskStatus> statusForNode: statusTree) {\n\t\t\tresult.addAll(statusForNode);\n\t\t}\n\t\t\n\t\treturn result;\n \n\t}",
"int getNodeCount() {\n\t\treturn m_list_nodes.size();\n\t}",
"int getNodesCount();",
"int getNodesCount();",
"public java.util.List<java.lang.Integer>\n getStatusList() {\n return status_;\n }",
"public static int getNumberOfNodes() {\n return(numberOfNodes);\n\t }",
"@java.lang.Override\n public int getNodesCount() {\n return nodes_.size();\n }",
"java.util.List<entities.Torrent.NodeId>\n getNodesList();",
"List<CommunicationLink> getAllNodes()\n {\n return new ArrayList<>(allNodes.values());\n }",
"private NodeRestartRequest() {\n\t\t}",
"public ODocument clusterStatus() {\n checkConnected();\n return remote.getClusterStatus(user, password);\n }",
"public StatusChecker(Node node){\n this.node=node;\n start();\n }",
"public Builder clearNodeStatusList() {\n if (nodeStatusListBuilder_ == null) {\n nodeStatusList_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n nodeStatusListBuilder_.clear();\n }\n return this;\n }",
"@java.lang.Override\n public java.util.List<entities.Torrent.NodeId> getNodesList() {\n return nodes_;\n }",
"public int getNumberOfNodesEvaluated();",
"private List<Node> getNodes() {\n List<Node> nodes = new ArrayList<Node>();\n NodeApi.GetConnectedNodesResult rawNodes =\n Wearable.NodeApi.getConnectedNodes(mGoogleApiClient).await();\n for (Node node : rawNodes.getNodes()) {\n nodes.add(node);\n }\n return nodes;\n }",
"java.util.List<java.lang.Integer> getStatusList();",
"public int numNodes() {\n\t\treturn numNodes;\n\t}",
"void updateRmiClientsCount() {\n int noOfClientsConnected = 0;\n\n String[] connectionIds = rmiConnector.getConnectionIds();\n\n if (connectionIds != null) {\n noOfClientsConnected = connectionIds.length;\n }\n\n logger.info(\"No. of RMI clients connected :: {}\", noOfClientsConnected);\n\n AdminDistributedSystemJmxImpl adminDSJmx = (AdminDistributedSystemJmxImpl) system;\n\n adminDSJmx.setRmiClientCountZero(noOfClientsConnected == 0);\n }",
"public int getReplicationDegree() {\n return replicationDegree;\n }",
"public int getReplicationDegree() {\n return replicationDegree;\n }",
"public List<NetworkNode> listNetworkNode();",
"private void updateGeoRepStatus(GlusterVolumeEntity volume, GlusterGeoRepSession session) {\n\n List<HashSet<GeoRepSessionStatus>> list = new ArrayList<>();\n // grouped node status\n int replicaCount = volume.getReplicaCount() == 0 ? 1 : volume.getReplicaCount();\n for (int i = 0; i < volume.getBricks().size(); i = i + replicaCount) {\n HashSet<GeoRepSessionStatus> subVolumeStatusSet = new HashSet<>();\n int j = 0;\n while (j < replicaCount) {\n Guid brickId = volume.getBricks().get(i + j).getId();\n subVolumeStatusSet.add(getStatusForBrickFromSession(session, brickId));\n j++;\n }\n list.add(subVolumeStatusSet);\n }\n\n session.setStatus(GeoRepSessionStatus.ACTIVE);\n // iterate through grouped status to set consolidated status\n for (HashSet<GeoRepSessionStatus> subVolumeStatusValues : list) {\n if (subVolumeStatusValues.contains(GeoRepSessionStatus.ACTIVE)) {\n // healthy\n continue;\n } else if (subVolumeStatusValues.contains(GeoRepSessionStatus.FAULTY)) {\n session.setStatus(GeoRepSessionStatus.FAULTY);\n // if any one of the sub-volume is faulty, the overall session status if faulty\n return;\n }\n // override status in case of these values\n if (ArrayUtils.contains(overridableStatuses, session.getStatus())) {\n if (subVolumeStatusValues.size() == 1) {\n session.setStatus((GeoRepSessionStatus) subVolumeStatusValues.toArray()[0]);\n } else {\n // if status values in sub-volume are not the same, what do we do?\n // this should not happen, so we'll log it for now\n log.info(\"Multiple status values found in volume '{}'\", session.getMasterVolumeName());\n }\n }\n }\n\n }",
"@SuppressWarnings(\"unused\")\n private ReplicationStatusResponse() {\n this(false);\n }",
"int getNrNodes() {\n\t\treturn adjList.size();\n\t}",
"public int getConnectionStatus()\r\n { return connectionStatus; }",
"int getNodeCount();",
"int getNodeCount();",
"public int getNodeCount() {\n return nodeCount;\n }",
"public int getNetworkNodesNumber() {\n\t\t\n\t\t//Return nodes size\n\t\treturn nodes.size();\n\t\t\n\t}",
"void nodeOnline();",
"public static String getClusterStatusNodePath() {\n return String.join(\"/\", \"\", ROOT_NODE, COMPUTE_NODE, STATUS_NODE);\n }",
"@Override\n protected int minimumNumberOfReplicas() {\n return 1;\n }",
"@Override\n public void statusUpdate(final String asgName, final ASGStatus newStatus, final boolean isReplication) {\n if (isReplication) {\n return;\n }\n for (final PeerEurekaNode node : peerEurekaNodes.getPeerEurekaNodes()) {\n replicateASGInfoToReplicaNodes(asgName, newStatus, node);\n\n }\n }",
"@PostMapping(\"/queryGroupStatus/list\")\n @PreAuthorize(ConstantProperties.HAS_ROLE_ADMIN)\n public BaseResponse getGroupStatusList(@Valid @RequestBody ReqGroupStatus reqGroupStatus) throws NodeMgrException {\n Instant startTime = Instant.now();\n BaseResponse baseResponse = new BaseResponse(ConstantCode.SUCCESS);\n log.info(\"start getGroupStatusMap startTime:{}\", startTime.toEpochMilli());\n List<String> nodeIdList = reqGroupStatus.getNodeIdList();\n List<RspGroupStatus> resList = groupService.listGroupStatus(nodeIdList,\n reqGroupStatus.getGroupIdList());\n baseResponse.setData(resList);\n log.info(\"end getGroupStatusMap useTime:{} result:{}\",\n Duration.between(startTime, Instant.now()).toMillis(),\n JsonTools.toJSONString(baseResponse));\n return baseResponse;\n }",
"java.util.List<? extends io.netifi.proteus.admin.om.NodeOrBuilder> \n getNodesOrBuilderList();",
"public String getNumberOfNodesEvaluated(){return Integer.toString(NumberOfVisitedNodes);}",
"private void getNodesCount(HttpServletRequest request, HttpServletResponse response) throws IOException {\n int countNodes = SimApi.getNodesCount();\n response.getWriter().write(Integer.toString(countNodes));\n }",
"@Test(timeout = 10000L)\n public void testNodesInformation() throws Exception {\n CommonDriverAdminTests.testNodesInformation(client, nbNodes);\n }",
"public int getNumNodes() {\n\t\treturn nodes.size();\n\t}",
"public abstract Collection<Node> getAllSuccessors();",
"@RequestLine(\"GET /status\")\n Status getNeustarNetworkStatus();",
"public void printStatus(){\n System.out.println(\"Nodes: \" + \n getVertexCount() + \" Edges: \" + \n getEdgeCount()); \n //and \" + getEdgeCount() + \" edges active.\");\n }",
"public int getStatusCount() {\n return status_.size();\n }",
"public List<Long> getSessionNodes() {\n List<Long> ret = new ArrayList<>();\n\n for (int i = 0; i < sessionsList.size(); i++) {\n ret.add(sessionsList.get(i).dhtNodes());\n }\n\n return ret;\n }",
"@Override\n public ClusterStatus getCurrentClusterStatus() {\n if (getMemberList().size() > 1) {\n return CLUSTER_FUNCTIONAL;\n }\n // when only one node is connected return degraded\n if (getMemberList().size() == 1) {\n return CLUSTER_DEGRADED;\n }\n // consider all other states as illegal\n return CLUSTER_ILLEGAL;\n }",
"private void refreshNodeList() {\n if (UnderNet.router.status.equals(InterfaceStatus.STARTED)) {\n //Using connected and cached nodes if the router has started.\n ArrayList<Node> nodesToList = UnderNet.router.getConnectedNodes();\n for (Node cachedNode :\n EntryNodeCache.cachedNodes) {\n boolean canAdd = true;\n for (Node connectedNode : UnderNet.router.getConnectedNodes()) {\n if (cachedNode.getAddress().equals(connectedNode.getAddress())) {\n canAdd = false;\n }\n }\n if (canAdd) {\n nodesToList.add(cachedNode);\n }\n }\n nodeList.setListData(nodesToList.toArray());\n } else {\n //Using cached nodes if the router isn't online.\n nodeList.setListData(EntryNodeCache.cachedNodes.toArray());\n }\n }",
"public int getNodeCount() {\n return node_.size();\n }",
"public Builder setNodeStatusList(\n int index, entities.Torrent.NodeReplicationStatus.Builder builderForValue) {\n if (nodeStatusListBuilder_ == null) {\n ensureNodeStatusListIsMutable();\n nodeStatusList_.set(index, builderForValue.build());\n onChanged();\n } else {\n nodeStatusListBuilder_.setMessage(index, builderForValue.build());\n }\n return this;\n }",
"public List<Output<TInt32>> nodeIdsList() {\n return nodeIdsList;\n }",
"List<StatusListener> mo9950b();",
"int getStatusCount();",
"@Override\n public void onNewClusterState(ClusterState state) {\n transportService.sendRequest(\n clusterService.localNode(),\n transportReplicaAction,\n replicaRequest,\n new ActionListenerResponseHandler<>(onCompletionListener, ReplicaResponse::new)\n );\n }",
"public java.util.List<? extends entities.Torrent.NodeIdOrBuilder>\n getNodesOrBuilderList() {\n if (nodesBuilder_ != null) {\n return nodesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(nodes_);\n }\n }",
"@Override\r\n\tpublic int getNumberOfNodes() {\n\t\treturn 0;\r\n\t}",
"public java.util.List<java.lang.Integer>\n getStatusList() {\n return java.util.Collections.unmodifiableList(status_);\n }",
"void refreshNodeHostCount(int nodeHostCount);",
"protected int numNodes() {\n\t\treturn nodes.size();\n\t}",
"public static void getStatus() {\n\t\ttry {\n\t\t\tint i = 1;\n\t\t\tList<Object[]>serverDetails = ServerStatus.getServerDetails();\n\t\t\tfor (Object[] servers:serverDetails){\n\t\t\t\tServerStatus.verifyServerStatus(i,(String)servers[0], (String)servers[1], (String)servers[2]);\n\t\t\t\ti++;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tcatch (Exception ex){\n\t\t\tex.printStackTrace();\n\t\t}\n\t}",
"public Vector<Node> getNodes(){\n\t\treturn this.listOfNodes;\n\t}"
] |
[
"0.7677447",
"0.73326534",
"0.72751945",
"0.7187517",
"0.7156577",
"0.71170497",
"0.71088874",
"0.70586026",
"0.70244354",
"0.68789655",
"0.68768275",
"0.6863607",
"0.6732412",
"0.6665126",
"0.6640762",
"0.65603524",
"0.6556245",
"0.63892424",
"0.63225454",
"0.62158686",
"0.6154571",
"0.6059235",
"0.6021623",
"0.5969211",
"0.5746757",
"0.5746533",
"0.5725065",
"0.5719905",
"0.5702983",
"0.5561155",
"0.55533105",
"0.5541831",
"0.5535313",
"0.55308056",
"0.55150694",
"0.5509859",
"0.54764414",
"0.54578775",
"0.5451353",
"0.5438688",
"0.54318774",
"0.54126287",
"0.54034257",
"0.54034257",
"0.5391672",
"0.5390411",
"0.53832936",
"0.53727967",
"0.5370394",
"0.53702694",
"0.53679216",
"0.5354863",
"0.5338436",
"0.53293514",
"0.53118134",
"0.530631",
"0.5305603",
"0.5295997",
"0.5294718",
"0.5293353",
"0.5293353",
"0.5286944",
"0.5276236",
"0.5274766",
"0.5272741",
"0.52713966",
"0.52693284",
"0.52693284",
"0.5261072",
"0.526089",
"0.5252027",
"0.52506906",
"0.52486336",
"0.5245913",
"0.5236892",
"0.5232337",
"0.5231927",
"0.5229986",
"0.5226807",
"0.52229863",
"0.5216052",
"0.5215427",
"0.5215198",
"0.5204292",
"0.5199826",
"0.519047",
"0.51865757",
"0.51846725",
"0.5180031",
"0.5179613",
"0.5179007",
"0.51780134",
"0.515467",
"0.51541543",
"0.5154118",
"0.5149366",
"0.514844",
"0.51400506",
"0.51396614",
"0.512528"
] |
0.6302617
|
19
|
MD5 of the file content bytes fileHash = 1;
|
com.google.protobuf.ByteString getFileHash();
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private String getFileMd5Checksum(String filename){\n\t\ttry {\n\t\t\tbyte[] fileBytes = Files.readAllBytes(Paths.get(FILES_ROOT + filename));\n\t\t\tbyte[] fileHash = MessageDigest.getInstance(\"MD5\").digest(fileBytes);\n\n\t\t\treturn DatatypeConverter.printHexBinary(fileHash);\n\t\t} catch (IOException e) {\n\t\t\t// TODO: Handle file doesn't exist\n\t\t\treturn \"\";\n\t\t} catch (Exception e) {\n\t\t\treturn \"\";\n\t\t}\n\t}",
"public static String computeMD5FileHash (File file) throws Exception {\n byte[] b = createFileChecksum(file);\n String result = \"\";\n\n for (int i=0; i < b.length; i++) {\n result += Integer.toString( ( b[i] & 0xff ) + 0x100, 16).substring( 1 );\n }\n return result;\n }",
"private static String getMD5Checksum(String filename) throws Exception {\r\n\t\tbyte[] b = createChecksum(filename);\r\n\t\tStringBuilder result = new StringBuilder();\r\n\t\tfor (byte v : b) {\r\n\t\t\tresult.append(Integer.toString((v & 0xff) + 0x100, 16).substring(1));\r\n\t\t}\r\n\t\treturn result.toString();\r\n\t}",
"private static String getFileChecksum(File file) throws IOException, NoSuchAlgorithmException {\n FileInputStream fis = new FileInputStream(file);\n\n // Use MD5 algorithm\n MessageDigest digest = MessageDigest.getInstance(\"MD5\");\n\n // Create byte array to read data in chunks\n byte[] byteArray = new byte[1024];\n int bytesCount = 0;\n\n // Read file data and update in message digest\n while ((bytesCount = fis.read(byteArray)) != -1) {\n digest.update(byteArray, 0, bytesCount);\n }\n ;\n\n // close the stream; We don't need it now.\n fis.close();\n\n // Get the hash's bytes\n byte[] bytes = digest.digest();\n\n // This bytes[] has bytes in decimal format;\n // Convert it to hexadecimal format\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < bytes.length; i++) {\n sb.append(Integer.toString((bytes[i] & 0xff) + 0x100, 16).substring(1));\n }\n\n // return complete hash\n return sb.toString();\n }",
"public static String getFileMD5(File file) {\n\t\tMessageDigest messageDigest = null;\n\t\tFileInputStream fileInStream = null;\n\t\tbyte buffer[] = new byte[1024];\n\t\tint length = -1;\n\t\ttry {\n\t\t\tmessageDigest = MessageDigest.getInstance(\"MD5\");\n\t\t\tfileInStream = new FileInputStream(file);\n\t\t\twhile ((length = fileInStream.read(buffer, 0, 1024)) != -1) {\n\t\t\t\tmessageDigest.update(buffer, 0, length);\n\t\t\t}\n\t\t\tfileInStream.close();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t\tBigInteger bigInt = new BigInteger(1, messageDigest.digest());\n\t\treturn bigInt.toString(16);\n\t}",
"public static String fileMD5(File file) {\n\t\tFileInputStream fis = null;\n\t\tString md5 = null;\n\t\ttry {\n\t\t\tfis = new FileInputStream(file);\n\t\t\tmd5 = org.apache.commons.codec.digest.DigestUtils.md5Hex(fis);\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"!!!\", e);\n\t\t} finally {\n\t\t\tCloseUtils.close(fis);\n\t\t}\n\t\treturn md5;\n\t}",
"public static String md5(String inputFile) {\r\n String md5 = null;\r\n logger.debug(\"Start to calculate hashcode (SHA1) for {}\", inputFile);\r\n try (DigestInputStream digestIn = new DigestInputStream(new FileInputStream(inputFile),\r\n MessageDigest.getInstance(\"SHA1\"))) {\r\n byte[] buffer = new byte[1024 * 1024];\r\n while (digestIn.read(buffer) > 0) {\r\n // do nothing\r\n }\r\n md5 = toHexString(digestIn.getMessageDigest().digest());\r\n } catch (NoSuchAlgorithmException | IOException e) {\r\n logger.warn(\"Fail to md5 for {} ({})\", inputFile, e.getMessage());\r\n }\r\n logger.debug(\"End to calculate hashcode (SHA1) for {}, {}\", inputFile, md5);\r\n return md5;\r\n }",
"static String generateChecksum(String filename) {\n\n try {\n // Instantiating file and Hashing Algorithm.\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n FileInputStream file = new FileInputStream(filename);\n\n // Generation of checksum.\n byte[] dataBytes = new byte[1024];\n int nread;\n\n while ((nread = file.read(dataBytes)) != -1) {\n md.update(dataBytes, 0, nread);\n }\n\n byte[] mdbytes = md.digest();\n\n // Convert byte to hex.\n StringBuilder hexString = new StringBuilder();\n\n for (byte mdbyte : mdbytes) {\n String hex = Integer.toHexString(0xff & mdbyte);\n if (hex.length() == 1) hexString.append('0');\n hexString.append(hex);\n }\n\n // Return checksum as completed string.\n return hexString.toString();\n\n } catch (NoSuchAlgorithmException | IOException e) {\n e.printStackTrace();\n }\n return null;\n }",
"public static String getFileMD5(File file) {\n if (!file.isFile()) {\n return null;\n }\n MessageDigest digest = null;\n FileInputStream in = null;\n byte buffer[] = new byte[1024];\n int len;\n try {\n digest = MessageDigest.getInstance(\"MD5\");\n in = new FileInputStream(file);\n while ((len = in.read(buffer, 0, 1024)) != -1) {\n digest.update(buffer, 0, len);\n }\n in.close();\n } catch (Exception e) {\n e.printStackTrace();\n return null;\n }\n BigInteger bigInt = new BigInteger(1, digest.digest());\n String md5 = bigInt.toString(16);\n while (md5.length() < 32)\n md5 = \"0\" + md5;\n return md5;\n }",
"private static String getFileChecksum(MessageDigest digest, File file) throws IOException\n\t {\n\t FileInputStream fis = new FileInputStream(file);\n\t \n\t //Create byte array to read data in chunks\n\t byte[] byteArray = new byte[1024];\n\t int bytesCount = 0;\n\t \n\t //Read file data and update in message digest\n\t while ((bytesCount = fis.read(byteArray)) != -1) {\n\t digest.update(byteArray, 0, bytesCount);\n\t };\n\t \n\t //close the stream; We don't need it now.\n\t fis.close();\n\t \n\t //Get the hash's bytes\n\t byte[] bytes = digest.digest();\n\t \n\t //This bytes[] has bytes in decimal format;\n\t //Convert it to hexadecimal format\n\t StringBuilder sb = new StringBuilder();\n\t for(int i=0; i< bytes.length ;i++)\n\t {\n\t sb.append(Integer.toString((bytes[i] & 0xff) + 0x100, 16).substring(1));\n\t }\n\t \n\t //return complete hash\n\t return sb.toString();\n\t }",
"public String getMD5() {\n return hash;\n }",
"private static String getFileChecksum(MessageDigest digest, File file) throws IOException {\n FileInputStream fis = new FileInputStream(file);\n\n //Create byte array to read data in chunks\n byte[] byteArray = new byte[1024];\n int bytesCount = 0;\n\n //Read file data and update in message digest\n while ((bytesCount = fis.read(byteArray)) != -1) {\n digest.update(byteArray, 0, bytesCount);\n }\n\n //close the stream; We don't need it now.\n fis.close();\n\n //Get the hash's bytes\n byte[] bytes = digest.digest();\n\n //This bytes[] has bytes in decimal format;\n //Convert it to hexadecimal format\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < bytes.length; i++) {\n sb.append(Integer.toString((bytes[i] & 0xff) + 0x100, 16).substring(1));\n }\n\n //return complete hash\n return sb.toString();\n }",
"public static byte[] createCheckSum(String filename) throws Exception {\n InputStream fis = new FileInputStream(filename);\n\n byte[] buffer = new byte[1024];\n MessageDigest complete = MessageDigest.getInstance(\"MD5\");\n int numRead;\n\n do {\n numRead = fis.read(buffer);\n if (numRead > 0) {\n complete.update(buffer, 0, numRead);\n }\n } while (numRead != -1);\n\n fis.close();\n // Return MD5 Hash\n return complete.digest();\n }",
"public static String getFileMD5(String path) {\n\t\treturn getFileMD5(new File(path));\n\t}",
"public static String fileMD5(String filePath) {\n\t\tFileInputStream fis = null;\n\t\tString md5 = null;\n\t\ttry {\n\t\t\tfis = new FileInputStream(new File(filePath));\n\t\t\tmd5 = org.apache.commons.codec.digest.DigestUtils.md5Hex(fis);\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"!!!\", e);\n\t\t} finally {\n\t\t\tCloseUtils.close(fis);\n\t\t}\n\t\treturn md5;\n\t}",
"public static String computeMD5(String filename) throws Exception {\r\n byte[] b = createGenericChecksum(filename, 0);\r\n String result = \"\";\r\n for (int i = 0; i < b.length; i++) {\r\n result += Integer.toString((b[i] & 0xff) + 0x100, 16).substring(1);\r\n }\r\n return result;\r\n }",
"public static String getMD5(File file) throws IOException, NoSuchAlgorithmException {\n return getChecksum(file, MessageDigest.getInstance(\"MD5\"));\n }",
"protected void md5file(File file) throws IOException {\n if (file.isDirectory()) {\n throw new IllegalArgumentException(\"Only files can be check summed !\");\n }\n\n // calculating the output\n byte[] md5 = DigestUtils.md5(new FileInputStream(file));\n\n // getting the output file\n File outputFile = new File(file.getAbsolutePath() + \".md5\");\n Files.write(Paths.get(outputFile.getAbsolutePath()), md5);\n\n }",
"String saveData(MultipartFile md5File) throws IOException;",
"@java.lang.Override\n public com.google.protobuf.ByteString getFileHash() {\n return fileHash_;\n }",
"@java.lang.Override\n public com.google.protobuf.ByteString getFileHash() {\n return fileHash_;\n }",
"byte[] getFile(String sha) throws Exception;",
"@java.lang.Override\n public com.google.protobuf.ByteString getFileHash() {\n return fileHash_;\n }",
"@java.lang.Override\n public com.google.protobuf.ByteString getFileHash() {\n return fileHash_;\n }",
"byte[] getDigest();",
"private String fileChecksum(File tmpFile, ITaskMonitor monitor) {\n InputStream is = null;\n try {\n is = new FileInputStream(tmpFile);\n MessageDigest digester = getChecksumType().getMessageDigest();\n byte[] buf = new byte[65536];\n int n;\n while ((n = is.read(buf)) >= 0) {\n if (n > 0) {\n digester.update(buf, 0, n);\n }\n }\n return getDigestChecksum(digester);\n } catch (FileNotFoundException e) {\n monitor.setResult(\"File not found: %1$s\", e.getMessage());\n } catch (Exception e) {\n monitor.setResult(e.getMessage());\n } finally {\n if (is != null) {\n try {\n is.close();\n } catch (IOException e) {\n }\n }\n }\n return \"\";\n }",
"public static String getFileChecksum(MessageDigest digest, String filePath) throws IOException {\n\t\tFileInputStream fis = new FileInputStream(filePath);\n\n\t\t// Create byte array to read data in chunks\n\t\tbyte[] byteArray = new byte[1024];\n\t\tint bytesCount = 0;\n\n\t\t// Read file data and update in message digest\n\t\twhile ((bytesCount = fis.read(byteArray)) != -1) {\n\t\t\tdigest.update(byteArray, 0, bytesCount);\n\t\t}\n\t\t;\n\n\t\t// close the stream; We don't need it now.\n\t\tfis.close();\n\n\t\t// Get the hash's bytes\n\t\tbyte[] bytes = digest.digest();\n\n\t\t// This bytes[] has bytes in decimal format;\n\t\t// Convert it to hexadecimal format\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor (int i = 0; i < bytes.length; i++) {\n\t\t\tsb.append(Integer.toString((bytes[i] & 0xff) + 0x100, 16).substring(1));\n\t\t}\n\n\t\t// return complete hash\n\t\treturn sb.toString();\n\t}",
"public static byte[] encryptMD5File(final File file) {\n if (file == null) return null;\n FileInputStream fis = null;\n DigestInputStream digestInputStream;\n try {\n fis = new FileInputStream(file);\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n digestInputStream = new DigestInputStream(fis, md);\n byte[] buffer = new byte[256 * 1024];\n while (true) {\n if (!(digestInputStream.read(buffer) > 0)) break;\n }\n md = digestInputStream.getMessageDigest();\n return md.digest();\n } catch (NoSuchAlgorithmException | IOException e) {\n e.printStackTrace();\n return null;\n } finally {\n try {\n if (fis != null) {\n fis.close();\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }",
"byte[] digest();",
"@Test\n public void fileMd5Test() {\n // TODO: test fileMd5\n }",
"public String getMd5Hash() {\n return md5Hash;\n }",
"public String getMD5() {\n return m_module.getConfiguration().getMD5();\n }",
"public static String CreateMD5(File file) {\n String base64Image = \"\";\n try (FileInputStream imageInFile = new FileInputStream(file)) {\n // Reading a Image file from file system\n byte imageData[] = new byte[(int) file.length()];\n imageInFile.read(imageData);\n base64Image = Base64.getEncoder().encodeToString(imageData);\n } catch (FileNotFoundException e) {\n DialogWindow.ShowErrorPane(\"Image could not be found.\", \"Error Image Missing\");\n// System.out.println(\"Image not found\" + e);\n } catch (IOException ioe) {\n DialogWindow.ShowErrorPane(\"Error while the image was being converted.\", \"Error Converting Image\");\n// System.out.println(\"Exception while reading the Image \" + ioe);\n }\n return base64Image;\n }",
"public BoxFileUploadRequestObject setContentMD5(String sha1) {\n getRequestExtras().addHeader(Constants.CONTENT_MD5, sha1);\n return this;\n }",
"public static byte[] computeMD5Hash(InputStream is) throws NoSuchAlgorithmException, IOException {\n BufferedInputStream bis = new BufferedInputStream(is);\n try {\n MessageDigest messageDigest = MessageDigest.getInstance(\"MD5\");\n byte[] buffer = new byte[16384];\n int bytesRead = -1;\n while ((bytesRead = bis.read(buffer, 0, buffer.length)) != -1) {\n messageDigest.update(buffer, 0, bytesRead);\n }\n return messageDigest.digest();\n } finally {\n try {\n bis.close();\n } catch (Exception e) {\n System.err.println(\"Unable to close input stream of hash candidate: \" + e);\n }\n }\n }",
"public byte[] getContentMd5() {\n return CoreUtils.clone(this.contentMd5);\n }",
"private static String md5(byte[] b) {\n try {\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n md.reset();\n md.update(b);\n byte[] digest = md.digest();\n StringBuffer sb = new StringBuffer();\n for (int i=0; i<digest.length; i++) {\n String a = Integer.toHexString(0xff & digest[i]);\n if (a.length() == 1) a = \"0\" + a;\n sb.append(a);\n }\n return sb.toString();\n }\n catch (NoSuchAlgorithmException e) { writeLog(e); }\n return null;\n }",
"private int getFileContentHashCode(Path filePath) throws IOException {\n return Arrays.hashCode(Files.readAllBytes(filePath));\n }",
"public static void md5(File outputFile) throws ConverterException {\r\n\t\ttry {\r\n\t\t\tFileInputStream fileInputStream = new FileInputStream(outputFile);\r\n\t\t\tBufferedInputStream bufferedInputStream = new BufferedInputStream(fileInputStream);\r\n\t\t\t\r\n\t\t\tbyte[] datei = bufferedInputStream.readAllBytes();\r\n\t\t\tMessageDigest md = MessageDigest.getInstance(\"MD5\");\r\n\t\t\tbyte[] md5 = md.digest(datei);\r\n\t\t\tfor (int i = 0; i < md5.length; i++) {\r\n\t\t\t\tSystem.out.print(String.format(\"%02X\", md5[i]));\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\" File Length: \" + outputFile.length());\r\n\t\t\tSystem.out.println();\r\n\t\t\t\r\n\t\t\tbufferedInputStream.close();\r\n\t\t\tfileInputStream.close();\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\tthrow new ConverterException(\"Datei kann nicht gefunden werden\");\r\n\t\t} catch (IOException e) {\r\n\t\t\tthrow new ConverterException(\"Beim Lesen der Datei ist ein Fehler aufgetreten\");\r\n\t\t} catch (NoSuchAlgorithmException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"private String calculateCheckSum(File file2) {\n\t\tStringBuffer sb = new StringBuffer(\"\");\n\t\ttry {\n\t\t\tMessageDigest messageDigest = MessageDigest.getInstance(\"SHA1\");\n\n\t\t\tFileInputStream finput = new FileInputStream(file2);\n\t\t\tbyte[] dataBytes = new byte[1024];\n\n\t\t\tint bytesRead = 0;\n\n\t\t\twhile ((bytesRead = finput.read(dataBytes)) != -1) {\n\t\t\t\tmessageDigest.update(dataBytes, 0, bytesRead);\n\t\t\t}\n\n\t\t\tbyte[] digestBytes = messageDigest.digest();\n\n\t\t\tfor (int i = 0; i < digestBytes.length; i++) {\n\t\t\t\tsb.append(Integer.toString((digestBytes[i] & 0xff) + 0x100, 16).substring(1));\n\t\t\t}\n\t\t\tSystem.out.println(\"file check sum value is \" + sb.toString());\n\t\t\tfinput.close();\n\t\t} catch (Exception ex) {\n\t\t\t// TODO: handle exception\n\t\t\tLogger.getLogger(FileTransferClient.class.getName()).log(Level.SEVERE, null, ex);\n\t\t}\n\n\t\treturn sb.toString();\n\t}",
"public static byte[] computeMD5Hash(byte[] data) throws NoSuchAlgorithmException, IOException {\n return computeMD5Hash(new ByteArrayInputStream(data));\n }",
"public byte[] getMD5() {\n return MD5;\n }",
"public Digest (File appdir)\n throws IOException\n {\n // parse and validate our digest file contents\n StringBuffer data = new StringBuffer();\n File dfile = new File(appdir, DIGEST_FILE);\n List pairs = ConfigUtil.parsePairs(dfile, false);\n for (Iterator iter = pairs.iterator(); iter.hasNext(); ) {\n String[] pair = (String[])iter.next();\n if (pair[0].equals(DIGEST_FILE)) {\n _metaDigest = pair[1];\n break;\n }\n _digests.put(pair[0], pair[1]);\n note(data, pair[0], pair[1]);\n }\n \n // we've reached the end, validate our contents\n MessageDigest md = getMessageDigest();\n byte[] contents = data.toString().getBytes(\"UTF-8\");\n String md5 = StringUtil.hexlate(md.digest(contents));\n if (!md5.equals(_metaDigest)) {\n String err = MessageUtil.tcompose(\n \"m.invalid_digest_file\", _metaDigest, md5);\n throw new IOException(err);\n }\n }",
"public byte[] MD5(File archivo) throws OpenSSL_Exception {\n\t\tString[] comando = new String[]{ \"openssl\" , \"dgst\" , \"-md5\" , archivo.getAbsolutePath()};\n\t\tProcess terminal = null;\n\t\ttry { terminal = Runtime.getRuntime().exec(comando); } catch (IOException e) { \n\t\t\tthrow new OpenSSL_Exception(\"No se puede ejecutar el comando en el terminal\");\n\t\t}\n\t\t// --- > Leemos la salida error del comando\n\t\tBufferedReader errors = new BufferedReader(new InputStreamReader(terminal.getErrorStream()));\n\t\tString linea = \"\" , error = \"\" ;\n\t\ttry { while( (linea = errors.readLine()) != null) error += linea + \"\\n\"; } catch (IOException e) {\n\t\t\tthrow new OpenSSL_Exception(\"No se puede leer el error que ha producido el comando\");\n\t\t}\n\t\t// --- > Si hubo salida error lanzamos al excepcion con el error\n\t\tif(!error.equals(\"\"))throw new OpenSSL_Exception(\"Error al ejecutar el comando:\\n\" + error );\n\t\t// --- > Leemos el resultado obtenido\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(terminal.getInputStream()));\n\t\tString res = \"\";\n\t\ttry { while((linea = in.readLine()) != null) res += linea; } catch (IOException e) {\n\t\t\tthrow new OpenSSL_Exception(\"No se puede leer el resultado que ha producido el comando\");\n\t\t}\n\t\treturn res.substring(res.lastIndexOf(\" \") + 1 ).getBytes();\n\t}",
"public byte[] getHash()\n\t{\n\t\treturn md5.getHash();\n\t}",
"@Test\n public void md5Checksum() throws NoSuchAlgorithmException {\n String string = Utils.md5Checksum(\"abcde fghijk lmn op\");\n Assert.assertEquals(\"1580420c86bbc3b356f6c40d46b53fc8\", string);\n }",
"public static String md5(String pass)\n {\n try{\n MessageDigest md=MessageDigest.getInstance(\"MD5\");\n byte[] messageDigest=md.digest(pass.getBytes());\n BigInteger num=new BigInteger(1,messageDigest);\n String hashText=num.toString(16);\n while(hashText.length()<32)\n {\n hashText=\"0\"+hashText;\n } \n return hashText; \n }\n catch(Exception e)\n { \n throw new RuntimeException(e);\n } \n }",
"public static void main(String[] args) throws NoSuchAlgorithmException, FileNotFoundException, IOException {\n \r\n String hash = \"F5D080D4F4E185DECA8A8B24F72408D9\";\r\n String [] keys = {\"9A1BA7F38A3E8D8F9DDD55972868CB3F\",\"17185CEF199E1C89804EDEE9DCDD1B90\",\"F5D080D4F4E185DECA8A8B24F72408D9\"};\r\n String password = \"NoSuchPassword\";\r\n File file = null;\r\n JFileChooser ff = new JFileChooser();\r\n int a = ff.showOpenDialog(null);\r\n if(a == JFileChooser.APPROVE_OPTION){\r\n try {\r\n file = ff.getSelectedFile();\r\n JOptionPane.showMessageDialog(ff, a);\r\n \r\n } catch (Exception ex) {\r\n ex.printStackTrace();\r\n } finally {\r\n System.out.println(file.getPath());\r\n }\r\n } \r\n BufferedReader fr = null;\r\n fr = new BufferedReader(new FileReader(file.getPath()));\r\n String line = null;\r\n int i = 0; \r\n //This is the funtion that Java implement in java.security.MessageDigest\r\n MessageDigest md5 = MessageDigest.getInstance(\"MD5\");\r\n while((line = fr.readLine()) != null){\r\n System.out.println(line);\r\n md5.update(line.getBytes());\r\n byte [] digests = md5.digest();\r\n String hashs = DatatypeConverter.printHexBinary(digests).toUpperCase();\r\n if(keys[i].equals(hashs)){\r\n System.out.println(\"CORRECT!\\nThe hash created is the same as the hash saved \");\r\n }\r\n else{\r\n System.out.println(\"ERROR!\\nThere was a mistake, the hash create doesn't mach the hash saved\");\r\n }\r\n i++;\r\n } \r\n fr.close();\r\n /**In conclusion we can use the MD5 for digest a words and then same them\r\n * is a DataBase, this with the function that if the DB is committed the\r\n * passwords will not be there\r\n */\r\n }",
"public ShareFileHttpHeaders setContentMd5(byte[] contentMd5) {\n this.contentMd5 = CoreUtils.clone(contentMd5);\n return this;\n }",
"public String getMD5ForGame(String gameId) {\n return \"TODO\";\n }",
"public static String md5(String message) {\n String digest = null;\n try {\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n byte[] hash = md.digest(message.getBytes(\"UTF-8\"));\n\n //converting byte array to HexadecimalString\n StringBuilder sb = new StringBuilder(2 * hash.length);\n for (byte b : hash) {\n sb.append(String.format(\"%02x\", b & 0xff));\n }\n digest = sb.toString();\n } catch (UnsupportedEncodingException ex) {\n log.error(\"UnsupportedEncodingException\",ex);\n } catch (NoSuchAlgorithmException ex) {\n log.error(\"NoSuchAlgorithmException\",ex);\n }\n\n return digest;\n }",
"protected String getFileETag(File file) {\n\t\tFileInputStream is = null;\n\t\ttry {\n\t\t\tis = new FileInputStream(file);\n\t\t\treturn \"\\\"\" + DigestUtils.md5Hex(is) + \"\\\"\";\n\t\t} catch (IOException e) {\n\t\t\treturn \"\";\n\t\t} finally {\n\t\t\tcloseQuietly(is);\n\t\t}\n\t}",
"private static byte[] m14295fl(String str) {\n try {\n MessageDigest instance = MessageDigest.getInstance(\"MD5\");\n if (instance == null) {\n return str.getBytes();\n }\n instance.update(str.getBytes());\n return instance.digest();\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n return str.getBytes();\n }\n }",
"protected String getMd5Hash(String token) {\n\n MessageDigest m;\n\t\ttry {\n\t\t\tm = MessageDigest.getInstance(\"MD5\");\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\tthrow new IllegalStateException(e);\n\t\t}\n m.update(token.getBytes());\n \n byte[] digest = m.digest();\n BigInteger bigInt = new BigInteger(1,digest);\n String hashtext = bigInt.toString(16);\n \n // Now we need to zero pad it if you actually want the full 32 chars.\n while(hashtext.length() < 32 ){\n hashtext = \"0\"+hashtext;\n }\n \n return hashtext;\n\t}",
"public static String toSHA1(String filename){\n\t\tMessageDigest md=null;\n\t\ttry{\n\t\t\tmd = MessageDigest.getInstance(\"SHA-1\");\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\ttry{\n\t\t\tFileInputStream in = new FileInputStream(filename);\n\t\t\tBufferedInputStream buffIn = new BufferedInputStream(in);\n\t\t\tDigestInputStream dis = new DigestInputStream(buffIn, md);\n\t\t\t\n\t\t\tFile f = new File(filename);\n\t\t\tLong fileSize = f.length();\n\t\t\t\n\t\t\tString blob = \"blob \" + fileSize.toString() + '\\0';\n\t\t\tmd.update(blob.getBytes());\n\t\t\t\t\t\t\n\t\t\t// read the file and update the hash calculation\n while (dis.read() != -1);\n\n // get the hash value as byte array\n byte[] hash = md.digest();\n\n return byteArray2Hex(hash);\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\t\n\t\treturn \"\";\n\t}",
"public static byte[] encryptMD5File(final String filePath) {\n File file = isSpace(filePath) ? null : new File(filePath);\n return encryptMD5File(file);\n }",
"public boolean IsFileMd5Equeal(UploadReport report) {\r\n\t\tString filename = this.conf.getFtpMountDirectory() + \"/DATA/\" + report.getFilename();\r\n\t\tString md5value = MD5Util.getFileMD5(new File(filename));\r\n\t\tFile file = new File(filename);\r\n\t\tif (file.exists()) {\r\n\t\t\tif (md5value.compareTo(report.getMd5value()) == 0) {\r\n\t\t\t\treturn true;\r\n\t\t\t} else {\r\n\t\t\t\tLogUtils.logger.error(\"Error happened when Caculate MD5 value, Original value: \" + report.getMd5value()\r\n\t\t\t\t\t\t+ \", New value : \" + md5value);\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tLogUtils.logger.error(\"Error happened when Caculate MD5 value, File: \" + filename + \" does not exist! \");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"public static String mySHA(String file) {\n\t\ttry {\n\t\t\t// java.security.MessageDigest digest = null;\n\t\t\t// digest = java.security.MessageDigest.getInstance(\"SHA-1\");\n\t\t\t// digest.reset();\n\t\t\t// digest.update(x.getBytes(\"UTF-8\"));\n\t\t\t// digest.update(x.getBytes(\"UTF-8\"));\n\t\t\t// return digest.digest();\n\t\t\tMessageDigest sha1 = MessageDigest.getInstance(\"SHA1\");\n\t\t\tFileInputStream fis = new FileInputStream(file);\n\n\t\t\tbyte[] data = new byte[1024];\n\t\t\tint read = 0;\n\t\t\twhile ((read = fis.read(data)) != -1) {\n\t\t\t\tsha1.update(data, 0, read);\n\t\t\t}\n\t\t\t;\n\t\t\tbyte[] hashBytes = sha1.digest();\n\n\t\t\tStringBuffer sb = new StringBuffer();\n\t\t\tfor (int i = 0; i < hashBytes.length; i++) {\n\t\t\t\tsb.append(Integer.toString((hashBytes[i] & 0xff) + 0x100, 16).substring(1));\n\t\t\t}\n\n\t\t\tString fileHash = sb.toString();\n\t\t\treturn fileHash;\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(e);\n\t\t\tString s = \"-1\";\n\t\t\treturn s;\n\t\t}\n\t}",
"public static String computeSHA(byte[] filebytes) throws NoSuchAlgorithmException {\r\n\t\tMessageDigest messageDigest = MessageDigest.getInstance(\"SHA-1\");\r\n\t\tbyte[] hash = messageDigest.digest(filebytes);\r\n\t\t\r\n\t\tFormatter formatter = new Formatter();\r\n\t\t\r\n\t\tfor (byte b : hash) {\r\n\t\t\tformatter.format(\"%02x\", b);\r\n\t\t}\r\n\t\t\r\n\t\treturn formatter.toString();\r\n\t}",
"public String getMD5Checksum(String pid, String dsName) throws FedoraException, IOException {\r\n try {\r\n return getDatastreamProperty(pid, dsName, DatastreamProfile.DatastreamProperty.DS_CHECKSUM);\r\n } catch (XPathExpressionException ex) {\r\n throw new FedoraException(ex);\r\n } catch (SAXException ex) {\r\n throw new FedoraException(ex);\r\n } catch (ParserConfigurationException ex) {\r\n throw new FedoraException(ex);\r\n }\r\n }",
"public String getHashsum(String file_name) {\n\t\t//\n\t\t// query database\n\t\t//\n\t\tCursor cursor = m_db.query(FILE_TABLE_NAME,\n\t\t\t\tnew String[] { FILE_FIELD_HASH_SUM }, FILE_FIELD_PATH + \"=?\",\n\t\t\t\tnew String[] { file_name }, null, null, null);\n\n\t\t//\n\t\t// get first entry of result set\n\t\t//\n\t\tString result = getFirstEntryOfResultSet(cursor);\n\n\t\t//\n\t\t// close cursor\n\t\t//\n\t\tcursor.close();\n\n\t\t//\n\t\t// done\n\t\t//\n\t\treturn result;\n\n\t}",
"java.lang.String getChecksum();",
"private static java.security.MessageDigest f() {\n /*\n r0 = \"MD5\";\n r1 = j;\n r0 = r0.equals(r1);\n if (r0 == 0) goto L_0x003a;\n L_0x000a:\n r0 = java.security.Security.getProviders();\n r1 = r0.length;\n r2 = 0;\n L_0x0010:\n if (r2 >= r1) goto L_0x003a;\n L_0x0012:\n r3 = r0[r2];\n r3 = r3.getServices();\n r3 = r3.iterator();\n L_0x001c:\n r4 = r3.hasNext();\n if (r4 == 0) goto L_0x0037;\n L_0x0022:\n r4 = r3.next();\n r4 = (java.security.Provider.Service) r4;\n r4 = r4.getAlgorithm();\n j = r4;\n r4 = j;\t Catch:{ NoSuchAlgorithmException -> 0x001c }\n r4 = java.security.MessageDigest.getInstance(r4);\t Catch:{ NoSuchAlgorithmException -> 0x001c }\n if (r4 == 0) goto L_0x001c;\n L_0x0036:\n return r4;\n L_0x0037:\n r2 = r2 + 1;\n goto L_0x0010;\n L_0x003a:\n r0 = 0;\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.koushikdutta.async.util.FileCache.f():java.security.MessageDigest\");\n }",
"public String getHashString()\n\t{\n\t\treturn md5.getHashString();\n\t}",
"public Builder setFileHash(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n fileHash_ = value;\n onChanged();\n return this;\n }",
"public Builder setFileHash(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n fileHash_ = value;\n onChanged();\n return this;\n }",
"public static String createMd5(String value)\r\n\t{ \r\n\t\ttry \r\n\t\t{\r\n\t\t\tMessageDigest md = MessageDigest.getInstance(\"MD5\");\t\t\t\r\n\t\t\tbyte[] hashInBytes = md.digest(value.getBytes(StandardCharsets.UTF_8));\r\n\t\t\tStringBuilder sb = new StringBuilder();\r\n\t for (byte b : hashInBytes) \r\n\t {\r\n\t sb.append(String.format(\"%02x\", b));\r\n\t }\r\n\t return sb.toString();\r\n\t\t}\r\n\t\tcatch(Exception ex)\r\n\t\t{\r\n\t\t\t\r\n\t\t}\r\n\t\treturn \"\";\r\n\t}",
"public static String hash(File remoteFsRoot) {\n logger.config(\"hash() invoked\");\n\n StringBuilder buf = new StringBuilder();\n try {\n buf.append(remoteFsRoot.getCanonicalPath()).append('\\n');\n } catch (IOException e) {\n logger.log(Level.FINER, \"hash() IOException - may be normal?\", e);\n buf.append(remoteFsRoot.getAbsolutePath()).append('\\n');\n }\n try {\n for (NetworkInterface ni : Collections.list(NetworkInterface.getNetworkInterfaces())) {\n for (InetAddress ia : Collections.list(ni.getInetAddresses())) {\n if (ia instanceof Inet4Address) {\n buf.append(ia.getHostAddress()).append('\\n');\n } else if (ia instanceof Inet6Address) {\n buf.append(ia.getHostAddress()).append('\\n');\n }\n }\n byte[] hardwareAddress = ni.getHardwareAddress();\n if (hardwareAddress != null) {\n buf.append(Arrays.toString(hardwareAddress));\n }\n }\n } catch (SocketException e) {\n // oh well we tried\n logger.log(Level.FINEST, \"hash() SocketException - 'oh well we tried'\", e);\n }\n return DigestUtils.md5Hex(buf.toString()).substring(0, 8);\n }",
"public static String getMD5(final File file) {\n if (file == null || !file.exists()) {\n return null;\n }\n\n FileInputStream fin = null;\n try {\n fin = new FileInputStream(file);\n String md5 = getMD5(fin);\n return md5;\n } catch (Exception e) {\n return null;\n } finally {\n closeQuietly(fin);\n }\n }",
"public static String getMd5(String input) {\n try {\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n\n byte[] messageDigest = md.digest(input.getBytes());\n\n BigInteger no = new BigInteger(1, messageDigest);\n\n String hashtext = no.toString(16);\n while (hashtext.length() < 32) {\n hashtext = \"0\" + hashtext;\n }\n return hashtext;\n } catch (NoSuchAlgorithmException e) {\n throw new RuntimeException(e);\n }\n }",
"public String getMD5(String txt){\n String md5output;\n md5output = txt;\n try {\n MessageDigest m = MessageDigest.getInstance(\"MD5\");\n m.reset();\n m.update(md5output.getBytes());\n byte[] digest = m.digest();\n BigInteger bigInt = new BigInteger(1,digest);\n md5output = bigInt.toString(16);\n } catch (Exception e) {\n md5output = null;\n } finally{\n return md5output;\n }\n \n }",
"private static byte[] generateMD5(String info) throws\n UnsupportedEncodingException, NoSuchAlgorithmException {\n byte[] inputData = info.getBytes(\"UTF-8\");\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n md.update(inputData);\n byte[] digest= md.digest();\n return digest;\n }",
"public String getHash(String str) throws Exception{\n\t\t\n\t\tMessageDigest md = MessageDigest.getInstance(\"MD5\");\n md.update(str.getBytes());\n \n byte byteData[] = md.digest();\n \n //convert the byte to hex format method 1\n StringBuffer sb = new StringBuffer();\n for (int i = 0; i < byteData.length; i++) {\n sb.append(Integer.toString((byteData[i] & 0xff) + 0x100, 16).substring(1));\n }\n \n String hex = sb.toString();\n System.out.println(hex);\n return hex; \n}",
"public static String getMD5(String s) {\n try {\n MessageDigest m = MessageDigest.getInstance(\"MD5\");\n m.update(s.getBytes(), 0, s.length());\n return \"\" + new BigInteger(1, m.digest()).toString(16);\n } catch (NoSuchAlgorithmException e) {\n logger.error(\"MD5 is not supported !!!\");\n }\n return s;\n }",
"public byte[] calc_hash(File filename)\r\n {\r\n\tint digest_length = 512;\r\n\tbyte message[] = new byte[digest_length];\r\n\tbyte key[] = new byte[0];\r\n\tMessageDigest sha;\r\n\tint message_size;\r\n\tlong file_size = 0;\r\n\r\n\ttry{\r\n\t sha = MessageDigest.getInstance(algorithm, provider);\r\n\r\n\t try{\r\n\t\t/* Read file into byte array, and use array to update hash key */\r\n\t\tFileInputStream fin = new FileInputStream(filename);\r\n\t\twhile((message_size = fin.read(message)) != -1)\r\n\t\t {\r\n\t\t\tif(message_size < digest_length)\r\n\t\t\t sha.update(message, 0, message_size);\r\n\t\t\telse\r\n\t\t\t sha.update(message);\r\n\t\t }\r\n\t\tfin.close();\r\n\r\n\t\tkey = sha.digest();\r\n\t }\r\n\t catch(IOException ioe){\r\n\t\tSystem.out.println(\"Error (calc_hash): Unable to open and read file \" + filename.getName());\r\n\t\tioe.printStackTrace();\r\n\t\treturn null;\r\n\t }\r\n\t}\r\n\tcatch(NoSuchAlgorithmException nae){\r\n\t System.out.println(\"Error (calc_hash): hash algorithm \" + algorithm + \" not found\");\r\n\t nae.printStackTrace();\r\n\t return null;\r\n\t}\r\n\tcatch(NoSuchProviderException npe){\r\n\t System.out.println(\"Error (calc_hash): Security provider \" + provider + \" not found\");\r\n\t npe.printStackTrace();\r\n\t return null;\r\n\t}\r\n\r\n\treturn key;\r\n }",
"public HashCode getInstallMD5() {\n return installMD5;\n }",
"public static String getStringMD5(String src) {\n\t\tMessageDigest messageDigest = null;\n\t\tbyte[] srcBytes = src.getBytes();\n\t\ttry {\n\t\t\tmessageDigest = MessageDigest.getInstance(\"MD5\");\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tmessageDigest.update(srcBytes, 0, srcBytes.length);\n\t\tBigInteger bigInt = new BigInteger(1, messageDigest.digest());\n\t\treturn bigInt.toString(16);\n\t}",
"public static byte[] encryptMD5(final byte[] data) {\n return hashTemplate(data, \"MD5\");\n }",
"public String md5(String s) {\n try {\n // Create MD5 Hash\n MessageDigest digest = java.security.MessageDigest.getInstance(\"MD5\");\n digest.update(s.getBytes());\n byte messageDigest[] = digest.digest();\n\n // Create Hex String\n StringBuffer hexString = new StringBuffer();\n for (int i = 0; i < messageDigest.length; i++)\n hexString.append(Integer.toHexString(0xFF & messageDigest[i]));\n return hexString.toString();\n\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n }\n return \"\";\n }",
"private static String md5(String str) {\n\n if (str == null) {\n return null;\n }\n\n MessageDigest messageDigest = null;\n\n try {\n messageDigest = MessageDigest.getInstance(HttpConf.signType);\n messageDigest.reset();\n messageDigest.update(str.getBytes(HttpConf.charset));\n } catch (NoSuchAlgorithmException e) {\n\n return str;\n } catch (UnsupportedEncodingException e) {\n return str;\n }\n\n byte[] byteArray = messageDigest.digest();\n\n StringBuffer md5StrBuff = new StringBuffer();\n\n for (int i = 0; i < byteArray.length; i++) {\n if (Integer.toHexString(0xFF & byteArray[i]).length() == 1) {\n md5StrBuff.append(\"0\").append(Integer.toHexString(0xFF & byteArray[i]));\n } else {\n md5StrBuff.append(Integer.toHexString(0xFF & byteArray[i]));\n }\n }\n\n return md5StrBuff.toString();\n }",
"private static void compareSha(String filename) {\n\n\t\tMessageDigest md = null;\n\n\t\ttry (InputStream is = new BufferedInputStream(new FileInputStream(filename))) {\n\n\t\t\tbyte[] data = new byte[4096];\n\t\t\tint nRead;\n\t\t\tmd = MessageDigest.getInstance(\"SHA-256\");\n\n\t\t\twhile ((nRead = is.read(data)) != -1) {\n\t\t\t\tmd.update(data, 0, nRead);\n\t\t\t}\n\n\t\t} catch (FileNotFoundException exc) {\n\t\t\tSystem.out.println(\n\t\t\t\t\t\"File does not exist, is a directory rather than a regular file, or cannot be opened for reading because of some other reason\");\n\t\t\tSystem.exit(1);\n\n\t\t} catch (IOException exc) {\n\t\t\tSystem.out.println(\"Input stream couldn't be initialized.\");\n\t\t\tSystem.exit(1);\n\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\tSystem.out.println(\"No provider supports a MessageDigestSpi implementation for the specified algorithm.\");\n\t\t\tSystem.exit(1);\n\t\t}\n\n\t\tString sha256Digest = Util.bytetohex(md.digest());\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tSystem.out.println(\"Please provide expected sha-256 digest for hw06part2.pdf: \");\n\t\tSystem.out.print(\">\");\n\t\tString expectedDigest = sc.nextLine();\n\t\tsc.close();\n\n\t\tif (sha256Digest.equals(expectedDigest)) {\n\t\t\tSystem.out.printf(\"Digesting completed. Digest of %s matches expected digest.\\n\", filename);\n\n\t\t} else {\n\t\t\tSystem.out.printf(\"Digesting completed. Digest of %s does not match the expected digest. Digest was: %s\\n\",\n\t\t\t\t\tfilename, sha256Digest);\n\t\t}\n\n\t}",
"private static String md5(final String s) {\n final String MD5 = \"MD5\";\n try {\n // Create MD5 Hash\n MessageDigest digest = java.security.MessageDigest\n .getInstance(MD5);\n digest.update(s.getBytes());\n byte messageDigest[] = digest.digest();\n\n // Create Hex String\n StringBuilder hexString = new StringBuilder();\n for (byte aMessageDigest : messageDigest) {\n String h = Integer.toHexString(0xFF & aMessageDigest);\n while (h.length() < 2)\n h = \"0\" + h;\n hexString.append(h);\n }\n return hexString.toString();\n\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n }\n return \"\";\n }",
"String getHash();",
"String getHash();",
"public MD5Hash(String s) {\n\t\tif(s.length() != 32) throw new IllegalArgumentException(\"Hash must have 32 characters\");\n\t\thashString = s;\n\t}",
"private String md5(String input) {\r\n\t\tString md5 = null;\r\n\t\tif (null == input)\r\n\t\t\treturn null;\r\n\r\n\t\ttry {\r\n\t\t\tMessageDigest digest = MessageDigest.getInstance(\"MD5\");\r\n\t\t\tdigest.update(input.getBytes(), 0, input.length());\r\n\t\t\tmd5 = new BigInteger(1, digest.digest()).toString(16);\r\n\t\t} catch (NoSuchAlgorithmException e) {\r\n\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn md5;\r\n\t}",
"private static String getKeyByMd5(String url) {\n String key;\n try {\n MessageDigest messageDigest = MessageDigest.getInstance(\"MD5\");\n messageDigest.update(url.getBytes());\n key = md5Encryption(messageDigest.digest());\n return key;\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n key = String.valueOf(url.hashCode());\n }\n return key;\n }",
"public static String md5(final String data) {\n return ByteString.encodeUtf8(data).md5().hex().toLowerCase();\n }",
"private String md5(final String s)\n\t{\n\t\ttry {\n\t\t\t// Create MD5 Hash\n\t\t\tMessageDigest digest = MessageDigest.getInstance(\"MD5\");\n\t\t\tdigest.update(s.getBytes());\n\t\t\tbyte messageDigest[] = digest.digest();\n\n\t\t\t// Create Hex String\n\t\t\tStringBuffer hexString = new StringBuffer();\n\t\t\tfor (int i=0; i<messageDigest.length; i++) {\n\t\t\t\tString h = Integer.toHexString(0xFF & messageDigest[i]);\n\t\t\t\twhile (h.length() < 2) h = \"0\" + h;\n\t\t\t\thexString.append(h);\n\t\t\t}\n\t\t\treturn hexString.toString();\n\t\t} catch(NoSuchAlgorithmException e) {\n\t\t\t//Logger.logStackTrace(TAG,e);\n\t\t}\n\t\treturn \"\";\n\t}",
"java.lang.String getHashData();",
"com.google.protobuf.ByteString getHash();",
"com.google.protobuf.ByteString getHash();",
"public static String hash(String data) {\n\t MessageDigest md;\n\t\ttry {\n\t\t\tmd = MessageDigest.getInstance(\"MD5\");\n\t\t md.update(data.getBytes());\n\t\t byte[] digest = md.digest();\n\t\t char[] HEX_ARRAY = \"0123456789ABCDEF\".toCharArray();\n\t char[] hexChars = new char[digest.length * 2];\n\t for (int j = 0; j < digest.length; j++) {\n\t int v = digest[j] & 0xFF;\n\t hexChars[j * 2] = HEX_ARRAY[v >>> 4];\n\t hexChars[j * 2 + 1] = HEX_ARRAY[v & 0x0F];\n\t }\n\t return new String(hexChars);\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n return null;\n\t}",
"public static String getMD5Hash(String string) {\r\n\t\tMessageDigest digest;\r\n\t\ttry {\r\n\t\t\tdigest = java.security.MessageDigest.getInstance(\"MD5\");\r\n\t\t\tdigest.update(string.getBytes());\r\n\t\t\tfinal byte[] hash = digest.digest();\r\n\t\t\tfinal StringBuilder result = new StringBuilder(hash.length);\r\n\t\t\tfor (int i = 0; i < hash.length; i++) {\r\n\t\t\t\tresult.append(Integer.toString((hash[i] & 0xff) + 0x100, 16)\r\n\t\t\t\t\t\t.substring(1));\r\n\t\t\t}\r\n\t\t\treturn result.toString();\r\n\t\t} catch (final NoSuchAlgorithmException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn \"error\";\r\n\t\t}\r\n\t}",
"int getHash();",
"public static String md5(String str) {\n MessageDigest messageDigest = null;\n try {\n messageDigest = MessageDigest.getInstance(\"MD5\");\n messageDigest.reset();\n messageDigest.update(str.getBytes(\"UTF-8\"));\n } catch (NoSuchAlgorithmException | UnsupportedEncodingException e) {\n // do nothing\n }\n byte[] byteArray = messageDigest.digest();\n StringBuffer md5StrBuff = new StringBuffer();\n for (int i = 0; i < byteArray.length; i++) {\n if (Integer.toHexString(0xFF & byteArray[i]).length() == 1)\n md5StrBuff.append(\"0\").append(Integer.toHexString(0xFF & byteArray[i]));\n else\n md5StrBuff.append(Integer.toHexString(0xFF & byteArray[i]));\n }\n return md5StrBuff.toString();\n }",
"private String md5(String message) throws java.security.NoSuchAlgorithmException\n\t{\n\t\tMessageDigest md5 = null;\n\t\ttry {\n\t\t\tmd5 = MessageDigest.getInstance(\"MD5\");\n\t\t}\n\t\tcatch (java.security.NoSuchAlgorithmException ex) {\n\t\t\tex.printStackTrace();\n\t\t\tthrow ex;\n\t\t}\n\t\tbyte[] dig = md5.digest((byte[]) message.getBytes());\n\t\tStringBuffer code = new StringBuffer();\n\t\tfor (int i = 0; i < dig.length; ++i)\n\t\t{\n\t\t\tcode.append(Integer.toHexString(0x0100 + (dig[i] & 0x00FF)).substring(1));\n\t\t}\n\t\treturn code.toString();\n\t}",
"public static String hash(String in) {\r\n\t\treturn DigestUtils.md5Hex(in.getBytes());\r\n\t}",
"public static String getFileChecksum(File file) {\n return getFileChecksum(file, true);\n }"
] |
[
"0.7800426",
"0.7483837",
"0.745395",
"0.73832744",
"0.7380369",
"0.71196264",
"0.7082408",
"0.7062036",
"0.7048478",
"0.7031023",
"0.70060116",
"0.69423705",
"0.6941836",
"0.6911277",
"0.6899666",
"0.68789035",
"0.67872053",
"0.6573226",
"0.6517764",
"0.6462793",
"0.64626735",
"0.64483845",
"0.63890666",
"0.63889164",
"0.637664",
"0.6344204",
"0.6328337",
"0.63156193",
"0.62790745",
"0.62778276",
"0.62544405",
"0.62272245",
"0.622478",
"0.62095225",
"0.6189183",
"0.618581",
"0.6150319",
"0.61447257",
"0.6133792",
"0.61083305",
"0.61080337",
"0.6107677",
"0.6082222",
"0.6078524",
"0.6063569",
"0.60347885",
"0.6032613",
"0.6018872",
"0.5967777",
"0.59409916",
"0.5930955",
"0.59301263",
"0.59198403",
"0.59154654",
"0.58731323",
"0.58727765",
"0.5865943",
"0.58636516",
"0.58328414",
"0.58306295",
"0.58288914",
"0.5823926",
"0.5822736",
"0.5820728",
"0.58198696",
"0.58198696",
"0.5814811",
"0.5810591",
"0.5802849",
"0.5767336",
"0.57649535",
"0.57357484",
"0.5735534",
"0.5722977",
"0.5713615",
"0.5705999",
"0.5685397",
"0.5664443",
"0.5657681",
"0.56380135",
"0.5635169",
"0.56317455",
"0.56283534",
"0.56283534",
"0.5621572",
"0.5617056",
"0.56170446",
"0.5608373",
"0.5608194",
"0.5602473",
"0.55986595",
"0.55986595",
"0.5591306",
"0.5573595",
"0.5569579",
"0.5567024",
"0.55646014",
"0.5549714",
"0.553195"
] |
0.72531235
|
5
|
uint32 chunkIndex = 2;
|
int getChunkIndex();
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"int getChunkId();",
"int getChunkId();",
"int getChunkId();",
"int getChunkId();",
"int getChunkId();",
"int getChunkId();",
"public int getChunkNo() {\n return chunkNo;\n }",
"public int getChunkNo() {\n return chunkNo;\n }",
"@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }",
"@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }",
"protected int getChunkInRegion() {\n\t\treturn (rnd.nextInt(structurePosRange) + rnd.nextInt(structurePosRange)) / 2;\n\t}",
"@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }",
"@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"private int getChunk(byte [] buffer, int offset, String chunk) {\r\n\t\ttry {\r\n\t\t\tfor (;;) {\r\n\t\t\t\tint dataLenght = getInt(buffer, offset);\r\n\t\t\t\tif (compareBytes(buffer, offset+4, chunk)) {\r\n\t\t\t\t\treturn offset;\r\n\t\t\t\t} else {\r\n\t\t\t\t\toffset += 4 + 4 + dataLenght + 4;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception e) {};\r\n\t\treturn -1;\r\n\t}",
"entities.Torrent.ChunkInfo getChunks(int index);",
"int getNumOfChunks();",
"edu.usfca.cs.dfs.StorageMessages.StoreChunkLocation getChunksLocation(int index);",
"private int chunk(long timestamp) {\n int chunkid;\n \n if (timestamp >= 0) {\n chunkid = (int) ((timestamp / chunklen) % chunkcount);\n } else {\n chunkid = chunkcount + (int) ((((timestamp + 1) / chunklen) % chunkcount) - 1);\n //chunkid = chunkcount - (int) ((- (timestamp + 1) / chunklen) % chunkcount);\n }\n \n return chunkid;\n }",
"int getChunksCount();",
"int getChunksCount();",
"public int getHighestChunk() {\n return highestChunk_;\n }",
"int getChunksLocationCount();",
"public int getChunkWidth() {\n return 256;\n }",
"public int currentChunkNum() {\n\t\treturn cp.chunk().getChunkNum();\n\t}",
"int getChunkSize();",
"public void nextTextureIndexX() {\n/* 245 */ this.particleTextureIndexX++;\n/* */ }",
"List<DownloadChunk> mo54445j(int i);",
"void sendChunkRequest(int chunkX, int chunkY);",
"protected String _getChunkId(String id, int index) {\n\t\treturn id + \"[\" + index + \"]\";\n\t}",
"public int getChunkHeight() {\n return 256;\n }",
"public int getHighestChunk() {\n return highestChunk_;\n }",
"String getChunkType();",
"protected int getTextureIndex() {\n/* 83 */ return getData() & 0x7;\n/* */ }",
"public int getChunkCount () {\n return (this.getTagCount()>>BITS_TO_SHIFT_FOR_CHUNK) + 1;\n }",
"public abstract int getNextBlock(int block) throws IOException;",
"public int getInternalBlockLength()\r\n/* 40: */ {\r\n/* 41: 95 */ return 32;\r\n/* 42: */ }",
"private static boolean parseChunk(final FileChannel fc,final long[] offset,final int depth) throws IOException {\n\t Log.d(TAG, \"entering parseChunk \"+ offset[0] +\"/\"+ depth);\n\n\t long data_offset = offset[0];\n\n long chunk_size = Util.readUInt(fc, data_offset); \n int chunk_type = Util.readInt(fc, data_offset+4);\n\n Log.v(TAG, chunk_type + \" \" + chunk_size);\n char sChunk[] = new char[4];\n Util.MakeFourCCString(chunk_type, sChunk);\n Log.v(TAG, String.format(\"chunk %s\", String.valueOf(sChunk)));\n\n data_offset += 8;\n // long chunk_data_size = offset[0] + chunk_size - data_offset;\n\n if (chunk_size == 1) {\n\n chunk_size = Util.readLong(fc, data_offset);\n\n data_offset += 8;\n\n if (chunk_size < 16) {\n Log.e(TAG,\" The smallest valid chunk is 16 bytes long in this case.\");\n return false;\n }\n\n } else if (chunk_size < 8) {\n Log.e(TAG,\"The smallest valid chunk is 8 bytes long.\");\n return false;\n }\n\n Log.v(TAG, String.format(\"parsing chunk %s at depth %d\",\n String.valueOf(sChunk), depth));\n\n if(chunk_type == Util.FOURCC('m', 'o', 'o', 'v') || chunk_type == Util.FOURCC('u', 'd', 't', 'a')) {\n Log.d(TAG, String.valueOf(sChunk));\n\n long stop_offset = offset[0] + chunk_size;\n offset[0] = data_offset;\n while (offset[0] < stop_offset) {\n boolean err = parseChunk(fc,offset, depth + 1);\n if (!err) {\n return err;\n }\n }\n\n if (offset[0] != stop_offset) {\n return false;\n }\n\n if (chunk_type == Util.FOURCC('m', 'o', 'o', 'v') ) {\n return true;\n }\n }\n else if(chunk_type == Util.FOURCC('h', 't', 'c', 'b')) {\n Log.d(TAG,\"Found Htc MetaData\");\n sHtcTableOffset = data_offset;\n Log.d(TAG,\"sHtcTableOffset = \" + sHtcTableOffset );\n parseHtcMetaData(fc,data_offset,chunk_size);\n Log.d(TAG,\"Parse Htc MetaData done\");\n offset[0] += chunk_size;\n } else if (chunk_type == Util.FOURCC('_', 'h', 't', 'c')\n || chunk_type == Util.FOURCC('d', 't', 'a', 'h')) {\n Log.d(TAG, \"Found HTC box\");\n offset[0] += 8;\n parseChunk(fc, offset, depth + 1);\n } else {\n offset[0] += chunk_size;\n }\n return true;\n }",
"public int getMaxSpawnedInChunk()\n {\n return 1;\n }",
"public boolean isNewChunk() {\n/* 26 */ return this.newChunk;\n/* */ }",
"public Builder setChunkIndex(int value) {\n\n chunkIndex_ = value;\n onChanged();\n return this;\n }",
"public Builder setChunkIndex(int value) {\n\n chunkIndex_ = value;\n onChanged();\n return this;\n }",
"boolean hasChunkId();",
"void mo54426b(int i, List<DownloadChunk> list);",
"@NotNull\n int getTrustedChunks();",
"void mo54414a(int i, List<DownloadChunk> list);",
"long getChunkSize();",
"long getChunkSize();",
"long getChunkSize();",
"long getChunkSize();",
"edu.usfca.cs.dfs.StorageMessages.StoreChunk getStoreChunk();",
"public void map( Chunk bv ) { }",
"int mo1684a(byte[] bArr, int i, int i2);",
"private int getCol(int index) {\n return index & (chunkSize - 1);\n }",
"int getBlockNumber();",
"int getBlockNumber();",
"public static long getChunks() {\n return chunks;\n }",
"public Vector2i getChunkSize() {\n return new Vector2i(getChunkWidth(), getChunkHeight());\n }",
"public void setChunkNumber(int chunkNumber) {\r\n\t\tthis.chunkNumber = chunkNumber;\r\n\t}",
"private static void blockCoordsToChunkCoords(Vector3i pos) {\n pos.x >>= 4;\n pos.y >>= 4;\n pos.z >>= 4;\n }",
"public void map( Chunk c ) { }",
"public int getNumOfChunks() {\n return numOfChunks_;\n }",
"@Test\n public void testChunkType() {\n final int[] count = new int[255];\n final SctpChunk.Type[] types = SctpChunk.Type.values();\n for (int i = 0; i < types.length; ++i) {\n count[types[i].getType()] = count[types[i].getType()] + 1;\n }\n\n for (int i = 0; i < count.length; ++i) {\n assertThat(\"Found multiple type definitions for Chunk Type \" + i, count[i] < 2, is(true));\n }\n\n }",
"public boolean getChunking () {\n\treturn chunk;\n }",
"edu.usfca.cs.dfs.StorageMessages.StoreChunkLocation getStoreChunkLocation();",
"private void generateNextChunk() {\n \n chunkNumber++;\n \n // generate a chunk filled with content\n List<Object> list = chunkFactory.generateChunk(chunkNumber);\n Vector3f newChunkPosition =\n new Vector3f(nextChunkX, 0f, 0f);\n nextChunkX += P.chunkLength;\n\n for (Object object : list) {\n if (object instanceof Spatial) {\n Spatial spatial = (Spatial) object;\n addToLevel(spatial, spatial.getLocalTranslation().add(newChunkPosition));\n } else if (object instanceof SpotLight) {\n SpotLight light = (SpotLight) object;\n addToLevel(light, light.getPosition().add(newChunkPosition));\n } else if (object instanceof PointLight) {\n PointLight light = (PointLight) object;\n addToLevel(light, light.getPosition().add(newChunkPosition)); \n }\n }\n\n }",
"protected int nextInt(int p_75902_1_) {\n/* 135 */ int var2 = (int)((this.chunkSeed >> 24) % p_75902_1_);\n/* */ \n/* 137 */ if (var2 < 0)\n/* */ {\n/* 139 */ var2 += p_75902_1_;\n/* */ }\n/* */ \n/* 142 */ this.chunkSeed *= (this.chunkSeed * 6364136223846793005L + 1442695040888963407L);\n/* 143 */ this.chunkSeed += this.worldGenSeed;\n/* 144 */ return var2;\n/* */ }",
"private int getIndex2(int val){\n return val/bucket;\n }",
"@Override\r\n\tpublic int getIndexStep() {\n\t\t\r\n\t\treturn 2;\r\n\t}",
"int getSplitIndex();",
"public int getBlockSize()\n/* */ {\n/* 43 */ return this.blockSize;\n/* */ }",
"int sampleOffset();",
"public ChunkType getType();",
"protected int arrayIndex(long windowIndex) {\n return (int) (windowIndex % length());\n }",
"int getTotalBlockNum();",
"void mo54417a(DownloadChunk downloadChunk);",
"public int getChunkSize() {\n return chunkSize;\n }",
"public static void splitFile() throws IOException{\n\t\tPath currentRelativePath = Paths.get(\"\");\n\t\tFile file = new File(currentRelativePath.toAbsolutePath().toString()+\"/\"+fileName);\n\n\t\t//fileChunks are of size windowSize\n\t\tint num = fileSize; \n\t\tint lastByteRead = 0;\n\t\tint start =0;\n\t\tint i= 0; //where we are in bitfield map\n\t\tbyte[] fileChunkArray = new byte[windowSize];\n\t\t//read in the file\n\t\ttry{\n\t\t\tFileInputStream fileInputStream = new FileInputStream(file);\n\t\t\twhile(num > 0){\n\t\t\t\tif (num <= 5){\n\t\t\t\t\twindowSize = num;\n\t\t\t\t}\n\t\t\t\t// byte[] fileChunkArray = new byte[windowSize];\n\t\t\t\t\n\t\t\t\tlastByteRead = fileInputStream.read(fileChunkArray,0,windowSize);\n\t\t\t\t\n\t\t\t\t// start = start +windowSize;\n\t\t\t\t\n\t\t\t\t// String s1 = new String(fileChunkArray);\n\t\t\t\tSystem.out.print(\"the chunkarray length is :\" + fileChunkArray.length);\n\t\t\t\tSystem.out.print(\"the lastbyte read is :\"+ lastByteRead);\n\t\t\t\t// System.out.print(\"the fileChunk array is :\"+ s1);\n\t\t\t\tbitfieldMap.put(lastByteRead,fileChunkArray);\n\t\t\t\ti++;\n\t\t\t\tdynamicName = fileName+ i;\n\t\t\t\tworkingDirectory = System.getProperty(\"user.dir\");\n\t\t\t\tabsoluteFilePath = workingDirectory + File.separator + dynamicName;\n\t\t\t\tnum = num - windowSize; \n\t\t\t\tFileOutputStream newFile = new FileOutputStream(absoluteFilePath);\n\t\t\t\tnewFile.write(fileChunkArray);\n\t\t\t\tnewFile.flush();\n\t\t\t\tnewFile.close();\n\n\t\t\t}\n\t\t\tfileInputStream.close();\t\n\t\t}catch(IOException ioe){\n\t\t\tSystem.out.println(\"Could not split file: \" + ioe);\n\t\t}\n\t}",
"public void map( Chunk cs[] ) { }",
"int getBlockNumbers(int index);",
"private int getImageBufferStartIndex(int trackNumber, FloppyDriveSide side) {\n return BYTES_PER_SECTOR * (SECTORS_PER_TRACK * (trackNumber * 2 + side.ordinal())\n + sectorIndex);\n }",
"int getReadPosition(int index) {\n/* 170 */ return index - this.origPos + this.readerIndex;\n/* */ }",
"private int getIndex(int val){\n return val%bucket;\n }",
"@Test\n public void chunkPosShouldBePlayerPosDividedByChunkSizeWherePlayerAt1By1() {\n final int sideLengthOfBlock = 10;\n final int rowAmountInChunk = 11;\n\n MatcherAssert.assertThat(\n this.targetCompass(\n sideLengthOfBlock,\n rowAmountInChunk,\n new Point(1, 1)\n ).chunkPos(),\n CoreMatchers.equalTo(new Point(0, 0))\n );\n }",
"private int key(int chunkX, int chunkY, int chunkZ) {\n if (chunkX >= 2048 || chunkX < 0 || chunkY >= 2048 || chunkY < 0 || chunkZ >= 4 || chunkZ < 0) {\n throw new IllegalArgumentException(\"ChunkX and ChunkY must range from 0-2047 inclusive (given x:\" + chunkX + \" and y: \" + chunkY + \"), and chunkZ must range from 0-3 inclusive (Given z: \" + chunkZ + \")\");\n }\n return (chunkZ << 30) | (chunkX << 15) | (chunkY);\n }",
"protected int realIndex(int index) {\n return index & (buf.length -1);\n }",
"private int getPmidIdx() {\n return this.colStartOffset + 2;\n }",
"protected int populateBuffer()\n {\n interlock.beginReading();\n // System.out.println(\"populateBuffer: 2\");\n return byteBuffer.limit();\n }"
] |
[
"0.73773885",
"0.73773885",
"0.73773885",
"0.73773885",
"0.73773885",
"0.73773885",
"0.6741172",
"0.6741172",
"0.66893995",
"0.66893995",
"0.6663846",
"0.66030824",
"0.66030824",
"0.65638685",
"0.65638685",
"0.65638685",
"0.65638685",
"0.65638685",
"0.65638685",
"0.6424548",
"0.6424548",
"0.6424548",
"0.6424548",
"0.6424548",
"0.6424548",
"0.6410397",
"0.6400465",
"0.6379588",
"0.6373404",
"0.6315273",
"0.6189685",
"0.6189685",
"0.61568904",
"0.61450183",
"0.6116205",
"0.600113",
"0.592988",
"0.5924839",
"0.590925",
"0.5907171",
"0.5883504",
"0.5868158",
"0.58488417",
"0.5830536",
"0.5826126",
"0.58231753",
"0.57997054",
"0.57831234",
"0.5773982",
"0.57738006",
"0.5764445",
"0.57457185",
"0.574476",
"0.5730925",
"0.57199186",
"0.5672394",
"0.5635696",
"0.56262887",
"0.56262887",
"0.56262887",
"0.56262887",
"0.5625486",
"0.56026787",
"0.55572665",
"0.5555952",
"0.55468774",
"0.55468774",
"0.5537924",
"0.5523598",
"0.55199176",
"0.55137247",
"0.55008006",
"0.5499361",
"0.5496236",
"0.54885995",
"0.54849046",
"0.54820436",
"0.54716635",
"0.54495907",
"0.544209",
"0.5437883",
"0.5429143",
"0.5428823",
"0.5428345",
"0.54230964",
"0.5416858",
"0.54106504",
"0.5405122",
"0.54008263",
"0.5391839",
"0.5382947",
"0.53820837",
"0.5372417",
"0.5371448",
"0.53595173",
"0.53501457",
"0.53402644",
"0.53377634",
"0.53344655"
] |
0.785442
|
1
|
Use ChunkRequest.newBuilder() to construct.
|
private ChunkRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"entities.Torrent.ChunkRequestOrBuilder getChunkRequestOrBuilder();",
"public Builder setChunkRequest(entities.Torrent.ChunkRequest value) {\n if (chunkRequestBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n chunkRequest_ = value;\n onChanged();\n } else {\n chunkRequestBuilder_.setMessage(value);\n }\n\n return this;\n }",
"public entities.Torrent.ChunkRequestOrBuilder getChunkRequestOrBuilder() {\n if (chunkRequestBuilder_ != null) {\n return chunkRequestBuilder_.getMessageOrBuilder();\n } else {\n return chunkRequest_ == null ?\n entities.Torrent.ChunkRequest.getDefaultInstance() : chunkRequest_;\n }\n }",
"entities.Torrent.ChunkRequest getChunkRequest();",
"public entities.Torrent.ChunkRequest getChunkRequest() {\n if (chunkRequestBuilder_ == null) {\n return chunkRequest_ == null ? entities.Torrent.ChunkRequest.getDefaultInstance() : chunkRequest_;\n } else {\n return chunkRequestBuilder_.getMessage();\n }\n }",
"@java.lang.Override\n public entities.Torrent.ChunkRequestOrBuilder getChunkRequestOrBuilder() {\n return getChunkRequest();\n }",
"public Builder mergeChunkRequest(entities.Torrent.ChunkRequest value) {\n if (chunkRequestBuilder_ == null) {\n if (chunkRequest_ != null) {\n chunkRequest_ =\n entities.Torrent.ChunkRequest.newBuilder(chunkRequest_).mergeFrom(value).buildPartial();\n } else {\n chunkRequest_ = value;\n }\n onChanged();\n } else {\n chunkRequestBuilder_.mergeFrom(value);\n }\n\n return this;\n }",
"@java.lang.Override\n public entities.Torrent.ChunkRequest getChunkRequest() {\n return chunkRequest_ == null ? entities.Torrent.ChunkRequest.getDefaultInstance() : chunkRequest_;\n }",
"private ChunkResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private StoreChunkResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"void sendChunkRequest(int chunkX, int chunkY);",
"private ChunkInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public Builder clearChunkRequest() {\n if (chunkRequestBuilder_ == null) {\n chunkRequest_ = null;\n onChanged();\n } else {\n chunkRequest_ = null;\n chunkRequestBuilder_ = null;\n }\n\n return this;\n }",
"public Chunk() {\n }",
"public entities.Torrent.ChunkRequest.Builder getChunkRequestBuilder() {\n\n onChanged();\n return getChunkRequestFieldBuilder().getBuilder();\n }",
"entities.Torrent.ChunkResponseOrBuilder getChunkResponseOrBuilder();",
"public ChunkFiler() {}",
"private StoreChunk(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.ChunkRequest, entities.Torrent.ChunkRequest.Builder, entities.Torrent.ChunkRequestOrBuilder>\n getChunkRequestFieldBuilder() {\n if (chunkRequestBuilder_ == null) {\n chunkRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.ChunkRequest, entities.Torrent.ChunkRequest.Builder, entities.Torrent.ChunkRequestOrBuilder>(\n getChunkRequest(),\n getParentForChildren(),\n isClean());\n chunkRequest_ = null;\n }\n return chunkRequestBuilder_;\n }",
"public static StoreChunkOperation create(\n\t\tString collection,\n\t\tObject id,\n\t\tbyte[] chunk\n\t)\n\t{\n\t\treturn new StoreChunkOperation(collection, id, chunk);\n\t}",
"public Builder setChunkSize(int value) {\n bitField0_ |= 0x00000004;\n chunkSize_ = value;\n onChanged();\n return this;\n }",
"public Builder setChunkSize(long value) {\n \n chunkSize_ = value;\n onChanged();\n return this;\n }",
"public Builder setChunkSize(long value) {\n \n chunkSize_ = value;\n onChanged();\n return this;\n }",
"public Builder setChunkSize(long value) {\n \n chunkSize_ = value;\n onChanged();\n return this;\n }",
"public Builder setChunkSize(long value) {\n \n chunkSize_ = value;\n onChanged();\n return this;\n }",
"public Builder setChunkRequest(\n entities.Torrent.ChunkRequest.Builder builderForValue) {\n if (chunkRequestBuilder_ == null) {\n chunkRequest_ = builderForValue.build();\n onChanged();\n } else {\n chunkRequestBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }",
"static Request parseRequest(InputStream in) throws IOException {\n\t\tRequestLine request = readRequestLine(in);\n\t\tHeaders headers = readHeaders(in);\n\t\tlong length = -1;\n\t\tInputStream body;\n\t\tif (HeaderValue.CHUNKED.equals(headers.get(HeaderName.TRANSFER_ENCODING))) {\n\t\t\tbody = new ChunkedInputStream(in);\n\t\t} else {\n\t\t\tString header = headers.get(HeaderName.CONTENT_LENGTH);\n\t\t\tlength = header == null ? 0 : Long.parseLong(header);\n\t\t\tbody = new LimitedInputStream(in, length);\n\t\t}\n\t\treturn new Request(request.method(), request.target(), request.path(), request.query(), headers, length, body);\n\t}",
"@Test\n public void testChunkedOutputToChunkInput() throws Exception {\n final ChunkedInput<String> input = target().path(\"test\").request().get(new javax.ws.rs.core.GenericType<ChunkedInput<String>>() {});\n int counter = 0;\n String chunk;\n while ((chunk = input.read()) != null) {\n Assert.assertEquals((\"Unexpected value of chunk \" + counter), \"test\", chunk);\n counter++;\n } \n Assert.assertEquals(\"Unexpected numbed of received chunks.\", 3, counter);\n }",
"private StoreChunkLocation(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public Builder addChunks(entities.Torrent.ChunkInfo value) {\n if (chunksBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureChunksIsMutable();\n chunks_.add(value);\n onChanged();\n } else {\n chunksBuilder_.addMessage(value);\n }\n return this;\n }",
"public Builder setRequestBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n request_ = value;\n onChanged();\n return this;\n }",
"public entities.Torrent.ChunkInfo.Builder addChunksBuilder() {\n return getChunksFieldBuilder().addBuilder(\n entities.Torrent.ChunkInfo.getDefaultInstance());\n }",
"public Builder setChunkId(int value) {\n \n chunkId_ = value;\n onChanged();\n return this;\n }",
"public Builder setChunkId(int value) {\n \n chunkId_ = value;\n onChanged();\n return this;\n }",
"public Builder setChunkId(int value) {\n \n chunkId_ = value;\n onChanged();\n return this;\n }",
"public Builder setChunkId(int value) {\n \n chunkId_ = value;\n onChanged();\n return this;\n }",
"public Builder setChunkId(int value) {\n \n chunkId_ = value;\n onChanged();\n return this;\n }",
"public Builder setChunkId(int value) {\n \n chunkId_ = value;\n onChanged();\n return this;\n }",
"private Request(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private Request(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private Request(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private Request(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public entities.Torrent.ChunkResponse.Builder getChunkResponseBuilder() {\n\n onChanged();\n return getChunkResponseFieldBuilder().getBuilder();\n }",
"long getChunkSize();",
"long getChunkSize();",
"long getChunkSize();",
"long getChunkSize();",
"private HealMyChunk(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"edu.usfca.cs.dfs.StorageMessages.StoreChunkResponseOrBuilder getStoreChunkResponseOrBuilder();",
"Chunk(ByteBuffer minKey, Chunk<K, V> creator, OakComparator<K> comparator, MemoryManager memoryManager,\n int maxItems, AtomicInteger externalSize, OakSerializer<K> keySerializer, OakSerializer<V> valueSerializer,\n ValueUtils valueOperator) {\n this.memoryManager = memoryManager;\n this.maxItems = maxItems;\n this.entries = new int[maxItems * FIELDS + FIRST_ITEM];\n this.entryIndex = new AtomicInteger(FIRST_ITEM);\n\n this.sortedCount = new AtomicInteger(0);\n this.minKey = minKey;\n this.creator = new AtomicReference<>(creator);\n if (creator == null) {\n this.state = new AtomicReference<>(State.NORMAL);\n } else {\n this.state = new AtomicReference<>(State.INFANT);\n }\n this.next = new AtomicMarkableReference<>(null, false);\n this.pendingOps = new AtomicInteger();\n this.rebalancer = new AtomicReference<>(null); // to be updated on rebalance\n this.statistics = new Statistics();\n this.comparator = comparator;\n this.externalSize = externalSize;\n\n this.keySerializer = keySerializer;\n this.valueSerializer = valueSerializer;\n this.valueOperator = valueOperator;\n }",
"public Builder setChunksCount(int value) {\n bitField0_ |= 0x00000002;\n chunksCount_ = value;\n onChanged();\n return this;\n }",
"boolean hasChunkRequest();",
"int getChunkSize();",
"private LeafNodeObject getChunk(long chunkStart, long chunkEnd) throws IOException {\n if (chunkEnd <= chunkStart || (chunkEnd - chunkStart > this.maxChunkSize) ||\n chunkStart > Integer.MAX_VALUE) {\n throw new IOException(\"ChunkStart out of range\");\n }\n\n byte[] temp = Arrays.copyOfRange(this.fileContent, (int) chunkStart,\n (int) (chunkEnd - chunkStart));\n\n\n SignatureObject signature = new SignatureObject();\n signature.signatureData = new BinaryItem(ByteUtil.toListOfByte(temp));\n\n// RDCSignatureGenerator generator = new RDCSignatureGenerator();\n// signatureBytes = generator.ComputeHash(temp);\n//\n// SignatureObject signature = new SignatureObject();\n// signature.SignatureData = new BinaryItem(signatureBytes);\n\n return new LeafNodeObject.IntermediateNodeObjectBuilder().Build(temp, signature);\n }",
"public Builder clearChunkSize() {\n bitField0_ = (bitField0_ & ~0x00000004);\n chunkSize_ = 0;\n onChanged();\n return this;\n }",
"private MessageRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private BenchmarkRequest(com.google.protobuf.GeneratedMessage.Builder builder) {\n super(builder);\n }",
"public StoreChunkInputStream(final CacheStore blobCache, final String key) {\n logger = Logger.getLogger(getClass());\n this.blobCache = blobCache;\n this.key = key;\n }",
"private GRPCRequest(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n }",
"private QuestProgressRequestProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }",
"public HttpRequest (final InputStream inputStream)\n {\n in = new HttpInputStream (new BufferedInputStream (inputStream));\n headers = new HashMap <String, String> ();\n }",
"private Request(com.google.protobuf.GeneratedMessage.ExtendableBuilder<Pokemon.Request, ?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }",
"public Request<E, T> buildHttpMultiPartRequest (E model)\n\t{\n\t\tthis.model = model;\n\t\treturn new HttpMultiPartRequest <E,T>(this);\n\t}",
"public entities.Torrent.ChunkInfo.Builder addChunksBuilder(\n int index) {\n return getChunksFieldBuilder().addBuilder(\n index, entities.Torrent.ChunkInfo.getDefaultInstance());\n }",
"public Builder setChunkResponse(entities.Torrent.ChunkResponse value) {\n if (chunkResponseBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n chunkResponse_ = value;\n onChanged();\n } else {\n chunkResponseBuilder_.setMessage(value);\n }\n\n return this;\n }",
"public CompleteMultipartUploadRequest() {}",
"entities.Torrent.ChunkResponse getChunkResponse();",
"public Builder addChunks(\n int index, entities.Torrent.ChunkInfo value) {\n if (chunksBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureChunksIsMutable();\n chunks_.add(index, value);\n onChanged();\n } else {\n chunksBuilder_.addMessage(index, value);\n }\n return this;\n }",
"public Builder addAllChunks(\n java.lang.Iterable<? extends entities.Torrent.ChunkInfo> values) {\n if (chunksBuilder_ == null) {\n ensureChunksIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, chunks_);\n onChanged();\n } else {\n chunksBuilder_.addAllMessages(values);\n }\n return this;\n }",
"public static StoreChunkOperation read(\n\t\tBinaryDataInput in\n\t)\n\t\tthrows IOException\n\t{\n\t\tString collection = in.readString();\n\t\tObject id = in.readId();\n\t\tbyte[] data = in.readByteArray();\n\n\t\treturn new StoreChunkOperation(collection, id, data);\n\t}",
"public edu.usfca.cs.dfs.StorageMessages.StoreChunkLocation.Builder addChunksLocationBuilder() {\n return getChunksLocationFieldBuilder().addBuilder(\n edu.usfca.cs.dfs.StorageMessages.StoreChunkLocation.getDefaultInstance());\n }",
"public Builder clearChunks() {\n if (chunksBuilder_ == null) {\n chunks_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n chunksBuilder_.clear();\n }\n return this;\n }",
"io.envoyproxy.envoy.type.metadata.v3.MetadataKind.RequestOrBuilder getRequestOrBuilder();",
"public Builder clearChunkResponse() {\n if (chunkResponseBuilder_ == null) {\n chunkResponse_ = null;\n onChanged();\n } else {\n chunkResponse_ = null;\n chunkResponseBuilder_ = null;\n }\n\n return this;\n }",
"Builder spikesPerChunk(VariableAmount count);",
"private Chunk generateChunk(int size) {\n String json;\n ObjectMapper objectMapper = new ObjectMapper();\n List<Record> recordList = new ArrayList<>();\n int i = 1;\n while (i <= size) {\n json = \"{ \\\"Price\\\" :\" + priceGenerator.nextDouble() * 100 + \" }\";\n try {\n recordList.add(new Record(String.valueOf(i), LocalDateTime.now(), objectMapper.readTree(json)));\n } catch (JsonProcessingException e) {\n log.error(\"Issue with the chunk generation: \" + e.getMessage());\n return null;\n }\n i++;\n\n }\n log.info(\"Generated Chunk :\");\n recordList.forEach((record) -> log.info(record.toString()));\n return new Chunk(recordList);\n }",
"protected Version putChunks(long startByte,\n byte chunkPrefix[],\n Version metadataVersion)\n throws IOException {\n\n if (((chunkPrefix == null) != ((startByte % chunkSize) == 0))) {\n throw new IllegalStateException(\"start byte:\" + startByte +\n \" chunk size:\" + chunkSize +\n \" inconsistent with prefix chunk:\" +\n chunkPrefix);\n }\n\n if ((lobSize < 0) || (numChunks < 0)) {\n throw new IllegalStateException(\"lobSize:\" + lobSize +\n \" numChunks:\" + numChunks);\n }\n\n byte chunk[] = new byte[chunkSize];\n boolean initialReplacePut = false;\n\n int currentSize = 0;\n if (chunkPrefix != null) {\n currentSize = chunkPrefix.length;\n lobSize -= currentSize;\n /* Back up over the chunk, so we can overwrite it. */\n numChunks--;\n System.arraycopy(chunkPrefix, 0, chunk, 0, currentSize);\n initialReplacePut = true;\n }\n\n final ChunkKeysIterator chunkKeys =\n getChunkKeysByteRangeIterator(startByte, Long.MAX_VALUE);\n\n readLoop:\n while (true) {\n int readBytes = -1;\n\n /* Fill up a chunk. */\n while (currentSize < chunkSize) {\n readBytes = lobStream.read(chunk, currentSize,\n (chunkSize - currentSize));\n if (readBytes == -1) {\n if (currentSize > 0) {\n break;\n }\n break readLoop;\n }\n currentSize += readBytes;\n }\n\n final Key chunkKey = chunkKeys.next();\n\n /* Write it, vary the durability based upon the chunk. */\n final Durability chunkDurability = (readBytes == -1) ||\n (chunkKeys.getChunkId() == chunksPerPartition) ?\n lobDurability : CHUNK_DURABILITY;\n\n putChunk(chunkKey, chunk, currentSize,\n initialReplacePut, chunkDurability);\n numChunks++;\n if (chunkKeys.getChunkId() == 1) {\n metadataVersion =\n checkpointSuperChunkId(chunkKeys.getSuperChunkId(),\n metadataVersion);\n }\n lobSize += currentSize;\n currentSize = 0;\n initialReplacePut = false;\n }\n\n return metadataVersion;\n }",
"public Builder setNumOfChunks(int value) {\n \n numOfChunks_ = value;\n onChanged();\n return this;\n }",
"public ChunkBuffer allocateBuffer(int increment) {\n final int nextBufferIndex = currentBufferIndex + 1;\n\n Preconditions.assertTrue(nextBufferIndex < capacity, () ->\n \"next index: \" + nextBufferIndex + \" >= capacity: \" + capacity);\n\n currentBufferIndex = nextBufferIndex;\n\n if (currentBufferIndex < bufferList.size()) {\n return getBuffer(currentBufferIndex);\n } else {\n final ChunkBuffer newBuffer = ChunkBuffer.allocate(bufferSize, increment);\n bufferList.add(newBuffer);\n return newBuffer;\n }\n }",
"public ChunkRange(final long from, final Long to) {\n rangeRequested = true;\n if (from < 0) {\n throw new IllegalArgumentException(\"from < 0\");\n }\n this.from = from;\n if (to != null && to >= 0) {\n if (from > to) {\n throw new IllegalArgumentException(\"from > to\");\n } else if (to < from) {\n throw new IllegalArgumentException(\"to < from\");\n }\n }\n this.to = to;\n }",
"public void setChunkNumber(int chunkNumber) {\r\n\t\tthis.chunkNumber = chunkNumber;\r\n\t}",
"public entities.Torrent.ChunkInfo.Builder getChunksBuilder(\n int index) {\n return getChunksFieldBuilder().getBuilder(index);\n }",
"public boolean hasChunkRequest() {\n return chunkRequestBuilder_ != null || chunkRequest_ != null;\n }",
"protected BaseErrorRequest(final byte[] request) {\n super(request);\n this.errorDescription = null;\n }",
"public void setType(ChunkType type);",
"private UploadRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"@java.lang.Override\n public entities.Torrent.ChunkResponseOrBuilder getChunkResponseOrBuilder() {\n return getChunkResponse();\n }",
"public Builder setChunks(\n int index, entities.Torrent.ChunkInfo value) {\n if (chunksBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureChunksIsMutable();\n chunks_.set(index, value);\n onChanged();\n } else {\n chunksBuilder_.setMessage(index, value);\n }\n return this;\n }",
"boolean canRequestChunk();",
"entities.Torrent.ChunkInfoOrBuilder getChunksOrBuilder(\n int index);",
"public RDCAnalysisChunking(byte[] fileContent) {\n super(fileContent);\n }",
"private RequestEnvelop(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }",
"public Request(final FullHttpRequest request) {\n this.request = request;\n }",
"public Builder clearChunksCount() {\n bitField0_ = (bitField0_ & ~0x00000002);\n chunksCount_ = 0;\n onChanged();\n return this;\n }",
"private BlockReportRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private FragmentRecordBatch(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public edu.usfca.cs.dfs.StorageMessages.StoreChunkLocation.Builder addChunksLocationBuilder(\n int index) {\n return getChunksLocationFieldBuilder().addBuilder(\n index, edu.usfca.cs.dfs.StorageMessages.StoreChunkLocation.getDefaultInstance());\n }",
"private MarketDataRequest generateRequestFromAtom(MarketDataRequestAtom inAtom,\n MarketDataRequest inCompleteRequest)\n {\n return MarketDataRequestBuilder.newRequest().withAssetClass(inCompleteRequest.getAssetClass()).withSymbols(inAtom.getSymbol()).withContent(inAtom.getContent()).withExchange(inAtom.getExchange()).create();\n }",
"public Builder setChunkIndex(int value) {\n\n chunkIndex_ = value;\n onChanged();\n return this;\n }",
"public Builder clearChunkSize() {\n \n chunkSize_ = 0L;\n onChanged();\n return this;\n }"
] |
[
"0.7591474",
"0.7060582",
"0.70175135",
"0.6921154",
"0.67721575",
"0.6737669",
"0.6558413",
"0.6460274",
"0.645918",
"0.62831146",
"0.61916006",
"0.6078474",
"0.5973527",
"0.5885921",
"0.5880687",
"0.5807442",
"0.5741346",
"0.5740782",
"0.56924623",
"0.5650325",
"0.56095964",
"0.5541548",
"0.5541548",
"0.5541548",
"0.5541548",
"0.55327135",
"0.54190576",
"0.5387308",
"0.53838456",
"0.5348381",
"0.5295304",
"0.52906764",
"0.5275321",
"0.5275321",
"0.5275321",
"0.5275321",
"0.5275321",
"0.5275321",
"0.5268633",
"0.5268633",
"0.5268633",
"0.5268633",
"0.52528954",
"0.5215056",
"0.5215056",
"0.5215056",
"0.5215056",
"0.5197097",
"0.51727533",
"0.5165511",
"0.5161767",
"0.5147368",
"0.51069856",
"0.5096671",
"0.50386786",
"0.50371677",
"0.5032112",
"0.50290555",
"0.50274026",
"0.50162065",
"0.5003924",
"0.4998313",
"0.4993888",
"0.4992594",
"0.49916258",
"0.49896052",
"0.49693578",
"0.49564517",
"0.4951967",
"0.49507135",
"0.49494916",
"0.49424875",
"0.4937138",
"0.49335805",
"0.4928943",
"0.49233407",
"0.49155033",
"0.4909944",
"0.49092418",
"0.4901813",
"0.48811004",
"0.48700815",
"0.4868802",
"0.48656464",
"0.48528135",
"0.48287714",
"0.4826611",
"0.48243284",
"0.4824018",
"0.48160735",
"0.48145196",
"0.4814513",
"0.4813851",
"0.48099655",
"0.48072487",
"0.48058456",
"0.4802224",
"0.48015574",
"0.47871852",
"0.47866184"
] |
0.74740356
|
1
|
MD5 of the file content bytes fileHash = 1;
|
@java.lang.Override
public com.google.protobuf.ByteString getFileHash() {
return fileHash_;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private String getFileMd5Checksum(String filename){\n\t\ttry {\n\t\t\tbyte[] fileBytes = Files.readAllBytes(Paths.get(FILES_ROOT + filename));\n\t\t\tbyte[] fileHash = MessageDigest.getInstance(\"MD5\").digest(fileBytes);\n\n\t\t\treturn DatatypeConverter.printHexBinary(fileHash);\n\t\t} catch (IOException e) {\n\t\t\t// TODO: Handle file doesn't exist\n\t\t\treturn \"\";\n\t\t} catch (Exception e) {\n\t\t\treturn \"\";\n\t\t}\n\t}",
"public static String computeMD5FileHash (File file) throws Exception {\n byte[] b = createFileChecksum(file);\n String result = \"\";\n\n for (int i=0; i < b.length; i++) {\n result += Integer.toString( ( b[i] & 0xff ) + 0x100, 16).substring( 1 );\n }\n return result;\n }",
"private static String getMD5Checksum(String filename) throws Exception {\r\n\t\tbyte[] b = createChecksum(filename);\r\n\t\tStringBuilder result = new StringBuilder();\r\n\t\tfor (byte v : b) {\r\n\t\t\tresult.append(Integer.toString((v & 0xff) + 0x100, 16).substring(1));\r\n\t\t}\r\n\t\treturn result.toString();\r\n\t}",
"private static String getFileChecksum(File file) throws IOException, NoSuchAlgorithmException {\n FileInputStream fis = new FileInputStream(file);\n\n // Use MD5 algorithm\n MessageDigest digest = MessageDigest.getInstance(\"MD5\");\n\n // Create byte array to read data in chunks\n byte[] byteArray = new byte[1024];\n int bytesCount = 0;\n\n // Read file data and update in message digest\n while ((bytesCount = fis.read(byteArray)) != -1) {\n digest.update(byteArray, 0, bytesCount);\n }\n ;\n\n // close the stream; We don't need it now.\n fis.close();\n\n // Get the hash's bytes\n byte[] bytes = digest.digest();\n\n // This bytes[] has bytes in decimal format;\n // Convert it to hexadecimal format\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < bytes.length; i++) {\n sb.append(Integer.toString((bytes[i] & 0xff) + 0x100, 16).substring(1));\n }\n\n // return complete hash\n return sb.toString();\n }",
"public static String getFileMD5(File file) {\n\t\tMessageDigest messageDigest = null;\n\t\tFileInputStream fileInStream = null;\n\t\tbyte buffer[] = new byte[1024];\n\t\tint length = -1;\n\t\ttry {\n\t\t\tmessageDigest = MessageDigest.getInstance(\"MD5\");\n\t\t\tfileInStream = new FileInputStream(file);\n\t\t\twhile ((length = fileInStream.read(buffer, 0, 1024)) != -1) {\n\t\t\t\tmessageDigest.update(buffer, 0, length);\n\t\t\t}\n\t\t\tfileInStream.close();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t\tBigInteger bigInt = new BigInteger(1, messageDigest.digest());\n\t\treturn bigInt.toString(16);\n\t}",
"com.google.protobuf.ByteString getFileHash();",
"com.google.protobuf.ByteString getFileHash();",
"public static String fileMD5(File file) {\n\t\tFileInputStream fis = null;\n\t\tString md5 = null;\n\t\ttry {\n\t\t\tfis = new FileInputStream(file);\n\t\t\tmd5 = org.apache.commons.codec.digest.DigestUtils.md5Hex(fis);\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"!!!\", e);\n\t\t} finally {\n\t\t\tCloseUtils.close(fis);\n\t\t}\n\t\treturn md5;\n\t}",
"public static String md5(String inputFile) {\r\n String md5 = null;\r\n logger.debug(\"Start to calculate hashcode (SHA1) for {}\", inputFile);\r\n try (DigestInputStream digestIn = new DigestInputStream(new FileInputStream(inputFile),\r\n MessageDigest.getInstance(\"SHA1\"))) {\r\n byte[] buffer = new byte[1024 * 1024];\r\n while (digestIn.read(buffer) > 0) {\r\n // do nothing\r\n }\r\n md5 = toHexString(digestIn.getMessageDigest().digest());\r\n } catch (NoSuchAlgorithmException | IOException e) {\r\n logger.warn(\"Fail to md5 for {} ({})\", inputFile, e.getMessage());\r\n }\r\n logger.debug(\"End to calculate hashcode (SHA1) for {}, {}\", inputFile, md5);\r\n return md5;\r\n }",
"static String generateChecksum(String filename) {\n\n try {\n // Instantiating file and Hashing Algorithm.\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n FileInputStream file = new FileInputStream(filename);\n\n // Generation of checksum.\n byte[] dataBytes = new byte[1024];\n int nread;\n\n while ((nread = file.read(dataBytes)) != -1) {\n md.update(dataBytes, 0, nread);\n }\n\n byte[] mdbytes = md.digest();\n\n // Convert byte to hex.\n StringBuilder hexString = new StringBuilder();\n\n for (byte mdbyte : mdbytes) {\n String hex = Integer.toHexString(0xff & mdbyte);\n if (hex.length() == 1) hexString.append('0');\n hexString.append(hex);\n }\n\n // Return checksum as completed string.\n return hexString.toString();\n\n } catch (NoSuchAlgorithmException | IOException e) {\n e.printStackTrace();\n }\n return null;\n }",
"public static String getFileMD5(File file) {\n if (!file.isFile()) {\n return null;\n }\n MessageDigest digest = null;\n FileInputStream in = null;\n byte buffer[] = new byte[1024];\n int len;\n try {\n digest = MessageDigest.getInstance(\"MD5\");\n in = new FileInputStream(file);\n while ((len = in.read(buffer, 0, 1024)) != -1) {\n digest.update(buffer, 0, len);\n }\n in.close();\n } catch (Exception e) {\n e.printStackTrace();\n return null;\n }\n BigInteger bigInt = new BigInteger(1, digest.digest());\n String md5 = bigInt.toString(16);\n while (md5.length() < 32)\n md5 = \"0\" + md5;\n return md5;\n }",
"private static String getFileChecksum(MessageDigest digest, File file) throws IOException\n\t {\n\t FileInputStream fis = new FileInputStream(file);\n\t \n\t //Create byte array to read data in chunks\n\t byte[] byteArray = new byte[1024];\n\t int bytesCount = 0;\n\t \n\t //Read file data and update in message digest\n\t while ((bytesCount = fis.read(byteArray)) != -1) {\n\t digest.update(byteArray, 0, bytesCount);\n\t };\n\t \n\t //close the stream; We don't need it now.\n\t fis.close();\n\t \n\t //Get the hash's bytes\n\t byte[] bytes = digest.digest();\n\t \n\t //This bytes[] has bytes in decimal format;\n\t //Convert it to hexadecimal format\n\t StringBuilder sb = new StringBuilder();\n\t for(int i=0; i< bytes.length ;i++)\n\t {\n\t sb.append(Integer.toString((bytes[i] & 0xff) + 0x100, 16).substring(1));\n\t }\n\t \n\t //return complete hash\n\t return sb.toString();\n\t }",
"public String getMD5() {\n return hash;\n }",
"private static String getFileChecksum(MessageDigest digest, File file) throws IOException {\n FileInputStream fis = new FileInputStream(file);\n\n //Create byte array to read data in chunks\n byte[] byteArray = new byte[1024];\n int bytesCount = 0;\n\n //Read file data and update in message digest\n while ((bytesCount = fis.read(byteArray)) != -1) {\n digest.update(byteArray, 0, bytesCount);\n }\n\n //close the stream; We don't need it now.\n fis.close();\n\n //Get the hash's bytes\n byte[] bytes = digest.digest();\n\n //This bytes[] has bytes in decimal format;\n //Convert it to hexadecimal format\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < bytes.length; i++) {\n sb.append(Integer.toString((bytes[i] & 0xff) + 0x100, 16).substring(1));\n }\n\n //return complete hash\n return sb.toString();\n }",
"public static byte[] createCheckSum(String filename) throws Exception {\n InputStream fis = new FileInputStream(filename);\n\n byte[] buffer = new byte[1024];\n MessageDigest complete = MessageDigest.getInstance(\"MD5\");\n int numRead;\n\n do {\n numRead = fis.read(buffer);\n if (numRead > 0) {\n complete.update(buffer, 0, numRead);\n }\n } while (numRead != -1);\n\n fis.close();\n // Return MD5 Hash\n return complete.digest();\n }",
"public static String getFileMD5(String path) {\n\t\treturn getFileMD5(new File(path));\n\t}",
"public static String fileMD5(String filePath) {\n\t\tFileInputStream fis = null;\n\t\tString md5 = null;\n\t\ttry {\n\t\t\tfis = new FileInputStream(new File(filePath));\n\t\t\tmd5 = org.apache.commons.codec.digest.DigestUtils.md5Hex(fis);\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"!!!\", e);\n\t\t} finally {\n\t\t\tCloseUtils.close(fis);\n\t\t}\n\t\treturn md5;\n\t}",
"public static String computeMD5(String filename) throws Exception {\r\n byte[] b = createGenericChecksum(filename, 0);\r\n String result = \"\";\r\n for (int i = 0; i < b.length; i++) {\r\n result += Integer.toString((b[i] & 0xff) + 0x100, 16).substring(1);\r\n }\r\n return result;\r\n }",
"public static String getMD5(File file) throws IOException, NoSuchAlgorithmException {\n return getChecksum(file, MessageDigest.getInstance(\"MD5\"));\n }",
"protected void md5file(File file) throws IOException {\n if (file.isDirectory()) {\n throw new IllegalArgumentException(\"Only files can be check summed !\");\n }\n\n // calculating the output\n byte[] md5 = DigestUtils.md5(new FileInputStream(file));\n\n // getting the output file\n File outputFile = new File(file.getAbsolutePath() + \".md5\");\n Files.write(Paths.get(outputFile.getAbsolutePath()), md5);\n\n }",
"String saveData(MultipartFile md5File) throws IOException;",
"@java.lang.Override\n public com.google.protobuf.ByteString getFileHash() {\n return fileHash_;\n }",
"@java.lang.Override\n public com.google.protobuf.ByteString getFileHash() {\n return fileHash_;\n }",
"byte[] getFile(String sha) throws Exception;",
"byte[] getDigest();",
"private String fileChecksum(File tmpFile, ITaskMonitor monitor) {\n InputStream is = null;\n try {\n is = new FileInputStream(tmpFile);\n MessageDigest digester = getChecksumType().getMessageDigest();\n byte[] buf = new byte[65536];\n int n;\n while ((n = is.read(buf)) >= 0) {\n if (n > 0) {\n digester.update(buf, 0, n);\n }\n }\n return getDigestChecksum(digester);\n } catch (FileNotFoundException e) {\n monitor.setResult(\"File not found: %1$s\", e.getMessage());\n } catch (Exception e) {\n monitor.setResult(e.getMessage());\n } finally {\n if (is != null) {\n try {\n is.close();\n } catch (IOException e) {\n }\n }\n }\n return \"\";\n }",
"public static String getFileChecksum(MessageDigest digest, String filePath) throws IOException {\n\t\tFileInputStream fis = new FileInputStream(filePath);\n\n\t\t// Create byte array to read data in chunks\n\t\tbyte[] byteArray = new byte[1024];\n\t\tint bytesCount = 0;\n\n\t\t// Read file data and update in message digest\n\t\twhile ((bytesCount = fis.read(byteArray)) != -1) {\n\t\t\tdigest.update(byteArray, 0, bytesCount);\n\t\t}\n\t\t;\n\n\t\t// close the stream; We don't need it now.\n\t\tfis.close();\n\n\t\t// Get the hash's bytes\n\t\tbyte[] bytes = digest.digest();\n\n\t\t// This bytes[] has bytes in decimal format;\n\t\t// Convert it to hexadecimal format\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor (int i = 0; i < bytes.length; i++) {\n\t\t\tsb.append(Integer.toString((bytes[i] & 0xff) + 0x100, 16).substring(1));\n\t\t}\n\n\t\t// return complete hash\n\t\treturn sb.toString();\n\t}",
"public static byte[] encryptMD5File(final File file) {\n if (file == null) return null;\n FileInputStream fis = null;\n DigestInputStream digestInputStream;\n try {\n fis = new FileInputStream(file);\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n digestInputStream = new DigestInputStream(fis, md);\n byte[] buffer = new byte[256 * 1024];\n while (true) {\n if (!(digestInputStream.read(buffer) > 0)) break;\n }\n md = digestInputStream.getMessageDigest();\n return md.digest();\n } catch (NoSuchAlgorithmException | IOException e) {\n e.printStackTrace();\n return null;\n } finally {\n try {\n if (fis != null) {\n fis.close();\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }",
"byte[] digest();",
"@Test\n public void fileMd5Test() {\n // TODO: test fileMd5\n }",
"public String getMd5Hash() {\n return md5Hash;\n }",
"public String getMD5() {\n return m_module.getConfiguration().getMD5();\n }",
"public static String CreateMD5(File file) {\n String base64Image = \"\";\n try (FileInputStream imageInFile = new FileInputStream(file)) {\n // Reading a Image file from file system\n byte imageData[] = new byte[(int) file.length()];\n imageInFile.read(imageData);\n base64Image = Base64.getEncoder().encodeToString(imageData);\n } catch (FileNotFoundException e) {\n DialogWindow.ShowErrorPane(\"Image could not be found.\", \"Error Image Missing\");\n// System.out.println(\"Image not found\" + e);\n } catch (IOException ioe) {\n DialogWindow.ShowErrorPane(\"Error while the image was being converted.\", \"Error Converting Image\");\n// System.out.println(\"Exception while reading the Image \" + ioe);\n }\n return base64Image;\n }",
"public BoxFileUploadRequestObject setContentMD5(String sha1) {\n getRequestExtras().addHeader(Constants.CONTENT_MD5, sha1);\n return this;\n }",
"public static byte[] computeMD5Hash(InputStream is) throws NoSuchAlgorithmException, IOException {\n BufferedInputStream bis = new BufferedInputStream(is);\n try {\n MessageDigest messageDigest = MessageDigest.getInstance(\"MD5\");\n byte[] buffer = new byte[16384];\n int bytesRead = -1;\n while ((bytesRead = bis.read(buffer, 0, buffer.length)) != -1) {\n messageDigest.update(buffer, 0, bytesRead);\n }\n return messageDigest.digest();\n } finally {\n try {\n bis.close();\n } catch (Exception e) {\n System.err.println(\"Unable to close input stream of hash candidate: \" + e);\n }\n }\n }",
"public byte[] getContentMd5() {\n return CoreUtils.clone(this.contentMd5);\n }",
"private static String md5(byte[] b) {\n try {\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n md.reset();\n md.update(b);\n byte[] digest = md.digest();\n StringBuffer sb = new StringBuffer();\n for (int i=0; i<digest.length; i++) {\n String a = Integer.toHexString(0xff & digest[i]);\n if (a.length() == 1) a = \"0\" + a;\n sb.append(a);\n }\n return sb.toString();\n }\n catch (NoSuchAlgorithmException e) { writeLog(e); }\n return null;\n }",
"private int getFileContentHashCode(Path filePath) throws IOException {\n return Arrays.hashCode(Files.readAllBytes(filePath));\n }",
"public static void md5(File outputFile) throws ConverterException {\r\n\t\ttry {\r\n\t\t\tFileInputStream fileInputStream = new FileInputStream(outputFile);\r\n\t\t\tBufferedInputStream bufferedInputStream = new BufferedInputStream(fileInputStream);\r\n\t\t\t\r\n\t\t\tbyte[] datei = bufferedInputStream.readAllBytes();\r\n\t\t\tMessageDigest md = MessageDigest.getInstance(\"MD5\");\r\n\t\t\tbyte[] md5 = md.digest(datei);\r\n\t\t\tfor (int i = 0; i < md5.length; i++) {\r\n\t\t\t\tSystem.out.print(String.format(\"%02X\", md5[i]));\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\" File Length: \" + outputFile.length());\r\n\t\t\tSystem.out.println();\r\n\t\t\t\r\n\t\t\tbufferedInputStream.close();\r\n\t\t\tfileInputStream.close();\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\tthrow new ConverterException(\"Datei kann nicht gefunden werden\");\r\n\t\t} catch (IOException e) {\r\n\t\t\tthrow new ConverterException(\"Beim Lesen der Datei ist ein Fehler aufgetreten\");\r\n\t\t} catch (NoSuchAlgorithmException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"private String calculateCheckSum(File file2) {\n\t\tStringBuffer sb = new StringBuffer(\"\");\n\t\ttry {\n\t\t\tMessageDigest messageDigest = MessageDigest.getInstance(\"SHA1\");\n\n\t\t\tFileInputStream finput = new FileInputStream(file2);\n\t\t\tbyte[] dataBytes = new byte[1024];\n\n\t\t\tint bytesRead = 0;\n\n\t\t\twhile ((bytesRead = finput.read(dataBytes)) != -1) {\n\t\t\t\tmessageDigest.update(dataBytes, 0, bytesRead);\n\t\t\t}\n\n\t\t\tbyte[] digestBytes = messageDigest.digest();\n\n\t\t\tfor (int i = 0; i < digestBytes.length; i++) {\n\t\t\t\tsb.append(Integer.toString((digestBytes[i] & 0xff) + 0x100, 16).substring(1));\n\t\t\t}\n\t\t\tSystem.out.println(\"file check sum value is \" + sb.toString());\n\t\t\tfinput.close();\n\t\t} catch (Exception ex) {\n\t\t\t// TODO: handle exception\n\t\t\tLogger.getLogger(FileTransferClient.class.getName()).log(Level.SEVERE, null, ex);\n\t\t}\n\n\t\treturn sb.toString();\n\t}",
"public static byte[] computeMD5Hash(byte[] data) throws NoSuchAlgorithmException, IOException {\n return computeMD5Hash(new ByteArrayInputStream(data));\n }",
"public byte[] getMD5() {\n return MD5;\n }",
"public Digest (File appdir)\n throws IOException\n {\n // parse and validate our digest file contents\n StringBuffer data = new StringBuffer();\n File dfile = new File(appdir, DIGEST_FILE);\n List pairs = ConfigUtil.parsePairs(dfile, false);\n for (Iterator iter = pairs.iterator(); iter.hasNext(); ) {\n String[] pair = (String[])iter.next();\n if (pair[0].equals(DIGEST_FILE)) {\n _metaDigest = pair[1];\n break;\n }\n _digests.put(pair[0], pair[1]);\n note(data, pair[0], pair[1]);\n }\n \n // we've reached the end, validate our contents\n MessageDigest md = getMessageDigest();\n byte[] contents = data.toString().getBytes(\"UTF-8\");\n String md5 = StringUtil.hexlate(md.digest(contents));\n if (!md5.equals(_metaDigest)) {\n String err = MessageUtil.tcompose(\n \"m.invalid_digest_file\", _metaDigest, md5);\n throw new IOException(err);\n }\n }",
"public byte[] MD5(File archivo) throws OpenSSL_Exception {\n\t\tString[] comando = new String[]{ \"openssl\" , \"dgst\" , \"-md5\" , archivo.getAbsolutePath()};\n\t\tProcess terminal = null;\n\t\ttry { terminal = Runtime.getRuntime().exec(comando); } catch (IOException e) { \n\t\t\tthrow new OpenSSL_Exception(\"No se puede ejecutar el comando en el terminal\");\n\t\t}\n\t\t// --- > Leemos la salida error del comando\n\t\tBufferedReader errors = new BufferedReader(new InputStreamReader(terminal.getErrorStream()));\n\t\tString linea = \"\" , error = \"\" ;\n\t\ttry { while( (linea = errors.readLine()) != null) error += linea + \"\\n\"; } catch (IOException e) {\n\t\t\tthrow new OpenSSL_Exception(\"No se puede leer el error que ha producido el comando\");\n\t\t}\n\t\t// --- > Si hubo salida error lanzamos al excepcion con el error\n\t\tif(!error.equals(\"\"))throw new OpenSSL_Exception(\"Error al ejecutar el comando:\\n\" + error );\n\t\t// --- > Leemos el resultado obtenido\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(terminal.getInputStream()));\n\t\tString res = \"\";\n\t\ttry { while((linea = in.readLine()) != null) res += linea; } catch (IOException e) {\n\t\t\tthrow new OpenSSL_Exception(\"No se puede leer el resultado que ha producido el comando\");\n\t\t}\n\t\treturn res.substring(res.lastIndexOf(\" \") + 1 ).getBytes();\n\t}",
"public byte[] getHash()\n\t{\n\t\treturn md5.getHash();\n\t}",
"@Test\n public void md5Checksum() throws NoSuchAlgorithmException {\n String string = Utils.md5Checksum(\"abcde fghijk lmn op\");\n Assert.assertEquals(\"1580420c86bbc3b356f6c40d46b53fc8\", string);\n }",
"public static String md5(String pass)\n {\n try{\n MessageDigest md=MessageDigest.getInstance(\"MD5\");\n byte[] messageDigest=md.digest(pass.getBytes());\n BigInteger num=new BigInteger(1,messageDigest);\n String hashText=num.toString(16);\n while(hashText.length()<32)\n {\n hashText=\"0\"+hashText;\n } \n return hashText; \n }\n catch(Exception e)\n { \n throw new RuntimeException(e);\n } \n }",
"public static void main(String[] args) throws NoSuchAlgorithmException, FileNotFoundException, IOException {\n \r\n String hash = \"F5D080D4F4E185DECA8A8B24F72408D9\";\r\n String [] keys = {\"9A1BA7F38A3E8D8F9DDD55972868CB3F\",\"17185CEF199E1C89804EDEE9DCDD1B90\",\"F5D080D4F4E185DECA8A8B24F72408D9\"};\r\n String password = \"NoSuchPassword\";\r\n File file = null;\r\n JFileChooser ff = new JFileChooser();\r\n int a = ff.showOpenDialog(null);\r\n if(a == JFileChooser.APPROVE_OPTION){\r\n try {\r\n file = ff.getSelectedFile();\r\n JOptionPane.showMessageDialog(ff, a);\r\n \r\n } catch (Exception ex) {\r\n ex.printStackTrace();\r\n } finally {\r\n System.out.println(file.getPath());\r\n }\r\n } \r\n BufferedReader fr = null;\r\n fr = new BufferedReader(new FileReader(file.getPath()));\r\n String line = null;\r\n int i = 0; \r\n //This is the funtion that Java implement in java.security.MessageDigest\r\n MessageDigest md5 = MessageDigest.getInstance(\"MD5\");\r\n while((line = fr.readLine()) != null){\r\n System.out.println(line);\r\n md5.update(line.getBytes());\r\n byte [] digests = md5.digest();\r\n String hashs = DatatypeConverter.printHexBinary(digests).toUpperCase();\r\n if(keys[i].equals(hashs)){\r\n System.out.println(\"CORRECT!\\nThe hash created is the same as the hash saved \");\r\n }\r\n else{\r\n System.out.println(\"ERROR!\\nThere was a mistake, the hash create doesn't mach the hash saved\");\r\n }\r\n i++;\r\n } \r\n fr.close();\r\n /**In conclusion we can use the MD5 for digest a words and then same them\r\n * is a DataBase, this with the function that if the DB is committed the\r\n * passwords will not be there\r\n */\r\n }",
"public ShareFileHttpHeaders setContentMd5(byte[] contentMd5) {\n this.contentMd5 = CoreUtils.clone(contentMd5);\n return this;\n }",
"public String getMD5ForGame(String gameId) {\n return \"TODO\";\n }",
"public static String md5(String message) {\n String digest = null;\n try {\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n byte[] hash = md.digest(message.getBytes(\"UTF-8\"));\n\n //converting byte array to HexadecimalString\n StringBuilder sb = new StringBuilder(2 * hash.length);\n for (byte b : hash) {\n sb.append(String.format(\"%02x\", b & 0xff));\n }\n digest = sb.toString();\n } catch (UnsupportedEncodingException ex) {\n log.error(\"UnsupportedEncodingException\",ex);\n } catch (NoSuchAlgorithmException ex) {\n log.error(\"NoSuchAlgorithmException\",ex);\n }\n\n return digest;\n }",
"protected String getFileETag(File file) {\n\t\tFileInputStream is = null;\n\t\ttry {\n\t\t\tis = new FileInputStream(file);\n\t\t\treturn \"\\\"\" + DigestUtils.md5Hex(is) + \"\\\"\";\n\t\t} catch (IOException e) {\n\t\t\treturn \"\";\n\t\t} finally {\n\t\t\tcloseQuietly(is);\n\t\t}\n\t}",
"private static byte[] m14295fl(String str) {\n try {\n MessageDigest instance = MessageDigest.getInstance(\"MD5\");\n if (instance == null) {\n return str.getBytes();\n }\n instance.update(str.getBytes());\n return instance.digest();\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n return str.getBytes();\n }\n }",
"protected String getMd5Hash(String token) {\n\n MessageDigest m;\n\t\ttry {\n\t\t\tm = MessageDigest.getInstance(\"MD5\");\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\tthrow new IllegalStateException(e);\n\t\t}\n m.update(token.getBytes());\n \n byte[] digest = m.digest();\n BigInteger bigInt = new BigInteger(1,digest);\n String hashtext = bigInt.toString(16);\n \n // Now we need to zero pad it if you actually want the full 32 chars.\n while(hashtext.length() < 32 ){\n hashtext = \"0\"+hashtext;\n }\n \n return hashtext;\n\t}",
"public static String toSHA1(String filename){\n\t\tMessageDigest md=null;\n\t\ttry{\n\t\t\tmd = MessageDigest.getInstance(\"SHA-1\");\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\ttry{\n\t\t\tFileInputStream in = new FileInputStream(filename);\n\t\t\tBufferedInputStream buffIn = new BufferedInputStream(in);\n\t\t\tDigestInputStream dis = new DigestInputStream(buffIn, md);\n\t\t\t\n\t\t\tFile f = new File(filename);\n\t\t\tLong fileSize = f.length();\n\t\t\t\n\t\t\tString blob = \"blob \" + fileSize.toString() + '\\0';\n\t\t\tmd.update(blob.getBytes());\n\t\t\t\t\t\t\n\t\t\t// read the file and update the hash calculation\n while (dis.read() != -1);\n\n // get the hash value as byte array\n byte[] hash = md.digest();\n\n return byteArray2Hex(hash);\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\t\n\t\treturn \"\";\n\t}",
"public static byte[] encryptMD5File(final String filePath) {\n File file = isSpace(filePath) ? null : new File(filePath);\n return encryptMD5File(file);\n }",
"public boolean IsFileMd5Equeal(UploadReport report) {\r\n\t\tString filename = this.conf.getFtpMountDirectory() + \"/DATA/\" + report.getFilename();\r\n\t\tString md5value = MD5Util.getFileMD5(new File(filename));\r\n\t\tFile file = new File(filename);\r\n\t\tif (file.exists()) {\r\n\t\t\tif (md5value.compareTo(report.getMd5value()) == 0) {\r\n\t\t\t\treturn true;\r\n\t\t\t} else {\r\n\t\t\t\tLogUtils.logger.error(\"Error happened when Caculate MD5 value, Original value: \" + report.getMd5value()\r\n\t\t\t\t\t\t+ \", New value : \" + md5value);\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tLogUtils.logger.error(\"Error happened when Caculate MD5 value, File: \" + filename + \" does not exist! \");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"public static String mySHA(String file) {\n\t\ttry {\n\t\t\t// java.security.MessageDigest digest = null;\n\t\t\t// digest = java.security.MessageDigest.getInstance(\"SHA-1\");\n\t\t\t// digest.reset();\n\t\t\t// digest.update(x.getBytes(\"UTF-8\"));\n\t\t\t// digest.update(x.getBytes(\"UTF-8\"));\n\t\t\t// return digest.digest();\n\t\t\tMessageDigest sha1 = MessageDigest.getInstance(\"SHA1\");\n\t\t\tFileInputStream fis = new FileInputStream(file);\n\n\t\t\tbyte[] data = new byte[1024];\n\t\t\tint read = 0;\n\t\t\twhile ((read = fis.read(data)) != -1) {\n\t\t\t\tsha1.update(data, 0, read);\n\t\t\t}\n\t\t\t;\n\t\t\tbyte[] hashBytes = sha1.digest();\n\n\t\t\tStringBuffer sb = new StringBuffer();\n\t\t\tfor (int i = 0; i < hashBytes.length; i++) {\n\t\t\t\tsb.append(Integer.toString((hashBytes[i] & 0xff) + 0x100, 16).substring(1));\n\t\t\t}\n\n\t\t\tString fileHash = sb.toString();\n\t\t\treturn fileHash;\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(e);\n\t\t\tString s = \"-1\";\n\t\t\treturn s;\n\t\t}\n\t}",
"public static String computeSHA(byte[] filebytes) throws NoSuchAlgorithmException {\r\n\t\tMessageDigest messageDigest = MessageDigest.getInstance(\"SHA-1\");\r\n\t\tbyte[] hash = messageDigest.digest(filebytes);\r\n\t\t\r\n\t\tFormatter formatter = new Formatter();\r\n\t\t\r\n\t\tfor (byte b : hash) {\r\n\t\t\tformatter.format(\"%02x\", b);\r\n\t\t}\r\n\t\t\r\n\t\treturn formatter.toString();\r\n\t}",
"public String getMD5Checksum(String pid, String dsName) throws FedoraException, IOException {\r\n try {\r\n return getDatastreamProperty(pid, dsName, DatastreamProfile.DatastreamProperty.DS_CHECKSUM);\r\n } catch (XPathExpressionException ex) {\r\n throw new FedoraException(ex);\r\n } catch (SAXException ex) {\r\n throw new FedoraException(ex);\r\n } catch (ParserConfigurationException ex) {\r\n throw new FedoraException(ex);\r\n }\r\n }",
"public String getHashsum(String file_name) {\n\t\t//\n\t\t// query database\n\t\t//\n\t\tCursor cursor = m_db.query(FILE_TABLE_NAME,\n\t\t\t\tnew String[] { FILE_FIELD_HASH_SUM }, FILE_FIELD_PATH + \"=?\",\n\t\t\t\tnew String[] { file_name }, null, null, null);\n\n\t\t//\n\t\t// get first entry of result set\n\t\t//\n\t\tString result = getFirstEntryOfResultSet(cursor);\n\n\t\t//\n\t\t// close cursor\n\t\t//\n\t\tcursor.close();\n\n\t\t//\n\t\t// done\n\t\t//\n\t\treturn result;\n\n\t}",
"java.lang.String getChecksum();",
"private static java.security.MessageDigest f() {\n /*\n r0 = \"MD5\";\n r1 = j;\n r0 = r0.equals(r1);\n if (r0 == 0) goto L_0x003a;\n L_0x000a:\n r0 = java.security.Security.getProviders();\n r1 = r0.length;\n r2 = 0;\n L_0x0010:\n if (r2 >= r1) goto L_0x003a;\n L_0x0012:\n r3 = r0[r2];\n r3 = r3.getServices();\n r3 = r3.iterator();\n L_0x001c:\n r4 = r3.hasNext();\n if (r4 == 0) goto L_0x0037;\n L_0x0022:\n r4 = r3.next();\n r4 = (java.security.Provider.Service) r4;\n r4 = r4.getAlgorithm();\n j = r4;\n r4 = j;\t Catch:{ NoSuchAlgorithmException -> 0x001c }\n r4 = java.security.MessageDigest.getInstance(r4);\t Catch:{ NoSuchAlgorithmException -> 0x001c }\n if (r4 == 0) goto L_0x001c;\n L_0x0036:\n return r4;\n L_0x0037:\n r2 = r2 + 1;\n goto L_0x0010;\n L_0x003a:\n r0 = 0;\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.koushikdutta.async.util.FileCache.f():java.security.MessageDigest\");\n }",
"public String getHashString()\n\t{\n\t\treturn md5.getHashString();\n\t}",
"public Builder setFileHash(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n fileHash_ = value;\n onChanged();\n return this;\n }",
"public Builder setFileHash(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n fileHash_ = value;\n onChanged();\n return this;\n }",
"public static String createMd5(String value)\r\n\t{ \r\n\t\ttry \r\n\t\t{\r\n\t\t\tMessageDigest md = MessageDigest.getInstance(\"MD5\");\t\t\t\r\n\t\t\tbyte[] hashInBytes = md.digest(value.getBytes(StandardCharsets.UTF_8));\r\n\t\t\tStringBuilder sb = new StringBuilder();\r\n\t for (byte b : hashInBytes) \r\n\t {\r\n\t sb.append(String.format(\"%02x\", b));\r\n\t }\r\n\t return sb.toString();\r\n\t\t}\r\n\t\tcatch(Exception ex)\r\n\t\t{\r\n\t\t\t\r\n\t\t}\r\n\t\treturn \"\";\r\n\t}",
"public static String hash(File remoteFsRoot) {\n logger.config(\"hash() invoked\");\n\n StringBuilder buf = new StringBuilder();\n try {\n buf.append(remoteFsRoot.getCanonicalPath()).append('\\n');\n } catch (IOException e) {\n logger.log(Level.FINER, \"hash() IOException - may be normal?\", e);\n buf.append(remoteFsRoot.getAbsolutePath()).append('\\n');\n }\n try {\n for (NetworkInterface ni : Collections.list(NetworkInterface.getNetworkInterfaces())) {\n for (InetAddress ia : Collections.list(ni.getInetAddresses())) {\n if (ia instanceof Inet4Address) {\n buf.append(ia.getHostAddress()).append('\\n');\n } else if (ia instanceof Inet6Address) {\n buf.append(ia.getHostAddress()).append('\\n');\n }\n }\n byte[] hardwareAddress = ni.getHardwareAddress();\n if (hardwareAddress != null) {\n buf.append(Arrays.toString(hardwareAddress));\n }\n }\n } catch (SocketException e) {\n // oh well we tried\n logger.log(Level.FINEST, \"hash() SocketException - 'oh well we tried'\", e);\n }\n return DigestUtils.md5Hex(buf.toString()).substring(0, 8);\n }",
"public static String getMD5(final File file) {\n if (file == null || !file.exists()) {\n return null;\n }\n\n FileInputStream fin = null;\n try {\n fin = new FileInputStream(file);\n String md5 = getMD5(fin);\n return md5;\n } catch (Exception e) {\n return null;\n } finally {\n closeQuietly(fin);\n }\n }",
"public static String getMd5(String input) {\n try {\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n\n byte[] messageDigest = md.digest(input.getBytes());\n\n BigInteger no = new BigInteger(1, messageDigest);\n\n String hashtext = no.toString(16);\n while (hashtext.length() < 32) {\n hashtext = \"0\" + hashtext;\n }\n return hashtext;\n } catch (NoSuchAlgorithmException e) {\n throw new RuntimeException(e);\n }\n }",
"public String getMD5(String txt){\n String md5output;\n md5output = txt;\n try {\n MessageDigest m = MessageDigest.getInstance(\"MD5\");\n m.reset();\n m.update(md5output.getBytes());\n byte[] digest = m.digest();\n BigInteger bigInt = new BigInteger(1,digest);\n md5output = bigInt.toString(16);\n } catch (Exception e) {\n md5output = null;\n } finally{\n return md5output;\n }\n \n }",
"private static byte[] generateMD5(String info) throws\n UnsupportedEncodingException, NoSuchAlgorithmException {\n byte[] inputData = info.getBytes(\"UTF-8\");\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n md.update(inputData);\n byte[] digest= md.digest();\n return digest;\n }",
"public String getHash(String str) throws Exception{\n\t\t\n\t\tMessageDigest md = MessageDigest.getInstance(\"MD5\");\n md.update(str.getBytes());\n \n byte byteData[] = md.digest();\n \n //convert the byte to hex format method 1\n StringBuffer sb = new StringBuffer();\n for (int i = 0; i < byteData.length; i++) {\n sb.append(Integer.toString((byteData[i] & 0xff) + 0x100, 16).substring(1));\n }\n \n String hex = sb.toString();\n System.out.println(hex);\n return hex; \n}",
"public static String getMD5(String s) {\n try {\n MessageDigest m = MessageDigest.getInstance(\"MD5\");\n m.update(s.getBytes(), 0, s.length());\n return \"\" + new BigInteger(1, m.digest()).toString(16);\n } catch (NoSuchAlgorithmException e) {\n logger.error(\"MD5 is not supported !!!\");\n }\n return s;\n }",
"public byte[] calc_hash(File filename)\r\n {\r\n\tint digest_length = 512;\r\n\tbyte message[] = new byte[digest_length];\r\n\tbyte key[] = new byte[0];\r\n\tMessageDigest sha;\r\n\tint message_size;\r\n\tlong file_size = 0;\r\n\r\n\ttry{\r\n\t sha = MessageDigest.getInstance(algorithm, provider);\r\n\r\n\t try{\r\n\t\t/* Read file into byte array, and use array to update hash key */\r\n\t\tFileInputStream fin = new FileInputStream(filename);\r\n\t\twhile((message_size = fin.read(message)) != -1)\r\n\t\t {\r\n\t\t\tif(message_size < digest_length)\r\n\t\t\t sha.update(message, 0, message_size);\r\n\t\t\telse\r\n\t\t\t sha.update(message);\r\n\t\t }\r\n\t\tfin.close();\r\n\r\n\t\tkey = sha.digest();\r\n\t }\r\n\t catch(IOException ioe){\r\n\t\tSystem.out.println(\"Error (calc_hash): Unable to open and read file \" + filename.getName());\r\n\t\tioe.printStackTrace();\r\n\t\treturn null;\r\n\t }\r\n\t}\r\n\tcatch(NoSuchAlgorithmException nae){\r\n\t System.out.println(\"Error (calc_hash): hash algorithm \" + algorithm + \" not found\");\r\n\t nae.printStackTrace();\r\n\t return null;\r\n\t}\r\n\tcatch(NoSuchProviderException npe){\r\n\t System.out.println(\"Error (calc_hash): Security provider \" + provider + \" not found\");\r\n\t npe.printStackTrace();\r\n\t return null;\r\n\t}\r\n\r\n\treturn key;\r\n }",
"public HashCode getInstallMD5() {\n return installMD5;\n }",
"public static String getStringMD5(String src) {\n\t\tMessageDigest messageDigest = null;\n\t\tbyte[] srcBytes = src.getBytes();\n\t\ttry {\n\t\t\tmessageDigest = MessageDigest.getInstance(\"MD5\");\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tmessageDigest.update(srcBytes, 0, srcBytes.length);\n\t\tBigInteger bigInt = new BigInteger(1, messageDigest.digest());\n\t\treturn bigInt.toString(16);\n\t}",
"public static byte[] encryptMD5(final byte[] data) {\n return hashTemplate(data, \"MD5\");\n }",
"public String md5(String s) {\n try {\n // Create MD5 Hash\n MessageDigest digest = java.security.MessageDigest.getInstance(\"MD5\");\n digest.update(s.getBytes());\n byte messageDigest[] = digest.digest();\n\n // Create Hex String\n StringBuffer hexString = new StringBuffer();\n for (int i = 0; i < messageDigest.length; i++)\n hexString.append(Integer.toHexString(0xFF & messageDigest[i]));\n return hexString.toString();\n\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n }\n return \"\";\n }",
"private static String md5(String str) {\n\n if (str == null) {\n return null;\n }\n\n MessageDigest messageDigest = null;\n\n try {\n messageDigest = MessageDigest.getInstance(HttpConf.signType);\n messageDigest.reset();\n messageDigest.update(str.getBytes(HttpConf.charset));\n } catch (NoSuchAlgorithmException e) {\n\n return str;\n } catch (UnsupportedEncodingException e) {\n return str;\n }\n\n byte[] byteArray = messageDigest.digest();\n\n StringBuffer md5StrBuff = new StringBuffer();\n\n for (int i = 0; i < byteArray.length; i++) {\n if (Integer.toHexString(0xFF & byteArray[i]).length() == 1) {\n md5StrBuff.append(\"0\").append(Integer.toHexString(0xFF & byteArray[i]));\n } else {\n md5StrBuff.append(Integer.toHexString(0xFF & byteArray[i]));\n }\n }\n\n return md5StrBuff.toString();\n }",
"private static void compareSha(String filename) {\n\n\t\tMessageDigest md = null;\n\n\t\ttry (InputStream is = new BufferedInputStream(new FileInputStream(filename))) {\n\n\t\t\tbyte[] data = new byte[4096];\n\t\t\tint nRead;\n\t\t\tmd = MessageDigest.getInstance(\"SHA-256\");\n\n\t\t\twhile ((nRead = is.read(data)) != -1) {\n\t\t\t\tmd.update(data, 0, nRead);\n\t\t\t}\n\n\t\t} catch (FileNotFoundException exc) {\n\t\t\tSystem.out.println(\n\t\t\t\t\t\"File does not exist, is a directory rather than a regular file, or cannot be opened for reading because of some other reason\");\n\t\t\tSystem.exit(1);\n\n\t\t} catch (IOException exc) {\n\t\t\tSystem.out.println(\"Input stream couldn't be initialized.\");\n\t\t\tSystem.exit(1);\n\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\tSystem.out.println(\"No provider supports a MessageDigestSpi implementation for the specified algorithm.\");\n\t\t\tSystem.exit(1);\n\t\t}\n\n\t\tString sha256Digest = Util.bytetohex(md.digest());\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tSystem.out.println(\"Please provide expected sha-256 digest for hw06part2.pdf: \");\n\t\tSystem.out.print(\">\");\n\t\tString expectedDigest = sc.nextLine();\n\t\tsc.close();\n\n\t\tif (sha256Digest.equals(expectedDigest)) {\n\t\t\tSystem.out.printf(\"Digesting completed. Digest of %s matches expected digest.\\n\", filename);\n\n\t\t} else {\n\t\t\tSystem.out.printf(\"Digesting completed. Digest of %s does not match the expected digest. Digest was: %s\\n\",\n\t\t\t\t\tfilename, sha256Digest);\n\t\t}\n\n\t}",
"private static String md5(final String s) {\n final String MD5 = \"MD5\";\n try {\n // Create MD5 Hash\n MessageDigest digest = java.security.MessageDigest\n .getInstance(MD5);\n digest.update(s.getBytes());\n byte messageDigest[] = digest.digest();\n\n // Create Hex String\n StringBuilder hexString = new StringBuilder();\n for (byte aMessageDigest : messageDigest) {\n String h = Integer.toHexString(0xFF & aMessageDigest);\n while (h.length() < 2)\n h = \"0\" + h;\n hexString.append(h);\n }\n return hexString.toString();\n\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n }\n return \"\";\n }",
"String getHash();",
"String getHash();",
"public MD5Hash(String s) {\n\t\tif(s.length() != 32) throw new IllegalArgumentException(\"Hash must have 32 characters\");\n\t\thashString = s;\n\t}",
"private String md5(String input) {\r\n\t\tString md5 = null;\r\n\t\tif (null == input)\r\n\t\t\treturn null;\r\n\r\n\t\ttry {\r\n\t\t\tMessageDigest digest = MessageDigest.getInstance(\"MD5\");\r\n\t\t\tdigest.update(input.getBytes(), 0, input.length());\r\n\t\t\tmd5 = new BigInteger(1, digest.digest()).toString(16);\r\n\t\t} catch (NoSuchAlgorithmException e) {\r\n\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn md5;\r\n\t}",
"private static String getKeyByMd5(String url) {\n String key;\n try {\n MessageDigest messageDigest = MessageDigest.getInstance(\"MD5\");\n messageDigest.update(url.getBytes());\n key = md5Encryption(messageDigest.digest());\n return key;\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n key = String.valueOf(url.hashCode());\n }\n return key;\n }",
"public static String md5(final String data) {\n return ByteString.encodeUtf8(data).md5().hex().toLowerCase();\n }",
"private String md5(final String s)\n\t{\n\t\ttry {\n\t\t\t// Create MD5 Hash\n\t\t\tMessageDigest digest = MessageDigest.getInstance(\"MD5\");\n\t\t\tdigest.update(s.getBytes());\n\t\t\tbyte messageDigest[] = digest.digest();\n\n\t\t\t// Create Hex String\n\t\t\tStringBuffer hexString = new StringBuffer();\n\t\t\tfor (int i=0; i<messageDigest.length; i++) {\n\t\t\t\tString h = Integer.toHexString(0xFF & messageDigest[i]);\n\t\t\t\twhile (h.length() < 2) h = \"0\" + h;\n\t\t\t\thexString.append(h);\n\t\t\t}\n\t\t\treturn hexString.toString();\n\t\t} catch(NoSuchAlgorithmException e) {\n\t\t\t//Logger.logStackTrace(TAG,e);\n\t\t}\n\t\treturn \"\";\n\t}",
"java.lang.String getHashData();",
"com.google.protobuf.ByteString getHash();",
"com.google.protobuf.ByteString getHash();",
"public static String hash(String data) {\n\t MessageDigest md;\n\t\ttry {\n\t\t\tmd = MessageDigest.getInstance(\"MD5\");\n\t\t md.update(data.getBytes());\n\t\t byte[] digest = md.digest();\n\t\t char[] HEX_ARRAY = \"0123456789ABCDEF\".toCharArray();\n\t char[] hexChars = new char[digest.length * 2];\n\t for (int j = 0; j < digest.length; j++) {\n\t int v = digest[j] & 0xFF;\n\t hexChars[j * 2] = HEX_ARRAY[v >>> 4];\n\t hexChars[j * 2 + 1] = HEX_ARRAY[v & 0x0F];\n\t }\n\t return new String(hexChars);\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n return null;\n\t}",
"public static String getMD5Hash(String string) {\r\n\t\tMessageDigest digest;\r\n\t\ttry {\r\n\t\t\tdigest = java.security.MessageDigest.getInstance(\"MD5\");\r\n\t\t\tdigest.update(string.getBytes());\r\n\t\t\tfinal byte[] hash = digest.digest();\r\n\t\t\tfinal StringBuilder result = new StringBuilder(hash.length);\r\n\t\t\tfor (int i = 0; i < hash.length; i++) {\r\n\t\t\t\tresult.append(Integer.toString((hash[i] & 0xff) + 0x100, 16)\r\n\t\t\t\t\t\t.substring(1));\r\n\t\t\t}\r\n\t\t\treturn result.toString();\r\n\t\t} catch (final NoSuchAlgorithmException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn \"error\";\r\n\t\t}\r\n\t}",
"int getHash();",
"public static String md5(String str) {\n MessageDigest messageDigest = null;\n try {\n messageDigest = MessageDigest.getInstance(\"MD5\");\n messageDigest.reset();\n messageDigest.update(str.getBytes(\"UTF-8\"));\n } catch (NoSuchAlgorithmException | UnsupportedEncodingException e) {\n // do nothing\n }\n byte[] byteArray = messageDigest.digest();\n StringBuffer md5StrBuff = new StringBuffer();\n for (int i = 0; i < byteArray.length; i++) {\n if (Integer.toHexString(0xFF & byteArray[i]).length() == 1)\n md5StrBuff.append(\"0\").append(Integer.toHexString(0xFF & byteArray[i]));\n else\n md5StrBuff.append(Integer.toHexString(0xFF & byteArray[i]));\n }\n return md5StrBuff.toString();\n }",
"private String md5(String message) throws java.security.NoSuchAlgorithmException\n\t{\n\t\tMessageDigest md5 = null;\n\t\ttry {\n\t\t\tmd5 = MessageDigest.getInstance(\"MD5\");\n\t\t}\n\t\tcatch (java.security.NoSuchAlgorithmException ex) {\n\t\t\tex.printStackTrace();\n\t\t\tthrow ex;\n\t\t}\n\t\tbyte[] dig = md5.digest((byte[]) message.getBytes());\n\t\tStringBuffer code = new StringBuffer();\n\t\tfor (int i = 0; i < dig.length; ++i)\n\t\t{\n\t\t\tcode.append(Integer.toHexString(0x0100 + (dig[i] & 0x00FF)).substring(1));\n\t\t}\n\t\treturn code.toString();\n\t}",
"public static String hash(String in) {\r\n\t\treturn DigestUtils.md5Hex(in.getBytes());\r\n\t}",
"public static String getFileChecksum(File file) {\n return getFileChecksum(file, true);\n }"
] |
[
"0.7800426",
"0.7483837",
"0.745395",
"0.73832744",
"0.7380369",
"0.72531235",
"0.72531235",
"0.71196264",
"0.7082408",
"0.7062036",
"0.7048478",
"0.7031023",
"0.70060116",
"0.69423705",
"0.6941836",
"0.6911277",
"0.6899666",
"0.68789035",
"0.67872053",
"0.6573226",
"0.6517764",
"0.6462793",
"0.64626735",
"0.64483845",
"0.637664",
"0.6344204",
"0.6328337",
"0.63156193",
"0.62790745",
"0.62778276",
"0.62544405",
"0.62272245",
"0.622478",
"0.62095225",
"0.6189183",
"0.618581",
"0.6150319",
"0.61447257",
"0.6133792",
"0.61083305",
"0.61080337",
"0.6107677",
"0.6082222",
"0.6078524",
"0.6063569",
"0.60347885",
"0.6032613",
"0.6018872",
"0.5967777",
"0.59409916",
"0.5930955",
"0.59301263",
"0.59198403",
"0.59154654",
"0.58731323",
"0.58727765",
"0.5865943",
"0.58636516",
"0.58328414",
"0.58306295",
"0.58288914",
"0.5823926",
"0.5822736",
"0.5820728",
"0.58198696",
"0.58198696",
"0.5814811",
"0.5810591",
"0.5802849",
"0.5767336",
"0.57649535",
"0.57357484",
"0.5735534",
"0.5722977",
"0.5713615",
"0.5705999",
"0.5685397",
"0.5664443",
"0.5657681",
"0.56380135",
"0.5635169",
"0.56317455",
"0.56283534",
"0.56283534",
"0.5621572",
"0.5617056",
"0.56170446",
"0.5608373",
"0.5608194",
"0.5602473",
"0.55986595",
"0.55986595",
"0.5591306",
"0.5573595",
"0.5569579",
"0.5567024",
"0.55646014",
"0.5549714",
"0.553195"
] |
0.63890666
|
24
|
uint32 chunkIndex = 2;
|
@java.lang.Override
public int getChunkIndex() {
return chunkIndex_;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"int getChunkIndex();",
"int getChunkIndex();",
"int getChunkId();",
"int getChunkId();",
"int getChunkId();",
"int getChunkId();",
"int getChunkId();",
"int getChunkId();",
"public int getChunkNo() {\n return chunkNo;\n }",
"public int getChunkNo() {\n return chunkNo;\n }",
"@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }",
"@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }",
"protected int getChunkInRegion() {\n\t\treturn (rnd.nextInt(structurePosRange) + rnd.nextInt(structurePosRange)) / 2;\n\t}",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"private int getChunk(byte [] buffer, int offset, String chunk) {\r\n\t\ttry {\r\n\t\t\tfor (;;) {\r\n\t\t\t\tint dataLenght = getInt(buffer, offset);\r\n\t\t\t\tif (compareBytes(buffer, offset+4, chunk)) {\r\n\t\t\t\t\treturn offset;\r\n\t\t\t\t} else {\r\n\t\t\t\t\toffset += 4 + 4 + dataLenght + 4;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception e) {};\r\n\t\treturn -1;\r\n\t}",
"entities.Torrent.ChunkInfo getChunks(int index);",
"int getNumOfChunks();",
"edu.usfca.cs.dfs.StorageMessages.StoreChunkLocation getChunksLocation(int index);",
"private int chunk(long timestamp) {\n int chunkid;\n \n if (timestamp >= 0) {\n chunkid = (int) ((timestamp / chunklen) % chunkcount);\n } else {\n chunkid = chunkcount + (int) ((((timestamp + 1) / chunklen) % chunkcount) - 1);\n //chunkid = chunkcount - (int) ((- (timestamp + 1) / chunklen) % chunkcount);\n }\n \n return chunkid;\n }",
"int getChunksCount();",
"int getChunksCount();",
"public int getHighestChunk() {\n return highestChunk_;\n }",
"int getChunksLocationCount();",
"public int getChunkWidth() {\n return 256;\n }",
"public int currentChunkNum() {\n\t\treturn cp.chunk().getChunkNum();\n\t}",
"int getChunkSize();",
"public void nextTextureIndexX() {\n/* 245 */ this.particleTextureIndexX++;\n/* */ }",
"List<DownloadChunk> mo54445j(int i);",
"void sendChunkRequest(int chunkX, int chunkY);",
"protected String _getChunkId(String id, int index) {\n\t\treturn id + \"[\" + index + \"]\";\n\t}",
"public int getChunkHeight() {\n return 256;\n }",
"public int getHighestChunk() {\n return highestChunk_;\n }",
"String getChunkType();",
"protected int getTextureIndex() {\n/* 83 */ return getData() & 0x7;\n/* */ }",
"public int getChunkCount () {\n return (this.getTagCount()>>BITS_TO_SHIFT_FOR_CHUNK) + 1;\n }",
"public abstract int getNextBlock(int block) throws IOException;",
"public int getInternalBlockLength()\r\n/* 40: */ {\r\n/* 41: 95 */ return 32;\r\n/* 42: */ }",
"private static boolean parseChunk(final FileChannel fc,final long[] offset,final int depth) throws IOException {\n\t Log.d(TAG, \"entering parseChunk \"+ offset[0] +\"/\"+ depth);\n\n\t long data_offset = offset[0];\n\n long chunk_size = Util.readUInt(fc, data_offset); \n int chunk_type = Util.readInt(fc, data_offset+4);\n\n Log.v(TAG, chunk_type + \" \" + chunk_size);\n char sChunk[] = new char[4];\n Util.MakeFourCCString(chunk_type, sChunk);\n Log.v(TAG, String.format(\"chunk %s\", String.valueOf(sChunk)));\n\n data_offset += 8;\n // long chunk_data_size = offset[0] + chunk_size - data_offset;\n\n if (chunk_size == 1) {\n\n chunk_size = Util.readLong(fc, data_offset);\n\n data_offset += 8;\n\n if (chunk_size < 16) {\n Log.e(TAG,\" The smallest valid chunk is 16 bytes long in this case.\");\n return false;\n }\n\n } else if (chunk_size < 8) {\n Log.e(TAG,\"The smallest valid chunk is 8 bytes long.\");\n return false;\n }\n\n Log.v(TAG, String.format(\"parsing chunk %s at depth %d\",\n String.valueOf(sChunk), depth));\n\n if(chunk_type == Util.FOURCC('m', 'o', 'o', 'v') || chunk_type == Util.FOURCC('u', 'd', 't', 'a')) {\n Log.d(TAG, String.valueOf(sChunk));\n\n long stop_offset = offset[0] + chunk_size;\n offset[0] = data_offset;\n while (offset[0] < stop_offset) {\n boolean err = parseChunk(fc,offset, depth + 1);\n if (!err) {\n return err;\n }\n }\n\n if (offset[0] != stop_offset) {\n return false;\n }\n\n if (chunk_type == Util.FOURCC('m', 'o', 'o', 'v') ) {\n return true;\n }\n }\n else if(chunk_type == Util.FOURCC('h', 't', 'c', 'b')) {\n Log.d(TAG,\"Found Htc MetaData\");\n sHtcTableOffset = data_offset;\n Log.d(TAG,\"sHtcTableOffset = \" + sHtcTableOffset );\n parseHtcMetaData(fc,data_offset,chunk_size);\n Log.d(TAG,\"Parse Htc MetaData done\");\n offset[0] += chunk_size;\n } else if (chunk_type == Util.FOURCC('_', 'h', 't', 'c')\n || chunk_type == Util.FOURCC('d', 't', 'a', 'h')) {\n Log.d(TAG, \"Found HTC box\");\n offset[0] += 8;\n parseChunk(fc, offset, depth + 1);\n } else {\n offset[0] += chunk_size;\n }\n return true;\n }",
"public int getMaxSpawnedInChunk()\n {\n return 1;\n }",
"public boolean isNewChunk() {\n/* 26 */ return this.newChunk;\n/* */ }",
"public Builder setChunkIndex(int value) {\n\n chunkIndex_ = value;\n onChanged();\n return this;\n }",
"public Builder setChunkIndex(int value) {\n\n chunkIndex_ = value;\n onChanged();\n return this;\n }",
"boolean hasChunkId();",
"void mo54426b(int i, List<DownloadChunk> list);",
"@NotNull\n int getTrustedChunks();",
"void mo54414a(int i, List<DownloadChunk> list);",
"long getChunkSize();",
"long getChunkSize();",
"long getChunkSize();",
"long getChunkSize();",
"edu.usfca.cs.dfs.StorageMessages.StoreChunk getStoreChunk();",
"public void map( Chunk bv ) { }",
"int mo1684a(byte[] bArr, int i, int i2);",
"private int getCol(int index) {\n return index & (chunkSize - 1);\n }",
"int getBlockNumber();",
"int getBlockNumber();",
"public static long getChunks() {\n return chunks;\n }",
"public Vector2i getChunkSize() {\n return new Vector2i(getChunkWidth(), getChunkHeight());\n }",
"public void setChunkNumber(int chunkNumber) {\r\n\t\tthis.chunkNumber = chunkNumber;\r\n\t}",
"private static void blockCoordsToChunkCoords(Vector3i pos) {\n pos.x >>= 4;\n pos.y >>= 4;\n pos.z >>= 4;\n }",
"public void map( Chunk c ) { }",
"public int getNumOfChunks() {\n return numOfChunks_;\n }",
"@Test\n public void testChunkType() {\n final int[] count = new int[255];\n final SctpChunk.Type[] types = SctpChunk.Type.values();\n for (int i = 0; i < types.length; ++i) {\n count[types[i].getType()] = count[types[i].getType()] + 1;\n }\n\n for (int i = 0; i < count.length; ++i) {\n assertThat(\"Found multiple type definitions for Chunk Type \" + i, count[i] < 2, is(true));\n }\n\n }",
"public boolean getChunking () {\n\treturn chunk;\n }",
"edu.usfca.cs.dfs.StorageMessages.StoreChunkLocation getStoreChunkLocation();",
"private void generateNextChunk() {\n \n chunkNumber++;\n \n // generate a chunk filled with content\n List<Object> list = chunkFactory.generateChunk(chunkNumber);\n Vector3f newChunkPosition =\n new Vector3f(nextChunkX, 0f, 0f);\n nextChunkX += P.chunkLength;\n\n for (Object object : list) {\n if (object instanceof Spatial) {\n Spatial spatial = (Spatial) object;\n addToLevel(spatial, spatial.getLocalTranslation().add(newChunkPosition));\n } else if (object instanceof SpotLight) {\n SpotLight light = (SpotLight) object;\n addToLevel(light, light.getPosition().add(newChunkPosition));\n } else if (object instanceof PointLight) {\n PointLight light = (PointLight) object;\n addToLevel(light, light.getPosition().add(newChunkPosition)); \n }\n }\n\n }",
"protected int nextInt(int p_75902_1_) {\n/* 135 */ int var2 = (int)((this.chunkSeed >> 24) % p_75902_1_);\n/* */ \n/* 137 */ if (var2 < 0)\n/* */ {\n/* 139 */ var2 += p_75902_1_;\n/* */ }\n/* */ \n/* 142 */ this.chunkSeed *= (this.chunkSeed * 6364136223846793005L + 1442695040888963407L);\n/* 143 */ this.chunkSeed += this.worldGenSeed;\n/* 144 */ return var2;\n/* */ }",
"private int getIndex2(int val){\n return val/bucket;\n }",
"@Override\r\n\tpublic int getIndexStep() {\n\t\t\r\n\t\treturn 2;\r\n\t}",
"int getSplitIndex();",
"public int getBlockSize()\n/* */ {\n/* 43 */ return this.blockSize;\n/* */ }",
"int sampleOffset();",
"public ChunkType getType();",
"protected int arrayIndex(long windowIndex) {\n return (int) (windowIndex % length());\n }",
"int getTotalBlockNum();",
"void mo54417a(DownloadChunk downloadChunk);",
"public int getChunkSize() {\n return chunkSize;\n }",
"public static void splitFile() throws IOException{\n\t\tPath currentRelativePath = Paths.get(\"\");\n\t\tFile file = new File(currentRelativePath.toAbsolutePath().toString()+\"/\"+fileName);\n\n\t\t//fileChunks are of size windowSize\n\t\tint num = fileSize; \n\t\tint lastByteRead = 0;\n\t\tint start =0;\n\t\tint i= 0; //where we are in bitfield map\n\t\tbyte[] fileChunkArray = new byte[windowSize];\n\t\t//read in the file\n\t\ttry{\n\t\t\tFileInputStream fileInputStream = new FileInputStream(file);\n\t\t\twhile(num > 0){\n\t\t\t\tif (num <= 5){\n\t\t\t\t\twindowSize = num;\n\t\t\t\t}\n\t\t\t\t// byte[] fileChunkArray = new byte[windowSize];\n\t\t\t\t\n\t\t\t\tlastByteRead = fileInputStream.read(fileChunkArray,0,windowSize);\n\t\t\t\t\n\t\t\t\t// start = start +windowSize;\n\t\t\t\t\n\t\t\t\t// String s1 = new String(fileChunkArray);\n\t\t\t\tSystem.out.print(\"the chunkarray length is :\" + fileChunkArray.length);\n\t\t\t\tSystem.out.print(\"the lastbyte read is :\"+ lastByteRead);\n\t\t\t\t// System.out.print(\"the fileChunk array is :\"+ s1);\n\t\t\t\tbitfieldMap.put(lastByteRead,fileChunkArray);\n\t\t\t\ti++;\n\t\t\t\tdynamicName = fileName+ i;\n\t\t\t\tworkingDirectory = System.getProperty(\"user.dir\");\n\t\t\t\tabsoluteFilePath = workingDirectory + File.separator + dynamicName;\n\t\t\t\tnum = num - windowSize; \n\t\t\t\tFileOutputStream newFile = new FileOutputStream(absoluteFilePath);\n\t\t\t\tnewFile.write(fileChunkArray);\n\t\t\t\tnewFile.flush();\n\t\t\t\tnewFile.close();\n\n\t\t\t}\n\t\t\tfileInputStream.close();\t\n\t\t}catch(IOException ioe){\n\t\t\tSystem.out.println(\"Could not split file: \" + ioe);\n\t\t}\n\t}",
"public void map( Chunk cs[] ) { }",
"int getBlockNumbers(int index);",
"private int getImageBufferStartIndex(int trackNumber, FloppyDriveSide side) {\n return BYTES_PER_SECTOR * (SECTORS_PER_TRACK * (trackNumber * 2 + side.ordinal())\n + sectorIndex);\n }",
"int getReadPosition(int index) {\n/* 170 */ return index - this.origPos + this.readerIndex;\n/* */ }",
"private int getIndex(int val){\n return val%bucket;\n }",
"@Test\n public void chunkPosShouldBePlayerPosDividedByChunkSizeWherePlayerAt1By1() {\n final int sideLengthOfBlock = 10;\n final int rowAmountInChunk = 11;\n\n MatcherAssert.assertThat(\n this.targetCompass(\n sideLengthOfBlock,\n rowAmountInChunk,\n new Point(1, 1)\n ).chunkPos(),\n CoreMatchers.equalTo(new Point(0, 0))\n );\n }",
"private int key(int chunkX, int chunkY, int chunkZ) {\n if (chunkX >= 2048 || chunkX < 0 || chunkY >= 2048 || chunkY < 0 || chunkZ >= 4 || chunkZ < 0) {\n throw new IllegalArgumentException(\"ChunkX and ChunkY must range from 0-2047 inclusive (given x:\" + chunkX + \" and y: \" + chunkY + \"), and chunkZ must range from 0-3 inclusive (Given z: \" + chunkZ + \")\");\n }\n return (chunkZ << 30) | (chunkX << 15) | (chunkY);\n }",
"protected int realIndex(int index) {\n return index & (buf.length -1);\n }",
"private int getPmidIdx() {\n return this.colStartOffset + 2;\n }",
"protected int populateBuffer()\n {\n interlock.beginReading();\n // System.out.println(\"populateBuffer: 2\");\n return byteBuffer.limit();\n }"
] |
[
"0.785442",
"0.785442",
"0.73773885",
"0.73773885",
"0.73773885",
"0.73773885",
"0.73773885",
"0.73773885",
"0.6741172",
"0.6741172",
"0.66893995",
"0.66893995",
"0.6663846",
"0.65638685",
"0.65638685",
"0.65638685",
"0.65638685",
"0.65638685",
"0.65638685",
"0.6424548",
"0.6424548",
"0.6424548",
"0.6424548",
"0.6424548",
"0.6424548",
"0.6410397",
"0.6400465",
"0.6379588",
"0.6373404",
"0.6315273",
"0.6189685",
"0.6189685",
"0.61568904",
"0.61450183",
"0.6116205",
"0.600113",
"0.592988",
"0.5924839",
"0.590925",
"0.5907171",
"0.5883504",
"0.5868158",
"0.58488417",
"0.5830536",
"0.5826126",
"0.58231753",
"0.57997054",
"0.57831234",
"0.5773982",
"0.57738006",
"0.5764445",
"0.57457185",
"0.574476",
"0.5730925",
"0.57199186",
"0.5672394",
"0.5635696",
"0.56262887",
"0.56262887",
"0.56262887",
"0.56262887",
"0.5625486",
"0.56026787",
"0.55572665",
"0.5555952",
"0.55468774",
"0.55468774",
"0.5537924",
"0.5523598",
"0.55199176",
"0.55137247",
"0.55008006",
"0.5499361",
"0.5496236",
"0.54885995",
"0.54849046",
"0.54820436",
"0.54716635",
"0.54495907",
"0.544209",
"0.5437883",
"0.5429143",
"0.5428823",
"0.5428345",
"0.54230964",
"0.5416858",
"0.54106504",
"0.5405122",
"0.54008263",
"0.5391839",
"0.5382947",
"0.53820837",
"0.5372417",
"0.5371448",
"0.53595173",
"0.53501457",
"0.53402644",
"0.53377634",
"0.53344655"
] |
0.66030824
|
13
|
MD5 of the file content bytes fileHash = 1;
|
@java.lang.Override
public com.google.protobuf.ByteString getFileHash() {
return fileHash_;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private String getFileMd5Checksum(String filename){\n\t\ttry {\n\t\t\tbyte[] fileBytes = Files.readAllBytes(Paths.get(FILES_ROOT + filename));\n\t\t\tbyte[] fileHash = MessageDigest.getInstance(\"MD5\").digest(fileBytes);\n\n\t\t\treturn DatatypeConverter.printHexBinary(fileHash);\n\t\t} catch (IOException e) {\n\t\t\t// TODO: Handle file doesn't exist\n\t\t\treturn \"\";\n\t\t} catch (Exception e) {\n\t\t\treturn \"\";\n\t\t}\n\t}",
"public static String computeMD5FileHash (File file) throws Exception {\n byte[] b = createFileChecksum(file);\n String result = \"\";\n\n for (int i=0; i < b.length; i++) {\n result += Integer.toString( ( b[i] & 0xff ) + 0x100, 16).substring( 1 );\n }\n return result;\n }",
"private static String getMD5Checksum(String filename) throws Exception {\r\n\t\tbyte[] b = createChecksum(filename);\r\n\t\tStringBuilder result = new StringBuilder();\r\n\t\tfor (byte v : b) {\r\n\t\t\tresult.append(Integer.toString((v & 0xff) + 0x100, 16).substring(1));\r\n\t\t}\r\n\t\treturn result.toString();\r\n\t}",
"private static String getFileChecksum(File file) throws IOException, NoSuchAlgorithmException {\n FileInputStream fis = new FileInputStream(file);\n\n // Use MD5 algorithm\n MessageDigest digest = MessageDigest.getInstance(\"MD5\");\n\n // Create byte array to read data in chunks\n byte[] byteArray = new byte[1024];\n int bytesCount = 0;\n\n // Read file data and update in message digest\n while ((bytesCount = fis.read(byteArray)) != -1) {\n digest.update(byteArray, 0, bytesCount);\n }\n ;\n\n // close the stream; We don't need it now.\n fis.close();\n\n // Get the hash's bytes\n byte[] bytes = digest.digest();\n\n // This bytes[] has bytes in decimal format;\n // Convert it to hexadecimal format\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < bytes.length; i++) {\n sb.append(Integer.toString((bytes[i] & 0xff) + 0x100, 16).substring(1));\n }\n\n // return complete hash\n return sb.toString();\n }",
"public static String getFileMD5(File file) {\n\t\tMessageDigest messageDigest = null;\n\t\tFileInputStream fileInStream = null;\n\t\tbyte buffer[] = new byte[1024];\n\t\tint length = -1;\n\t\ttry {\n\t\t\tmessageDigest = MessageDigest.getInstance(\"MD5\");\n\t\t\tfileInStream = new FileInputStream(file);\n\t\t\twhile ((length = fileInStream.read(buffer, 0, 1024)) != -1) {\n\t\t\t\tmessageDigest.update(buffer, 0, length);\n\t\t\t}\n\t\t\tfileInStream.close();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t\tBigInteger bigInt = new BigInteger(1, messageDigest.digest());\n\t\treturn bigInt.toString(16);\n\t}",
"com.google.protobuf.ByteString getFileHash();",
"com.google.protobuf.ByteString getFileHash();",
"public static String fileMD5(File file) {\n\t\tFileInputStream fis = null;\n\t\tString md5 = null;\n\t\ttry {\n\t\t\tfis = new FileInputStream(file);\n\t\t\tmd5 = org.apache.commons.codec.digest.DigestUtils.md5Hex(fis);\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"!!!\", e);\n\t\t} finally {\n\t\t\tCloseUtils.close(fis);\n\t\t}\n\t\treturn md5;\n\t}",
"public static String md5(String inputFile) {\r\n String md5 = null;\r\n logger.debug(\"Start to calculate hashcode (SHA1) for {}\", inputFile);\r\n try (DigestInputStream digestIn = new DigestInputStream(new FileInputStream(inputFile),\r\n MessageDigest.getInstance(\"SHA1\"))) {\r\n byte[] buffer = new byte[1024 * 1024];\r\n while (digestIn.read(buffer) > 0) {\r\n // do nothing\r\n }\r\n md5 = toHexString(digestIn.getMessageDigest().digest());\r\n } catch (NoSuchAlgorithmException | IOException e) {\r\n logger.warn(\"Fail to md5 for {} ({})\", inputFile, e.getMessage());\r\n }\r\n logger.debug(\"End to calculate hashcode (SHA1) for {}, {}\", inputFile, md5);\r\n return md5;\r\n }",
"static String generateChecksum(String filename) {\n\n try {\n // Instantiating file and Hashing Algorithm.\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n FileInputStream file = new FileInputStream(filename);\n\n // Generation of checksum.\n byte[] dataBytes = new byte[1024];\n int nread;\n\n while ((nread = file.read(dataBytes)) != -1) {\n md.update(dataBytes, 0, nread);\n }\n\n byte[] mdbytes = md.digest();\n\n // Convert byte to hex.\n StringBuilder hexString = new StringBuilder();\n\n for (byte mdbyte : mdbytes) {\n String hex = Integer.toHexString(0xff & mdbyte);\n if (hex.length() == 1) hexString.append('0');\n hexString.append(hex);\n }\n\n // Return checksum as completed string.\n return hexString.toString();\n\n } catch (NoSuchAlgorithmException | IOException e) {\n e.printStackTrace();\n }\n return null;\n }",
"public static String getFileMD5(File file) {\n if (!file.isFile()) {\n return null;\n }\n MessageDigest digest = null;\n FileInputStream in = null;\n byte buffer[] = new byte[1024];\n int len;\n try {\n digest = MessageDigest.getInstance(\"MD5\");\n in = new FileInputStream(file);\n while ((len = in.read(buffer, 0, 1024)) != -1) {\n digest.update(buffer, 0, len);\n }\n in.close();\n } catch (Exception e) {\n e.printStackTrace();\n return null;\n }\n BigInteger bigInt = new BigInteger(1, digest.digest());\n String md5 = bigInt.toString(16);\n while (md5.length() < 32)\n md5 = \"0\" + md5;\n return md5;\n }",
"private static String getFileChecksum(MessageDigest digest, File file) throws IOException\n\t {\n\t FileInputStream fis = new FileInputStream(file);\n\t \n\t //Create byte array to read data in chunks\n\t byte[] byteArray = new byte[1024];\n\t int bytesCount = 0;\n\t \n\t //Read file data and update in message digest\n\t while ((bytesCount = fis.read(byteArray)) != -1) {\n\t digest.update(byteArray, 0, bytesCount);\n\t };\n\t \n\t //close the stream; We don't need it now.\n\t fis.close();\n\t \n\t //Get the hash's bytes\n\t byte[] bytes = digest.digest();\n\t \n\t //This bytes[] has bytes in decimal format;\n\t //Convert it to hexadecimal format\n\t StringBuilder sb = new StringBuilder();\n\t for(int i=0; i< bytes.length ;i++)\n\t {\n\t sb.append(Integer.toString((bytes[i] & 0xff) + 0x100, 16).substring(1));\n\t }\n\t \n\t //return complete hash\n\t return sb.toString();\n\t }",
"public String getMD5() {\n return hash;\n }",
"private static String getFileChecksum(MessageDigest digest, File file) throws IOException {\n FileInputStream fis = new FileInputStream(file);\n\n //Create byte array to read data in chunks\n byte[] byteArray = new byte[1024];\n int bytesCount = 0;\n\n //Read file data and update in message digest\n while ((bytesCount = fis.read(byteArray)) != -1) {\n digest.update(byteArray, 0, bytesCount);\n }\n\n //close the stream; We don't need it now.\n fis.close();\n\n //Get the hash's bytes\n byte[] bytes = digest.digest();\n\n //This bytes[] has bytes in decimal format;\n //Convert it to hexadecimal format\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < bytes.length; i++) {\n sb.append(Integer.toString((bytes[i] & 0xff) + 0x100, 16).substring(1));\n }\n\n //return complete hash\n return sb.toString();\n }",
"public static byte[] createCheckSum(String filename) throws Exception {\n InputStream fis = new FileInputStream(filename);\n\n byte[] buffer = new byte[1024];\n MessageDigest complete = MessageDigest.getInstance(\"MD5\");\n int numRead;\n\n do {\n numRead = fis.read(buffer);\n if (numRead > 0) {\n complete.update(buffer, 0, numRead);\n }\n } while (numRead != -1);\n\n fis.close();\n // Return MD5 Hash\n return complete.digest();\n }",
"public static String getFileMD5(String path) {\n\t\treturn getFileMD5(new File(path));\n\t}",
"public static String fileMD5(String filePath) {\n\t\tFileInputStream fis = null;\n\t\tString md5 = null;\n\t\ttry {\n\t\t\tfis = new FileInputStream(new File(filePath));\n\t\t\tmd5 = org.apache.commons.codec.digest.DigestUtils.md5Hex(fis);\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"!!!\", e);\n\t\t} finally {\n\t\t\tCloseUtils.close(fis);\n\t\t}\n\t\treturn md5;\n\t}",
"public static String computeMD5(String filename) throws Exception {\r\n byte[] b = createGenericChecksum(filename, 0);\r\n String result = \"\";\r\n for (int i = 0; i < b.length; i++) {\r\n result += Integer.toString((b[i] & 0xff) + 0x100, 16).substring(1);\r\n }\r\n return result;\r\n }",
"public static String getMD5(File file) throws IOException, NoSuchAlgorithmException {\n return getChecksum(file, MessageDigest.getInstance(\"MD5\"));\n }",
"protected void md5file(File file) throws IOException {\n if (file.isDirectory()) {\n throw new IllegalArgumentException(\"Only files can be check summed !\");\n }\n\n // calculating the output\n byte[] md5 = DigestUtils.md5(new FileInputStream(file));\n\n // getting the output file\n File outputFile = new File(file.getAbsolutePath() + \".md5\");\n Files.write(Paths.get(outputFile.getAbsolutePath()), md5);\n\n }",
"String saveData(MultipartFile md5File) throws IOException;",
"byte[] getFile(String sha) throws Exception;",
"@java.lang.Override\n public com.google.protobuf.ByteString getFileHash() {\n return fileHash_;\n }",
"@java.lang.Override\n public com.google.protobuf.ByteString getFileHash() {\n return fileHash_;\n }",
"byte[] getDigest();",
"private String fileChecksum(File tmpFile, ITaskMonitor monitor) {\n InputStream is = null;\n try {\n is = new FileInputStream(tmpFile);\n MessageDigest digester = getChecksumType().getMessageDigest();\n byte[] buf = new byte[65536];\n int n;\n while ((n = is.read(buf)) >= 0) {\n if (n > 0) {\n digester.update(buf, 0, n);\n }\n }\n return getDigestChecksum(digester);\n } catch (FileNotFoundException e) {\n monitor.setResult(\"File not found: %1$s\", e.getMessage());\n } catch (Exception e) {\n monitor.setResult(e.getMessage());\n } finally {\n if (is != null) {\n try {\n is.close();\n } catch (IOException e) {\n }\n }\n }\n return \"\";\n }",
"public static String getFileChecksum(MessageDigest digest, String filePath) throws IOException {\n\t\tFileInputStream fis = new FileInputStream(filePath);\n\n\t\t// Create byte array to read data in chunks\n\t\tbyte[] byteArray = new byte[1024];\n\t\tint bytesCount = 0;\n\n\t\t// Read file data and update in message digest\n\t\twhile ((bytesCount = fis.read(byteArray)) != -1) {\n\t\t\tdigest.update(byteArray, 0, bytesCount);\n\t\t}\n\t\t;\n\n\t\t// close the stream; We don't need it now.\n\t\tfis.close();\n\n\t\t// Get the hash's bytes\n\t\tbyte[] bytes = digest.digest();\n\n\t\t// This bytes[] has bytes in decimal format;\n\t\t// Convert it to hexadecimal format\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor (int i = 0; i < bytes.length; i++) {\n\t\t\tsb.append(Integer.toString((bytes[i] & 0xff) + 0x100, 16).substring(1));\n\t\t}\n\n\t\t// return complete hash\n\t\treturn sb.toString();\n\t}",
"public static byte[] encryptMD5File(final File file) {\n if (file == null) return null;\n FileInputStream fis = null;\n DigestInputStream digestInputStream;\n try {\n fis = new FileInputStream(file);\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n digestInputStream = new DigestInputStream(fis, md);\n byte[] buffer = new byte[256 * 1024];\n while (true) {\n if (!(digestInputStream.read(buffer) > 0)) break;\n }\n md = digestInputStream.getMessageDigest();\n return md.digest();\n } catch (NoSuchAlgorithmException | IOException e) {\n e.printStackTrace();\n return null;\n } finally {\n try {\n if (fis != null) {\n fis.close();\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }",
"byte[] digest();",
"@Test\n public void fileMd5Test() {\n // TODO: test fileMd5\n }",
"public String getMd5Hash() {\n return md5Hash;\n }",
"public String getMD5() {\n return m_module.getConfiguration().getMD5();\n }",
"public static String CreateMD5(File file) {\n String base64Image = \"\";\n try (FileInputStream imageInFile = new FileInputStream(file)) {\n // Reading a Image file from file system\n byte imageData[] = new byte[(int) file.length()];\n imageInFile.read(imageData);\n base64Image = Base64.getEncoder().encodeToString(imageData);\n } catch (FileNotFoundException e) {\n DialogWindow.ShowErrorPane(\"Image could not be found.\", \"Error Image Missing\");\n// System.out.println(\"Image not found\" + e);\n } catch (IOException ioe) {\n DialogWindow.ShowErrorPane(\"Error while the image was being converted.\", \"Error Converting Image\");\n// System.out.println(\"Exception while reading the Image \" + ioe);\n }\n return base64Image;\n }",
"public BoxFileUploadRequestObject setContentMD5(String sha1) {\n getRequestExtras().addHeader(Constants.CONTENT_MD5, sha1);\n return this;\n }",
"public static byte[] computeMD5Hash(InputStream is) throws NoSuchAlgorithmException, IOException {\n BufferedInputStream bis = new BufferedInputStream(is);\n try {\n MessageDigest messageDigest = MessageDigest.getInstance(\"MD5\");\n byte[] buffer = new byte[16384];\n int bytesRead = -1;\n while ((bytesRead = bis.read(buffer, 0, buffer.length)) != -1) {\n messageDigest.update(buffer, 0, bytesRead);\n }\n return messageDigest.digest();\n } finally {\n try {\n bis.close();\n } catch (Exception e) {\n System.err.println(\"Unable to close input stream of hash candidate: \" + e);\n }\n }\n }",
"public byte[] getContentMd5() {\n return CoreUtils.clone(this.contentMd5);\n }",
"private static String md5(byte[] b) {\n try {\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n md.reset();\n md.update(b);\n byte[] digest = md.digest();\n StringBuffer sb = new StringBuffer();\n for (int i=0; i<digest.length; i++) {\n String a = Integer.toHexString(0xff & digest[i]);\n if (a.length() == 1) a = \"0\" + a;\n sb.append(a);\n }\n return sb.toString();\n }\n catch (NoSuchAlgorithmException e) { writeLog(e); }\n return null;\n }",
"private int getFileContentHashCode(Path filePath) throws IOException {\n return Arrays.hashCode(Files.readAllBytes(filePath));\n }",
"public static void md5(File outputFile) throws ConverterException {\r\n\t\ttry {\r\n\t\t\tFileInputStream fileInputStream = new FileInputStream(outputFile);\r\n\t\t\tBufferedInputStream bufferedInputStream = new BufferedInputStream(fileInputStream);\r\n\t\t\t\r\n\t\t\tbyte[] datei = bufferedInputStream.readAllBytes();\r\n\t\t\tMessageDigest md = MessageDigest.getInstance(\"MD5\");\r\n\t\t\tbyte[] md5 = md.digest(datei);\r\n\t\t\tfor (int i = 0; i < md5.length; i++) {\r\n\t\t\t\tSystem.out.print(String.format(\"%02X\", md5[i]));\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\" File Length: \" + outputFile.length());\r\n\t\t\tSystem.out.println();\r\n\t\t\t\r\n\t\t\tbufferedInputStream.close();\r\n\t\t\tfileInputStream.close();\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\tthrow new ConverterException(\"Datei kann nicht gefunden werden\");\r\n\t\t} catch (IOException e) {\r\n\t\t\tthrow new ConverterException(\"Beim Lesen der Datei ist ein Fehler aufgetreten\");\r\n\t\t} catch (NoSuchAlgorithmException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"private String calculateCheckSum(File file2) {\n\t\tStringBuffer sb = new StringBuffer(\"\");\n\t\ttry {\n\t\t\tMessageDigest messageDigest = MessageDigest.getInstance(\"SHA1\");\n\n\t\t\tFileInputStream finput = new FileInputStream(file2);\n\t\t\tbyte[] dataBytes = new byte[1024];\n\n\t\t\tint bytesRead = 0;\n\n\t\t\twhile ((bytesRead = finput.read(dataBytes)) != -1) {\n\t\t\t\tmessageDigest.update(dataBytes, 0, bytesRead);\n\t\t\t}\n\n\t\t\tbyte[] digestBytes = messageDigest.digest();\n\n\t\t\tfor (int i = 0; i < digestBytes.length; i++) {\n\t\t\t\tsb.append(Integer.toString((digestBytes[i] & 0xff) + 0x100, 16).substring(1));\n\t\t\t}\n\t\t\tSystem.out.println(\"file check sum value is \" + sb.toString());\n\t\t\tfinput.close();\n\t\t} catch (Exception ex) {\n\t\t\t// TODO: handle exception\n\t\t\tLogger.getLogger(FileTransferClient.class.getName()).log(Level.SEVERE, null, ex);\n\t\t}\n\n\t\treturn sb.toString();\n\t}",
"public static byte[] computeMD5Hash(byte[] data) throws NoSuchAlgorithmException, IOException {\n return computeMD5Hash(new ByteArrayInputStream(data));\n }",
"public byte[] getMD5() {\n return MD5;\n }",
"public Digest (File appdir)\n throws IOException\n {\n // parse and validate our digest file contents\n StringBuffer data = new StringBuffer();\n File dfile = new File(appdir, DIGEST_FILE);\n List pairs = ConfigUtil.parsePairs(dfile, false);\n for (Iterator iter = pairs.iterator(); iter.hasNext(); ) {\n String[] pair = (String[])iter.next();\n if (pair[0].equals(DIGEST_FILE)) {\n _metaDigest = pair[1];\n break;\n }\n _digests.put(pair[0], pair[1]);\n note(data, pair[0], pair[1]);\n }\n \n // we've reached the end, validate our contents\n MessageDigest md = getMessageDigest();\n byte[] contents = data.toString().getBytes(\"UTF-8\");\n String md5 = StringUtil.hexlate(md.digest(contents));\n if (!md5.equals(_metaDigest)) {\n String err = MessageUtil.tcompose(\n \"m.invalid_digest_file\", _metaDigest, md5);\n throw new IOException(err);\n }\n }",
"public byte[] MD5(File archivo) throws OpenSSL_Exception {\n\t\tString[] comando = new String[]{ \"openssl\" , \"dgst\" , \"-md5\" , archivo.getAbsolutePath()};\n\t\tProcess terminal = null;\n\t\ttry { terminal = Runtime.getRuntime().exec(comando); } catch (IOException e) { \n\t\t\tthrow new OpenSSL_Exception(\"No se puede ejecutar el comando en el terminal\");\n\t\t}\n\t\t// --- > Leemos la salida error del comando\n\t\tBufferedReader errors = new BufferedReader(new InputStreamReader(terminal.getErrorStream()));\n\t\tString linea = \"\" , error = \"\" ;\n\t\ttry { while( (linea = errors.readLine()) != null) error += linea + \"\\n\"; } catch (IOException e) {\n\t\t\tthrow new OpenSSL_Exception(\"No se puede leer el error que ha producido el comando\");\n\t\t}\n\t\t// --- > Si hubo salida error lanzamos al excepcion con el error\n\t\tif(!error.equals(\"\"))throw new OpenSSL_Exception(\"Error al ejecutar el comando:\\n\" + error );\n\t\t// --- > Leemos el resultado obtenido\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(terminal.getInputStream()));\n\t\tString res = \"\";\n\t\ttry { while((linea = in.readLine()) != null) res += linea; } catch (IOException e) {\n\t\t\tthrow new OpenSSL_Exception(\"No se puede leer el resultado que ha producido el comando\");\n\t\t}\n\t\treturn res.substring(res.lastIndexOf(\" \") + 1 ).getBytes();\n\t}",
"public byte[] getHash()\n\t{\n\t\treturn md5.getHash();\n\t}",
"@Test\n public void md5Checksum() throws NoSuchAlgorithmException {\n String string = Utils.md5Checksum(\"abcde fghijk lmn op\");\n Assert.assertEquals(\"1580420c86bbc3b356f6c40d46b53fc8\", string);\n }",
"public static String md5(String pass)\n {\n try{\n MessageDigest md=MessageDigest.getInstance(\"MD5\");\n byte[] messageDigest=md.digest(pass.getBytes());\n BigInteger num=new BigInteger(1,messageDigest);\n String hashText=num.toString(16);\n while(hashText.length()<32)\n {\n hashText=\"0\"+hashText;\n } \n return hashText; \n }\n catch(Exception e)\n { \n throw new RuntimeException(e);\n } \n }",
"public static void main(String[] args) throws NoSuchAlgorithmException, FileNotFoundException, IOException {\n \r\n String hash = \"F5D080D4F4E185DECA8A8B24F72408D9\";\r\n String [] keys = {\"9A1BA7F38A3E8D8F9DDD55972868CB3F\",\"17185CEF199E1C89804EDEE9DCDD1B90\",\"F5D080D4F4E185DECA8A8B24F72408D9\"};\r\n String password = \"NoSuchPassword\";\r\n File file = null;\r\n JFileChooser ff = new JFileChooser();\r\n int a = ff.showOpenDialog(null);\r\n if(a == JFileChooser.APPROVE_OPTION){\r\n try {\r\n file = ff.getSelectedFile();\r\n JOptionPane.showMessageDialog(ff, a);\r\n \r\n } catch (Exception ex) {\r\n ex.printStackTrace();\r\n } finally {\r\n System.out.println(file.getPath());\r\n }\r\n } \r\n BufferedReader fr = null;\r\n fr = new BufferedReader(new FileReader(file.getPath()));\r\n String line = null;\r\n int i = 0; \r\n //This is the funtion that Java implement in java.security.MessageDigest\r\n MessageDigest md5 = MessageDigest.getInstance(\"MD5\");\r\n while((line = fr.readLine()) != null){\r\n System.out.println(line);\r\n md5.update(line.getBytes());\r\n byte [] digests = md5.digest();\r\n String hashs = DatatypeConverter.printHexBinary(digests).toUpperCase();\r\n if(keys[i].equals(hashs)){\r\n System.out.println(\"CORRECT!\\nThe hash created is the same as the hash saved \");\r\n }\r\n else{\r\n System.out.println(\"ERROR!\\nThere was a mistake, the hash create doesn't mach the hash saved\");\r\n }\r\n i++;\r\n } \r\n fr.close();\r\n /**In conclusion we can use the MD5 for digest a words and then same them\r\n * is a DataBase, this with the function that if the DB is committed the\r\n * passwords will not be there\r\n */\r\n }",
"public ShareFileHttpHeaders setContentMd5(byte[] contentMd5) {\n this.contentMd5 = CoreUtils.clone(contentMd5);\n return this;\n }",
"public String getMD5ForGame(String gameId) {\n return \"TODO\";\n }",
"public static String md5(String message) {\n String digest = null;\n try {\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n byte[] hash = md.digest(message.getBytes(\"UTF-8\"));\n\n //converting byte array to HexadecimalString\n StringBuilder sb = new StringBuilder(2 * hash.length);\n for (byte b : hash) {\n sb.append(String.format(\"%02x\", b & 0xff));\n }\n digest = sb.toString();\n } catch (UnsupportedEncodingException ex) {\n log.error(\"UnsupportedEncodingException\",ex);\n } catch (NoSuchAlgorithmException ex) {\n log.error(\"NoSuchAlgorithmException\",ex);\n }\n\n return digest;\n }",
"protected String getFileETag(File file) {\n\t\tFileInputStream is = null;\n\t\ttry {\n\t\t\tis = new FileInputStream(file);\n\t\t\treturn \"\\\"\" + DigestUtils.md5Hex(is) + \"\\\"\";\n\t\t} catch (IOException e) {\n\t\t\treturn \"\";\n\t\t} finally {\n\t\t\tcloseQuietly(is);\n\t\t}\n\t}",
"private static byte[] m14295fl(String str) {\n try {\n MessageDigest instance = MessageDigest.getInstance(\"MD5\");\n if (instance == null) {\n return str.getBytes();\n }\n instance.update(str.getBytes());\n return instance.digest();\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n return str.getBytes();\n }\n }",
"protected String getMd5Hash(String token) {\n\n MessageDigest m;\n\t\ttry {\n\t\t\tm = MessageDigest.getInstance(\"MD5\");\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\tthrow new IllegalStateException(e);\n\t\t}\n m.update(token.getBytes());\n \n byte[] digest = m.digest();\n BigInteger bigInt = new BigInteger(1,digest);\n String hashtext = bigInt.toString(16);\n \n // Now we need to zero pad it if you actually want the full 32 chars.\n while(hashtext.length() < 32 ){\n hashtext = \"0\"+hashtext;\n }\n \n return hashtext;\n\t}",
"public static String toSHA1(String filename){\n\t\tMessageDigest md=null;\n\t\ttry{\n\t\t\tmd = MessageDigest.getInstance(\"SHA-1\");\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\ttry{\n\t\t\tFileInputStream in = new FileInputStream(filename);\n\t\t\tBufferedInputStream buffIn = new BufferedInputStream(in);\n\t\t\tDigestInputStream dis = new DigestInputStream(buffIn, md);\n\t\t\t\n\t\t\tFile f = new File(filename);\n\t\t\tLong fileSize = f.length();\n\t\t\t\n\t\t\tString blob = \"blob \" + fileSize.toString() + '\\0';\n\t\t\tmd.update(blob.getBytes());\n\t\t\t\t\t\t\n\t\t\t// read the file and update the hash calculation\n while (dis.read() != -1);\n\n // get the hash value as byte array\n byte[] hash = md.digest();\n\n return byteArray2Hex(hash);\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\t\n\t\treturn \"\";\n\t}",
"public static byte[] encryptMD5File(final String filePath) {\n File file = isSpace(filePath) ? null : new File(filePath);\n return encryptMD5File(file);\n }",
"public boolean IsFileMd5Equeal(UploadReport report) {\r\n\t\tString filename = this.conf.getFtpMountDirectory() + \"/DATA/\" + report.getFilename();\r\n\t\tString md5value = MD5Util.getFileMD5(new File(filename));\r\n\t\tFile file = new File(filename);\r\n\t\tif (file.exists()) {\r\n\t\t\tif (md5value.compareTo(report.getMd5value()) == 0) {\r\n\t\t\t\treturn true;\r\n\t\t\t} else {\r\n\t\t\t\tLogUtils.logger.error(\"Error happened when Caculate MD5 value, Original value: \" + report.getMd5value()\r\n\t\t\t\t\t\t+ \", New value : \" + md5value);\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tLogUtils.logger.error(\"Error happened when Caculate MD5 value, File: \" + filename + \" does not exist! \");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"public static String mySHA(String file) {\n\t\ttry {\n\t\t\t// java.security.MessageDigest digest = null;\n\t\t\t// digest = java.security.MessageDigest.getInstance(\"SHA-1\");\n\t\t\t// digest.reset();\n\t\t\t// digest.update(x.getBytes(\"UTF-8\"));\n\t\t\t// digest.update(x.getBytes(\"UTF-8\"));\n\t\t\t// return digest.digest();\n\t\t\tMessageDigest sha1 = MessageDigest.getInstance(\"SHA1\");\n\t\t\tFileInputStream fis = new FileInputStream(file);\n\n\t\t\tbyte[] data = new byte[1024];\n\t\t\tint read = 0;\n\t\t\twhile ((read = fis.read(data)) != -1) {\n\t\t\t\tsha1.update(data, 0, read);\n\t\t\t}\n\t\t\t;\n\t\t\tbyte[] hashBytes = sha1.digest();\n\n\t\t\tStringBuffer sb = new StringBuffer();\n\t\t\tfor (int i = 0; i < hashBytes.length; i++) {\n\t\t\t\tsb.append(Integer.toString((hashBytes[i] & 0xff) + 0x100, 16).substring(1));\n\t\t\t}\n\n\t\t\tString fileHash = sb.toString();\n\t\t\treturn fileHash;\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(e);\n\t\t\tString s = \"-1\";\n\t\t\treturn s;\n\t\t}\n\t}",
"public static String computeSHA(byte[] filebytes) throws NoSuchAlgorithmException {\r\n\t\tMessageDigest messageDigest = MessageDigest.getInstance(\"SHA-1\");\r\n\t\tbyte[] hash = messageDigest.digest(filebytes);\r\n\t\t\r\n\t\tFormatter formatter = new Formatter();\r\n\t\t\r\n\t\tfor (byte b : hash) {\r\n\t\t\tformatter.format(\"%02x\", b);\r\n\t\t}\r\n\t\t\r\n\t\treturn formatter.toString();\r\n\t}",
"public String getMD5Checksum(String pid, String dsName) throws FedoraException, IOException {\r\n try {\r\n return getDatastreamProperty(pid, dsName, DatastreamProfile.DatastreamProperty.DS_CHECKSUM);\r\n } catch (XPathExpressionException ex) {\r\n throw new FedoraException(ex);\r\n } catch (SAXException ex) {\r\n throw new FedoraException(ex);\r\n } catch (ParserConfigurationException ex) {\r\n throw new FedoraException(ex);\r\n }\r\n }",
"public String getHashsum(String file_name) {\n\t\t//\n\t\t// query database\n\t\t//\n\t\tCursor cursor = m_db.query(FILE_TABLE_NAME,\n\t\t\t\tnew String[] { FILE_FIELD_HASH_SUM }, FILE_FIELD_PATH + \"=?\",\n\t\t\t\tnew String[] { file_name }, null, null, null);\n\n\t\t//\n\t\t// get first entry of result set\n\t\t//\n\t\tString result = getFirstEntryOfResultSet(cursor);\n\n\t\t//\n\t\t// close cursor\n\t\t//\n\t\tcursor.close();\n\n\t\t//\n\t\t// done\n\t\t//\n\t\treturn result;\n\n\t}",
"java.lang.String getChecksum();",
"private static java.security.MessageDigest f() {\n /*\n r0 = \"MD5\";\n r1 = j;\n r0 = r0.equals(r1);\n if (r0 == 0) goto L_0x003a;\n L_0x000a:\n r0 = java.security.Security.getProviders();\n r1 = r0.length;\n r2 = 0;\n L_0x0010:\n if (r2 >= r1) goto L_0x003a;\n L_0x0012:\n r3 = r0[r2];\n r3 = r3.getServices();\n r3 = r3.iterator();\n L_0x001c:\n r4 = r3.hasNext();\n if (r4 == 0) goto L_0x0037;\n L_0x0022:\n r4 = r3.next();\n r4 = (java.security.Provider.Service) r4;\n r4 = r4.getAlgorithm();\n j = r4;\n r4 = j;\t Catch:{ NoSuchAlgorithmException -> 0x001c }\n r4 = java.security.MessageDigest.getInstance(r4);\t Catch:{ NoSuchAlgorithmException -> 0x001c }\n if (r4 == 0) goto L_0x001c;\n L_0x0036:\n return r4;\n L_0x0037:\n r2 = r2 + 1;\n goto L_0x0010;\n L_0x003a:\n r0 = 0;\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.koushikdutta.async.util.FileCache.f():java.security.MessageDigest\");\n }",
"public String getHashString()\n\t{\n\t\treturn md5.getHashString();\n\t}",
"public Builder setFileHash(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n fileHash_ = value;\n onChanged();\n return this;\n }",
"public Builder setFileHash(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n fileHash_ = value;\n onChanged();\n return this;\n }",
"public static String createMd5(String value)\r\n\t{ \r\n\t\ttry \r\n\t\t{\r\n\t\t\tMessageDigest md = MessageDigest.getInstance(\"MD5\");\t\t\t\r\n\t\t\tbyte[] hashInBytes = md.digest(value.getBytes(StandardCharsets.UTF_8));\r\n\t\t\tStringBuilder sb = new StringBuilder();\r\n\t for (byte b : hashInBytes) \r\n\t {\r\n\t sb.append(String.format(\"%02x\", b));\r\n\t }\r\n\t return sb.toString();\r\n\t\t}\r\n\t\tcatch(Exception ex)\r\n\t\t{\r\n\t\t\t\r\n\t\t}\r\n\t\treturn \"\";\r\n\t}",
"public static String hash(File remoteFsRoot) {\n logger.config(\"hash() invoked\");\n\n StringBuilder buf = new StringBuilder();\n try {\n buf.append(remoteFsRoot.getCanonicalPath()).append('\\n');\n } catch (IOException e) {\n logger.log(Level.FINER, \"hash() IOException - may be normal?\", e);\n buf.append(remoteFsRoot.getAbsolutePath()).append('\\n');\n }\n try {\n for (NetworkInterface ni : Collections.list(NetworkInterface.getNetworkInterfaces())) {\n for (InetAddress ia : Collections.list(ni.getInetAddresses())) {\n if (ia instanceof Inet4Address) {\n buf.append(ia.getHostAddress()).append('\\n');\n } else if (ia instanceof Inet6Address) {\n buf.append(ia.getHostAddress()).append('\\n');\n }\n }\n byte[] hardwareAddress = ni.getHardwareAddress();\n if (hardwareAddress != null) {\n buf.append(Arrays.toString(hardwareAddress));\n }\n }\n } catch (SocketException e) {\n // oh well we tried\n logger.log(Level.FINEST, \"hash() SocketException - 'oh well we tried'\", e);\n }\n return DigestUtils.md5Hex(buf.toString()).substring(0, 8);\n }",
"public static String getMD5(final File file) {\n if (file == null || !file.exists()) {\n return null;\n }\n\n FileInputStream fin = null;\n try {\n fin = new FileInputStream(file);\n String md5 = getMD5(fin);\n return md5;\n } catch (Exception e) {\n return null;\n } finally {\n closeQuietly(fin);\n }\n }",
"public static String getMd5(String input) {\n try {\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n\n byte[] messageDigest = md.digest(input.getBytes());\n\n BigInteger no = new BigInteger(1, messageDigest);\n\n String hashtext = no.toString(16);\n while (hashtext.length() < 32) {\n hashtext = \"0\" + hashtext;\n }\n return hashtext;\n } catch (NoSuchAlgorithmException e) {\n throw new RuntimeException(e);\n }\n }",
"public String getMD5(String txt){\n String md5output;\n md5output = txt;\n try {\n MessageDigest m = MessageDigest.getInstance(\"MD5\");\n m.reset();\n m.update(md5output.getBytes());\n byte[] digest = m.digest();\n BigInteger bigInt = new BigInteger(1,digest);\n md5output = bigInt.toString(16);\n } catch (Exception e) {\n md5output = null;\n } finally{\n return md5output;\n }\n \n }",
"private static byte[] generateMD5(String info) throws\n UnsupportedEncodingException, NoSuchAlgorithmException {\n byte[] inputData = info.getBytes(\"UTF-8\");\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n md.update(inputData);\n byte[] digest= md.digest();\n return digest;\n }",
"public String getHash(String str) throws Exception{\n\t\t\n\t\tMessageDigest md = MessageDigest.getInstance(\"MD5\");\n md.update(str.getBytes());\n \n byte byteData[] = md.digest();\n \n //convert the byte to hex format method 1\n StringBuffer sb = new StringBuffer();\n for (int i = 0; i < byteData.length; i++) {\n sb.append(Integer.toString((byteData[i] & 0xff) + 0x100, 16).substring(1));\n }\n \n String hex = sb.toString();\n System.out.println(hex);\n return hex; \n}",
"public static String getMD5(String s) {\n try {\n MessageDigest m = MessageDigest.getInstance(\"MD5\");\n m.update(s.getBytes(), 0, s.length());\n return \"\" + new BigInteger(1, m.digest()).toString(16);\n } catch (NoSuchAlgorithmException e) {\n logger.error(\"MD5 is not supported !!!\");\n }\n return s;\n }",
"public byte[] calc_hash(File filename)\r\n {\r\n\tint digest_length = 512;\r\n\tbyte message[] = new byte[digest_length];\r\n\tbyte key[] = new byte[0];\r\n\tMessageDigest sha;\r\n\tint message_size;\r\n\tlong file_size = 0;\r\n\r\n\ttry{\r\n\t sha = MessageDigest.getInstance(algorithm, provider);\r\n\r\n\t try{\r\n\t\t/* Read file into byte array, and use array to update hash key */\r\n\t\tFileInputStream fin = new FileInputStream(filename);\r\n\t\twhile((message_size = fin.read(message)) != -1)\r\n\t\t {\r\n\t\t\tif(message_size < digest_length)\r\n\t\t\t sha.update(message, 0, message_size);\r\n\t\t\telse\r\n\t\t\t sha.update(message);\r\n\t\t }\r\n\t\tfin.close();\r\n\r\n\t\tkey = sha.digest();\r\n\t }\r\n\t catch(IOException ioe){\r\n\t\tSystem.out.println(\"Error (calc_hash): Unable to open and read file \" + filename.getName());\r\n\t\tioe.printStackTrace();\r\n\t\treturn null;\r\n\t }\r\n\t}\r\n\tcatch(NoSuchAlgorithmException nae){\r\n\t System.out.println(\"Error (calc_hash): hash algorithm \" + algorithm + \" not found\");\r\n\t nae.printStackTrace();\r\n\t return null;\r\n\t}\r\n\tcatch(NoSuchProviderException npe){\r\n\t System.out.println(\"Error (calc_hash): Security provider \" + provider + \" not found\");\r\n\t npe.printStackTrace();\r\n\t return null;\r\n\t}\r\n\r\n\treturn key;\r\n }",
"public HashCode getInstallMD5() {\n return installMD5;\n }",
"public static String getStringMD5(String src) {\n\t\tMessageDigest messageDigest = null;\n\t\tbyte[] srcBytes = src.getBytes();\n\t\ttry {\n\t\t\tmessageDigest = MessageDigest.getInstance(\"MD5\");\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tmessageDigest.update(srcBytes, 0, srcBytes.length);\n\t\tBigInteger bigInt = new BigInteger(1, messageDigest.digest());\n\t\treturn bigInt.toString(16);\n\t}",
"public static byte[] encryptMD5(final byte[] data) {\n return hashTemplate(data, \"MD5\");\n }",
"public String md5(String s) {\n try {\n // Create MD5 Hash\n MessageDigest digest = java.security.MessageDigest.getInstance(\"MD5\");\n digest.update(s.getBytes());\n byte messageDigest[] = digest.digest();\n\n // Create Hex String\n StringBuffer hexString = new StringBuffer();\n for (int i = 0; i < messageDigest.length; i++)\n hexString.append(Integer.toHexString(0xFF & messageDigest[i]));\n return hexString.toString();\n\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n }\n return \"\";\n }",
"private static String md5(String str) {\n\n if (str == null) {\n return null;\n }\n\n MessageDigest messageDigest = null;\n\n try {\n messageDigest = MessageDigest.getInstance(HttpConf.signType);\n messageDigest.reset();\n messageDigest.update(str.getBytes(HttpConf.charset));\n } catch (NoSuchAlgorithmException e) {\n\n return str;\n } catch (UnsupportedEncodingException e) {\n return str;\n }\n\n byte[] byteArray = messageDigest.digest();\n\n StringBuffer md5StrBuff = new StringBuffer();\n\n for (int i = 0; i < byteArray.length; i++) {\n if (Integer.toHexString(0xFF & byteArray[i]).length() == 1) {\n md5StrBuff.append(\"0\").append(Integer.toHexString(0xFF & byteArray[i]));\n } else {\n md5StrBuff.append(Integer.toHexString(0xFF & byteArray[i]));\n }\n }\n\n return md5StrBuff.toString();\n }",
"private static void compareSha(String filename) {\n\n\t\tMessageDigest md = null;\n\n\t\ttry (InputStream is = new BufferedInputStream(new FileInputStream(filename))) {\n\n\t\t\tbyte[] data = new byte[4096];\n\t\t\tint nRead;\n\t\t\tmd = MessageDigest.getInstance(\"SHA-256\");\n\n\t\t\twhile ((nRead = is.read(data)) != -1) {\n\t\t\t\tmd.update(data, 0, nRead);\n\t\t\t}\n\n\t\t} catch (FileNotFoundException exc) {\n\t\t\tSystem.out.println(\n\t\t\t\t\t\"File does not exist, is a directory rather than a regular file, or cannot be opened for reading because of some other reason\");\n\t\t\tSystem.exit(1);\n\n\t\t} catch (IOException exc) {\n\t\t\tSystem.out.println(\"Input stream couldn't be initialized.\");\n\t\t\tSystem.exit(1);\n\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\tSystem.out.println(\"No provider supports a MessageDigestSpi implementation for the specified algorithm.\");\n\t\t\tSystem.exit(1);\n\t\t}\n\n\t\tString sha256Digest = Util.bytetohex(md.digest());\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tSystem.out.println(\"Please provide expected sha-256 digest for hw06part2.pdf: \");\n\t\tSystem.out.print(\">\");\n\t\tString expectedDigest = sc.nextLine();\n\t\tsc.close();\n\n\t\tif (sha256Digest.equals(expectedDigest)) {\n\t\t\tSystem.out.printf(\"Digesting completed. Digest of %s matches expected digest.\\n\", filename);\n\n\t\t} else {\n\t\t\tSystem.out.printf(\"Digesting completed. Digest of %s does not match the expected digest. Digest was: %s\\n\",\n\t\t\t\t\tfilename, sha256Digest);\n\t\t}\n\n\t}",
"private static String md5(final String s) {\n final String MD5 = \"MD5\";\n try {\n // Create MD5 Hash\n MessageDigest digest = java.security.MessageDigest\n .getInstance(MD5);\n digest.update(s.getBytes());\n byte messageDigest[] = digest.digest();\n\n // Create Hex String\n StringBuilder hexString = new StringBuilder();\n for (byte aMessageDigest : messageDigest) {\n String h = Integer.toHexString(0xFF & aMessageDigest);\n while (h.length() < 2)\n h = \"0\" + h;\n hexString.append(h);\n }\n return hexString.toString();\n\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n }\n return \"\";\n }",
"String getHash();",
"String getHash();",
"public MD5Hash(String s) {\n\t\tif(s.length() != 32) throw new IllegalArgumentException(\"Hash must have 32 characters\");\n\t\thashString = s;\n\t}",
"private String md5(String input) {\r\n\t\tString md5 = null;\r\n\t\tif (null == input)\r\n\t\t\treturn null;\r\n\r\n\t\ttry {\r\n\t\t\tMessageDigest digest = MessageDigest.getInstance(\"MD5\");\r\n\t\t\tdigest.update(input.getBytes(), 0, input.length());\r\n\t\t\tmd5 = new BigInteger(1, digest.digest()).toString(16);\r\n\t\t} catch (NoSuchAlgorithmException e) {\r\n\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn md5;\r\n\t}",
"private static String getKeyByMd5(String url) {\n String key;\n try {\n MessageDigest messageDigest = MessageDigest.getInstance(\"MD5\");\n messageDigest.update(url.getBytes());\n key = md5Encryption(messageDigest.digest());\n return key;\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n key = String.valueOf(url.hashCode());\n }\n return key;\n }",
"public static String md5(final String data) {\n return ByteString.encodeUtf8(data).md5().hex().toLowerCase();\n }",
"private String md5(final String s)\n\t{\n\t\ttry {\n\t\t\t// Create MD5 Hash\n\t\t\tMessageDigest digest = MessageDigest.getInstance(\"MD5\");\n\t\t\tdigest.update(s.getBytes());\n\t\t\tbyte messageDigest[] = digest.digest();\n\n\t\t\t// Create Hex String\n\t\t\tStringBuffer hexString = new StringBuffer();\n\t\t\tfor (int i=0; i<messageDigest.length; i++) {\n\t\t\t\tString h = Integer.toHexString(0xFF & messageDigest[i]);\n\t\t\t\twhile (h.length() < 2) h = \"0\" + h;\n\t\t\t\thexString.append(h);\n\t\t\t}\n\t\t\treturn hexString.toString();\n\t\t} catch(NoSuchAlgorithmException e) {\n\t\t\t//Logger.logStackTrace(TAG,e);\n\t\t}\n\t\treturn \"\";\n\t}",
"java.lang.String getHashData();",
"com.google.protobuf.ByteString getHash();",
"com.google.protobuf.ByteString getHash();",
"public static String hash(String data) {\n\t MessageDigest md;\n\t\ttry {\n\t\t\tmd = MessageDigest.getInstance(\"MD5\");\n\t\t md.update(data.getBytes());\n\t\t byte[] digest = md.digest();\n\t\t char[] HEX_ARRAY = \"0123456789ABCDEF\".toCharArray();\n\t char[] hexChars = new char[digest.length * 2];\n\t for (int j = 0; j < digest.length; j++) {\n\t int v = digest[j] & 0xFF;\n\t hexChars[j * 2] = HEX_ARRAY[v >>> 4];\n\t hexChars[j * 2 + 1] = HEX_ARRAY[v & 0x0F];\n\t }\n\t return new String(hexChars);\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n return null;\n\t}",
"public static String getMD5Hash(String string) {\r\n\t\tMessageDigest digest;\r\n\t\ttry {\r\n\t\t\tdigest = java.security.MessageDigest.getInstance(\"MD5\");\r\n\t\t\tdigest.update(string.getBytes());\r\n\t\t\tfinal byte[] hash = digest.digest();\r\n\t\t\tfinal StringBuilder result = new StringBuilder(hash.length);\r\n\t\t\tfor (int i = 0; i < hash.length; i++) {\r\n\t\t\t\tresult.append(Integer.toString((hash[i] & 0xff) + 0x100, 16)\r\n\t\t\t\t\t\t.substring(1));\r\n\t\t\t}\r\n\t\t\treturn result.toString();\r\n\t\t} catch (final NoSuchAlgorithmException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn \"error\";\r\n\t\t}\r\n\t}",
"int getHash();",
"public static String md5(String str) {\n MessageDigest messageDigest = null;\n try {\n messageDigest = MessageDigest.getInstance(\"MD5\");\n messageDigest.reset();\n messageDigest.update(str.getBytes(\"UTF-8\"));\n } catch (NoSuchAlgorithmException | UnsupportedEncodingException e) {\n // do nothing\n }\n byte[] byteArray = messageDigest.digest();\n StringBuffer md5StrBuff = new StringBuffer();\n for (int i = 0; i < byteArray.length; i++) {\n if (Integer.toHexString(0xFF & byteArray[i]).length() == 1)\n md5StrBuff.append(\"0\").append(Integer.toHexString(0xFF & byteArray[i]));\n else\n md5StrBuff.append(Integer.toHexString(0xFF & byteArray[i]));\n }\n return md5StrBuff.toString();\n }",
"private String md5(String message) throws java.security.NoSuchAlgorithmException\n\t{\n\t\tMessageDigest md5 = null;\n\t\ttry {\n\t\t\tmd5 = MessageDigest.getInstance(\"MD5\");\n\t\t}\n\t\tcatch (java.security.NoSuchAlgorithmException ex) {\n\t\t\tex.printStackTrace();\n\t\t\tthrow ex;\n\t\t}\n\t\tbyte[] dig = md5.digest((byte[]) message.getBytes());\n\t\tStringBuffer code = new StringBuffer();\n\t\tfor (int i = 0; i < dig.length; ++i)\n\t\t{\n\t\t\tcode.append(Integer.toHexString(0x0100 + (dig[i] & 0x00FF)).substring(1));\n\t\t}\n\t\treturn code.toString();\n\t}",
"public static String hash(String in) {\r\n\t\treturn DigestUtils.md5Hex(in.getBytes());\r\n\t}",
"public static String getFileChecksum(File file) {\n return getFileChecksum(file, true);\n }"
] |
[
"0.7800426",
"0.7483837",
"0.745395",
"0.73832744",
"0.7380369",
"0.72531235",
"0.72531235",
"0.71196264",
"0.7082408",
"0.7062036",
"0.7048478",
"0.7031023",
"0.70060116",
"0.69423705",
"0.6941836",
"0.6911277",
"0.6899666",
"0.68789035",
"0.67872053",
"0.6573226",
"0.6517764",
"0.64483845",
"0.63890666",
"0.63889164",
"0.637664",
"0.6344204",
"0.6328337",
"0.63156193",
"0.62790745",
"0.62778276",
"0.62544405",
"0.62272245",
"0.622478",
"0.62095225",
"0.6189183",
"0.618581",
"0.6150319",
"0.61447257",
"0.6133792",
"0.61083305",
"0.61080337",
"0.6107677",
"0.6082222",
"0.6078524",
"0.6063569",
"0.60347885",
"0.6032613",
"0.6018872",
"0.5967777",
"0.59409916",
"0.5930955",
"0.59301263",
"0.59198403",
"0.59154654",
"0.58731323",
"0.58727765",
"0.5865943",
"0.58636516",
"0.58328414",
"0.58306295",
"0.58288914",
"0.5823926",
"0.5822736",
"0.5820728",
"0.58198696",
"0.58198696",
"0.5814811",
"0.5810591",
"0.5802849",
"0.5767336",
"0.57649535",
"0.57357484",
"0.5735534",
"0.5722977",
"0.5713615",
"0.5705999",
"0.5685397",
"0.5664443",
"0.5657681",
"0.56380135",
"0.5635169",
"0.56317455",
"0.56283534",
"0.56283534",
"0.5621572",
"0.5617056",
"0.56170446",
"0.5608373",
"0.5608194",
"0.5602473",
"0.55986595",
"0.55986595",
"0.5591306",
"0.5573595",
"0.5569579",
"0.5567024",
"0.55646014",
"0.5549714",
"0.553195"
] |
0.64626735
|
22
|
MD5 of the file content bytes fileHash = 1;
|
public Builder setFileHash(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
fileHash_ = value;
onChanged();
return this;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private String getFileMd5Checksum(String filename){\n\t\ttry {\n\t\t\tbyte[] fileBytes = Files.readAllBytes(Paths.get(FILES_ROOT + filename));\n\t\t\tbyte[] fileHash = MessageDigest.getInstance(\"MD5\").digest(fileBytes);\n\n\t\t\treturn DatatypeConverter.printHexBinary(fileHash);\n\t\t} catch (IOException e) {\n\t\t\t// TODO: Handle file doesn't exist\n\t\t\treturn \"\";\n\t\t} catch (Exception e) {\n\t\t\treturn \"\";\n\t\t}\n\t}",
"public static String computeMD5FileHash (File file) throws Exception {\n byte[] b = createFileChecksum(file);\n String result = \"\";\n\n for (int i=0; i < b.length; i++) {\n result += Integer.toString( ( b[i] & 0xff ) + 0x100, 16).substring( 1 );\n }\n return result;\n }",
"private static String getMD5Checksum(String filename) throws Exception {\r\n\t\tbyte[] b = createChecksum(filename);\r\n\t\tStringBuilder result = new StringBuilder();\r\n\t\tfor (byte v : b) {\r\n\t\t\tresult.append(Integer.toString((v & 0xff) + 0x100, 16).substring(1));\r\n\t\t}\r\n\t\treturn result.toString();\r\n\t}",
"private static String getFileChecksum(File file) throws IOException, NoSuchAlgorithmException {\n FileInputStream fis = new FileInputStream(file);\n\n // Use MD5 algorithm\n MessageDigest digest = MessageDigest.getInstance(\"MD5\");\n\n // Create byte array to read data in chunks\n byte[] byteArray = new byte[1024];\n int bytesCount = 0;\n\n // Read file data and update in message digest\n while ((bytesCount = fis.read(byteArray)) != -1) {\n digest.update(byteArray, 0, bytesCount);\n }\n ;\n\n // close the stream; We don't need it now.\n fis.close();\n\n // Get the hash's bytes\n byte[] bytes = digest.digest();\n\n // This bytes[] has bytes in decimal format;\n // Convert it to hexadecimal format\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < bytes.length; i++) {\n sb.append(Integer.toString((bytes[i] & 0xff) + 0x100, 16).substring(1));\n }\n\n // return complete hash\n return sb.toString();\n }",
"public static String getFileMD5(File file) {\n\t\tMessageDigest messageDigest = null;\n\t\tFileInputStream fileInStream = null;\n\t\tbyte buffer[] = new byte[1024];\n\t\tint length = -1;\n\t\ttry {\n\t\t\tmessageDigest = MessageDigest.getInstance(\"MD5\");\n\t\t\tfileInStream = new FileInputStream(file);\n\t\t\twhile ((length = fileInStream.read(buffer, 0, 1024)) != -1) {\n\t\t\t\tmessageDigest.update(buffer, 0, length);\n\t\t\t}\n\t\t\tfileInStream.close();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t\tBigInteger bigInt = new BigInteger(1, messageDigest.digest());\n\t\treturn bigInt.toString(16);\n\t}",
"com.google.protobuf.ByteString getFileHash();",
"com.google.protobuf.ByteString getFileHash();",
"public static String fileMD5(File file) {\n\t\tFileInputStream fis = null;\n\t\tString md5 = null;\n\t\ttry {\n\t\t\tfis = new FileInputStream(file);\n\t\t\tmd5 = org.apache.commons.codec.digest.DigestUtils.md5Hex(fis);\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"!!!\", e);\n\t\t} finally {\n\t\t\tCloseUtils.close(fis);\n\t\t}\n\t\treturn md5;\n\t}",
"public static String md5(String inputFile) {\r\n String md5 = null;\r\n logger.debug(\"Start to calculate hashcode (SHA1) for {}\", inputFile);\r\n try (DigestInputStream digestIn = new DigestInputStream(new FileInputStream(inputFile),\r\n MessageDigest.getInstance(\"SHA1\"))) {\r\n byte[] buffer = new byte[1024 * 1024];\r\n while (digestIn.read(buffer) > 0) {\r\n // do nothing\r\n }\r\n md5 = toHexString(digestIn.getMessageDigest().digest());\r\n } catch (NoSuchAlgorithmException | IOException e) {\r\n logger.warn(\"Fail to md5 for {} ({})\", inputFile, e.getMessage());\r\n }\r\n logger.debug(\"End to calculate hashcode (SHA1) for {}, {}\", inputFile, md5);\r\n return md5;\r\n }",
"static String generateChecksum(String filename) {\n\n try {\n // Instantiating file and Hashing Algorithm.\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n FileInputStream file = new FileInputStream(filename);\n\n // Generation of checksum.\n byte[] dataBytes = new byte[1024];\n int nread;\n\n while ((nread = file.read(dataBytes)) != -1) {\n md.update(dataBytes, 0, nread);\n }\n\n byte[] mdbytes = md.digest();\n\n // Convert byte to hex.\n StringBuilder hexString = new StringBuilder();\n\n for (byte mdbyte : mdbytes) {\n String hex = Integer.toHexString(0xff & mdbyte);\n if (hex.length() == 1) hexString.append('0');\n hexString.append(hex);\n }\n\n // Return checksum as completed string.\n return hexString.toString();\n\n } catch (NoSuchAlgorithmException | IOException e) {\n e.printStackTrace();\n }\n return null;\n }",
"public static String getFileMD5(File file) {\n if (!file.isFile()) {\n return null;\n }\n MessageDigest digest = null;\n FileInputStream in = null;\n byte buffer[] = new byte[1024];\n int len;\n try {\n digest = MessageDigest.getInstance(\"MD5\");\n in = new FileInputStream(file);\n while ((len = in.read(buffer, 0, 1024)) != -1) {\n digest.update(buffer, 0, len);\n }\n in.close();\n } catch (Exception e) {\n e.printStackTrace();\n return null;\n }\n BigInteger bigInt = new BigInteger(1, digest.digest());\n String md5 = bigInt.toString(16);\n while (md5.length() < 32)\n md5 = \"0\" + md5;\n return md5;\n }",
"private static String getFileChecksum(MessageDigest digest, File file) throws IOException\n\t {\n\t FileInputStream fis = new FileInputStream(file);\n\t \n\t //Create byte array to read data in chunks\n\t byte[] byteArray = new byte[1024];\n\t int bytesCount = 0;\n\t \n\t //Read file data and update in message digest\n\t while ((bytesCount = fis.read(byteArray)) != -1) {\n\t digest.update(byteArray, 0, bytesCount);\n\t };\n\t \n\t //close the stream; We don't need it now.\n\t fis.close();\n\t \n\t //Get the hash's bytes\n\t byte[] bytes = digest.digest();\n\t \n\t //This bytes[] has bytes in decimal format;\n\t //Convert it to hexadecimal format\n\t StringBuilder sb = new StringBuilder();\n\t for(int i=0; i< bytes.length ;i++)\n\t {\n\t sb.append(Integer.toString((bytes[i] & 0xff) + 0x100, 16).substring(1));\n\t }\n\t \n\t //return complete hash\n\t return sb.toString();\n\t }",
"public String getMD5() {\n return hash;\n }",
"private static String getFileChecksum(MessageDigest digest, File file) throws IOException {\n FileInputStream fis = new FileInputStream(file);\n\n //Create byte array to read data in chunks\n byte[] byteArray = new byte[1024];\n int bytesCount = 0;\n\n //Read file data and update in message digest\n while ((bytesCount = fis.read(byteArray)) != -1) {\n digest.update(byteArray, 0, bytesCount);\n }\n\n //close the stream; We don't need it now.\n fis.close();\n\n //Get the hash's bytes\n byte[] bytes = digest.digest();\n\n //This bytes[] has bytes in decimal format;\n //Convert it to hexadecimal format\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < bytes.length; i++) {\n sb.append(Integer.toString((bytes[i] & 0xff) + 0x100, 16).substring(1));\n }\n\n //return complete hash\n return sb.toString();\n }",
"public static byte[] createCheckSum(String filename) throws Exception {\n InputStream fis = new FileInputStream(filename);\n\n byte[] buffer = new byte[1024];\n MessageDigest complete = MessageDigest.getInstance(\"MD5\");\n int numRead;\n\n do {\n numRead = fis.read(buffer);\n if (numRead > 0) {\n complete.update(buffer, 0, numRead);\n }\n } while (numRead != -1);\n\n fis.close();\n // Return MD5 Hash\n return complete.digest();\n }",
"public static String getFileMD5(String path) {\n\t\treturn getFileMD5(new File(path));\n\t}",
"public static String fileMD5(String filePath) {\n\t\tFileInputStream fis = null;\n\t\tString md5 = null;\n\t\ttry {\n\t\t\tfis = new FileInputStream(new File(filePath));\n\t\t\tmd5 = org.apache.commons.codec.digest.DigestUtils.md5Hex(fis);\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"!!!\", e);\n\t\t} finally {\n\t\t\tCloseUtils.close(fis);\n\t\t}\n\t\treturn md5;\n\t}",
"public static String computeMD5(String filename) throws Exception {\r\n byte[] b = createGenericChecksum(filename, 0);\r\n String result = \"\";\r\n for (int i = 0; i < b.length; i++) {\r\n result += Integer.toString((b[i] & 0xff) + 0x100, 16).substring(1);\r\n }\r\n return result;\r\n }",
"public static String getMD5(File file) throws IOException, NoSuchAlgorithmException {\n return getChecksum(file, MessageDigest.getInstance(\"MD5\"));\n }",
"protected void md5file(File file) throws IOException {\n if (file.isDirectory()) {\n throw new IllegalArgumentException(\"Only files can be check summed !\");\n }\n\n // calculating the output\n byte[] md5 = DigestUtils.md5(new FileInputStream(file));\n\n // getting the output file\n File outputFile = new File(file.getAbsolutePath() + \".md5\");\n Files.write(Paths.get(outputFile.getAbsolutePath()), md5);\n\n }",
"String saveData(MultipartFile md5File) throws IOException;",
"@java.lang.Override\n public com.google.protobuf.ByteString getFileHash() {\n return fileHash_;\n }",
"@java.lang.Override\n public com.google.protobuf.ByteString getFileHash() {\n return fileHash_;\n }",
"byte[] getFile(String sha) throws Exception;",
"@java.lang.Override\n public com.google.protobuf.ByteString getFileHash() {\n return fileHash_;\n }",
"@java.lang.Override\n public com.google.protobuf.ByteString getFileHash() {\n return fileHash_;\n }",
"byte[] getDigest();",
"private String fileChecksum(File tmpFile, ITaskMonitor monitor) {\n InputStream is = null;\n try {\n is = new FileInputStream(tmpFile);\n MessageDigest digester = getChecksumType().getMessageDigest();\n byte[] buf = new byte[65536];\n int n;\n while ((n = is.read(buf)) >= 0) {\n if (n > 0) {\n digester.update(buf, 0, n);\n }\n }\n return getDigestChecksum(digester);\n } catch (FileNotFoundException e) {\n monitor.setResult(\"File not found: %1$s\", e.getMessage());\n } catch (Exception e) {\n monitor.setResult(e.getMessage());\n } finally {\n if (is != null) {\n try {\n is.close();\n } catch (IOException e) {\n }\n }\n }\n return \"\";\n }",
"public static String getFileChecksum(MessageDigest digest, String filePath) throws IOException {\n\t\tFileInputStream fis = new FileInputStream(filePath);\n\n\t\t// Create byte array to read data in chunks\n\t\tbyte[] byteArray = new byte[1024];\n\t\tint bytesCount = 0;\n\n\t\t// Read file data and update in message digest\n\t\twhile ((bytesCount = fis.read(byteArray)) != -1) {\n\t\t\tdigest.update(byteArray, 0, bytesCount);\n\t\t}\n\t\t;\n\n\t\t// close the stream; We don't need it now.\n\t\tfis.close();\n\n\t\t// Get the hash's bytes\n\t\tbyte[] bytes = digest.digest();\n\n\t\t// This bytes[] has bytes in decimal format;\n\t\t// Convert it to hexadecimal format\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor (int i = 0; i < bytes.length; i++) {\n\t\t\tsb.append(Integer.toString((bytes[i] & 0xff) + 0x100, 16).substring(1));\n\t\t}\n\n\t\t// return complete hash\n\t\treturn sb.toString();\n\t}",
"public static byte[] encryptMD5File(final File file) {\n if (file == null) return null;\n FileInputStream fis = null;\n DigestInputStream digestInputStream;\n try {\n fis = new FileInputStream(file);\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n digestInputStream = new DigestInputStream(fis, md);\n byte[] buffer = new byte[256 * 1024];\n while (true) {\n if (!(digestInputStream.read(buffer) > 0)) break;\n }\n md = digestInputStream.getMessageDigest();\n return md.digest();\n } catch (NoSuchAlgorithmException | IOException e) {\n e.printStackTrace();\n return null;\n } finally {\n try {\n if (fis != null) {\n fis.close();\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }",
"byte[] digest();",
"@Test\n public void fileMd5Test() {\n // TODO: test fileMd5\n }",
"public String getMd5Hash() {\n return md5Hash;\n }",
"public String getMD5() {\n return m_module.getConfiguration().getMD5();\n }",
"public static String CreateMD5(File file) {\n String base64Image = \"\";\n try (FileInputStream imageInFile = new FileInputStream(file)) {\n // Reading a Image file from file system\n byte imageData[] = new byte[(int) file.length()];\n imageInFile.read(imageData);\n base64Image = Base64.getEncoder().encodeToString(imageData);\n } catch (FileNotFoundException e) {\n DialogWindow.ShowErrorPane(\"Image could not be found.\", \"Error Image Missing\");\n// System.out.println(\"Image not found\" + e);\n } catch (IOException ioe) {\n DialogWindow.ShowErrorPane(\"Error while the image was being converted.\", \"Error Converting Image\");\n// System.out.println(\"Exception while reading the Image \" + ioe);\n }\n return base64Image;\n }",
"public BoxFileUploadRequestObject setContentMD5(String sha1) {\n getRequestExtras().addHeader(Constants.CONTENT_MD5, sha1);\n return this;\n }",
"public static byte[] computeMD5Hash(InputStream is) throws NoSuchAlgorithmException, IOException {\n BufferedInputStream bis = new BufferedInputStream(is);\n try {\n MessageDigest messageDigest = MessageDigest.getInstance(\"MD5\");\n byte[] buffer = new byte[16384];\n int bytesRead = -1;\n while ((bytesRead = bis.read(buffer, 0, buffer.length)) != -1) {\n messageDigest.update(buffer, 0, bytesRead);\n }\n return messageDigest.digest();\n } finally {\n try {\n bis.close();\n } catch (Exception e) {\n System.err.println(\"Unable to close input stream of hash candidate: \" + e);\n }\n }\n }",
"public byte[] getContentMd5() {\n return CoreUtils.clone(this.contentMd5);\n }",
"private static String md5(byte[] b) {\n try {\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n md.reset();\n md.update(b);\n byte[] digest = md.digest();\n StringBuffer sb = new StringBuffer();\n for (int i=0; i<digest.length; i++) {\n String a = Integer.toHexString(0xff & digest[i]);\n if (a.length() == 1) a = \"0\" + a;\n sb.append(a);\n }\n return sb.toString();\n }\n catch (NoSuchAlgorithmException e) { writeLog(e); }\n return null;\n }",
"private int getFileContentHashCode(Path filePath) throws IOException {\n return Arrays.hashCode(Files.readAllBytes(filePath));\n }",
"public static void md5(File outputFile) throws ConverterException {\r\n\t\ttry {\r\n\t\t\tFileInputStream fileInputStream = new FileInputStream(outputFile);\r\n\t\t\tBufferedInputStream bufferedInputStream = new BufferedInputStream(fileInputStream);\r\n\t\t\t\r\n\t\t\tbyte[] datei = bufferedInputStream.readAllBytes();\r\n\t\t\tMessageDigest md = MessageDigest.getInstance(\"MD5\");\r\n\t\t\tbyte[] md5 = md.digest(datei);\r\n\t\t\tfor (int i = 0; i < md5.length; i++) {\r\n\t\t\t\tSystem.out.print(String.format(\"%02X\", md5[i]));\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\" File Length: \" + outputFile.length());\r\n\t\t\tSystem.out.println();\r\n\t\t\t\r\n\t\t\tbufferedInputStream.close();\r\n\t\t\tfileInputStream.close();\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\tthrow new ConverterException(\"Datei kann nicht gefunden werden\");\r\n\t\t} catch (IOException e) {\r\n\t\t\tthrow new ConverterException(\"Beim Lesen der Datei ist ein Fehler aufgetreten\");\r\n\t\t} catch (NoSuchAlgorithmException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"private String calculateCheckSum(File file2) {\n\t\tStringBuffer sb = new StringBuffer(\"\");\n\t\ttry {\n\t\t\tMessageDigest messageDigest = MessageDigest.getInstance(\"SHA1\");\n\n\t\t\tFileInputStream finput = new FileInputStream(file2);\n\t\t\tbyte[] dataBytes = new byte[1024];\n\n\t\t\tint bytesRead = 0;\n\n\t\t\twhile ((bytesRead = finput.read(dataBytes)) != -1) {\n\t\t\t\tmessageDigest.update(dataBytes, 0, bytesRead);\n\t\t\t}\n\n\t\t\tbyte[] digestBytes = messageDigest.digest();\n\n\t\t\tfor (int i = 0; i < digestBytes.length; i++) {\n\t\t\t\tsb.append(Integer.toString((digestBytes[i] & 0xff) + 0x100, 16).substring(1));\n\t\t\t}\n\t\t\tSystem.out.println(\"file check sum value is \" + sb.toString());\n\t\t\tfinput.close();\n\t\t} catch (Exception ex) {\n\t\t\t// TODO: handle exception\n\t\t\tLogger.getLogger(FileTransferClient.class.getName()).log(Level.SEVERE, null, ex);\n\t\t}\n\n\t\treturn sb.toString();\n\t}",
"public static byte[] computeMD5Hash(byte[] data) throws NoSuchAlgorithmException, IOException {\n return computeMD5Hash(new ByteArrayInputStream(data));\n }",
"public byte[] getMD5() {\n return MD5;\n }",
"public Digest (File appdir)\n throws IOException\n {\n // parse and validate our digest file contents\n StringBuffer data = new StringBuffer();\n File dfile = new File(appdir, DIGEST_FILE);\n List pairs = ConfigUtil.parsePairs(dfile, false);\n for (Iterator iter = pairs.iterator(); iter.hasNext(); ) {\n String[] pair = (String[])iter.next();\n if (pair[0].equals(DIGEST_FILE)) {\n _metaDigest = pair[1];\n break;\n }\n _digests.put(pair[0], pair[1]);\n note(data, pair[0], pair[1]);\n }\n \n // we've reached the end, validate our contents\n MessageDigest md = getMessageDigest();\n byte[] contents = data.toString().getBytes(\"UTF-8\");\n String md5 = StringUtil.hexlate(md.digest(contents));\n if (!md5.equals(_metaDigest)) {\n String err = MessageUtil.tcompose(\n \"m.invalid_digest_file\", _metaDigest, md5);\n throw new IOException(err);\n }\n }",
"public byte[] MD5(File archivo) throws OpenSSL_Exception {\n\t\tString[] comando = new String[]{ \"openssl\" , \"dgst\" , \"-md5\" , archivo.getAbsolutePath()};\n\t\tProcess terminal = null;\n\t\ttry { terminal = Runtime.getRuntime().exec(comando); } catch (IOException e) { \n\t\t\tthrow new OpenSSL_Exception(\"No se puede ejecutar el comando en el terminal\");\n\t\t}\n\t\t// --- > Leemos la salida error del comando\n\t\tBufferedReader errors = new BufferedReader(new InputStreamReader(terminal.getErrorStream()));\n\t\tString linea = \"\" , error = \"\" ;\n\t\ttry { while( (linea = errors.readLine()) != null) error += linea + \"\\n\"; } catch (IOException e) {\n\t\t\tthrow new OpenSSL_Exception(\"No se puede leer el error que ha producido el comando\");\n\t\t}\n\t\t// --- > Si hubo salida error lanzamos al excepcion con el error\n\t\tif(!error.equals(\"\"))throw new OpenSSL_Exception(\"Error al ejecutar el comando:\\n\" + error );\n\t\t// --- > Leemos el resultado obtenido\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(terminal.getInputStream()));\n\t\tString res = \"\";\n\t\ttry { while((linea = in.readLine()) != null) res += linea; } catch (IOException e) {\n\t\t\tthrow new OpenSSL_Exception(\"No se puede leer el resultado que ha producido el comando\");\n\t\t}\n\t\treturn res.substring(res.lastIndexOf(\" \") + 1 ).getBytes();\n\t}",
"public byte[] getHash()\n\t{\n\t\treturn md5.getHash();\n\t}",
"@Test\n public void md5Checksum() throws NoSuchAlgorithmException {\n String string = Utils.md5Checksum(\"abcde fghijk lmn op\");\n Assert.assertEquals(\"1580420c86bbc3b356f6c40d46b53fc8\", string);\n }",
"public static String md5(String pass)\n {\n try{\n MessageDigest md=MessageDigest.getInstance(\"MD5\");\n byte[] messageDigest=md.digest(pass.getBytes());\n BigInteger num=new BigInteger(1,messageDigest);\n String hashText=num.toString(16);\n while(hashText.length()<32)\n {\n hashText=\"0\"+hashText;\n } \n return hashText; \n }\n catch(Exception e)\n { \n throw new RuntimeException(e);\n } \n }",
"public static void main(String[] args) throws NoSuchAlgorithmException, FileNotFoundException, IOException {\n \r\n String hash = \"F5D080D4F4E185DECA8A8B24F72408D9\";\r\n String [] keys = {\"9A1BA7F38A3E8D8F9DDD55972868CB3F\",\"17185CEF199E1C89804EDEE9DCDD1B90\",\"F5D080D4F4E185DECA8A8B24F72408D9\"};\r\n String password = \"NoSuchPassword\";\r\n File file = null;\r\n JFileChooser ff = new JFileChooser();\r\n int a = ff.showOpenDialog(null);\r\n if(a == JFileChooser.APPROVE_OPTION){\r\n try {\r\n file = ff.getSelectedFile();\r\n JOptionPane.showMessageDialog(ff, a);\r\n \r\n } catch (Exception ex) {\r\n ex.printStackTrace();\r\n } finally {\r\n System.out.println(file.getPath());\r\n }\r\n } \r\n BufferedReader fr = null;\r\n fr = new BufferedReader(new FileReader(file.getPath()));\r\n String line = null;\r\n int i = 0; \r\n //This is the funtion that Java implement in java.security.MessageDigest\r\n MessageDigest md5 = MessageDigest.getInstance(\"MD5\");\r\n while((line = fr.readLine()) != null){\r\n System.out.println(line);\r\n md5.update(line.getBytes());\r\n byte [] digests = md5.digest();\r\n String hashs = DatatypeConverter.printHexBinary(digests).toUpperCase();\r\n if(keys[i].equals(hashs)){\r\n System.out.println(\"CORRECT!\\nThe hash created is the same as the hash saved \");\r\n }\r\n else{\r\n System.out.println(\"ERROR!\\nThere was a mistake, the hash create doesn't mach the hash saved\");\r\n }\r\n i++;\r\n } \r\n fr.close();\r\n /**In conclusion we can use the MD5 for digest a words and then same them\r\n * is a DataBase, this with the function that if the DB is committed the\r\n * passwords will not be there\r\n */\r\n }",
"public ShareFileHttpHeaders setContentMd5(byte[] contentMd5) {\n this.contentMd5 = CoreUtils.clone(contentMd5);\n return this;\n }",
"public String getMD5ForGame(String gameId) {\n return \"TODO\";\n }",
"public static String md5(String message) {\n String digest = null;\n try {\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n byte[] hash = md.digest(message.getBytes(\"UTF-8\"));\n\n //converting byte array to HexadecimalString\n StringBuilder sb = new StringBuilder(2 * hash.length);\n for (byte b : hash) {\n sb.append(String.format(\"%02x\", b & 0xff));\n }\n digest = sb.toString();\n } catch (UnsupportedEncodingException ex) {\n log.error(\"UnsupportedEncodingException\",ex);\n } catch (NoSuchAlgorithmException ex) {\n log.error(\"NoSuchAlgorithmException\",ex);\n }\n\n return digest;\n }",
"protected String getFileETag(File file) {\n\t\tFileInputStream is = null;\n\t\ttry {\n\t\t\tis = new FileInputStream(file);\n\t\t\treturn \"\\\"\" + DigestUtils.md5Hex(is) + \"\\\"\";\n\t\t} catch (IOException e) {\n\t\t\treturn \"\";\n\t\t} finally {\n\t\t\tcloseQuietly(is);\n\t\t}\n\t}",
"private static byte[] m14295fl(String str) {\n try {\n MessageDigest instance = MessageDigest.getInstance(\"MD5\");\n if (instance == null) {\n return str.getBytes();\n }\n instance.update(str.getBytes());\n return instance.digest();\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n return str.getBytes();\n }\n }",
"protected String getMd5Hash(String token) {\n\n MessageDigest m;\n\t\ttry {\n\t\t\tm = MessageDigest.getInstance(\"MD5\");\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\tthrow new IllegalStateException(e);\n\t\t}\n m.update(token.getBytes());\n \n byte[] digest = m.digest();\n BigInteger bigInt = new BigInteger(1,digest);\n String hashtext = bigInt.toString(16);\n \n // Now we need to zero pad it if you actually want the full 32 chars.\n while(hashtext.length() < 32 ){\n hashtext = \"0\"+hashtext;\n }\n \n return hashtext;\n\t}",
"public static String toSHA1(String filename){\n\t\tMessageDigest md=null;\n\t\ttry{\n\t\t\tmd = MessageDigest.getInstance(\"SHA-1\");\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\ttry{\n\t\t\tFileInputStream in = new FileInputStream(filename);\n\t\t\tBufferedInputStream buffIn = new BufferedInputStream(in);\n\t\t\tDigestInputStream dis = new DigestInputStream(buffIn, md);\n\t\t\t\n\t\t\tFile f = new File(filename);\n\t\t\tLong fileSize = f.length();\n\t\t\t\n\t\t\tString blob = \"blob \" + fileSize.toString() + '\\0';\n\t\t\tmd.update(blob.getBytes());\n\t\t\t\t\t\t\n\t\t\t// read the file and update the hash calculation\n while (dis.read() != -1);\n\n // get the hash value as byte array\n byte[] hash = md.digest();\n\n return byteArray2Hex(hash);\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\t\n\t\treturn \"\";\n\t}",
"public static byte[] encryptMD5File(final String filePath) {\n File file = isSpace(filePath) ? null : new File(filePath);\n return encryptMD5File(file);\n }",
"public boolean IsFileMd5Equeal(UploadReport report) {\r\n\t\tString filename = this.conf.getFtpMountDirectory() + \"/DATA/\" + report.getFilename();\r\n\t\tString md5value = MD5Util.getFileMD5(new File(filename));\r\n\t\tFile file = new File(filename);\r\n\t\tif (file.exists()) {\r\n\t\t\tif (md5value.compareTo(report.getMd5value()) == 0) {\r\n\t\t\t\treturn true;\r\n\t\t\t} else {\r\n\t\t\t\tLogUtils.logger.error(\"Error happened when Caculate MD5 value, Original value: \" + report.getMd5value()\r\n\t\t\t\t\t\t+ \", New value : \" + md5value);\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tLogUtils.logger.error(\"Error happened when Caculate MD5 value, File: \" + filename + \" does not exist! \");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"public static String mySHA(String file) {\n\t\ttry {\n\t\t\t// java.security.MessageDigest digest = null;\n\t\t\t// digest = java.security.MessageDigest.getInstance(\"SHA-1\");\n\t\t\t// digest.reset();\n\t\t\t// digest.update(x.getBytes(\"UTF-8\"));\n\t\t\t// digest.update(x.getBytes(\"UTF-8\"));\n\t\t\t// return digest.digest();\n\t\t\tMessageDigest sha1 = MessageDigest.getInstance(\"SHA1\");\n\t\t\tFileInputStream fis = new FileInputStream(file);\n\n\t\t\tbyte[] data = new byte[1024];\n\t\t\tint read = 0;\n\t\t\twhile ((read = fis.read(data)) != -1) {\n\t\t\t\tsha1.update(data, 0, read);\n\t\t\t}\n\t\t\t;\n\t\t\tbyte[] hashBytes = sha1.digest();\n\n\t\t\tStringBuffer sb = new StringBuffer();\n\t\t\tfor (int i = 0; i < hashBytes.length; i++) {\n\t\t\t\tsb.append(Integer.toString((hashBytes[i] & 0xff) + 0x100, 16).substring(1));\n\t\t\t}\n\n\t\t\tString fileHash = sb.toString();\n\t\t\treturn fileHash;\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(e);\n\t\t\tString s = \"-1\";\n\t\t\treturn s;\n\t\t}\n\t}",
"public static String computeSHA(byte[] filebytes) throws NoSuchAlgorithmException {\r\n\t\tMessageDigest messageDigest = MessageDigest.getInstance(\"SHA-1\");\r\n\t\tbyte[] hash = messageDigest.digest(filebytes);\r\n\t\t\r\n\t\tFormatter formatter = new Formatter();\r\n\t\t\r\n\t\tfor (byte b : hash) {\r\n\t\t\tformatter.format(\"%02x\", b);\r\n\t\t}\r\n\t\t\r\n\t\treturn formatter.toString();\r\n\t}",
"public String getMD5Checksum(String pid, String dsName) throws FedoraException, IOException {\r\n try {\r\n return getDatastreamProperty(pid, dsName, DatastreamProfile.DatastreamProperty.DS_CHECKSUM);\r\n } catch (XPathExpressionException ex) {\r\n throw new FedoraException(ex);\r\n } catch (SAXException ex) {\r\n throw new FedoraException(ex);\r\n } catch (ParserConfigurationException ex) {\r\n throw new FedoraException(ex);\r\n }\r\n }",
"public String getHashsum(String file_name) {\n\t\t//\n\t\t// query database\n\t\t//\n\t\tCursor cursor = m_db.query(FILE_TABLE_NAME,\n\t\t\t\tnew String[] { FILE_FIELD_HASH_SUM }, FILE_FIELD_PATH + \"=?\",\n\t\t\t\tnew String[] { file_name }, null, null, null);\n\n\t\t//\n\t\t// get first entry of result set\n\t\t//\n\t\tString result = getFirstEntryOfResultSet(cursor);\n\n\t\t//\n\t\t// close cursor\n\t\t//\n\t\tcursor.close();\n\n\t\t//\n\t\t// done\n\t\t//\n\t\treturn result;\n\n\t}",
"java.lang.String getChecksum();",
"private static java.security.MessageDigest f() {\n /*\n r0 = \"MD5\";\n r1 = j;\n r0 = r0.equals(r1);\n if (r0 == 0) goto L_0x003a;\n L_0x000a:\n r0 = java.security.Security.getProviders();\n r1 = r0.length;\n r2 = 0;\n L_0x0010:\n if (r2 >= r1) goto L_0x003a;\n L_0x0012:\n r3 = r0[r2];\n r3 = r3.getServices();\n r3 = r3.iterator();\n L_0x001c:\n r4 = r3.hasNext();\n if (r4 == 0) goto L_0x0037;\n L_0x0022:\n r4 = r3.next();\n r4 = (java.security.Provider.Service) r4;\n r4 = r4.getAlgorithm();\n j = r4;\n r4 = j;\t Catch:{ NoSuchAlgorithmException -> 0x001c }\n r4 = java.security.MessageDigest.getInstance(r4);\t Catch:{ NoSuchAlgorithmException -> 0x001c }\n if (r4 == 0) goto L_0x001c;\n L_0x0036:\n return r4;\n L_0x0037:\n r2 = r2 + 1;\n goto L_0x0010;\n L_0x003a:\n r0 = 0;\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.koushikdutta.async.util.FileCache.f():java.security.MessageDigest\");\n }",
"public String getHashString()\n\t{\n\t\treturn md5.getHashString();\n\t}",
"public static String createMd5(String value)\r\n\t{ \r\n\t\ttry \r\n\t\t{\r\n\t\t\tMessageDigest md = MessageDigest.getInstance(\"MD5\");\t\t\t\r\n\t\t\tbyte[] hashInBytes = md.digest(value.getBytes(StandardCharsets.UTF_8));\r\n\t\t\tStringBuilder sb = new StringBuilder();\r\n\t for (byte b : hashInBytes) \r\n\t {\r\n\t sb.append(String.format(\"%02x\", b));\r\n\t }\r\n\t return sb.toString();\r\n\t\t}\r\n\t\tcatch(Exception ex)\r\n\t\t{\r\n\t\t\t\r\n\t\t}\r\n\t\treturn \"\";\r\n\t}",
"public static String hash(File remoteFsRoot) {\n logger.config(\"hash() invoked\");\n\n StringBuilder buf = new StringBuilder();\n try {\n buf.append(remoteFsRoot.getCanonicalPath()).append('\\n');\n } catch (IOException e) {\n logger.log(Level.FINER, \"hash() IOException - may be normal?\", e);\n buf.append(remoteFsRoot.getAbsolutePath()).append('\\n');\n }\n try {\n for (NetworkInterface ni : Collections.list(NetworkInterface.getNetworkInterfaces())) {\n for (InetAddress ia : Collections.list(ni.getInetAddresses())) {\n if (ia instanceof Inet4Address) {\n buf.append(ia.getHostAddress()).append('\\n');\n } else if (ia instanceof Inet6Address) {\n buf.append(ia.getHostAddress()).append('\\n');\n }\n }\n byte[] hardwareAddress = ni.getHardwareAddress();\n if (hardwareAddress != null) {\n buf.append(Arrays.toString(hardwareAddress));\n }\n }\n } catch (SocketException e) {\n // oh well we tried\n logger.log(Level.FINEST, \"hash() SocketException - 'oh well we tried'\", e);\n }\n return DigestUtils.md5Hex(buf.toString()).substring(0, 8);\n }",
"public static String getMD5(final File file) {\n if (file == null || !file.exists()) {\n return null;\n }\n\n FileInputStream fin = null;\n try {\n fin = new FileInputStream(file);\n String md5 = getMD5(fin);\n return md5;\n } catch (Exception e) {\n return null;\n } finally {\n closeQuietly(fin);\n }\n }",
"public static String getMd5(String input) {\n try {\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n\n byte[] messageDigest = md.digest(input.getBytes());\n\n BigInteger no = new BigInteger(1, messageDigest);\n\n String hashtext = no.toString(16);\n while (hashtext.length() < 32) {\n hashtext = \"0\" + hashtext;\n }\n return hashtext;\n } catch (NoSuchAlgorithmException e) {\n throw new RuntimeException(e);\n }\n }",
"public String getMD5(String txt){\n String md5output;\n md5output = txt;\n try {\n MessageDigest m = MessageDigest.getInstance(\"MD5\");\n m.reset();\n m.update(md5output.getBytes());\n byte[] digest = m.digest();\n BigInteger bigInt = new BigInteger(1,digest);\n md5output = bigInt.toString(16);\n } catch (Exception e) {\n md5output = null;\n } finally{\n return md5output;\n }\n \n }",
"private static byte[] generateMD5(String info) throws\n UnsupportedEncodingException, NoSuchAlgorithmException {\n byte[] inputData = info.getBytes(\"UTF-8\");\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n md.update(inputData);\n byte[] digest= md.digest();\n return digest;\n }",
"public String getHash(String str) throws Exception{\n\t\t\n\t\tMessageDigest md = MessageDigest.getInstance(\"MD5\");\n md.update(str.getBytes());\n \n byte byteData[] = md.digest();\n \n //convert the byte to hex format method 1\n StringBuffer sb = new StringBuffer();\n for (int i = 0; i < byteData.length; i++) {\n sb.append(Integer.toString((byteData[i] & 0xff) + 0x100, 16).substring(1));\n }\n \n String hex = sb.toString();\n System.out.println(hex);\n return hex; \n}",
"public static String getMD5(String s) {\n try {\n MessageDigest m = MessageDigest.getInstance(\"MD5\");\n m.update(s.getBytes(), 0, s.length());\n return \"\" + new BigInteger(1, m.digest()).toString(16);\n } catch (NoSuchAlgorithmException e) {\n logger.error(\"MD5 is not supported !!!\");\n }\n return s;\n }",
"public byte[] calc_hash(File filename)\r\n {\r\n\tint digest_length = 512;\r\n\tbyte message[] = new byte[digest_length];\r\n\tbyte key[] = new byte[0];\r\n\tMessageDigest sha;\r\n\tint message_size;\r\n\tlong file_size = 0;\r\n\r\n\ttry{\r\n\t sha = MessageDigest.getInstance(algorithm, provider);\r\n\r\n\t try{\r\n\t\t/* Read file into byte array, and use array to update hash key */\r\n\t\tFileInputStream fin = new FileInputStream(filename);\r\n\t\twhile((message_size = fin.read(message)) != -1)\r\n\t\t {\r\n\t\t\tif(message_size < digest_length)\r\n\t\t\t sha.update(message, 0, message_size);\r\n\t\t\telse\r\n\t\t\t sha.update(message);\r\n\t\t }\r\n\t\tfin.close();\r\n\r\n\t\tkey = sha.digest();\r\n\t }\r\n\t catch(IOException ioe){\r\n\t\tSystem.out.println(\"Error (calc_hash): Unable to open and read file \" + filename.getName());\r\n\t\tioe.printStackTrace();\r\n\t\treturn null;\r\n\t }\r\n\t}\r\n\tcatch(NoSuchAlgorithmException nae){\r\n\t System.out.println(\"Error (calc_hash): hash algorithm \" + algorithm + \" not found\");\r\n\t nae.printStackTrace();\r\n\t return null;\r\n\t}\r\n\tcatch(NoSuchProviderException npe){\r\n\t System.out.println(\"Error (calc_hash): Security provider \" + provider + \" not found\");\r\n\t npe.printStackTrace();\r\n\t return null;\r\n\t}\r\n\r\n\treturn key;\r\n }",
"public HashCode getInstallMD5() {\n return installMD5;\n }",
"public static String getStringMD5(String src) {\n\t\tMessageDigest messageDigest = null;\n\t\tbyte[] srcBytes = src.getBytes();\n\t\ttry {\n\t\t\tmessageDigest = MessageDigest.getInstance(\"MD5\");\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tmessageDigest.update(srcBytes, 0, srcBytes.length);\n\t\tBigInteger bigInt = new BigInteger(1, messageDigest.digest());\n\t\treturn bigInt.toString(16);\n\t}",
"public static byte[] encryptMD5(final byte[] data) {\n return hashTemplate(data, \"MD5\");\n }",
"public String md5(String s) {\n try {\n // Create MD5 Hash\n MessageDigest digest = java.security.MessageDigest.getInstance(\"MD5\");\n digest.update(s.getBytes());\n byte messageDigest[] = digest.digest();\n\n // Create Hex String\n StringBuffer hexString = new StringBuffer();\n for (int i = 0; i < messageDigest.length; i++)\n hexString.append(Integer.toHexString(0xFF & messageDigest[i]));\n return hexString.toString();\n\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n }\n return \"\";\n }",
"private static String md5(String str) {\n\n if (str == null) {\n return null;\n }\n\n MessageDigest messageDigest = null;\n\n try {\n messageDigest = MessageDigest.getInstance(HttpConf.signType);\n messageDigest.reset();\n messageDigest.update(str.getBytes(HttpConf.charset));\n } catch (NoSuchAlgorithmException e) {\n\n return str;\n } catch (UnsupportedEncodingException e) {\n return str;\n }\n\n byte[] byteArray = messageDigest.digest();\n\n StringBuffer md5StrBuff = new StringBuffer();\n\n for (int i = 0; i < byteArray.length; i++) {\n if (Integer.toHexString(0xFF & byteArray[i]).length() == 1) {\n md5StrBuff.append(\"0\").append(Integer.toHexString(0xFF & byteArray[i]));\n } else {\n md5StrBuff.append(Integer.toHexString(0xFF & byteArray[i]));\n }\n }\n\n return md5StrBuff.toString();\n }",
"private static void compareSha(String filename) {\n\n\t\tMessageDigest md = null;\n\n\t\ttry (InputStream is = new BufferedInputStream(new FileInputStream(filename))) {\n\n\t\t\tbyte[] data = new byte[4096];\n\t\t\tint nRead;\n\t\t\tmd = MessageDigest.getInstance(\"SHA-256\");\n\n\t\t\twhile ((nRead = is.read(data)) != -1) {\n\t\t\t\tmd.update(data, 0, nRead);\n\t\t\t}\n\n\t\t} catch (FileNotFoundException exc) {\n\t\t\tSystem.out.println(\n\t\t\t\t\t\"File does not exist, is a directory rather than a regular file, or cannot be opened for reading because of some other reason\");\n\t\t\tSystem.exit(1);\n\n\t\t} catch (IOException exc) {\n\t\t\tSystem.out.println(\"Input stream couldn't be initialized.\");\n\t\t\tSystem.exit(1);\n\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\tSystem.out.println(\"No provider supports a MessageDigestSpi implementation for the specified algorithm.\");\n\t\t\tSystem.exit(1);\n\t\t}\n\n\t\tString sha256Digest = Util.bytetohex(md.digest());\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tSystem.out.println(\"Please provide expected sha-256 digest for hw06part2.pdf: \");\n\t\tSystem.out.print(\">\");\n\t\tString expectedDigest = sc.nextLine();\n\t\tsc.close();\n\n\t\tif (sha256Digest.equals(expectedDigest)) {\n\t\t\tSystem.out.printf(\"Digesting completed. Digest of %s matches expected digest.\\n\", filename);\n\n\t\t} else {\n\t\t\tSystem.out.printf(\"Digesting completed. Digest of %s does not match the expected digest. Digest was: %s\\n\",\n\t\t\t\t\tfilename, sha256Digest);\n\t\t}\n\n\t}",
"private static String md5(final String s) {\n final String MD5 = \"MD5\";\n try {\n // Create MD5 Hash\n MessageDigest digest = java.security.MessageDigest\n .getInstance(MD5);\n digest.update(s.getBytes());\n byte messageDigest[] = digest.digest();\n\n // Create Hex String\n StringBuilder hexString = new StringBuilder();\n for (byte aMessageDigest : messageDigest) {\n String h = Integer.toHexString(0xFF & aMessageDigest);\n while (h.length() < 2)\n h = \"0\" + h;\n hexString.append(h);\n }\n return hexString.toString();\n\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n }\n return \"\";\n }",
"String getHash();",
"String getHash();",
"public MD5Hash(String s) {\n\t\tif(s.length() != 32) throw new IllegalArgumentException(\"Hash must have 32 characters\");\n\t\thashString = s;\n\t}",
"private String md5(String input) {\r\n\t\tString md5 = null;\r\n\t\tif (null == input)\r\n\t\t\treturn null;\r\n\r\n\t\ttry {\r\n\t\t\tMessageDigest digest = MessageDigest.getInstance(\"MD5\");\r\n\t\t\tdigest.update(input.getBytes(), 0, input.length());\r\n\t\t\tmd5 = new BigInteger(1, digest.digest()).toString(16);\r\n\t\t} catch (NoSuchAlgorithmException e) {\r\n\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn md5;\r\n\t}",
"private static String getKeyByMd5(String url) {\n String key;\n try {\n MessageDigest messageDigest = MessageDigest.getInstance(\"MD5\");\n messageDigest.update(url.getBytes());\n key = md5Encryption(messageDigest.digest());\n return key;\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n key = String.valueOf(url.hashCode());\n }\n return key;\n }",
"public static String md5(final String data) {\n return ByteString.encodeUtf8(data).md5().hex().toLowerCase();\n }",
"private String md5(final String s)\n\t{\n\t\ttry {\n\t\t\t// Create MD5 Hash\n\t\t\tMessageDigest digest = MessageDigest.getInstance(\"MD5\");\n\t\t\tdigest.update(s.getBytes());\n\t\t\tbyte messageDigest[] = digest.digest();\n\n\t\t\t// Create Hex String\n\t\t\tStringBuffer hexString = new StringBuffer();\n\t\t\tfor (int i=0; i<messageDigest.length; i++) {\n\t\t\t\tString h = Integer.toHexString(0xFF & messageDigest[i]);\n\t\t\t\twhile (h.length() < 2) h = \"0\" + h;\n\t\t\t\thexString.append(h);\n\t\t\t}\n\t\t\treturn hexString.toString();\n\t\t} catch(NoSuchAlgorithmException e) {\n\t\t\t//Logger.logStackTrace(TAG,e);\n\t\t}\n\t\treturn \"\";\n\t}",
"java.lang.String getHashData();",
"com.google.protobuf.ByteString getHash();",
"com.google.protobuf.ByteString getHash();",
"public static String hash(String data) {\n\t MessageDigest md;\n\t\ttry {\n\t\t\tmd = MessageDigest.getInstance(\"MD5\");\n\t\t md.update(data.getBytes());\n\t\t byte[] digest = md.digest();\n\t\t char[] HEX_ARRAY = \"0123456789ABCDEF\".toCharArray();\n\t char[] hexChars = new char[digest.length * 2];\n\t for (int j = 0; j < digest.length; j++) {\n\t int v = digest[j] & 0xFF;\n\t hexChars[j * 2] = HEX_ARRAY[v >>> 4];\n\t hexChars[j * 2 + 1] = HEX_ARRAY[v & 0x0F];\n\t }\n\t return new String(hexChars);\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n return null;\n\t}",
"public static String getMD5Hash(String string) {\r\n\t\tMessageDigest digest;\r\n\t\ttry {\r\n\t\t\tdigest = java.security.MessageDigest.getInstance(\"MD5\");\r\n\t\t\tdigest.update(string.getBytes());\r\n\t\t\tfinal byte[] hash = digest.digest();\r\n\t\t\tfinal StringBuilder result = new StringBuilder(hash.length);\r\n\t\t\tfor (int i = 0; i < hash.length; i++) {\r\n\t\t\t\tresult.append(Integer.toString((hash[i] & 0xff) + 0x100, 16)\r\n\t\t\t\t\t\t.substring(1));\r\n\t\t\t}\r\n\t\t\treturn result.toString();\r\n\t\t} catch (final NoSuchAlgorithmException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn \"error\";\r\n\t\t}\r\n\t}",
"int getHash();",
"public static String md5(String str) {\n MessageDigest messageDigest = null;\n try {\n messageDigest = MessageDigest.getInstance(\"MD5\");\n messageDigest.reset();\n messageDigest.update(str.getBytes(\"UTF-8\"));\n } catch (NoSuchAlgorithmException | UnsupportedEncodingException e) {\n // do nothing\n }\n byte[] byteArray = messageDigest.digest();\n StringBuffer md5StrBuff = new StringBuffer();\n for (int i = 0; i < byteArray.length; i++) {\n if (Integer.toHexString(0xFF & byteArray[i]).length() == 1)\n md5StrBuff.append(\"0\").append(Integer.toHexString(0xFF & byteArray[i]));\n else\n md5StrBuff.append(Integer.toHexString(0xFF & byteArray[i]));\n }\n return md5StrBuff.toString();\n }",
"private String md5(String message) throws java.security.NoSuchAlgorithmException\n\t{\n\t\tMessageDigest md5 = null;\n\t\ttry {\n\t\t\tmd5 = MessageDigest.getInstance(\"MD5\");\n\t\t}\n\t\tcatch (java.security.NoSuchAlgorithmException ex) {\n\t\t\tex.printStackTrace();\n\t\t\tthrow ex;\n\t\t}\n\t\tbyte[] dig = md5.digest((byte[]) message.getBytes());\n\t\tStringBuffer code = new StringBuffer();\n\t\tfor (int i = 0; i < dig.length; ++i)\n\t\t{\n\t\t\tcode.append(Integer.toHexString(0x0100 + (dig[i] & 0x00FF)).substring(1));\n\t\t}\n\t\treturn code.toString();\n\t}",
"public static String hash(String in) {\r\n\t\treturn DigestUtils.md5Hex(in.getBytes());\r\n\t}",
"public static String getFileChecksum(File file) {\n return getFileChecksum(file, true);\n }"
] |
[
"0.7800426",
"0.7483837",
"0.745395",
"0.73832744",
"0.7380369",
"0.72531235",
"0.72531235",
"0.71196264",
"0.7082408",
"0.7062036",
"0.7048478",
"0.7031023",
"0.70060116",
"0.69423705",
"0.6941836",
"0.6911277",
"0.6899666",
"0.68789035",
"0.67872053",
"0.6573226",
"0.6517764",
"0.6462793",
"0.64626735",
"0.64483845",
"0.63890666",
"0.63889164",
"0.637664",
"0.6344204",
"0.6328337",
"0.63156193",
"0.62790745",
"0.62778276",
"0.62544405",
"0.62272245",
"0.622478",
"0.62095225",
"0.6189183",
"0.618581",
"0.6150319",
"0.61447257",
"0.6133792",
"0.61083305",
"0.61080337",
"0.6107677",
"0.6082222",
"0.6078524",
"0.6063569",
"0.60347885",
"0.6032613",
"0.6018872",
"0.5967777",
"0.59409916",
"0.5930955",
"0.59301263",
"0.59198403",
"0.59154654",
"0.58731323",
"0.58727765",
"0.5865943",
"0.58636516",
"0.58328414",
"0.58306295",
"0.58288914",
"0.5823926",
"0.5822736",
"0.5820728",
"0.5814811",
"0.5810591",
"0.5802849",
"0.5767336",
"0.57649535",
"0.57357484",
"0.5735534",
"0.5722977",
"0.5713615",
"0.5705999",
"0.5685397",
"0.5664443",
"0.5657681",
"0.56380135",
"0.5635169",
"0.56317455",
"0.56283534",
"0.56283534",
"0.5621572",
"0.5617056",
"0.56170446",
"0.5608373",
"0.5608194",
"0.5602473",
"0.55986595",
"0.55986595",
"0.5591306",
"0.5573595",
"0.5569579",
"0.5567024",
"0.55646014",
"0.5549714",
"0.553195"
] |
0.58198696
|
67
|
MD5 of the file content bytes fileHash = 1;
|
public Builder clearFileHash() {
fileHash_ = getDefaultInstance().getFileHash();
onChanged();
return this;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private String getFileMd5Checksum(String filename){\n\t\ttry {\n\t\t\tbyte[] fileBytes = Files.readAllBytes(Paths.get(FILES_ROOT + filename));\n\t\t\tbyte[] fileHash = MessageDigest.getInstance(\"MD5\").digest(fileBytes);\n\n\t\t\treturn DatatypeConverter.printHexBinary(fileHash);\n\t\t} catch (IOException e) {\n\t\t\t// TODO: Handle file doesn't exist\n\t\t\treturn \"\";\n\t\t} catch (Exception e) {\n\t\t\treturn \"\";\n\t\t}\n\t}",
"public static String computeMD5FileHash (File file) throws Exception {\n byte[] b = createFileChecksum(file);\n String result = \"\";\n\n for (int i=0; i < b.length; i++) {\n result += Integer.toString( ( b[i] & 0xff ) + 0x100, 16).substring( 1 );\n }\n return result;\n }",
"private static String getMD5Checksum(String filename) throws Exception {\r\n\t\tbyte[] b = createChecksum(filename);\r\n\t\tStringBuilder result = new StringBuilder();\r\n\t\tfor (byte v : b) {\r\n\t\t\tresult.append(Integer.toString((v & 0xff) + 0x100, 16).substring(1));\r\n\t\t}\r\n\t\treturn result.toString();\r\n\t}",
"private static String getFileChecksum(File file) throws IOException, NoSuchAlgorithmException {\n FileInputStream fis = new FileInputStream(file);\n\n // Use MD5 algorithm\n MessageDigest digest = MessageDigest.getInstance(\"MD5\");\n\n // Create byte array to read data in chunks\n byte[] byteArray = new byte[1024];\n int bytesCount = 0;\n\n // Read file data and update in message digest\n while ((bytesCount = fis.read(byteArray)) != -1) {\n digest.update(byteArray, 0, bytesCount);\n }\n ;\n\n // close the stream; We don't need it now.\n fis.close();\n\n // Get the hash's bytes\n byte[] bytes = digest.digest();\n\n // This bytes[] has bytes in decimal format;\n // Convert it to hexadecimal format\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < bytes.length; i++) {\n sb.append(Integer.toString((bytes[i] & 0xff) + 0x100, 16).substring(1));\n }\n\n // return complete hash\n return sb.toString();\n }",
"public static String getFileMD5(File file) {\n\t\tMessageDigest messageDigest = null;\n\t\tFileInputStream fileInStream = null;\n\t\tbyte buffer[] = new byte[1024];\n\t\tint length = -1;\n\t\ttry {\n\t\t\tmessageDigest = MessageDigest.getInstance(\"MD5\");\n\t\t\tfileInStream = new FileInputStream(file);\n\t\t\twhile ((length = fileInStream.read(buffer, 0, 1024)) != -1) {\n\t\t\t\tmessageDigest.update(buffer, 0, length);\n\t\t\t}\n\t\t\tfileInStream.close();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t\tBigInteger bigInt = new BigInteger(1, messageDigest.digest());\n\t\treturn bigInt.toString(16);\n\t}",
"com.google.protobuf.ByteString getFileHash();",
"com.google.protobuf.ByteString getFileHash();",
"public static String fileMD5(File file) {\n\t\tFileInputStream fis = null;\n\t\tString md5 = null;\n\t\ttry {\n\t\t\tfis = new FileInputStream(file);\n\t\t\tmd5 = org.apache.commons.codec.digest.DigestUtils.md5Hex(fis);\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"!!!\", e);\n\t\t} finally {\n\t\t\tCloseUtils.close(fis);\n\t\t}\n\t\treturn md5;\n\t}",
"public static String md5(String inputFile) {\r\n String md5 = null;\r\n logger.debug(\"Start to calculate hashcode (SHA1) for {}\", inputFile);\r\n try (DigestInputStream digestIn = new DigestInputStream(new FileInputStream(inputFile),\r\n MessageDigest.getInstance(\"SHA1\"))) {\r\n byte[] buffer = new byte[1024 * 1024];\r\n while (digestIn.read(buffer) > 0) {\r\n // do nothing\r\n }\r\n md5 = toHexString(digestIn.getMessageDigest().digest());\r\n } catch (NoSuchAlgorithmException | IOException e) {\r\n logger.warn(\"Fail to md5 for {} ({})\", inputFile, e.getMessage());\r\n }\r\n logger.debug(\"End to calculate hashcode (SHA1) for {}, {}\", inputFile, md5);\r\n return md5;\r\n }",
"static String generateChecksum(String filename) {\n\n try {\n // Instantiating file and Hashing Algorithm.\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n FileInputStream file = new FileInputStream(filename);\n\n // Generation of checksum.\n byte[] dataBytes = new byte[1024];\n int nread;\n\n while ((nread = file.read(dataBytes)) != -1) {\n md.update(dataBytes, 0, nread);\n }\n\n byte[] mdbytes = md.digest();\n\n // Convert byte to hex.\n StringBuilder hexString = new StringBuilder();\n\n for (byte mdbyte : mdbytes) {\n String hex = Integer.toHexString(0xff & mdbyte);\n if (hex.length() == 1) hexString.append('0');\n hexString.append(hex);\n }\n\n // Return checksum as completed string.\n return hexString.toString();\n\n } catch (NoSuchAlgorithmException | IOException e) {\n e.printStackTrace();\n }\n return null;\n }",
"public static String getFileMD5(File file) {\n if (!file.isFile()) {\n return null;\n }\n MessageDigest digest = null;\n FileInputStream in = null;\n byte buffer[] = new byte[1024];\n int len;\n try {\n digest = MessageDigest.getInstance(\"MD5\");\n in = new FileInputStream(file);\n while ((len = in.read(buffer, 0, 1024)) != -1) {\n digest.update(buffer, 0, len);\n }\n in.close();\n } catch (Exception e) {\n e.printStackTrace();\n return null;\n }\n BigInteger bigInt = new BigInteger(1, digest.digest());\n String md5 = bigInt.toString(16);\n while (md5.length() < 32)\n md5 = \"0\" + md5;\n return md5;\n }",
"private static String getFileChecksum(MessageDigest digest, File file) throws IOException\n\t {\n\t FileInputStream fis = new FileInputStream(file);\n\t \n\t //Create byte array to read data in chunks\n\t byte[] byteArray = new byte[1024];\n\t int bytesCount = 0;\n\t \n\t //Read file data and update in message digest\n\t while ((bytesCount = fis.read(byteArray)) != -1) {\n\t digest.update(byteArray, 0, bytesCount);\n\t };\n\t \n\t //close the stream; We don't need it now.\n\t fis.close();\n\t \n\t //Get the hash's bytes\n\t byte[] bytes = digest.digest();\n\t \n\t //This bytes[] has bytes in decimal format;\n\t //Convert it to hexadecimal format\n\t StringBuilder sb = new StringBuilder();\n\t for(int i=0; i< bytes.length ;i++)\n\t {\n\t sb.append(Integer.toString((bytes[i] & 0xff) + 0x100, 16).substring(1));\n\t }\n\t \n\t //return complete hash\n\t return sb.toString();\n\t }",
"public String getMD5() {\n return hash;\n }",
"private static String getFileChecksum(MessageDigest digest, File file) throws IOException {\n FileInputStream fis = new FileInputStream(file);\n\n //Create byte array to read data in chunks\n byte[] byteArray = new byte[1024];\n int bytesCount = 0;\n\n //Read file data and update in message digest\n while ((bytesCount = fis.read(byteArray)) != -1) {\n digest.update(byteArray, 0, bytesCount);\n }\n\n //close the stream; We don't need it now.\n fis.close();\n\n //Get the hash's bytes\n byte[] bytes = digest.digest();\n\n //This bytes[] has bytes in decimal format;\n //Convert it to hexadecimal format\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < bytes.length; i++) {\n sb.append(Integer.toString((bytes[i] & 0xff) + 0x100, 16).substring(1));\n }\n\n //return complete hash\n return sb.toString();\n }",
"public static byte[] createCheckSum(String filename) throws Exception {\n InputStream fis = new FileInputStream(filename);\n\n byte[] buffer = new byte[1024];\n MessageDigest complete = MessageDigest.getInstance(\"MD5\");\n int numRead;\n\n do {\n numRead = fis.read(buffer);\n if (numRead > 0) {\n complete.update(buffer, 0, numRead);\n }\n } while (numRead != -1);\n\n fis.close();\n // Return MD5 Hash\n return complete.digest();\n }",
"public static String getFileMD5(String path) {\n\t\treturn getFileMD5(new File(path));\n\t}",
"public static String fileMD5(String filePath) {\n\t\tFileInputStream fis = null;\n\t\tString md5 = null;\n\t\ttry {\n\t\t\tfis = new FileInputStream(new File(filePath));\n\t\t\tmd5 = org.apache.commons.codec.digest.DigestUtils.md5Hex(fis);\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"!!!\", e);\n\t\t} finally {\n\t\t\tCloseUtils.close(fis);\n\t\t}\n\t\treturn md5;\n\t}",
"public static String computeMD5(String filename) throws Exception {\r\n byte[] b = createGenericChecksum(filename, 0);\r\n String result = \"\";\r\n for (int i = 0; i < b.length; i++) {\r\n result += Integer.toString((b[i] & 0xff) + 0x100, 16).substring(1);\r\n }\r\n return result;\r\n }",
"public static String getMD5(File file) throws IOException, NoSuchAlgorithmException {\n return getChecksum(file, MessageDigest.getInstance(\"MD5\"));\n }",
"protected void md5file(File file) throws IOException {\n if (file.isDirectory()) {\n throw new IllegalArgumentException(\"Only files can be check summed !\");\n }\n\n // calculating the output\n byte[] md5 = DigestUtils.md5(new FileInputStream(file));\n\n // getting the output file\n File outputFile = new File(file.getAbsolutePath() + \".md5\");\n Files.write(Paths.get(outputFile.getAbsolutePath()), md5);\n\n }",
"String saveData(MultipartFile md5File) throws IOException;",
"@java.lang.Override\n public com.google.protobuf.ByteString getFileHash() {\n return fileHash_;\n }",
"@java.lang.Override\n public com.google.protobuf.ByteString getFileHash() {\n return fileHash_;\n }",
"byte[] getFile(String sha) throws Exception;",
"@java.lang.Override\n public com.google.protobuf.ByteString getFileHash() {\n return fileHash_;\n }",
"@java.lang.Override\n public com.google.protobuf.ByteString getFileHash() {\n return fileHash_;\n }",
"byte[] getDigest();",
"private String fileChecksum(File tmpFile, ITaskMonitor monitor) {\n InputStream is = null;\n try {\n is = new FileInputStream(tmpFile);\n MessageDigest digester = getChecksumType().getMessageDigest();\n byte[] buf = new byte[65536];\n int n;\n while ((n = is.read(buf)) >= 0) {\n if (n > 0) {\n digester.update(buf, 0, n);\n }\n }\n return getDigestChecksum(digester);\n } catch (FileNotFoundException e) {\n monitor.setResult(\"File not found: %1$s\", e.getMessage());\n } catch (Exception e) {\n monitor.setResult(e.getMessage());\n } finally {\n if (is != null) {\n try {\n is.close();\n } catch (IOException e) {\n }\n }\n }\n return \"\";\n }",
"public static String getFileChecksum(MessageDigest digest, String filePath) throws IOException {\n\t\tFileInputStream fis = new FileInputStream(filePath);\n\n\t\t// Create byte array to read data in chunks\n\t\tbyte[] byteArray = new byte[1024];\n\t\tint bytesCount = 0;\n\n\t\t// Read file data and update in message digest\n\t\twhile ((bytesCount = fis.read(byteArray)) != -1) {\n\t\t\tdigest.update(byteArray, 0, bytesCount);\n\t\t}\n\t\t;\n\n\t\t// close the stream; We don't need it now.\n\t\tfis.close();\n\n\t\t// Get the hash's bytes\n\t\tbyte[] bytes = digest.digest();\n\n\t\t// This bytes[] has bytes in decimal format;\n\t\t// Convert it to hexadecimal format\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor (int i = 0; i < bytes.length; i++) {\n\t\t\tsb.append(Integer.toString((bytes[i] & 0xff) + 0x100, 16).substring(1));\n\t\t}\n\n\t\t// return complete hash\n\t\treturn sb.toString();\n\t}",
"public static byte[] encryptMD5File(final File file) {\n if (file == null) return null;\n FileInputStream fis = null;\n DigestInputStream digestInputStream;\n try {\n fis = new FileInputStream(file);\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n digestInputStream = new DigestInputStream(fis, md);\n byte[] buffer = new byte[256 * 1024];\n while (true) {\n if (!(digestInputStream.read(buffer) > 0)) break;\n }\n md = digestInputStream.getMessageDigest();\n return md.digest();\n } catch (NoSuchAlgorithmException | IOException e) {\n e.printStackTrace();\n return null;\n } finally {\n try {\n if (fis != null) {\n fis.close();\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }",
"byte[] digest();",
"@Test\n public void fileMd5Test() {\n // TODO: test fileMd5\n }",
"public String getMd5Hash() {\n return md5Hash;\n }",
"public String getMD5() {\n return m_module.getConfiguration().getMD5();\n }",
"public static String CreateMD5(File file) {\n String base64Image = \"\";\n try (FileInputStream imageInFile = new FileInputStream(file)) {\n // Reading a Image file from file system\n byte imageData[] = new byte[(int) file.length()];\n imageInFile.read(imageData);\n base64Image = Base64.getEncoder().encodeToString(imageData);\n } catch (FileNotFoundException e) {\n DialogWindow.ShowErrorPane(\"Image could not be found.\", \"Error Image Missing\");\n// System.out.println(\"Image not found\" + e);\n } catch (IOException ioe) {\n DialogWindow.ShowErrorPane(\"Error while the image was being converted.\", \"Error Converting Image\");\n// System.out.println(\"Exception while reading the Image \" + ioe);\n }\n return base64Image;\n }",
"public BoxFileUploadRequestObject setContentMD5(String sha1) {\n getRequestExtras().addHeader(Constants.CONTENT_MD5, sha1);\n return this;\n }",
"public static byte[] computeMD5Hash(InputStream is) throws NoSuchAlgorithmException, IOException {\n BufferedInputStream bis = new BufferedInputStream(is);\n try {\n MessageDigest messageDigest = MessageDigest.getInstance(\"MD5\");\n byte[] buffer = new byte[16384];\n int bytesRead = -1;\n while ((bytesRead = bis.read(buffer, 0, buffer.length)) != -1) {\n messageDigest.update(buffer, 0, bytesRead);\n }\n return messageDigest.digest();\n } finally {\n try {\n bis.close();\n } catch (Exception e) {\n System.err.println(\"Unable to close input stream of hash candidate: \" + e);\n }\n }\n }",
"public byte[] getContentMd5() {\n return CoreUtils.clone(this.contentMd5);\n }",
"private static String md5(byte[] b) {\n try {\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n md.reset();\n md.update(b);\n byte[] digest = md.digest();\n StringBuffer sb = new StringBuffer();\n for (int i=0; i<digest.length; i++) {\n String a = Integer.toHexString(0xff & digest[i]);\n if (a.length() == 1) a = \"0\" + a;\n sb.append(a);\n }\n return sb.toString();\n }\n catch (NoSuchAlgorithmException e) { writeLog(e); }\n return null;\n }",
"private int getFileContentHashCode(Path filePath) throws IOException {\n return Arrays.hashCode(Files.readAllBytes(filePath));\n }",
"public static void md5(File outputFile) throws ConverterException {\r\n\t\ttry {\r\n\t\t\tFileInputStream fileInputStream = new FileInputStream(outputFile);\r\n\t\t\tBufferedInputStream bufferedInputStream = new BufferedInputStream(fileInputStream);\r\n\t\t\t\r\n\t\t\tbyte[] datei = bufferedInputStream.readAllBytes();\r\n\t\t\tMessageDigest md = MessageDigest.getInstance(\"MD5\");\r\n\t\t\tbyte[] md5 = md.digest(datei);\r\n\t\t\tfor (int i = 0; i < md5.length; i++) {\r\n\t\t\t\tSystem.out.print(String.format(\"%02X\", md5[i]));\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\" File Length: \" + outputFile.length());\r\n\t\t\tSystem.out.println();\r\n\t\t\t\r\n\t\t\tbufferedInputStream.close();\r\n\t\t\tfileInputStream.close();\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\tthrow new ConverterException(\"Datei kann nicht gefunden werden\");\r\n\t\t} catch (IOException e) {\r\n\t\t\tthrow new ConverterException(\"Beim Lesen der Datei ist ein Fehler aufgetreten\");\r\n\t\t} catch (NoSuchAlgorithmException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"private String calculateCheckSum(File file2) {\n\t\tStringBuffer sb = new StringBuffer(\"\");\n\t\ttry {\n\t\t\tMessageDigest messageDigest = MessageDigest.getInstance(\"SHA1\");\n\n\t\t\tFileInputStream finput = new FileInputStream(file2);\n\t\t\tbyte[] dataBytes = new byte[1024];\n\n\t\t\tint bytesRead = 0;\n\n\t\t\twhile ((bytesRead = finput.read(dataBytes)) != -1) {\n\t\t\t\tmessageDigest.update(dataBytes, 0, bytesRead);\n\t\t\t}\n\n\t\t\tbyte[] digestBytes = messageDigest.digest();\n\n\t\t\tfor (int i = 0; i < digestBytes.length; i++) {\n\t\t\t\tsb.append(Integer.toString((digestBytes[i] & 0xff) + 0x100, 16).substring(1));\n\t\t\t}\n\t\t\tSystem.out.println(\"file check sum value is \" + sb.toString());\n\t\t\tfinput.close();\n\t\t} catch (Exception ex) {\n\t\t\t// TODO: handle exception\n\t\t\tLogger.getLogger(FileTransferClient.class.getName()).log(Level.SEVERE, null, ex);\n\t\t}\n\n\t\treturn sb.toString();\n\t}",
"public static byte[] computeMD5Hash(byte[] data) throws NoSuchAlgorithmException, IOException {\n return computeMD5Hash(new ByteArrayInputStream(data));\n }",
"public byte[] getMD5() {\n return MD5;\n }",
"public Digest (File appdir)\n throws IOException\n {\n // parse and validate our digest file contents\n StringBuffer data = new StringBuffer();\n File dfile = new File(appdir, DIGEST_FILE);\n List pairs = ConfigUtil.parsePairs(dfile, false);\n for (Iterator iter = pairs.iterator(); iter.hasNext(); ) {\n String[] pair = (String[])iter.next();\n if (pair[0].equals(DIGEST_FILE)) {\n _metaDigest = pair[1];\n break;\n }\n _digests.put(pair[0], pair[1]);\n note(data, pair[0], pair[1]);\n }\n \n // we've reached the end, validate our contents\n MessageDigest md = getMessageDigest();\n byte[] contents = data.toString().getBytes(\"UTF-8\");\n String md5 = StringUtil.hexlate(md.digest(contents));\n if (!md5.equals(_metaDigest)) {\n String err = MessageUtil.tcompose(\n \"m.invalid_digest_file\", _metaDigest, md5);\n throw new IOException(err);\n }\n }",
"public byte[] MD5(File archivo) throws OpenSSL_Exception {\n\t\tString[] comando = new String[]{ \"openssl\" , \"dgst\" , \"-md5\" , archivo.getAbsolutePath()};\n\t\tProcess terminal = null;\n\t\ttry { terminal = Runtime.getRuntime().exec(comando); } catch (IOException e) { \n\t\t\tthrow new OpenSSL_Exception(\"No se puede ejecutar el comando en el terminal\");\n\t\t}\n\t\t// --- > Leemos la salida error del comando\n\t\tBufferedReader errors = new BufferedReader(new InputStreamReader(terminal.getErrorStream()));\n\t\tString linea = \"\" , error = \"\" ;\n\t\ttry { while( (linea = errors.readLine()) != null) error += linea + \"\\n\"; } catch (IOException e) {\n\t\t\tthrow new OpenSSL_Exception(\"No se puede leer el error que ha producido el comando\");\n\t\t}\n\t\t// --- > Si hubo salida error lanzamos al excepcion con el error\n\t\tif(!error.equals(\"\"))throw new OpenSSL_Exception(\"Error al ejecutar el comando:\\n\" + error );\n\t\t// --- > Leemos el resultado obtenido\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(terminal.getInputStream()));\n\t\tString res = \"\";\n\t\ttry { while((linea = in.readLine()) != null) res += linea; } catch (IOException e) {\n\t\t\tthrow new OpenSSL_Exception(\"No se puede leer el resultado que ha producido el comando\");\n\t\t}\n\t\treturn res.substring(res.lastIndexOf(\" \") + 1 ).getBytes();\n\t}",
"public byte[] getHash()\n\t{\n\t\treturn md5.getHash();\n\t}",
"@Test\n public void md5Checksum() throws NoSuchAlgorithmException {\n String string = Utils.md5Checksum(\"abcde fghijk lmn op\");\n Assert.assertEquals(\"1580420c86bbc3b356f6c40d46b53fc8\", string);\n }",
"public static String md5(String pass)\n {\n try{\n MessageDigest md=MessageDigest.getInstance(\"MD5\");\n byte[] messageDigest=md.digest(pass.getBytes());\n BigInteger num=new BigInteger(1,messageDigest);\n String hashText=num.toString(16);\n while(hashText.length()<32)\n {\n hashText=\"0\"+hashText;\n } \n return hashText; \n }\n catch(Exception e)\n { \n throw new RuntimeException(e);\n } \n }",
"public static void main(String[] args) throws NoSuchAlgorithmException, FileNotFoundException, IOException {\n \r\n String hash = \"F5D080D4F4E185DECA8A8B24F72408D9\";\r\n String [] keys = {\"9A1BA7F38A3E8D8F9DDD55972868CB3F\",\"17185CEF199E1C89804EDEE9DCDD1B90\",\"F5D080D4F4E185DECA8A8B24F72408D9\"};\r\n String password = \"NoSuchPassword\";\r\n File file = null;\r\n JFileChooser ff = new JFileChooser();\r\n int a = ff.showOpenDialog(null);\r\n if(a == JFileChooser.APPROVE_OPTION){\r\n try {\r\n file = ff.getSelectedFile();\r\n JOptionPane.showMessageDialog(ff, a);\r\n \r\n } catch (Exception ex) {\r\n ex.printStackTrace();\r\n } finally {\r\n System.out.println(file.getPath());\r\n }\r\n } \r\n BufferedReader fr = null;\r\n fr = new BufferedReader(new FileReader(file.getPath()));\r\n String line = null;\r\n int i = 0; \r\n //This is the funtion that Java implement in java.security.MessageDigest\r\n MessageDigest md5 = MessageDigest.getInstance(\"MD5\");\r\n while((line = fr.readLine()) != null){\r\n System.out.println(line);\r\n md5.update(line.getBytes());\r\n byte [] digests = md5.digest();\r\n String hashs = DatatypeConverter.printHexBinary(digests).toUpperCase();\r\n if(keys[i].equals(hashs)){\r\n System.out.println(\"CORRECT!\\nThe hash created is the same as the hash saved \");\r\n }\r\n else{\r\n System.out.println(\"ERROR!\\nThere was a mistake, the hash create doesn't mach the hash saved\");\r\n }\r\n i++;\r\n } \r\n fr.close();\r\n /**In conclusion we can use the MD5 for digest a words and then same them\r\n * is a DataBase, this with the function that if the DB is committed the\r\n * passwords will not be there\r\n */\r\n }",
"public ShareFileHttpHeaders setContentMd5(byte[] contentMd5) {\n this.contentMd5 = CoreUtils.clone(contentMd5);\n return this;\n }",
"public String getMD5ForGame(String gameId) {\n return \"TODO\";\n }",
"public static String md5(String message) {\n String digest = null;\n try {\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n byte[] hash = md.digest(message.getBytes(\"UTF-8\"));\n\n //converting byte array to HexadecimalString\n StringBuilder sb = new StringBuilder(2 * hash.length);\n for (byte b : hash) {\n sb.append(String.format(\"%02x\", b & 0xff));\n }\n digest = sb.toString();\n } catch (UnsupportedEncodingException ex) {\n log.error(\"UnsupportedEncodingException\",ex);\n } catch (NoSuchAlgorithmException ex) {\n log.error(\"NoSuchAlgorithmException\",ex);\n }\n\n return digest;\n }",
"protected String getFileETag(File file) {\n\t\tFileInputStream is = null;\n\t\ttry {\n\t\t\tis = new FileInputStream(file);\n\t\t\treturn \"\\\"\" + DigestUtils.md5Hex(is) + \"\\\"\";\n\t\t} catch (IOException e) {\n\t\t\treturn \"\";\n\t\t} finally {\n\t\t\tcloseQuietly(is);\n\t\t}\n\t}",
"private static byte[] m14295fl(String str) {\n try {\n MessageDigest instance = MessageDigest.getInstance(\"MD5\");\n if (instance == null) {\n return str.getBytes();\n }\n instance.update(str.getBytes());\n return instance.digest();\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n return str.getBytes();\n }\n }",
"protected String getMd5Hash(String token) {\n\n MessageDigest m;\n\t\ttry {\n\t\t\tm = MessageDigest.getInstance(\"MD5\");\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\tthrow new IllegalStateException(e);\n\t\t}\n m.update(token.getBytes());\n \n byte[] digest = m.digest();\n BigInteger bigInt = new BigInteger(1,digest);\n String hashtext = bigInt.toString(16);\n \n // Now we need to zero pad it if you actually want the full 32 chars.\n while(hashtext.length() < 32 ){\n hashtext = \"0\"+hashtext;\n }\n \n return hashtext;\n\t}",
"public static String toSHA1(String filename){\n\t\tMessageDigest md=null;\n\t\ttry{\n\t\t\tmd = MessageDigest.getInstance(\"SHA-1\");\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\ttry{\n\t\t\tFileInputStream in = new FileInputStream(filename);\n\t\t\tBufferedInputStream buffIn = new BufferedInputStream(in);\n\t\t\tDigestInputStream dis = new DigestInputStream(buffIn, md);\n\t\t\t\n\t\t\tFile f = new File(filename);\n\t\t\tLong fileSize = f.length();\n\t\t\t\n\t\t\tString blob = \"blob \" + fileSize.toString() + '\\0';\n\t\t\tmd.update(blob.getBytes());\n\t\t\t\t\t\t\n\t\t\t// read the file and update the hash calculation\n while (dis.read() != -1);\n\n // get the hash value as byte array\n byte[] hash = md.digest();\n\n return byteArray2Hex(hash);\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\t\n\t\treturn \"\";\n\t}",
"public static byte[] encryptMD5File(final String filePath) {\n File file = isSpace(filePath) ? null : new File(filePath);\n return encryptMD5File(file);\n }",
"public boolean IsFileMd5Equeal(UploadReport report) {\r\n\t\tString filename = this.conf.getFtpMountDirectory() + \"/DATA/\" + report.getFilename();\r\n\t\tString md5value = MD5Util.getFileMD5(new File(filename));\r\n\t\tFile file = new File(filename);\r\n\t\tif (file.exists()) {\r\n\t\t\tif (md5value.compareTo(report.getMd5value()) == 0) {\r\n\t\t\t\treturn true;\r\n\t\t\t} else {\r\n\t\t\t\tLogUtils.logger.error(\"Error happened when Caculate MD5 value, Original value: \" + report.getMd5value()\r\n\t\t\t\t\t\t+ \", New value : \" + md5value);\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tLogUtils.logger.error(\"Error happened when Caculate MD5 value, File: \" + filename + \" does not exist! \");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"public static String mySHA(String file) {\n\t\ttry {\n\t\t\t// java.security.MessageDigest digest = null;\n\t\t\t// digest = java.security.MessageDigest.getInstance(\"SHA-1\");\n\t\t\t// digest.reset();\n\t\t\t// digest.update(x.getBytes(\"UTF-8\"));\n\t\t\t// digest.update(x.getBytes(\"UTF-8\"));\n\t\t\t// return digest.digest();\n\t\t\tMessageDigest sha1 = MessageDigest.getInstance(\"SHA1\");\n\t\t\tFileInputStream fis = new FileInputStream(file);\n\n\t\t\tbyte[] data = new byte[1024];\n\t\t\tint read = 0;\n\t\t\twhile ((read = fis.read(data)) != -1) {\n\t\t\t\tsha1.update(data, 0, read);\n\t\t\t}\n\t\t\t;\n\t\t\tbyte[] hashBytes = sha1.digest();\n\n\t\t\tStringBuffer sb = new StringBuffer();\n\t\t\tfor (int i = 0; i < hashBytes.length; i++) {\n\t\t\t\tsb.append(Integer.toString((hashBytes[i] & 0xff) + 0x100, 16).substring(1));\n\t\t\t}\n\n\t\t\tString fileHash = sb.toString();\n\t\t\treturn fileHash;\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(e);\n\t\t\tString s = \"-1\";\n\t\t\treturn s;\n\t\t}\n\t}",
"public static String computeSHA(byte[] filebytes) throws NoSuchAlgorithmException {\r\n\t\tMessageDigest messageDigest = MessageDigest.getInstance(\"SHA-1\");\r\n\t\tbyte[] hash = messageDigest.digest(filebytes);\r\n\t\t\r\n\t\tFormatter formatter = new Formatter();\r\n\t\t\r\n\t\tfor (byte b : hash) {\r\n\t\t\tformatter.format(\"%02x\", b);\r\n\t\t}\r\n\t\t\r\n\t\treturn formatter.toString();\r\n\t}",
"public String getMD5Checksum(String pid, String dsName) throws FedoraException, IOException {\r\n try {\r\n return getDatastreamProperty(pid, dsName, DatastreamProfile.DatastreamProperty.DS_CHECKSUM);\r\n } catch (XPathExpressionException ex) {\r\n throw new FedoraException(ex);\r\n } catch (SAXException ex) {\r\n throw new FedoraException(ex);\r\n } catch (ParserConfigurationException ex) {\r\n throw new FedoraException(ex);\r\n }\r\n }",
"public String getHashsum(String file_name) {\n\t\t//\n\t\t// query database\n\t\t//\n\t\tCursor cursor = m_db.query(FILE_TABLE_NAME,\n\t\t\t\tnew String[] { FILE_FIELD_HASH_SUM }, FILE_FIELD_PATH + \"=?\",\n\t\t\t\tnew String[] { file_name }, null, null, null);\n\n\t\t//\n\t\t// get first entry of result set\n\t\t//\n\t\tString result = getFirstEntryOfResultSet(cursor);\n\n\t\t//\n\t\t// close cursor\n\t\t//\n\t\tcursor.close();\n\n\t\t//\n\t\t// done\n\t\t//\n\t\treturn result;\n\n\t}",
"java.lang.String getChecksum();",
"private static java.security.MessageDigest f() {\n /*\n r0 = \"MD5\";\n r1 = j;\n r0 = r0.equals(r1);\n if (r0 == 0) goto L_0x003a;\n L_0x000a:\n r0 = java.security.Security.getProviders();\n r1 = r0.length;\n r2 = 0;\n L_0x0010:\n if (r2 >= r1) goto L_0x003a;\n L_0x0012:\n r3 = r0[r2];\n r3 = r3.getServices();\n r3 = r3.iterator();\n L_0x001c:\n r4 = r3.hasNext();\n if (r4 == 0) goto L_0x0037;\n L_0x0022:\n r4 = r3.next();\n r4 = (java.security.Provider.Service) r4;\n r4 = r4.getAlgorithm();\n j = r4;\n r4 = j;\t Catch:{ NoSuchAlgorithmException -> 0x001c }\n r4 = java.security.MessageDigest.getInstance(r4);\t Catch:{ NoSuchAlgorithmException -> 0x001c }\n if (r4 == 0) goto L_0x001c;\n L_0x0036:\n return r4;\n L_0x0037:\n r2 = r2 + 1;\n goto L_0x0010;\n L_0x003a:\n r0 = 0;\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.koushikdutta.async.util.FileCache.f():java.security.MessageDigest\");\n }",
"public String getHashString()\n\t{\n\t\treturn md5.getHashString();\n\t}",
"public Builder setFileHash(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n fileHash_ = value;\n onChanged();\n return this;\n }",
"public Builder setFileHash(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n fileHash_ = value;\n onChanged();\n return this;\n }",
"public static String createMd5(String value)\r\n\t{ \r\n\t\ttry \r\n\t\t{\r\n\t\t\tMessageDigest md = MessageDigest.getInstance(\"MD5\");\t\t\t\r\n\t\t\tbyte[] hashInBytes = md.digest(value.getBytes(StandardCharsets.UTF_8));\r\n\t\t\tStringBuilder sb = new StringBuilder();\r\n\t for (byte b : hashInBytes) \r\n\t {\r\n\t sb.append(String.format(\"%02x\", b));\r\n\t }\r\n\t return sb.toString();\r\n\t\t}\r\n\t\tcatch(Exception ex)\r\n\t\t{\r\n\t\t\t\r\n\t\t}\r\n\t\treturn \"\";\r\n\t}",
"public static String hash(File remoteFsRoot) {\n logger.config(\"hash() invoked\");\n\n StringBuilder buf = new StringBuilder();\n try {\n buf.append(remoteFsRoot.getCanonicalPath()).append('\\n');\n } catch (IOException e) {\n logger.log(Level.FINER, \"hash() IOException - may be normal?\", e);\n buf.append(remoteFsRoot.getAbsolutePath()).append('\\n');\n }\n try {\n for (NetworkInterface ni : Collections.list(NetworkInterface.getNetworkInterfaces())) {\n for (InetAddress ia : Collections.list(ni.getInetAddresses())) {\n if (ia instanceof Inet4Address) {\n buf.append(ia.getHostAddress()).append('\\n');\n } else if (ia instanceof Inet6Address) {\n buf.append(ia.getHostAddress()).append('\\n');\n }\n }\n byte[] hardwareAddress = ni.getHardwareAddress();\n if (hardwareAddress != null) {\n buf.append(Arrays.toString(hardwareAddress));\n }\n }\n } catch (SocketException e) {\n // oh well we tried\n logger.log(Level.FINEST, \"hash() SocketException - 'oh well we tried'\", e);\n }\n return DigestUtils.md5Hex(buf.toString()).substring(0, 8);\n }",
"public static String getMD5(final File file) {\n if (file == null || !file.exists()) {\n return null;\n }\n\n FileInputStream fin = null;\n try {\n fin = new FileInputStream(file);\n String md5 = getMD5(fin);\n return md5;\n } catch (Exception e) {\n return null;\n } finally {\n closeQuietly(fin);\n }\n }",
"public static String getMd5(String input) {\n try {\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n\n byte[] messageDigest = md.digest(input.getBytes());\n\n BigInteger no = new BigInteger(1, messageDigest);\n\n String hashtext = no.toString(16);\n while (hashtext.length() < 32) {\n hashtext = \"0\" + hashtext;\n }\n return hashtext;\n } catch (NoSuchAlgorithmException e) {\n throw new RuntimeException(e);\n }\n }",
"public String getMD5(String txt){\n String md5output;\n md5output = txt;\n try {\n MessageDigest m = MessageDigest.getInstance(\"MD5\");\n m.reset();\n m.update(md5output.getBytes());\n byte[] digest = m.digest();\n BigInteger bigInt = new BigInteger(1,digest);\n md5output = bigInt.toString(16);\n } catch (Exception e) {\n md5output = null;\n } finally{\n return md5output;\n }\n \n }",
"private static byte[] generateMD5(String info) throws\n UnsupportedEncodingException, NoSuchAlgorithmException {\n byte[] inputData = info.getBytes(\"UTF-8\");\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n md.update(inputData);\n byte[] digest= md.digest();\n return digest;\n }",
"public String getHash(String str) throws Exception{\n\t\t\n\t\tMessageDigest md = MessageDigest.getInstance(\"MD5\");\n md.update(str.getBytes());\n \n byte byteData[] = md.digest();\n \n //convert the byte to hex format method 1\n StringBuffer sb = new StringBuffer();\n for (int i = 0; i < byteData.length; i++) {\n sb.append(Integer.toString((byteData[i] & 0xff) + 0x100, 16).substring(1));\n }\n \n String hex = sb.toString();\n System.out.println(hex);\n return hex; \n}",
"public static String getMD5(String s) {\n try {\n MessageDigest m = MessageDigest.getInstance(\"MD5\");\n m.update(s.getBytes(), 0, s.length());\n return \"\" + new BigInteger(1, m.digest()).toString(16);\n } catch (NoSuchAlgorithmException e) {\n logger.error(\"MD5 is not supported !!!\");\n }\n return s;\n }",
"public byte[] calc_hash(File filename)\r\n {\r\n\tint digest_length = 512;\r\n\tbyte message[] = new byte[digest_length];\r\n\tbyte key[] = new byte[0];\r\n\tMessageDigest sha;\r\n\tint message_size;\r\n\tlong file_size = 0;\r\n\r\n\ttry{\r\n\t sha = MessageDigest.getInstance(algorithm, provider);\r\n\r\n\t try{\r\n\t\t/* Read file into byte array, and use array to update hash key */\r\n\t\tFileInputStream fin = new FileInputStream(filename);\r\n\t\twhile((message_size = fin.read(message)) != -1)\r\n\t\t {\r\n\t\t\tif(message_size < digest_length)\r\n\t\t\t sha.update(message, 0, message_size);\r\n\t\t\telse\r\n\t\t\t sha.update(message);\r\n\t\t }\r\n\t\tfin.close();\r\n\r\n\t\tkey = sha.digest();\r\n\t }\r\n\t catch(IOException ioe){\r\n\t\tSystem.out.println(\"Error (calc_hash): Unable to open and read file \" + filename.getName());\r\n\t\tioe.printStackTrace();\r\n\t\treturn null;\r\n\t }\r\n\t}\r\n\tcatch(NoSuchAlgorithmException nae){\r\n\t System.out.println(\"Error (calc_hash): hash algorithm \" + algorithm + \" not found\");\r\n\t nae.printStackTrace();\r\n\t return null;\r\n\t}\r\n\tcatch(NoSuchProviderException npe){\r\n\t System.out.println(\"Error (calc_hash): Security provider \" + provider + \" not found\");\r\n\t npe.printStackTrace();\r\n\t return null;\r\n\t}\r\n\r\n\treturn key;\r\n }",
"public HashCode getInstallMD5() {\n return installMD5;\n }",
"public static String getStringMD5(String src) {\n\t\tMessageDigest messageDigest = null;\n\t\tbyte[] srcBytes = src.getBytes();\n\t\ttry {\n\t\t\tmessageDigest = MessageDigest.getInstance(\"MD5\");\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tmessageDigest.update(srcBytes, 0, srcBytes.length);\n\t\tBigInteger bigInt = new BigInteger(1, messageDigest.digest());\n\t\treturn bigInt.toString(16);\n\t}",
"public static byte[] encryptMD5(final byte[] data) {\n return hashTemplate(data, \"MD5\");\n }",
"public String md5(String s) {\n try {\n // Create MD5 Hash\n MessageDigest digest = java.security.MessageDigest.getInstance(\"MD5\");\n digest.update(s.getBytes());\n byte messageDigest[] = digest.digest();\n\n // Create Hex String\n StringBuffer hexString = new StringBuffer();\n for (int i = 0; i < messageDigest.length; i++)\n hexString.append(Integer.toHexString(0xFF & messageDigest[i]));\n return hexString.toString();\n\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n }\n return \"\";\n }",
"private static String md5(String str) {\n\n if (str == null) {\n return null;\n }\n\n MessageDigest messageDigest = null;\n\n try {\n messageDigest = MessageDigest.getInstance(HttpConf.signType);\n messageDigest.reset();\n messageDigest.update(str.getBytes(HttpConf.charset));\n } catch (NoSuchAlgorithmException e) {\n\n return str;\n } catch (UnsupportedEncodingException e) {\n return str;\n }\n\n byte[] byteArray = messageDigest.digest();\n\n StringBuffer md5StrBuff = new StringBuffer();\n\n for (int i = 0; i < byteArray.length; i++) {\n if (Integer.toHexString(0xFF & byteArray[i]).length() == 1) {\n md5StrBuff.append(\"0\").append(Integer.toHexString(0xFF & byteArray[i]));\n } else {\n md5StrBuff.append(Integer.toHexString(0xFF & byteArray[i]));\n }\n }\n\n return md5StrBuff.toString();\n }",
"private static void compareSha(String filename) {\n\n\t\tMessageDigest md = null;\n\n\t\ttry (InputStream is = new BufferedInputStream(new FileInputStream(filename))) {\n\n\t\t\tbyte[] data = new byte[4096];\n\t\t\tint nRead;\n\t\t\tmd = MessageDigest.getInstance(\"SHA-256\");\n\n\t\t\twhile ((nRead = is.read(data)) != -1) {\n\t\t\t\tmd.update(data, 0, nRead);\n\t\t\t}\n\n\t\t} catch (FileNotFoundException exc) {\n\t\t\tSystem.out.println(\n\t\t\t\t\t\"File does not exist, is a directory rather than a regular file, or cannot be opened for reading because of some other reason\");\n\t\t\tSystem.exit(1);\n\n\t\t} catch (IOException exc) {\n\t\t\tSystem.out.println(\"Input stream couldn't be initialized.\");\n\t\t\tSystem.exit(1);\n\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\tSystem.out.println(\"No provider supports a MessageDigestSpi implementation for the specified algorithm.\");\n\t\t\tSystem.exit(1);\n\t\t}\n\n\t\tString sha256Digest = Util.bytetohex(md.digest());\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tSystem.out.println(\"Please provide expected sha-256 digest for hw06part2.pdf: \");\n\t\tSystem.out.print(\">\");\n\t\tString expectedDigest = sc.nextLine();\n\t\tsc.close();\n\n\t\tif (sha256Digest.equals(expectedDigest)) {\n\t\t\tSystem.out.printf(\"Digesting completed. Digest of %s matches expected digest.\\n\", filename);\n\n\t\t} else {\n\t\t\tSystem.out.printf(\"Digesting completed. Digest of %s does not match the expected digest. Digest was: %s\\n\",\n\t\t\t\t\tfilename, sha256Digest);\n\t\t}\n\n\t}",
"private static String md5(final String s) {\n final String MD5 = \"MD5\";\n try {\n // Create MD5 Hash\n MessageDigest digest = java.security.MessageDigest\n .getInstance(MD5);\n digest.update(s.getBytes());\n byte messageDigest[] = digest.digest();\n\n // Create Hex String\n StringBuilder hexString = new StringBuilder();\n for (byte aMessageDigest : messageDigest) {\n String h = Integer.toHexString(0xFF & aMessageDigest);\n while (h.length() < 2)\n h = \"0\" + h;\n hexString.append(h);\n }\n return hexString.toString();\n\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n }\n return \"\";\n }",
"String getHash();",
"String getHash();",
"public MD5Hash(String s) {\n\t\tif(s.length() != 32) throw new IllegalArgumentException(\"Hash must have 32 characters\");\n\t\thashString = s;\n\t}",
"private String md5(String input) {\r\n\t\tString md5 = null;\r\n\t\tif (null == input)\r\n\t\t\treturn null;\r\n\r\n\t\ttry {\r\n\t\t\tMessageDigest digest = MessageDigest.getInstance(\"MD5\");\r\n\t\t\tdigest.update(input.getBytes(), 0, input.length());\r\n\t\t\tmd5 = new BigInteger(1, digest.digest()).toString(16);\r\n\t\t} catch (NoSuchAlgorithmException e) {\r\n\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn md5;\r\n\t}",
"private static String getKeyByMd5(String url) {\n String key;\n try {\n MessageDigest messageDigest = MessageDigest.getInstance(\"MD5\");\n messageDigest.update(url.getBytes());\n key = md5Encryption(messageDigest.digest());\n return key;\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n key = String.valueOf(url.hashCode());\n }\n return key;\n }",
"public static String md5(final String data) {\n return ByteString.encodeUtf8(data).md5().hex().toLowerCase();\n }",
"private String md5(final String s)\n\t{\n\t\ttry {\n\t\t\t// Create MD5 Hash\n\t\t\tMessageDigest digest = MessageDigest.getInstance(\"MD5\");\n\t\t\tdigest.update(s.getBytes());\n\t\t\tbyte messageDigest[] = digest.digest();\n\n\t\t\t// Create Hex String\n\t\t\tStringBuffer hexString = new StringBuffer();\n\t\t\tfor (int i=0; i<messageDigest.length; i++) {\n\t\t\t\tString h = Integer.toHexString(0xFF & messageDigest[i]);\n\t\t\t\twhile (h.length() < 2) h = \"0\" + h;\n\t\t\t\thexString.append(h);\n\t\t\t}\n\t\t\treturn hexString.toString();\n\t\t} catch(NoSuchAlgorithmException e) {\n\t\t\t//Logger.logStackTrace(TAG,e);\n\t\t}\n\t\treturn \"\";\n\t}",
"java.lang.String getHashData();",
"com.google.protobuf.ByteString getHash();",
"com.google.protobuf.ByteString getHash();",
"public static String hash(String data) {\n\t MessageDigest md;\n\t\ttry {\n\t\t\tmd = MessageDigest.getInstance(\"MD5\");\n\t\t md.update(data.getBytes());\n\t\t byte[] digest = md.digest();\n\t\t char[] HEX_ARRAY = \"0123456789ABCDEF\".toCharArray();\n\t char[] hexChars = new char[digest.length * 2];\n\t for (int j = 0; j < digest.length; j++) {\n\t int v = digest[j] & 0xFF;\n\t hexChars[j * 2] = HEX_ARRAY[v >>> 4];\n\t hexChars[j * 2 + 1] = HEX_ARRAY[v & 0x0F];\n\t }\n\t return new String(hexChars);\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n return null;\n\t}",
"public static String getMD5Hash(String string) {\r\n\t\tMessageDigest digest;\r\n\t\ttry {\r\n\t\t\tdigest = java.security.MessageDigest.getInstance(\"MD5\");\r\n\t\t\tdigest.update(string.getBytes());\r\n\t\t\tfinal byte[] hash = digest.digest();\r\n\t\t\tfinal StringBuilder result = new StringBuilder(hash.length);\r\n\t\t\tfor (int i = 0; i < hash.length; i++) {\r\n\t\t\t\tresult.append(Integer.toString((hash[i] & 0xff) + 0x100, 16)\r\n\t\t\t\t\t\t.substring(1));\r\n\t\t\t}\r\n\t\t\treturn result.toString();\r\n\t\t} catch (final NoSuchAlgorithmException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn \"error\";\r\n\t\t}\r\n\t}",
"int getHash();",
"public static String md5(String str) {\n MessageDigest messageDigest = null;\n try {\n messageDigest = MessageDigest.getInstance(\"MD5\");\n messageDigest.reset();\n messageDigest.update(str.getBytes(\"UTF-8\"));\n } catch (NoSuchAlgorithmException | UnsupportedEncodingException e) {\n // do nothing\n }\n byte[] byteArray = messageDigest.digest();\n StringBuffer md5StrBuff = new StringBuffer();\n for (int i = 0; i < byteArray.length; i++) {\n if (Integer.toHexString(0xFF & byteArray[i]).length() == 1)\n md5StrBuff.append(\"0\").append(Integer.toHexString(0xFF & byteArray[i]));\n else\n md5StrBuff.append(Integer.toHexString(0xFF & byteArray[i]));\n }\n return md5StrBuff.toString();\n }",
"private String md5(String message) throws java.security.NoSuchAlgorithmException\n\t{\n\t\tMessageDigest md5 = null;\n\t\ttry {\n\t\t\tmd5 = MessageDigest.getInstance(\"MD5\");\n\t\t}\n\t\tcatch (java.security.NoSuchAlgorithmException ex) {\n\t\t\tex.printStackTrace();\n\t\t\tthrow ex;\n\t\t}\n\t\tbyte[] dig = md5.digest((byte[]) message.getBytes());\n\t\tStringBuffer code = new StringBuffer();\n\t\tfor (int i = 0; i < dig.length; ++i)\n\t\t{\n\t\t\tcode.append(Integer.toHexString(0x0100 + (dig[i] & 0x00FF)).substring(1));\n\t\t}\n\t\treturn code.toString();\n\t}",
"public static String hash(String in) {\r\n\t\treturn DigestUtils.md5Hex(in.getBytes());\r\n\t}",
"public static String getFileChecksum(File file) {\n return getFileChecksum(file, true);\n }"
] |
[
"0.7800426",
"0.7483837",
"0.745395",
"0.73832744",
"0.7380369",
"0.72531235",
"0.72531235",
"0.71196264",
"0.7082408",
"0.7062036",
"0.7048478",
"0.7031023",
"0.70060116",
"0.69423705",
"0.6941836",
"0.6911277",
"0.6899666",
"0.68789035",
"0.67872053",
"0.6573226",
"0.6517764",
"0.6462793",
"0.64626735",
"0.64483845",
"0.63890666",
"0.63889164",
"0.637664",
"0.6344204",
"0.6328337",
"0.63156193",
"0.62790745",
"0.62778276",
"0.62544405",
"0.62272245",
"0.622478",
"0.62095225",
"0.6189183",
"0.618581",
"0.6150319",
"0.61447257",
"0.6133792",
"0.61083305",
"0.61080337",
"0.6107677",
"0.6082222",
"0.6078524",
"0.6063569",
"0.60347885",
"0.6032613",
"0.6018872",
"0.5967777",
"0.59409916",
"0.5930955",
"0.59301263",
"0.59198403",
"0.59154654",
"0.58731323",
"0.58727765",
"0.5865943",
"0.58636516",
"0.58328414",
"0.58306295",
"0.58288914",
"0.5823926",
"0.5822736",
"0.5820728",
"0.58198696",
"0.58198696",
"0.5814811",
"0.5810591",
"0.5802849",
"0.5767336",
"0.57649535",
"0.57357484",
"0.5735534",
"0.5722977",
"0.5713615",
"0.5705999",
"0.5685397",
"0.5664443",
"0.5657681",
"0.56380135",
"0.5635169",
"0.56317455",
"0.56283534",
"0.56283534",
"0.5621572",
"0.5617056",
"0.56170446",
"0.5608373",
"0.5608194",
"0.5602473",
"0.55986595",
"0.55986595",
"0.5591306",
"0.5573595",
"0.5569579",
"0.5567024",
"0.55646014",
"0.5549714",
"0.553195"
] |
0.0
|
-1
|
uint32 chunkIndex = 2;
|
@java.lang.Override
public int getChunkIndex() {
return chunkIndex_;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"int getChunkIndex();",
"int getChunkIndex();",
"int getChunkId();",
"int getChunkId();",
"int getChunkId();",
"int getChunkId();",
"int getChunkId();",
"int getChunkId();",
"public int getChunkNo() {\n return chunkNo;\n }",
"public int getChunkNo() {\n return chunkNo;\n }",
"protected int getChunkInRegion() {\n\t\treturn (rnd.nextInt(structurePosRange) + rnd.nextInt(structurePosRange)) / 2;\n\t}",
"@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }",
"@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"private int getChunk(byte [] buffer, int offset, String chunk) {\r\n\t\ttry {\r\n\t\t\tfor (;;) {\r\n\t\t\t\tint dataLenght = getInt(buffer, offset);\r\n\t\t\t\tif (compareBytes(buffer, offset+4, chunk)) {\r\n\t\t\t\t\treturn offset;\r\n\t\t\t\t} else {\r\n\t\t\t\t\toffset += 4 + 4 + dataLenght + 4;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception e) {};\r\n\t\treturn -1;\r\n\t}",
"entities.Torrent.ChunkInfo getChunks(int index);",
"int getNumOfChunks();",
"edu.usfca.cs.dfs.StorageMessages.StoreChunkLocation getChunksLocation(int index);",
"private int chunk(long timestamp) {\n int chunkid;\n \n if (timestamp >= 0) {\n chunkid = (int) ((timestamp / chunklen) % chunkcount);\n } else {\n chunkid = chunkcount + (int) ((((timestamp + 1) / chunklen) % chunkcount) - 1);\n //chunkid = chunkcount - (int) ((- (timestamp + 1) / chunklen) % chunkcount);\n }\n \n return chunkid;\n }",
"int getChunksCount();",
"int getChunksCount();",
"public int getHighestChunk() {\n return highestChunk_;\n }",
"int getChunksLocationCount();",
"public int getChunkWidth() {\n return 256;\n }",
"public int currentChunkNum() {\n\t\treturn cp.chunk().getChunkNum();\n\t}",
"int getChunkSize();",
"public void nextTextureIndexX() {\n/* 245 */ this.particleTextureIndexX++;\n/* */ }",
"List<DownloadChunk> mo54445j(int i);",
"void sendChunkRequest(int chunkX, int chunkY);",
"protected String _getChunkId(String id, int index) {\n\t\treturn id + \"[\" + index + \"]\";\n\t}",
"public int getChunkHeight() {\n return 256;\n }",
"public int getHighestChunk() {\n return highestChunk_;\n }",
"String getChunkType();",
"protected int getTextureIndex() {\n/* 83 */ return getData() & 0x7;\n/* */ }",
"public int getChunkCount () {\n return (this.getTagCount()>>BITS_TO_SHIFT_FOR_CHUNK) + 1;\n }",
"public abstract int getNextBlock(int block) throws IOException;",
"public int getInternalBlockLength()\r\n/* 40: */ {\r\n/* 41: 95 */ return 32;\r\n/* 42: */ }",
"private static boolean parseChunk(final FileChannel fc,final long[] offset,final int depth) throws IOException {\n\t Log.d(TAG, \"entering parseChunk \"+ offset[0] +\"/\"+ depth);\n\n\t long data_offset = offset[0];\n\n long chunk_size = Util.readUInt(fc, data_offset); \n int chunk_type = Util.readInt(fc, data_offset+4);\n\n Log.v(TAG, chunk_type + \" \" + chunk_size);\n char sChunk[] = new char[4];\n Util.MakeFourCCString(chunk_type, sChunk);\n Log.v(TAG, String.format(\"chunk %s\", String.valueOf(sChunk)));\n\n data_offset += 8;\n // long chunk_data_size = offset[0] + chunk_size - data_offset;\n\n if (chunk_size == 1) {\n\n chunk_size = Util.readLong(fc, data_offset);\n\n data_offset += 8;\n\n if (chunk_size < 16) {\n Log.e(TAG,\" The smallest valid chunk is 16 bytes long in this case.\");\n return false;\n }\n\n } else if (chunk_size < 8) {\n Log.e(TAG,\"The smallest valid chunk is 8 bytes long.\");\n return false;\n }\n\n Log.v(TAG, String.format(\"parsing chunk %s at depth %d\",\n String.valueOf(sChunk), depth));\n\n if(chunk_type == Util.FOURCC('m', 'o', 'o', 'v') || chunk_type == Util.FOURCC('u', 'd', 't', 'a')) {\n Log.d(TAG, String.valueOf(sChunk));\n\n long stop_offset = offset[0] + chunk_size;\n offset[0] = data_offset;\n while (offset[0] < stop_offset) {\n boolean err = parseChunk(fc,offset, depth + 1);\n if (!err) {\n return err;\n }\n }\n\n if (offset[0] != stop_offset) {\n return false;\n }\n\n if (chunk_type == Util.FOURCC('m', 'o', 'o', 'v') ) {\n return true;\n }\n }\n else if(chunk_type == Util.FOURCC('h', 't', 'c', 'b')) {\n Log.d(TAG,\"Found Htc MetaData\");\n sHtcTableOffset = data_offset;\n Log.d(TAG,\"sHtcTableOffset = \" + sHtcTableOffset );\n parseHtcMetaData(fc,data_offset,chunk_size);\n Log.d(TAG,\"Parse Htc MetaData done\");\n offset[0] += chunk_size;\n } else if (chunk_type == Util.FOURCC('_', 'h', 't', 'c')\n || chunk_type == Util.FOURCC('d', 't', 'a', 'h')) {\n Log.d(TAG, \"Found HTC box\");\n offset[0] += 8;\n parseChunk(fc, offset, depth + 1);\n } else {\n offset[0] += chunk_size;\n }\n return true;\n }",
"public int getMaxSpawnedInChunk()\n {\n return 1;\n }",
"public boolean isNewChunk() {\n/* 26 */ return this.newChunk;\n/* */ }",
"public Builder setChunkIndex(int value) {\n\n chunkIndex_ = value;\n onChanged();\n return this;\n }",
"public Builder setChunkIndex(int value) {\n\n chunkIndex_ = value;\n onChanged();\n return this;\n }",
"boolean hasChunkId();",
"void mo54426b(int i, List<DownloadChunk> list);",
"@NotNull\n int getTrustedChunks();",
"void mo54414a(int i, List<DownloadChunk> list);",
"long getChunkSize();",
"long getChunkSize();",
"long getChunkSize();",
"long getChunkSize();",
"edu.usfca.cs.dfs.StorageMessages.StoreChunk getStoreChunk();",
"public void map( Chunk bv ) { }",
"int mo1684a(byte[] bArr, int i, int i2);",
"private int getCol(int index) {\n return index & (chunkSize - 1);\n }",
"int getBlockNumber();",
"int getBlockNumber();",
"public static long getChunks() {\n return chunks;\n }",
"public Vector2i getChunkSize() {\n return new Vector2i(getChunkWidth(), getChunkHeight());\n }",
"public void setChunkNumber(int chunkNumber) {\r\n\t\tthis.chunkNumber = chunkNumber;\r\n\t}",
"private static void blockCoordsToChunkCoords(Vector3i pos) {\n pos.x >>= 4;\n pos.y >>= 4;\n pos.z >>= 4;\n }",
"public void map( Chunk c ) { }",
"public int getNumOfChunks() {\n return numOfChunks_;\n }",
"@Test\n public void testChunkType() {\n final int[] count = new int[255];\n final SctpChunk.Type[] types = SctpChunk.Type.values();\n for (int i = 0; i < types.length; ++i) {\n count[types[i].getType()] = count[types[i].getType()] + 1;\n }\n\n for (int i = 0; i < count.length; ++i) {\n assertThat(\"Found multiple type definitions for Chunk Type \" + i, count[i] < 2, is(true));\n }\n\n }",
"public boolean getChunking () {\n\treturn chunk;\n }",
"edu.usfca.cs.dfs.StorageMessages.StoreChunkLocation getStoreChunkLocation();",
"private void generateNextChunk() {\n \n chunkNumber++;\n \n // generate a chunk filled with content\n List<Object> list = chunkFactory.generateChunk(chunkNumber);\n Vector3f newChunkPosition =\n new Vector3f(nextChunkX, 0f, 0f);\n nextChunkX += P.chunkLength;\n\n for (Object object : list) {\n if (object instanceof Spatial) {\n Spatial spatial = (Spatial) object;\n addToLevel(spatial, spatial.getLocalTranslation().add(newChunkPosition));\n } else if (object instanceof SpotLight) {\n SpotLight light = (SpotLight) object;\n addToLevel(light, light.getPosition().add(newChunkPosition));\n } else if (object instanceof PointLight) {\n PointLight light = (PointLight) object;\n addToLevel(light, light.getPosition().add(newChunkPosition)); \n }\n }\n\n }",
"protected int nextInt(int p_75902_1_) {\n/* 135 */ int var2 = (int)((this.chunkSeed >> 24) % p_75902_1_);\n/* */ \n/* 137 */ if (var2 < 0)\n/* */ {\n/* 139 */ var2 += p_75902_1_;\n/* */ }\n/* */ \n/* 142 */ this.chunkSeed *= (this.chunkSeed * 6364136223846793005L + 1442695040888963407L);\n/* 143 */ this.chunkSeed += this.worldGenSeed;\n/* 144 */ return var2;\n/* */ }",
"private int getIndex2(int val){\n return val/bucket;\n }",
"@Override\r\n\tpublic int getIndexStep() {\n\t\t\r\n\t\treturn 2;\r\n\t}",
"int getSplitIndex();",
"public int getBlockSize()\n/* */ {\n/* 43 */ return this.blockSize;\n/* */ }",
"int sampleOffset();",
"public ChunkType getType();",
"protected int arrayIndex(long windowIndex) {\n return (int) (windowIndex % length());\n }",
"int getTotalBlockNum();",
"void mo54417a(DownloadChunk downloadChunk);",
"public int getChunkSize() {\n return chunkSize;\n }",
"public static void splitFile() throws IOException{\n\t\tPath currentRelativePath = Paths.get(\"\");\n\t\tFile file = new File(currentRelativePath.toAbsolutePath().toString()+\"/\"+fileName);\n\n\t\t//fileChunks are of size windowSize\n\t\tint num = fileSize; \n\t\tint lastByteRead = 0;\n\t\tint start =0;\n\t\tint i= 0; //where we are in bitfield map\n\t\tbyte[] fileChunkArray = new byte[windowSize];\n\t\t//read in the file\n\t\ttry{\n\t\t\tFileInputStream fileInputStream = new FileInputStream(file);\n\t\t\twhile(num > 0){\n\t\t\t\tif (num <= 5){\n\t\t\t\t\twindowSize = num;\n\t\t\t\t}\n\t\t\t\t// byte[] fileChunkArray = new byte[windowSize];\n\t\t\t\t\n\t\t\t\tlastByteRead = fileInputStream.read(fileChunkArray,0,windowSize);\n\t\t\t\t\n\t\t\t\t// start = start +windowSize;\n\t\t\t\t\n\t\t\t\t// String s1 = new String(fileChunkArray);\n\t\t\t\tSystem.out.print(\"the chunkarray length is :\" + fileChunkArray.length);\n\t\t\t\tSystem.out.print(\"the lastbyte read is :\"+ lastByteRead);\n\t\t\t\t// System.out.print(\"the fileChunk array is :\"+ s1);\n\t\t\t\tbitfieldMap.put(lastByteRead,fileChunkArray);\n\t\t\t\ti++;\n\t\t\t\tdynamicName = fileName+ i;\n\t\t\t\tworkingDirectory = System.getProperty(\"user.dir\");\n\t\t\t\tabsoluteFilePath = workingDirectory + File.separator + dynamicName;\n\t\t\t\tnum = num - windowSize; \n\t\t\t\tFileOutputStream newFile = new FileOutputStream(absoluteFilePath);\n\t\t\t\tnewFile.write(fileChunkArray);\n\t\t\t\tnewFile.flush();\n\t\t\t\tnewFile.close();\n\n\t\t\t}\n\t\t\tfileInputStream.close();\t\n\t\t}catch(IOException ioe){\n\t\t\tSystem.out.println(\"Could not split file: \" + ioe);\n\t\t}\n\t}",
"public void map( Chunk cs[] ) { }",
"int getBlockNumbers(int index);",
"private int getImageBufferStartIndex(int trackNumber, FloppyDriveSide side) {\n return BYTES_PER_SECTOR * (SECTORS_PER_TRACK * (trackNumber * 2 + side.ordinal())\n + sectorIndex);\n }",
"int getReadPosition(int index) {\n/* 170 */ return index - this.origPos + this.readerIndex;\n/* */ }",
"private int getIndex(int val){\n return val%bucket;\n }",
"@Test\n public void chunkPosShouldBePlayerPosDividedByChunkSizeWherePlayerAt1By1() {\n final int sideLengthOfBlock = 10;\n final int rowAmountInChunk = 11;\n\n MatcherAssert.assertThat(\n this.targetCompass(\n sideLengthOfBlock,\n rowAmountInChunk,\n new Point(1, 1)\n ).chunkPos(),\n CoreMatchers.equalTo(new Point(0, 0))\n );\n }",
"private int key(int chunkX, int chunkY, int chunkZ) {\n if (chunkX >= 2048 || chunkX < 0 || chunkY >= 2048 || chunkY < 0 || chunkZ >= 4 || chunkZ < 0) {\n throw new IllegalArgumentException(\"ChunkX and ChunkY must range from 0-2047 inclusive (given x:\" + chunkX + \" and y: \" + chunkY + \"), and chunkZ must range from 0-3 inclusive (Given z: \" + chunkZ + \")\");\n }\n return (chunkZ << 30) | (chunkX << 15) | (chunkY);\n }",
"protected int realIndex(int index) {\n return index & (buf.length -1);\n }",
"private int getPmidIdx() {\n return this.colStartOffset + 2;\n }",
"protected int populateBuffer()\n {\n interlock.beginReading();\n // System.out.println(\"populateBuffer: 2\");\n return byteBuffer.limit();\n }"
] |
[
"0.785442",
"0.785442",
"0.73773885",
"0.73773885",
"0.73773885",
"0.73773885",
"0.73773885",
"0.73773885",
"0.6741172",
"0.6741172",
"0.6663846",
"0.66030824",
"0.66030824",
"0.65638685",
"0.65638685",
"0.65638685",
"0.65638685",
"0.65638685",
"0.65638685",
"0.6424548",
"0.6424548",
"0.6424548",
"0.6424548",
"0.6424548",
"0.6424548",
"0.6410397",
"0.6400465",
"0.6379588",
"0.6373404",
"0.6315273",
"0.6189685",
"0.6189685",
"0.61568904",
"0.61450183",
"0.6116205",
"0.600113",
"0.592988",
"0.5924839",
"0.590925",
"0.5907171",
"0.5883504",
"0.5868158",
"0.58488417",
"0.5830536",
"0.5826126",
"0.58231753",
"0.57997054",
"0.57831234",
"0.5773982",
"0.57738006",
"0.5764445",
"0.57457185",
"0.574476",
"0.5730925",
"0.57199186",
"0.5672394",
"0.5635696",
"0.56262887",
"0.56262887",
"0.56262887",
"0.56262887",
"0.5625486",
"0.56026787",
"0.55572665",
"0.5555952",
"0.55468774",
"0.55468774",
"0.5537924",
"0.5523598",
"0.55199176",
"0.55137247",
"0.55008006",
"0.5499361",
"0.5496236",
"0.54885995",
"0.54849046",
"0.54820436",
"0.54716635",
"0.54495907",
"0.544209",
"0.5437883",
"0.5429143",
"0.5428823",
"0.5428345",
"0.54230964",
"0.5416858",
"0.54106504",
"0.5405122",
"0.54008263",
"0.5391839",
"0.5382947",
"0.53820837",
"0.5372417",
"0.5371448",
"0.53595173",
"0.53501457",
"0.53402644",
"0.53377634",
"0.53344655"
] |
0.66893995
|
10
|
uint32 chunkIndex = 2;
|
public Builder setChunkIndex(int value) {
chunkIndex_ = value;
onChanged();
return this;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"int getChunkIndex();",
"int getChunkIndex();",
"int getChunkId();",
"int getChunkId();",
"int getChunkId();",
"int getChunkId();",
"int getChunkId();",
"int getChunkId();",
"public int getChunkNo() {\n return chunkNo;\n }",
"public int getChunkNo() {\n return chunkNo;\n }",
"@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }",
"@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }",
"protected int getChunkInRegion() {\n\t\treturn (rnd.nextInt(structurePosRange) + rnd.nextInt(structurePosRange)) / 2;\n\t}",
"@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }",
"@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"private int getChunk(byte [] buffer, int offset, String chunk) {\r\n\t\ttry {\r\n\t\t\tfor (;;) {\r\n\t\t\t\tint dataLenght = getInt(buffer, offset);\r\n\t\t\t\tif (compareBytes(buffer, offset+4, chunk)) {\r\n\t\t\t\t\treturn offset;\r\n\t\t\t\t} else {\r\n\t\t\t\t\toffset += 4 + 4 + dataLenght + 4;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception e) {};\r\n\t\treturn -1;\r\n\t}",
"entities.Torrent.ChunkInfo getChunks(int index);",
"int getNumOfChunks();",
"edu.usfca.cs.dfs.StorageMessages.StoreChunkLocation getChunksLocation(int index);",
"private int chunk(long timestamp) {\n int chunkid;\n \n if (timestamp >= 0) {\n chunkid = (int) ((timestamp / chunklen) % chunkcount);\n } else {\n chunkid = chunkcount + (int) ((((timestamp + 1) / chunklen) % chunkcount) - 1);\n //chunkid = chunkcount - (int) ((- (timestamp + 1) / chunklen) % chunkcount);\n }\n \n return chunkid;\n }",
"int getChunksCount();",
"int getChunksCount();",
"public int getHighestChunk() {\n return highestChunk_;\n }",
"int getChunksLocationCount();",
"public int getChunkWidth() {\n return 256;\n }",
"public int currentChunkNum() {\n\t\treturn cp.chunk().getChunkNum();\n\t}",
"int getChunkSize();",
"public void nextTextureIndexX() {\n/* 245 */ this.particleTextureIndexX++;\n/* */ }",
"List<DownloadChunk> mo54445j(int i);",
"void sendChunkRequest(int chunkX, int chunkY);",
"protected String _getChunkId(String id, int index) {\n\t\treturn id + \"[\" + index + \"]\";\n\t}",
"public int getChunkHeight() {\n return 256;\n }",
"public int getHighestChunk() {\n return highestChunk_;\n }",
"String getChunkType();",
"protected int getTextureIndex() {\n/* 83 */ return getData() & 0x7;\n/* */ }",
"public int getChunkCount () {\n return (this.getTagCount()>>BITS_TO_SHIFT_FOR_CHUNK) + 1;\n }",
"public abstract int getNextBlock(int block) throws IOException;",
"public int getInternalBlockLength()\r\n/* 40: */ {\r\n/* 41: 95 */ return 32;\r\n/* 42: */ }",
"private static boolean parseChunk(final FileChannel fc,final long[] offset,final int depth) throws IOException {\n\t Log.d(TAG, \"entering parseChunk \"+ offset[0] +\"/\"+ depth);\n\n\t long data_offset = offset[0];\n\n long chunk_size = Util.readUInt(fc, data_offset); \n int chunk_type = Util.readInt(fc, data_offset+4);\n\n Log.v(TAG, chunk_type + \" \" + chunk_size);\n char sChunk[] = new char[4];\n Util.MakeFourCCString(chunk_type, sChunk);\n Log.v(TAG, String.format(\"chunk %s\", String.valueOf(sChunk)));\n\n data_offset += 8;\n // long chunk_data_size = offset[0] + chunk_size - data_offset;\n\n if (chunk_size == 1) {\n\n chunk_size = Util.readLong(fc, data_offset);\n\n data_offset += 8;\n\n if (chunk_size < 16) {\n Log.e(TAG,\" The smallest valid chunk is 16 bytes long in this case.\");\n return false;\n }\n\n } else if (chunk_size < 8) {\n Log.e(TAG,\"The smallest valid chunk is 8 bytes long.\");\n return false;\n }\n\n Log.v(TAG, String.format(\"parsing chunk %s at depth %d\",\n String.valueOf(sChunk), depth));\n\n if(chunk_type == Util.FOURCC('m', 'o', 'o', 'v') || chunk_type == Util.FOURCC('u', 'd', 't', 'a')) {\n Log.d(TAG, String.valueOf(sChunk));\n\n long stop_offset = offset[0] + chunk_size;\n offset[0] = data_offset;\n while (offset[0] < stop_offset) {\n boolean err = parseChunk(fc,offset, depth + 1);\n if (!err) {\n return err;\n }\n }\n\n if (offset[0] != stop_offset) {\n return false;\n }\n\n if (chunk_type == Util.FOURCC('m', 'o', 'o', 'v') ) {\n return true;\n }\n }\n else if(chunk_type == Util.FOURCC('h', 't', 'c', 'b')) {\n Log.d(TAG,\"Found Htc MetaData\");\n sHtcTableOffset = data_offset;\n Log.d(TAG,\"sHtcTableOffset = \" + sHtcTableOffset );\n parseHtcMetaData(fc,data_offset,chunk_size);\n Log.d(TAG,\"Parse Htc MetaData done\");\n offset[0] += chunk_size;\n } else if (chunk_type == Util.FOURCC('_', 'h', 't', 'c')\n || chunk_type == Util.FOURCC('d', 't', 'a', 'h')) {\n Log.d(TAG, \"Found HTC box\");\n offset[0] += 8;\n parseChunk(fc, offset, depth + 1);\n } else {\n offset[0] += chunk_size;\n }\n return true;\n }",
"public int getMaxSpawnedInChunk()\n {\n return 1;\n }",
"public boolean isNewChunk() {\n/* 26 */ return this.newChunk;\n/* */ }",
"boolean hasChunkId();",
"void mo54426b(int i, List<DownloadChunk> list);",
"@NotNull\n int getTrustedChunks();",
"void mo54414a(int i, List<DownloadChunk> list);",
"long getChunkSize();",
"long getChunkSize();",
"long getChunkSize();",
"long getChunkSize();",
"edu.usfca.cs.dfs.StorageMessages.StoreChunk getStoreChunk();",
"public void map( Chunk bv ) { }",
"int mo1684a(byte[] bArr, int i, int i2);",
"private int getCol(int index) {\n return index & (chunkSize - 1);\n }",
"int getBlockNumber();",
"int getBlockNumber();",
"public static long getChunks() {\n return chunks;\n }",
"public Vector2i getChunkSize() {\n return new Vector2i(getChunkWidth(), getChunkHeight());\n }",
"public void setChunkNumber(int chunkNumber) {\r\n\t\tthis.chunkNumber = chunkNumber;\r\n\t}",
"private static void blockCoordsToChunkCoords(Vector3i pos) {\n pos.x >>= 4;\n pos.y >>= 4;\n pos.z >>= 4;\n }",
"public void map( Chunk c ) { }",
"public int getNumOfChunks() {\n return numOfChunks_;\n }",
"@Test\n public void testChunkType() {\n final int[] count = new int[255];\n final SctpChunk.Type[] types = SctpChunk.Type.values();\n for (int i = 0; i < types.length; ++i) {\n count[types[i].getType()] = count[types[i].getType()] + 1;\n }\n\n for (int i = 0; i < count.length; ++i) {\n assertThat(\"Found multiple type definitions for Chunk Type \" + i, count[i] < 2, is(true));\n }\n\n }",
"public boolean getChunking () {\n\treturn chunk;\n }",
"edu.usfca.cs.dfs.StorageMessages.StoreChunkLocation getStoreChunkLocation();",
"private void generateNextChunk() {\n \n chunkNumber++;\n \n // generate a chunk filled with content\n List<Object> list = chunkFactory.generateChunk(chunkNumber);\n Vector3f newChunkPosition =\n new Vector3f(nextChunkX, 0f, 0f);\n nextChunkX += P.chunkLength;\n\n for (Object object : list) {\n if (object instanceof Spatial) {\n Spatial spatial = (Spatial) object;\n addToLevel(spatial, spatial.getLocalTranslation().add(newChunkPosition));\n } else if (object instanceof SpotLight) {\n SpotLight light = (SpotLight) object;\n addToLevel(light, light.getPosition().add(newChunkPosition));\n } else if (object instanceof PointLight) {\n PointLight light = (PointLight) object;\n addToLevel(light, light.getPosition().add(newChunkPosition)); \n }\n }\n\n }",
"protected int nextInt(int p_75902_1_) {\n/* 135 */ int var2 = (int)((this.chunkSeed >> 24) % p_75902_1_);\n/* */ \n/* 137 */ if (var2 < 0)\n/* */ {\n/* 139 */ var2 += p_75902_1_;\n/* */ }\n/* */ \n/* 142 */ this.chunkSeed *= (this.chunkSeed * 6364136223846793005L + 1442695040888963407L);\n/* 143 */ this.chunkSeed += this.worldGenSeed;\n/* 144 */ return var2;\n/* */ }",
"private int getIndex2(int val){\n return val/bucket;\n }",
"@Override\r\n\tpublic int getIndexStep() {\n\t\t\r\n\t\treturn 2;\r\n\t}",
"int getSplitIndex();",
"public int getBlockSize()\n/* */ {\n/* 43 */ return this.blockSize;\n/* */ }",
"int sampleOffset();",
"public ChunkType getType();",
"protected int arrayIndex(long windowIndex) {\n return (int) (windowIndex % length());\n }",
"int getTotalBlockNum();",
"void mo54417a(DownloadChunk downloadChunk);",
"public int getChunkSize() {\n return chunkSize;\n }",
"public static void splitFile() throws IOException{\n\t\tPath currentRelativePath = Paths.get(\"\");\n\t\tFile file = new File(currentRelativePath.toAbsolutePath().toString()+\"/\"+fileName);\n\n\t\t//fileChunks are of size windowSize\n\t\tint num = fileSize; \n\t\tint lastByteRead = 0;\n\t\tint start =0;\n\t\tint i= 0; //where we are in bitfield map\n\t\tbyte[] fileChunkArray = new byte[windowSize];\n\t\t//read in the file\n\t\ttry{\n\t\t\tFileInputStream fileInputStream = new FileInputStream(file);\n\t\t\twhile(num > 0){\n\t\t\t\tif (num <= 5){\n\t\t\t\t\twindowSize = num;\n\t\t\t\t}\n\t\t\t\t// byte[] fileChunkArray = new byte[windowSize];\n\t\t\t\t\n\t\t\t\tlastByteRead = fileInputStream.read(fileChunkArray,0,windowSize);\n\t\t\t\t\n\t\t\t\t// start = start +windowSize;\n\t\t\t\t\n\t\t\t\t// String s1 = new String(fileChunkArray);\n\t\t\t\tSystem.out.print(\"the chunkarray length is :\" + fileChunkArray.length);\n\t\t\t\tSystem.out.print(\"the lastbyte read is :\"+ lastByteRead);\n\t\t\t\t// System.out.print(\"the fileChunk array is :\"+ s1);\n\t\t\t\tbitfieldMap.put(lastByteRead,fileChunkArray);\n\t\t\t\ti++;\n\t\t\t\tdynamicName = fileName+ i;\n\t\t\t\tworkingDirectory = System.getProperty(\"user.dir\");\n\t\t\t\tabsoluteFilePath = workingDirectory + File.separator + dynamicName;\n\t\t\t\tnum = num - windowSize; \n\t\t\t\tFileOutputStream newFile = new FileOutputStream(absoluteFilePath);\n\t\t\t\tnewFile.write(fileChunkArray);\n\t\t\t\tnewFile.flush();\n\t\t\t\tnewFile.close();\n\n\t\t\t}\n\t\t\tfileInputStream.close();\t\n\t\t}catch(IOException ioe){\n\t\t\tSystem.out.println(\"Could not split file: \" + ioe);\n\t\t}\n\t}",
"public void map( Chunk cs[] ) { }",
"int getBlockNumbers(int index);",
"private int getImageBufferStartIndex(int trackNumber, FloppyDriveSide side) {\n return BYTES_PER_SECTOR * (SECTORS_PER_TRACK * (trackNumber * 2 + side.ordinal())\n + sectorIndex);\n }",
"int getReadPosition(int index) {\n/* 170 */ return index - this.origPos + this.readerIndex;\n/* */ }",
"private int getIndex(int val){\n return val%bucket;\n }",
"@Test\n public void chunkPosShouldBePlayerPosDividedByChunkSizeWherePlayerAt1By1() {\n final int sideLengthOfBlock = 10;\n final int rowAmountInChunk = 11;\n\n MatcherAssert.assertThat(\n this.targetCompass(\n sideLengthOfBlock,\n rowAmountInChunk,\n new Point(1, 1)\n ).chunkPos(),\n CoreMatchers.equalTo(new Point(0, 0))\n );\n }",
"private int key(int chunkX, int chunkY, int chunkZ) {\n if (chunkX >= 2048 || chunkX < 0 || chunkY >= 2048 || chunkY < 0 || chunkZ >= 4 || chunkZ < 0) {\n throw new IllegalArgumentException(\"ChunkX and ChunkY must range from 0-2047 inclusive (given x:\" + chunkX + \" and y: \" + chunkY + \"), and chunkZ must range from 0-3 inclusive (Given z: \" + chunkZ + \")\");\n }\n return (chunkZ << 30) | (chunkX << 15) | (chunkY);\n }",
"protected int realIndex(int index) {\n return index & (buf.length -1);\n }",
"private int getPmidIdx() {\n return this.colStartOffset + 2;\n }",
"protected int populateBuffer()\n {\n interlock.beginReading();\n // System.out.println(\"populateBuffer: 2\");\n return byteBuffer.limit();\n }"
] |
[
"0.785442",
"0.785442",
"0.73773885",
"0.73773885",
"0.73773885",
"0.73773885",
"0.73773885",
"0.73773885",
"0.6741172",
"0.6741172",
"0.66893995",
"0.66893995",
"0.6663846",
"0.66030824",
"0.66030824",
"0.65638685",
"0.65638685",
"0.65638685",
"0.65638685",
"0.65638685",
"0.65638685",
"0.6424548",
"0.6424548",
"0.6424548",
"0.6424548",
"0.6424548",
"0.6424548",
"0.6410397",
"0.6400465",
"0.6379588",
"0.6373404",
"0.6315273",
"0.6189685",
"0.6189685",
"0.61568904",
"0.61450183",
"0.6116205",
"0.600113",
"0.592988",
"0.5924839",
"0.590925",
"0.5907171",
"0.5883504",
"0.5868158",
"0.58488417",
"0.5830536",
"0.5826126",
"0.58231753",
"0.57997054",
"0.57831234",
"0.5773982",
"0.57738006",
"0.5764445",
"0.5730925",
"0.57199186",
"0.5672394",
"0.5635696",
"0.56262887",
"0.56262887",
"0.56262887",
"0.56262887",
"0.5625486",
"0.56026787",
"0.55572665",
"0.5555952",
"0.55468774",
"0.55468774",
"0.5537924",
"0.5523598",
"0.55199176",
"0.55137247",
"0.55008006",
"0.5499361",
"0.5496236",
"0.54885995",
"0.54849046",
"0.54820436",
"0.54716635",
"0.54495907",
"0.544209",
"0.5437883",
"0.5429143",
"0.5428823",
"0.5428345",
"0.54230964",
"0.5416858",
"0.54106504",
"0.5405122",
"0.54008263",
"0.5391839",
"0.5382947",
"0.53820837",
"0.5372417",
"0.5371448",
"0.53595173",
"0.53501457",
"0.53402644",
"0.53377634",
"0.53344655"
] |
0.574476
|
54
|
uint32 chunkIndex = 2;
|
public Builder clearChunkIndex() {
chunkIndex_ = 0;
onChanged();
return this;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"int getChunkIndex();",
"int getChunkIndex();",
"int getChunkId();",
"int getChunkId();",
"int getChunkId();",
"int getChunkId();",
"int getChunkId();",
"int getChunkId();",
"public int getChunkNo() {\n return chunkNo;\n }",
"public int getChunkNo() {\n return chunkNo;\n }",
"@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }",
"@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }",
"protected int getChunkInRegion() {\n\t\treturn (rnd.nextInt(structurePosRange) + rnd.nextInt(structurePosRange)) / 2;\n\t}",
"@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }",
"@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"private int getChunk(byte [] buffer, int offset, String chunk) {\r\n\t\ttry {\r\n\t\t\tfor (;;) {\r\n\t\t\t\tint dataLenght = getInt(buffer, offset);\r\n\t\t\t\tif (compareBytes(buffer, offset+4, chunk)) {\r\n\t\t\t\t\treturn offset;\r\n\t\t\t\t} else {\r\n\t\t\t\t\toffset += 4 + 4 + dataLenght + 4;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception e) {};\r\n\t\treturn -1;\r\n\t}",
"entities.Torrent.ChunkInfo getChunks(int index);",
"int getNumOfChunks();",
"edu.usfca.cs.dfs.StorageMessages.StoreChunkLocation getChunksLocation(int index);",
"private int chunk(long timestamp) {\n int chunkid;\n \n if (timestamp >= 0) {\n chunkid = (int) ((timestamp / chunklen) % chunkcount);\n } else {\n chunkid = chunkcount + (int) ((((timestamp + 1) / chunklen) % chunkcount) - 1);\n //chunkid = chunkcount - (int) ((- (timestamp + 1) / chunklen) % chunkcount);\n }\n \n return chunkid;\n }",
"int getChunksCount();",
"int getChunksCount();",
"public int getHighestChunk() {\n return highestChunk_;\n }",
"int getChunksLocationCount();",
"public int getChunkWidth() {\n return 256;\n }",
"public int currentChunkNum() {\n\t\treturn cp.chunk().getChunkNum();\n\t}",
"int getChunkSize();",
"public void nextTextureIndexX() {\n/* 245 */ this.particleTextureIndexX++;\n/* */ }",
"List<DownloadChunk> mo54445j(int i);",
"void sendChunkRequest(int chunkX, int chunkY);",
"protected String _getChunkId(String id, int index) {\n\t\treturn id + \"[\" + index + \"]\";\n\t}",
"public int getChunkHeight() {\n return 256;\n }",
"public int getHighestChunk() {\n return highestChunk_;\n }",
"String getChunkType();",
"protected int getTextureIndex() {\n/* 83 */ return getData() & 0x7;\n/* */ }",
"public int getChunkCount () {\n return (this.getTagCount()>>BITS_TO_SHIFT_FOR_CHUNK) + 1;\n }",
"public abstract int getNextBlock(int block) throws IOException;",
"public int getInternalBlockLength()\r\n/* 40: */ {\r\n/* 41: 95 */ return 32;\r\n/* 42: */ }",
"private static boolean parseChunk(final FileChannel fc,final long[] offset,final int depth) throws IOException {\n\t Log.d(TAG, \"entering parseChunk \"+ offset[0] +\"/\"+ depth);\n\n\t long data_offset = offset[0];\n\n long chunk_size = Util.readUInt(fc, data_offset); \n int chunk_type = Util.readInt(fc, data_offset+4);\n\n Log.v(TAG, chunk_type + \" \" + chunk_size);\n char sChunk[] = new char[4];\n Util.MakeFourCCString(chunk_type, sChunk);\n Log.v(TAG, String.format(\"chunk %s\", String.valueOf(sChunk)));\n\n data_offset += 8;\n // long chunk_data_size = offset[0] + chunk_size - data_offset;\n\n if (chunk_size == 1) {\n\n chunk_size = Util.readLong(fc, data_offset);\n\n data_offset += 8;\n\n if (chunk_size < 16) {\n Log.e(TAG,\" The smallest valid chunk is 16 bytes long in this case.\");\n return false;\n }\n\n } else if (chunk_size < 8) {\n Log.e(TAG,\"The smallest valid chunk is 8 bytes long.\");\n return false;\n }\n\n Log.v(TAG, String.format(\"parsing chunk %s at depth %d\",\n String.valueOf(sChunk), depth));\n\n if(chunk_type == Util.FOURCC('m', 'o', 'o', 'v') || chunk_type == Util.FOURCC('u', 'd', 't', 'a')) {\n Log.d(TAG, String.valueOf(sChunk));\n\n long stop_offset = offset[0] + chunk_size;\n offset[0] = data_offset;\n while (offset[0] < stop_offset) {\n boolean err = parseChunk(fc,offset, depth + 1);\n if (!err) {\n return err;\n }\n }\n\n if (offset[0] != stop_offset) {\n return false;\n }\n\n if (chunk_type == Util.FOURCC('m', 'o', 'o', 'v') ) {\n return true;\n }\n }\n else if(chunk_type == Util.FOURCC('h', 't', 'c', 'b')) {\n Log.d(TAG,\"Found Htc MetaData\");\n sHtcTableOffset = data_offset;\n Log.d(TAG,\"sHtcTableOffset = \" + sHtcTableOffset );\n parseHtcMetaData(fc,data_offset,chunk_size);\n Log.d(TAG,\"Parse Htc MetaData done\");\n offset[0] += chunk_size;\n } else if (chunk_type == Util.FOURCC('_', 'h', 't', 'c')\n || chunk_type == Util.FOURCC('d', 't', 'a', 'h')) {\n Log.d(TAG, \"Found HTC box\");\n offset[0] += 8;\n parseChunk(fc, offset, depth + 1);\n } else {\n offset[0] += chunk_size;\n }\n return true;\n }",
"public int getMaxSpawnedInChunk()\n {\n return 1;\n }",
"public boolean isNewChunk() {\n/* 26 */ return this.newChunk;\n/* */ }",
"public Builder setChunkIndex(int value) {\n\n chunkIndex_ = value;\n onChanged();\n return this;\n }",
"public Builder setChunkIndex(int value) {\n\n chunkIndex_ = value;\n onChanged();\n return this;\n }",
"boolean hasChunkId();",
"void mo54426b(int i, List<DownloadChunk> list);",
"@NotNull\n int getTrustedChunks();",
"void mo54414a(int i, List<DownloadChunk> list);",
"long getChunkSize();",
"long getChunkSize();",
"long getChunkSize();",
"long getChunkSize();",
"edu.usfca.cs.dfs.StorageMessages.StoreChunk getStoreChunk();",
"public void map( Chunk bv ) { }",
"int mo1684a(byte[] bArr, int i, int i2);",
"private int getCol(int index) {\n return index & (chunkSize - 1);\n }",
"int getBlockNumber();",
"int getBlockNumber();",
"public static long getChunks() {\n return chunks;\n }",
"public Vector2i getChunkSize() {\n return new Vector2i(getChunkWidth(), getChunkHeight());\n }",
"public void setChunkNumber(int chunkNumber) {\r\n\t\tthis.chunkNumber = chunkNumber;\r\n\t}",
"private static void blockCoordsToChunkCoords(Vector3i pos) {\n pos.x >>= 4;\n pos.y >>= 4;\n pos.z >>= 4;\n }",
"public void map( Chunk c ) { }",
"public int getNumOfChunks() {\n return numOfChunks_;\n }",
"@Test\n public void testChunkType() {\n final int[] count = new int[255];\n final SctpChunk.Type[] types = SctpChunk.Type.values();\n for (int i = 0; i < types.length; ++i) {\n count[types[i].getType()] = count[types[i].getType()] + 1;\n }\n\n for (int i = 0; i < count.length; ++i) {\n assertThat(\"Found multiple type definitions for Chunk Type \" + i, count[i] < 2, is(true));\n }\n\n }",
"public boolean getChunking () {\n\treturn chunk;\n }",
"edu.usfca.cs.dfs.StorageMessages.StoreChunkLocation getStoreChunkLocation();",
"private void generateNextChunk() {\n \n chunkNumber++;\n \n // generate a chunk filled with content\n List<Object> list = chunkFactory.generateChunk(chunkNumber);\n Vector3f newChunkPosition =\n new Vector3f(nextChunkX, 0f, 0f);\n nextChunkX += P.chunkLength;\n\n for (Object object : list) {\n if (object instanceof Spatial) {\n Spatial spatial = (Spatial) object;\n addToLevel(spatial, spatial.getLocalTranslation().add(newChunkPosition));\n } else if (object instanceof SpotLight) {\n SpotLight light = (SpotLight) object;\n addToLevel(light, light.getPosition().add(newChunkPosition));\n } else if (object instanceof PointLight) {\n PointLight light = (PointLight) object;\n addToLevel(light, light.getPosition().add(newChunkPosition)); \n }\n }\n\n }",
"protected int nextInt(int p_75902_1_) {\n/* 135 */ int var2 = (int)((this.chunkSeed >> 24) % p_75902_1_);\n/* */ \n/* 137 */ if (var2 < 0)\n/* */ {\n/* 139 */ var2 += p_75902_1_;\n/* */ }\n/* */ \n/* 142 */ this.chunkSeed *= (this.chunkSeed * 6364136223846793005L + 1442695040888963407L);\n/* 143 */ this.chunkSeed += this.worldGenSeed;\n/* 144 */ return var2;\n/* */ }",
"private int getIndex2(int val){\n return val/bucket;\n }",
"@Override\r\n\tpublic int getIndexStep() {\n\t\t\r\n\t\treturn 2;\r\n\t}",
"int getSplitIndex();",
"public int getBlockSize()\n/* */ {\n/* 43 */ return this.blockSize;\n/* */ }",
"int sampleOffset();",
"public ChunkType getType();",
"protected int arrayIndex(long windowIndex) {\n return (int) (windowIndex % length());\n }",
"int getTotalBlockNum();",
"void mo54417a(DownloadChunk downloadChunk);",
"public int getChunkSize() {\n return chunkSize;\n }",
"public static void splitFile() throws IOException{\n\t\tPath currentRelativePath = Paths.get(\"\");\n\t\tFile file = new File(currentRelativePath.toAbsolutePath().toString()+\"/\"+fileName);\n\n\t\t//fileChunks are of size windowSize\n\t\tint num = fileSize; \n\t\tint lastByteRead = 0;\n\t\tint start =0;\n\t\tint i= 0; //where we are in bitfield map\n\t\tbyte[] fileChunkArray = new byte[windowSize];\n\t\t//read in the file\n\t\ttry{\n\t\t\tFileInputStream fileInputStream = new FileInputStream(file);\n\t\t\twhile(num > 0){\n\t\t\t\tif (num <= 5){\n\t\t\t\t\twindowSize = num;\n\t\t\t\t}\n\t\t\t\t// byte[] fileChunkArray = new byte[windowSize];\n\t\t\t\t\n\t\t\t\tlastByteRead = fileInputStream.read(fileChunkArray,0,windowSize);\n\t\t\t\t\n\t\t\t\t// start = start +windowSize;\n\t\t\t\t\n\t\t\t\t// String s1 = new String(fileChunkArray);\n\t\t\t\tSystem.out.print(\"the chunkarray length is :\" + fileChunkArray.length);\n\t\t\t\tSystem.out.print(\"the lastbyte read is :\"+ lastByteRead);\n\t\t\t\t// System.out.print(\"the fileChunk array is :\"+ s1);\n\t\t\t\tbitfieldMap.put(lastByteRead,fileChunkArray);\n\t\t\t\ti++;\n\t\t\t\tdynamicName = fileName+ i;\n\t\t\t\tworkingDirectory = System.getProperty(\"user.dir\");\n\t\t\t\tabsoluteFilePath = workingDirectory + File.separator + dynamicName;\n\t\t\t\tnum = num - windowSize; \n\t\t\t\tFileOutputStream newFile = new FileOutputStream(absoluteFilePath);\n\t\t\t\tnewFile.write(fileChunkArray);\n\t\t\t\tnewFile.flush();\n\t\t\t\tnewFile.close();\n\n\t\t\t}\n\t\t\tfileInputStream.close();\t\n\t\t}catch(IOException ioe){\n\t\t\tSystem.out.println(\"Could not split file: \" + ioe);\n\t\t}\n\t}",
"public void map( Chunk cs[] ) { }",
"int getBlockNumbers(int index);",
"private int getImageBufferStartIndex(int trackNumber, FloppyDriveSide side) {\n return BYTES_PER_SECTOR * (SECTORS_PER_TRACK * (trackNumber * 2 + side.ordinal())\n + sectorIndex);\n }",
"int getReadPosition(int index) {\n/* 170 */ return index - this.origPos + this.readerIndex;\n/* */ }",
"private int getIndex(int val){\n return val%bucket;\n }",
"@Test\n public void chunkPosShouldBePlayerPosDividedByChunkSizeWherePlayerAt1By1() {\n final int sideLengthOfBlock = 10;\n final int rowAmountInChunk = 11;\n\n MatcherAssert.assertThat(\n this.targetCompass(\n sideLengthOfBlock,\n rowAmountInChunk,\n new Point(1, 1)\n ).chunkPos(),\n CoreMatchers.equalTo(new Point(0, 0))\n );\n }",
"private int key(int chunkX, int chunkY, int chunkZ) {\n if (chunkX >= 2048 || chunkX < 0 || chunkY >= 2048 || chunkY < 0 || chunkZ >= 4 || chunkZ < 0) {\n throw new IllegalArgumentException(\"ChunkX and ChunkY must range from 0-2047 inclusive (given x:\" + chunkX + \" and y: \" + chunkY + \"), and chunkZ must range from 0-3 inclusive (Given z: \" + chunkZ + \")\");\n }\n return (chunkZ << 30) | (chunkX << 15) | (chunkY);\n }",
"protected int realIndex(int index) {\n return index & (buf.length -1);\n }",
"private int getPmidIdx() {\n return this.colStartOffset + 2;\n }",
"protected int populateBuffer()\n {\n interlock.beginReading();\n // System.out.println(\"populateBuffer: 2\");\n return byteBuffer.limit();\n }"
] |
[
"0.785442",
"0.785442",
"0.73773885",
"0.73773885",
"0.73773885",
"0.73773885",
"0.73773885",
"0.73773885",
"0.6741172",
"0.6741172",
"0.66893995",
"0.66893995",
"0.6663846",
"0.66030824",
"0.66030824",
"0.65638685",
"0.65638685",
"0.65638685",
"0.65638685",
"0.65638685",
"0.65638685",
"0.6424548",
"0.6424548",
"0.6424548",
"0.6424548",
"0.6424548",
"0.6424548",
"0.6410397",
"0.6400465",
"0.6379588",
"0.6373404",
"0.6315273",
"0.6189685",
"0.6189685",
"0.61568904",
"0.61450183",
"0.6116205",
"0.600113",
"0.592988",
"0.5924839",
"0.590925",
"0.5907171",
"0.5883504",
"0.5868158",
"0.58488417",
"0.5830536",
"0.5826126",
"0.58231753",
"0.57997054",
"0.57831234",
"0.5773982",
"0.57738006",
"0.5764445",
"0.57457185",
"0.574476",
"0.5730925",
"0.57199186",
"0.5672394",
"0.5635696",
"0.56262887",
"0.56262887",
"0.56262887",
"0.56262887",
"0.5625486",
"0.56026787",
"0.55572665",
"0.5555952",
"0.55468774",
"0.55468774",
"0.5537924",
"0.5523598",
"0.55199176",
"0.55137247",
"0.55008006",
"0.5499361",
"0.5496236",
"0.54885995",
"0.54849046",
"0.54820436",
"0.54716635",
"0.54495907",
"0.544209",
"0.5437883",
"0.5429143",
"0.5428823",
"0.5428345",
"0.54230964",
"0.5416858",
"0.54106504",
"0.5405122",
"0.54008263",
"0.5391839",
"0.5382947",
"0.53820837",
"0.5372417",
"0.5371448",
"0.53595173",
"0.53501457",
"0.53402644",
"0.53377634",
"0.53344655"
] |
0.0
|
-1
|
.Status status = 1;
|
int getStatusValue();
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setStatus(String status) { this.status = status; }",
"void setStatus(STATUS status);",
"public void setStatus(EnumVar status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\r\n\t this.status = status;\r\n\t }",
"public void setStatus(Integer status) {\r\n this.status = status;\r\n }",
"public void setStatus(Integer status) {\r\n this.status = status;\r\n }",
"void setStatus(int status);",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(int status){\r\n\t\tthis.status=status;\r\n\t}",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(int status);",
"public void setStatus(int status);",
"public void setStatus(Boolean s){ status = s;}",
"public void setStatus(int status) {\n STATUS = status;\n }",
"public void setStatus(Status newStatus){\n status = newStatus;\n }",
"public void setStatus(String stat)\n {\n status = stat;\n }",
"private void setStatus(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n status_ = value;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(long status) {\r\n this.status = status;\r\n }",
"public void setStatus(Integer status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(Integer status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(String status) {\r\n this.status = status;\r\n }",
"public void setStatus(java.lang.Object status) {\n this.status = status;\n }",
"public void setStatus(Status status)\n {\n this.status = status;\n }",
"public void setgetStatus()\r\n\t{\r\n\t\tthis.status = 'S';\r\n\t}",
"public void setStatus(Byte status) {\r\n\t\tthis.status = status;\r\n\t}",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"@Override\n\t\tpublic void setStatus(int status) {\n\t\t\t\n\t\t}",
"public void setStatus(StatusEnum status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(Byte status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(int status) {\n this.status = status;\n }",
"public void setStatus(int status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\r\n this.status = status;\r\n }",
"public void setStatus(String status) {\r\n this.status = status;\r\n }",
"public void setStatus(String status) {\r\n this.status = status;\r\n }",
"public void setStatus(Short status) {\n this.status = status;\n }",
"public void setStatus(STATUS status) {\n this.status = status;\n }",
"void setStatus(String status);",
"public void setStatus(Short status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(Short status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(int v) \n {\n \n if (this.status != v)\n {\n this.status = v;\n setModified(true);\n }\n \n \n }",
"public void setStatus( Short status ) {\n this.status = status;\n }",
"public void setStatus(String newStatus){\n\n //assigns the value of newStatus to the status field\n this.status = newStatus;\n }",
"public Status getStatus(){\n return status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\n this.status = status;\n }"
] |
[
"0.7656765",
"0.76468766",
"0.7565312",
"0.7561203",
"0.75449044",
"0.75449044",
"0.75349724",
"0.74959093",
"0.74959093",
"0.74959093",
"0.74959093",
"0.74959093",
"0.74959093",
"0.74959093",
"0.7482147",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.74783385",
"0.74783385",
"0.746719",
"0.74658287",
"0.746098",
"0.7456925",
"0.7452718",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435248",
"0.7432568",
"0.7432568",
"0.7425985",
"0.74143654",
"0.74118876",
"0.7398544",
"0.7398282",
"0.73973185",
"0.73973185",
"0.7396562",
"0.73950607",
"0.7392215",
"0.7392215",
"0.7382456",
"0.7382456",
"0.7378742",
"0.73726434",
"0.73726434",
"0.7368736",
"0.73626804",
"0.7351154",
"0.7345713",
"0.7345713",
"0.73451585",
"0.7332328",
"0.7329264",
"0.73258084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.728639",
"0.728639",
"0.728639"
] |
0.0
|
-1
|
.Status status = 1;
|
entities.Torrent.Status getStatus();
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setStatus(String status) { this.status = status; }",
"void setStatus(STATUS status);",
"public void setStatus(EnumVar status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\r\n\t this.status = status;\r\n\t }",
"public void setStatus(Integer status) {\r\n this.status = status;\r\n }",
"public void setStatus(Integer status) {\r\n this.status = status;\r\n }",
"void setStatus(int status);",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(int status){\r\n\t\tthis.status=status;\r\n\t}",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(int status);",
"public void setStatus(int status);",
"public void setStatus(Boolean s){ status = s;}",
"public void setStatus(int status) {\n STATUS = status;\n }",
"public void setStatus(Status newStatus){\n status = newStatus;\n }",
"public void setStatus(String stat)\n {\n status = stat;\n }",
"private void setStatus(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n status_ = value;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(long status) {\r\n this.status = status;\r\n }",
"public void setStatus(Integer status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(Integer status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(String status) {\r\n this.status = status;\r\n }",
"public void setStatus(java.lang.Object status) {\n this.status = status;\n }",
"public void setStatus(Status status)\n {\n this.status = status;\n }",
"public void setgetStatus()\r\n\t{\r\n\t\tthis.status = 'S';\r\n\t}",
"public void setStatus(Byte status) {\r\n\t\tthis.status = status;\r\n\t}",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"@Override\n\t\tpublic void setStatus(int status) {\n\t\t\t\n\t\t}",
"public void setStatus(StatusEnum status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(Byte status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(int status) {\n this.status = status;\n }",
"public void setStatus(int status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\r\n this.status = status;\r\n }",
"public void setStatus(String status) {\r\n this.status = status;\r\n }",
"public void setStatus(String status) {\r\n this.status = status;\r\n }",
"public void setStatus(Short status) {\n this.status = status;\n }",
"public void setStatus(STATUS status) {\n this.status = status;\n }",
"void setStatus(String status);",
"public void setStatus(Short status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(Short status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(int v) \n {\n \n if (this.status != v)\n {\n this.status = v;\n setModified(true);\n }\n \n \n }",
"public void setStatus( Short status ) {\n this.status = status;\n }",
"public void setStatus(String newStatus){\n\n //assigns the value of newStatus to the status field\n this.status = newStatus;\n }",
"public Status getStatus(){\n return status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\n this.status = status;\n }"
] |
[
"0.7656765",
"0.76468766",
"0.7565312",
"0.7561203",
"0.75449044",
"0.75449044",
"0.75349724",
"0.74959093",
"0.74959093",
"0.74959093",
"0.74959093",
"0.74959093",
"0.74959093",
"0.74959093",
"0.7482147",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.74783385",
"0.74783385",
"0.746719",
"0.74658287",
"0.746098",
"0.7456925",
"0.7452718",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435248",
"0.7432568",
"0.7432568",
"0.7425985",
"0.74143654",
"0.74118876",
"0.7398544",
"0.7398282",
"0.73973185",
"0.73973185",
"0.7396562",
"0.73950607",
"0.7392215",
"0.7392215",
"0.7382456",
"0.7382456",
"0.7378742",
"0.73726434",
"0.73726434",
"0.7368736",
"0.73626804",
"0.7351154",
"0.7345713",
"0.7345713",
"0.73451585",
"0.7332328",
"0.7329264",
"0.73258084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.728639",
"0.728639",
"0.728639"
] |
0.0
|
-1
|
string errorMessage = 2;
|
java.lang.String getErrorMessage();
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"String errorMessage();",
"private void error(String string) {\n\t\r\n}",
"String getErrorMessage();",
"String getErrorMessage();",
"String getError(int i) {\n if (i >= 0 & i < msgs.length)\n return msgs[i];\n else\n return \"Invalid Error Code\";\n }",
"java.lang.String getError();",
"java.lang.String getError();",
"java.lang.String getError();",
"void showErrorMsg(String string);",
"String getGetErrorMessage();",
"java.lang.String getErr();",
"public String getErrorString()\r\n\t{\r\n\t\t\r\n\t\treturn ERROR_STRING;\r\n\t}",
"public void error(String string) {\n\t\t\n\t}",
"String getInvalidMessage();",
"private static String getMessage(int code) {\n switch (code) {\n case ME_DIV_BY_ZERO:\n return \"Attempt to divide by zero.\";\n case ME_ASSIGNLITERAL:\n return \"Attempt to assign to a literal.\";\n case ME_NONVARASSIGN:\n return \"Attempt to assign to a non-variable.\";\n default:\n return \"Unknown error.\";\n }\n }",
"String getErrorsString();",
"public String error();",
"public String getError() {\n\treturn mistake;\n }",
"private String getErrorString() {\n\t\treturn \"GUID:ERROR:\" + mErrors[0][0]\n\t\t + \":\" + mErrors[1][0]\n\t\t + \":\" + mErrors[2][0]\n\t\t + \":\" + mErrors[3][0];\n\t}",
"public String getErrorMessage() \r\n\t{\r\n\t\t\r\n\t\treturn errorMessage;\r\n\t\t\r\n\t}",
"public java.lang.String getErrorMessage(){\n return localErrorMessage;\n }",
"java.lang.String getErrmsg();",
"public String getErrorString()\n\t{\n\t\treturn errorString;\n\t}",
"public static String getLastErrorMessage()\r\n\t{\n\t\treturn lastAlert;\r\n\t}",
"String getMessage();",
"String getMessage();",
"String getMessage();",
"private int getErrorId(final String message) {\n\t\tif (isLowerCase(message)) {\n\t\t\treturn ERROR_LOWER_CASE;\n\t\t} else if (isUnunsedMacro(message)) {\n\t\t\treturn ERROR_UNUSED_MACRO;\n\t\t} else if (isUnunsedVariable(message)) {\n\t\t\treturn ERROR_UNUSED_VARIABLE;\n\t\t} else if (isEndLineSpace(message) || isNoSpace(message)) {\n\t\t\treturn ERROR_NO_SPACE;\n\t\t} else if (isOneSpace(message)) {\n\t\t\treturn ERROR_ONE_SPACE;\n\t\t} else {\n\t\t\treturn ERROR_INVALID;\n\t\t}\n\t}",
"public String getErrorString(String message) {\n \t\treturn getString(new StringBuffer(\"error.\").append(message).toString());\n \t}",
"String getErrorMessage(E input);",
"public String errorMessage()\n {\n return new String(errorMessageAsBytes());\n }",
"String Message ();",
"public String errorMessage() {\n return errorMessage;\n }",
"void SemErr(String str);",
"public String getErrorMessage()\n {\n return errorMessage;\n }",
"ErrorCodes(int code){\n this.code = code;\n //this.message = message;\n }",
"int getErrorCode();",
"public String getErrorCode();",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n errorMessage_ = s;\n }\n return s;\n }\n }",
"void showError(@StringRes int errorMessage);",
"void showError(String errorMessage);",
"private static int getErrorLine(String errmsg){\n\t\treturn Integer.parseInt(errmsg.substring(0,errmsg.indexOf(\":\")).substring(errmsg.substring(0,errmsg.indexOf(\":\")).lastIndexOf(\" \")+1));\n\t}",
"public String errorMessage()\n {\n return edma_errorMsg;\n }",
"public String getErrorMessage() {\r\n return this.errorMessage;\r\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public String errorMessage() {\n return this.errorMessage;\n }",
"public String getErrorMessage() {\n\t\treturn errorMessage;\n\t}",
"public int getError() {\n return error;\n }",
"public String getErrorMessage() {\n return this.errorMessage;\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"void setErrorMessage(String errorMessage);",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"static int errorMsg(int eCode)\n {\n if (eCode == 0) return 0;\n String message = \"\";\n switch (eCode){\n case 1: message = \"Division by zero\"; break;\n case 2: message = \"Non-matching parenthesis in function\"; break;\n case 3: message = \"Must enclose negative exponents in parentheses\"; break;\n case 4: message = \"Incorrect Operator Syntax\"; break;\n case 5: message = \"Rightfunctions must use parenthesis. (example: ABS(-2);\"; break;\n case 6: message = \"Unrecognized token in function srtring.\"; break;\n case 8: message = \"Can not raise negative number to a fractional power.\"; break;\n case 10:message = \"Input a real number with no operators\"; break;\n }\n JOptionPane.showMessageDialog(null, message, \"Error \"+eCode, JOptionPane.ERROR_MESSAGE);\n return 0;\n }",
"public String getError() {\n return errMsg;\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n }\n }",
"public String getMsgError() {\r\n\t\treturn msgError;\r\n\t}",
"public String getErrorMessage() {\n return errorMessage;\n }",
"public String getErrorMessage() {\n return errorMessage;\n }",
"public String getErrorMessage() {\n return errorMessage;\n }",
"String getFailureMessage();",
"public int error() {\n return this.error;\n }",
"public String getParseErrorMessage();",
"public String getErrorMessage() {\n return ERROR_MESSAGE;\n }",
"public String getError() {\r\n if (scriptError == null) return \"\";\r\n return scriptError;\r\n }",
"private String getGUIErrorMsg(long errorcode) {\n\t\tif (errorcode == 0) {\n\t\t\treturn \"This popup shouldn't have launched!\";\n\t\t} else if (errorcode == 9) {\n\t\t\treturn \"Latitude input format incorrect!\\nValid Latitude values are -90 to 90 with negative values being south Latitude.\";\n\t\t} else if (errorcode == 10) {\n\t\t\treturn \"Longitude input format incorrect!\\nValid Longitude values are -180 to 180 with negative values being west latitude.\";\n\t\t} else if (errorcode == 11) {\n\t\t\treturn \"Date input format incorrect!\\nValid dates go <year>-<month>-<day>\\nValid month values are 1- 12 and valid day values are 1 - 31.\";\n\t\t} else if (errorcode == 12) {\n\t\t\treturn \"Time input format incorrect!\\nValid times go <hour>-<minute>-<second>\\nValid hour values are 0 - 23 and valid minute and second values are 0 - 59\";\n\t\t} else if (errorcode == 1) {\n\t\t\treturn \"Invalid latitude!\\nValid Latitude values are -90 to 90 with negative values being south Latitude.\";\n\t\t} else if (errorcode == 2) {\n\t\t\treturn \"Invalid Longitude!\\nValid Longitude values are -180 to 180 with negative values being west latitude.\";\n\t\t} else if (errorcode == 3) {\n\t\t\treturn \"Invalid Year!\\nValid year values are \" + Integer.MIN_VALUE + \" - \" + Integer.MAX_VALUE + \".\";\n\t\t} else if (errorcode == 4) {\n\t\t\treturn \"Invalid Month!\\nValid month values are 1 - 12\";\n\t\t} else if (errorcode == 5) {\n\t\t\treturn \"Invalid Day!\\nValid day values are 1 - 31\";\n\t\t} else if (errorcode == 6) {\n\t\t\treturn \"Invalid Hour!\\nValid hour values are 0 - 23\";\n\t\t} else if (errorcode == 7) {\n\t\t\treturn \"Invalid Minute!\\nValid minute values are 0 - 59\";\n\t\t} else if (errorcode == 8) {\n\t\t\treturn \"Invalid Second!\\nValid second values are 0 - 59\";\n\t\t} \n\t\treturn \"Undefined Error Message!\";\n\t}",
"public void setErrorMsg(String text) {\n this.errorMsg = text;\n }",
"public int getErrorNo() {\n return this.errorNo;\n }",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();"
] |
[
"0.7234827",
"0.68487597",
"0.68242407",
"0.68242407",
"0.66320926",
"0.6613902",
"0.6613902",
"0.6613902",
"0.6587221",
"0.6458624",
"0.642881",
"0.6387629",
"0.6339448",
"0.63337046",
"0.6318866",
"0.6310054",
"0.6266495",
"0.6207546",
"0.6169787",
"0.6162002",
"0.61556125",
"0.61209476",
"0.6114965",
"0.61042917",
"0.60988075",
"0.60988075",
"0.60988075",
"0.60916275",
"0.60737956",
"0.6044167",
"0.60035205",
"0.59917176",
"0.59845275",
"0.59643966",
"0.5963419",
"0.59538627",
"0.5917793",
"0.58881736",
"0.58858836",
"0.5880861",
"0.58786815",
"0.5865479",
"0.5863698",
"0.5842632",
"0.583974",
"0.583974",
"0.583974",
"0.583974",
"0.583974",
"0.583974",
"0.583974",
"0.58391654",
"0.58391654",
"0.58391654",
"0.5837601",
"0.5828023",
"0.58268774",
"0.58249444",
"0.5820853",
"0.5818837",
"0.5808825",
"0.5808012",
"0.5803665",
"0.57976645",
"0.5796016",
"0.57934284",
"0.57934284",
"0.57934284",
"0.5786855",
"0.57868457",
"0.5785435",
"0.578205",
"0.576942",
"0.57514906",
"0.57502955",
"0.5743453",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053"
] |
0.65931696
|
17
|
string errorMessage = 2;
|
com.google.protobuf.ByteString
getErrorMessageBytes();
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"String errorMessage();",
"private void error(String string) {\n\t\r\n}",
"String getErrorMessage();",
"String getErrorMessage();",
"String getError(int i) {\n if (i >= 0 & i < msgs.length)\n return msgs[i];\n else\n return \"Invalid Error Code\";\n }",
"java.lang.String getError();",
"java.lang.String getError();",
"java.lang.String getError();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"void showErrorMsg(String string);",
"String getGetErrorMessage();",
"java.lang.String getErr();",
"public String getErrorString()\r\n\t{\r\n\t\t\r\n\t\treturn ERROR_STRING;\r\n\t}",
"public void error(String string) {\n\t\t\n\t}",
"String getInvalidMessage();",
"private static String getMessage(int code) {\n switch (code) {\n case ME_DIV_BY_ZERO:\n return \"Attempt to divide by zero.\";\n case ME_ASSIGNLITERAL:\n return \"Attempt to assign to a literal.\";\n case ME_NONVARASSIGN:\n return \"Attempt to assign to a non-variable.\";\n default:\n return \"Unknown error.\";\n }\n }",
"String getErrorsString();",
"public String error();",
"public String getError() {\n\treturn mistake;\n }",
"private String getErrorString() {\n\t\treturn \"GUID:ERROR:\" + mErrors[0][0]\n\t\t + \":\" + mErrors[1][0]\n\t\t + \":\" + mErrors[2][0]\n\t\t + \":\" + mErrors[3][0];\n\t}",
"public String getErrorMessage() \r\n\t{\r\n\t\t\r\n\t\treturn errorMessage;\r\n\t\t\r\n\t}",
"public java.lang.String getErrorMessage(){\n return localErrorMessage;\n }",
"java.lang.String getErrmsg();",
"public String getErrorString()\n\t{\n\t\treturn errorString;\n\t}",
"public static String getLastErrorMessage()\r\n\t{\n\t\treturn lastAlert;\r\n\t}",
"String getMessage();",
"String getMessage();",
"String getMessage();",
"private int getErrorId(final String message) {\n\t\tif (isLowerCase(message)) {\n\t\t\treturn ERROR_LOWER_CASE;\n\t\t} else if (isUnunsedMacro(message)) {\n\t\t\treturn ERROR_UNUSED_MACRO;\n\t\t} else if (isUnunsedVariable(message)) {\n\t\t\treturn ERROR_UNUSED_VARIABLE;\n\t\t} else if (isEndLineSpace(message) || isNoSpace(message)) {\n\t\t\treturn ERROR_NO_SPACE;\n\t\t} else if (isOneSpace(message)) {\n\t\t\treturn ERROR_ONE_SPACE;\n\t\t} else {\n\t\t\treturn ERROR_INVALID;\n\t\t}\n\t}",
"public String getErrorString(String message) {\n \t\treturn getString(new StringBuffer(\"error.\").append(message).toString());\n \t}",
"String getErrorMessage(E input);",
"public String errorMessage()\n {\n return new String(errorMessageAsBytes());\n }",
"String Message ();",
"public String errorMessage() {\n return errorMessage;\n }",
"void SemErr(String str);",
"public String getErrorMessage()\n {\n return errorMessage;\n }",
"ErrorCodes(int code){\n this.code = code;\n //this.message = message;\n }",
"int getErrorCode();",
"public String getErrorCode();",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n errorMessage_ = s;\n }\n return s;\n }\n }",
"void showError(@StringRes int errorMessage);",
"void showError(String errorMessage);",
"private static int getErrorLine(String errmsg){\n\t\treturn Integer.parseInt(errmsg.substring(0,errmsg.indexOf(\":\")).substring(errmsg.substring(0,errmsg.indexOf(\":\")).lastIndexOf(\" \")+1));\n\t}",
"public String errorMessage()\n {\n return edma_errorMsg;\n }",
"public String getErrorMessage() {\r\n return this.errorMessage;\r\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public String errorMessage() {\n return this.errorMessage;\n }",
"public String getErrorMessage() {\n\t\treturn errorMessage;\n\t}",
"public int getError() {\n return error;\n }",
"public String getErrorMessage() {\n return this.errorMessage;\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"void setErrorMessage(String errorMessage);",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"static int errorMsg(int eCode)\n {\n if (eCode == 0) return 0;\n String message = \"\";\n switch (eCode){\n case 1: message = \"Division by zero\"; break;\n case 2: message = \"Non-matching parenthesis in function\"; break;\n case 3: message = \"Must enclose negative exponents in parentheses\"; break;\n case 4: message = \"Incorrect Operator Syntax\"; break;\n case 5: message = \"Rightfunctions must use parenthesis. (example: ABS(-2);\"; break;\n case 6: message = \"Unrecognized token in function srtring.\"; break;\n case 8: message = \"Can not raise negative number to a fractional power.\"; break;\n case 10:message = \"Input a real number with no operators\"; break;\n }\n JOptionPane.showMessageDialog(null, message, \"Error \"+eCode, JOptionPane.ERROR_MESSAGE);\n return 0;\n }",
"public String getError() {\n return errMsg;\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n }\n }",
"public String getMsgError() {\r\n\t\treturn msgError;\r\n\t}",
"public String getErrorMessage() {\n return errorMessage;\n }",
"public String getErrorMessage() {\n return errorMessage;\n }",
"public String getErrorMessage() {\n return errorMessage;\n }",
"String getFailureMessage();",
"public int error() {\n return this.error;\n }",
"public String getParseErrorMessage();",
"public String getErrorMessage() {\n return ERROR_MESSAGE;\n }",
"public String getError() {\r\n if (scriptError == null) return \"\";\r\n return scriptError;\r\n }",
"private String getGUIErrorMsg(long errorcode) {\n\t\tif (errorcode == 0) {\n\t\t\treturn \"This popup shouldn't have launched!\";\n\t\t} else if (errorcode == 9) {\n\t\t\treturn \"Latitude input format incorrect!\\nValid Latitude values are -90 to 90 with negative values being south Latitude.\";\n\t\t} else if (errorcode == 10) {\n\t\t\treturn \"Longitude input format incorrect!\\nValid Longitude values are -180 to 180 with negative values being west latitude.\";\n\t\t} else if (errorcode == 11) {\n\t\t\treturn \"Date input format incorrect!\\nValid dates go <year>-<month>-<day>\\nValid month values are 1- 12 and valid day values are 1 - 31.\";\n\t\t} else if (errorcode == 12) {\n\t\t\treturn \"Time input format incorrect!\\nValid times go <hour>-<minute>-<second>\\nValid hour values are 0 - 23 and valid minute and second values are 0 - 59\";\n\t\t} else if (errorcode == 1) {\n\t\t\treturn \"Invalid latitude!\\nValid Latitude values are -90 to 90 with negative values being south Latitude.\";\n\t\t} else if (errorcode == 2) {\n\t\t\treturn \"Invalid Longitude!\\nValid Longitude values are -180 to 180 with negative values being west latitude.\";\n\t\t} else if (errorcode == 3) {\n\t\t\treturn \"Invalid Year!\\nValid year values are \" + Integer.MIN_VALUE + \" - \" + Integer.MAX_VALUE + \".\";\n\t\t} else if (errorcode == 4) {\n\t\t\treturn \"Invalid Month!\\nValid month values are 1 - 12\";\n\t\t} else if (errorcode == 5) {\n\t\t\treturn \"Invalid Day!\\nValid day values are 1 - 31\";\n\t\t} else if (errorcode == 6) {\n\t\t\treturn \"Invalid Hour!\\nValid hour values are 0 - 23\";\n\t\t} else if (errorcode == 7) {\n\t\t\treturn \"Invalid Minute!\\nValid minute values are 0 - 59\";\n\t\t} else if (errorcode == 8) {\n\t\t\treturn \"Invalid Second!\\nValid second values are 0 - 59\";\n\t\t} \n\t\treturn \"Undefined Error Message!\";\n\t}",
"public void setErrorMsg(String text) {\n this.errorMsg = text;\n }",
"public int getErrorNo() {\n return this.errorNo;\n }",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();"
] |
[
"0.7234827",
"0.68487597",
"0.68242407",
"0.68242407",
"0.66320926",
"0.6613902",
"0.6613902",
"0.6613902",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.6587221",
"0.6458624",
"0.642881",
"0.6387629",
"0.6339448",
"0.63337046",
"0.6318866",
"0.6310054",
"0.6266495",
"0.6207546",
"0.6169787",
"0.6162002",
"0.61556125",
"0.61209476",
"0.6114965",
"0.61042917",
"0.60988075",
"0.60988075",
"0.60988075",
"0.60916275",
"0.60737956",
"0.6044167",
"0.60035205",
"0.59917176",
"0.59845275",
"0.59643966",
"0.5963419",
"0.59538627",
"0.5917793",
"0.58881736",
"0.58858836",
"0.5880861",
"0.58786815",
"0.5865479",
"0.5863698",
"0.5842632",
"0.583974",
"0.583974",
"0.583974",
"0.583974",
"0.583974",
"0.583974",
"0.583974",
"0.58391654",
"0.58391654",
"0.58391654",
"0.5837601",
"0.5828023",
"0.58268774",
"0.58249444",
"0.5820853",
"0.5818837",
"0.5808825",
"0.5808012",
"0.5803665",
"0.57976645",
"0.5796016",
"0.57934284",
"0.57934284",
"0.57934284",
"0.5786855",
"0.57868457",
"0.5785435",
"0.578205",
"0.576942",
"0.57514906",
"0.57502955",
"0.5743453",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053"
] |
0.0
|
-1
|
Chunk content (1024 bytes or less) bytes data = 3;
|
com.google.protobuf.ByteString getData();
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private void readHttpDataChunkByChunk(HttpPostRequestDecoder decoder) {\n try {\n while (decoder.hasNext()) {\n InterfaceHttpData data = decoder.next();\n if (data != null) {\n // check if current HttpData is a FileUpload and previously set as partial\n if (partialContent == data) {\n partialContent = null;\n }\n try {\n // new value\n writeHttpData(data);\n } finally {\n data.release();\n }\n }\n }\n // Check partial decoding for a FileUpload\n InterfaceHttpData data = decoder.currentPartialHttpData();\n if (data != null) {\n if (partialContent == null) {\n partialContent = (HttpData) data;\n }\n }\n } catch (HttpPostRequestDecoder.EndOfDataDecoderException e1) {\n // end\n }\n }",
"DataChunk nextChunk() throws RemoteException;",
"private int getChunk(byte [] buffer, int offset, String chunk) {\r\n\t\ttry {\r\n\t\t\tfor (;;) {\r\n\t\t\t\tint dataLenght = getInt(buffer, offset);\r\n\t\t\t\tif (compareBytes(buffer, offset+4, chunk)) {\r\n\t\t\t\t\treturn offset;\r\n\t\t\t\t} else {\r\n\t\t\t\t\toffset += 4 + 4 + dataLenght + 4;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception e) {};\r\n\t\treturn -1;\r\n\t}",
"entities.Torrent.ChunkResponse getChunkResponse();",
"void sendChunkRequest(int chunkX, int chunkY);",
"private static boolean parseChunk(final FileChannel fc,final long[] offset,final int depth) throws IOException {\n\t Log.d(TAG, \"entering parseChunk \"+ offset[0] +\"/\"+ depth);\n\n\t long data_offset = offset[0];\n\n long chunk_size = Util.readUInt(fc, data_offset); \n int chunk_type = Util.readInt(fc, data_offset+4);\n\n Log.v(TAG, chunk_type + \" \" + chunk_size);\n char sChunk[] = new char[4];\n Util.MakeFourCCString(chunk_type, sChunk);\n Log.v(TAG, String.format(\"chunk %s\", String.valueOf(sChunk)));\n\n data_offset += 8;\n // long chunk_data_size = offset[0] + chunk_size - data_offset;\n\n if (chunk_size == 1) {\n\n chunk_size = Util.readLong(fc, data_offset);\n\n data_offset += 8;\n\n if (chunk_size < 16) {\n Log.e(TAG,\" The smallest valid chunk is 16 bytes long in this case.\");\n return false;\n }\n\n } else if (chunk_size < 8) {\n Log.e(TAG,\"The smallest valid chunk is 8 bytes long.\");\n return false;\n }\n\n Log.v(TAG, String.format(\"parsing chunk %s at depth %d\",\n String.valueOf(sChunk), depth));\n\n if(chunk_type == Util.FOURCC('m', 'o', 'o', 'v') || chunk_type == Util.FOURCC('u', 'd', 't', 'a')) {\n Log.d(TAG, String.valueOf(sChunk));\n\n long stop_offset = offset[0] + chunk_size;\n offset[0] = data_offset;\n while (offset[0] < stop_offset) {\n boolean err = parseChunk(fc,offset, depth + 1);\n if (!err) {\n return err;\n }\n }\n\n if (offset[0] != stop_offset) {\n return false;\n }\n\n if (chunk_type == Util.FOURCC('m', 'o', 'o', 'v') ) {\n return true;\n }\n }\n else if(chunk_type == Util.FOURCC('h', 't', 'c', 'b')) {\n Log.d(TAG,\"Found Htc MetaData\");\n sHtcTableOffset = data_offset;\n Log.d(TAG,\"sHtcTableOffset = \" + sHtcTableOffset );\n parseHtcMetaData(fc,data_offset,chunk_size);\n Log.d(TAG,\"Parse Htc MetaData done\");\n offset[0] += chunk_size;\n } else if (chunk_type == Util.FOURCC('_', 'h', 't', 'c')\n || chunk_type == Util.FOURCC('d', 't', 'a', 'h')) {\n Log.d(TAG, \"Found HTC box\");\n offset[0] += 8;\n parseChunk(fc, offset, depth + 1);\n } else {\n offset[0] += chunk_size;\n }\n return true;\n }",
"int getChunkSize();",
"@Test\n public void testChunkedOutputToChunkInput() throws Exception {\n final ChunkedInput<String> input = target().path(\"test\").request().get(new javax.ws.rs.core.GenericType<ChunkedInput<String>>() {});\n int counter = 0;\n String chunk;\n while ((chunk = input.read()) != null) {\n Assert.assertEquals((\"Unexpected value of chunk \" + counter), \"test\", chunk);\n counter++;\n } \n Assert.assertEquals(\"Unexpected numbed of received chunks.\", 3, counter);\n }",
"long getChunkSize();",
"long getChunkSize();",
"long getChunkSize();",
"long getChunkSize();",
"void handleChunk(char[] buff, int length) {\n\t\tint newlinePos = -1;\n\t\tfor (int pos = 0; pos < length; pos++) {\n\t\t\tif (buff[pos] == '\\n') {\n\t\t\t\tnewlinePos = pos;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (newlinePos > -1) {\n\t\t\tloaded.append(buff, 0, newlinePos);\n\t\t\tendLine();\n\t\t\tloaded.append(buff, newlinePos + 1, length - newlinePos - 1);\n\t\t} else {\n\t\t\tloaded.append(buff, 0, length);\n\t\t}\n\t}",
"public SmallChunkData(Chunk c){\n\t\t\tx = c.getX();\n\t\t\tz = c.getZ();\n\t\t\tworldName = c.getWorld().getName();\n\t\t\tfor(int x = 0; x < 16; x ++){\n\t\t\t\tfor(int z = 0; z < 16; z ++){\n\t\t\t\t\tbiomes[x][z] = c.getBlock(x, 0, z).getBiome();\n\t\t\t\t}\n\t\t\t}\n\t\t\t/*for(int y = 0; y < 256; y ++){\n\t\t\t\tfor(int x = 0; x < 16; x ++){\n\t\t\t\t\tfor(int z = 0; z < 16; z ++){\n\t\t\t\t\t\tdata[y][x][z] = new MaterialData(c.getBlock(x, y, z).getType(), c.getBlock(x, y, z).getData());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}*/\n\t\t}",
"public int getChunkCount () {\n return (this.getTagCount()>>BITS_TO_SHIFT_FOR_CHUNK) + 1;\n }",
"byte[] getContent() throws IOException;",
"void mo54417a(DownloadChunk downloadChunk);",
"public int getChunkNo() {\n return chunkNo;\n }",
"public int getChunkNo() {\n return chunkNo;\n }",
"byte[] getContent();",
"byte[] getByteContent() throws IOException;",
"boolean canRequestChunk();",
"public int getChunkWidth() {\n return 256;\n }",
"entities.Torrent.ChunkRequest getChunkRequest();",
"public boolean isChunked() {\n/* 101 */ return this.chunked;\n/* */ }",
"public void writeChunk(String id, byte[] data) throws IOException {\n byte[] identifier = id.getBytes(\"US-ASCII\");\n if (identifier.length != 4) {\n throw new IllegalArgumentException(\"ID length must match 4!\");\n }\n writeInt(data.length);\n write(identifier);\n write(data);\n CRC32 crc = new CRC32();\n crc.update(identifier);\n crc.update(data);\n writeInt((int) (crc.getValue() & 0xFFFFFFFFL));\n crc.reset();\n }",
"public final ByteBlock getData() { return data; }",
"public void data(byte[] data, int count);",
"int getChunkId();",
"int getChunkId();",
"int getChunkId();",
"int getChunkId();",
"int getChunkId();",
"int getChunkId();",
"private void onReceivedResponseData(org.apache.http.HttpResponse r14, com.tencent.tmassistantsdk.protocol.jce.DownloadChunkLogInfo r15) {\n /*\n r13 = this;\n r2 = 705; // 0x2c1 float:9.88E-43 double:3.483E-321;\n r6 = 206; // 0xce float:2.89E-43 double:1.02E-321;\n r7 = 0;\n r12 = 0;\n r0 = r14.getEntity();\n r1 = r13.verifyTotalLen(r14, r0);\n if (r1 != 0) goto L_0x0022;\n L_0x0010:\n r0 = \"_DownloadTask\";\n r1 = \"verifyTotalLen false\";\n com.tencent.tmassistantsdk.util.TMLog.i(r0, r1);\n r0 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\n r1 = \"totalLen is not match the requestSize\";\n r0.<init>(r2, r1);\n throw r0;\n L_0x0022:\n r1 = r13.mDownloadInfo;\n r2 = r1.getTotalSize();\n r4 = 0;\n r1 = (r2 > r4 ? 1 : (r2 == r4 ? 0 : -1));\n if (r1 != 0) goto L_0x015c;\n L_0x002e:\n r1 = r14.getStatusLine();\n r1 = r1.getStatusCode();\n r2 = 200; // 0xc8 float:2.8E-43 double:9.9E-322;\n if (r1 != r2) goto L_0x00f9;\n L_0x003a:\n r1 = r13.mDownloadInfo;\n r2 = r0.getContentLength();\n r1.setTotalSize(r2);\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"HTTPCode 200, totalBytes:\";\n r2.<init>(r3);\n r3 = r13.mDownloadInfo;\n r4 = r3.getTotalSize();\n r2 = r2.append(r4);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.i(r1, r2);\n L_0x005f:\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"first start downloadinfoTotalSize = \";\n r2.<init>(r3);\n r3 = r13.mDownloadInfo;\n r4 = r3.getTotalSize();\n r2 = r2.append(r4);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r2);\n r1 = \"content-range\";\n r1 = r14.getFirstHeader(r1);\n if (r1 == 0) goto L_0x00a0;\n L_0x0084:\n r1 = r1.getValue();\n r1 = com.tencent.tmassistantsdk.downloadservice.ByteRange.parseContentRange(r1);\n r2 = r1.getStart();\n r15.responseRangePosition = r2;\n r2 = r1.getEnd();\n r4 = r1.getStart();\n r2 = r2 - r4;\n r4 = 1;\n r2 = r2 + r4;\n r15.responseRangeLength = r2;\n L_0x00a0:\n r1 = r13.mDownloadInfo;\n r2 = r1.getTotalSize();\n r15.responseContentLength = r2;\n L_0x00a8:\n r1 = r13.mSaveFile;\n if (r1 != 0) goto L_0x00bb;\n L_0x00ac:\n r1 = new com.tencent.tmassistantsdk.storage.TMAssistantFile;\n r2 = r13.mDownloadInfo;\n r2 = r2.mTempFileName;\n r3 = r13.mDownloadInfo;\n r3 = r3.mFileName;\n r1.<init>(r2, r3);\n r13.mSaveFile = r1;\n L_0x00bb:\n r2 = 0;\n r10 = r0.getContent();\t Catch:{ SocketException -> 0x0406 }\n r0 = \"_DownloadTask\";\n r1 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x0406 }\n r4 = \"start write file, fileName: \";\n r1.<init>(r4);\t Catch:{ SocketException -> 0x0406 }\n r4 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x0406 }\n r4 = r4.mFileName;\t Catch:{ SocketException -> 0x0406 }\n r1 = r1.append(r4);\t Catch:{ SocketException -> 0x0406 }\n r1 = r1.toString();\t Catch:{ SocketException -> 0x0406 }\n com.tencent.tmassistantsdk.util.TMLog.i(r0, r1);\t Catch:{ SocketException -> 0x0406 }\n r8 = r2;\n L_0x00dc:\n r0 = r13.mRecvBuf;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = r10.read(r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r3 <= 0) goto L_0x00eb;\n L_0x00e4:\n r0 = r13.mStopTask;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 == 0) goto L_0x0262;\n L_0x00e8:\n r10.close();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x00eb:\n r0 = r13.mSaveFile;\n if (r0 == 0) goto L_0x00f6;\n L_0x00ef:\n r0 = r13.mSaveFile;\n r0.close();\n r13.mSaveFile = r12;\n L_0x00f6:\n r15.receiveDataSize = r8;\n return;\n L_0x00f9:\n r1 = r14.getStatusLine();\n r1 = r1.getStatusCode();\n if (r1 != r6) goto L_0x0135;\n L_0x0103:\n r1 = \"content-range\";\n r1 = r14.getFirstHeader(r1);\n r2 = r13.mDownloadInfo;\n r1 = r1.getValue();\n r4 = com.tencent.tmassistantsdk.downloadservice.ByteRange.getTotalSize(r1);\n r2.setTotalSize(r4);\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"HTTPCode 206, totalBytes:\";\n r2.<init>(r3);\n r3 = r13.mDownloadInfo;\n r4 = r3.getTotalSize();\n r2 = r2.append(r4);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.i(r1, r2);\n goto L_0x005f;\n L_0x0135:\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"statusCode=\";\n r2.<init>(r3);\n r3 = r14.getStatusLine();\n r3 = r3.getStatusCode();\n r2 = r2.append(r3);\n r3 = \" onReceivedResponseData error.\";\n r2 = r2.append(r3);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r2);\n goto L_0x005f;\n L_0x015c:\n r1 = r14.getStatusLine();\n r1 = r1.getStatusCode();\n if (r1 != r6) goto L_0x00a8;\n L_0x0166:\n r1 = \"content-range\";\n r1 = r14.getFirstHeader(r1);\t Catch:{ Throwable -> 0x0214 }\n r2 = r1.getValue();\t Catch:{ Throwable -> 0x0214 }\n r2 = com.tencent.tmassistantsdk.downloadservice.ByteRange.parseContentRange(r2);\t Catch:{ Throwable -> 0x0214 }\n r3 = r1.getValue();\t Catch:{ Throwable -> 0x0214 }\n r4 = com.tencent.tmassistantsdk.downloadservice.ByteRange.getTotalSize(r3);\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r15.responseRangePosition = r8;\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getEnd();\t Catch:{ Throwable -> 0x0214 }\n r10 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r8 = r8 - r10;\n r10 = 1;\n r8 = r8 + r10;\n r15.responseRangeLength = r8;\t Catch:{ Throwable -> 0x0214 }\n r15.responseContentLength = r4;\t Catch:{ Throwable -> 0x0214 }\n r3 = \"_DownloadTask\";\n r6 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r8 = \"totalSize = \";\n r6.<init>(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r4);\t Catch:{ Throwable -> 0x0214 }\n r8 = \" downloadinfoTotalSize = \";\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r8 = r8.getTotalSize();\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.w(r3, r6);\t Catch:{ Throwable -> 0x0214 }\n r3 = \"_DownloadTask\";\n r6 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r8 = \"mReceivedBytes = \";\n r6.<init>(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r8 = r8.mReceivedBytes;\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.i(r3, r6);\t Catch:{ Throwable -> 0x0214 }\n r3 = \"_DownloadTask\";\n r6 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r8 = \"start = \";\n r6.<init>(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = \", end = \";\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getEnd();\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.i(r3, r6);\t Catch:{ Throwable -> 0x0214 }\n r2 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r6 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r8 = r6.mReceivedBytes;\t Catch:{ Throwable -> 0x0214 }\n r2 = (r2 > r8 ? 1 : (r2 == r8 ? 0 : -1));\n if (r2 == 0) goto L_0x022a;\n L_0x0209:\n r0 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ Throwable -> 0x0214 }\n r1 = 706; // 0x2c2 float:9.9E-43 double:3.49E-321;\n r2 = \"The received size is not equal with ByteRange.\";\n r0.<init>(r1, r2);\t Catch:{ Throwable -> 0x0214 }\n throw r0;\t Catch:{ Throwable -> 0x0214 }\n L_0x0214:\n r0 = move-exception;\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ all -> 0x021d }\n r2 = 704; // 0x2c0 float:9.87E-43 double:3.48E-321;\n r1.<init>(r2, r0);\t Catch:{ all -> 0x021d }\n throw r1;\t Catch:{ all -> 0x021d }\n L_0x021d:\n r0 = move-exception;\n r1 = r13.mSaveFile;\n if (r1 == 0) goto L_0x0229;\n L_0x0222:\n r1 = r13.mSaveFile;\n r1.close();\n r13.mSaveFile = r12;\n L_0x0229:\n throw r0;\n L_0x022a:\n r2 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r2 = r2.getTotalSize();\t Catch:{ Throwable -> 0x0214 }\n r2 = (r4 > r2 ? 1 : (r4 == r2 ? 0 : -1));\n if (r2 == 0) goto L_0x023f;\n L_0x0234:\n r0 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ Throwable -> 0x0214 }\n r1 = 705; // 0x2c1 float:9.88E-43 double:3.483E-321;\n r2 = \"The total size is not equal with ByteRange.\";\n r0.<init>(r1, r2);\t Catch:{ Throwable -> 0x0214 }\n throw r0;\t Catch:{ Throwable -> 0x0214 }\n L_0x023f:\n r2 = \"_DownloadTask\";\n r3 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r4 = \"response ByteRange: \";\n r3.<init>(r4);\t Catch:{ Throwable -> 0x0214 }\n r1 = r3.append(r1);\t Catch:{ Throwable -> 0x0214 }\n r1 = r1.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.d(r2, r1);\t Catch:{ Throwable -> 0x0214 }\n r1 = r13.mSaveFile;\n if (r1 == 0) goto L_0x00a8;\n L_0x0259:\n r1 = r13.mSaveFile;\n r1.close();\n r13.mSaveFile = r12;\n goto L_0x00a8;\n L_0x0262:\n r0 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = (long) r3;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0 + r4;\n r2 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r2.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = (r0 > r4 ? 1 : (r0 == r4 ? 0 : -1));\n if (r2 > 0) goto L_0x03be;\n L_0x0272:\n r2 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r2.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = (r0 > r4 ? 1 : (r0 == r4 ? 0 : -1));\n if (r0 != 0) goto L_0x0315;\n L_0x027c:\n r6 = 1;\n L_0x027d:\n r0 = r13.mSaveFile;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mRecvBuf;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 0;\n r4 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r4.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.write(r1, r2, r3, r4, r6);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 != 0) goto L_0x03b4;\n L_0x028c:\n r0 = com.tencent.tmassistantsdk.storage.TMAssistantFile.getSavePathRootDir();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = com.tencent.tmassistantsdk.downloadservice.DownloadHelper.isSpaceEnough(r0, r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 == 0) goto L_0x0367;\n L_0x029c:\n r0 = com.tencent.tmassistantsdk.storage.TMAssistantFile.isSDCardExistAndCanWrite();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 == 0) goto L_0x0318;\n L_0x02a2:\n r0 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"write file failed, fileName: \";\n r0.<init>(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r1.mFileName;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" receivedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" readedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" totalSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"_DownloadTask\";\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 703; // 0x2bf float:9.85E-43 double:3.473E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x02ef:\n r0 = move-exception;\n r2 = r8;\n L_0x02f1:\n r1 = \"_DownloadTask\";\n r4 = \"\";\n r5 = 0;\n r5 = new java.lang.Object[r5];\t Catch:{ all -> 0x0305 }\n com.tencent.mm.sdk.platformtools.w.printErrStackTrace(r1, r0, r4, r5);\t Catch:{ all -> 0x0305 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ all -> 0x0305 }\n r4 = 605; // 0x25d float:8.48E-43 double:2.99E-321;\n r1.<init>(r4, r0);\t Catch:{ all -> 0x0305 }\n throw r1;\t Catch:{ all -> 0x0305 }\n L_0x0305:\n r0 = move-exception;\n r8 = r2;\n L_0x0307:\n r1 = r13.mSaveFile;\n if (r1 == 0) goto L_0x0312;\n L_0x030b:\n r1 = r13.mSaveFile;\n r1.close();\n r13.mSaveFile = r12;\n L_0x0312:\n r15.receiveDataSize = r8;\n throw r0;\n L_0x0315:\n r6 = r7;\n goto L_0x027d;\n L_0x0318:\n r0 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"write file failed, no sdCard! fileName: \";\n r0.<init>(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r1.mFileName;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" receivedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" readedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" totalSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"_DownloadTask\";\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 711; // 0x2c7 float:9.96E-43 double:3.513E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x0365:\n r0 = move-exception;\n goto L_0x0307;\n L_0x0367:\n r0 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"write file failed, no enough space! fileName: \";\n r0.<init>(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r1.mFileName;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" receivedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" readedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" totalSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"_DownloadTask\";\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 710; // 0x2c6 float:9.95E-43 double:3.51E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x03b4:\n r0 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = (long) r3;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0.updateReceivedSize(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = (long) r3;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r8 = r8 + r0;\n goto L_0x00dc;\n L_0x03be:\n r0 = \"write file size too long.\";\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = \"write file size too long.\\r\\nreadedLen: \";\n r2.<init>(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = \"\\r\\nreceivedSize: \";\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r3.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = \"\\r\\ntotalSize: \";\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r3.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = \"\\r\\nisTheEndData: false\";\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 703; // 0x2bf float:9.85E-43 double:3.473E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x0406:\n r0 = move-exception;\n goto L_0x02f1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.tmassistantsdk.downloadservice.DownloadTask.onReceivedResponseData(org.apache.http.HttpResponse, com.tencent.tmassistantsdk.protocol.jce.DownloadChunkLogInfo):void\");\n }",
"private byte[] readFixedLengthContent(ByteBuf in) throws UnsupportedEncodingException {\n if (in.readableBytes() < 2) {\n return new byte[]{};\n }\n int strLen = in.readableBytes();\n// if (in.readableBytes() < strLen) {\n// return null;\n// }\n byte[] strRaw = new byte[strLen];\n in.readBytes(strRaw);\n\n return strRaw;\n }",
"@Override\n public void readData(DataKey dataKey) {\n this.chunk = getChunkFromData(dataKey);\n }",
"entities.Torrent.ChunkResponseOrBuilder getChunkResponseOrBuilder();",
"public int getChunkHeight() {\n return 256;\n }",
"public void sendChunk(String fileName,ObjectOutputStream out)\n {\n FileInputStream fInput;\n BufferedInputStream bufInput;\n byte[] byteToSend = new byte[chunkSize];\n try\n {\n fInput = new FileInputStream(fileName);\n bufInput = new BufferedInputStream(fInput);\n int b;\n int i=0;\n b = bufInput.read(byteToSend,0,chunkSize);\n out.write(byteToSend,0,chunkSize);\n out.flush();\n bufInput.close();\n }\n catch(FileNotFoundException ex)\n {\n System.out.println(\"File Chunk Not found Exception: Some chunk missing.\");\n }\n catch(IOException ex)\n {\n System.out.println(\"IOException while reading from the chunk file.\");\n }\n }",
"boolean hasChunkResponse();",
"com.google.protobuf.ByteString getContent();",
"com.google.protobuf.ByteString getContent();",
"edu.usfca.cs.dfs.StorageMessages.StoreChunkResponse getStoreChunkResponse();",
"public Object getContent() {\n/* 112 */ return this.buf;\n/* */ }",
"edu.usfca.cs.dfs.StorageMessages.StoreChunk getStoreChunk();",
"@Override\n\tpublic void open(Context context, Chunk data) {\n\t}",
"entities.Torrent.ChunkInfo getChunks(int index);",
"int getChunkIndex();",
"int getChunkIndex();",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }",
"@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }",
"byte getBlockData();",
"byte[] getData();",
"byte[] getData();",
"byte[] getData();",
"byte[] getData();",
"boolean hasChunkRequest();",
"@Override\n\t\t\t public void start(ByteBuffer data) throws Exception {\n\t\t\t if (self.state.lastFragment == false) {\n\t\t\t self.error(\"fragmented pong is not supported\", 1002);\n\t\t\t return;\n\t\t\t }\n\n\t\t\t // decode length\n\t\t\t int firstLength = data.get(1) & 0x7f;\n\t\t\t if (firstLength < 126) {\n\t\t\t ///opcodes['10'].getData.call(self, firstLength);\n\t\t\t \t getData(firstLength);\n\t\t\t }\n\t\t\t else {\n\t\t\t self.error(\"control frames cannot have more than 125 bytes of data\", 1002);\n\t\t\t }\n\t\t\t }",
"private boolean sendChunk() throws IOException {\n // allocate Buffer\n final Buffer buffer = mm.allocate(chunkSize);\n // mark it available for disposal after content is written\n buffer.allowBufferDispose(true);\n\n // read file to the Buffer\n final int justReadBytes = (int) Buffers.readFromFileChannel(\n fileChannel, buffer);\n \n if (justReadBytes <= 0) {\n complete();\n return false;\n }\n\n // prepare buffer to be written\n buffer.trim();\n\n // write the Buffer\n outputStream.write(buffer);\n size -= justReadBytes;\n\n // check the remaining size here to avoid extra onWritePossible() invocation\n if (size <= 0) {\n complete();\n return false;\n }\n\n return true;\n }",
"public byte[] getChunk(String ChunkHandle, int offset, int NumberOfBytes) {\n\t\t\n\t\tbyte[] payload = null;\n\t\t\n\t\ttry {\n\t\t\t// request \n\t\t\tbyte[] handle = ChunkHandle.getBytes();\n\t\t\t// write payload size (4-command + 4-handle-length + actual handle)\n\t\t\toos.writeInt(4 + 4 + 4 + 4 + handle.length);\n\t\t\t// write command identifier \n\t\t\toos.writeInt(ChunkServer.GetChunk);\n\t\t\t// write chunkHandle length \n\t\t\toos.writeInt(handle.length);\n\t\t\t// write chunk handle\n\t\t\toos.write(handle);\n\t\t\t// write offset \n\t\t\toos.writeInt(offset);\n\t\t\t// write number of bytes\n\t\t\toos.writeInt(NumberOfBytes);\n\t\t\toos.flush();\n\t\t\t// parse response \n\t\t\tint payloadSize = getPayloadInt(ois);\n\t\t\tSystem.out.println(\"Recieving this size: \" + payloadSize);\n\t\t\tpayload = getPayload(ois, payloadSize);\n\t\t\tSystem.out.print(\"received payload in client\");\n\t\t\t\n\t\t\treturn payload; \n\t\t\t\n\t\t} catch (IOException ioe) {\n\t\t\tSystem.out.println(ioe.getMessage());\n\t\t}\n\t\t\n\t\treturn payload; \n\t\t\n\t}",
"public String initializeChunk() {\n\t\ttry {\n\t\t\t// request \n\t\t\t// write payload size (2 ints, 4 + 4)\n\t\t\toos.writeInt(8);\n\t\t\t// write command identifier \n\t\t\toos.writeInt(ChunkServer.InitializeChunk);\n\t\t\toos.flush();\n\t\t\t// parse response \n\t\t\tint chunkHandleSize = getPayloadInt(ois);\n\t\t\t// reduce size by payload size int \n\t\t\tchunkHandleSize -= 4; \n\t\t\tbyte[] handle = getPayload(ois, chunkHandleSize);\n\t\t\treturn (new String(handle).toString());\n\t\t\t\n\t\t} catch (IOException ioe) {\n\t\t\tSystem.out.println(\"ioe in initialize chunk \" + ioe.getMessage());\n\t\t}\n\t\treturn null; \n\t}",
"@Test\n public void testStreamParsePubDev3401() throws IOException {\n final int chunkSize = 64 * 1024;\n ParseSetupV3 ps = new ParseSetupV3();\n ps.parse_type = \"CSV\";\n ps.chunk_size = chunkSize;\n // mock Parser\n final List<Integer> pcCalls = new LinkedList<>();\n Parser p = new Parser(new ParseSetup(ps), null) {\n @Override protected ParseWriter parseChunk(int cidx, ParseReader din, ParseWriter dout) {\n pcCalls.add(cidx);\n byte[] data = din.getChunkData(cidx);\n assert cidx <= 3;\n assert ((data != null) && (data.length == chunkSize)) || (cidx == 3);\n return null;\n }\n };\n // mock source InputStream, only used for \"back-channel\" chunk index signalling\n final Queue<Integer> cidxs = new LinkedList<>(Arrays.asList(1, 2, 3, 4));\n InputStream bvs = new InputStream() {\n @Override public int read() throws IOException { throw new UnsupportedOperationException(); }\n @Override public int read(byte[] b, int off, int len) throws IOException {\n assert b == null;\n return cidxs.remove();\n }\n };\n // mock StreamParseWriter\n MockStreamParseWriter w = new MockStreamParseWriter(chunkSize);\n // Vec made of 3 chunks\n Key k = FVecFactory.makeByteVec(\n RandomStringUtils.randomAscii(chunkSize),\n RandomStringUtils.randomAscii(chunkSize),\n RandomStringUtils.randomAscii(chunkSize)\n );\n try {\n ByteVec v = DKV.getGet(k);\n p.streamParseZip(v.openStream(null), w, bvs);\n assertEquals(\"Expected calls to parseChunk()\", Arrays.asList(0, 1, 2, 3), pcCalls);\n assertEquals(\"Expected calls to nextChunk()\", Arrays.asList(0, 1, 2), w._nchks);\n } finally {\n k.remove();\n }\n }",
"com.google.protobuf.ByteString getContentBytes();",
"@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }",
"@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }",
"int getChunksCount();",
"int getChunksCount();",
"public Chunk loadChunk(int x, int p_73158_2_)\n\t{\n\t\treturn this.provideChunk(x, p_73158_2_);\n\t}",
"String getChunkType();",
"public boolean sendChunkChange ( Location loc , int sx , int sy , int sz , byte[] data ) {\n\t\treturn invokeSafe ( \"sendChunkChange\" , loc , sx , sy , sz , data );\n\t}",
"public FileChunkReference getFileData() {\n return fileData;\n }",
"com.google.protobuf.ByteString getData(int index);",
"com.google.protobuf.ByteString getData(int index);",
"public void readAllChunks(EndPoint endpoint) throws IOException, Pausable {\n IntList chunkRanges = new IntList(); // alternate numbers in this list refer to the start and end offsets of chunks.\n do {\n int n = readLine(endpoint); // read chunk size text into buffer\n int beg = iread;\n int size = parseChunkSize(buffer, iread - n, iread); // Parse size in hex, ignore extension\n if (size == 0)\n break;\n // If the chunk has not already been read in, do so\n fill(endpoint, iread, size+2 /*chunksize + CRLF*/);\n // record chunk start and end\n chunkRanges.add(beg); \n chunkRanges.add(beg + size); // without the CRLF\n iread += size + 2; // for the next round.\n } while (true);\n\n // / consolidate all chunkRanges\n if (chunkRanges.numElements == 0) {\n contentLength = 0;\n return;\n }\n contentOffset = chunkRanges.get(0); // first chunk's beginning\n int endOfLastChunk = chunkRanges.get(1); // first chunk's end\n\n byte[] bufa = buffer.array();\n for (int i = 2; i < chunkRanges.numElements; i += 2) {\n int beg = chunkRanges.get(i);\n int chunkSize = chunkRanges.get(i + 1) - beg;\n System.arraycopy(bufa, beg, bufa, endOfLastChunk, chunkSize);\n endOfLastChunk += chunkSize;\n }\n // TODO move all trailer stuff up\n contentLength = endOfLastChunk - contentOffset;\n \n // At this point, the contentOffset and contentLen give the entire content \n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public void setChunked(boolean b) {\n/* 178 */ this.chunked = b;\n/* */ }",
"public int getChunkSize() {\n return chunkSize;\n }",
"private LeafNodeObject getChunk(long chunkStart, long chunkEnd) throws IOException {\n if (chunkEnd <= chunkStart || (chunkEnd - chunkStart > this.maxChunkSize) ||\n chunkStart > Integer.MAX_VALUE) {\n throw new IOException(\"ChunkStart out of range\");\n }\n\n byte[] temp = Arrays.copyOfRange(this.fileContent, (int) chunkStart,\n (int) (chunkEnd - chunkStart));\n\n\n SignatureObject signature = new SignatureObject();\n signature.signatureData = new BinaryItem(ByteUtil.toListOfByte(temp));\n\n// RDCSignatureGenerator generator = new RDCSignatureGenerator();\n// signatureBytes = generator.ComputeHash(temp);\n//\n// SignatureObject signature = new SignatureObject();\n// signature.SignatureData = new BinaryItem(signatureBytes);\n\n return new LeafNodeObject.IntermediateNodeObjectBuilder().Build(temp, signature);\n }",
"public MediaPropertiesChunk(DataInputStream f) throws Exception {\n\t\tstreamId = f.readShort();\n\t\tmaxBitrate = f.readInt();\n\t\taverageBitrate = f.readInt();\n\t\tmaxDataPacketSize = f.readInt();\n\t\taverageDataPacketSize = f.readInt();\n\t\tstreamStartInMs = f.readInt();\n\t\tprerollInMs = f.readInt();\n\t\tduration = f.readInt();\n//\t\tbyte Size of stream description string\n\t\tstreamDescription = Utils.readString(f, f.read());\n//\t\tbyte Size of stream mime type string\n\t\tmimeType = Utils.readString(f, f.read());\n\t\t\n\t\tint dataLength = (int)f.readInt();\n\t\tbyte [] b = new byte[dataLength];\n\t\tf.readFully(b);\n\t\t\n\t\tswitch(mimeType) {\n\t\t\tcase \"audio/x-pn-realaudio\" :\n\t\t\t\taudioInfo = new AudioInfo(new DataInputStream(new ByteArrayInputStream(b)));\n\t\t\t\tbreak;\n\t\t\tcase \"logical-fileinfo\":\n\t\t\t\tlogicStreamInfo = new LogicalStreamInfo(new DataInputStream(new ByteArrayInputStream(b)));\n\t\t\t\tbreak;\n\t\t\tcase \"audio/X-MP3-draft-00\": /*dataLength must equals 0. In this case we do not have any codec info */ break;\n\t\t\tcase \"audio/x-ralf-mpeg4\" : \n\t\t\tcase \"audio/x-ralf-mpeg4-generic\" :\n\t\t\t\tlosslessAudioInfo = new LosslessAudioInfo(new DataInputStream(new ByteArrayInputStream(b)));\n\t\t\t\tbreak;\n\t\t\tcase \"audio/x-pn-multirate-realaudio\" : /* ASM-compatible RealAudio stream. Not supported */\t\t\t\t\n\t\t\tdefault: throw new UnsupportedException(\"Unknow mime : \" + mimeType); \n\t\t}\n\t}",
"public byte[] getContent();",
"Long getCompressedContentLength(String contentEncoding);",
"@java.lang.Override\n public int getChunksCount() {\n return chunks_.size();\n }",
"@NotNull\n int getTrustedChunks();",
"public final byte[] bytes() throws IOException {\n long contentLength = contentLength();\n if (contentLength <= 2147483647L) {\n C3580e source = source();\n try {\n byte[] G = source.mo19680G();\n C3500c.m11649a((Closeable) source);\n if (contentLength == -1 || contentLength == ((long) G.length)) {\n return G;\n }\n throw new IOException(\"Content-Length (\" + contentLength + \") and stream length (\" + G.length + \") disagree\");\n } catch (Throwable th) {\n C3500c.m11649a((Closeable) source);\n throw th;\n }\n } else {\n throw new IOException(\"Cannot buffer entire body for content length: \" + contentLength);\n }\n }",
"ChunkCachingProtocol.Factory getChunkCachingProtocolFactory();",
"public boolean putChunk(String ChunkHandle, byte[] payload, int offset) {\n\t\t\n\t\tif (offset + payload.length > ChunkServer.ChunkSize) {\n\t\t\tSystem.out.println(\"The chunk should write should be within range of the file, invalid\");\n\t\t\treturn false; \n\t\t} \n\t\ttry {\n\t\t\t// request \n\t\t\tbyte[] handle = ChunkHandle.getBytes();\n\t\t\t// write payload size \n\t\t\toos.writeInt(4 + 4 + 4 + 4 + 4 + handle.length + payload.length);\n\t\t\t// write command identifier \n\t\t\toos.writeInt(ChunkServer.PutChunk);\n\t\t\t// write chunkHandle size \n\t\t\toos.writeInt(handle.length);\n\t\t\t// write chunk handle\n\t\t\toos.write(handle);\n\t\t\t// write payload size s\n\t\t\toos.writeInt(payload.length);\n\t\t\t// write payload \n\t\t\toos.write(payload);\n\t\t\t// write offset\n\t\t\toos.writeInt(offset);\n\t\t\toos.flush();\n\t\t\t// parse response \n\t\t\tint resultSize = getPayloadInt(ois);\n\t\t\tint result = getPayloadInt(ois);\n\t\t\t\n\t\t\tif (result == 0) {\n\t\t\t\treturn false; \n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"success put chunk\");\n\t\t\t\treturn true; \n\t\t\t}\n\t\t\t\n\t\t} catch (IOException ioe) {\n\t\t\tSystem.out.println(ioe.getMessage());\n\t\t}\n\t\t\n\t\treturn false; \n\t}",
"private int readCompressedChunk(byte[] compressedBuffer) throws IOException {\n if (buffer.remaining() < 1) {\n readBytes(1);\n }\n byte typeId = buffer.get();\n if (typeId == ModelType.RESERVED_EOF.getId()) {\n return 0;\n } else if (typeId != ModelType.RESERVED_COMPRESSED_BLOCK.getId()) {\n throw new IOException(\"Inalid file format, expected compressed block\");\n }\n \n // read the compressed chunk size\n if (buffer.remaining() < 4) {\n readBytes(4);\n }\n int size = buffer.getInt();\n \n int needed = size - buffer.remaining();\n //log.info(\"Reading {}b chunk, {} needed\", size, needed);\n if (needed > 0) {\n readBytes(needed);\n }\n \n buffer.get(compressedBuffer, 0, size);\n return size;\n }",
"List<DownloadChunk> mo54445j(int i);",
"public int getChunkSize () {\n return this.CHUNK_SIZE;\n }"
] |
[
"0.6174774",
"0.6128456",
"0.601028",
"0.5921763",
"0.5868728",
"0.58409804",
"0.57928157",
"0.5781154",
"0.5768613",
"0.5768613",
"0.5768613",
"0.5768613",
"0.574638",
"0.57253194",
"0.57073236",
"0.56759864",
"0.5638301",
"0.5636132",
"0.5636132",
"0.5626918",
"0.5616797",
"0.561106",
"0.5574723",
"0.55704963",
"0.5567697",
"0.5557106",
"0.55499446",
"0.5545083",
"0.553535",
"0.553535",
"0.553535",
"0.553535",
"0.553535",
"0.553535",
"0.55267876",
"0.55110115",
"0.5485813",
"0.5478483",
"0.5464661",
"0.5454011",
"0.54537874",
"0.5443056",
"0.5443056",
"0.54405904",
"0.5434597",
"0.543145",
"0.5428936",
"0.5422285",
"0.53932506",
"0.53932506",
"0.53906965",
"0.53906965",
"0.53906965",
"0.53906965",
"0.53906965",
"0.53906965",
"0.5388515",
"0.5388515",
"0.5383903",
"0.5383855",
"0.5383855",
"0.5383855",
"0.5383855",
"0.53813004",
"0.53671753",
"0.5345192",
"0.5344204",
"0.5338692",
"0.5338586",
"0.5333597",
"0.533016",
"0.533016",
"0.5322143",
"0.5322143",
"0.53184444",
"0.53141886",
"0.53132886",
"0.5309323",
"0.53053594",
"0.53053594",
"0.52990204",
"0.5298579",
"0.5298579",
"0.5298579",
"0.5298579",
"0.5298579",
"0.5298579",
"0.5283611",
"0.52834535",
"0.5246285",
"0.52348864",
"0.52306837",
"0.5230387",
"0.52193844",
"0.52032614",
"0.52010196",
"0.51847184",
"0.51830804",
"0.51704323",
"0.51703155",
"0.5165979"
] |
0.0
|
-1
|
Use ChunkResponse.newBuilder() to construct.
|
private ChunkResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"entities.Torrent.ChunkResponseOrBuilder getChunkResponseOrBuilder();",
"public Builder setChunkResponse(entities.Torrent.ChunkResponse value) {\n if (chunkResponseBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n chunkResponse_ = value;\n onChanged();\n } else {\n chunkResponseBuilder_.setMessage(value);\n }\n\n return this;\n }",
"private StoreChunkResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public entities.Torrent.ChunkResponseOrBuilder getChunkResponseOrBuilder() {\n if (chunkResponseBuilder_ != null) {\n return chunkResponseBuilder_.getMessageOrBuilder();\n } else {\n return chunkResponse_ == null ?\n entities.Torrent.ChunkResponse.getDefaultInstance() : chunkResponse_;\n }\n }",
"public entities.Torrent.ChunkResponse getChunkResponse() {\n if (chunkResponseBuilder_ == null) {\n return chunkResponse_ == null ? entities.Torrent.ChunkResponse.getDefaultInstance() : chunkResponse_;\n } else {\n return chunkResponseBuilder_.getMessage();\n }\n }",
"public Builder mergeChunkResponse(entities.Torrent.ChunkResponse value) {\n if (chunkResponseBuilder_ == null) {\n if (chunkResponse_ != null) {\n chunkResponse_ =\n entities.Torrent.ChunkResponse.newBuilder(chunkResponse_).mergeFrom(value).buildPartial();\n } else {\n chunkResponse_ = value;\n }\n onChanged();\n } else {\n chunkResponseBuilder_.mergeFrom(value);\n }\n\n return this;\n }",
"@java.lang.Override\n public entities.Torrent.ChunkResponseOrBuilder getChunkResponseOrBuilder() {\n return getChunkResponse();\n }",
"entities.Torrent.ChunkResponse getChunkResponse();",
"public entities.Torrent.ChunkResponse.Builder getChunkResponseBuilder() {\n\n onChanged();\n return getChunkResponseFieldBuilder().getBuilder();\n }",
"@java.lang.Override\n public entities.Torrent.ChunkResponse getChunkResponse() {\n return chunkResponse_ == null ? entities.Torrent.ChunkResponse.getDefaultInstance() : chunkResponse_;\n }",
"public Builder clearChunkResponse() {\n if (chunkResponseBuilder_ == null) {\n chunkResponse_ = null;\n onChanged();\n } else {\n chunkResponse_ = null;\n chunkResponseBuilder_ = null;\n }\n\n return this;\n }",
"edu.usfca.cs.dfs.StorageMessages.StoreChunkResponseOrBuilder getStoreChunkResponseOrBuilder();",
"private ChunkRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"edu.usfca.cs.dfs.StorageMessages.StoreChunkResponse getStoreChunkResponse();",
"public Builder setStoreChunkResponse(edu.usfca.cs.dfs.StorageMessages.StoreChunkResponse value) {\n if (storeChunkResponseBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n msg_ = value;\n onChanged();\n } else {\n storeChunkResponseBuilder_.setMessage(value);\n }\n msgCase_ = 8;\n return this;\n }",
"public static Response newChunkedResponse(Response.IStatus status, String mimeType,\n\t\t\tInputStream data) {\n\t\treturn new Response(status, mimeType, data, -1);\n\t}",
"public Builder mergeStoreChunkResponse(edu.usfca.cs.dfs.StorageMessages.StoreChunkResponse value) {\n if (storeChunkResponseBuilder_ == null) {\n if (msgCase_ == 8 &&\n msg_ != edu.usfca.cs.dfs.StorageMessages.StoreChunkResponse.getDefaultInstance()) {\n msg_ = edu.usfca.cs.dfs.StorageMessages.StoreChunkResponse.newBuilder((edu.usfca.cs.dfs.StorageMessages.StoreChunkResponse) msg_)\n .mergeFrom(value).buildPartial();\n } else {\n msg_ = value;\n }\n onChanged();\n } else {\n if (msgCase_ == 8) {\n storeChunkResponseBuilder_.mergeFrom(value);\n }\n storeChunkResponseBuilder_.setMessage(value);\n }\n msgCase_ = 8;\n return this;\n }",
"private ChunkInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"entities.Torrent.ChunkRequestOrBuilder getChunkRequestOrBuilder();",
"public Builder setChunkResponse(\n entities.Torrent.ChunkResponse.Builder builderForValue) {\n if (chunkResponseBuilder_ == null) {\n chunkResponse_ = builderForValue.build();\n onChanged();\n } else {\n chunkResponseBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }",
"public edu.usfca.cs.dfs.StorageMessages.StoreChunkResponse.Builder getStoreChunkResponseBuilder() {\n return getStoreChunkResponseFieldBuilder().getBuilder();\n }",
"public Chunk() {\n }",
"private com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.ChunkResponse, entities.Torrent.ChunkResponse.Builder, entities.Torrent.ChunkResponseOrBuilder>\n getChunkResponseFieldBuilder() {\n if (chunkResponseBuilder_ == null) {\n chunkResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.ChunkResponse, entities.Torrent.ChunkResponse.Builder, entities.Torrent.ChunkResponseOrBuilder>(\n getChunkResponse(),\n getParentForChildren(),\n isClean());\n chunkResponse_ = null;\n }\n return chunkResponseBuilder_;\n }",
"public ChunkFiler() {}",
"public Builder addResponse(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureResponseIsMutable();\n response_.add(value);\n onChanged();\n return this;\n }",
"public Builder clearStoreChunkResponse() {\n if (storeChunkResponseBuilder_ == null) {\n if (msgCase_ == 8) {\n msgCase_ = 0;\n msg_ = null;\n onChanged();\n }\n } else {\n if (msgCase_ == 8) {\n msgCase_ = 0;\n msg_ = null;\n }\n storeChunkResponseBuilder_.clear();\n }\n return this;\n }",
"private PrepareResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private HelloResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public static ResponseChunks bufferChunks(CharSequence contentType, Publisher<? extends ByteBuf> publisher) {\n return new ResponseChunks(contentType, byteBufAllocator -> publisher);\n }",
"entities.Torrent.ChunkRequest getChunkRequest();",
"public edu.usfca.cs.dfs.StorageMessages.StoreChunkResponseOrBuilder getStoreChunkResponseOrBuilder() {\n if ((msgCase_ == 8) && (storeChunkResponseBuilder_ != null)) {\n return storeChunkResponseBuilder_.getMessageOrBuilder();\n } else {\n if (msgCase_ == 8) {\n return (edu.usfca.cs.dfs.StorageMessages.StoreChunkResponse) msg_;\n }\n return edu.usfca.cs.dfs.StorageMessages.StoreChunkResponse.getDefaultInstance();\n }\n }",
"public edu.usfca.cs.dfs.StorageMessages.StoreChunkResponseOrBuilder getStoreChunkResponseOrBuilder() {\n if (msgCase_ == 8) {\n return (edu.usfca.cs.dfs.StorageMessages.StoreChunkResponse) msg_;\n }\n return edu.usfca.cs.dfs.StorageMessages.StoreChunkResponse.getDefaultInstance();\n }",
"public Builder setResponseBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n response_ = value;\n onChanged();\n return this;\n }",
"public IMAPUntaggedResponse(String keyword, byte [] response) {\n super(response); \n this.keyword = keyword; \n }",
"public Builder setChunkRequest(entities.Torrent.ChunkRequest value) {\n if (chunkRequestBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n chunkRequest_ = value;\n onChanged();\n } else {\n chunkRequestBuilder_.setMessage(value);\n }\n\n return this;\n }",
"boolean hasChunkResponse();",
"public Builder setResponse(\n int index, com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureResponseIsMutable();\n response_.set(index, value);\n onChanged();\n return this;\n }",
"public MetadataResponse() {\n }",
"public edu.usfca.cs.dfs.StorageMessages.StoreChunkResponse getStoreChunkResponse() {\n if (storeChunkResponseBuilder_ == null) {\n if (msgCase_ == 8) {\n return (edu.usfca.cs.dfs.StorageMessages.StoreChunkResponse) msg_;\n }\n return edu.usfca.cs.dfs.StorageMessages.StoreChunkResponse.getDefaultInstance();\n } else {\n if (msgCase_ == 8) {\n return storeChunkResponseBuilder_.getMessage();\n }\n return edu.usfca.cs.dfs.StorageMessages.StoreChunkResponse.getDefaultInstance();\n }\n }",
"private LivestockResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private StoreChunk(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private HealMyChunk(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public entities.Torrent.ChunkInfo.Builder addChunksBuilder() {\n return getChunksFieldBuilder().addBuilder(\n entities.Torrent.ChunkInfo.getDefaultInstance());\n }",
"public Builder addChunks(entities.Torrent.ChunkInfo value) {\n if (chunksBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureChunksIsMutable();\n chunks_.add(value);\n onChanged();\n } else {\n chunksBuilder_.addMessage(value);\n }\n return this;\n }",
"private SyncResultsResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private Response(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private Response(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private Response(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private Response(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private Response(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private Response(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private Response(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private BenchmarkResponse(com.google.protobuf.GeneratedMessage.Builder builder) {\n super(builder);\n }",
"public boolean hasChunkResponse() {\n return chunkResponseBuilder_ != null || chunkResponse_ != null;\n }",
"public MetadataResponse() {\n data = new HashMap<String, Object>();\n }",
"public String initializeChunk() {\n\t\ttry {\n\t\t\t// request \n\t\t\t// write payload size (2 ints, 4 + 4)\n\t\t\toos.writeInt(8);\n\t\t\t// write command identifier \n\t\t\toos.writeInt(ChunkServer.InitializeChunk);\n\t\t\toos.flush();\n\t\t\t// parse response \n\t\t\tint chunkHandleSize = getPayloadInt(ois);\n\t\t\t// reduce size by payload size int \n\t\t\tchunkHandleSize -= 4; \n\t\t\tbyte[] handle = getPayload(ois, chunkHandleSize);\n\t\t\treturn (new String(handle).toString());\n\t\t\t\n\t\t} catch (IOException ioe) {\n\t\t\tSystem.out.println(\"ioe in initialize chunk \" + ioe.getMessage());\n\t\t}\n\t\treturn null; \n\t}",
"public static StoreChunkOperation create(\n\t\tString collection,\n\t\tObject id,\n\t\tbyte[] chunk\n\t)\n\t{\n\t\treturn new StoreChunkOperation(collection, id, chunk);\n\t}",
"private XCapHttpResponse createResponse(HttpResponse response)\n throws IOException\n {\n XCapHttpResponse xcapHttpResponse = new XCapHttpResponse();\n int statusCode = response.getStatusLine().getStatusCode();\n if (statusCode == HttpStatus.SC_OK ||\n statusCode == HttpStatus.SC_CREATED ||\n statusCode == HttpStatus.SC_CONFLICT)\n {\n String contentType = getSingleHeaderValue(response,\n HEADER_CONTENT_TYPE);\n byte[] content = StreamUtils.read(\n response.getEntity().getContent());\n String eTag = getSingleHeaderValue(response, HEADER_ETAG);\n xcapHttpResponse.setContentType(contentType);\n xcapHttpResponse.setContent(content);\n xcapHttpResponse.setETag(eTag);\n }\n xcapHttpResponse.setHttpCode(statusCode);\n return xcapHttpResponse;\n }",
"@Override\r\n\tpublic void prepare(ResponseBuilder arg0) throws IOException {\n\t\t\r\n\t}",
"public edu.usfca.cs.dfs.StorageMessages.StoreChunkResponse getStoreChunkResponse() {\n if (msgCase_ == 8) {\n return (edu.usfca.cs.dfs.StorageMessages.StoreChunkResponse) msg_;\n }\n return edu.usfca.cs.dfs.StorageMessages.StoreChunkResponse.getDefaultInstance();\n }",
"private Chunk generateChunk(int size) {\n String json;\n ObjectMapper objectMapper = new ObjectMapper();\n List<Record> recordList = new ArrayList<>();\n int i = 1;\n while (i <= size) {\n json = \"{ \\\"Price\\\" :\" + priceGenerator.nextDouble() * 100 + \" }\";\n try {\n recordList.add(new Record(String.valueOf(i), LocalDateTime.now(), objectMapper.readTree(json)));\n } catch (JsonProcessingException e) {\n log.error(\"Issue with the chunk generation: \" + e.getMessage());\n return null;\n }\n i++;\n\n }\n log.info(\"Generated Chunk :\");\n recordList.forEach((record) -> log.info(record.toString()));\n return new Chunk(recordList);\n }",
"@Test\n public void testChunkedOutputToChunkInput() throws Exception {\n final ChunkedInput<String> input = target().path(\"test\").request().get(new javax.ws.rs.core.GenericType<ChunkedInput<String>>() {});\n int counter = 0;\n String chunk;\n while ((chunk = input.read()) != null) {\n Assert.assertEquals((\"Unexpected value of chunk \" + counter), \"test\", chunk);\n counter++;\n } \n Assert.assertEquals(\"Unexpected numbed of received chunks.\", 3, counter);\n }",
"void sendChunkRequest(int chunkX, int chunkY);",
"private BlockReportResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private RollbackResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public Builder mergeChunkRequest(entities.Torrent.ChunkRequest value) {\n if (chunkRequestBuilder_ == null) {\n if (chunkRequest_ != null) {\n chunkRequest_ =\n entities.Torrent.ChunkRequest.newBuilder(chunkRequest_).mergeFrom(value).buildPartial();\n } else {\n chunkRequest_ = value;\n }\n onChanged();\n } else {\n chunkRequestBuilder_.mergeFrom(value);\n }\n\n return this;\n }",
"private ResponseBank(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"@java.lang.Override\n public entities.Torrent.ChunkRequestOrBuilder getChunkRequestOrBuilder() {\n return getChunkRequest();\n }",
"public Builder setChunkId(int value) {\n \n chunkId_ = value;\n onChanged();\n return this;\n }",
"public Builder setChunkId(int value) {\n \n chunkId_ = value;\n onChanged();\n return this;\n }",
"public Builder setChunkId(int value) {\n \n chunkId_ = value;\n onChanged();\n return this;\n }",
"public Builder setChunkId(int value) {\n \n chunkId_ = value;\n onChanged();\n return this;\n }",
"public Builder setChunkId(int value) {\n \n chunkId_ = value;\n onChanged();\n return this;\n }",
"public Builder setChunkId(int value) {\n \n chunkId_ = value;\n onChanged();\n return this;\n }",
"public TrackResponse() {\n\t\tsuper();\n\t}",
"private MessageResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private FetchResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"entities.Torrent.ChunkInfoOrBuilder getChunksOrBuilder(\n int index);",
"private ListFilesResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public Builder clearChunks() {\n if (chunksBuilder_ == null) {\n chunks_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n chunksBuilder_.clear();\n }\n return this;\n }",
"private ReadBlockResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private ExecuteBatchResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"@java.lang.Override\n public boolean hasChunkResponse() {\n return chunkResponse_ != null;\n }",
"public Builder addAllChunks(\n java.lang.Iterable<? extends entities.Torrent.ChunkInfo> values) {\n if (chunksBuilder_ == null) {\n ensureChunksIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, chunks_);\n onChanged();\n } else {\n chunksBuilder_.addAllMessages(values);\n }\n return this;\n }",
"public entities.Torrent.ChunkRequest.Builder getChunkRequestBuilder() {\n\n onChanged();\n return getChunkRequestFieldBuilder().getBuilder();\n }",
"com.google.protobuf.ByteString getResponse(int index);",
"public Builder setChunks(\n int index, entities.Torrent.ChunkInfo value) {\n if (chunksBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureChunksIsMutable();\n chunks_.set(index, value);\n onChanged();\n } else {\n chunksBuilder_.setMessage(index, value);\n }\n return this;\n }",
"private com.google.protobuf.SingleFieldBuilderV3<\n edu.usfca.cs.dfs.StorageMessages.StoreChunkResponse, edu.usfca.cs.dfs.StorageMessages.StoreChunkResponse.Builder, edu.usfca.cs.dfs.StorageMessages.StoreChunkResponseOrBuilder> \n getStoreChunkResponseFieldBuilder() {\n if (storeChunkResponseBuilder_ == null) {\n if (!(msgCase_ == 8)) {\n msg_ = edu.usfca.cs.dfs.StorageMessages.StoreChunkResponse.getDefaultInstance();\n }\n storeChunkResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n edu.usfca.cs.dfs.StorageMessages.StoreChunkResponse, edu.usfca.cs.dfs.StorageMessages.StoreChunkResponse.Builder, edu.usfca.cs.dfs.StorageMessages.StoreChunkResponseOrBuilder>(\n (edu.usfca.cs.dfs.StorageMessages.StoreChunkResponse) msg_,\n getParentForChildren(),\n isClean());\n msg_ = null;\n }\n msgCase_ = 8;\n onChanged();;\n return storeChunkResponseBuilder_;\n }",
"public OrderResponseBuilder() {\r\n orderResponse = new OrderResponse();\r\n }",
"private DownloadResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public Builder clearChunkRequest() {\n if (chunkRequestBuilder_ == null) {\n chunkRequest_ = null;\n onChanged();\n } else {\n chunkRequest_ = null;\n chunkRequestBuilder_ = null;\n }\n\n return this;\n }",
"private MessagesResponse(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n }",
"protected Version putChunks(long startByte,\n byte chunkPrefix[],\n Version metadataVersion)\n throws IOException {\n\n if (((chunkPrefix == null) != ((startByte % chunkSize) == 0))) {\n throw new IllegalStateException(\"start byte:\" + startByte +\n \" chunk size:\" + chunkSize +\n \" inconsistent with prefix chunk:\" +\n chunkPrefix);\n }\n\n if ((lobSize < 0) || (numChunks < 0)) {\n throw new IllegalStateException(\"lobSize:\" + lobSize +\n \" numChunks:\" + numChunks);\n }\n\n byte chunk[] = new byte[chunkSize];\n boolean initialReplacePut = false;\n\n int currentSize = 0;\n if (chunkPrefix != null) {\n currentSize = chunkPrefix.length;\n lobSize -= currentSize;\n /* Back up over the chunk, so we can overwrite it. */\n numChunks--;\n System.arraycopy(chunkPrefix, 0, chunk, 0, currentSize);\n initialReplacePut = true;\n }\n\n final ChunkKeysIterator chunkKeys =\n getChunkKeysByteRangeIterator(startByte, Long.MAX_VALUE);\n\n readLoop:\n while (true) {\n int readBytes = -1;\n\n /* Fill up a chunk. */\n while (currentSize < chunkSize) {\n readBytes = lobStream.read(chunk, currentSize,\n (chunkSize - currentSize));\n if (readBytes == -1) {\n if (currentSize > 0) {\n break;\n }\n break readLoop;\n }\n currentSize += readBytes;\n }\n\n final Key chunkKey = chunkKeys.next();\n\n /* Write it, vary the durability based upon the chunk. */\n final Durability chunkDurability = (readBytes == -1) ||\n (chunkKeys.getChunkId() == chunksPerPartition) ?\n lobDurability : CHUNK_DURABILITY;\n\n putChunk(chunkKey, chunk, currentSize,\n initialReplacePut, chunkDurability);\n numChunks++;\n if (chunkKeys.getChunkId() == 1) {\n metadataVersion =\n checkpointSuperChunkId(chunkKeys.getSuperChunkId(),\n metadataVersion);\n }\n lobSize += currentSize;\n currentSize = 0;\n initialReplacePut = false;\n }\n\n return metadataVersion;\n }",
"public entities.Torrent.ChunkRequestOrBuilder getChunkRequestOrBuilder() {\n if (chunkRequestBuilder_ != null) {\n return chunkRequestBuilder_.getMessageOrBuilder();\n } else {\n return chunkRequest_ == null ?\n entities.Torrent.ChunkRequest.getDefaultInstance() : chunkRequest_;\n }\n }",
"public Builder setChunksCount(int value) {\n bitField0_ |= 0x00000002;\n chunksCount_ = value;\n onChanged();\n return this;\n }",
"@Test\n public void testInterceptedChunkedOutputToChunkInput() throws Exception {\n final ChunkedInput<String> input = target().path(\"test/intercepted\").request().get(new javax.ws.rs.core.GenericType<ChunkedInput<String>>() {});\n int counter = 0;\n String chunk;\n while ((chunk = input.read()) != null) {\n Assert.assertEquals((\"Unexpected value of chunk \" + counter), \"test\", chunk);\n counter++;\n } \n Assert.assertThat(\"Unexpected numbed of received chunks.\", counter, Matchers.equalTo(3));\n Assert.assertThat(\"Unexpected number of chunked output interceptions.\", ChunkedInputOutputTest.TestWriterInterceptor.interceptCounter.get(), Matchers.equalTo(1));\n Assert.assertThat(\"Unexpected number of intercepted output write calls.\", ChunkedInputOutputTest.TestWriterInterceptor.writeCounter.get(), Matchers.greaterThanOrEqualTo(1));\n Assert.assertThat(\"Unexpected number of intercepted output flush calls.\", ChunkedInputOutputTest.TestWriterInterceptor.flushCounter.get(), Matchers.greaterThanOrEqualTo(3));\n Assert.assertThat(\"Unexpected number of intercepted output close calls.\", ChunkedInputOutputTest.TestWriterInterceptor.closeCounter.get(), Matchers.equalTo(1));\n }",
"public Builder setChunkSize(long value) {\n \n chunkSize_ = value;\n onChanged();\n return this;\n }",
"public Builder setChunkSize(long value) {\n \n chunkSize_ = value;\n onChanged();\n return this;\n }",
"public Builder setChunkSize(long value) {\n \n chunkSize_ = value;\n onChanged();\n return this;\n }",
"public Builder setChunkSize(long value) {\n \n chunkSize_ = value;\n onChanged();\n return this;\n }"
] |
[
"0.76286674",
"0.73831373",
"0.7164714",
"0.7137621",
"0.69883126",
"0.69719857",
"0.6946102",
"0.68185127",
"0.68112165",
"0.65996456",
"0.6556305",
"0.63836443",
"0.6240997",
"0.623968",
"0.6170327",
"0.60037065",
"0.6000993",
"0.594848",
"0.5936202",
"0.58776116",
"0.5847994",
"0.5803144",
"0.5750806",
"0.56944525",
"0.56517655",
"0.56481004",
"0.56323314",
"0.5625481",
"0.561628",
"0.5567483",
"0.55619085",
"0.5557519",
"0.5517958",
"0.5511354",
"0.5503948",
"0.54911804",
"0.5490236",
"0.54533327",
"0.5439848",
"0.543645",
"0.542675",
"0.54176766",
"0.53844345",
"0.53377956",
"0.53192306",
"0.53141296",
"0.53141296",
"0.53141296",
"0.53141296",
"0.53141296",
"0.53141296",
"0.53141296",
"0.5307338",
"0.53057253",
"0.5301056",
"0.5292418",
"0.527561",
"0.52544326",
"0.52445227",
"0.52437586",
"0.5231486",
"0.52306783",
"0.52263856",
"0.52228427",
"0.5220637",
"0.5180721",
"0.51739365",
"0.5167271",
"0.51577497",
"0.51577497",
"0.51577497",
"0.51577497",
"0.51577497",
"0.51577497",
"0.515385",
"0.51516074",
"0.51463294",
"0.514152",
"0.5138658",
"0.5137959",
"0.51172155",
"0.5113345",
"0.5095315",
"0.50838184",
"0.50827277",
"0.50539446",
"0.5045815",
"0.5045531",
"0.50378346",
"0.50377154",
"0.5035467",
"0.50304246",
"0.50108624",
"0.5008615",
"0.5004034",
"0.49928778",
"0.49907443",
"0.49907443",
"0.49907443",
"0.49907443"
] |
0.7593772
|
1
|
.Status status = 1;
|
@java.lang.Override public int getStatusValue() {
return status_;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setStatus(String status) { this.status = status; }",
"void setStatus(STATUS status);",
"public void setStatus(EnumVar status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\r\n\t this.status = status;\r\n\t }",
"public void setStatus(Integer status) {\r\n this.status = status;\r\n }",
"public void setStatus(Integer status) {\r\n this.status = status;\r\n }",
"void setStatus(int status);",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(int status){\r\n\t\tthis.status=status;\r\n\t}",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(int status);",
"public void setStatus(int status);",
"public void setStatus(Boolean s){ status = s;}",
"public void setStatus(int status) {\n STATUS = status;\n }",
"public void setStatus(Status newStatus){\n status = newStatus;\n }",
"public void setStatus(String stat)\n {\n status = stat;\n }",
"private void setStatus(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n status_ = value;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(long status) {\r\n this.status = status;\r\n }",
"public void setStatus(Integer status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(Integer status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(String status) {\r\n this.status = status;\r\n }",
"public void setStatus(java.lang.Object status) {\n this.status = status;\n }",
"public void setStatus(Status status)\n {\n this.status = status;\n }",
"public void setgetStatus()\r\n\t{\r\n\t\tthis.status = 'S';\r\n\t}",
"public void setStatus(Byte status) {\r\n\t\tthis.status = status;\r\n\t}",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"@Override\n\t\tpublic void setStatus(int status) {\n\t\t\t\n\t\t}",
"public void setStatus(StatusEnum status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(Byte status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(int status) {\n this.status = status;\n }",
"public void setStatus(int status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\r\n this.status = status;\r\n }",
"public void setStatus(String status) {\r\n this.status = status;\r\n }",
"public void setStatus(String status) {\r\n this.status = status;\r\n }",
"public void setStatus(Short status) {\n this.status = status;\n }",
"public void setStatus(STATUS status) {\n this.status = status;\n }",
"void setStatus(String status);",
"public void setStatus(Short status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(Short status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(int v) \n {\n \n if (this.status != v)\n {\n this.status = v;\n setModified(true);\n }\n \n \n }",
"public void setStatus( Short status ) {\n this.status = status;\n }",
"public void setStatus(String newStatus){\n\n //assigns the value of newStatus to the status field\n this.status = newStatus;\n }",
"public Status getStatus(){\n return status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\n this.status = status;\n }"
] |
[
"0.7656765",
"0.76468766",
"0.7565312",
"0.7561203",
"0.75449044",
"0.75449044",
"0.75349724",
"0.74959093",
"0.74959093",
"0.74959093",
"0.74959093",
"0.74959093",
"0.74959093",
"0.74959093",
"0.7482147",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.74783385",
"0.74783385",
"0.746719",
"0.74658287",
"0.746098",
"0.7456925",
"0.7452718",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435248",
"0.7432568",
"0.7432568",
"0.7425985",
"0.74143654",
"0.74118876",
"0.7398544",
"0.7398282",
"0.73973185",
"0.73973185",
"0.7396562",
"0.73950607",
"0.7392215",
"0.7392215",
"0.7382456",
"0.7382456",
"0.7378742",
"0.73726434",
"0.73726434",
"0.7368736",
"0.73626804",
"0.7351154",
"0.7345713",
"0.7345713",
"0.73451585",
"0.7332328",
"0.7329264",
"0.73258084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.728639",
"0.728639",
"0.728639"
] |
0.0
|
-1
|
.Status status = 1;
|
@java.lang.Override public entities.Torrent.Status getStatus() {
@SuppressWarnings("deprecation")
entities.Torrent.Status result = entities.Torrent.Status.valueOf(status_);
return result == null ? entities.Torrent.Status.UNRECOGNIZED : result;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setStatus(String status) { this.status = status; }",
"void setStatus(STATUS status);",
"public void setStatus(EnumVar status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\r\n\t this.status = status;\r\n\t }",
"public void setStatus(Integer status) {\r\n this.status = status;\r\n }",
"public void setStatus(Integer status) {\r\n this.status = status;\r\n }",
"void setStatus(int status);",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(int status){\r\n\t\tthis.status=status;\r\n\t}",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(int status);",
"public void setStatus(int status);",
"public void setStatus(Boolean s){ status = s;}",
"public void setStatus(int status) {\n STATUS = status;\n }",
"public void setStatus(Status newStatus){\n status = newStatus;\n }",
"public void setStatus(String stat)\n {\n status = stat;\n }",
"private void setStatus(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n status_ = value;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(long status) {\r\n this.status = status;\r\n }",
"public void setStatus(Integer status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(Integer status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(String status) {\r\n this.status = status;\r\n }",
"public void setStatus(java.lang.Object status) {\n this.status = status;\n }",
"public void setStatus(Status status)\n {\n this.status = status;\n }",
"public void setgetStatus()\r\n\t{\r\n\t\tthis.status = 'S';\r\n\t}",
"public void setStatus(Byte status) {\r\n\t\tthis.status = status;\r\n\t}",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"@Override\n\t\tpublic void setStatus(int status) {\n\t\t\t\n\t\t}",
"public void setStatus(StatusEnum status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(Byte status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(int status) {\n this.status = status;\n }",
"public void setStatus(int status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\r\n this.status = status;\r\n }",
"public void setStatus(String status) {\r\n this.status = status;\r\n }",
"public void setStatus(String status) {\r\n this.status = status;\r\n }",
"public void setStatus(Short status) {\n this.status = status;\n }",
"public void setStatus(STATUS status) {\n this.status = status;\n }",
"void setStatus(String status);",
"public void setStatus(Short status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(Short status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(int v) \n {\n \n if (this.status != v)\n {\n this.status = v;\n setModified(true);\n }\n \n \n }",
"public void setStatus( Short status ) {\n this.status = status;\n }",
"public void setStatus(String newStatus){\n\n //assigns the value of newStatus to the status field\n this.status = newStatus;\n }",
"public Status getStatus(){\n return status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\n this.status = status;\n }"
] |
[
"0.7656765",
"0.76468766",
"0.7565312",
"0.7561203",
"0.75449044",
"0.75449044",
"0.75349724",
"0.74959093",
"0.74959093",
"0.74959093",
"0.74959093",
"0.74959093",
"0.74959093",
"0.74959093",
"0.7482147",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.74783385",
"0.74783385",
"0.746719",
"0.74658287",
"0.746098",
"0.7456925",
"0.7452718",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435248",
"0.7432568",
"0.7432568",
"0.7425985",
"0.74143654",
"0.74118876",
"0.7398544",
"0.7398282",
"0.73973185",
"0.73973185",
"0.7396562",
"0.73950607",
"0.7392215",
"0.7392215",
"0.7382456",
"0.7382456",
"0.7378742",
"0.73726434",
"0.73726434",
"0.7368736",
"0.73626804",
"0.7351154",
"0.7345713",
"0.7345713",
"0.73451585",
"0.7332328",
"0.7329264",
"0.73258084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.728639",
"0.728639",
"0.728639"
] |
0.0
|
-1
|
string errorMessage = 2;
|
@java.lang.Override
public java.lang.String getErrorMessage() {
java.lang.Object ref = errorMessage_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
errorMessage_ = s;
return s;
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"String errorMessage();",
"private void error(String string) {\n\t\r\n}",
"String getErrorMessage();",
"String getErrorMessage();",
"String getError(int i) {\n if (i >= 0 & i < msgs.length)\n return msgs[i];\n else\n return \"Invalid Error Code\";\n }",
"java.lang.String getError();",
"java.lang.String getError();",
"java.lang.String getError();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"void showErrorMsg(String string);",
"String getGetErrorMessage();",
"java.lang.String getErr();",
"public String getErrorString()\r\n\t{\r\n\t\t\r\n\t\treturn ERROR_STRING;\r\n\t}",
"public void error(String string) {\n\t\t\n\t}",
"String getInvalidMessage();",
"private static String getMessage(int code) {\n switch (code) {\n case ME_DIV_BY_ZERO:\n return \"Attempt to divide by zero.\";\n case ME_ASSIGNLITERAL:\n return \"Attempt to assign to a literal.\";\n case ME_NONVARASSIGN:\n return \"Attempt to assign to a non-variable.\";\n default:\n return \"Unknown error.\";\n }\n }",
"String getErrorsString();",
"public String error();",
"public String getError() {\n\treturn mistake;\n }",
"private String getErrorString() {\n\t\treturn \"GUID:ERROR:\" + mErrors[0][0]\n\t\t + \":\" + mErrors[1][0]\n\t\t + \":\" + mErrors[2][0]\n\t\t + \":\" + mErrors[3][0];\n\t}",
"public String getErrorMessage() \r\n\t{\r\n\t\t\r\n\t\treturn errorMessage;\r\n\t\t\r\n\t}",
"public java.lang.String getErrorMessage(){\n return localErrorMessage;\n }",
"java.lang.String getErrmsg();",
"public String getErrorString()\n\t{\n\t\treturn errorString;\n\t}",
"public static String getLastErrorMessage()\r\n\t{\n\t\treturn lastAlert;\r\n\t}",
"String getMessage();",
"String getMessage();",
"String getMessage();",
"private int getErrorId(final String message) {\n\t\tif (isLowerCase(message)) {\n\t\t\treturn ERROR_LOWER_CASE;\n\t\t} else if (isUnunsedMacro(message)) {\n\t\t\treturn ERROR_UNUSED_MACRO;\n\t\t} else if (isUnunsedVariable(message)) {\n\t\t\treturn ERROR_UNUSED_VARIABLE;\n\t\t} else if (isEndLineSpace(message) || isNoSpace(message)) {\n\t\t\treturn ERROR_NO_SPACE;\n\t\t} else if (isOneSpace(message)) {\n\t\t\treturn ERROR_ONE_SPACE;\n\t\t} else {\n\t\t\treturn ERROR_INVALID;\n\t\t}\n\t}",
"public String getErrorString(String message) {\n \t\treturn getString(new StringBuffer(\"error.\").append(message).toString());\n \t}",
"String getErrorMessage(E input);",
"public String errorMessage()\n {\n return new String(errorMessageAsBytes());\n }",
"String Message ();",
"public String errorMessage() {\n return errorMessage;\n }",
"void SemErr(String str);",
"public String getErrorMessage()\n {\n return errorMessage;\n }",
"ErrorCodes(int code){\n this.code = code;\n //this.message = message;\n }",
"int getErrorCode();",
"public String getErrorCode();",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n errorMessage_ = s;\n }\n return s;\n }\n }",
"void showError(@StringRes int errorMessage);",
"void showError(String errorMessage);",
"private static int getErrorLine(String errmsg){\n\t\treturn Integer.parseInt(errmsg.substring(0,errmsg.indexOf(\":\")).substring(errmsg.substring(0,errmsg.indexOf(\":\")).lastIndexOf(\" \")+1));\n\t}",
"public String errorMessage()\n {\n return edma_errorMsg;\n }",
"public String getErrorMessage() {\r\n return this.errorMessage;\r\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public String errorMessage() {\n return this.errorMessage;\n }",
"public String getErrorMessage() {\n\t\treturn errorMessage;\n\t}",
"public int getError() {\n return error;\n }",
"public String getErrorMessage() {\n return this.errorMessage;\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"void setErrorMessage(String errorMessage);",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"static int errorMsg(int eCode)\n {\n if (eCode == 0) return 0;\n String message = \"\";\n switch (eCode){\n case 1: message = \"Division by zero\"; break;\n case 2: message = \"Non-matching parenthesis in function\"; break;\n case 3: message = \"Must enclose negative exponents in parentheses\"; break;\n case 4: message = \"Incorrect Operator Syntax\"; break;\n case 5: message = \"Rightfunctions must use parenthesis. (example: ABS(-2);\"; break;\n case 6: message = \"Unrecognized token in function srtring.\"; break;\n case 8: message = \"Can not raise negative number to a fractional power.\"; break;\n case 10:message = \"Input a real number with no operators\"; break;\n }\n JOptionPane.showMessageDialog(null, message, \"Error \"+eCode, JOptionPane.ERROR_MESSAGE);\n return 0;\n }",
"public String getError() {\n return errMsg;\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n }\n }",
"public String getMsgError() {\r\n\t\treturn msgError;\r\n\t}",
"public String getErrorMessage() {\n return errorMessage;\n }",
"public String getErrorMessage() {\n return errorMessage;\n }",
"public String getErrorMessage() {\n return errorMessage;\n }",
"String getFailureMessage();",
"public int error() {\n return this.error;\n }",
"public String getParseErrorMessage();",
"public String getErrorMessage() {\n return ERROR_MESSAGE;\n }",
"public String getError() {\r\n if (scriptError == null) return \"\";\r\n return scriptError;\r\n }",
"private String getGUIErrorMsg(long errorcode) {\n\t\tif (errorcode == 0) {\n\t\t\treturn \"This popup shouldn't have launched!\";\n\t\t} else if (errorcode == 9) {\n\t\t\treturn \"Latitude input format incorrect!\\nValid Latitude values are -90 to 90 with negative values being south Latitude.\";\n\t\t} else if (errorcode == 10) {\n\t\t\treturn \"Longitude input format incorrect!\\nValid Longitude values are -180 to 180 with negative values being west latitude.\";\n\t\t} else if (errorcode == 11) {\n\t\t\treturn \"Date input format incorrect!\\nValid dates go <year>-<month>-<day>\\nValid month values are 1- 12 and valid day values are 1 - 31.\";\n\t\t} else if (errorcode == 12) {\n\t\t\treturn \"Time input format incorrect!\\nValid times go <hour>-<minute>-<second>\\nValid hour values are 0 - 23 and valid minute and second values are 0 - 59\";\n\t\t} else if (errorcode == 1) {\n\t\t\treturn \"Invalid latitude!\\nValid Latitude values are -90 to 90 with negative values being south Latitude.\";\n\t\t} else if (errorcode == 2) {\n\t\t\treturn \"Invalid Longitude!\\nValid Longitude values are -180 to 180 with negative values being west latitude.\";\n\t\t} else if (errorcode == 3) {\n\t\t\treturn \"Invalid Year!\\nValid year values are \" + Integer.MIN_VALUE + \" - \" + Integer.MAX_VALUE + \".\";\n\t\t} else if (errorcode == 4) {\n\t\t\treturn \"Invalid Month!\\nValid month values are 1 - 12\";\n\t\t} else if (errorcode == 5) {\n\t\t\treturn \"Invalid Day!\\nValid day values are 1 - 31\";\n\t\t} else if (errorcode == 6) {\n\t\t\treturn \"Invalid Hour!\\nValid hour values are 0 - 23\";\n\t\t} else if (errorcode == 7) {\n\t\t\treturn \"Invalid Minute!\\nValid minute values are 0 - 59\";\n\t\t} else if (errorcode == 8) {\n\t\t\treturn \"Invalid Second!\\nValid second values are 0 - 59\";\n\t\t} \n\t\treturn \"Undefined Error Message!\";\n\t}",
"public void setErrorMsg(String text) {\n this.errorMsg = text;\n }",
"public int getErrorNo() {\n return this.errorNo;\n }",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();"
] |
[
"0.7234827",
"0.68487597",
"0.68242407",
"0.68242407",
"0.66320926",
"0.6613902",
"0.6613902",
"0.6613902",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.6587221",
"0.6458624",
"0.642881",
"0.6387629",
"0.6339448",
"0.63337046",
"0.6318866",
"0.6310054",
"0.6266495",
"0.6207546",
"0.6169787",
"0.6162002",
"0.61556125",
"0.61209476",
"0.6114965",
"0.61042917",
"0.60988075",
"0.60988075",
"0.60988075",
"0.60916275",
"0.60737956",
"0.6044167",
"0.60035205",
"0.59917176",
"0.59845275",
"0.59643966",
"0.5963419",
"0.59538627",
"0.5917793",
"0.58881736",
"0.58858836",
"0.5880861",
"0.58786815",
"0.5865479",
"0.5863698",
"0.5842632",
"0.583974",
"0.583974",
"0.583974",
"0.583974",
"0.583974",
"0.583974",
"0.583974",
"0.58391654",
"0.58391654",
"0.58391654",
"0.5837601",
"0.5828023",
"0.58268774",
"0.58249444",
"0.5820853",
"0.5818837",
"0.5808825",
"0.5808012",
"0.5803665",
"0.57976645",
"0.5796016",
"0.57934284",
"0.57934284",
"0.57934284",
"0.5786855",
"0.57868457",
"0.5785435",
"0.578205",
"0.576942",
"0.57514906",
"0.57502955",
"0.5743453",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053"
] |
0.0
|
-1
|
string errorMessage = 2;
|
@java.lang.Override
public com.google.protobuf.ByteString
getErrorMessageBytes() {
java.lang.Object ref = errorMessage_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
errorMessage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"String errorMessage();",
"private void error(String string) {\n\t\r\n}",
"String getErrorMessage();",
"String getErrorMessage();",
"String getError(int i) {\n if (i >= 0 & i < msgs.length)\n return msgs[i];\n else\n return \"Invalid Error Code\";\n }",
"java.lang.String getError();",
"java.lang.String getError();",
"java.lang.String getError();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"void showErrorMsg(String string);",
"String getGetErrorMessage();",
"java.lang.String getErr();",
"public String getErrorString()\r\n\t{\r\n\t\t\r\n\t\treturn ERROR_STRING;\r\n\t}",
"public void error(String string) {\n\t\t\n\t}",
"String getInvalidMessage();",
"private static String getMessage(int code) {\n switch (code) {\n case ME_DIV_BY_ZERO:\n return \"Attempt to divide by zero.\";\n case ME_ASSIGNLITERAL:\n return \"Attempt to assign to a literal.\";\n case ME_NONVARASSIGN:\n return \"Attempt to assign to a non-variable.\";\n default:\n return \"Unknown error.\";\n }\n }",
"String getErrorsString();",
"public String error();",
"public String getError() {\n\treturn mistake;\n }",
"private String getErrorString() {\n\t\treturn \"GUID:ERROR:\" + mErrors[0][0]\n\t\t + \":\" + mErrors[1][0]\n\t\t + \":\" + mErrors[2][0]\n\t\t + \":\" + mErrors[3][0];\n\t}",
"public String getErrorMessage() \r\n\t{\r\n\t\t\r\n\t\treturn errorMessage;\r\n\t\t\r\n\t}",
"public java.lang.String getErrorMessage(){\n return localErrorMessage;\n }",
"java.lang.String getErrmsg();",
"public String getErrorString()\n\t{\n\t\treturn errorString;\n\t}",
"public static String getLastErrorMessage()\r\n\t{\n\t\treturn lastAlert;\r\n\t}",
"String getMessage();",
"String getMessage();",
"String getMessage();",
"private int getErrorId(final String message) {\n\t\tif (isLowerCase(message)) {\n\t\t\treturn ERROR_LOWER_CASE;\n\t\t} else if (isUnunsedMacro(message)) {\n\t\t\treturn ERROR_UNUSED_MACRO;\n\t\t} else if (isUnunsedVariable(message)) {\n\t\t\treturn ERROR_UNUSED_VARIABLE;\n\t\t} else if (isEndLineSpace(message) || isNoSpace(message)) {\n\t\t\treturn ERROR_NO_SPACE;\n\t\t} else if (isOneSpace(message)) {\n\t\t\treturn ERROR_ONE_SPACE;\n\t\t} else {\n\t\t\treturn ERROR_INVALID;\n\t\t}\n\t}",
"public String getErrorString(String message) {\n \t\treturn getString(new StringBuffer(\"error.\").append(message).toString());\n \t}",
"String getErrorMessage(E input);",
"public String errorMessage()\n {\n return new String(errorMessageAsBytes());\n }",
"String Message ();",
"public String errorMessage() {\n return errorMessage;\n }",
"void SemErr(String str);",
"public String getErrorMessage()\n {\n return errorMessage;\n }",
"ErrorCodes(int code){\n this.code = code;\n //this.message = message;\n }",
"int getErrorCode();",
"public String getErrorCode();",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n errorMessage_ = s;\n }\n return s;\n }\n }",
"void showError(@StringRes int errorMessage);",
"void showError(String errorMessage);",
"private static int getErrorLine(String errmsg){\n\t\treturn Integer.parseInt(errmsg.substring(0,errmsg.indexOf(\":\")).substring(errmsg.substring(0,errmsg.indexOf(\":\")).lastIndexOf(\" \")+1));\n\t}",
"public String errorMessage()\n {\n return edma_errorMsg;\n }",
"public String getErrorMessage() {\r\n return this.errorMessage;\r\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public String errorMessage() {\n return this.errorMessage;\n }",
"public String getErrorMessage() {\n\t\treturn errorMessage;\n\t}",
"public int getError() {\n return error;\n }",
"public String getErrorMessage() {\n return this.errorMessage;\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"void setErrorMessage(String errorMessage);",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"static int errorMsg(int eCode)\n {\n if (eCode == 0) return 0;\n String message = \"\";\n switch (eCode){\n case 1: message = \"Division by zero\"; break;\n case 2: message = \"Non-matching parenthesis in function\"; break;\n case 3: message = \"Must enclose negative exponents in parentheses\"; break;\n case 4: message = \"Incorrect Operator Syntax\"; break;\n case 5: message = \"Rightfunctions must use parenthesis. (example: ABS(-2);\"; break;\n case 6: message = \"Unrecognized token in function srtring.\"; break;\n case 8: message = \"Can not raise negative number to a fractional power.\"; break;\n case 10:message = \"Input a real number with no operators\"; break;\n }\n JOptionPane.showMessageDialog(null, message, \"Error \"+eCode, JOptionPane.ERROR_MESSAGE);\n return 0;\n }",
"public String getError() {\n return errMsg;\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n }\n }",
"public String getMsgError() {\r\n\t\treturn msgError;\r\n\t}",
"public String getErrorMessage() {\n return errorMessage;\n }",
"public String getErrorMessage() {\n return errorMessage;\n }",
"public String getErrorMessage() {\n return errorMessage;\n }",
"String getFailureMessage();",
"public int error() {\n return this.error;\n }",
"public String getParseErrorMessage();",
"public String getErrorMessage() {\n return ERROR_MESSAGE;\n }",
"public String getError() {\r\n if (scriptError == null) return \"\";\r\n return scriptError;\r\n }",
"private String getGUIErrorMsg(long errorcode) {\n\t\tif (errorcode == 0) {\n\t\t\treturn \"This popup shouldn't have launched!\";\n\t\t} else if (errorcode == 9) {\n\t\t\treturn \"Latitude input format incorrect!\\nValid Latitude values are -90 to 90 with negative values being south Latitude.\";\n\t\t} else if (errorcode == 10) {\n\t\t\treturn \"Longitude input format incorrect!\\nValid Longitude values are -180 to 180 with negative values being west latitude.\";\n\t\t} else if (errorcode == 11) {\n\t\t\treturn \"Date input format incorrect!\\nValid dates go <year>-<month>-<day>\\nValid month values are 1- 12 and valid day values are 1 - 31.\";\n\t\t} else if (errorcode == 12) {\n\t\t\treturn \"Time input format incorrect!\\nValid times go <hour>-<minute>-<second>\\nValid hour values are 0 - 23 and valid minute and second values are 0 - 59\";\n\t\t} else if (errorcode == 1) {\n\t\t\treturn \"Invalid latitude!\\nValid Latitude values are -90 to 90 with negative values being south Latitude.\";\n\t\t} else if (errorcode == 2) {\n\t\t\treturn \"Invalid Longitude!\\nValid Longitude values are -180 to 180 with negative values being west latitude.\";\n\t\t} else if (errorcode == 3) {\n\t\t\treturn \"Invalid Year!\\nValid year values are \" + Integer.MIN_VALUE + \" - \" + Integer.MAX_VALUE + \".\";\n\t\t} else if (errorcode == 4) {\n\t\t\treturn \"Invalid Month!\\nValid month values are 1 - 12\";\n\t\t} else if (errorcode == 5) {\n\t\t\treturn \"Invalid Day!\\nValid day values are 1 - 31\";\n\t\t} else if (errorcode == 6) {\n\t\t\treturn \"Invalid Hour!\\nValid hour values are 0 - 23\";\n\t\t} else if (errorcode == 7) {\n\t\t\treturn \"Invalid Minute!\\nValid minute values are 0 - 59\";\n\t\t} else if (errorcode == 8) {\n\t\t\treturn \"Invalid Second!\\nValid second values are 0 - 59\";\n\t\t} \n\t\treturn \"Undefined Error Message!\";\n\t}",
"public void setErrorMsg(String text) {\n this.errorMsg = text;\n }",
"public int getErrorNo() {\n return this.errorNo;\n }",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();"
] |
[
"0.7234827",
"0.68487597",
"0.68242407",
"0.68242407",
"0.66320926",
"0.6613902",
"0.6613902",
"0.6613902",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.6587221",
"0.6458624",
"0.642881",
"0.6387629",
"0.6339448",
"0.63337046",
"0.6318866",
"0.6310054",
"0.6266495",
"0.6207546",
"0.6169787",
"0.6162002",
"0.61556125",
"0.61209476",
"0.6114965",
"0.61042917",
"0.60988075",
"0.60988075",
"0.60988075",
"0.60916275",
"0.60737956",
"0.6044167",
"0.60035205",
"0.59917176",
"0.59845275",
"0.59643966",
"0.5963419",
"0.59538627",
"0.5917793",
"0.58881736",
"0.58858836",
"0.5880861",
"0.58786815",
"0.5865479",
"0.5863698",
"0.5842632",
"0.583974",
"0.583974",
"0.583974",
"0.583974",
"0.583974",
"0.583974",
"0.583974",
"0.58391654",
"0.58391654",
"0.58391654",
"0.5837601",
"0.5828023",
"0.58268774",
"0.58249444",
"0.5820853",
"0.5818837",
"0.5808825",
"0.5808012",
"0.5803665",
"0.57976645",
"0.5796016",
"0.57934284",
"0.57934284",
"0.57934284",
"0.5786855",
"0.57868457",
"0.5785435",
"0.578205",
"0.576942",
"0.57514906",
"0.57502955",
"0.5743453",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053"
] |
0.0
|
-1
|
Chunk content (1024 bytes or less) bytes data = 3;
|
@java.lang.Override
public com.google.protobuf.ByteString getData() {
return data_;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private void readHttpDataChunkByChunk(HttpPostRequestDecoder decoder) {\n try {\n while (decoder.hasNext()) {\n InterfaceHttpData data = decoder.next();\n if (data != null) {\n // check if current HttpData is a FileUpload and previously set as partial\n if (partialContent == data) {\n partialContent = null;\n }\n try {\n // new value\n writeHttpData(data);\n } finally {\n data.release();\n }\n }\n }\n // Check partial decoding for a FileUpload\n InterfaceHttpData data = decoder.currentPartialHttpData();\n if (data != null) {\n if (partialContent == null) {\n partialContent = (HttpData) data;\n }\n }\n } catch (HttpPostRequestDecoder.EndOfDataDecoderException e1) {\n // end\n }\n }",
"DataChunk nextChunk() throws RemoteException;",
"private int getChunk(byte [] buffer, int offset, String chunk) {\r\n\t\ttry {\r\n\t\t\tfor (;;) {\r\n\t\t\t\tint dataLenght = getInt(buffer, offset);\r\n\t\t\t\tif (compareBytes(buffer, offset+4, chunk)) {\r\n\t\t\t\t\treturn offset;\r\n\t\t\t\t} else {\r\n\t\t\t\t\toffset += 4 + 4 + dataLenght + 4;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception e) {};\r\n\t\treturn -1;\r\n\t}",
"entities.Torrent.ChunkResponse getChunkResponse();",
"void sendChunkRequest(int chunkX, int chunkY);",
"private static boolean parseChunk(final FileChannel fc,final long[] offset,final int depth) throws IOException {\n\t Log.d(TAG, \"entering parseChunk \"+ offset[0] +\"/\"+ depth);\n\n\t long data_offset = offset[0];\n\n long chunk_size = Util.readUInt(fc, data_offset); \n int chunk_type = Util.readInt(fc, data_offset+4);\n\n Log.v(TAG, chunk_type + \" \" + chunk_size);\n char sChunk[] = new char[4];\n Util.MakeFourCCString(chunk_type, sChunk);\n Log.v(TAG, String.format(\"chunk %s\", String.valueOf(sChunk)));\n\n data_offset += 8;\n // long chunk_data_size = offset[0] + chunk_size - data_offset;\n\n if (chunk_size == 1) {\n\n chunk_size = Util.readLong(fc, data_offset);\n\n data_offset += 8;\n\n if (chunk_size < 16) {\n Log.e(TAG,\" The smallest valid chunk is 16 bytes long in this case.\");\n return false;\n }\n\n } else if (chunk_size < 8) {\n Log.e(TAG,\"The smallest valid chunk is 8 bytes long.\");\n return false;\n }\n\n Log.v(TAG, String.format(\"parsing chunk %s at depth %d\",\n String.valueOf(sChunk), depth));\n\n if(chunk_type == Util.FOURCC('m', 'o', 'o', 'v') || chunk_type == Util.FOURCC('u', 'd', 't', 'a')) {\n Log.d(TAG, String.valueOf(sChunk));\n\n long stop_offset = offset[0] + chunk_size;\n offset[0] = data_offset;\n while (offset[0] < stop_offset) {\n boolean err = parseChunk(fc,offset, depth + 1);\n if (!err) {\n return err;\n }\n }\n\n if (offset[0] != stop_offset) {\n return false;\n }\n\n if (chunk_type == Util.FOURCC('m', 'o', 'o', 'v') ) {\n return true;\n }\n }\n else if(chunk_type == Util.FOURCC('h', 't', 'c', 'b')) {\n Log.d(TAG,\"Found Htc MetaData\");\n sHtcTableOffset = data_offset;\n Log.d(TAG,\"sHtcTableOffset = \" + sHtcTableOffset );\n parseHtcMetaData(fc,data_offset,chunk_size);\n Log.d(TAG,\"Parse Htc MetaData done\");\n offset[0] += chunk_size;\n } else if (chunk_type == Util.FOURCC('_', 'h', 't', 'c')\n || chunk_type == Util.FOURCC('d', 't', 'a', 'h')) {\n Log.d(TAG, \"Found HTC box\");\n offset[0] += 8;\n parseChunk(fc, offset, depth + 1);\n } else {\n offset[0] += chunk_size;\n }\n return true;\n }",
"int getChunkSize();",
"@Test\n public void testChunkedOutputToChunkInput() throws Exception {\n final ChunkedInput<String> input = target().path(\"test\").request().get(new javax.ws.rs.core.GenericType<ChunkedInput<String>>() {});\n int counter = 0;\n String chunk;\n while ((chunk = input.read()) != null) {\n Assert.assertEquals((\"Unexpected value of chunk \" + counter), \"test\", chunk);\n counter++;\n } \n Assert.assertEquals(\"Unexpected numbed of received chunks.\", 3, counter);\n }",
"long getChunkSize();",
"long getChunkSize();",
"long getChunkSize();",
"long getChunkSize();",
"void handleChunk(char[] buff, int length) {\n\t\tint newlinePos = -1;\n\t\tfor (int pos = 0; pos < length; pos++) {\n\t\t\tif (buff[pos] == '\\n') {\n\t\t\t\tnewlinePos = pos;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (newlinePos > -1) {\n\t\t\tloaded.append(buff, 0, newlinePos);\n\t\t\tendLine();\n\t\t\tloaded.append(buff, newlinePos + 1, length - newlinePos - 1);\n\t\t} else {\n\t\t\tloaded.append(buff, 0, length);\n\t\t}\n\t}",
"public SmallChunkData(Chunk c){\n\t\t\tx = c.getX();\n\t\t\tz = c.getZ();\n\t\t\tworldName = c.getWorld().getName();\n\t\t\tfor(int x = 0; x < 16; x ++){\n\t\t\t\tfor(int z = 0; z < 16; z ++){\n\t\t\t\t\tbiomes[x][z] = c.getBlock(x, 0, z).getBiome();\n\t\t\t\t}\n\t\t\t}\n\t\t\t/*for(int y = 0; y < 256; y ++){\n\t\t\t\tfor(int x = 0; x < 16; x ++){\n\t\t\t\t\tfor(int z = 0; z < 16; z ++){\n\t\t\t\t\t\tdata[y][x][z] = new MaterialData(c.getBlock(x, y, z).getType(), c.getBlock(x, y, z).getData());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}*/\n\t\t}",
"public int getChunkCount () {\n return (this.getTagCount()>>BITS_TO_SHIFT_FOR_CHUNK) + 1;\n }",
"byte[] getContent() throws IOException;",
"void mo54417a(DownloadChunk downloadChunk);",
"public int getChunkNo() {\n return chunkNo;\n }",
"public int getChunkNo() {\n return chunkNo;\n }",
"byte[] getContent();",
"byte[] getByteContent() throws IOException;",
"boolean canRequestChunk();",
"public int getChunkWidth() {\n return 256;\n }",
"entities.Torrent.ChunkRequest getChunkRequest();",
"public boolean isChunked() {\n/* 101 */ return this.chunked;\n/* */ }",
"public void writeChunk(String id, byte[] data) throws IOException {\n byte[] identifier = id.getBytes(\"US-ASCII\");\n if (identifier.length != 4) {\n throw new IllegalArgumentException(\"ID length must match 4!\");\n }\n writeInt(data.length);\n write(identifier);\n write(data);\n CRC32 crc = new CRC32();\n crc.update(identifier);\n crc.update(data);\n writeInt((int) (crc.getValue() & 0xFFFFFFFFL));\n crc.reset();\n }",
"public final ByteBlock getData() { return data; }",
"public void data(byte[] data, int count);",
"int getChunkId();",
"int getChunkId();",
"int getChunkId();",
"int getChunkId();",
"int getChunkId();",
"int getChunkId();",
"private void onReceivedResponseData(org.apache.http.HttpResponse r14, com.tencent.tmassistantsdk.protocol.jce.DownloadChunkLogInfo r15) {\n /*\n r13 = this;\n r2 = 705; // 0x2c1 float:9.88E-43 double:3.483E-321;\n r6 = 206; // 0xce float:2.89E-43 double:1.02E-321;\n r7 = 0;\n r12 = 0;\n r0 = r14.getEntity();\n r1 = r13.verifyTotalLen(r14, r0);\n if (r1 != 0) goto L_0x0022;\n L_0x0010:\n r0 = \"_DownloadTask\";\n r1 = \"verifyTotalLen false\";\n com.tencent.tmassistantsdk.util.TMLog.i(r0, r1);\n r0 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\n r1 = \"totalLen is not match the requestSize\";\n r0.<init>(r2, r1);\n throw r0;\n L_0x0022:\n r1 = r13.mDownloadInfo;\n r2 = r1.getTotalSize();\n r4 = 0;\n r1 = (r2 > r4 ? 1 : (r2 == r4 ? 0 : -1));\n if (r1 != 0) goto L_0x015c;\n L_0x002e:\n r1 = r14.getStatusLine();\n r1 = r1.getStatusCode();\n r2 = 200; // 0xc8 float:2.8E-43 double:9.9E-322;\n if (r1 != r2) goto L_0x00f9;\n L_0x003a:\n r1 = r13.mDownloadInfo;\n r2 = r0.getContentLength();\n r1.setTotalSize(r2);\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"HTTPCode 200, totalBytes:\";\n r2.<init>(r3);\n r3 = r13.mDownloadInfo;\n r4 = r3.getTotalSize();\n r2 = r2.append(r4);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.i(r1, r2);\n L_0x005f:\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"first start downloadinfoTotalSize = \";\n r2.<init>(r3);\n r3 = r13.mDownloadInfo;\n r4 = r3.getTotalSize();\n r2 = r2.append(r4);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r2);\n r1 = \"content-range\";\n r1 = r14.getFirstHeader(r1);\n if (r1 == 0) goto L_0x00a0;\n L_0x0084:\n r1 = r1.getValue();\n r1 = com.tencent.tmassistantsdk.downloadservice.ByteRange.parseContentRange(r1);\n r2 = r1.getStart();\n r15.responseRangePosition = r2;\n r2 = r1.getEnd();\n r4 = r1.getStart();\n r2 = r2 - r4;\n r4 = 1;\n r2 = r2 + r4;\n r15.responseRangeLength = r2;\n L_0x00a0:\n r1 = r13.mDownloadInfo;\n r2 = r1.getTotalSize();\n r15.responseContentLength = r2;\n L_0x00a8:\n r1 = r13.mSaveFile;\n if (r1 != 0) goto L_0x00bb;\n L_0x00ac:\n r1 = new com.tencent.tmassistantsdk.storage.TMAssistantFile;\n r2 = r13.mDownloadInfo;\n r2 = r2.mTempFileName;\n r3 = r13.mDownloadInfo;\n r3 = r3.mFileName;\n r1.<init>(r2, r3);\n r13.mSaveFile = r1;\n L_0x00bb:\n r2 = 0;\n r10 = r0.getContent();\t Catch:{ SocketException -> 0x0406 }\n r0 = \"_DownloadTask\";\n r1 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x0406 }\n r4 = \"start write file, fileName: \";\n r1.<init>(r4);\t Catch:{ SocketException -> 0x0406 }\n r4 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x0406 }\n r4 = r4.mFileName;\t Catch:{ SocketException -> 0x0406 }\n r1 = r1.append(r4);\t Catch:{ SocketException -> 0x0406 }\n r1 = r1.toString();\t Catch:{ SocketException -> 0x0406 }\n com.tencent.tmassistantsdk.util.TMLog.i(r0, r1);\t Catch:{ SocketException -> 0x0406 }\n r8 = r2;\n L_0x00dc:\n r0 = r13.mRecvBuf;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = r10.read(r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r3 <= 0) goto L_0x00eb;\n L_0x00e4:\n r0 = r13.mStopTask;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 == 0) goto L_0x0262;\n L_0x00e8:\n r10.close();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x00eb:\n r0 = r13.mSaveFile;\n if (r0 == 0) goto L_0x00f6;\n L_0x00ef:\n r0 = r13.mSaveFile;\n r0.close();\n r13.mSaveFile = r12;\n L_0x00f6:\n r15.receiveDataSize = r8;\n return;\n L_0x00f9:\n r1 = r14.getStatusLine();\n r1 = r1.getStatusCode();\n if (r1 != r6) goto L_0x0135;\n L_0x0103:\n r1 = \"content-range\";\n r1 = r14.getFirstHeader(r1);\n r2 = r13.mDownloadInfo;\n r1 = r1.getValue();\n r4 = com.tencent.tmassistantsdk.downloadservice.ByteRange.getTotalSize(r1);\n r2.setTotalSize(r4);\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"HTTPCode 206, totalBytes:\";\n r2.<init>(r3);\n r3 = r13.mDownloadInfo;\n r4 = r3.getTotalSize();\n r2 = r2.append(r4);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.i(r1, r2);\n goto L_0x005f;\n L_0x0135:\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"statusCode=\";\n r2.<init>(r3);\n r3 = r14.getStatusLine();\n r3 = r3.getStatusCode();\n r2 = r2.append(r3);\n r3 = \" onReceivedResponseData error.\";\n r2 = r2.append(r3);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r2);\n goto L_0x005f;\n L_0x015c:\n r1 = r14.getStatusLine();\n r1 = r1.getStatusCode();\n if (r1 != r6) goto L_0x00a8;\n L_0x0166:\n r1 = \"content-range\";\n r1 = r14.getFirstHeader(r1);\t Catch:{ Throwable -> 0x0214 }\n r2 = r1.getValue();\t Catch:{ Throwable -> 0x0214 }\n r2 = com.tencent.tmassistantsdk.downloadservice.ByteRange.parseContentRange(r2);\t Catch:{ Throwable -> 0x0214 }\n r3 = r1.getValue();\t Catch:{ Throwable -> 0x0214 }\n r4 = com.tencent.tmassistantsdk.downloadservice.ByteRange.getTotalSize(r3);\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r15.responseRangePosition = r8;\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getEnd();\t Catch:{ Throwable -> 0x0214 }\n r10 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r8 = r8 - r10;\n r10 = 1;\n r8 = r8 + r10;\n r15.responseRangeLength = r8;\t Catch:{ Throwable -> 0x0214 }\n r15.responseContentLength = r4;\t Catch:{ Throwable -> 0x0214 }\n r3 = \"_DownloadTask\";\n r6 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r8 = \"totalSize = \";\n r6.<init>(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r4);\t Catch:{ Throwable -> 0x0214 }\n r8 = \" downloadinfoTotalSize = \";\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r8 = r8.getTotalSize();\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.w(r3, r6);\t Catch:{ Throwable -> 0x0214 }\n r3 = \"_DownloadTask\";\n r6 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r8 = \"mReceivedBytes = \";\n r6.<init>(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r8 = r8.mReceivedBytes;\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.i(r3, r6);\t Catch:{ Throwable -> 0x0214 }\n r3 = \"_DownloadTask\";\n r6 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r8 = \"start = \";\n r6.<init>(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = \", end = \";\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getEnd();\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.i(r3, r6);\t Catch:{ Throwable -> 0x0214 }\n r2 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r6 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r8 = r6.mReceivedBytes;\t Catch:{ Throwable -> 0x0214 }\n r2 = (r2 > r8 ? 1 : (r2 == r8 ? 0 : -1));\n if (r2 == 0) goto L_0x022a;\n L_0x0209:\n r0 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ Throwable -> 0x0214 }\n r1 = 706; // 0x2c2 float:9.9E-43 double:3.49E-321;\n r2 = \"The received size is not equal with ByteRange.\";\n r0.<init>(r1, r2);\t Catch:{ Throwable -> 0x0214 }\n throw r0;\t Catch:{ Throwable -> 0x0214 }\n L_0x0214:\n r0 = move-exception;\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ all -> 0x021d }\n r2 = 704; // 0x2c0 float:9.87E-43 double:3.48E-321;\n r1.<init>(r2, r0);\t Catch:{ all -> 0x021d }\n throw r1;\t Catch:{ all -> 0x021d }\n L_0x021d:\n r0 = move-exception;\n r1 = r13.mSaveFile;\n if (r1 == 0) goto L_0x0229;\n L_0x0222:\n r1 = r13.mSaveFile;\n r1.close();\n r13.mSaveFile = r12;\n L_0x0229:\n throw r0;\n L_0x022a:\n r2 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r2 = r2.getTotalSize();\t Catch:{ Throwable -> 0x0214 }\n r2 = (r4 > r2 ? 1 : (r4 == r2 ? 0 : -1));\n if (r2 == 0) goto L_0x023f;\n L_0x0234:\n r0 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ Throwable -> 0x0214 }\n r1 = 705; // 0x2c1 float:9.88E-43 double:3.483E-321;\n r2 = \"The total size is not equal with ByteRange.\";\n r0.<init>(r1, r2);\t Catch:{ Throwable -> 0x0214 }\n throw r0;\t Catch:{ Throwable -> 0x0214 }\n L_0x023f:\n r2 = \"_DownloadTask\";\n r3 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r4 = \"response ByteRange: \";\n r3.<init>(r4);\t Catch:{ Throwable -> 0x0214 }\n r1 = r3.append(r1);\t Catch:{ Throwable -> 0x0214 }\n r1 = r1.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.d(r2, r1);\t Catch:{ Throwable -> 0x0214 }\n r1 = r13.mSaveFile;\n if (r1 == 0) goto L_0x00a8;\n L_0x0259:\n r1 = r13.mSaveFile;\n r1.close();\n r13.mSaveFile = r12;\n goto L_0x00a8;\n L_0x0262:\n r0 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = (long) r3;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0 + r4;\n r2 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r2.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = (r0 > r4 ? 1 : (r0 == r4 ? 0 : -1));\n if (r2 > 0) goto L_0x03be;\n L_0x0272:\n r2 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r2.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = (r0 > r4 ? 1 : (r0 == r4 ? 0 : -1));\n if (r0 != 0) goto L_0x0315;\n L_0x027c:\n r6 = 1;\n L_0x027d:\n r0 = r13.mSaveFile;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mRecvBuf;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 0;\n r4 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r4.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.write(r1, r2, r3, r4, r6);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 != 0) goto L_0x03b4;\n L_0x028c:\n r0 = com.tencent.tmassistantsdk.storage.TMAssistantFile.getSavePathRootDir();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = com.tencent.tmassistantsdk.downloadservice.DownloadHelper.isSpaceEnough(r0, r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 == 0) goto L_0x0367;\n L_0x029c:\n r0 = com.tencent.tmassistantsdk.storage.TMAssistantFile.isSDCardExistAndCanWrite();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 == 0) goto L_0x0318;\n L_0x02a2:\n r0 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"write file failed, fileName: \";\n r0.<init>(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r1.mFileName;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" receivedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" readedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" totalSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"_DownloadTask\";\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 703; // 0x2bf float:9.85E-43 double:3.473E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x02ef:\n r0 = move-exception;\n r2 = r8;\n L_0x02f1:\n r1 = \"_DownloadTask\";\n r4 = \"\";\n r5 = 0;\n r5 = new java.lang.Object[r5];\t Catch:{ all -> 0x0305 }\n com.tencent.mm.sdk.platformtools.w.printErrStackTrace(r1, r0, r4, r5);\t Catch:{ all -> 0x0305 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ all -> 0x0305 }\n r4 = 605; // 0x25d float:8.48E-43 double:2.99E-321;\n r1.<init>(r4, r0);\t Catch:{ all -> 0x0305 }\n throw r1;\t Catch:{ all -> 0x0305 }\n L_0x0305:\n r0 = move-exception;\n r8 = r2;\n L_0x0307:\n r1 = r13.mSaveFile;\n if (r1 == 0) goto L_0x0312;\n L_0x030b:\n r1 = r13.mSaveFile;\n r1.close();\n r13.mSaveFile = r12;\n L_0x0312:\n r15.receiveDataSize = r8;\n throw r0;\n L_0x0315:\n r6 = r7;\n goto L_0x027d;\n L_0x0318:\n r0 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"write file failed, no sdCard! fileName: \";\n r0.<init>(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r1.mFileName;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" receivedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" readedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" totalSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"_DownloadTask\";\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 711; // 0x2c7 float:9.96E-43 double:3.513E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x0365:\n r0 = move-exception;\n goto L_0x0307;\n L_0x0367:\n r0 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"write file failed, no enough space! fileName: \";\n r0.<init>(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r1.mFileName;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" receivedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" readedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" totalSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"_DownloadTask\";\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 710; // 0x2c6 float:9.95E-43 double:3.51E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x03b4:\n r0 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = (long) r3;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0.updateReceivedSize(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = (long) r3;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r8 = r8 + r0;\n goto L_0x00dc;\n L_0x03be:\n r0 = \"write file size too long.\";\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = \"write file size too long.\\r\\nreadedLen: \";\n r2.<init>(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = \"\\r\\nreceivedSize: \";\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r3.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = \"\\r\\ntotalSize: \";\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r3.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = \"\\r\\nisTheEndData: false\";\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 703; // 0x2bf float:9.85E-43 double:3.473E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x0406:\n r0 = move-exception;\n goto L_0x02f1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.tmassistantsdk.downloadservice.DownloadTask.onReceivedResponseData(org.apache.http.HttpResponse, com.tencent.tmassistantsdk.protocol.jce.DownloadChunkLogInfo):void\");\n }",
"private byte[] readFixedLengthContent(ByteBuf in) throws UnsupportedEncodingException {\n if (in.readableBytes() < 2) {\n return new byte[]{};\n }\n int strLen = in.readableBytes();\n// if (in.readableBytes() < strLen) {\n// return null;\n// }\n byte[] strRaw = new byte[strLen];\n in.readBytes(strRaw);\n\n return strRaw;\n }",
"@Override\n public void readData(DataKey dataKey) {\n this.chunk = getChunkFromData(dataKey);\n }",
"entities.Torrent.ChunkResponseOrBuilder getChunkResponseOrBuilder();",
"public int getChunkHeight() {\n return 256;\n }",
"public void sendChunk(String fileName,ObjectOutputStream out)\n {\n FileInputStream fInput;\n BufferedInputStream bufInput;\n byte[] byteToSend = new byte[chunkSize];\n try\n {\n fInput = new FileInputStream(fileName);\n bufInput = new BufferedInputStream(fInput);\n int b;\n int i=0;\n b = bufInput.read(byteToSend,0,chunkSize);\n out.write(byteToSend,0,chunkSize);\n out.flush();\n bufInput.close();\n }\n catch(FileNotFoundException ex)\n {\n System.out.println(\"File Chunk Not found Exception: Some chunk missing.\");\n }\n catch(IOException ex)\n {\n System.out.println(\"IOException while reading from the chunk file.\");\n }\n }",
"boolean hasChunkResponse();",
"com.google.protobuf.ByteString getContent();",
"com.google.protobuf.ByteString getContent();",
"edu.usfca.cs.dfs.StorageMessages.StoreChunkResponse getStoreChunkResponse();",
"public Object getContent() {\n/* 112 */ return this.buf;\n/* */ }",
"edu.usfca.cs.dfs.StorageMessages.StoreChunk getStoreChunk();",
"@Override\n\tpublic void open(Context context, Chunk data) {\n\t}",
"entities.Torrent.ChunkInfo getChunks(int index);",
"int getChunkIndex();",
"int getChunkIndex();",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }",
"@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }",
"byte getBlockData();",
"byte[] getData();",
"byte[] getData();",
"byte[] getData();",
"byte[] getData();",
"boolean hasChunkRequest();",
"@Override\n\t\t\t public void start(ByteBuffer data) throws Exception {\n\t\t\t if (self.state.lastFragment == false) {\n\t\t\t self.error(\"fragmented pong is not supported\", 1002);\n\t\t\t return;\n\t\t\t }\n\n\t\t\t // decode length\n\t\t\t int firstLength = data.get(1) & 0x7f;\n\t\t\t if (firstLength < 126) {\n\t\t\t ///opcodes['10'].getData.call(self, firstLength);\n\t\t\t \t getData(firstLength);\n\t\t\t }\n\t\t\t else {\n\t\t\t self.error(\"control frames cannot have more than 125 bytes of data\", 1002);\n\t\t\t }\n\t\t\t }",
"private boolean sendChunk() throws IOException {\n // allocate Buffer\n final Buffer buffer = mm.allocate(chunkSize);\n // mark it available for disposal after content is written\n buffer.allowBufferDispose(true);\n\n // read file to the Buffer\n final int justReadBytes = (int) Buffers.readFromFileChannel(\n fileChannel, buffer);\n \n if (justReadBytes <= 0) {\n complete();\n return false;\n }\n\n // prepare buffer to be written\n buffer.trim();\n\n // write the Buffer\n outputStream.write(buffer);\n size -= justReadBytes;\n\n // check the remaining size here to avoid extra onWritePossible() invocation\n if (size <= 0) {\n complete();\n return false;\n }\n\n return true;\n }",
"public byte[] getChunk(String ChunkHandle, int offset, int NumberOfBytes) {\n\t\t\n\t\tbyte[] payload = null;\n\t\t\n\t\ttry {\n\t\t\t// request \n\t\t\tbyte[] handle = ChunkHandle.getBytes();\n\t\t\t// write payload size (4-command + 4-handle-length + actual handle)\n\t\t\toos.writeInt(4 + 4 + 4 + 4 + handle.length);\n\t\t\t// write command identifier \n\t\t\toos.writeInt(ChunkServer.GetChunk);\n\t\t\t// write chunkHandle length \n\t\t\toos.writeInt(handle.length);\n\t\t\t// write chunk handle\n\t\t\toos.write(handle);\n\t\t\t// write offset \n\t\t\toos.writeInt(offset);\n\t\t\t// write number of bytes\n\t\t\toos.writeInt(NumberOfBytes);\n\t\t\toos.flush();\n\t\t\t// parse response \n\t\t\tint payloadSize = getPayloadInt(ois);\n\t\t\tSystem.out.println(\"Recieving this size: \" + payloadSize);\n\t\t\tpayload = getPayload(ois, payloadSize);\n\t\t\tSystem.out.print(\"received payload in client\");\n\t\t\t\n\t\t\treturn payload; \n\t\t\t\n\t\t} catch (IOException ioe) {\n\t\t\tSystem.out.println(ioe.getMessage());\n\t\t}\n\t\t\n\t\treturn payload; \n\t\t\n\t}",
"@Test\n public void testStreamParsePubDev3401() throws IOException {\n final int chunkSize = 64 * 1024;\n ParseSetupV3 ps = new ParseSetupV3();\n ps.parse_type = \"CSV\";\n ps.chunk_size = chunkSize;\n // mock Parser\n final List<Integer> pcCalls = new LinkedList<>();\n Parser p = new Parser(new ParseSetup(ps), null) {\n @Override protected ParseWriter parseChunk(int cidx, ParseReader din, ParseWriter dout) {\n pcCalls.add(cidx);\n byte[] data = din.getChunkData(cidx);\n assert cidx <= 3;\n assert ((data != null) && (data.length == chunkSize)) || (cidx == 3);\n return null;\n }\n };\n // mock source InputStream, only used for \"back-channel\" chunk index signalling\n final Queue<Integer> cidxs = new LinkedList<>(Arrays.asList(1, 2, 3, 4));\n InputStream bvs = new InputStream() {\n @Override public int read() throws IOException { throw new UnsupportedOperationException(); }\n @Override public int read(byte[] b, int off, int len) throws IOException {\n assert b == null;\n return cidxs.remove();\n }\n };\n // mock StreamParseWriter\n MockStreamParseWriter w = new MockStreamParseWriter(chunkSize);\n // Vec made of 3 chunks\n Key k = FVecFactory.makeByteVec(\n RandomStringUtils.randomAscii(chunkSize),\n RandomStringUtils.randomAscii(chunkSize),\n RandomStringUtils.randomAscii(chunkSize)\n );\n try {\n ByteVec v = DKV.getGet(k);\n p.streamParseZip(v.openStream(null), w, bvs);\n assertEquals(\"Expected calls to parseChunk()\", Arrays.asList(0, 1, 2, 3), pcCalls);\n assertEquals(\"Expected calls to nextChunk()\", Arrays.asList(0, 1, 2), w._nchks);\n } finally {\n k.remove();\n }\n }",
"public String initializeChunk() {\n\t\ttry {\n\t\t\t// request \n\t\t\t// write payload size (2 ints, 4 + 4)\n\t\t\toos.writeInt(8);\n\t\t\t// write command identifier \n\t\t\toos.writeInt(ChunkServer.InitializeChunk);\n\t\t\toos.flush();\n\t\t\t// parse response \n\t\t\tint chunkHandleSize = getPayloadInt(ois);\n\t\t\t// reduce size by payload size int \n\t\t\tchunkHandleSize -= 4; \n\t\t\tbyte[] handle = getPayload(ois, chunkHandleSize);\n\t\t\treturn (new String(handle).toString());\n\t\t\t\n\t\t} catch (IOException ioe) {\n\t\t\tSystem.out.println(\"ioe in initialize chunk \" + ioe.getMessage());\n\t\t}\n\t\treturn null; \n\t}",
"com.google.protobuf.ByteString getContentBytes();",
"@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }",
"@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }",
"int getChunksCount();",
"int getChunksCount();",
"public Chunk loadChunk(int x, int p_73158_2_)\n\t{\n\t\treturn this.provideChunk(x, p_73158_2_);\n\t}",
"String getChunkType();",
"public boolean sendChunkChange ( Location loc , int sx , int sy , int sz , byte[] data ) {\n\t\treturn invokeSafe ( \"sendChunkChange\" , loc , sx , sy , sz , data );\n\t}",
"public FileChunkReference getFileData() {\n return fileData;\n }",
"com.google.protobuf.ByteString getData(int index);",
"com.google.protobuf.ByteString getData(int index);",
"public void readAllChunks(EndPoint endpoint) throws IOException, Pausable {\n IntList chunkRanges = new IntList(); // alternate numbers in this list refer to the start and end offsets of chunks.\n do {\n int n = readLine(endpoint); // read chunk size text into buffer\n int beg = iread;\n int size = parseChunkSize(buffer, iread - n, iread); // Parse size in hex, ignore extension\n if (size == 0)\n break;\n // If the chunk has not already been read in, do so\n fill(endpoint, iread, size+2 /*chunksize + CRLF*/);\n // record chunk start and end\n chunkRanges.add(beg); \n chunkRanges.add(beg + size); // without the CRLF\n iread += size + 2; // for the next round.\n } while (true);\n\n // / consolidate all chunkRanges\n if (chunkRanges.numElements == 0) {\n contentLength = 0;\n return;\n }\n contentOffset = chunkRanges.get(0); // first chunk's beginning\n int endOfLastChunk = chunkRanges.get(1); // first chunk's end\n\n byte[] bufa = buffer.array();\n for (int i = 2; i < chunkRanges.numElements; i += 2) {\n int beg = chunkRanges.get(i);\n int chunkSize = chunkRanges.get(i + 1) - beg;\n System.arraycopy(bufa, beg, bufa, endOfLastChunk, chunkSize);\n endOfLastChunk += chunkSize;\n }\n // TODO move all trailer stuff up\n contentLength = endOfLastChunk - contentOffset;\n \n // At this point, the contentOffset and contentLen give the entire content \n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkSize() {\n return chunkSize;\n }",
"public void setChunked(boolean b) {\n/* 178 */ this.chunked = b;\n/* */ }",
"private LeafNodeObject getChunk(long chunkStart, long chunkEnd) throws IOException {\n if (chunkEnd <= chunkStart || (chunkEnd - chunkStart > this.maxChunkSize) ||\n chunkStart > Integer.MAX_VALUE) {\n throw new IOException(\"ChunkStart out of range\");\n }\n\n byte[] temp = Arrays.copyOfRange(this.fileContent, (int) chunkStart,\n (int) (chunkEnd - chunkStart));\n\n\n SignatureObject signature = new SignatureObject();\n signature.signatureData = new BinaryItem(ByteUtil.toListOfByte(temp));\n\n// RDCSignatureGenerator generator = new RDCSignatureGenerator();\n// signatureBytes = generator.ComputeHash(temp);\n//\n// SignatureObject signature = new SignatureObject();\n// signature.SignatureData = new BinaryItem(signatureBytes);\n\n return new LeafNodeObject.IntermediateNodeObjectBuilder().Build(temp, signature);\n }",
"public MediaPropertiesChunk(DataInputStream f) throws Exception {\n\t\tstreamId = f.readShort();\n\t\tmaxBitrate = f.readInt();\n\t\taverageBitrate = f.readInt();\n\t\tmaxDataPacketSize = f.readInt();\n\t\taverageDataPacketSize = f.readInt();\n\t\tstreamStartInMs = f.readInt();\n\t\tprerollInMs = f.readInt();\n\t\tduration = f.readInt();\n//\t\tbyte Size of stream description string\n\t\tstreamDescription = Utils.readString(f, f.read());\n//\t\tbyte Size of stream mime type string\n\t\tmimeType = Utils.readString(f, f.read());\n\t\t\n\t\tint dataLength = (int)f.readInt();\n\t\tbyte [] b = new byte[dataLength];\n\t\tf.readFully(b);\n\t\t\n\t\tswitch(mimeType) {\n\t\t\tcase \"audio/x-pn-realaudio\" :\n\t\t\t\taudioInfo = new AudioInfo(new DataInputStream(new ByteArrayInputStream(b)));\n\t\t\t\tbreak;\n\t\t\tcase \"logical-fileinfo\":\n\t\t\t\tlogicStreamInfo = new LogicalStreamInfo(new DataInputStream(new ByteArrayInputStream(b)));\n\t\t\t\tbreak;\n\t\t\tcase \"audio/X-MP3-draft-00\": /*dataLength must equals 0. In this case we do not have any codec info */ break;\n\t\t\tcase \"audio/x-ralf-mpeg4\" : \n\t\t\tcase \"audio/x-ralf-mpeg4-generic\" :\n\t\t\t\tlosslessAudioInfo = new LosslessAudioInfo(new DataInputStream(new ByteArrayInputStream(b)));\n\t\t\t\tbreak;\n\t\t\tcase \"audio/x-pn-multirate-realaudio\" : /* ASM-compatible RealAudio stream. Not supported */\t\t\t\t\n\t\t\tdefault: throw new UnsupportedException(\"Unknow mime : \" + mimeType); \n\t\t}\n\t}",
"Long getCompressedContentLength(String contentEncoding);",
"public byte[] getContent();",
"@java.lang.Override\n public int getChunksCount() {\n return chunks_.size();\n }",
"@NotNull\n int getTrustedChunks();",
"public final byte[] bytes() throws IOException {\n long contentLength = contentLength();\n if (contentLength <= 2147483647L) {\n C3580e source = source();\n try {\n byte[] G = source.mo19680G();\n C3500c.m11649a((Closeable) source);\n if (contentLength == -1 || contentLength == ((long) G.length)) {\n return G;\n }\n throw new IOException(\"Content-Length (\" + contentLength + \") and stream length (\" + G.length + \") disagree\");\n } catch (Throwable th) {\n C3500c.m11649a((Closeable) source);\n throw th;\n }\n } else {\n throw new IOException(\"Cannot buffer entire body for content length: \" + contentLength);\n }\n }",
"ChunkCachingProtocol.Factory getChunkCachingProtocolFactory();",
"public boolean putChunk(String ChunkHandle, byte[] payload, int offset) {\n\t\t\n\t\tif (offset + payload.length > ChunkServer.ChunkSize) {\n\t\t\tSystem.out.println(\"The chunk should write should be within range of the file, invalid\");\n\t\t\treturn false; \n\t\t} \n\t\ttry {\n\t\t\t// request \n\t\t\tbyte[] handle = ChunkHandle.getBytes();\n\t\t\t// write payload size \n\t\t\toos.writeInt(4 + 4 + 4 + 4 + 4 + handle.length + payload.length);\n\t\t\t// write command identifier \n\t\t\toos.writeInt(ChunkServer.PutChunk);\n\t\t\t// write chunkHandle size \n\t\t\toos.writeInt(handle.length);\n\t\t\t// write chunk handle\n\t\t\toos.write(handle);\n\t\t\t// write payload size s\n\t\t\toos.writeInt(payload.length);\n\t\t\t// write payload \n\t\t\toos.write(payload);\n\t\t\t// write offset\n\t\t\toos.writeInt(offset);\n\t\t\toos.flush();\n\t\t\t// parse response \n\t\t\tint resultSize = getPayloadInt(ois);\n\t\t\tint result = getPayloadInt(ois);\n\t\t\t\n\t\t\tif (result == 0) {\n\t\t\t\treturn false; \n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"success put chunk\");\n\t\t\t\treturn true; \n\t\t\t}\n\t\t\t\n\t\t} catch (IOException ioe) {\n\t\t\tSystem.out.println(ioe.getMessage());\n\t\t}\n\t\t\n\t\treturn false; \n\t}",
"private int readCompressedChunk(byte[] compressedBuffer) throws IOException {\n if (buffer.remaining() < 1) {\n readBytes(1);\n }\n byte typeId = buffer.get();\n if (typeId == ModelType.RESERVED_EOF.getId()) {\n return 0;\n } else if (typeId != ModelType.RESERVED_COMPRESSED_BLOCK.getId()) {\n throw new IOException(\"Inalid file format, expected compressed block\");\n }\n \n // read the compressed chunk size\n if (buffer.remaining() < 4) {\n readBytes(4);\n }\n int size = buffer.getInt();\n \n int needed = size - buffer.remaining();\n //log.info(\"Reading {}b chunk, {} needed\", size, needed);\n if (needed > 0) {\n readBytes(needed);\n }\n \n buffer.get(compressedBuffer, 0, size);\n return size;\n }",
"List<DownloadChunk> mo54445j(int i);",
"public int getChunkSize () {\n return this.CHUNK_SIZE;\n }"
] |
[
"0.6174796",
"0.6129815",
"0.6011642",
"0.5922859",
"0.5871005",
"0.58416456",
"0.5795255",
"0.57829803",
"0.57714087",
"0.57714087",
"0.57714087",
"0.57714087",
"0.574635",
"0.5725301",
"0.5706738",
"0.5676784",
"0.56388044",
"0.56355834",
"0.56355834",
"0.56271094",
"0.5617994",
"0.5612333",
"0.5574604",
"0.5572072",
"0.5569079",
"0.55580616",
"0.554858",
"0.5544567",
"0.55366844",
"0.55366844",
"0.55366844",
"0.55366844",
"0.55366844",
"0.55366844",
"0.5525879",
"0.55107325",
"0.5485724",
"0.548011",
"0.54647183",
"0.54574025",
"0.54550576",
"0.5443552",
"0.5443552",
"0.5441694",
"0.54333216",
"0.543264",
"0.5427866",
"0.5423226",
"0.5393814",
"0.5393814",
"0.53914654",
"0.53914654",
"0.53914654",
"0.53914654",
"0.53914654",
"0.53914654",
"0.5388098",
"0.5388098",
"0.5383383",
"0.5383235",
"0.5383235",
"0.5383235",
"0.5383235",
"0.5382786",
"0.536691",
"0.5347638",
"0.5345185",
"0.5340127",
"0.53383964",
"0.5334456",
"0.5329787",
"0.5329787",
"0.5322776",
"0.5322776",
"0.53191274",
"0.53145206",
"0.5314317",
"0.53084403",
"0.53045875",
"0.53045875",
"0.53015316",
"0.5299329",
"0.5299329",
"0.5299329",
"0.5299329",
"0.5299329",
"0.5299329",
"0.5284772",
"0.5284317",
"0.5248206",
"0.52349603",
"0.5231446",
"0.5230527",
"0.5219552",
"0.52026755",
"0.5202477",
"0.51858234",
"0.51844186",
"0.51716757",
"0.51709723",
"0.5167"
] |
0.0
|
-1
|
.Status status = 1;
|
@java.lang.Override public int getStatusValue() {
return status_;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setStatus(String status) { this.status = status; }",
"void setStatus(STATUS status);",
"public void setStatus(EnumVar status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\r\n\t this.status = status;\r\n\t }",
"public void setStatus(Integer status) {\r\n this.status = status;\r\n }",
"public void setStatus(Integer status) {\r\n this.status = status;\r\n }",
"void setStatus(int status);",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(int status){\r\n\t\tthis.status=status;\r\n\t}",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(int status);",
"public void setStatus(int status);",
"public void setStatus(Boolean s){ status = s;}",
"public void setStatus(int status) {\n STATUS = status;\n }",
"public void setStatus(Status newStatus){\n status = newStatus;\n }",
"public void setStatus(String stat)\n {\n status = stat;\n }",
"private void setStatus(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n status_ = value;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(long status) {\r\n this.status = status;\r\n }",
"public void setStatus(Integer status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(Integer status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(String status) {\r\n this.status = status;\r\n }",
"public void setStatus(java.lang.Object status) {\n this.status = status;\n }",
"public void setStatus(Status status)\n {\n this.status = status;\n }",
"public void setgetStatus()\r\n\t{\r\n\t\tthis.status = 'S';\r\n\t}",
"public void setStatus(Byte status) {\r\n\t\tthis.status = status;\r\n\t}",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"@Override\n\t\tpublic void setStatus(int status) {\n\t\t\t\n\t\t}",
"public void setStatus(StatusEnum status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(Byte status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(int status) {\n this.status = status;\n }",
"public void setStatus(int status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\r\n this.status = status;\r\n }",
"public void setStatus(String status) {\r\n this.status = status;\r\n }",
"public void setStatus(String status) {\r\n this.status = status;\r\n }",
"public void setStatus(Short status) {\n this.status = status;\n }",
"public void setStatus(STATUS status) {\n this.status = status;\n }",
"void setStatus(String status);",
"public void setStatus(Short status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(Short status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(int v) \n {\n \n if (this.status != v)\n {\n this.status = v;\n setModified(true);\n }\n \n \n }",
"public void setStatus( Short status ) {\n this.status = status;\n }",
"public void setStatus(String newStatus){\n\n //assigns the value of newStatus to the status field\n this.status = newStatus;\n }",
"public Status getStatus(){\n return status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\n this.status = status;\n }"
] |
[
"0.7656765",
"0.76468766",
"0.7565312",
"0.7561203",
"0.75449044",
"0.75449044",
"0.75349724",
"0.74959093",
"0.74959093",
"0.74959093",
"0.74959093",
"0.74959093",
"0.74959093",
"0.74959093",
"0.7482147",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.74783385",
"0.74783385",
"0.746719",
"0.74658287",
"0.746098",
"0.7456925",
"0.7452718",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435248",
"0.7432568",
"0.7432568",
"0.7425985",
"0.74143654",
"0.74118876",
"0.7398544",
"0.7398282",
"0.73973185",
"0.73973185",
"0.7396562",
"0.73950607",
"0.7392215",
"0.7392215",
"0.7382456",
"0.7382456",
"0.7378742",
"0.73726434",
"0.73726434",
"0.7368736",
"0.73626804",
"0.7351154",
"0.7345713",
"0.7345713",
"0.73451585",
"0.7332328",
"0.7329264",
"0.73258084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.728639",
"0.728639",
"0.728639"
] |
0.0
|
-1
|
.Status status = 1;
|
public Builder setStatusValue(int value) {
status_ = value;
onChanged();
return this;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setStatus(String status) { this.status = status; }",
"void setStatus(STATUS status);",
"public void setStatus(EnumVar status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\r\n\t this.status = status;\r\n\t }",
"public void setStatus(Integer status) {\r\n this.status = status;\r\n }",
"public void setStatus(Integer status) {\r\n this.status = status;\r\n }",
"void setStatus(int status);",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(int status){\r\n\t\tthis.status=status;\r\n\t}",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(int status);",
"public void setStatus(int status);",
"public void setStatus(Boolean s){ status = s;}",
"public void setStatus(int status) {\n STATUS = status;\n }",
"public void setStatus(Status newStatus){\n status = newStatus;\n }",
"public void setStatus(String stat)\n {\n status = stat;\n }",
"private void setStatus(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n status_ = value;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(long status) {\r\n this.status = status;\r\n }",
"public void setStatus(Integer status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(Integer status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(String status) {\r\n this.status = status;\r\n }",
"public void setStatus(java.lang.Object status) {\n this.status = status;\n }",
"public void setStatus(Status status)\n {\n this.status = status;\n }",
"public void setgetStatus()\r\n\t{\r\n\t\tthis.status = 'S';\r\n\t}",
"public void setStatus(Byte status) {\r\n\t\tthis.status = status;\r\n\t}",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"@Override\n\t\tpublic void setStatus(int status) {\n\t\t\t\n\t\t}",
"public void setStatus(StatusEnum status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(Byte status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(int status) {\n this.status = status;\n }",
"public void setStatus(int status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\r\n this.status = status;\r\n }",
"public void setStatus(String status) {\r\n this.status = status;\r\n }",
"public void setStatus(String status) {\r\n this.status = status;\r\n }",
"public void setStatus(Short status) {\n this.status = status;\n }",
"public void setStatus(STATUS status) {\n this.status = status;\n }",
"void setStatus(String status);",
"public void setStatus(Short status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(Short status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(int v) \n {\n \n if (this.status != v)\n {\n this.status = v;\n setModified(true);\n }\n \n \n }",
"public void setStatus( Short status ) {\n this.status = status;\n }",
"public void setStatus(String newStatus){\n\n //assigns the value of newStatus to the status field\n this.status = newStatus;\n }",
"public Status getStatus(){\n return status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\n this.status = status;\n }"
] |
[
"0.7656765",
"0.76468766",
"0.7565312",
"0.7561203",
"0.75449044",
"0.75449044",
"0.75349724",
"0.74959093",
"0.74959093",
"0.74959093",
"0.74959093",
"0.74959093",
"0.74959093",
"0.74959093",
"0.7482147",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.74783385",
"0.74783385",
"0.746719",
"0.74658287",
"0.746098",
"0.7456925",
"0.7452718",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435248",
"0.7432568",
"0.7432568",
"0.7425985",
"0.74143654",
"0.74118876",
"0.7398544",
"0.7398282",
"0.73973185",
"0.73973185",
"0.7396562",
"0.73950607",
"0.7392215",
"0.7392215",
"0.7382456",
"0.7382456",
"0.7378742",
"0.73726434",
"0.73726434",
"0.7368736",
"0.73626804",
"0.7351154",
"0.7345713",
"0.7345713",
"0.73451585",
"0.7332328",
"0.7329264",
"0.73258084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.728639",
"0.728639",
"0.728639"
] |
0.0
|
-1
|
.Status status = 1;
|
@java.lang.Override
public entities.Torrent.Status getStatus() {
@SuppressWarnings("deprecation")
entities.Torrent.Status result = entities.Torrent.Status.valueOf(status_);
return result == null ? entities.Torrent.Status.UNRECOGNIZED : result;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setStatus(String status) { this.status = status; }",
"void setStatus(STATUS status);",
"public void setStatus(EnumVar status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\r\n\t this.status = status;\r\n\t }",
"public void setStatus(Integer status) {\r\n this.status = status;\r\n }",
"public void setStatus(Integer status) {\r\n this.status = status;\r\n }",
"void setStatus(int status);",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(int status){\r\n\t\tthis.status=status;\r\n\t}",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(int status);",
"public void setStatus(int status);",
"public void setStatus(Boolean s){ status = s;}",
"public void setStatus(int status) {\n STATUS = status;\n }",
"public void setStatus(Status newStatus){\n status = newStatus;\n }",
"public void setStatus(String stat)\n {\n status = stat;\n }",
"private void setStatus(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n status_ = value;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(long status) {\r\n this.status = status;\r\n }",
"public void setStatus(Integer status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(Integer status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(String status) {\r\n this.status = status;\r\n }",
"public void setStatus(java.lang.Object status) {\n this.status = status;\n }",
"public void setStatus(Status status)\n {\n this.status = status;\n }",
"public void setgetStatus()\r\n\t{\r\n\t\tthis.status = 'S';\r\n\t}",
"public void setStatus(Byte status) {\r\n\t\tthis.status = status;\r\n\t}",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"@Override\n\t\tpublic void setStatus(int status) {\n\t\t\t\n\t\t}",
"public void setStatus(StatusEnum status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(Byte status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(int status) {\n this.status = status;\n }",
"public void setStatus(int status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\r\n this.status = status;\r\n }",
"public void setStatus(String status) {\r\n this.status = status;\r\n }",
"public void setStatus(String status) {\r\n this.status = status;\r\n }",
"public void setStatus(Short status) {\n this.status = status;\n }",
"public void setStatus(STATUS status) {\n this.status = status;\n }",
"void setStatus(String status);",
"public void setStatus(Short status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(Short status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(int v) \n {\n \n if (this.status != v)\n {\n this.status = v;\n setModified(true);\n }\n \n \n }",
"public void setStatus( Short status ) {\n this.status = status;\n }",
"public void setStatus(String newStatus){\n\n //assigns the value of newStatus to the status field\n this.status = newStatus;\n }",
"public Status getStatus(){\n return status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\n this.status = status;\n }"
] |
[
"0.7656765",
"0.76468766",
"0.7565312",
"0.7561203",
"0.75449044",
"0.75449044",
"0.75349724",
"0.74959093",
"0.74959093",
"0.74959093",
"0.74959093",
"0.74959093",
"0.74959093",
"0.74959093",
"0.7482147",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.74783385",
"0.74783385",
"0.746719",
"0.74658287",
"0.746098",
"0.7456925",
"0.7452718",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435248",
"0.7432568",
"0.7432568",
"0.7425985",
"0.74143654",
"0.74118876",
"0.7398544",
"0.7398282",
"0.73973185",
"0.73973185",
"0.7396562",
"0.73950607",
"0.7392215",
"0.7392215",
"0.7382456",
"0.7382456",
"0.7378742",
"0.73726434",
"0.73726434",
"0.7368736",
"0.73626804",
"0.7351154",
"0.7345713",
"0.7345713",
"0.73451585",
"0.7332328",
"0.7329264",
"0.73258084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.728639",
"0.728639",
"0.728639"
] |
0.0
|
-1
|
.Status status = 1;
|
public Builder setStatus(entities.Torrent.Status value) {
if (value == null) {
throw new NullPointerException();
}
status_ = value.getNumber();
onChanged();
return this;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setStatus(String status) { this.status = status; }",
"void setStatus(STATUS status);",
"public void setStatus(EnumVar status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\r\n\t this.status = status;\r\n\t }",
"public void setStatus(Integer status) {\r\n this.status = status;\r\n }",
"public void setStatus(Integer status) {\r\n this.status = status;\r\n }",
"void setStatus(int status);",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(int status){\r\n\t\tthis.status=status;\r\n\t}",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(int status);",
"public void setStatus(int status);",
"public void setStatus(Boolean s){ status = s;}",
"public void setStatus(int status) {\n STATUS = status;\n }",
"public void setStatus(Status newStatus){\n status = newStatus;\n }",
"public void setStatus(String stat)\n {\n status = stat;\n }",
"private void setStatus(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n status_ = value;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(long status) {\r\n this.status = status;\r\n }",
"public void setStatus(Integer status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(Integer status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(String status) {\r\n this.status = status;\r\n }",
"public void setStatus(java.lang.Object status) {\n this.status = status;\n }",
"public void setStatus(Status status)\n {\n this.status = status;\n }",
"public void setgetStatus()\r\n\t{\r\n\t\tthis.status = 'S';\r\n\t}",
"public void setStatus(Byte status) {\r\n\t\tthis.status = status;\r\n\t}",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"@Override\n\t\tpublic void setStatus(int status) {\n\t\t\t\n\t\t}",
"public void setStatus(StatusEnum status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(Byte status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(int status) {\n this.status = status;\n }",
"public void setStatus(int status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\r\n this.status = status;\r\n }",
"public void setStatus(String status) {\r\n this.status = status;\r\n }",
"public void setStatus(String status) {\r\n this.status = status;\r\n }",
"public void setStatus(Short status) {\n this.status = status;\n }",
"public void setStatus(STATUS status) {\n this.status = status;\n }",
"void setStatus(String status);",
"public void setStatus(Short status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(Short status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(int v) \n {\n \n if (this.status != v)\n {\n this.status = v;\n setModified(true);\n }\n \n \n }",
"public void setStatus( Short status ) {\n this.status = status;\n }",
"public void setStatus(String newStatus){\n\n //assigns the value of newStatus to the status field\n this.status = newStatus;\n }",
"public Status getStatus(){\n return status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\n this.status = status;\n }"
] |
[
"0.7656765",
"0.76468766",
"0.7565312",
"0.7561203",
"0.75449044",
"0.75449044",
"0.75349724",
"0.74959093",
"0.74959093",
"0.74959093",
"0.74959093",
"0.74959093",
"0.74959093",
"0.74959093",
"0.7482147",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.74783385",
"0.74783385",
"0.746719",
"0.74658287",
"0.746098",
"0.7456925",
"0.7452718",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435248",
"0.7432568",
"0.7432568",
"0.7425985",
"0.74143654",
"0.74118876",
"0.7398544",
"0.7398282",
"0.73973185",
"0.73973185",
"0.7396562",
"0.73950607",
"0.7392215",
"0.7392215",
"0.7382456",
"0.7382456",
"0.7378742",
"0.73726434",
"0.73726434",
"0.7368736",
"0.73626804",
"0.7351154",
"0.7345713",
"0.7345713",
"0.73451585",
"0.7332328",
"0.7329264",
"0.73258084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.728639",
"0.728639",
"0.728639"
] |
0.0
|
-1
|
.Status status = 1;
|
public Builder clearStatus() {
status_ = 0;
onChanged();
return this;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setStatus(String status) { this.status = status; }",
"void setStatus(STATUS status);",
"public void setStatus(EnumVar status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\r\n\t this.status = status;\r\n\t }",
"public void setStatus(Integer status) {\r\n this.status = status;\r\n }",
"public void setStatus(Integer status) {\r\n this.status = status;\r\n }",
"void setStatus(int status);",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(int status){\r\n\t\tthis.status=status;\r\n\t}",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(int status);",
"public void setStatus(int status);",
"public void setStatus(Boolean s){ status = s;}",
"public void setStatus(int status) {\n STATUS = status;\n }",
"public void setStatus(Status newStatus){\n status = newStatus;\n }",
"public void setStatus(String stat)\n {\n status = stat;\n }",
"private void setStatus(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n status_ = value;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(long status) {\r\n this.status = status;\r\n }",
"public void setStatus(Integer status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(Integer status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(String status) {\r\n this.status = status;\r\n }",
"public void setStatus(java.lang.Object status) {\n this.status = status;\n }",
"public void setStatus(Status status)\n {\n this.status = status;\n }",
"public void setgetStatus()\r\n\t{\r\n\t\tthis.status = 'S';\r\n\t}",
"public void setStatus(Byte status) {\r\n\t\tthis.status = status;\r\n\t}",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"@Override\n\t\tpublic void setStatus(int status) {\n\t\t\t\n\t\t}",
"public void setStatus(StatusEnum status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(Byte status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(int status) {\n this.status = status;\n }",
"public void setStatus(int status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\r\n this.status = status;\r\n }",
"public void setStatus(String status) {\r\n this.status = status;\r\n }",
"public void setStatus(String status) {\r\n this.status = status;\r\n }",
"public void setStatus(Short status) {\n this.status = status;\n }",
"public void setStatus(STATUS status) {\n this.status = status;\n }",
"void setStatus(String status);",
"public void setStatus(Short status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(Short status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(int v) \n {\n \n if (this.status != v)\n {\n this.status = v;\n setModified(true);\n }\n \n \n }",
"public void setStatus( Short status ) {\n this.status = status;\n }",
"public void setStatus(String newStatus){\n\n //assigns the value of newStatus to the status field\n this.status = newStatus;\n }",
"public Status getStatus(){\n return status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\n this.status = status;\n }"
] |
[
"0.7656765",
"0.76468766",
"0.7565312",
"0.7561203",
"0.75449044",
"0.75449044",
"0.75349724",
"0.74959093",
"0.74959093",
"0.74959093",
"0.74959093",
"0.74959093",
"0.74959093",
"0.74959093",
"0.7482147",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.74783385",
"0.74783385",
"0.746719",
"0.74658287",
"0.746098",
"0.7456925",
"0.7452718",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435248",
"0.7432568",
"0.7432568",
"0.7425985",
"0.74143654",
"0.74118876",
"0.7398544",
"0.7398282",
"0.73973185",
"0.73973185",
"0.7396562",
"0.73950607",
"0.7392215",
"0.7392215",
"0.7382456",
"0.7382456",
"0.7378742",
"0.73726434",
"0.73726434",
"0.7368736",
"0.73626804",
"0.7351154",
"0.7345713",
"0.7345713",
"0.73451585",
"0.7332328",
"0.7329264",
"0.73258084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.728639",
"0.728639",
"0.728639"
] |
0.0
|
-1
|
string errorMessage = 2;
|
public java.lang.String getErrorMessage() {
java.lang.Object ref = errorMessage_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
errorMessage_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"String errorMessage();",
"private void error(String string) {\n\t\r\n}",
"String getErrorMessage();",
"String getErrorMessage();",
"String getError(int i) {\n if (i >= 0 & i < msgs.length)\n return msgs[i];\n else\n return \"Invalid Error Code\";\n }",
"java.lang.String getError();",
"java.lang.String getError();",
"java.lang.String getError();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"void showErrorMsg(String string);",
"String getGetErrorMessage();",
"java.lang.String getErr();",
"public String getErrorString()\r\n\t{\r\n\t\t\r\n\t\treturn ERROR_STRING;\r\n\t}",
"public void error(String string) {\n\t\t\n\t}",
"String getInvalidMessage();",
"private static String getMessage(int code) {\n switch (code) {\n case ME_DIV_BY_ZERO:\n return \"Attempt to divide by zero.\";\n case ME_ASSIGNLITERAL:\n return \"Attempt to assign to a literal.\";\n case ME_NONVARASSIGN:\n return \"Attempt to assign to a non-variable.\";\n default:\n return \"Unknown error.\";\n }\n }",
"String getErrorsString();",
"public String error();",
"public String getError() {\n\treturn mistake;\n }",
"private String getErrorString() {\n\t\treturn \"GUID:ERROR:\" + mErrors[0][0]\n\t\t + \":\" + mErrors[1][0]\n\t\t + \":\" + mErrors[2][0]\n\t\t + \":\" + mErrors[3][0];\n\t}",
"public String getErrorMessage() \r\n\t{\r\n\t\t\r\n\t\treturn errorMessage;\r\n\t\t\r\n\t}",
"public java.lang.String getErrorMessage(){\n return localErrorMessage;\n }",
"java.lang.String getErrmsg();",
"public String getErrorString()\n\t{\n\t\treturn errorString;\n\t}",
"public static String getLastErrorMessage()\r\n\t{\n\t\treturn lastAlert;\r\n\t}",
"String getMessage();",
"String getMessage();",
"String getMessage();",
"private int getErrorId(final String message) {\n\t\tif (isLowerCase(message)) {\n\t\t\treturn ERROR_LOWER_CASE;\n\t\t} else if (isUnunsedMacro(message)) {\n\t\t\treturn ERROR_UNUSED_MACRO;\n\t\t} else if (isUnunsedVariable(message)) {\n\t\t\treturn ERROR_UNUSED_VARIABLE;\n\t\t} else if (isEndLineSpace(message) || isNoSpace(message)) {\n\t\t\treturn ERROR_NO_SPACE;\n\t\t} else if (isOneSpace(message)) {\n\t\t\treturn ERROR_ONE_SPACE;\n\t\t} else {\n\t\t\treturn ERROR_INVALID;\n\t\t}\n\t}",
"public String getErrorString(String message) {\n \t\treturn getString(new StringBuffer(\"error.\").append(message).toString());\n \t}",
"String getErrorMessage(E input);",
"public String errorMessage()\n {\n return new String(errorMessageAsBytes());\n }",
"String Message ();",
"public String errorMessage() {\n return errorMessage;\n }",
"void SemErr(String str);",
"public String getErrorMessage()\n {\n return errorMessage;\n }",
"ErrorCodes(int code){\n this.code = code;\n //this.message = message;\n }",
"int getErrorCode();",
"public String getErrorCode();",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n errorMessage_ = s;\n }\n return s;\n }\n }",
"void showError(@StringRes int errorMessage);",
"void showError(String errorMessage);",
"private static int getErrorLine(String errmsg){\n\t\treturn Integer.parseInt(errmsg.substring(0,errmsg.indexOf(\":\")).substring(errmsg.substring(0,errmsg.indexOf(\":\")).lastIndexOf(\" \")+1));\n\t}",
"public String errorMessage()\n {\n return edma_errorMsg;\n }",
"public String getErrorMessage() {\r\n return this.errorMessage;\r\n }",
"public String errorMessage() {\n return this.errorMessage;\n }",
"public String getErrorMessage() {\n\t\treturn errorMessage;\n\t}",
"public int getError() {\n return error;\n }",
"public String getErrorMessage() {\n return this.errorMessage;\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"void setErrorMessage(String errorMessage);",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"static int errorMsg(int eCode)\n {\n if (eCode == 0) return 0;\n String message = \"\";\n switch (eCode){\n case 1: message = \"Division by zero\"; break;\n case 2: message = \"Non-matching parenthesis in function\"; break;\n case 3: message = \"Must enclose negative exponents in parentheses\"; break;\n case 4: message = \"Incorrect Operator Syntax\"; break;\n case 5: message = \"Rightfunctions must use parenthesis. (example: ABS(-2);\"; break;\n case 6: message = \"Unrecognized token in function srtring.\"; break;\n case 8: message = \"Can not raise negative number to a fractional power.\"; break;\n case 10:message = \"Input a real number with no operators\"; break;\n }\n JOptionPane.showMessageDialog(null, message, \"Error \"+eCode, JOptionPane.ERROR_MESSAGE);\n return 0;\n }",
"public String getError() {\n return errMsg;\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n }\n }",
"public String getMsgError() {\r\n\t\treturn msgError;\r\n\t}",
"public String getErrorMessage() {\n return errorMessage;\n }",
"public String getErrorMessage() {\n return errorMessage;\n }",
"public String getErrorMessage() {\n return errorMessage;\n }",
"String getFailureMessage();",
"public int error() {\n return this.error;\n }",
"public String getParseErrorMessage();",
"public String getErrorMessage() {\n return ERROR_MESSAGE;\n }",
"public String getError() {\r\n if (scriptError == null) return \"\";\r\n return scriptError;\r\n }",
"private String getGUIErrorMsg(long errorcode) {\n\t\tif (errorcode == 0) {\n\t\t\treturn \"This popup shouldn't have launched!\";\n\t\t} else if (errorcode == 9) {\n\t\t\treturn \"Latitude input format incorrect!\\nValid Latitude values are -90 to 90 with negative values being south Latitude.\";\n\t\t} else if (errorcode == 10) {\n\t\t\treturn \"Longitude input format incorrect!\\nValid Longitude values are -180 to 180 with negative values being west latitude.\";\n\t\t} else if (errorcode == 11) {\n\t\t\treturn \"Date input format incorrect!\\nValid dates go <year>-<month>-<day>\\nValid month values are 1- 12 and valid day values are 1 - 31.\";\n\t\t} else if (errorcode == 12) {\n\t\t\treturn \"Time input format incorrect!\\nValid times go <hour>-<minute>-<second>\\nValid hour values are 0 - 23 and valid minute and second values are 0 - 59\";\n\t\t} else if (errorcode == 1) {\n\t\t\treturn \"Invalid latitude!\\nValid Latitude values are -90 to 90 with negative values being south Latitude.\";\n\t\t} else if (errorcode == 2) {\n\t\t\treturn \"Invalid Longitude!\\nValid Longitude values are -180 to 180 with negative values being west latitude.\";\n\t\t} else if (errorcode == 3) {\n\t\t\treturn \"Invalid Year!\\nValid year values are \" + Integer.MIN_VALUE + \" - \" + Integer.MAX_VALUE + \".\";\n\t\t} else if (errorcode == 4) {\n\t\t\treturn \"Invalid Month!\\nValid month values are 1 - 12\";\n\t\t} else if (errorcode == 5) {\n\t\t\treturn \"Invalid Day!\\nValid day values are 1 - 31\";\n\t\t} else if (errorcode == 6) {\n\t\t\treturn \"Invalid Hour!\\nValid hour values are 0 - 23\";\n\t\t} else if (errorcode == 7) {\n\t\t\treturn \"Invalid Minute!\\nValid minute values are 0 - 59\";\n\t\t} else if (errorcode == 8) {\n\t\t\treturn \"Invalid Second!\\nValid second values are 0 - 59\";\n\t\t} \n\t\treturn \"Undefined Error Message!\";\n\t}",
"public void setErrorMsg(String text) {\n this.errorMsg = text;\n }",
"public int getErrorNo() {\n return this.errorNo;\n }",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();"
] |
[
"0.7234827",
"0.68487597",
"0.68242407",
"0.68242407",
"0.66320926",
"0.6613902",
"0.6613902",
"0.6613902",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.6587221",
"0.6458624",
"0.642881",
"0.6387629",
"0.6339448",
"0.63337046",
"0.6318866",
"0.6310054",
"0.6266495",
"0.6207546",
"0.6169787",
"0.6162002",
"0.61556125",
"0.61209476",
"0.6114965",
"0.61042917",
"0.60988075",
"0.60988075",
"0.60988075",
"0.60916275",
"0.60737956",
"0.6044167",
"0.60035205",
"0.59917176",
"0.59845275",
"0.59643966",
"0.5963419",
"0.59538627",
"0.5917793",
"0.58881736",
"0.58858836",
"0.5880861",
"0.58786815",
"0.5865479",
"0.5863698",
"0.5842632",
"0.5837601",
"0.5828023",
"0.58268774",
"0.58249444",
"0.5820853",
"0.5818837",
"0.5808825",
"0.5808012",
"0.5803665",
"0.57976645",
"0.5796016",
"0.57934284",
"0.57934284",
"0.57934284",
"0.5786855",
"0.57868457",
"0.5785435",
"0.578205",
"0.576942",
"0.57514906",
"0.57502955",
"0.5743453",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053"
] |
0.583974
|
58
|
string errorMessage = 2;
|
public com.google.protobuf.ByteString
getErrorMessageBytes() {
java.lang.Object ref = errorMessage_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
errorMessage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"String errorMessage();",
"private void error(String string) {\n\t\r\n}",
"String getErrorMessage();",
"String getErrorMessage();",
"String getError(int i) {\n if (i >= 0 & i < msgs.length)\n return msgs[i];\n else\n return \"Invalid Error Code\";\n }",
"java.lang.String getError();",
"java.lang.String getError();",
"java.lang.String getError();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"void showErrorMsg(String string);",
"String getGetErrorMessage();",
"java.lang.String getErr();",
"public String getErrorString()\r\n\t{\r\n\t\t\r\n\t\treturn ERROR_STRING;\r\n\t}",
"public void error(String string) {\n\t\t\n\t}",
"String getInvalidMessage();",
"private static String getMessage(int code) {\n switch (code) {\n case ME_DIV_BY_ZERO:\n return \"Attempt to divide by zero.\";\n case ME_ASSIGNLITERAL:\n return \"Attempt to assign to a literal.\";\n case ME_NONVARASSIGN:\n return \"Attempt to assign to a non-variable.\";\n default:\n return \"Unknown error.\";\n }\n }",
"String getErrorsString();",
"public String error();",
"public String getError() {\n\treturn mistake;\n }",
"private String getErrorString() {\n\t\treturn \"GUID:ERROR:\" + mErrors[0][0]\n\t\t + \":\" + mErrors[1][0]\n\t\t + \":\" + mErrors[2][0]\n\t\t + \":\" + mErrors[3][0];\n\t}",
"public String getErrorMessage() \r\n\t{\r\n\t\t\r\n\t\treturn errorMessage;\r\n\t\t\r\n\t}",
"public java.lang.String getErrorMessage(){\n return localErrorMessage;\n }",
"java.lang.String getErrmsg();",
"public String getErrorString()\n\t{\n\t\treturn errorString;\n\t}",
"public static String getLastErrorMessage()\r\n\t{\n\t\treturn lastAlert;\r\n\t}",
"String getMessage();",
"String getMessage();",
"String getMessage();",
"private int getErrorId(final String message) {\n\t\tif (isLowerCase(message)) {\n\t\t\treturn ERROR_LOWER_CASE;\n\t\t} else if (isUnunsedMacro(message)) {\n\t\t\treturn ERROR_UNUSED_MACRO;\n\t\t} else if (isUnunsedVariable(message)) {\n\t\t\treturn ERROR_UNUSED_VARIABLE;\n\t\t} else if (isEndLineSpace(message) || isNoSpace(message)) {\n\t\t\treturn ERROR_NO_SPACE;\n\t\t} else if (isOneSpace(message)) {\n\t\t\treturn ERROR_ONE_SPACE;\n\t\t} else {\n\t\t\treturn ERROR_INVALID;\n\t\t}\n\t}",
"public String getErrorString(String message) {\n \t\treturn getString(new StringBuffer(\"error.\").append(message).toString());\n \t}",
"String getErrorMessage(E input);",
"public String errorMessage()\n {\n return new String(errorMessageAsBytes());\n }",
"String Message ();",
"public String errorMessage() {\n return errorMessage;\n }",
"void SemErr(String str);",
"public String getErrorMessage()\n {\n return errorMessage;\n }",
"ErrorCodes(int code){\n this.code = code;\n //this.message = message;\n }",
"int getErrorCode();",
"public String getErrorCode();",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n errorMessage_ = s;\n }\n return s;\n }\n }",
"void showError(@StringRes int errorMessage);",
"void showError(String errorMessage);",
"private static int getErrorLine(String errmsg){\n\t\treturn Integer.parseInt(errmsg.substring(0,errmsg.indexOf(\":\")).substring(errmsg.substring(0,errmsg.indexOf(\":\")).lastIndexOf(\" \")+1));\n\t}",
"public String errorMessage()\n {\n return edma_errorMsg;\n }",
"public String getErrorMessage() {\r\n return this.errorMessage;\r\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public String errorMessage() {\n return this.errorMessage;\n }",
"public String getErrorMessage() {\n\t\treturn errorMessage;\n\t}",
"public int getError() {\n return error;\n }",
"public String getErrorMessage() {\n return this.errorMessage;\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"void setErrorMessage(String errorMessage);",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"static int errorMsg(int eCode)\n {\n if (eCode == 0) return 0;\n String message = \"\";\n switch (eCode){\n case 1: message = \"Division by zero\"; break;\n case 2: message = \"Non-matching parenthesis in function\"; break;\n case 3: message = \"Must enclose negative exponents in parentheses\"; break;\n case 4: message = \"Incorrect Operator Syntax\"; break;\n case 5: message = \"Rightfunctions must use parenthesis. (example: ABS(-2);\"; break;\n case 6: message = \"Unrecognized token in function srtring.\"; break;\n case 8: message = \"Can not raise negative number to a fractional power.\"; break;\n case 10:message = \"Input a real number with no operators\"; break;\n }\n JOptionPane.showMessageDialog(null, message, \"Error \"+eCode, JOptionPane.ERROR_MESSAGE);\n return 0;\n }",
"public String getError() {\n return errMsg;\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n }\n }",
"public String getMsgError() {\r\n\t\treturn msgError;\r\n\t}",
"public String getErrorMessage() {\n return errorMessage;\n }",
"public String getErrorMessage() {\n return errorMessage;\n }",
"public String getErrorMessage() {\n return errorMessage;\n }",
"String getFailureMessage();",
"public int error() {\n return this.error;\n }",
"public String getParseErrorMessage();",
"public String getErrorMessage() {\n return ERROR_MESSAGE;\n }",
"public String getError() {\r\n if (scriptError == null) return \"\";\r\n return scriptError;\r\n }",
"private String getGUIErrorMsg(long errorcode) {\n\t\tif (errorcode == 0) {\n\t\t\treturn \"This popup shouldn't have launched!\";\n\t\t} else if (errorcode == 9) {\n\t\t\treturn \"Latitude input format incorrect!\\nValid Latitude values are -90 to 90 with negative values being south Latitude.\";\n\t\t} else if (errorcode == 10) {\n\t\t\treturn \"Longitude input format incorrect!\\nValid Longitude values are -180 to 180 with negative values being west latitude.\";\n\t\t} else if (errorcode == 11) {\n\t\t\treturn \"Date input format incorrect!\\nValid dates go <year>-<month>-<day>\\nValid month values are 1- 12 and valid day values are 1 - 31.\";\n\t\t} else if (errorcode == 12) {\n\t\t\treturn \"Time input format incorrect!\\nValid times go <hour>-<minute>-<second>\\nValid hour values are 0 - 23 and valid minute and second values are 0 - 59\";\n\t\t} else if (errorcode == 1) {\n\t\t\treturn \"Invalid latitude!\\nValid Latitude values are -90 to 90 with negative values being south Latitude.\";\n\t\t} else if (errorcode == 2) {\n\t\t\treturn \"Invalid Longitude!\\nValid Longitude values are -180 to 180 with negative values being west latitude.\";\n\t\t} else if (errorcode == 3) {\n\t\t\treturn \"Invalid Year!\\nValid year values are \" + Integer.MIN_VALUE + \" - \" + Integer.MAX_VALUE + \".\";\n\t\t} else if (errorcode == 4) {\n\t\t\treturn \"Invalid Month!\\nValid month values are 1 - 12\";\n\t\t} else if (errorcode == 5) {\n\t\t\treturn \"Invalid Day!\\nValid day values are 1 - 31\";\n\t\t} else if (errorcode == 6) {\n\t\t\treturn \"Invalid Hour!\\nValid hour values are 0 - 23\";\n\t\t} else if (errorcode == 7) {\n\t\t\treturn \"Invalid Minute!\\nValid minute values are 0 - 59\";\n\t\t} else if (errorcode == 8) {\n\t\t\treturn \"Invalid Second!\\nValid second values are 0 - 59\";\n\t\t} \n\t\treturn \"Undefined Error Message!\";\n\t}",
"public void setErrorMsg(String text) {\n this.errorMsg = text;\n }",
"public int getErrorNo() {\n return this.errorNo;\n }",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();"
] |
[
"0.7234827",
"0.68487597",
"0.68242407",
"0.68242407",
"0.66320926",
"0.6613902",
"0.6613902",
"0.6613902",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.6587221",
"0.6458624",
"0.642881",
"0.6387629",
"0.6339448",
"0.63337046",
"0.6318866",
"0.6310054",
"0.6266495",
"0.6207546",
"0.6169787",
"0.6162002",
"0.61556125",
"0.61209476",
"0.6114965",
"0.61042917",
"0.60988075",
"0.60988075",
"0.60988075",
"0.60916275",
"0.60737956",
"0.6044167",
"0.60035205",
"0.59917176",
"0.59845275",
"0.59643966",
"0.5963419",
"0.59538627",
"0.5917793",
"0.58881736",
"0.58858836",
"0.5880861",
"0.58786815",
"0.5865479",
"0.5863698",
"0.5842632",
"0.583974",
"0.583974",
"0.583974",
"0.583974",
"0.583974",
"0.583974",
"0.583974",
"0.58391654",
"0.58391654",
"0.58391654",
"0.5837601",
"0.5828023",
"0.58268774",
"0.58249444",
"0.5820853",
"0.5818837",
"0.5808825",
"0.5808012",
"0.5803665",
"0.57976645",
"0.5796016",
"0.57934284",
"0.57934284",
"0.57934284",
"0.5786855",
"0.57868457",
"0.5785435",
"0.578205",
"0.576942",
"0.57514906",
"0.57502955",
"0.5743453",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053"
] |
0.0
|
-1
|
string errorMessage = 2;
|
public Builder setErrorMessage(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
errorMessage_ = value;
onChanged();
return this;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"String errorMessage();",
"private void error(String string) {\n\t\r\n}",
"String getErrorMessage();",
"String getErrorMessage();",
"String getError(int i) {\n if (i >= 0 & i < msgs.length)\n return msgs[i];\n else\n return \"Invalid Error Code\";\n }",
"java.lang.String getError();",
"java.lang.String getError();",
"java.lang.String getError();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"void showErrorMsg(String string);",
"String getGetErrorMessage();",
"java.lang.String getErr();",
"public String getErrorString()\r\n\t{\r\n\t\t\r\n\t\treturn ERROR_STRING;\r\n\t}",
"public void error(String string) {\n\t\t\n\t}",
"String getInvalidMessage();",
"private static String getMessage(int code) {\n switch (code) {\n case ME_DIV_BY_ZERO:\n return \"Attempt to divide by zero.\";\n case ME_ASSIGNLITERAL:\n return \"Attempt to assign to a literal.\";\n case ME_NONVARASSIGN:\n return \"Attempt to assign to a non-variable.\";\n default:\n return \"Unknown error.\";\n }\n }",
"String getErrorsString();",
"public String error();",
"public String getError() {\n\treturn mistake;\n }",
"private String getErrorString() {\n\t\treturn \"GUID:ERROR:\" + mErrors[0][0]\n\t\t + \":\" + mErrors[1][0]\n\t\t + \":\" + mErrors[2][0]\n\t\t + \":\" + mErrors[3][0];\n\t}",
"public String getErrorMessage() \r\n\t{\r\n\t\t\r\n\t\treturn errorMessage;\r\n\t\t\r\n\t}",
"public java.lang.String getErrorMessage(){\n return localErrorMessage;\n }",
"java.lang.String getErrmsg();",
"public String getErrorString()\n\t{\n\t\treturn errorString;\n\t}",
"public static String getLastErrorMessage()\r\n\t{\n\t\treturn lastAlert;\r\n\t}",
"String getMessage();",
"String getMessage();",
"String getMessage();",
"private int getErrorId(final String message) {\n\t\tif (isLowerCase(message)) {\n\t\t\treturn ERROR_LOWER_CASE;\n\t\t} else if (isUnunsedMacro(message)) {\n\t\t\treturn ERROR_UNUSED_MACRO;\n\t\t} else if (isUnunsedVariable(message)) {\n\t\t\treturn ERROR_UNUSED_VARIABLE;\n\t\t} else if (isEndLineSpace(message) || isNoSpace(message)) {\n\t\t\treturn ERROR_NO_SPACE;\n\t\t} else if (isOneSpace(message)) {\n\t\t\treturn ERROR_ONE_SPACE;\n\t\t} else {\n\t\t\treturn ERROR_INVALID;\n\t\t}\n\t}",
"public String getErrorString(String message) {\n \t\treturn getString(new StringBuffer(\"error.\").append(message).toString());\n \t}",
"String getErrorMessage(E input);",
"public String errorMessage()\n {\n return new String(errorMessageAsBytes());\n }",
"String Message ();",
"public String errorMessage() {\n return errorMessage;\n }",
"void SemErr(String str);",
"public String getErrorMessage()\n {\n return errorMessage;\n }",
"ErrorCodes(int code){\n this.code = code;\n //this.message = message;\n }",
"int getErrorCode();",
"public String getErrorCode();",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n errorMessage_ = s;\n }\n return s;\n }\n }",
"void showError(@StringRes int errorMessage);",
"void showError(String errorMessage);",
"private static int getErrorLine(String errmsg){\n\t\treturn Integer.parseInt(errmsg.substring(0,errmsg.indexOf(\":\")).substring(errmsg.substring(0,errmsg.indexOf(\":\")).lastIndexOf(\" \")+1));\n\t}",
"public String errorMessage()\n {\n return edma_errorMsg;\n }",
"public String getErrorMessage() {\r\n return this.errorMessage;\r\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public String errorMessage() {\n return this.errorMessage;\n }",
"public String getErrorMessage() {\n\t\treturn errorMessage;\n\t}",
"public int getError() {\n return error;\n }",
"public String getErrorMessage() {\n return this.errorMessage;\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"void setErrorMessage(String errorMessage);",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"static int errorMsg(int eCode)\n {\n if (eCode == 0) return 0;\n String message = \"\";\n switch (eCode){\n case 1: message = \"Division by zero\"; break;\n case 2: message = \"Non-matching parenthesis in function\"; break;\n case 3: message = \"Must enclose negative exponents in parentheses\"; break;\n case 4: message = \"Incorrect Operator Syntax\"; break;\n case 5: message = \"Rightfunctions must use parenthesis. (example: ABS(-2);\"; break;\n case 6: message = \"Unrecognized token in function srtring.\"; break;\n case 8: message = \"Can not raise negative number to a fractional power.\"; break;\n case 10:message = \"Input a real number with no operators\"; break;\n }\n JOptionPane.showMessageDialog(null, message, \"Error \"+eCode, JOptionPane.ERROR_MESSAGE);\n return 0;\n }",
"public String getError() {\n return errMsg;\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n }\n }",
"public String getMsgError() {\r\n\t\treturn msgError;\r\n\t}",
"public String getErrorMessage() {\n return errorMessage;\n }",
"public String getErrorMessage() {\n return errorMessage;\n }",
"public String getErrorMessage() {\n return errorMessage;\n }",
"String getFailureMessage();",
"public int error() {\n return this.error;\n }",
"public String getParseErrorMessage();",
"public String getErrorMessage() {\n return ERROR_MESSAGE;\n }",
"public String getError() {\r\n if (scriptError == null) return \"\";\r\n return scriptError;\r\n }",
"private String getGUIErrorMsg(long errorcode) {\n\t\tif (errorcode == 0) {\n\t\t\treturn \"This popup shouldn't have launched!\";\n\t\t} else if (errorcode == 9) {\n\t\t\treturn \"Latitude input format incorrect!\\nValid Latitude values are -90 to 90 with negative values being south Latitude.\";\n\t\t} else if (errorcode == 10) {\n\t\t\treturn \"Longitude input format incorrect!\\nValid Longitude values are -180 to 180 with negative values being west latitude.\";\n\t\t} else if (errorcode == 11) {\n\t\t\treturn \"Date input format incorrect!\\nValid dates go <year>-<month>-<day>\\nValid month values are 1- 12 and valid day values are 1 - 31.\";\n\t\t} else if (errorcode == 12) {\n\t\t\treturn \"Time input format incorrect!\\nValid times go <hour>-<minute>-<second>\\nValid hour values are 0 - 23 and valid minute and second values are 0 - 59\";\n\t\t} else if (errorcode == 1) {\n\t\t\treturn \"Invalid latitude!\\nValid Latitude values are -90 to 90 with negative values being south Latitude.\";\n\t\t} else if (errorcode == 2) {\n\t\t\treturn \"Invalid Longitude!\\nValid Longitude values are -180 to 180 with negative values being west latitude.\";\n\t\t} else if (errorcode == 3) {\n\t\t\treturn \"Invalid Year!\\nValid year values are \" + Integer.MIN_VALUE + \" - \" + Integer.MAX_VALUE + \".\";\n\t\t} else if (errorcode == 4) {\n\t\t\treturn \"Invalid Month!\\nValid month values are 1 - 12\";\n\t\t} else if (errorcode == 5) {\n\t\t\treturn \"Invalid Day!\\nValid day values are 1 - 31\";\n\t\t} else if (errorcode == 6) {\n\t\t\treturn \"Invalid Hour!\\nValid hour values are 0 - 23\";\n\t\t} else if (errorcode == 7) {\n\t\t\treturn \"Invalid Minute!\\nValid minute values are 0 - 59\";\n\t\t} else if (errorcode == 8) {\n\t\t\treturn \"Invalid Second!\\nValid second values are 0 - 59\";\n\t\t} \n\t\treturn \"Undefined Error Message!\";\n\t}",
"public void setErrorMsg(String text) {\n this.errorMsg = text;\n }",
"public int getErrorNo() {\n return this.errorNo;\n }",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();"
] |
[
"0.7234827",
"0.68487597",
"0.68242407",
"0.68242407",
"0.66320926",
"0.6613902",
"0.6613902",
"0.6613902",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.6587221",
"0.6458624",
"0.642881",
"0.6387629",
"0.6339448",
"0.63337046",
"0.6318866",
"0.6310054",
"0.6266495",
"0.6207546",
"0.6169787",
"0.6162002",
"0.61556125",
"0.61209476",
"0.6114965",
"0.61042917",
"0.60988075",
"0.60988075",
"0.60988075",
"0.60916275",
"0.60737956",
"0.6044167",
"0.60035205",
"0.59917176",
"0.59845275",
"0.59643966",
"0.5963419",
"0.59538627",
"0.5917793",
"0.58881736",
"0.58858836",
"0.5880861",
"0.58786815",
"0.5865479",
"0.5863698",
"0.5842632",
"0.583974",
"0.583974",
"0.583974",
"0.583974",
"0.583974",
"0.583974",
"0.583974",
"0.58391654",
"0.58391654",
"0.58391654",
"0.5837601",
"0.5828023",
"0.58268774",
"0.58249444",
"0.5820853",
"0.5818837",
"0.5808825",
"0.5808012",
"0.5803665",
"0.57976645",
"0.5796016",
"0.57934284",
"0.57934284",
"0.57934284",
"0.5786855",
"0.57868457",
"0.5785435",
"0.578205",
"0.576942",
"0.57514906",
"0.57502955",
"0.5743453",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053"
] |
0.0
|
-1
|
string errorMessage = 2;
|
public Builder clearErrorMessage() {
errorMessage_ = getDefaultInstance().getErrorMessage();
onChanged();
return this;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"String errorMessage();",
"private void error(String string) {\n\t\r\n}",
"String getErrorMessage();",
"String getErrorMessage();",
"String getError(int i) {\n if (i >= 0 & i < msgs.length)\n return msgs[i];\n else\n return \"Invalid Error Code\";\n }",
"java.lang.String getError();",
"java.lang.String getError();",
"java.lang.String getError();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"void showErrorMsg(String string);",
"String getGetErrorMessage();",
"java.lang.String getErr();",
"public String getErrorString()\r\n\t{\r\n\t\t\r\n\t\treturn ERROR_STRING;\r\n\t}",
"public void error(String string) {\n\t\t\n\t}",
"String getInvalidMessage();",
"private static String getMessage(int code) {\n switch (code) {\n case ME_DIV_BY_ZERO:\n return \"Attempt to divide by zero.\";\n case ME_ASSIGNLITERAL:\n return \"Attempt to assign to a literal.\";\n case ME_NONVARASSIGN:\n return \"Attempt to assign to a non-variable.\";\n default:\n return \"Unknown error.\";\n }\n }",
"String getErrorsString();",
"public String error();",
"public String getError() {\n\treturn mistake;\n }",
"private String getErrorString() {\n\t\treturn \"GUID:ERROR:\" + mErrors[0][0]\n\t\t + \":\" + mErrors[1][0]\n\t\t + \":\" + mErrors[2][0]\n\t\t + \":\" + mErrors[3][0];\n\t}",
"public String getErrorMessage() \r\n\t{\r\n\t\t\r\n\t\treturn errorMessage;\r\n\t\t\r\n\t}",
"public java.lang.String getErrorMessage(){\n return localErrorMessage;\n }",
"java.lang.String getErrmsg();",
"public String getErrorString()\n\t{\n\t\treturn errorString;\n\t}",
"public static String getLastErrorMessage()\r\n\t{\n\t\treturn lastAlert;\r\n\t}",
"String getMessage();",
"String getMessage();",
"String getMessage();",
"private int getErrorId(final String message) {\n\t\tif (isLowerCase(message)) {\n\t\t\treturn ERROR_LOWER_CASE;\n\t\t} else if (isUnunsedMacro(message)) {\n\t\t\treturn ERROR_UNUSED_MACRO;\n\t\t} else if (isUnunsedVariable(message)) {\n\t\t\treturn ERROR_UNUSED_VARIABLE;\n\t\t} else if (isEndLineSpace(message) || isNoSpace(message)) {\n\t\t\treturn ERROR_NO_SPACE;\n\t\t} else if (isOneSpace(message)) {\n\t\t\treturn ERROR_ONE_SPACE;\n\t\t} else {\n\t\t\treturn ERROR_INVALID;\n\t\t}\n\t}",
"public String getErrorString(String message) {\n \t\treturn getString(new StringBuffer(\"error.\").append(message).toString());\n \t}",
"String getErrorMessage(E input);",
"public String errorMessage()\n {\n return new String(errorMessageAsBytes());\n }",
"String Message ();",
"public String errorMessage() {\n return errorMessage;\n }",
"void SemErr(String str);",
"public String getErrorMessage()\n {\n return errorMessage;\n }",
"ErrorCodes(int code){\n this.code = code;\n //this.message = message;\n }",
"int getErrorCode();",
"public String getErrorCode();",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n errorMessage_ = s;\n }\n return s;\n }\n }",
"void showError(@StringRes int errorMessage);",
"void showError(String errorMessage);",
"private static int getErrorLine(String errmsg){\n\t\treturn Integer.parseInt(errmsg.substring(0,errmsg.indexOf(\":\")).substring(errmsg.substring(0,errmsg.indexOf(\":\")).lastIndexOf(\" \")+1));\n\t}",
"public String errorMessage()\n {\n return edma_errorMsg;\n }",
"public String getErrorMessage() {\r\n return this.errorMessage;\r\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public String errorMessage() {\n return this.errorMessage;\n }",
"public String getErrorMessage() {\n\t\treturn errorMessage;\n\t}",
"public int getError() {\n return error;\n }",
"public String getErrorMessage() {\n return this.errorMessage;\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"void setErrorMessage(String errorMessage);",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"static int errorMsg(int eCode)\n {\n if (eCode == 0) return 0;\n String message = \"\";\n switch (eCode){\n case 1: message = \"Division by zero\"; break;\n case 2: message = \"Non-matching parenthesis in function\"; break;\n case 3: message = \"Must enclose negative exponents in parentheses\"; break;\n case 4: message = \"Incorrect Operator Syntax\"; break;\n case 5: message = \"Rightfunctions must use parenthesis. (example: ABS(-2);\"; break;\n case 6: message = \"Unrecognized token in function srtring.\"; break;\n case 8: message = \"Can not raise negative number to a fractional power.\"; break;\n case 10:message = \"Input a real number with no operators\"; break;\n }\n JOptionPane.showMessageDialog(null, message, \"Error \"+eCode, JOptionPane.ERROR_MESSAGE);\n return 0;\n }",
"public String getError() {\n return errMsg;\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n }\n }",
"public String getMsgError() {\r\n\t\treturn msgError;\r\n\t}",
"public String getErrorMessage() {\n return errorMessage;\n }",
"public String getErrorMessage() {\n return errorMessage;\n }",
"public String getErrorMessage() {\n return errorMessage;\n }",
"String getFailureMessage();",
"public int error() {\n return this.error;\n }",
"public String getParseErrorMessage();",
"public String getErrorMessage() {\n return ERROR_MESSAGE;\n }",
"public String getError() {\r\n if (scriptError == null) return \"\";\r\n return scriptError;\r\n }",
"private String getGUIErrorMsg(long errorcode) {\n\t\tif (errorcode == 0) {\n\t\t\treturn \"This popup shouldn't have launched!\";\n\t\t} else if (errorcode == 9) {\n\t\t\treturn \"Latitude input format incorrect!\\nValid Latitude values are -90 to 90 with negative values being south Latitude.\";\n\t\t} else if (errorcode == 10) {\n\t\t\treturn \"Longitude input format incorrect!\\nValid Longitude values are -180 to 180 with negative values being west latitude.\";\n\t\t} else if (errorcode == 11) {\n\t\t\treturn \"Date input format incorrect!\\nValid dates go <year>-<month>-<day>\\nValid month values are 1- 12 and valid day values are 1 - 31.\";\n\t\t} else if (errorcode == 12) {\n\t\t\treturn \"Time input format incorrect!\\nValid times go <hour>-<minute>-<second>\\nValid hour values are 0 - 23 and valid minute and second values are 0 - 59\";\n\t\t} else if (errorcode == 1) {\n\t\t\treturn \"Invalid latitude!\\nValid Latitude values are -90 to 90 with negative values being south Latitude.\";\n\t\t} else if (errorcode == 2) {\n\t\t\treturn \"Invalid Longitude!\\nValid Longitude values are -180 to 180 with negative values being west latitude.\";\n\t\t} else if (errorcode == 3) {\n\t\t\treturn \"Invalid Year!\\nValid year values are \" + Integer.MIN_VALUE + \" - \" + Integer.MAX_VALUE + \".\";\n\t\t} else if (errorcode == 4) {\n\t\t\treturn \"Invalid Month!\\nValid month values are 1 - 12\";\n\t\t} else if (errorcode == 5) {\n\t\t\treturn \"Invalid Day!\\nValid day values are 1 - 31\";\n\t\t} else if (errorcode == 6) {\n\t\t\treturn \"Invalid Hour!\\nValid hour values are 0 - 23\";\n\t\t} else if (errorcode == 7) {\n\t\t\treturn \"Invalid Minute!\\nValid minute values are 0 - 59\";\n\t\t} else if (errorcode == 8) {\n\t\t\treturn \"Invalid Second!\\nValid second values are 0 - 59\";\n\t\t} \n\t\treturn \"Undefined Error Message!\";\n\t}",
"public void setErrorMsg(String text) {\n this.errorMsg = text;\n }",
"public int getErrorNo() {\n return this.errorNo;\n }",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();"
] |
[
"0.7234827",
"0.68487597",
"0.68242407",
"0.68242407",
"0.66320926",
"0.6613902",
"0.6613902",
"0.6613902",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.6587221",
"0.6458624",
"0.642881",
"0.6387629",
"0.6339448",
"0.63337046",
"0.6318866",
"0.6310054",
"0.6266495",
"0.6207546",
"0.6169787",
"0.6162002",
"0.61556125",
"0.61209476",
"0.6114965",
"0.61042917",
"0.60988075",
"0.60988075",
"0.60988075",
"0.60916275",
"0.60737956",
"0.6044167",
"0.60035205",
"0.59917176",
"0.59845275",
"0.59643966",
"0.5963419",
"0.59538627",
"0.5917793",
"0.58881736",
"0.58858836",
"0.5880861",
"0.58786815",
"0.5865479",
"0.5863698",
"0.5842632",
"0.583974",
"0.583974",
"0.583974",
"0.583974",
"0.583974",
"0.583974",
"0.583974",
"0.58391654",
"0.58391654",
"0.58391654",
"0.5837601",
"0.5828023",
"0.58268774",
"0.58249444",
"0.5820853",
"0.5818837",
"0.5808825",
"0.5808012",
"0.5803665",
"0.57976645",
"0.5796016",
"0.57934284",
"0.57934284",
"0.57934284",
"0.5786855",
"0.57868457",
"0.5785435",
"0.578205",
"0.576942",
"0.57514906",
"0.57502955",
"0.5743453",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053"
] |
0.0
|
-1
|
string errorMessage = 2;
|
public Builder setErrorMessageBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
errorMessage_ = value;
onChanged();
return this;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"String errorMessage();",
"private void error(String string) {\n\t\r\n}",
"String getErrorMessage();",
"String getErrorMessage();",
"String getError(int i) {\n if (i >= 0 & i < msgs.length)\n return msgs[i];\n else\n return \"Invalid Error Code\";\n }",
"java.lang.String getError();",
"java.lang.String getError();",
"java.lang.String getError();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"void showErrorMsg(String string);",
"String getGetErrorMessage();",
"java.lang.String getErr();",
"public String getErrorString()\r\n\t{\r\n\t\t\r\n\t\treturn ERROR_STRING;\r\n\t}",
"public void error(String string) {\n\t\t\n\t}",
"String getInvalidMessage();",
"private static String getMessage(int code) {\n switch (code) {\n case ME_DIV_BY_ZERO:\n return \"Attempt to divide by zero.\";\n case ME_ASSIGNLITERAL:\n return \"Attempt to assign to a literal.\";\n case ME_NONVARASSIGN:\n return \"Attempt to assign to a non-variable.\";\n default:\n return \"Unknown error.\";\n }\n }",
"String getErrorsString();",
"public String error();",
"public String getError() {\n\treturn mistake;\n }",
"private String getErrorString() {\n\t\treturn \"GUID:ERROR:\" + mErrors[0][0]\n\t\t + \":\" + mErrors[1][0]\n\t\t + \":\" + mErrors[2][0]\n\t\t + \":\" + mErrors[3][0];\n\t}",
"public String getErrorMessage() \r\n\t{\r\n\t\t\r\n\t\treturn errorMessage;\r\n\t\t\r\n\t}",
"public java.lang.String getErrorMessage(){\n return localErrorMessage;\n }",
"java.lang.String getErrmsg();",
"public String getErrorString()\n\t{\n\t\treturn errorString;\n\t}",
"public static String getLastErrorMessage()\r\n\t{\n\t\treturn lastAlert;\r\n\t}",
"String getMessage();",
"String getMessage();",
"String getMessage();",
"private int getErrorId(final String message) {\n\t\tif (isLowerCase(message)) {\n\t\t\treturn ERROR_LOWER_CASE;\n\t\t} else if (isUnunsedMacro(message)) {\n\t\t\treturn ERROR_UNUSED_MACRO;\n\t\t} else if (isUnunsedVariable(message)) {\n\t\t\treturn ERROR_UNUSED_VARIABLE;\n\t\t} else if (isEndLineSpace(message) || isNoSpace(message)) {\n\t\t\treturn ERROR_NO_SPACE;\n\t\t} else if (isOneSpace(message)) {\n\t\t\treturn ERROR_ONE_SPACE;\n\t\t} else {\n\t\t\treturn ERROR_INVALID;\n\t\t}\n\t}",
"public String getErrorString(String message) {\n \t\treturn getString(new StringBuffer(\"error.\").append(message).toString());\n \t}",
"String getErrorMessage(E input);",
"public String errorMessage()\n {\n return new String(errorMessageAsBytes());\n }",
"String Message ();",
"public String errorMessage() {\n return errorMessage;\n }",
"void SemErr(String str);",
"public String getErrorMessage()\n {\n return errorMessage;\n }",
"ErrorCodes(int code){\n this.code = code;\n //this.message = message;\n }",
"int getErrorCode();",
"public String getErrorCode();",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n errorMessage_ = s;\n }\n return s;\n }\n }",
"void showError(@StringRes int errorMessage);",
"void showError(String errorMessage);",
"private static int getErrorLine(String errmsg){\n\t\treturn Integer.parseInt(errmsg.substring(0,errmsg.indexOf(\":\")).substring(errmsg.substring(0,errmsg.indexOf(\":\")).lastIndexOf(\" \")+1));\n\t}",
"public String errorMessage()\n {\n return edma_errorMsg;\n }",
"public String getErrorMessage() {\r\n return this.errorMessage;\r\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public String errorMessage() {\n return this.errorMessage;\n }",
"public String getErrorMessage() {\n\t\treturn errorMessage;\n\t}",
"public int getError() {\n return error;\n }",
"public String getErrorMessage() {\n return this.errorMessage;\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"void setErrorMessage(String errorMessage);",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"static int errorMsg(int eCode)\n {\n if (eCode == 0) return 0;\n String message = \"\";\n switch (eCode){\n case 1: message = \"Division by zero\"; break;\n case 2: message = \"Non-matching parenthesis in function\"; break;\n case 3: message = \"Must enclose negative exponents in parentheses\"; break;\n case 4: message = \"Incorrect Operator Syntax\"; break;\n case 5: message = \"Rightfunctions must use parenthesis. (example: ABS(-2);\"; break;\n case 6: message = \"Unrecognized token in function srtring.\"; break;\n case 8: message = \"Can not raise negative number to a fractional power.\"; break;\n case 10:message = \"Input a real number with no operators\"; break;\n }\n JOptionPane.showMessageDialog(null, message, \"Error \"+eCode, JOptionPane.ERROR_MESSAGE);\n return 0;\n }",
"public String getError() {\n return errMsg;\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n }\n }",
"public String getMsgError() {\r\n\t\treturn msgError;\r\n\t}",
"public String getErrorMessage() {\n return errorMessage;\n }",
"public String getErrorMessage() {\n return errorMessage;\n }",
"public String getErrorMessage() {\n return errorMessage;\n }",
"String getFailureMessage();",
"public int error() {\n return this.error;\n }",
"public String getParseErrorMessage();",
"public String getErrorMessage() {\n return ERROR_MESSAGE;\n }",
"public String getError() {\r\n if (scriptError == null) return \"\";\r\n return scriptError;\r\n }",
"private String getGUIErrorMsg(long errorcode) {\n\t\tif (errorcode == 0) {\n\t\t\treturn \"This popup shouldn't have launched!\";\n\t\t} else if (errorcode == 9) {\n\t\t\treturn \"Latitude input format incorrect!\\nValid Latitude values are -90 to 90 with negative values being south Latitude.\";\n\t\t} else if (errorcode == 10) {\n\t\t\treturn \"Longitude input format incorrect!\\nValid Longitude values are -180 to 180 with negative values being west latitude.\";\n\t\t} else if (errorcode == 11) {\n\t\t\treturn \"Date input format incorrect!\\nValid dates go <year>-<month>-<day>\\nValid month values are 1- 12 and valid day values are 1 - 31.\";\n\t\t} else if (errorcode == 12) {\n\t\t\treturn \"Time input format incorrect!\\nValid times go <hour>-<minute>-<second>\\nValid hour values are 0 - 23 and valid minute and second values are 0 - 59\";\n\t\t} else if (errorcode == 1) {\n\t\t\treturn \"Invalid latitude!\\nValid Latitude values are -90 to 90 with negative values being south Latitude.\";\n\t\t} else if (errorcode == 2) {\n\t\t\treturn \"Invalid Longitude!\\nValid Longitude values are -180 to 180 with negative values being west latitude.\";\n\t\t} else if (errorcode == 3) {\n\t\t\treturn \"Invalid Year!\\nValid year values are \" + Integer.MIN_VALUE + \" - \" + Integer.MAX_VALUE + \".\";\n\t\t} else if (errorcode == 4) {\n\t\t\treturn \"Invalid Month!\\nValid month values are 1 - 12\";\n\t\t} else if (errorcode == 5) {\n\t\t\treturn \"Invalid Day!\\nValid day values are 1 - 31\";\n\t\t} else if (errorcode == 6) {\n\t\t\treturn \"Invalid Hour!\\nValid hour values are 0 - 23\";\n\t\t} else if (errorcode == 7) {\n\t\t\treturn \"Invalid Minute!\\nValid minute values are 0 - 59\";\n\t\t} else if (errorcode == 8) {\n\t\t\treturn \"Invalid Second!\\nValid second values are 0 - 59\";\n\t\t} \n\t\treturn \"Undefined Error Message!\";\n\t}",
"public void setErrorMsg(String text) {\n this.errorMsg = text;\n }",
"public int getErrorNo() {\n return this.errorNo;\n }",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();"
] |
[
"0.7234827",
"0.68487597",
"0.68242407",
"0.68242407",
"0.66320926",
"0.6613902",
"0.6613902",
"0.6613902",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.6587221",
"0.6458624",
"0.642881",
"0.6387629",
"0.6339448",
"0.63337046",
"0.6318866",
"0.6310054",
"0.6266495",
"0.6207546",
"0.6169787",
"0.6162002",
"0.61556125",
"0.61209476",
"0.6114965",
"0.61042917",
"0.60988075",
"0.60988075",
"0.60988075",
"0.60916275",
"0.60737956",
"0.6044167",
"0.60035205",
"0.59917176",
"0.59845275",
"0.59643966",
"0.5963419",
"0.59538627",
"0.5917793",
"0.58881736",
"0.58858836",
"0.5880861",
"0.58786815",
"0.5865479",
"0.5863698",
"0.5842632",
"0.583974",
"0.583974",
"0.583974",
"0.583974",
"0.583974",
"0.583974",
"0.583974",
"0.58391654",
"0.58391654",
"0.58391654",
"0.5837601",
"0.5828023",
"0.58268774",
"0.58249444",
"0.5820853",
"0.5818837",
"0.5808825",
"0.5808012",
"0.5803665",
"0.57976645",
"0.5796016",
"0.57934284",
"0.57934284",
"0.57934284",
"0.5786855",
"0.57868457",
"0.5785435",
"0.578205",
"0.576942",
"0.57514906",
"0.57502955",
"0.5743453",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053"
] |
0.0
|
-1
|
Chunk content (1024 bytes or less) bytes data = 3;
|
@java.lang.Override
public com.google.protobuf.ByteString getData() {
return data_;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private void readHttpDataChunkByChunk(HttpPostRequestDecoder decoder) {\n try {\n while (decoder.hasNext()) {\n InterfaceHttpData data = decoder.next();\n if (data != null) {\n // check if current HttpData is a FileUpload and previously set as partial\n if (partialContent == data) {\n partialContent = null;\n }\n try {\n // new value\n writeHttpData(data);\n } finally {\n data.release();\n }\n }\n }\n // Check partial decoding for a FileUpload\n InterfaceHttpData data = decoder.currentPartialHttpData();\n if (data != null) {\n if (partialContent == null) {\n partialContent = (HttpData) data;\n }\n }\n } catch (HttpPostRequestDecoder.EndOfDataDecoderException e1) {\n // end\n }\n }",
"DataChunk nextChunk() throws RemoteException;",
"private int getChunk(byte [] buffer, int offset, String chunk) {\r\n\t\ttry {\r\n\t\t\tfor (;;) {\r\n\t\t\t\tint dataLenght = getInt(buffer, offset);\r\n\t\t\t\tif (compareBytes(buffer, offset+4, chunk)) {\r\n\t\t\t\t\treturn offset;\r\n\t\t\t\t} else {\r\n\t\t\t\t\toffset += 4 + 4 + dataLenght + 4;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception e) {};\r\n\t\treturn -1;\r\n\t}",
"entities.Torrent.ChunkResponse getChunkResponse();",
"void sendChunkRequest(int chunkX, int chunkY);",
"private static boolean parseChunk(final FileChannel fc,final long[] offset,final int depth) throws IOException {\n\t Log.d(TAG, \"entering parseChunk \"+ offset[0] +\"/\"+ depth);\n\n\t long data_offset = offset[0];\n\n long chunk_size = Util.readUInt(fc, data_offset); \n int chunk_type = Util.readInt(fc, data_offset+4);\n\n Log.v(TAG, chunk_type + \" \" + chunk_size);\n char sChunk[] = new char[4];\n Util.MakeFourCCString(chunk_type, sChunk);\n Log.v(TAG, String.format(\"chunk %s\", String.valueOf(sChunk)));\n\n data_offset += 8;\n // long chunk_data_size = offset[0] + chunk_size - data_offset;\n\n if (chunk_size == 1) {\n\n chunk_size = Util.readLong(fc, data_offset);\n\n data_offset += 8;\n\n if (chunk_size < 16) {\n Log.e(TAG,\" The smallest valid chunk is 16 bytes long in this case.\");\n return false;\n }\n\n } else if (chunk_size < 8) {\n Log.e(TAG,\"The smallest valid chunk is 8 bytes long.\");\n return false;\n }\n\n Log.v(TAG, String.format(\"parsing chunk %s at depth %d\",\n String.valueOf(sChunk), depth));\n\n if(chunk_type == Util.FOURCC('m', 'o', 'o', 'v') || chunk_type == Util.FOURCC('u', 'd', 't', 'a')) {\n Log.d(TAG, String.valueOf(sChunk));\n\n long stop_offset = offset[0] + chunk_size;\n offset[0] = data_offset;\n while (offset[0] < stop_offset) {\n boolean err = parseChunk(fc,offset, depth + 1);\n if (!err) {\n return err;\n }\n }\n\n if (offset[0] != stop_offset) {\n return false;\n }\n\n if (chunk_type == Util.FOURCC('m', 'o', 'o', 'v') ) {\n return true;\n }\n }\n else if(chunk_type == Util.FOURCC('h', 't', 'c', 'b')) {\n Log.d(TAG,\"Found Htc MetaData\");\n sHtcTableOffset = data_offset;\n Log.d(TAG,\"sHtcTableOffset = \" + sHtcTableOffset );\n parseHtcMetaData(fc,data_offset,chunk_size);\n Log.d(TAG,\"Parse Htc MetaData done\");\n offset[0] += chunk_size;\n } else if (chunk_type == Util.FOURCC('_', 'h', 't', 'c')\n || chunk_type == Util.FOURCC('d', 't', 'a', 'h')) {\n Log.d(TAG, \"Found HTC box\");\n offset[0] += 8;\n parseChunk(fc, offset, depth + 1);\n } else {\n offset[0] += chunk_size;\n }\n return true;\n }",
"int getChunkSize();",
"@Test\n public void testChunkedOutputToChunkInput() throws Exception {\n final ChunkedInput<String> input = target().path(\"test\").request().get(new javax.ws.rs.core.GenericType<ChunkedInput<String>>() {});\n int counter = 0;\n String chunk;\n while ((chunk = input.read()) != null) {\n Assert.assertEquals((\"Unexpected value of chunk \" + counter), \"test\", chunk);\n counter++;\n } \n Assert.assertEquals(\"Unexpected numbed of received chunks.\", 3, counter);\n }",
"long getChunkSize();",
"long getChunkSize();",
"long getChunkSize();",
"long getChunkSize();",
"void handleChunk(char[] buff, int length) {\n\t\tint newlinePos = -1;\n\t\tfor (int pos = 0; pos < length; pos++) {\n\t\t\tif (buff[pos] == '\\n') {\n\t\t\t\tnewlinePos = pos;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (newlinePos > -1) {\n\t\t\tloaded.append(buff, 0, newlinePos);\n\t\t\tendLine();\n\t\t\tloaded.append(buff, newlinePos + 1, length - newlinePos - 1);\n\t\t} else {\n\t\t\tloaded.append(buff, 0, length);\n\t\t}\n\t}",
"public SmallChunkData(Chunk c){\n\t\t\tx = c.getX();\n\t\t\tz = c.getZ();\n\t\t\tworldName = c.getWorld().getName();\n\t\t\tfor(int x = 0; x < 16; x ++){\n\t\t\t\tfor(int z = 0; z < 16; z ++){\n\t\t\t\t\tbiomes[x][z] = c.getBlock(x, 0, z).getBiome();\n\t\t\t\t}\n\t\t\t}\n\t\t\t/*for(int y = 0; y < 256; y ++){\n\t\t\t\tfor(int x = 0; x < 16; x ++){\n\t\t\t\t\tfor(int z = 0; z < 16; z ++){\n\t\t\t\t\t\tdata[y][x][z] = new MaterialData(c.getBlock(x, y, z).getType(), c.getBlock(x, y, z).getData());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}*/\n\t\t}",
"public int getChunkCount () {\n return (this.getTagCount()>>BITS_TO_SHIFT_FOR_CHUNK) + 1;\n }",
"byte[] getContent() throws IOException;",
"void mo54417a(DownloadChunk downloadChunk);",
"public int getChunkNo() {\n return chunkNo;\n }",
"public int getChunkNo() {\n return chunkNo;\n }",
"byte[] getContent();",
"byte[] getByteContent() throws IOException;",
"boolean canRequestChunk();",
"public int getChunkWidth() {\n return 256;\n }",
"entities.Torrent.ChunkRequest getChunkRequest();",
"public boolean isChunked() {\n/* 101 */ return this.chunked;\n/* */ }",
"public void writeChunk(String id, byte[] data) throws IOException {\n byte[] identifier = id.getBytes(\"US-ASCII\");\n if (identifier.length != 4) {\n throw new IllegalArgumentException(\"ID length must match 4!\");\n }\n writeInt(data.length);\n write(identifier);\n write(data);\n CRC32 crc = new CRC32();\n crc.update(identifier);\n crc.update(data);\n writeInt((int) (crc.getValue() & 0xFFFFFFFFL));\n crc.reset();\n }",
"public final ByteBlock getData() { return data; }",
"public void data(byte[] data, int count);",
"int getChunkId();",
"int getChunkId();",
"int getChunkId();",
"int getChunkId();",
"int getChunkId();",
"int getChunkId();",
"private void onReceivedResponseData(org.apache.http.HttpResponse r14, com.tencent.tmassistantsdk.protocol.jce.DownloadChunkLogInfo r15) {\n /*\n r13 = this;\n r2 = 705; // 0x2c1 float:9.88E-43 double:3.483E-321;\n r6 = 206; // 0xce float:2.89E-43 double:1.02E-321;\n r7 = 0;\n r12 = 0;\n r0 = r14.getEntity();\n r1 = r13.verifyTotalLen(r14, r0);\n if (r1 != 0) goto L_0x0022;\n L_0x0010:\n r0 = \"_DownloadTask\";\n r1 = \"verifyTotalLen false\";\n com.tencent.tmassistantsdk.util.TMLog.i(r0, r1);\n r0 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\n r1 = \"totalLen is not match the requestSize\";\n r0.<init>(r2, r1);\n throw r0;\n L_0x0022:\n r1 = r13.mDownloadInfo;\n r2 = r1.getTotalSize();\n r4 = 0;\n r1 = (r2 > r4 ? 1 : (r2 == r4 ? 0 : -1));\n if (r1 != 0) goto L_0x015c;\n L_0x002e:\n r1 = r14.getStatusLine();\n r1 = r1.getStatusCode();\n r2 = 200; // 0xc8 float:2.8E-43 double:9.9E-322;\n if (r1 != r2) goto L_0x00f9;\n L_0x003a:\n r1 = r13.mDownloadInfo;\n r2 = r0.getContentLength();\n r1.setTotalSize(r2);\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"HTTPCode 200, totalBytes:\";\n r2.<init>(r3);\n r3 = r13.mDownloadInfo;\n r4 = r3.getTotalSize();\n r2 = r2.append(r4);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.i(r1, r2);\n L_0x005f:\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"first start downloadinfoTotalSize = \";\n r2.<init>(r3);\n r3 = r13.mDownloadInfo;\n r4 = r3.getTotalSize();\n r2 = r2.append(r4);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r2);\n r1 = \"content-range\";\n r1 = r14.getFirstHeader(r1);\n if (r1 == 0) goto L_0x00a0;\n L_0x0084:\n r1 = r1.getValue();\n r1 = com.tencent.tmassistantsdk.downloadservice.ByteRange.parseContentRange(r1);\n r2 = r1.getStart();\n r15.responseRangePosition = r2;\n r2 = r1.getEnd();\n r4 = r1.getStart();\n r2 = r2 - r4;\n r4 = 1;\n r2 = r2 + r4;\n r15.responseRangeLength = r2;\n L_0x00a0:\n r1 = r13.mDownloadInfo;\n r2 = r1.getTotalSize();\n r15.responseContentLength = r2;\n L_0x00a8:\n r1 = r13.mSaveFile;\n if (r1 != 0) goto L_0x00bb;\n L_0x00ac:\n r1 = new com.tencent.tmassistantsdk.storage.TMAssistantFile;\n r2 = r13.mDownloadInfo;\n r2 = r2.mTempFileName;\n r3 = r13.mDownloadInfo;\n r3 = r3.mFileName;\n r1.<init>(r2, r3);\n r13.mSaveFile = r1;\n L_0x00bb:\n r2 = 0;\n r10 = r0.getContent();\t Catch:{ SocketException -> 0x0406 }\n r0 = \"_DownloadTask\";\n r1 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x0406 }\n r4 = \"start write file, fileName: \";\n r1.<init>(r4);\t Catch:{ SocketException -> 0x0406 }\n r4 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x0406 }\n r4 = r4.mFileName;\t Catch:{ SocketException -> 0x0406 }\n r1 = r1.append(r4);\t Catch:{ SocketException -> 0x0406 }\n r1 = r1.toString();\t Catch:{ SocketException -> 0x0406 }\n com.tencent.tmassistantsdk.util.TMLog.i(r0, r1);\t Catch:{ SocketException -> 0x0406 }\n r8 = r2;\n L_0x00dc:\n r0 = r13.mRecvBuf;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = r10.read(r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r3 <= 0) goto L_0x00eb;\n L_0x00e4:\n r0 = r13.mStopTask;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 == 0) goto L_0x0262;\n L_0x00e8:\n r10.close();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x00eb:\n r0 = r13.mSaveFile;\n if (r0 == 0) goto L_0x00f6;\n L_0x00ef:\n r0 = r13.mSaveFile;\n r0.close();\n r13.mSaveFile = r12;\n L_0x00f6:\n r15.receiveDataSize = r8;\n return;\n L_0x00f9:\n r1 = r14.getStatusLine();\n r1 = r1.getStatusCode();\n if (r1 != r6) goto L_0x0135;\n L_0x0103:\n r1 = \"content-range\";\n r1 = r14.getFirstHeader(r1);\n r2 = r13.mDownloadInfo;\n r1 = r1.getValue();\n r4 = com.tencent.tmassistantsdk.downloadservice.ByteRange.getTotalSize(r1);\n r2.setTotalSize(r4);\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"HTTPCode 206, totalBytes:\";\n r2.<init>(r3);\n r3 = r13.mDownloadInfo;\n r4 = r3.getTotalSize();\n r2 = r2.append(r4);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.i(r1, r2);\n goto L_0x005f;\n L_0x0135:\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"statusCode=\";\n r2.<init>(r3);\n r3 = r14.getStatusLine();\n r3 = r3.getStatusCode();\n r2 = r2.append(r3);\n r3 = \" onReceivedResponseData error.\";\n r2 = r2.append(r3);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r2);\n goto L_0x005f;\n L_0x015c:\n r1 = r14.getStatusLine();\n r1 = r1.getStatusCode();\n if (r1 != r6) goto L_0x00a8;\n L_0x0166:\n r1 = \"content-range\";\n r1 = r14.getFirstHeader(r1);\t Catch:{ Throwable -> 0x0214 }\n r2 = r1.getValue();\t Catch:{ Throwable -> 0x0214 }\n r2 = com.tencent.tmassistantsdk.downloadservice.ByteRange.parseContentRange(r2);\t Catch:{ Throwable -> 0x0214 }\n r3 = r1.getValue();\t Catch:{ Throwable -> 0x0214 }\n r4 = com.tencent.tmassistantsdk.downloadservice.ByteRange.getTotalSize(r3);\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r15.responseRangePosition = r8;\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getEnd();\t Catch:{ Throwable -> 0x0214 }\n r10 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r8 = r8 - r10;\n r10 = 1;\n r8 = r8 + r10;\n r15.responseRangeLength = r8;\t Catch:{ Throwable -> 0x0214 }\n r15.responseContentLength = r4;\t Catch:{ Throwable -> 0x0214 }\n r3 = \"_DownloadTask\";\n r6 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r8 = \"totalSize = \";\n r6.<init>(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r4);\t Catch:{ Throwable -> 0x0214 }\n r8 = \" downloadinfoTotalSize = \";\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r8 = r8.getTotalSize();\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.w(r3, r6);\t Catch:{ Throwable -> 0x0214 }\n r3 = \"_DownloadTask\";\n r6 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r8 = \"mReceivedBytes = \";\n r6.<init>(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r8 = r8.mReceivedBytes;\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.i(r3, r6);\t Catch:{ Throwable -> 0x0214 }\n r3 = \"_DownloadTask\";\n r6 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r8 = \"start = \";\n r6.<init>(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = \", end = \";\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getEnd();\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.i(r3, r6);\t Catch:{ Throwable -> 0x0214 }\n r2 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r6 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r8 = r6.mReceivedBytes;\t Catch:{ Throwable -> 0x0214 }\n r2 = (r2 > r8 ? 1 : (r2 == r8 ? 0 : -1));\n if (r2 == 0) goto L_0x022a;\n L_0x0209:\n r0 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ Throwable -> 0x0214 }\n r1 = 706; // 0x2c2 float:9.9E-43 double:3.49E-321;\n r2 = \"The received size is not equal with ByteRange.\";\n r0.<init>(r1, r2);\t Catch:{ Throwable -> 0x0214 }\n throw r0;\t Catch:{ Throwable -> 0x0214 }\n L_0x0214:\n r0 = move-exception;\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ all -> 0x021d }\n r2 = 704; // 0x2c0 float:9.87E-43 double:3.48E-321;\n r1.<init>(r2, r0);\t Catch:{ all -> 0x021d }\n throw r1;\t Catch:{ all -> 0x021d }\n L_0x021d:\n r0 = move-exception;\n r1 = r13.mSaveFile;\n if (r1 == 0) goto L_0x0229;\n L_0x0222:\n r1 = r13.mSaveFile;\n r1.close();\n r13.mSaveFile = r12;\n L_0x0229:\n throw r0;\n L_0x022a:\n r2 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r2 = r2.getTotalSize();\t Catch:{ Throwable -> 0x0214 }\n r2 = (r4 > r2 ? 1 : (r4 == r2 ? 0 : -1));\n if (r2 == 0) goto L_0x023f;\n L_0x0234:\n r0 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ Throwable -> 0x0214 }\n r1 = 705; // 0x2c1 float:9.88E-43 double:3.483E-321;\n r2 = \"The total size is not equal with ByteRange.\";\n r0.<init>(r1, r2);\t Catch:{ Throwable -> 0x0214 }\n throw r0;\t Catch:{ Throwable -> 0x0214 }\n L_0x023f:\n r2 = \"_DownloadTask\";\n r3 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r4 = \"response ByteRange: \";\n r3.<init>(r4);\t Catch:{ Throwable -> 0x0214 }\n r1 = r3.append(r1);\t Catch:{ Throwable -> 0x0214 }\n r1 = r1.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.d(r2, r1);\t Catch:{ Throwable -> 0x0214 }\n r1 = r13.mSaveFile;\n if (r1 == 0) goto L_0x00a8;\n L_0x0259:\n r1 = r13.mSaveFile;\n r1.close();\n r13.mSaveFile = r12;\n goto L_0x00a8;\n L_0x0262:\n r0 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = (long) r3;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0 + r4;\n r2 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r2.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = (r0 > r4 ? 1 : (r0 == r4 ? 0 : -1));\n if (r2 > 0) goto L_0x03be;\n L_0x0272:\n r2 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r2.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = (r0 > r4 ? 1 : (r0 == r4 ? 0 : -1));\n if (r0 != 0) goto L_0x0315;\n L_0x027c:\n r6 = 1;\n L_0x027d:\n r0 = r13.mSaveFile;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mRecvBuf;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 0;\n r4 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r4.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.write(r1, r2, r3, r4, r6);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 != 0) goto L_0x03b4;\n L_0x028c:\n r0 = com.tencent.tmassistantsdk.storage.TMAssistantFile.getSavePathRootDir();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = com.tencent.tmassistantsdk.downloadservice.DownloadHelper.isSpaceEnough(r0, r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 == 0) goto L_0x0367;\n L_0x029c:\n r0 = com.tencent.tmassistantsdk.storage.TMAssistantFile.isSDCardExistAndCanWrite();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 == 0) goto L_0x0318;\n L_0x02a2:\n r0 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"write file failed, fileName: \";\n r0.<init>(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r1.mFileName;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" receivedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" readedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" totalSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"_DownloadTask\";\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 703; // 0x2bf float:9.85E-43 double:3.473E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x02ef:\n r0 = move-exception;\n r2 = r8;\n L_0x02f1:\n r1 = \"_DownloadTask\";\n r4 = \"\";\n r5 = 0;\n r5 = new java.lang.Object[r5];\t Catch:{ all -> 0x0305 }\n com.tencent.mm.sdk.platformtools.w.printErrStackTrace(r1, r0, r4, r5);\t Catch:{ all -> 0x0305 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ all -> 0x0305 }\n r4 = 605; // 0x25d float:8.48E-43 double:2.99E-321;\n r1.<init>(r4, r0);\t Catch:{ all -> 0x0305 }\n throw r1;\t Catch:{ all -> 0x0305 }\n L_0x0305:\n r0 = move-exception;\n r8 = r2;\n L_0x0307:\n r1 = r13.mSaveFile;\n if (r1 == 0) goto L_0x0312;\n L_0x030b:\n r1 = r13.mSaveFile;\n r1.close();\n r13.mSaveFile = r12;\n L_0x0312:\n r15.receiveDataSize = r8;\n throw r0;\n L_0x0315:\n r6 = r7;\n goto L_0x027d;\n L_0x0318:\n r0 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"write file failed, no sdCard! fileName: \";\n r0.<init>(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r1.mFileName;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" receivedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" readedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" totalSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"_DownloadTask\";\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 711; // 0x2c7 float:9.96E-43 double:3.513E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x0365:\n r0 = move-exception;\n goto L_0x0307;\n L_0x0367:\n r0 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"write file failed, no enough space! fileName: \";\n r0.<init>(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r1.mFileName;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" receivedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" readedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" totalSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"_DownloadTask\";\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 710; // 0x2c6 float:9.95E-43 double:3.51E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x03b4:\n r0 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = (long) r3;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0.updateReceivedSize(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = (long) r3;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r8 = r8 + r0;\n goto L_0x00dc;\n L_0x03be:\n r0 = \"write file size too long.\";\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = \"write file size too long.\\r\\nreadedLen: \";\n r2.<init>(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = \"\\r\\nreceivedSize: \";\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r3.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = \"\\r\\ntotalSize: \";\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r3.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = \"\\r\\nisTheEndData: false\";\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 703; // 0x2bf float:9.85E-43 double:3.473E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x0406:\n r0 = move-exception;\n goto L_0x02f1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.tmassistantsdk.downloadservice.DownloadTask.onReceivedResponseData(org.apache.http.HttpResponse, com.tencent.tmassistantsdk.protocol.jce.DownloadChunkLogInfo):void\");\n }",
"private byte[] readFixedLengthContent(ByteBuf in) throws UnsupportedEncodingException {\n if (in.readableBytes() < 2) {\n return new byte[]{};\n }\n int strLen = in.readableBytes();\n// if (in.readableBytes() < strLen) {\n// return null;\n// }\n byte[] strRaw = new byte[strLen];\n in.readBytes(strRaw);\n\n return strRaw;\n }",
"@Override\n public void readData(DataKey dataKey) {\n this.chunk = getChunkFromData(dataKey);\n }",
"entities.Torrent.ChunkResponseOrBuilder getChunkResponseOrBuilder();",
"public int getChunkHeight() {\n return 256;\n }",
"public void sendChunk(String fileName,ObjectOutputStream out)\n {\n FileInputStream fInput;\n BufferedInputStream bufInput;\n byte[] byteToSend = new byte[chunkSize];\n try\n {\n fInput = new FileInputStream(fileName);\n bufInput = new BufferedInputStream(fInput);\n int b;\n int i=0;\n b = bufInput.read(byteToSend,0,chunkSize);\n out.write(byteToSend,0,chunkSize);\n out.flush();\n bufInput.close();\n }\n catch(FileNotFoundException ex)\n {\n System.out.println(\"File Chunk Not found Exception: Some chunk missing.\");\n }\n catch(IOException ex)\n {\n System.out.println(\"IOException while reading from the chunk file.\");\n }\n }",
"boolean hasChunkResponse();",
"com.google.protobuf.ByteString getContent();",
"com.google.protobuf.ByteString getContent();",
"edu.usfca.cs.dfs.StorageMessages.StoreChunkResponse getStoreChunkResponse();",
"public Object getContent() {\n/* 112 */ return this.buf;\n/* */ }",
"edu.usfca.cs.dfs.StorageMessages.StoreChunk getStoreChunk();",
"@Override\n\tpublic void open(Context context, Chunk data) {\n\t}",
"entities.Torrent.ChunkInfo getChunks(int index);",
"int getChunkIndex();",
"int getChunkIndex();",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }",
"@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }",
"byte getBlockData();",
"byte[] getData();",
"byte[] getData();",
"byte[] getData();",
"byte[] getData();",
"boolean hasChunkRequest();",
"@Override\n\t\t\t public void start(ByteBuffer data) throws Exception {\n\t\t\t if (self.state.lastFragment == false) {\n\t\t\t self.error(\"fragmented pong is not supported\", 1002);\n\t\t\t return;\n\t\t\t }\n\n\t\t\t // decode length\n\t\t\t int firstLength = data.get(1) & 0x7f;\n\t\t\t if (firstLength < 126) {\n\t\t\t ///opcodes['10'].getData.call(self, firstLength);\n\t\t\t \t getData(firstLength);\n\t\t\t }\n\t\t\t else {\n\t\t\t self.error(\"control frames cannot have more than 125 bytes of data\", 1002);\n\t\t\t }\n\t\t\t }",
"private boolean sendChunk() throws IOException {\n // allocate Buffer\n final Buffer buffer = mm.allocate(chunkSize);\n // mark it available for disposal after content is written\n buffer.allowBufferDispose(true);\n\n // read file to the Buffer\n final int justReadBytes = (int) Buffers.readFromFileChannel(\n fileChannel, buffer);\n \n if (justReadBytes <= 0) {\n complete();\n return false;\n }\n\n // prepare buffer to be written\n buffer.trim();\n\n // write the Buffer\n outputStream.write(buffer);\n size -= justReadBytes;\n\n // check the remaining size here to avoid extra onWritePossible() invocation\n if (size <= 0) {\n complete();\n return false;\n }\n\n return true;\n }",
"public byte[] getChunk(String ChunkHandle, int offset, int NumberOfBytes) {\n\t\t\n\t\tbyte[] payload = null;\n\t\t\n\t\ttry {\n\t\t\t// request \n\t\t\tbyte[] handle = ChunkHandle.getBytes();\n\t\t\t// write payload size (4-command + 4-handle-length + actual handle)\n\t\t\toos.writeInt(4 + 4 + 4 + 4 + handle.length);\n\t\t\t// write command identifier \n\t\t\toos.writeInt(ChunkServer.GetChunk);\n\t\t\t// write chunkHandle length \n\t\t\toos.writeInt(handle.length);\n\t\t\t// write chunk handle\n\t\t\toos.write(handle);\n\t\t\t// write offset \n\t\t\toos.writeInt(offset);\n\t\t\t// write number of bytes\n\t\t\toos.writeInt(NumberOfBytes);\n\t\t\toos.flush();\n\t\t\t// parse response \n\t\t\tint payloadSize = getPayloadInt(ois);\n\t\t\tSystem.out.println(\"Recieving this size: \" + payloadSize);\n\t\t\tpayload = getPayload(ois, payloadSize);\n\t\t\tSystem.out.print(\"received payload in client\");\n\t\t\t\n\t\t\treturn payload; \n\t\t\t\n\t\t} catch (IOException ioe) {\n\t\t\tSystem.out.println(ioe.getMessage());\n\t\t}\n\t\t\n\t\treturn payload; \n\t\t\n\t}",
"@Test\n public void testStreamParsePubDev3401() throws IOException {\n final int chunkSize = 64 * 1024;\n ParseSetupV3 ps = new ParseSetupV3();\n ps.parse_type = \"CSV\";\n ps.chunk_size = chunkSize;\n // mock Parser\n final List<Integer> pcCalls = new LinkedList<>();\n Parser p = new Parser(new ParseSetup(ps), null) {\n @Override protected ParseWriter parseChunk(int cidx, ParseReader din, ParseWriter dout) {\n pcCalls.add(cidx);\n byte[] data = din.getChunkData(cidx);\n assert cidx <= 3;\n assert ((data != null) && (data.length == chunkSize)) || (cidx == 3);\n return null;\n }\n };\n // mock source InputStream, only used for \"back-channel\" chunk index signalling\n final Queue<Integer> cidxs = new LinkedList<>(Arrays.asList(1, 2, 3, 4));\n InputStream bvs = new InputStream() {\n @Override public int read() throws IOException { throw new UnsupportedOperationException(); }\n @Override public int read(byte[] b, int off, int len) throws IOException {\n assert b == null;\n return cidxs.remove();\n }\n };\n // mock StreamParseWriter\n MockStreamParseWriter w = new MockStreamParseWriter(chunkSize);\n // Vec made of 3 chunks\n Key k = FVecFactory.makeByteVec(\n RandomStringUtils.randomAscii(chunkSize),\n RandomStringUtils.randomAscii(chunkSize),\n RandomStringUtils.randomAscii(chunkSize)\n );\n try {\n ByteVec v = DKV.getGet(k);\n p.streamParseZip(v.openStream(null), w, bvs);\n assertEquals(\"Expected calls to parseChunk()\", Arrays.asList(0, 1, 2, 3), pcCalls);\n assertEquals(\"Expected calls to nextChunk()\", Arrays.asList(0, 1, 2), w._nchks);\n } finally {\n k.remove();\n }\n }",
"public String initializeChunk() {\n\t\ttry {\n\t\t\t// request \n\t\t\t// write payload size (2 ints, 4 + 4)\n\t\t\toos.writeInt(8);\n\t\t\t// write command identifier \n\t\t\toos.writeInt(ChunkServer.InitializeChunk);\n\t\t\toos.flush();\n\t\t\t// parse response \n\t\t\tint chunkHandleSize = getPayloadInt(ois);\n\t\t\t// reduce size by payload size int \n\t\t\tchunkHandleSize -= 4; \n\t\t\tbyte[] handle = getPayload(ois, chunkHandleSize);\n\t\t\treturn (new String(handle).toString());\n\t\t\t\n\t\t} catch (IOException ioe) {\n\t\t\tSystem.out.println(\"ioe in initialize chunk \" + ioe.getMessage());\n\t\t}\n\t\treturn null; \n\t}",
"com.google.protobuf.ByteString getContentBytes();",
"@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }",
"@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }",
"int getChunksCount();",
"int getChunksCount();",
"public Chunk loadChunk(int x, int p_73158_2_)\n\t{\n\t\treturn this.provideChunk(x, p_73158_2_);\n\t}",
"String getChunkType();",
"public boolean sendChunkChange ( Location loc , int sx , int sy , int sz , byte[] data ) {\n\t\treturn invokeSafe ( \"sendChunkChange\" , loc , sx , sy , sz , data );\n\t}",
"public FileChunkReference getFileData() {\n return fileData;\n }",
"com.google.protobuf.ByteString getData(int index);",
"com.google.protobuf.ByteString getData(int index);",
"public void readAllChunks(EndPoint endpoint) throws IOException, Pausable {\n IntList chunkRanges = new IntList(); // alternate numbers in this list refer to the start and end offsets of chunks.\n do {\n int n = readLine(endpoint); // read chunk size text into buffer\n int beg = iread;\n int size = parseChunkSize(buffer, iread - n, iread); // Parse size in hex, ignore extension\n if (size == 0)\n break;\n // If the chunk has not already been read in, do so\n fill(endpoint, iread, size+2 /*chunksize + CRLF*/);\n // record chunk start and end\n chunkRanges.add(beg); \n chunkRanges.add(beg + size); // without the CRLF\n iread += size + 2; // for the next round.\n } while (true);\n\n // / consolidate all chunkRanges\n if (chunkRanges.numElements == 0) {\n contentLength = 0;\n return;\n }\n contentOffset = chunkRanges.get(0); // first chunk's beginning\n int endOfLastChunk = chunkRanges.get(1); // first chunk's end\n\n byte[] bufa = buffer.array();\n for (int i = 2; i < chunkRanges.numElements; i += 2) {\n int beg = chunkRanges.get(i);\n int chunkSize = chunkRanges.get(i + 1) - beg;\n System.arraycopy(bufa, beg, bufa, endOfLastChunk, chunkSize);\n endOfLastChunk += chunkSize;\n }\n // TODO move all trailer stuff up\n contentLength = endOfLastChunk - contentOffset;\n \n // At this point, the contentOffset and contentLen give the entire content \n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkSize() {\n return chunkSize;\n }",
"public void setChunked(boolean b) {\n/* 178 */ this.chunked = b;\n/* */ }",
"private LeafNodeObject getChunk(long chunkStart, long chunkEnd) throws IOException {\n if (chunkEnd <= chunkStart || (chunkEnd - chunkStart > this.maxChunkSize) ||\n chunkStart > Integer.MAX_VALUE) {\n throw new IOException(\"ChunkStart out of range\");\n }\n\n byte[] temp = Arrays.copyOfRange(this.fileContent, (int) chunkStart,\n (int) (chunkEnd - chunkStart));\n\n\n SignatureObject signature = new SignatureObject();\n signature.signatureData = new BinaryItem(ByteUtil.toListOfByte(temp));\n\n// RDCSignatureGenerator generator = new RDCSignatureGenerator();\n// signatureBytes = generator.ComputeHash(temp);\n//\n// SignatureObject signature = new SignatureObject();\n// signature.SignatureData = new BinaryItem(signatureBytes);\n\n return new LeafNodeObject.IntermediateNodeObjectBuilder().Build(temp, signature);\n }",
"public MediaPropertiesChunk(DataInputStream f) throws Exception {\n\t\tstreamId = f.readShort();\n\t\tmaxBitrate = f.readInt();\n\t\taverageBitrate = f.readInt();\n\t\tmaxDataPacketSize = f.readInt();\n\t\taverageDataPacketSize = f.readInt();\n\t\tstreamStartInMs = f.readInt();\n\t\tprerollInMs = f.readInt();\n\t\tduration = f.readInt();\n//\t\tbyte Size of stream description string\n\t\tstreamDescription = Utils.readString(f, f.read());\n//\t\tbyte Size of stream mime type string\n\t\tmimeType = Utils.readString(f, f.read());\n\t\t\n\t\tint dataLength = (int)f.readInt();\n\t\tbyte [] b = new byte[dataLength];\n\t\tf.readFully(b);\n\t\t\n\t\tswitch(mimeType) {\n\t\t\tcase \"audio/x-pn-realaudio\" :\n\t\t\t\taudioInfo = new AudioInfo(new DataInputStream(new ByteArrayInputStream(b)));\n\t\t\t\tbreak;\n\t\t\tcase \"logical-fileinfo\":\n\t\t\t\tlogicStreamInfo = new LogicalStreamInfo(new DataInputStream(new ByteArrayInputStream(b)));\n\t\t\t\tbreak;\n\t\t\tcase \"audio/X-MP3-draft-00\": /*dataLength must equals 0. In this case we do not have any codec info */ break;\n\t\t\tcase \"audio/x-ralf-mpeg4\" : \n\t\t\tcase \"audio/x-ralf-mpeg4-generic\" :\n\t\t\t\tlosslessAudioInfo = new LosslessAudioInfo(new DataInputStream(new ByteArrayInputStream(b)));\n\t\t\t\tbreak;\n\t\t\tcase \"audio/x-pn-multirate-realaudio\" : /* ASM-compatible RealAudio stream. Not supported */\t\t\t\t\n\t\t\tdefault: throw new UnsupportedException(\"Unknow mime : \" + mimeType); \n\t\t}\n\t}",
"Long getCompressedContentLength(String contentEncoding);",
"public byte[] getContent();",
"@java.lang.Override\n public int getChunksCount() {\n return chunks_.size();\n }",
"@NotNull\n int getTrustedChunks();",
"public final byte[] bytes() throws IOException {\n long contentLength = contentLength();\n if (contentLength <= 2147483647L) {\n C3580e source = source();\n try {\n byte[] G = source.mo19680G();\n C3500c.m11649a((Closeable) source);\n if (contentLength == -1 || contentLength == ((long) G.length)) {\n return G;\n }\n throw new IOException(\"Content-Length (\" + contentLength + \") and stream length (\" + G.length + \") disagree\");\n } catch (Throwable th) {\n C3500c.m11649a((Closeable) source);\n throw th;\n }\n } else {\n throw new IOException(\"Cannot buffer entire body for content length: \" + contentLength);\n }\n }",
"ChunkCachingProtocol.Factory getChunkCachingProtocolFactory();",
"public boolean putChunk(String ChunkHandle, byte[] payload, int offset) {\n\t\t\n\t\tif (offset + payload.length > ChunkServer.ChunkSize) {\n\t\t\tSystem.out.println(\"The chunk should write should be within range of the file, invalid\");\n\t\t\treturn false; \n\t\t} \n\t\ttry {\n\t\t\t// request \n\t\t\tbyte[] handle = ChunkHandle.getBytes();\n\t\t\t// write payload size \n\t\t\toos.writeInt(4 + 4 + 4 + 4 + 4 + handle.length + payload.length);\n\t\t\t// write command identifier \n\t\t\toos.writeInt(ChunkServer.PutChunk);\n\t\t\t// write chunkHandle size \n\t\t\toos.writeInt(handle.length);\n\t\t\t// write chunk handle\n\t\t\toos.write(handle);\n\t\t\t// write payload size s\n\t\t\toos.writeInt(payload.length);\n\t\t\t// write payload \n\t\t\toos.write(payload);\n\t\t\t// write offset\n\t\t\toos.writeInt(offset);\n\t\t\toos.flush();\n\t\t\t// parse response \n\t\t\tint resultSize = getPayloadInt(ois);\n\t\t\tint result = getPayloadInt(ois);\n\t\t\t\n\t\t\tif (result == 0) {\n\t\t\t\treturn false; \n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"success put chunk\");\n\t\t\t\treturn true; \n\t\t\t}\n\t\t\t\n\t\t} catch (IOException ioe) {\n\t\t\tSystem.out.println(ioe.getMessage());\n\t\t}\n\t\t\n\t\treturn false; \n\t}",
"private int readCompressedChunk(byte[] compressedBuffer) throws IOException {\n if (buffer.remaining() < 1) {\n readBytes(1);\n }\n byte typeId = buffer.get();\n if (typeId == ModelType.RESERVED_EOF.getId()) {\n return 0;\n } else if (typeId != ModelType.RESERVED_COMPRESSED_BLOCK.getId()) {\n throw new IOException(\"Inalid file format, expected compressed block\");\n }\n \n // read the compressed chunk size\n if (buffer.remaining() < 4) {\n readBytes(4);\n }\n int size = buffer.getInt();\n \n int needed = size - buffer.remaining();\n //log.info(\"Reading {}b chunk, {} needed\", size, needed);\n if (needed > 0) {\n readBytes(needed);\n }\n \n buffer.get(compressedBuffer, 0, size);\n return size;\n }",
"List<DownloadChunk> mo54445j(int i);",
"public int getChunkSize () {\n return this.CHUNK_SIZE;\n }"
] |
[
"0.6174796",
"0.6129815",
"0.6011642",
"0.5922859",
"0.5871005",
"0.58416456",
"0.5795255",
"0.57829803",
"0.57714087",
"0.57714087",
"0.57714087",
"0.57714087",
"0.574635",
"0.5725301",
"0.5706738",
"0.5676784",
"0.56388044",
"0.56355834",
"0.56355834",
"0.56271094",
"0.5617994",
"0.5612333",
"0.5574604",
"0.5572072",
"0.5569079",
"0.55580616",
"0.554858",
"0.5544567",
"0.55366844",
"0.55366844",
"0.55366844",
"0.55366844",
"0.55366844",
"0.55366844",
"0.5525879",
"0.55107325",
"0.5485724",
"0.548011",
"0.54647183",
"0.54574025",
"0.54550576",
"0.5443552",
"0.5443552",
"0.5441694",
"0.54333216",
"0.543264",
"0.5427866",
"0.5423226",
"0.5393814",
"0.5393814",
"0.53914654",
"0.53914654",
"0.53914654",
"0.53914654",
"0.53914654",
"0.53914654",
"0.5388098",
"0.5388098",
"0.5383383",
"0.5383235",
"0.5383235",
"0.5383235",
"0.5383235",
"0.5382786",
"0.536691",
"0.5347638",
"0.5345185",
"0.5340127",
"0.53383964",
"0.5334456",
"0.5329787",
"0.5329787",
"0.5322776",
"0.5322776",
"0.53191274",
"0.53145206",
"0.5314317",
"0.53084403",
"0.53045875",
"0.53045875",
"0.53015316",
"0.5299329",
"0.5299329",
"0.5299329",
"0.5299329",
"0.5299329",
"0.5299329",
"0.5284772",
"0.5284317",
"0.5248206",
"0.52349603",
"0.5231446",
"0.5230527",
"0.5219552",
"0.52026755",
"0.5202477",
"0.51858234",
"0.51844186",
"0.51716757",
"0.51709723",
"0.5167"
] |
0.0
|
-1
|
Chunk content (1024 bytes or less) bytes data = 3;
|
public Builder setData(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
data_ = value;
onChanged();
return this;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private void readHttpDataChunkByChunk(HttpPostRequestDecoder decoder) {\n try {\n while (decoder.hasNext()) {\n InterfaceHttpData data = decoder.next();\n if (data != null) {\n // check if current HttpData is a FileUpload and previously set as partial\n if (partialContent == data) {\n partialContent = null;\n }\n try {\n // new value\n writeHttpData(data);\n } finally {\n data.release();\n }\n }\n }\n // Check partial decoding for a FileUpload\n InterfaceHttpData data = decoder.currentPartialHttpData();\n if (data != null) {\n if (partialContent == null) {\n partialContent = (HttpData) data;\n }\n }\n } catch (HttpPostRequestDecoder.EndOfDataDecoderException e1) {\n // end\n }\n }",
"DataChunk nextChunk() throws RemoteException;",
"private int getChunk(byte [] buffer, int offset, String chunk) {\r\n\t\ttry {\r\n\t\t\tfor (;;) {\r\n\t\t\t\tint dataLenght = getInt(buffer, offset);\r\n\t\t\t\tif (compareBytes(buffer, offset+4, chunk)) {\r\n\t\t\t\t\treturn offset;\r\n\t\t\t\t} else {\r\n\t\t\t\t\toffset += 4 + 4 + dataLenght + 4;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception e) {};\r\n\t\treturn -1;\r\n\t}",
"entities.Torrent.ChunkResponse getChunkResponse();",
"void sendChunkRequest(int chunkX, int chunkY);",
"private static boolean parseChunk(final FileChannel fc,final long[] offset,final int depth) throws IOException {\n\t Log.d(TAG, \"entering parseChunk \"+ offset[0] +\"/\"+ depth);\n\n\t long data_offset = offset[0];\n\n long chunk_size = Util.readUInt(fc, data_offset); \n int chunk_type = Util.readInt(fc, data_offset+4);\n\n Log.v(TAG, chunk_type + \" \" + chunk_size);\n char sChunk[] = new char[4];\n Util.MakeFourCCString(chunk_type, sChunk);\n Log.v(TAG, String.format(\"chunk %s\", String.valueOf(sChunk)));\n\n data_offset += 8;\n // long chunk_data_size = offset[0] + chunk_size - data_offset;\n\n if (chunk_size == 1) {\n\n chunk_size = Util.readLong(fc, data_offset);\n\n data_offset += 8;\n\n if (chunk_size < 16) {\n Log.e(TAG,\" The smallest valid chunk is 16 bytes long in this case.\");\n return false;\n }\n\n } else if (chunk_size < 8) {\n Log.e(TAG,\"The smallest valid chunk is 8 bytes long.\");\n return false;\n }\n\n Log.v(TAG, String.format(\"parsing chunk %s at depth %d\",\n String.valueOf(sChunk), depth));\n\n if(chunk_type == Util.FOURCC('m', 'o', 'o', 'v') || chunk_type == Util.FOURCC('u', 'd', 't', 'a')) {\n Log.d(TAG, String.valueOf(sChunk));\n\n long stop_offset = offset[0] + chunk_size;\n offset[0] = data_offset;\n while (offset[0] < stop_offset) {\n boolean err = parseChunk(fc,offset, depth + 1);\n if (!err) {\n return err;\n }\n }\n\n if (offset[0] != stop_offset) {\n return false;\n }\n\n if (chunk_type == Util.FOURCC('m', 'o', 'o', 'v') ) {\n return true;\n }\n }\n else if(chunk_type == Util.FOURCC('h', 't', 'c', 'b')) {\n Log.d(TAG,\"Found Htc MetaData\");\n sHtcTableOffset = data_offset;\n Log.d(TAG,\"sHtcTableOffset = \" + sHtcTableOffset );\n parseHtcMetaData(fc,data_offset,chunk_size);\n Log.d(TAG,\"Parse Htc MetaData done\");\n offset[0] += chunk_size;\n } else if (chunk_type == Util.FOURCC('_', 'h', 't', 'c')\n || chunk_type == Util.FOURCC('d', 't', 'a', 'h')) {\n Log.d(TAG, \"Found HTC box\");\n offset[0] += 8;\n parseChunk(fc, offset, depth + 1);\n } else {\n offset[0] += chunk_size;\n }\n return true;\n }",
"int getChunkSize();",
"@Test\n public void testChunkedOutputToChunkInput() throws Exception {\n final ChunkedInput<String> input = target().path(\"test\").request().get(new javax.ws.rs.core.GenericType<ChunkedInput<String>>() {});\n int counter = 0;\n String chunk;\n while ((chunk = input.read()) != null) {\n Assert.assertEquals((\"Unexpected value of chunk \" + counter), \"test\", chunk);\n counter++;\n } \n Assert.assertEquals(\"Unexpected numbed of received chunks.\", 3, counter);\n }",
"long getChunkSize();",
"long getChunkSize();",
"long getChunkSize();",
"long getChunkSize();",
"void handleChunk(char[] buff, int length) {\n\t\tint newlinePos = -1;\n\t\tfor (int pos = 0; pos < length; pos++) {\n\t\t\tif (buff[pos] == '\\n') {\n\t\t\t\tnewlinePos = pos;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (newlinePos > -1) {\n\t\t\tloaded.append(buff, 0, newlinePos);\n\t\t\tendLine();\n\t\t\tloaded.append(buff, newlinePos + 1, length - newlinePos - 1);\n\t\t} else {\n\t\t\tloaded.append(buff, 0, length);\n\t\t}\n\t}",
"public SmallChunkData(Chunk c){\n\t\t\tx = c.getX();\n\t\t\tz = c.getZ();\n\t\t\tworldName = c.getWorld().getName();\n\t\t\tfor(int x = 0; x < 16; x ++){\n\t\t\t\tfor(int z = 0; z < 16; z ++){\n\t\t\t\t\tbiomes[x][z] = c.getBlock(x, 0, z).getBiome();\n\t\t\t\t}\n\t\t\t}\n\t\t\t/*for(int y = 0; y < 256; y ++){\n\t\t\t\tfor(int x = 0; x < 16; x ++){\n\t\t\t\t\tfor(int z = 0; z < 16; z ++){\n\t\t\t\t\t\tdata[y][x][z] = new MaterialData(c.getBlock(x, y, z).getType(), c.getBlock(x, y, z).getData());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}*/\n\t\t}",
"public int getChunkCount () {\n return (this.getTagCount()>>BITS_TO_SHIFT_FOR_CHUNK) + 1;\n }",
"byte[] getContent() throws IOException;",
"void mo54417a(DownloadChunk downloadChunk);",
"public int getChunkNo() {\n return chunkNo;\n }",
"public int getChunkNo() {\n return chunkNo;\n }",
"byte[] getContent();",
"byte[] getByteContent() throws IOException;",
"boolean canRequestChunk();",
"public int getChunkWidth() {\n return 256;\n }",
"entities.Torrent.ChunkRequest getChunkRequest();",
"public boolean isChunked() {\n/* 101 */ return this.chunked;\n/* */ }",
"public void writeChunk(String id, byte[] data) throws IOException {\n byte[] identifier = id.getBytes(\"US-ASCII\");\n if (identifier.length != 4) {\n throw new IllegalArgumentException(\"ID length must match 4!\");\n }\n writeInt(data.length);\n write(identifier);\n write(data);\n CRC32 crc = new CRC32();\n crc.update(identifier);\n crc.update(data);\n writeInt((int) (crc.getValue() & 0xFFFFFFFFL));\n crc.reset();\n }",
"public final ByteBlock getData() { return data; }",
"public void data(byte[] data, int count);",
"int getChunkId();",
"int getChunkId();",
"int getChunkId();",
"int getChunkId();",
"int getChunkId();",
"int getChunkId();",
"private void onReceivedResponseData(org.apache.http.HttpResponse r14, com.tencent.tmassistantsdk.protocol.jce.DownloadChunkLogInfo r15) {\n /*\n r13 = this;\n r2 = 705; // 0x2c1 float:9.88E-43 double:3.483E-321;\n r6 = 206; // 0xce float:2.89E-43 double:1.02E-321;\n r7 = 0;\n r12 = 0;\n r0 = r14.getEntity();\n r1 = r13.verifyTotalLen(r14, r0);\n if (r1 != 0) goto L_0x0022;\n L_0x0010:\n r0 = \"_DownloadTask\";\n r1 = \"verifyTotalLen false\";\n com.tencent.tmassistantsdk.util.TMLog.i(r0, r1);\n r0 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\n r1 = \"totalLen is not match the requestSize\";\n r0.<init>(r2, r1);\n throw r0;\n L_0x0022:\n r1 = r13.mDownloadInfo;\n r2 = r1.getTotalSize();\n r4 = 0;\n r1 = (r2 > r4 ? 1 : (r2 == r4 ? 0 : -1));\n if (r1 != 0) goto L_0x015c;\n L_0x002e:\n r1 = r14.getStatusLine();\n r1 = r1.getStatusCode();\n r2 = 200; // 0xc8 float:2.8E-43 double:9.9E-322;\n if (r1 != r2) goto L_0x00f9;\n L_0x003a:\n r1 = r13.mDownloadInfo;\n r2 = r0.getContentLength();\n r1.setTotalSize(r2);\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"HTTPCode 200, totalBytes:\";\n r2.<init>(r3);\n r3 = r13.mDownloadInfo;\n r4 = r3.getTotalSize();\n r2 = r2.append(r4);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.i(r1, r2);\n L_0x005f:\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"first start downloadinfoTotalSize = \";\n r2.<init>(r3);\n r3 = r13.mDownloadInfo;\n r4 = r3.getTotalSize();\n r2 = r2.append(r4);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r2);\n r1 = \"content-range\";\n r1 = r14.getFirstHeader(r1);\n if (r1 == 0) goto L_0x00a0;\n L_0x0084:\n r1 = r1.getValue();\n r1 = com.tencent.tmassistantsdk.downloadservice.ByteRange.parseContentRange(r1);\n r2 = r1.getStart();\n r15.responseRangePosition = r2;\n r2 = r1.getEnd();\n r4 = r1.getStart();\n r2 = r2 - r4;\n r4 = 1;\n r2 = r2 + r4;\n r15.responseRangeLength = r2;\n L_0x00a0:\n r1 = r13.mDownloadInfo;\n r2 = r1.getTotalSize();\n r15.responseContentLength = r2;\n L_0x00a8:\n r1 = r13.mSaveFile;\n if (r1 != 0) goto L_0x00bb;\n L_0x00ac:\n r1 = new com.tencent.tmassistantsdk.storage.TMAssistantFile;\n r2 = r13.mDownloadInfo;\n r2 = r2.mTempFileName;\n r3 = r13.mDownloadInfo;\n r3 = r3.mFileName;\n r1.<init>(r2, r3);\n r13.mSaveFile = r1;\n L_0x00bb:\n r2 = 0;\n r10 = r0.getContent();\t Catch:{ SocketException -> 0x0406 }\n r0 = \"_DownloadTask\";\n r1 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x0406 }\n r4 = \"start write file, fileName: \";\n r1.<init>(r4);\t Catch:{ SocketException -> 0x0406 }\n r4 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x0406 }\n r4 = r4.mFileName;\t Catch:{ SocketException -> 0x0406 }\n r1 = r1.append(r4);\t Catch:{ SocketException -> 0x0406 }\n r1 = r1.toString();\t Catch:{ SocketException -> 0x0406 }\n com.tencent.tmassistantsdk.util.TMLog.i(r0, r1);\t Catch:{ SocketException -> 0x0406 }\n r8 = r2;\n L_0x00dc:\n r0 = r13.mRecvBuf;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = r10.read(r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r3 <= 0) goto L_0x00eb;\n L_0x00e4:\n r0 = r13.mStopTask;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 == 0) goto L_0x0262;\n L_0x00e8:\n r10.close();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x00eb:\n r0 = r13.mSaveFile;\n if (r0 == 0) goto L_0x00f6;\n L_0x00ef:\n r0 = r13.mSaveFile;\n r0.close();\n r13.mSaveFile = r12;\n L_0x00f6:\n r15.receiveDataSize = r8;\n return;\n L_0x00f9:\n r1 = r14.getStatusLine();\n r1 = r1.getStatusCode();\n if (r1 != r6) goto L_0x0135;\n L_0x0103:\n r1 = \"content-range\";\n r1 = r14.getFirstHeader(r1);\n r2 = r13.mDownloadInfo;\n r1 = r1.getValue();\n r4 = com.tencent.tmassistantsdk.downloadservice.ByteRange.getTotalSize(r1);\n r2.setTotalSize(r4);\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"HTTPCode 206, totalBytes:\";\n r2.<init>(r3);\n r3 = r13.mDownloadInfo;\n r4 = r3.getTotalSize();\n r2 = r2.append(r4);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.i(r1, r2);\n goto L_0x005f;\n L_0x0135:\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"statusCode=\";\n r2.<init>(r3);\n r3 = r14.getStatusLine();\n r3 = r3.getStatusCode();\n r2 = r2.append(r3);\n r3 = \" onReceivedResponseData error.\";\n r2 = r2.append(r3);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r2);\n goto L_0x005f;\n L_0x015c:\n r1 = r14.getStatusLine();\n r1 = r1.getStatusCode();\n if (r1 != r6) goto L_0x00a8;\n L_0x0166:\n r1 = \"content-range\";\n r1 = r14.getFirstHeader(r1);\t Catch:{ Throwable -> 0x0214 }\n r2 = r1.getValue();\t Catch:{ Throwable -> 0x0214 }\n r2 = com.tencent.tmassistantsdk.downloadservice.ByteRange.parseContentRange(r2);\t Catch:{ Throwable -> 0x0214 }\n r3 = r1.getValue();\t Catch:{ Throwable -> 0x0214 }\n r4 = com.tencent.tmassistantsdk.downloadservice.ByteRange.getTotalSize(r3);\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r15.responseRangePosition = r8;\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getEnd();\t Catch:{ Throwable -> 0x0214 }\n r10 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r8 = r8 - r10;\n r10 = 1;\n r8 = r8 + r10;\n r15.responseRangeLength = r8;\t Catch:{ Throwable -> 0x0214 }\n r15.responseContentLength = r4;\t Catch:{ Throwable -> 0x0214 }\n r3 = \"_DownloadTask\";\n r6 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r8 = \"totalSize = \";\n r6.<init>(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r4);\t Catch:{ Throwable -> 0x0214 }\n r8 = \" downloadinfoTotalSize = \";\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r8 = r8.getTotalSize();\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.w(r3, r6);\t Catch:{ Throwable -> 0x0214 }\n r3 = \"_DownloadTask\";\n r6 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r8 = \"mReceivedBytes = \";\n r6.<init>(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r8 = r8.mReceivedBytes;\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.i(r3, r6);\t Catch:{ Throwable -> 0x0214 }\n r3 = \"_DownloadTask\";\n r6 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r8 = \"start = \";\n r6.<init>(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = \", end = \";\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getEnd();\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.i(r3, r6);\t Catch:{ Throwable -> 0x0214 }\n r2 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r6 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r8 = r6.mReceivedBytes;\t Catch:{ Throwable -> 0x0214 }\n r2 = (r2 > r8 ? 1 : (r2 == r8 ? 0 : -1));\n if (r2 == 0) goto L_0x022a;\n L_0x0209:\n r0 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ Throwable -> 0x0214 }\n r1 = 706; // 0x2c2 float:9.9E-43 double:3.49E-321;\n r2 = \"The received size is not equal with ByteRange.\";\n r0.<init>(r1, r2);\t Catch:{ Throwable -> 0x0214 }\n throw r0;\t Catch:{ Throwable -> 0x0214 }\n L_0x0214:\n r0 = move-exception;\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ all -> 0x021d }\n r2 = 704; // 0x2c0 float:9.87E-43 double:3.48E-321;\n r1.<init>(r2, r0);\t Catch:{ all -> 0x021d }\n throw r1;\t Catch:{ all -> 0x021d }\n L_0x021d:\n r0 = move-exception;\n r1 = r13.mSaveFile;\n if (r1 == 0) goto L_0x0229;\n L_0x0222:\n r1 = r13.mSaveFile;\n r1.close();\n r13.mSaveFile = r12;\n L_0x0229:\n throw r0;\n L_0x022a:\n r2 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r2 = r2.getTotalSize();\t Catch:{ Throwable -> 0x0214 }\n r2 = (r4 > r2 ? 1 : (r4 == r2 ? 0 : -1));\n if (r2 == 0) goto L_0x023f;\n L_0x0234:\n r0 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ Throwable -> 0x0214 }\n r1 = 705; // 0x2c1 float:9.88E-43 double:3.483E-321;\n r2 = \"The total size is not equal with ByteRange.\";\n r0.<init>(r1, r2);\t Catch:{ Throwable -> 0x0214 }\n throw r0;\t Catch:{ Throwable -> 0x0214 }\n L_0x023f:\n r2 = \"_DownloadTask\";\n r3 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r4 = \"response ByteRange: \";\n r3.<init>(r4);\t Catch:{ Throwable -> 0x0214 }\n r1 = r3.append(r1);\t Catch:{ Throwable -> 0x0214 }\n r1 = r1.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.d(r2, r1);\t Catch:{ Throwable -> 0x0214 }\n r1 = r13.mSaveFile;\n if (r1 == 0) goto L_0x00a8;\n L_0x0259:\n r1 = r13.mSaveFile;\n r1.close();\n r13.mSaveFile = r12;\n goto L_0x00a8;\n L_0x0262:\n r0 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = (long) r3;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0 + r4;\n r2 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r2.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = (r0 > r4 ? 1 : (r0 == r4 ? 0 : -1));\n if (r2 > 0) goto L_0x03be;\n L_0x0272:\n r2 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r2.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = (r0 > r4 ? 1 : (r0 == r4 ? 0 : -1));\n if (r0 != 0) goto L_0x0315;\n L_0x027c:\n r6 = 1;\n L_0x027d:\n r0 = r13.mSaveFile;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mRecvBuf;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 0;\n r4 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r4.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.write(r1, r2, r3, r4, r6);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 != 0) goto L_0x03b4;\n L_0x028c:\n r0 = com.tencent.tmassistantsdk.storage.TMAssistantFile.getSavePathRootDir();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = com.tencent.tmassistantsdk.downloadservice.DownloadHelper.isSpaceEnough(r0, r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 == 0) goto L_0x0367;\n L_0x029c:\n r0 = com.tencent.tmassistantsdk.storage.TMAssistantFile.isSDCardExistAndCanWrite();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 == 0) goto L_0x0318;\n L_0x02a2:\n r0 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"write file failed, fileName: \";\n r0.<init>(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r1.mFileName;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" receivedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" readedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" totalSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"_DownloadTask\";\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 703; // 0x2bf float:9.85E-43 double:3.473E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x02ef:\n r0 = move-exception;\n r2 = r8;\n L_0x02f1:\n r1 = \"_DownloadTask\";\n r4 = \"\";\n r5 = 0;\n r5 = new java.lang.Object[r5];\t Catch:{ all -> 0x0305 }\n com.tencent.mm.sdk.platformtools.w.printErrStackTrace(r1, r0, r4, r5);\t Catch:{ all -> 0x0305 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ all -> 0x0305 }\n r4 = 605; // 0x25d float:8.48E-43 double:2.99E-321;\n r1.<init>(r4, r0);\t Catch:{ all -> 0x0305 }\n throw r1;\t Catch:{ all -> 0x0305 }\n L_0x0305:\n r0 = move-exception;\n r8 = r2;\n L_0x0307:\n r1 = r13.mSaveFile;\n if (r1 == 0) goto L_0x0312;\n L_0x030b:\n r1 = r13.mSaveFile;\n r1.close();\n r13.mSaveFile = r12;\n L_0x0312:\n r15.receiveDataSize = r8;\n throw r0;\n L_0x0315:\n r6 = r7;\n goto L_0x027d;\n L_0x0318:\n r0 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"write file failed, no sdCard! fileName: \";\n r0.<init>(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r1.mFileName;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" receivedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" readedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" totalSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"_DownloadTask\";\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 711; // 0x2c7 float:9.96E-43 double:3.513E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x0365:\n r0 = move-exception;\n goto L_0x0307;\n L_0x0367:\n r0 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"write file failed, no enough space! fileName: \";\n r0.<init>(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r1.mFileName;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" receivedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" readedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" totalSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"_DownloadTask\";\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 710; // 0x2c6 float:9.95E-43 double:3.51E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x03b4:\n r0 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = (long) r3;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0.updateReceivedSize(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = (long) r3;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r8 = r8 + r0;\n goto L_0x00dc;\n L_0x03be:\n r0 = \"write file size too long.\";\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = \"write file size too long.\\r\\nreadedLen: \";\n r2.<init>(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = \"\\r\\nreceivedSize: \";\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r3.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = \"\\r\\ntotalSize: \";\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r3.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = \"\\r\\nisTheEndData: false\";\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 703; // 0x2bf float:9.85E-43 double:3.473E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x0406:\n r0 = move-exception;\n goto L_0x02f1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.tmassistantsdk.downloadservice.DownloadTask.onReceivedResponseData(org.apache.http.HttpResponse, com.tencent.tmassistantsdk.protocol.jce.DownloadChunkLogInfo):void\");\n }",
"private byte[] readFixedLengthContent(ByteBuf in) throws UnsupportedEncodingException {\n if (in.readableBytes() < 2) {\n return new byte[]{};\n }\n int strLen = in.readableBytes();\n// if (in.readableBytes() < strLen) {\n// return null;\n// }\n byte[] strRaw = new byte[strLen];\n in.readBytes(strRaw);\n\n return strRaw;\n }",
"@Override\n public void readData(DataKey dataKey) {\n this.chunk = getChunkFromData(dataKey);\n }",
"entities.Torrent.ChunkResponseOrBuilder getChunkResponseOrBuilder();",
"public int getChunkHeight() {\n return 256;\n }",
"public void sendChunk(String fileName,ObjectOutputStream out)\n {\n FileInputStream fInput;\n BufferedInputStream bufInput;\n byte[] byteToSend = new byte[chunkSize];\n try\n {\n fInput = new FileInputStream(fileName);\n bufInput = new BufferedInputStream(fInput);\n int b;\n int i=0;\n b = bufInput.read(byteToSend,0,chunkSize);\n out.write(byteToSend,0,chunkSize);\n out.flush();\n bufInput.close();\n }\n catch(FileNotFoundException ex)\n {\n System.out.println(\"File Chunk Not found Exception: Some chunk missing.\");\n }\n catch(IOException ex)\n {\n System.out.println(\"IOException while reading from the chunk file.\");\n }\n }",
"boolean hasChunkResponse();",
"com.google.protobuf.ByteString getContent();",
"com.google.protobuf.ByteString getContent();",
"edu.usfca.cs.dfs.StorageMessages.StoreChunkResponse getStoreChunkResponse();",
"public Object getContent() {\n/* 112 */ return this.buf;\n/* */ }",
"edu.usfca.cs.dfs.StorageMessages.StoreChunk getStoreChunk();",
"@Override\n\tpublic void open(Context context, Chunk data) {\n\t}",
"entities.Torrent.ChunkInfo getChunks(int index);",
"int getChunkIndex();",
"int getChunkIndex();",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }",
"@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }",
"byte getBlockData();",
"byte[] getData();",
"byte[] getData();",
"byte[] getData();",
"byte[] getData();",
"boolean hasChunkRequest();",
"@Override\n\t\t\t public void start(ByteBuffer data) throws Exception {\n\t\t\t if (self.state.lastFragment == false) {\n\t\t\t self.error(\"fragmented pong is not supported\", 1002);\n\t\t\t return;\n\t\t\t }\n\n\t\t\t // decode length\n\t\t\t int firstLength = data.get(1) & 0x7f;\n\t\t\t if (firstLength < 126) {\n\t\t\t ///opcodes['10'].getData.call(self, firstLength);\n\t\t\t \t getData(firstLength);\n\t\t\t }\n\t\t\t else {\n\t\t\t self.error(\"control frames cannot have more than 125 bytes of data\", 1002);\n\t\t\t }\n\t\t\t }",
"private boolean sendChunk() throws IOException {\n // allocate Buffer\n final Buffer buffer = mm.allocate(chunkSize);\n // mark it available for disposal after content is written\n buffer.allowBufferDispose(true);\n\n // read file to the Buffer\n final int justReadBytes = (int) Buffers.readFromFileChannel(\n fileChannel, buffer);\n \n if (justReadBytes <= 0) {\n complete();\n return false;\n }\n\n // prepare buffer to be written\n buffer.trim();\n\n // write the Buffer\n outputStream.write(buffer);\n size -= justReadBytes;\n\n // check the remaining size here to avoid extra onWritePossible() invocation\n if (size <= 0) {\n complete();\n return false;\n }\n\n return true;\n }",
"public byte[] getChunk(String ChunkHandle, int offset, int NumberOfBytes) {\n\t\t\n\t\tbyte[] payload = null;\n\t\t\n\t\ttry {\n\t\t\t// request \n\t\t\tbyte[] handle = ChunkHandle.getBytes();\n\t\t\t// write payload size (4-command + 4-handle-length + actual handle)\n\t\t\toos.writeInt(4 + 4 + 4 + 4 + handle.length);\n\t\t\t// write command identifier \n\t\t\toos.writeInt(ChunkServer.GetChunk);\n\t\t\t// write chunkHandle length \n\t\t\toos.writeInt(handle.length);\n\t\t\t// write chunk handle\n\t\t\toos.write(handle);\n\t\t\t// write offset \n\t\t\toos.writeInt(offset);\n\t\t\t// write number of bytes\n\t\t\toos.writeInt(NumberOfBytes);\n\t\t\toos.flush();\n\t\t\t// parse response \n\t\t\tint payloadSize = getPayloadInt(ois);\n\t\t\tSystem.out.println(\"Recieving this size: \" + payloadSize);\n\t\t\tpayload = getPayload(ois, payloadSize);\n\t\t\tSystem.out.print(\"received payload in client\");\n\t\t\t\n\t\t\treturn payload; \n\t\t\t\n\t\t} catch (IOException ioe) {\n\t\t\tSystem.out.println(ioe.getMessage());\n\t\t}\n\t\t\n\t\treturn payload; \n\t\t\n\t}",
"@Test\n public void testStreamParsePubDev3401() throws IOException {\n final int chunkSize = 64 * 1024;\n ParseSetupV3 ps = new ParseSetupV3();\n ps.parse_type = \"CSV\";\n ps.chunk_size = chunkSize;\n // mock Parser\n final List<Integer> pcCalls = new LinkedList<>();\n Parser p = new Parser(new ParseSetup(ps), null) {\n @Override protected ParseWriter parseChunk(int cidx, ParseReader din, ParseWriter dout) {\n pcCalls.add(cidx);\n byte[] data = din.getChunkData(cidx);\n assert cidx <= 3;\n assert ((data != null) && (data.length == chunkSize)) || (cidx == 3);\n return null;\n }\n };\n // mock source InputStream, only used for \"back-channel\" chunk index signalling\n final Queue<Integer> cidxs = new LinkedList<>(Arrays.asList(1, 2, 3, 4));\n InputStream bvs = new InputStream() {\n @Override public int read() throws IOException { throw new UnsupportedOperationException(); }\n @Override public int read(byte[] b, int off, int len) throws IOException {\n assert b == null;\n return cidxs.remove();\n }\n };\n // mock StreamParseWriter\n MockStreamParseWriter w = new MockStreamParseWriter(chunkSize);\n // Vec made of 3 chunks\n Key k = FVecFactory.makeByteVec(\n RandomStringUtils.randomAscii(chunkSize),\n RandomStringUtils.randomAscii(chunkSize),\n RandomStringUtils.randomAscii(chunkSize)\n );\n try {\n ByteVec v = DKV.getGet(k);\n p.streamParseZip(v.openStream(null), w, bvs);\n assertEquals(\"Expected calls to parseChunk()\", Arrays.asList(0, 1, 2, 3), pcCalls);\n assertEquals(\"Expected calls to nextChunk()\", Arrays.asList(0, 1, 2), w._nchks);\n } finally {\n k.remove();\n }\n }",
"public String initializeChunk() {\n\t\ttry {\n\t\t\t// request \n\t\t\t// write payload size (2 ints, 4 + 4)\n\t\t\toos.writeInt(8);\n\t\t\t// write command identifier \n\t\t\toos.writeInt(ChunkServer.InitializeChunk);\n\t\t\toos.flush();\n\t\t\t// parse response \n\t\t\tint chunkHandleSize = getPayloadInt(ois);\n\t\t\t// reduce size by payload size int \n\t\t\tchunkHandleSize -= 4; \n\t\t\tbyte[] handle = getPayload(ois, chunkHandleSize);\n\t\t\treturn (new String(handle).toString());\n\t\t\t\n\t\t} catch (IOException ioe) {\n\t\t\tSystem.out.println(\"ioe in initialize chunk \" + ioe.getMessage());\n\t\t}\n\t\treturn null; \n\t}",
"com.google.protobuf.ByteString getContentBytes();",
"@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }",
"@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }",
"int getChunksCount();",
"int getChunksCount();",
"public Chunk loadChunk(int x, int p_73158_2_)\n\t{\n\t\treturn this.provideChunk(x, p_73158_2_);\n\t}",
"String getChunkType();",
"public boolean sendChunkChange ( Location loc , int sx , int sy , int sz , byte[] data ) {\n\t\treturn invokeSafe ( \"sendChunkChange\" , loc , sx , sy , sz , data );\n\t}",
"public FileChunkReference getFileData() {\n return fileData;\n }",
"com.google.protobuf.ByteString getData(int index);",
"com.google.protobuf.ByteString getData(int index);",
"public void readAllChunks(EndPoint endpoint) throws IOException, Pausable {\n IntList chunkRanges = new IntList(); // alternate numbers in this list refer to the start and end offsets of chunks.\n do {\n int n = readLine(endpoint); // read chunk size text into buffer\n int beg = iread;\n int size = parseChunkSize(buffer, iread - n, iread); // Parse size in hex, ignore extension\n if (size == 0)\n break;\n // If the chunk has not already been read in, do so\n fill(endpoint, iread, size+2 /*chunksize + CRLF*/);\n // record chunk start and end\n chunkRanges.add(beg); \n chunkRanges.add(beg + size); // without the CRLF\n iread += size + 2; // for the next round.\n } while (true);\n\n // / consolidate all chunkRanges\n if (chunkRanges.numElements == 0) {\n contentLength = 0;\n return;\n }\n contentOffset = chunkRanges.get(0); // first chunk's beginning\n int endOfLastChunk = chunkRanges.get(1); // first chunk's end\n\n byte[] bufa = buffer.array();\n for (int i = 2; i < chunkRanges.numElements; i += 2) {\n int beg = chunkRanges.get(i);\n int chunkSize = chunkRanges.get(i + 1) - beg;\n System.arraycopy(bufa, beg, bufa, endOfLastChunk, chunkSize);\n endOfLastChunk += chunkSize;\n }\n // TODO move all trailer stuff up\n contentLength = endOfLastChunk - contentOffset;\n \n // At this point, the contentOffset and contentLen give the entire content \n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkSize() {\n return chunkSize;\n }",
"public void setChunked(boolean b) {\n/* 178 */ this.chunked = b;\n/* */ }",
"private LeafNodeObject getChunk(long chunkStart, long chunkEnd) throws IOException {\n if (chunkEnd <= chunkStart || (chunkEnd - chunkStart > this.maxChunkSize) ||\n chunkStart > Integer.MAX_VALUE) {\n throw new IOException(\"ChunkStart out of range\");\n }\n\n byte[] temp = Arrays.copyOfRange(this.fileContent, (int) chunkStart,\n (int) (chunkEnd - chunkStart));\n\n\n SignatureObject signature = new SignatureObject();\n signature.signatureData = new BinaryItem(ByteUtil.toListOfByte(temp));\n\n// RDCSignatureGenerator generator = new RDCSignatureGenerator();\n// signatureBytes = generator.ComputeHash(temp);\n//\n// SignatureObject signature = new SignatureObject();\n// signature.SignatureData = new BinaryItem(signatureBytes);\n\n return new LeafNodeObject.IntermediateNodeObjectBuilder().Build(temp, signature);\n }",
"public MediaPropertiesChunk(DataInputStream f) throws Exception {\n\t\tstreamId = f.readShort();\n\t\tmaxBitrate = f.readInt();\n\t\taverageBitrate = f.readInt();\n\t\tmaxDataPacketSize = f.readInt();\n\t\taverageDataPacketSize = f.readInt();\n\t\tstreamStartInMs = f.readInt();\n\t\tprerollInMs = f.readInt();\n\t\tduration = f.readInt();\n//\t\tbyte Size of stream description string\n\t\tstreamDescription = Utils.readString(f, f.read());\n//\t\tbyte Size of stream mime type string\n\t\tmimeType = Utils.readString(f, f.read());\n\t\t\n\t\tint dataLength = (int)f.readInt();\n\t\tbyte [] b = new byte[dataLength];\n\t\tf.readFully(b);\n\t\t\n\t\tswitch(mimeType) {\n\t\t\tcase \"audio/x-pn-realaudio\" :\n\t\t\t\taudioInfo = new AudioInfo(new DataInputStream(new ByteArrayInputStream(b)));\n\t\t\t\tbreak;\n\t\t\tcase \"logical-fileinfo\":\n\t\t\t\tlogicStreamInfo = new LogicalStreamInfo(new DataInputStream(new ByteArrayInputStream(b)));\n\t\t\t\tbreak;\n\t\t\tcase \"audio/X-MP3-draft-00\": /*dataLength must equals 0. In this case we do not have any codec info */ break;\n\t\t\tcase \"audio/x-ralf-mpeg4\" : \n\t\t\tcase \"audio/x-ralf-mpeg4-generic\" :\n\t\t\t\tlosslessAudioInfo = new LosslessAudioInfo(new DataInputStream(new ByteArrayInputStream(b)));\n\t\t\t\tbreak;\n\t\t\tcase \"audio/x-pn-multirate-realaudio\" : /* ASM-compatible RealAudio stream. Not supported */\t\t\t\t\n\t\t\tdefault: throw new UnsupportedException(\"Unknow mime : \" + mimeType); \n\t\t}\n\t}",
"Long getCompressedContentLength(String contentEncoding);",
"public byte[] getContent();",
"@java.lang.Override\n public int getChunksCount() {\n return chunks_.size();\n }",
"@NotNull\n int getTrustedChunks();",
"public final byte[] bytes() throws IOException {\n long contentLength = contentLength();\n if (contentLength <= 2147483647L) {\n C3580e source = source();\n try {\n byte[] G = source.mo19680G();\n C3500c.m11649a((Closeable) source);\n if (contentLength == -1 || contentLength == ((long) G.length)) {\n return G;\n }\n throw new IOException(\"Content-Length (\" + contentLength + \") and stream length (\" + G.length + \") disagree\");\n } catch (Throwable th) {\n C3500c.m11649a((Closeable) source);\n throw th;\n }\n } else {\n throw new IOException(\"Cannot buffer entire body for content length: \" + contentLength);\n }\n }",
"ChunkCachingProtocol.Factory getChunkCachingProtocolFactory();",
"public boolean putChunk(String ChunkHandle, byte[] payload, int offset) {\n\t\t\n\t\tif (offset + payload.length > ChunkServer.ChunkSize) {\n\t\t\tSystem.out.println(\"The chunk should write should be within range of the file, invalid\");\n\t\t\treturn false; \n\t\t} \n\t\ttry {\n\t\t\t// request \n\t\t\tbyte[] handle = ChunkHandle.getBytes();\n\t\t\t// write payload size \n\t\t\toos.writeInt(4 + 4 + 4 + 4 + 4 + handle.length + payload.length);\n\t\t\t// write command identifier \n\t\t\toos.writeInt(ChunkServer.PutChunk);\n\t\t\t// write chunkHandle size \n\t\t\toos.writeInt(handle.length);\n\t\t\t// write chunk handle\n\t\t\toos.write(handle);\n\t\t\t// write payload size s\n\t\t\toos.writeInt(payload.length);\n\t\t\t// write payload \n\t\t\toos.write(payload);\n\t\t\t// write offset\n\t\t\toos.writeInt(offset);\n\t\t\toos.flush();\n\t\t\t// parse response \n\t\t\tint resultSize = getPayloadInt(ois);\n\t\t\tint result = getPayloadInt(ois);\n\t\t\t\n\t\t\tif (result == 0) {\n\t\t\t\treturn false; \n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"success put chunk\");\n\t\t\t\treturn true; \n\t\t\t}\n\t\t\t\n\t\t} catch (IOException ioe) {\n\t\t\tSystem.out.println(ioe.getMessage());\n\t\t}\n\t\t\n\t\treturn false; \n\t}",
"private int readCompressedChunk(byte[] compressedBuffer) throws IOException {\n if (buffer.remaining() < 1) {\n readBytes(1);\n }\n byte typeId = buffer.get();\n if (typeId == ModelType.RESERVED_EOF.getId()) {\n return 0;\n } else if (typeId != ModelType.RESERVED_COMPRESSED_BLOCK.getId()) {\n throw new IOException(\"Inalid file format, expected compressed block\");\n }\n \n // read the compressed chunk size\n if (buffer.remaining() < 4) {\n readBytes(4);\n }\n int size = buffer.getInt();\n \n int needed = size - buffer.remaining();\n //log.info(\"Reading {}b chunk, {} needed\", size, needed);\n if (needed > 0) {\n readBytes(needed);\n }\n \n buffer.get(compressedBuffer, 0, size);\n return size;\n }",
"List<DownloadChunk> mo54445j(int i);",
"public int getChunkSize () {\n return this.CHUNK_SIZE;\n }"
] |
[
"0.6174796",
"0.6129815",
"0.6011642",
"0.5922859",
"0.5871005",
"0.58416456",
"0.5795255",
"0.57829803",
"0.57714087",
"0.57714087",
"0.57714087",
"0.57714087",
"0.574635",
"0.5725301",
"0.5706738",
"0.5676784",
"0.56388044",
"0.56355834",
"0.56355834",
"0.56271094",
"0.5617994",
"0.5612333",
"0.5574604",
"0.5572072",
"0.5569079",
"0.55580616",
"0.554858",
"0.5544567",
"0.55366844",
"0.55366844",
"0.55366844",
"0.55366844",
"0.55366844",
"0.55366844",
"0.5525879",
"0.55107325",
"0.5485724",
"0.548011",
"0.54647183",
"0.54574025",
"0.54550576",
"0.5443552",
"0.5443552",
"0.5441694",
"0.54333216",
"0.543264",
"0.5427866",
"0.5423226",
"0.5393814",
"0.5393814",
"0.53914654",
"0.53914654",
"0.53914654",
"0.53914654",
"0.53914654",
"0.53914654",
"0.5388098",
"0.5388098",
"0.5383383",
"0.5383235",
"0.5383235",
"0.5383235",
"0.5383235",
"0.5382786",
"0.536691",
"0.5347638",
"0.5345185",
"0.5340127",
"0.53383964",
"0.5334456",
"0.5329787",
"0.5329787",
"0.5322776",
"0.5322776",
"0.53191274",
"0.53145206",
"0.5314317",
"0.53084403",
"0.53045875",
"0.53045875",
"0.53015316",
"0.5299329",
"0.5299329",
"0.5299329",
"0.5299329",
"0.5299329",
"0.5299329",
"0.5284772",
"0.5284317",
"0.5248206",
"0.52349603",
"0.5231446",
"0.5230527",
"0.5219552",
"0.52026755",
"0.5202477",
"0.51858234",
"0.51844186",
"0.51716757",
"0.51709723",
"0.5167"
] |
0.0
|
-1
|
Chunk content (1024 bytes or less) bytes data = 3;
|
public Builder clearData() {
data_ = getDefaultInstance().getData();
onChanged();
return this;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private void readHttpDataChunkByChunk(HttpPostRequestDecoder decoder) {\n try {\n while (decoder.hasNext()) {\n InterfaceHttpData data = decoder.next();\n if (data != null) {\n // check if current HttpData is a FileUpload and previously set as partial\n if (partialContent == data) {\n partialContent = null;\n }\n try {\n // new value\n writeHttpData(data);\n } finally {\n data.release();\n }\n }\n }\n // Check partial decoding for a FileUpload\n InterfaceHttpData data = decoder.currentPartialHttpData();\n if (data != null) {\n if (partialContent == null) {\n partialContent = (HttpData) data;\n }\n }\n } catch (HttpPostRequestDecoder.EndOfDataDecoderException e1) {\n // end\n }\n }",
"DataChunk nextChunk() throws RemoteException;",
"private int getChunk(byte [] buffer, int offset, String chunk) {\r\n\t\ttry {\r\n\t\t\tfor (;;) {\r\n\t\t\t\tint dataLenght = getInt(buffer, offset);\r\n\t\t\t\tif (compareBytes(buffer, offset+4, chunk)) {\r\n\t\t\t\t\treturn offset;\r\n\t\t\t\t} else {\r\n\t\t\t\t\toffset += 4 + 4 + dataLenght + 4;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception e) {};\r\n\t\treturn -1;\r\n\t}",
"entities.Torrent.ChunkResponse getChunkResponse();",
"void sendChunkRequest(int chunkX, int chunkY);",
"private static boolean parseChunk(final FileChannel fc,final long[] offset,final int depth) throws IOException {\n\t Log.d(TAG, \"entering parseChunk \"+ offset[0] +\"/\"+ depth);\n\n\t long data_offset = offset[0];\n\n long chunk_size = Util.readUInt(fc, data_offset); \n int chunk_type = Util.readInt(fc, data_offset+4);\n\n Log.v(TAG, chunk_type + \" \" + chunk_size);\n char sChunk[] = new char[4];\n Util.MakeFourCCString(chunk_type, sChunk);\n Log.v(TAG, String.format(\"chunk %s\", String.valueOf(sChunk)));\n\n data_offset += 8;\n // long chunk_data_size = offset[0] + chunk_size - data_offset;\n\n if (chunk_size == 1) {\n\n chunk_size = Util.readLong(fc, data_offset);\n\n data_offset += 8;\n\n if (chunk_size < 16) {\n Log.e(TAG,\" The smallest valid chunk is 16 bytes long in this case.\");\n return false;\n }\n\n } else if (chunk_size < 8) {\n Log.e(TAG,\"The smallest valid chunk is 8 bytes long.\");\n return false;\n }\n\n Log.v(TAG, String.format(\"parsing chunk %s at depth %d\",\n String.valueOf(sChunk), depth));\n\n if(chunk_type == Util.FOURCC('m', 'o', 'o', 'v') || chunk_type == Util.FOURCC('u', 'd', 't', 'a')) {\n Log.d(TAG, String.valueOf(sChunk));\n\n long stop_offset = offset[0] + chunk_size;\n offset[0] = data_offset;\n while (offset[0] < stop_offset) {\n boolean err = parseChunk(fc,offset, depth + 1);\n if (!err) {\n return err;\n }\n }\n\n if (offset[0] != stop_offset) {\n return false;\n }\n\n if (chunk_type == Util.FOURCC('m', 'o', 'o', 'v') ) {\n return true;\n }\n }\n else if(chunk_type == Util.FOURCC('h', 't', 'c', 'b')) {\n Log.d(TAG,\"Found Htc MetaData\");\n sHtcTableOffset = data_offset;\n Log.d(TAG,\"sHtcTableOffset = \" + sHtcTableOffset );\n parseHtcMetaData(fc,data_offset,chunk_size);\n Log.d(TAG,\"Parse Htc MetaData done\");\n offset[0] += chunk_size;\n } else if (chunk_type == Util.FOURCC('_', 'h', 't', 'c')\n || chunk_type == Util.FOURCC('d', 't', 'a', 'h')) {\n Log.d(TAG, \"Found HTC box\");\n offset[0] += 8;\n parseChunk(fc, offset, depth + 1);\n } else {\n offset[0] += chunk_size;\n }\n return true;\n }",
"int getChunkSize();",
"@Test\n public void testChunkedOutputToChunkInput() throws Exception {\n final ChunkedInput<String> input = target().path(\"test\").request().get(new javax.ws.rs.core.GenericType<ChunkedInput<String>>() {});\n int counter = 0;\n String chunk;\n while ((chunk = input.read()) != null) {\n Assert.assertEquals((\"Unexpected value of chunk \" + counter), \"test\", chunk);\n counter++;\n } \n Assert.assertEquals(\"Unexpected numbed of received chunks.\", 3, counter);\n }",
"long getChunkSize();",
"long getChunkSize();",
"long getChunkSize();",
"long getChunkSize();",
"void handleChunk(char[] buff, int length) {\n\t\tint newlinePos = -1;\n\t\tfor (int pos = 0; pos < length; pos++) {\n\t\t\tif (buff[pos] == '\\n') {\n\t\t\t\tnewlinePos = pos;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (newlinePos > -1) {\n\t\t\tloaded.append(buff, 0, newlinePos);\n\t\t\tendLine();\n\t\t\tloaded.append(buff, newlinePos + 1, length - newlinePos - 1);\n\t\t} else {\n\t\t\tloaded.append(buff, 0, length);\n\t\t}\n\t}",
"public SmallChunkData(Chunk c){\n\t\t\tx = c.getX();\n\t\t\tz = c.getZ();\n\t\t\tworldName = c.getWorld().getName();\n\t\t\tfor(int x = 0; x < 16; x ++){\n\t\t\t\tfor(int z = 0; z < 16; z ++){\n\t\t\t\t\tbiomes[x][z] = c.getBlock(x, 0, z).getBiome();\n\t\t\t\t}\n\t\t\t}\n\t\t\t/*for(int y = 0; y < 256; y ++){\n\t\t\t\tfor(int x = 0; x < 16; x ++){\n\t\t\t\t\tfor(int z = 0; z < 16; z ++){\n\t\t\t\t\t\tdata[y][x][z] = new MaterialData(c.getBlock(x, y, z).getType(), c.getBlock(x, y, z).getData());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}*/\n\t\t}",
"public int getChunkCount () {\n return (this.getTagCount()>>BITS_TO_SHIFT_FOR_CHUNK) + 1;\n }",
"byte[] getContent() throws IOException;",
"void mo54417a(DownloadChunk downloadChunk);",
"public int getChunkNo() {\n return chunkNo;\n }",
"public int getChunkNo() {\n return chunkNo;\n }",
"byte[] getContent();",
"byte[] getByteContent() throws IOException;",
"boolean canRequestChunk();",
"public int getChunkWidth() {\n return 256;\n }",
"entities.Torrent.ChunkRequest getChunkRequest();",
"public boolean isChunked() {\n/* 101 */ return this.chunked;\n/* */ }",
"public void writeChunk(String id, byte[] data) throws IOException {\n byte[] identifier = id.getBytes(\"US-ASCII\");\n if (identifier.length != 4) {\n throw new IllegalArgumentException(\"ID length must match 4!\");\n }\n writeInt(data.length);\n write(identifier);\n write(data);\n CRC32 crc = new CRC32();\n crc.update(identifier);\n crc.update(data);\n writeInt((int) (crc.getValue() & 0xFFFFFFFFL));\n crc.reset();\n }",
"public final ByteBlock getData() { return data; }",
"public void data(byte[] data, int count);",
"int getChunkId();",
"int getChunkId();",
"int getChunkId();",
"int getChunkId();",
"int getChunkId();",
"int getChunkId();",
"private void onReceivedResponseData(org.apache.http.HttpResponse r14, com.tencent.tmassistantsdk.protocol.jce.DownloadChunkLogInfo r15) {\n /*\n r13 = this;\n r2 = 705; // 0x2c1 float:9.88E-43 double:3.483E-321;\n r6 = 206; // 0xce float:2.89E-43 double:1.02E-321;\n r7 = 0;\n r12 = 0;\n r0 = r14.getEntity();\n r1 = r13.verifyTotalLen(r14, r0);\n if (r1 != 0) goto L_0x0022;\n L_0x0010:\n r0 = \"_DownloadTask\";\n r1 = \"verifyTotalLen false\";\n com.tencent.tmassistantsdk.util.TMLog.i(r0, r1);\n r0 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\n r1 = \"totalLen is not match the requestSize\";\n r0.<init>(r2, r1);\n throw r0;\n L_0x0022:\n r1 = r13.mDownloadInfo;\n r2 = r1.getTotalSize();\n r4 = 0;\n r1 = (r2 > r4 ? 1 : (r2 == r4 ? 0 : -1));\n if (r1 != 0) goto L_0x015c;\n L_0x002e:\n r1 = r14.getStatusLine();\n r1 = r1.getStatusCode();\n r2 = 200; // 0xc8 float:2.8E-43 double:9.9E-322;\n if (r1 != r2) goto L_0x00f9;\n L_0x003a:\n r1 = r13.mDownloadInfo;\n r2 = r0.getContentLength();\n r1.setTotalSize(r2);\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"HTTPCode 200, totalBytes:\";\n r2.<init>(r3);\n r3 = r13.mDownloadInfo;\n r4 = r3.getTotalSize();\n r2 = r2.append(r4);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.i(r1, r2);\n L_0x005f:\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"first start downloadinfoTotalSize = \";\n r2.<init>(r3);\n r3 = r13.mDownloadInfo;\n r4 = r3.getTotalSize();\n r2 = r2.append(r4);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r2);\n r1 = \"content-range\";\n r1 = r14.getFirstHeader(r1);\n if (r1 == 0) goto L_0x00a0;\n L_0x0084:\n r1 = r1.getValue();\n r1 = com.tencent.tmassistantsdk.downloadservice.ByteRange.parseContentRange(r1);\n r2 = r1.getStart();\n r15.responseRangePosition = r2;\n r2 = r1.getEnd();\n r4 = r1.getStart();\n r2 = r2 - r4;\n r4 = 1;\n r2 = r2 + r4;\n r15.responseRangeLength = r2;\n L_0x00a0:\n r1 = r13.mDownloadInfo;\n r2 = r1.getTotalSize();\n r15.responseContentLength = r2;\n L_0x00a8:\n r1 = r13.mSaveFile;\n if (r1 != 0) goto L_0x00bb;\n L_0x00ac:\n r1 = new com.tencent.tmassistantsdk.storage.TMAssistantFile;\n r2 = r13.mDownloadInfo;\n r2 = r2.mTempFileName;\n r3 = r13.mDownloadInfo;\n r3 = r3.mFileName;\n r1.<init>(r2, r3);\n r13.mSaveFile = r1;\n L_0x00bb:\n r2 = 0;\n r10 = r0.getContent();\t Catch:{ SocketException -> 0x0406 }\n r0 = \"_DownloadTask\";\n r1 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x0406 }\n r4 = \"start write file, fileName: \";\n r1.<init>(r4);\t Catch:{ SocketException -> 0x0406 }\n r4 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x0406 }\n r4 = r4.mFileName;\t Catch:{ SocketException -> 0x0406 }\n r1 = r1.append(r4);\t Catch:{ SocketException -> 0x0406 }\n r1 = r1.toString();\t Catch:{ SocketException -> 0x0406 }\n com.tencent.tmassistantsdk.util.TMLog.i(r0, r1);\t Catch:{ SocketException -> 0x0406 }\n r8 = r2;\n L_0x00dc:\n r0 = r13.mRecvBuf;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = r10.read(r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r3 <= 0) goto L_0x00eb;\n L_0x00e4:\n r0 = r13.mStopTask;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 == 0) goto L_0x0262;\n L_0x00e8:\n r10.close();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x00eb:\n r0 = r13.mSaveFile;\n if (r0 == 0) goto L_0x00f6;\n L_0x00ef:\n r0 = r13.mSaveFile;\n r0.close();\n r13.mSaveFile = r12;\n L_0x00f6:\n r15.receiveDataSize = r8;\n return;\n L_0x00f9:\n r1 = r14.getStatusLine();\n r1 = r1.getStatusCode();\n if (r1 != r6) goto L_0x0135;\n L_0x0103:\n r1 = \"content-range\";\n r1 = r14.getFirstHeader(r1);\n r2 = r13.mDownloadInfo;\n r1 = r1.getValue();\n r4 = com.tencent.tmassistantsdk.downloadservice.ByteRange.getTotalSize(r1);\n r2.setTotalSize(r4);\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"HTTPCode 206, totalBytes:\";\n r2.<init>(r3);\n r3 = r13.mDownloadInfo;\n r4 = r3.getTotalSize();\n r2 = r2.append(r4);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.i(r1, r2);\n goto L_0x005f;\n L_0x0135:\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"statusCode=\";\n r2.<init>(r3);\n r3 = r14.getStatusLine();\n r3 = r3.getStatusCode();\n r2 = r2.append(r3);\n r3 = \" onReceivedResponseData error.\";\n r2 = r2.append(r3);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r2);\n goto L_0x005f;\n L_0x015c:\n r1 = r14.getStatusLine();\n r1 = r1.getStatusCode();\n if (r1 != r6) goto L_0x00a8;\n L_0x0166:\n r1 = \"content-range\";\n r1 = r14.getFirstHeader(r1);\t Catch:{ Throwable -> 0x0214 }\n r2 = r1.getValue();\t Catch:{ Throwable -> 0x0214 }\n r2 = com.tencent.tmassistantsdk.downloadservice.ByteRange.parseContentRange(r2);\t Catch:{ Throwable -> 0x0214 }\n r3 = r1.getValue();\t Catch:{ Throwable -> 0x0214 }\n r4 = com.tencent.tmassistantsdk.downloadservice.ByteRange.getTotalSize(r3);\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r15.responseRangePosition = r8;\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getEnd();\t Catch:{ Throwable -> 0x0214 }\n r10 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r8 = r8 - r10;\n r10 = 1;\n r8 = r8 + r10;\n r15.responseRangeLength = r8;\t Catch:{ Throwable -> 0x0214 }\n r15.responseContentLength = r4;\t Catch:{ Throwable -> 0x0214 }\n r3 = \"_DownloadTask\";\n r6 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r8 = \"totalSize = \";\n r6.<init>(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r4);\t Catch:{ Throwable -> 0x0214 }\n r8 = \" downloadinfoTotalSize = \";\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r8 = r8.getTotalSize();\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.w(r3, r6);\t Catch:{ Throwable -> 0x0214 }\n r3 = \"_DownloadTask\";\n r6 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r8 = \"mReceivedBytes = \";\n r6.<init>(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r8 = r8.mReceivedBytes;\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.i(r3, r6);\t Catch:{ Throwable -> 0x0214 }\n r3 = \"_DownloadTask\";\n r6 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r8 = \"start = \";\n r6.<init>(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = \", end = \";\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getEnd();\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.i(r3, r6);\t Catch:{ Throwable -> 0x0214 }\n r2 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r6 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r8 = r6.mReceivedBytes;\t Catch:{ Throwable -> 0x0214 }\n r2 = (r2 > r8 ? 1 : (r2 == r8 ? 0 : -1));\n if (r2 == 0) goto L_0x022a;\n L_0x0209:\n r0 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ Throwable -> 0x0214 }\n r1 = 706; // 0x2c2 float:9.9E-43 double:3.49E-321;\n r2 = \"The received size is not equal with ByteRange.\";\n r0.<init>(r1, r2);\t Catch:{ Throwable -> 0x0214 }\n throw r0;\t Catch:{ Throwable -> 0x0214 }\n L_0x0214:\n r0 = move-exception;\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ all -> 0x021d }\n r2 = 704; // 0x2c0 float:9.87E-43 double:3.48E-321;\n r1.<init>(r2, r0);\t Catch:{ all -> 0x021d }\n throw r1;\t Catch:{ all -> 0x021d }\n L_0x021d:\n r0 = move-exception;\n r1 = r13.mSaveFile;\n if (r1 == 0) goto L_0x0229;\n L_0x0222:\n r1 = r13.mSaveFile;\n r1.close();\n r13.mSaveFile = r12;\n L_0x0229:\n throw r0;\n L_0x022a:\n r2 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r2 = r2.getTotalSize();\t Catch:{ Throwable -> 0x0214 }\n r2 = (r4 > r2 ? 1 : (r4 == r2 ? 0 : -1));\n if (r2 == 0) goto L_0x023f;\n L_0x0234:\n r0 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ Throwable -> 0x0214 }\n r1 = 705; // 0x2c1 float:9.88E-43 double:3.483E-321;\n r2 = \"The total size is not equal with ByteRange.\";\n r0.<init>(r1, r2);\t Catch:{ Throwable -> 0x0214 }\n throw r0;\t Catch:{ Throwable -> 0x0214 }\n L_0x023f:\n r2 = \"_DownloadTask\";\n r3 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r4 = \"response ByteRange: \";\n r3.<init>(r4);\t Catch:{ Throwable -> 0x0214 }\n r1 = r3.append(r1);\t Catch:{ Throwable -> 0x0214 }\n r1 = r1.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.d(r2, r1);\t Catch:{ Throwable -> 0x0214 }\n r1 = r13.mSaveFile;\n if (r1 == 0) goto L_0x00a8;\n L_0x0259:\n r1 = r13.mSaveFile;\n r1.close();\n r13.mSaveFile = r12;\n goto L_0x00a8;\n L_0x0262:\n r0 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = (long) r3;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0 + r4;\n r2 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r2.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = (r0 > r4 ? 1 : (r0 == r4 ? 0 : -1));\n if (r2 > 0) goto L_0x03be;\n L_0x0272:\n r2 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r2.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = (r0 > r4 ? 1 : (r0 == r4 ? 0 : -1));\n if (r0 != 0) goto L_0x0315;\n L_0x027c:\n r6 = 1;\n L_0x027d:\n r0 = r13.mSaveFile;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mRecvBuf;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 0;\n r4 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r4.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.write(r1, r2, r3, r4, r6);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 != 0) goto L_0x03b4;\n L_0x028c:\n r0 = com.tencent.tmassistantsdk.storage.TMAssistantFile.getSavePathRootDir();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = com.tencent.tmassistantsdk.downloadservice.DownloadHelper.isSpaceEnough(r0, r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 == 0) goto L_0x0367;\n L_0x029c:\n r0 = com.tencent.tmassistantsdk.storage.TMAssistantFile.isSDCardExistAndCanWrite();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 == 0) goto L_0x0318;\n L_0x02a2:\n r0 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"write file failed, fileName: \";\n r0.<init>(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r1.mFileName;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" receivedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" readedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" totalSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"_DownloadTask\";\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 703; // 0x2bf float:9.85E-43 double:3.473E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x02ef:\n r0 = move-exception;\n r2 = r8;\n L_0x02f1:\n r1 = \"_DownloadTask\";\n r4 = \"\";\n r5 = 0;\n r5 = new java.lang.Object[r5];\t Catch:{ all -> 0x0305 }\n com.tencent.mm.sdk.platformtools.w.printErrStackTrace(r1, r0, r4, r5);\t Catch:{ all -> 0x0305 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ all -> 0x0305 }\n r4 = 605; // 0x25d float:8.48E-43 double:2.99E-321;\n r1.<init>(r4, r0);\t Catch:{ all -> 0x0305 }\n throw r1;\t Catch:{ all -> 0x0305 }\n L_0x0305:\n r0 = move-exception;\n r8 = r2;\n L_0x0307:\n r1 = r13.mSaveFile;\n if (r1 == 0) goto L_0x0312;\n L_0x030b:\n r1 = r13.mSaveFile;\n r1.close();\n r13.mSaveFile = r12;\n L_0x0312:\n r15.receiveDataSize = r8;\n throw r0;\n L_0x0315:\n r6 = r7;\n goto L_0x027d;\n L_0x0318:\n r0 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"write file failed, no sdCard! fileName: \";\n r0.<init>(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r1.mFileName;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" receivedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" readedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" totalSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"_DownloadTask\";\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 711; // 0x2c7 float:9.96E-43 double:3.513E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x0365:\n r0 = move-exception;\n goto L_0x0307;\n L_0x0367:\n r0 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"write file failed, no enough space! fileName: \";\n r0.<init>(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r1.mFileName;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" receivedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" readedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" totalSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"_DownloadTask\";\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 710; // 0x2c6 float:9.95E-43 double:3.51E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x03b4:\n r0 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = (long) r3;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0.updateReceivedSize(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = (long) r3;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r8 = r8 + r0;\n goto L_0x00dc;\n L_0x03be:\n r0 = \"write file size too long.\";\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = \"write file size too long.\\r\\nreadedLen: \";\n r2.<init>(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = \"\\r\\nreceivedSize: \";\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r3.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = \"\\r\\ntotalSize: \";\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r3.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = \"\\r\\nisTheEndData: false\";\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 703; // 0x2bf float:9.85E-43 double:3.473E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x0406:\n r0 = move-exception;\n goto L_0x02f1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.tmassistantsdk.downloadservice.DownloadTask.onReceivedResponseData(org.apache.http.HttpResponse, com.tencent.tmassistantsdk.protocol.jce.DownloadChunkLogInfo):void\");\n }",
"private byte[] readFixedLengthContent(ByteBuf in) throws UnsupportedEncodingException {\n if (in.readableBytes() < 2) {\n return new byte[]{};\n }\n int strLen = in.readableBytes();\n// if (in.readableBytes() < strLen) {\n// return null;\n// }\n byte[] strRaw = new byte[strLen];\n in.readBytes(strRaw);\n\n return strRaw;\n }",
"@Override\n public void readData(DataKey dataKey) {\n this.chunk = getChunkFromData(dataKey);\n }",
"entities.Torrent.ChunkResponseOrBuilder getChunkResponseOrBuilder();",
"public int getChunkHeight() {\n return 256;\n }",
"public void sendChunk(String fileName,ObjectOutputStream out)\n {\n FileInputStream fInput;\n BufferedInputStream bufInput;\n byte[] byteToSend = new byte[chunkSize];\n try\n {\n fInput = new FileInputStream(fileName);\n bufInput = new BufferedInputStream(fInput);\n int b;\n int i=0;\n b = bufInput.read(byteToSend,0,chunkSize);\n out.write(byteToSend,0,chunkSize);\n out.flush();\n bufInput.close();\n }\n catch(FileNotFoundException ex)\n {\n System.out.println(\"File Chunk Not found Exception: Some chunk missing.\");\n }\n catch(IOException ex)\n {\n System.out.println(\"IOException while reading from the chunk file.\");\n }\n }",
"boolean hasChunkResponse();",
"com.google.protobuf.ByteString getContent();",
"com.google.protobuf.ByteString getContent();",
"edu.usfca.cs.dfs.StorageMessages.StoreChunkResponse getStoreChunkResponse();",
"public Object getContent() {\n/* 112 */ return this.buf;\n/* */ }",
"edu.usfca.cs.dfs.StorageMessages.StoreChunk getStoreChunk();",
"@Override\n\tpublic void open(Context context, Chunk data) {\n\t}",
"entities.Torrent.ChunkInfo getChunks(int index);",
"int getChunkIndex();",
"int getChunkIndex();",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }",
"@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }",
"byte getBlockData();",
"byte[] getData();",
"byte[] getData();",
"byte[] getData();",
"byte[] getData();",
"boolean hasChunkRequest();",
"@Override\n\t\t\t public void start(ByteBuffer data) throws Exception {\n\t\t\t if (self.state.lastFragment == false) {\n\t\t\t self.error(\"fragmented pong is not supported\", 1002);\n\t\t\t return;\n\t\t\t }\n\n\t\t\t // decode length\n\t\t\t int firstLength = data.get(1) & 0x7f;\n\t\t\t if (firstLength < 126) {\n\t\t\t ///opcodes['10'].getData.call(self, firstLength);\n\t\t\t \t getData(firstLength);\n\t\t\t }\n\t\t\t else {\n\t\t\t self.error(\"control frames cannot have more than 125 bytes of data\", 1002);\n\t\t\t }\n\t\t\t }",
"private boolean sendChunk() throws IOException {\n // allocate Buffer\n final Buffer buffer = mm.allocate(chunkSize);\n // mark it available for disposal after content is written\n buffer.allowBufferDispose(true);\n\n // read file to the Buffer\n final int justReadBytes = (int) Buffers.readFromFileChannel(\n fileChannel, buffer);\n \n if (justReadBytes <= 0) {\n complete();\n return false;\n }\n\n // prepare buffer to be written\n buffer.trim();\n\n // write the Buffer\n outputStream.write(buffer);\n size -= justReadBytes;\n\n // check the remaining size here to avoid extra onWritePossible() invocation\n if (size <= 0) {\n complete();\n return false;\n }\n\n return true;\n }",
"public byte[] getChunk(String ChunkHandle, int offset, int NumberOfBytes) {\n\t\t\n\t\tbyte[] payload = null;\n\t\t\n\t\ttry {\n\t\t\t// request \n\t\t\tbyte[] handle = ChunkHandle.getBytes();\n\t\t\t// write payload size (4-command + 4-handle-length + actual handle)\n\t\t\toos.writeInt(4 + 4 + 4 + 4 + handle.length);\n\t\t\t// write command identifier \n\t\t\toos.writeInt(ChunkServer.GetChunk);\n\t\t\t// write chunkHandle length \n\t\t\toos.writeInt(handle.length);\n\t\t\t// write chunk handle\n\t\t\toos.write(handle);\n\t\t\t// write offset \n\t\t\toos.writeInt(offset);\n\t\t\t// write number of bytes\n\t\t\toos.writeInt(NumberOfBytes);\n\t\t\toos.flush();\n\t\t\t// parse response \n\t\t\tint payloadSize = getPayloadInt(ois);\n\t\t\tSystem.out.println(\"Recieving this size: \" + payloadSize);\n\t\t\tpayload = getPayload(ois, payloadSize);\n\t\t\tSystem.out.print(\"received payload in client\");\n\t\t\t\n\t\t\treturn payload; \n\t\t\t\n\t\t} catch (IOException ioe) {\n\t\t\tSystem.out.println(ioe.getMessage());\n\t\t}\n\t\t\n\t\treturn payload; \n\t\t\n\t}",
"@Test\n public void testStreamParsePubDev3401() throws IOException {\n final int chunkSize = 64 * 1024;\n ParseSetupV3 ps = new ParseSetupV3();\n ps.parse_type = \"CSV\";\n ps.chunk_size = chunkSize;\n // mock Parser\n final List<Integer> pcCalls = new LinkedList<>();\n Parser p = new Parser(new ParseSetup(ps), null) {\n @Override protected ParseWriter parseChunk(int cidx, ParseReader din, ParseWriter dout) {\n pcCalls.add(cidx);\n byte[] data = din.getChunkData(cidx);\n assert cidx <= 3;\n assert ((data != null) && (data.length == chunkSize)) || (cidx == 3);\n return null;\n }\n };\n // mock source InputStream, only used for \"back-channel\" chunk index signalling\n final Queue<Integer> cidxs = new LinkedList<>(Arrays.asList(1, 2, 3, 4));\n InputStream bvs = new InputStream() {\n @Override public int read() throws IOException { throw new UnsupportedOperationException(); }\n @Override public int read(byte[] b, int off, int len) throws IOException {\n assert b == null;\n return cidxs.remove();\n }\n };\n // mock StreamParseWriter\n MockStreamParseWriter w = new MockStreamParseWriter(chunkSize);\n // Vec made of 3 chunks\n Key k = FVecFactory.makeByteVec(\n RandomStringUtils.randomAscii(chunkSize),\n RandomStringUtils.randomAscii(chunkSize),\n RandomStringUtils.randomAscii(chunkSize)\n );\n try {\n ByteVec v = DKV.getGet(k);\n p.streamParseZip(v.openStream(null), w, bvs);\n assertEquals(\"Expected calls to parseChunk()\", Arrays.asList(0, 1, 2, 3), pcCalls);\n assertEquals(\"Expected calls to nextChunk()\", Arrays.asList(0, 1, 2), w._nchks);\n } finally {\n k.remove();\n }\n }",
"public String initializeChunk() {\n\t\ttry {\n\t\t\t// request \n\t\t\t// write payload size (2 ints, 4 + 4)\n\t\t\toos.writeInt(8);\n\t\t\t// write command identifier \n\t\t\toos.writeInt(ChunkServer.InitializeChunk);\n\t\t\toos.flush();\n\t\t\t// parse response \n\t\t\tint chunkHandleSize = getPayloadInt(ois);\n\t\t\t// reduce size by payload size int \n\t\t\tchunkHandleSize -= 4; \n\t\t\tbyte[] handle = getPayload(ois, chunkHandleSize);\n\t\t\treturn (new String(handle).toString());\n\t\t\t\n\t\t} catch (IOException ioe) {\n\t\t\tSystem.out.println(\"ioe in initialize chunk \" + ioe.getMessage());\n\t\t}\n\t\treturn null; \n\t}",
"com.google.protobuf.ByteString getContentBytes();",
"@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }",
"@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }",
"int getChunksCount();",
"int getChunksCount();",
"public Chunk loadChunk(int x, int p_73158_2_)\n\t{\n\t\treturn this.provideChunk(x, p_73158_2_);\n\t}",
"String getChunkType();",
"public boolean sendChunkChange ( Location loc , int sx , int sy , int sz , byte[] data ) {\n\t\treturn invokeSafe ( \"sendChunkChange\" , loc , sx , sy , sz , data );\n\t}",
"public FileChunkReference getFileData() {\n return fileData;\n }",
"com.google.protobuf.ByteString getData(int index);",
"com.google.protobuf.ByteString getData(int index);",
"public void readAllChunks(EndPoint endpoint) throws IOException, Pausable {\n IntList chunkRanges = new IntList(); // alternate numbers in this list refer to the start and end offsets of chunks.\n do {\n int n = readLine(endpoint); // read chunk size text into buffer\n int beg = iread;\n int size = parseChunkSize(buffer, iread - n, iread); // Parse size in hex, ignore extension\n if (size == 0)\n break;\n // If the chunk has not already been read in, do so\n fill(endpoint, iread, size+2 /*chunksize + CRLF*/);\n // record chunk start and end\n chunkRanges.add(beg); \n chunkRanges.add(beg + size); // without the CRLF\n iread += size + 2; // for the next round.\n } while (true);\n\n // / consolidate all chunkRanges\n if (chunkRanges.numElements == 0) {\n contentLength = 0;\n return;\n }\n contentOffset = chunkRanges.get(0); // first chunk's beginning\n int endOfLastChunk = chunkRanges.get(1); // first chunk's end\n\n byte[] bufa = buffer.array();\n for (int i = 2; i < chunkRanges.numElements; i += 2) {\n int beg = chunkRanges.get(i);\n int chunkSize = chunkRanges.get(i + 1) - beg;\n System.arraycopy(bufa, beg, bufa, endOfLastChunk, chunkSize);\n endOfLastChunk += chunkSize;\n }\n // TODO move all trailer stuff up\n contentLength = endOfLastChunk - contentOffset;\n \n // At this point, the contentOffset and contentLen give the entire content \n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkId() {\n return chunkId_;\n }",
"public int getChunkSize() {\n return chunkSize;\n }",
"public void setChunked(boolean b) {\n/* 178 */ this.chunked = b;\n/* */ }",
"private LeafNodeObject getChunk(long chunkStart, long chunkEnd) throws IOException {\n if (chunkEnd <= chunkStart || (chunkEnd - chunkStart > this.maxChunkSize) ||\n chunkStart > Integer.MAX_VALUE) {\n throw new IOException(\"ChunkStart out of range\");\n }\n\n byte[] temp = Arrays.copyOfRange(this.fileContent, (int) chunkStart,\n (int) (chunkEnd - chunkStart));\n\n\n SignatureObject signature = new SignatureObject();\n signature.signatureData = new BinaryItem(ByteUtil.toListOfByte(temp));\n\n// RDCSignatureGenerator generator = new RDCSignatureGenerator();\n// signatureBytes = generator.ComputeHash(temp);\n//\n// SignatureObject signature = new SignatureObject();\n// signature.SignatureData = new BinaryItem(signatureBytes);\n\n return new LeafNodeObject.IntermediateNodeObjectBuilder().Build(temp, signature);\n }",
"public MediaPropertiesChunk(DataInputStream f) throws Exception {\n\t\tstreamId = f.readShort();\n\t\tmaxBitrate = f.readInt();\n\t\taverageBitrate = f.readInt();\n\t\tmaxDataPacketSize = f.readInt();\n\t\taverageDataPacketSize = f.readInt();\n\t\tstreamStartInMs = f.readInt();\n\t\tprerollInMs = f.readInt();\n\t\tduration = f.readInt();\n//\t\tbyte Size of stream description string\n\t\tstreamDescription = Utils.readString(f, f.read());\n//\t\tbyte Size of stream mime type string\n\t\tmimeType = Utils.readString(f, f.read());\n\t\t\n\t\tint dataLength = (int)f.readInt();\n\t\tbyte [] b = new byte[dataLength];\n\t\tf.readFully(b);\n\t\t\n\t\tswitch(mimeType) {\n\t\t\tcase \"audio/x-pn-realaudio\" :\n\t\t\t\taudioInfo = new AudioInfo(new DataInputStream(new ByteArrayInputStream(b)));\n\t\t\t\tbreak;\n\t\t\tcase \"logical-fileinfo\":\n\t\t\t\tlogicStreamInfo = new LogicalStreamInfo(new DataInputStream(new ByteArrayInputStream(b)));\n\t\t\t\tbreak;\n\t\t\tcase \"audio/X-MP3-draft-00\": /*dataLength must equals 0. In this case we do not have any codec info */ break;\n\t\t\tcase \"audio/x-ralf-mpeg4\" : \n\t\t\tcase \"audio/x-ralf-mpeg4-generic\" :\n\t\t\t\tlosslessAudioInfo = new LosslessAudioInfo(new DataInputStream(new ByteArrayInputStream(b)));\n\t\t\t\tbreak;\n\t\t\tcase \"audio/x-pn-multirate-realaudio\" : /* ASM-compatible RealAudio stream. Not supported */\t\t\t\t\n\t\t\tdefault: throw new UnsupportedException(\"Unknow mime : \" + mimeType); \n\t\t}\n\t}",
"Long getCompressedContentLength(String contentEncoding);",
"public byte[] getContent();",
"@java.lang.Override\n public int getChunksCount() {\n return chunks_.size();\n }",
"@NotNull\n int getTrustedChunks();",
"public final byte[] bytes() throws IOException {\n long contentLength = contentLength();\n if (contentLength <= 2147483647L) {\n C3580e source = source();\n try {\n byte[] G = source.mo19680G();\n C3500c.m11649a((Closeable) source);\n if (contentLength == -1 || contentLength == ((long) G.length)) {\n return G;\n }\n throw new IOException(\"Content-Length (\" + contentLength + \") and stream length (\" + G.length + \") disagree\");\n } catch (Throwable th) {\n C3500c.m11649a((Closeable) source);\n throw th;\n }\n } else {\n throw new IOException(\"Cannot buffer entire body for content length: \" + contentLength);\n }\n }",
"ChunkCachingProtocol.Factory getChunkCachingProtocolFactory();",
"public boolean putChunk(String ChunkHandle, byte[] payload, int offset) {\n\t\t\n\t\tif (offset + payload.length > ChunkServer.ChunkSize) {\n\t\t\tSystem.out.println(\"The chunk should write should be within range of the file, invalid\");\n\t\t\treturn false; \n\t\t} \n\t\ttry {\n\t\t\t// request \n\t\t\tbyte[] handle = ChunkHandle.getBytes();\n\t\t\t// write payload size \n\t\t\toos.writeInt(4 + 4 + 4 + 4 + 4 + handle.length + payload.length);\n\t\t\t// write command identifier \n\t\t\toos.writeInt(ChunkServer.PutChunk);\n\t\t\t// write chunkHandle size \n\t\t\toos.writeInt(handle.length);\n\t\t\t// write chunk handle\n\t\t\toos.write(handle);\n\t\t\t// write payload size s\n\t\t\toos.writeInt(payload.length);\n\t\t\t// write payload \n\t\t\toos.write(payload);\n\t\t\t// write offset\n\t\t\toos.writeInt(offset);\n\t\t\toos.flush();\n\t\t\t// parse response \n\t\t\tint resultSize = getPayloadInt(ois);\n\t\t\tint result = getPayloadInt(ois);\n\t\t\t\n\t\t\tif (result == 0) {\n\t\t\t\treturn false; \n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"success put chunk\");\n\t\t\t\treturn true; \n\t\t\t}\n\t\t\t\n\t\t} catch (IOException ioe) {\n\t\t\tSystem.out.println(ioe.getMessage());\n\t\t}\n\t\t\n\t\treturn false; \n\t}",
"private int readCompressedChunk(byte[] compressedBuffer) throws IOException {\n if (buffer.remaining() < 1) {\n readBytes(1);\n }\n byte typeId = buffer.get();\n if (typeId == ModelType.RESERVED_EOF.getId()) {\n return 0;\n } else if (typeId != ModelType.RESERVED_COMPRESSED_BLOCK.getId()) {\n throw new IOException(\"Inalid file format, expected compressed block\");\n }\n \n // read the compressed chunk size\n if (buffer.remaining() < 4) {\n readBytes(4);\n }\n int size = buffer.getInt();\n \n int needed = size - buffer.remaining();\n //log.info(\"Reading {}b chunk, {} needed\", size, needed);\n if (needed > 0) {\n readBytes(needed);\n }\n \n buffer.get(compressedBuffer, 0, size);\n return size;\n }",
"List<DownloadChunk> mo54445j(int i);",
"public int getChunkSize () {\n return this.CHUNK_SIZE;\n }"
] |
[
"0.6174796",
"0.6129815",
"0.6011642",
"0.5922859",
"0.5871005",
"0.58416456",
"0.5795255",
"0.57829803",
"0.57714087",
"0.57714087",
"0.57714087",
"0.57714087",
"0.574635",
"0.5725301",
"0.5706738",
"0.5676784",
"0.56388044",
"0.56355834",
"0.56355834",
"0.56271094",
"0.5617994",
"0.5612333",
"0.5574604",
"0.5572072",
"0.5569079",
"0.55580616",
"0.554858",
"0.5544567",
"0.55366844",
"0.55366844",
"0.55366844",
"0.55366844",
"0.55366844",
"0.55366844",
"0.5525879",
"0.55107325",
"0.5485724",
"0.548011",
"0.54647183",
"0.54574025",
"0.54550576",
"0.5443552",
"0.5443552",
"0.5441694",
"0.54333216",
"0.543264",
"0.5427866",
"0.5423226",
"0.5393814",
"0.5393814",
"0.53914654",
"0.53914654",
"0.53914654",
"0.53914654",
"0.53914654",
"0.53914654",
"0.5388098",
"0.5388098",
"0.5383383",
"0.5383235",
"0.5383235",
"0.5383235",
"0.5383235",
"0.5382786",
"0.536691",
"0.5347638",
"0.5345185",
"0.5340127",
"0.53383964",
"0.5334456",
"0.5329787",
"0.5329787",
"0.5322776",
"0.5322776",
"0.53191274",
"0.53145206",
"0.5314317",
"0.53084403",
"0.53045875",
"0.53045875",
"0.53015316",
"0.5299329",
"0.5299329",
"0.5299329",
"0.5299329",
"0.5299329",
"0.5299329",
"0.5284772",
"0.5284317",
"0.5248206",
"0.52349603",
"0.5231446",
"0.5230527",
"0.5219552",
"0.52026755",
"0.5202477",
"0.51858234",
"0.51844186",
"0.51716757",
"0.51709723",
"0.5167"
] |
0.0
|
-1
|
MD5 of the file content bytes fileHash = 1;
|
com.google.protobuf.ByteString getFileHash();
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private String getFileMd5Checksum(String filename){\n\t\ttry {\n\t\t\tbyte[] fileBytes = Files.readAllBytes(Paths.get(FILES_ROOT + filename));\n\t\t\tbyte[] fileHash = MessageDigest.getInstance(\"MD5\").digest(fileBytes);\n\n\t\t\treturn DatatypeConverter.printHexBinary(fileHash);\n\t\t} catch (IOException e) {\n\t\t\t// TODO: Handle file doesn't exist\n\t\t\treturn \"\";\n\t\t} catch (Exception e) {\n\t\t\treturn \"\";\n\t\t}\n\t}",
"public static String computeMD5FileHash (File file) throws Exception {\n byte[] b = createFileChecksum(file);\n String result = \"\";\n\n for (int i=0; i < b.length; i++) {\n result += Integer.toString( ( b[i] & 0xff ) + 0x100, 16).substring( 1 );\n }\n return result;\n }",
"private static String getMD5Checksum(String filename) throws Exception {\r\n\t\tbyte[] b = createChecksum(filename);\r\n\t\tStringBuilder result = new StringBuilder();\r\n\t\tfor (byte v : b) {\r\n\t\t\tresult.append(Integer.toString((v & 0xff) + 0x100, 16).substring(1));\r\n\t\t}\r\n\t\treturn result.toString();\r\n\t}",
"private static String getFileChecksum(File file) throws IOException, NoSuchAlgorithmException {\n FileInputStream fis = new FileInputStream(file);\n\n // Use MD5 algorithm\n MessageDigest digest = MessageDigest.getInstance(\"MD5\");\n\n // Create byte array to read data in chunks\n byte[] byteArray = new byte[1024];\n int bytesCount = 0;\n\n // Read file data and update in message digest\n while ((bytesCount = fis.read(byteArray)) != -1) {\n digest.update(byteArray, 0, bytesCount);\n }\n ;\n\n // close the stream; We don't need it now.\n fis.close();\n\n // Get the hash's bytes\n byte[] bytes = digest.digest();\n\n // This bytes[] has bytes in decimal format;\n // Convert it to hexadecimal format\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < bytes.length; i++) {\n sb.append(Integer.toString((bytes[i] & 0xff) + 0x100, 16).substring(1));\n }\n\n // return complete hash\n return sb.toString();\n }",
"public static String getFileMD5(File file) {\n\t\tMessageDigest messageDigest = null;\n\t\tFileInputStream fileInStream = null;\n\t\tbyte buffer[] = new byte[1024];\n\t\tint length = -1;\n\t\ttry {\n\t\t\tmessageDigest = MessageDigest.getInstance(\"MD5\");\n\t\t\tfileInStream = new FileInputStream(file);\n\t\t\twhile ((length = fileInStream.read(buffer, 0, 1024)) != -1) {\n\t\t\t\tmessageDigest.update(buffer, 0, length);\n\t\t\t}\n\t\t\tfileInStream.close();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t\tBigInteger bigInt = new BigInteger(1, messageDigest.digest());\n\t\treturn bigInt.toString(16);\n\t}",
"public static String fileMD5(File file) {\n\t\tFileInputStream fis = null;\n\t\tString md5 = null;\n\t\ttry {\n\t\t\tfis = new FileInputStream(file);\n\t\t\tmd5 = org.apache.commons.codec.digest.DigestUtils.md5Hex(fis);\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"!!!\", e);\n\t\t} finally {\n\t\t\tCloseUtils.close(fis);\n\t\t}\n\t\treturn md5;\n\t}",
"public static String md5(String inputFile) {\r\n String md5 = null;\r\n logger.debug(\"Start to calculate hashcode (SHA1) for {}\", inputFile);\r\n try (DigestInputStream digestIn = new DigestInputStream(new FileInputStream(inputFile),\r\n MessageDigest.getInstance(\"SHA1\"))) {\r\n byte[] buffer = new byte[1024 * 1024];\r\n while (digestIn.read(buffer) > 0) {\r\n // do nothing\r\n }\r\n md5 = toHexString(digestIn.getMessageDigest().digest());\r\n } catch (NoSuchAlgorithmException | IOException e) {\r\n logger.warn(\"Fail to md5 for {} ({})\", inputFile, e.getMessage());\r\n }\r\n logger.debug(\"End to calculate hashcode (SHA1) for {}, {}\", inputFile, md5);\r\n return md5;\r\n }",
"static String generateChecksum(String filename) {\n\n try {\n // Instantiating file and Hashing Algorithm.\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n FileInputStream file = new FileInputStream(filename);\n\n // Generation of checksum.\n byte[] dataBytes = new byte[1024];\n int nread;\n\n while ((nread = file.read(dataBytes)) != -1) {\n md.update(dataBytes, 0, nread);\n }\n\n byte[] mdbytes = md.digest();\n\n // Convert byte to hex.\n StringBuilder hexString = new StringBuilder();\n\n for (byte mdbyte : mdbytes) {\n String hex = Integer.toHexString(0xff & mdbyte);\n if (hex.length() == 1) hexString.append('0');\n hexString.append(hex);\n }\n\n // Return checksum as completed string.\n return hexString.toString();\n\n } catch (NoSuchAlgorithmException | IOException e) {\n e.printStackTrace();\n }\n return null;\n }",
"public static String getFileMD5(File file) {\n if (!file.isFile()) {\n return null;\n }\n MessageDigest digest = null;\n FileInputStream in = null;\n byte buffer[] = new byte[1024];\n int len;\n try {\n digest = MessageDigest.getInstance(\"MD5\");\n in = new FileInputStream(file);\n while ((len = in.read(buffer, 0, 1024)) != -1) {\n digest.update(buffer, 0, len);\n }\n in.close();\n } catch (Exception e) {\n e.printStackTrace();\n return null;\n }\n BigInteger bigInt = new BigInteger(1, digest.digest());\n String md5 = bigInt.toString(16);\n while (md5.length() < 32)\n md5 = \"0\" + md5;\n return md5;\n }",
"private static String getFileChecksum(MessageDigest digest, File file) throws IOException\n\t {\n\t FileInputStream fis = new FileInputStream(file);\n\t \n\t //Create byte array to read data in chunks\n\t byte[] byteArray = new byte[1024];\n\t int bytesCount = 0;\n\t \n\t //Read file data and update in message digest\n\t while ((bytesCount = fis.read(byteArray)) != -1) {\n\t digest.update(byteArray, 0, bytesCount);\n\t };\n\t \n\t //close the stream; We don't need it now.\n\t fis.close();\n\t \n\t //Get the hash's bytes\n\t byte[] bytes = digest.digest();\n\t \n\t //This bytes[] has bytes in decimal format;\n\t //Convert it to hexadecimal format\n\t StringBuilder sb = new StringBuilder();\n\t for(int i=0; i< bytes.length ;i++)\n\t {\n\t sb.append(Integer.toString((bytes[i] & 0xff) + 0x100, 16).substring(1));\n\t }\n\t \n\t //return complete hash\n\t return sb.toString();\n\t }",
"public String getMD5() {\n return hash;\n }",
"private static String getFileChecksum(MessageDigest digest, File file) throws IOException {\n FileInputStream fis = new FileInputStream(file);\n\n //Create byte array to read data in chunks\n byte[] byteArray = new byte[1024];\n int bytesCount = 0;\n\n //Read file data and update in message digest\n while ((bytesCount = fis.read(byteArray)) != -1) {\n digest.update(byteArray, 0, bytesCount);\n }\n\n //close the stream; We don't need it now.\n fis.close();\n\n //Get the hash's bytes\n byte[] bytes = digest.digest();\n\n //This bytes[] has bytes in decimal format;\n //Convert it to hexadecimal format\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < bytes.length; i++) {\n sb.append(Integer.toString((bytes[i] & 0xff) + 0x100, 16).substring(1));\n }\n\n //return complete hash\n return sb.toString();\n }",
"public static byte[] createCheckSum(String filename) throws Exception {\n InputStream fis = new FileInputStream(filename);\n\n byte[] buffer = new byte[1024];\n MessageDigest complete = MessageDigest.getInstance(\"MD5\");\n int numRead;\n\n do {\n numRead = fis.read(buffer);\n if (numRead > 0) {\n complete.update(buffer, 0, numRead);\n }\n } while (numRead != -1);\n\n fis.close();\n // Return MD5 Hash\n return complete.digest();\n }",
"public static String getFileMD5(String path) {\n\t\treturn getFileMD5(new File(path));\n\t}",
"public static String fileMD5(String filePath) {\n\t\tFileInputStream fis = null;\n\t\tString md5 = null;\n\t\ttry {\n\t\t\tfis = new FileInputStream(new File(filePath));\n\t\t\tmd5 = org.apache.commons.codec.digest.DigestUtils.md5Hex(fis);\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"!!!\", e);\n\t\t} finally {\n\t\t\tCloseUtils.close(fis);\n\t\t}\n\t\treturn md5;\n\t}",
"public static String computeMD5(String filename) throws Exception {\r\n byte[] b = createGenericChecksum(filename, 0);\r\n String result = \"\";\r\n for (int i = 0; i < b.length; i++) {\r\n result += Integer.toString((b[i] & 0xff) + 0x100, 16).substring(1);\r\n }\r\n return result;\r\n }",
"public static String getMD5(File file) throws IOException, NoSuchAlgorithmException {\n return getChecksum(file, MessageDigest.getInstance(\"MD5\"));\n }",
"protected void md5file(File file) throws IOException {\n if (file.isDirectory()) {\n throw new IllegalArgumentException(\"Only files can be check summed !\");\n }\n\n // calculating the output\n byte[] md5 = DigestUtils.md5(new FileInputStream(file));\n\n // getting the output file\n File outputFile = new File(file.getAbsolutePath() + \".md5\");\n Files.write(Paths.get(outputFile.getAbsolutePath()), md5);\n\n }",
"String saveData(MultipartFile md5File) throws IOException;",
"@java.lang.Override\n public com.google.protobuf.ByteString getFileHash() {\n return fileHash_;\n }",
"@java.lang.Override\n public com.google.protobuf.ByteString getFileHash() {\n return fileHash_;\n }",
"byte[] getFile(String sha) throws Exception;",
"@java.lang.Override\n public com.google.protobuf.ByteString getFileHash() {\n return fileHash_;\n }",
"@java.lang.Override\n public com.google.protobuf.ByteString getFileHash() {\n return fileHash_;\n }",
"byte[] getDigest();",
"private String fileChecksum(File tmpFile, ITaskMonitor monitor) {\n InputStream is = null;\n try {\n is = new FileInputStream(tmpFile);\n MessageDigest digester = getChecksumType().getMessageDigest();\n byte[] buf = new byte[65536];\n int n;\n while ((n = is.read(buf)) >= 0) {\n if (n > 0) {\n digester.update(buf, 0, n);\n }\n }\n return getDigestChecksum(digester);\n } catch (FileNotFoundException e) {\n monitor.setResult(\"File not found: %1$s\", e.getMessage());\n } catch (Exception e) {\n monitor.setResult(e.getMessage());\n } finally {\n if (is != null) {\n try {\n is.close();\n } catch (IOException e) {\n }\n }\n }\n return \"\";\n }",
"public static String getFileChecksum(MessageDigest digest, String filePath) throws IOException {\n\t\tFileInputStream fis = new FileInputStream(filePath);\n\n\t\t// Create byte array to read data in chunks\n\t\tbyte[] byteArray = new byte[1024];\n\t\tint bytesCount = 0;\n\n\t\t// Read file data and update in message digest\n\t\twhile ((bytesCount = fis.read(byteArray)) != -1) {\n\t\t\tdigest.update(byteArray, 0, bytesCount);\n\t\t}\n\t\t;\n\n\t\t// close the stream; We don't need it now.\n\t\tfis.close();\n\n\t\t// Get the hash's bytes\n\t\tbyte[] bytes = digest.digest();\n\n\t\t// This bytes[] has bytes in decimal format;\n\t\t// Convert it to hexadecimal format\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor (int i = 0; i < bytes.length; i++) {\n\t\t\tsb.append(Integer.toString((bytes[i] & 0xff) + 0x100, 16).substring(1));\n\t\t}\n\n\t\t// return complete hash\n\t\treturn sb.toString();\n\t}",
"public static byte[] encryptMD5File(final File file) {\n if (file == null) return null;\n FileInputStream fis = null;\n DigestInputStream digestInputStream;\n try {\n fis = new FileInputStream(file);\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n digestInputStream = new DigestInputStream(fis, md);\n byte[] buffer = new byte[256 * 1024];\n while (true) {\n if (!(digestInputStream.read(buffer) > 0)) break;\n }\n md = digestInputStream.getMessageDigest();\n return md.digest();\n } catch (NoSuchAlgorithmException | IOException e) {\n e.printStackTrace();\n return null;\n } finally {\n try {\n if (fis != null) {\n fis.close();\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }",
"byte[] digest();",
"@Test\n public void fileMd5Test() {\n // TODO: test fileMd5\n }",
"public String getMd5Hash() {\n return md5Hash;\n }",
"public String getMD5() {\n return m_module.getConfiguration().getMD5();\n }",
"public static String CreateMD5(File file) {\n String base64Image = \"\";\n try (FileInputStream imageInFile = new FileInputStream(file)) {\n // Reading a Image file from file system\n byte imageData[] = new byte[(int) file.length()];\n imageInFile.read(imageData);\n base64Image = Base64.getEncoder().encodeToString(imageData);\n } catch (FileNotFoundException e) {\n DialogWindow.ShowErrorPane(\"Image could not be found.\", \"Error Image Missing\");\n// System.out.println(\"Image not found\" + e);\n } catch (IOException ioe) {\n DialogWindow.ShowErrorPane(\"Error while the image was being converted.\", \"Error Converting Image\");\n// System.out.println(\"Exception while reading the Image \" + ioe);\n }\n return base64Image;\n }",
"public BoxFileUploadRequestObject setContentMD5(String sha1) {\n getRequestExtras().addHeader(Constants.CONTENT_MD5, sha1);\n return this;\n }",
"public static byte[] computeMD5Hash(InputStream is) throws NoSuchAlgorithmException, IOException {\n BufferedInputStream bis = new BufferedInputStream(is);\n try {\n MessageDigest messageDigest = MessageDigest.getInstance(\"MD5\");\n byte[] buffer = new byte[16384];\n int bytesRead = -1;\n while ((bytesRead = bis.read(buffer, 0, buffer.length)) != -1) {\n messageDigest.update(buffer, 0, bytesRead);\n }\n return messageDigest.digest();\n } finally {\n try {\n bis.close();\n } catch (Exception e) {\n System.err.println(\"Unable to close input stream of hash candidate: \" + e);\n }\n }\n }",
"public byte[] getContentMd5() {\n return CoreUtils.clone(this.contentMd5);\n }",
"private static String md5(byte[] b) {\n try {\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n md.reset();\n md.update(b);\n byte[] digest = md.digest();\n StringBuffer sb = new StringBuffer();\n for (int i=0; i<digest.length; i++) {\n String a = Integer.toHexString(0xff & digest[i]);\n if (a.length() == 1) a = \"0\" + a;\n sb.append(a);\n }\n return sb.toString();\n }\n catch (NoSuchAlgorithmException e) { writeLog(e); }\n return null;\n }",
"private int getFileContentHashCode(Path filePath) throws IOException {\n return Arrays.hashCode(Files.readAllBytes(filePath));\n }",
"public static void md5(File outputFile) throws ConverterException {\r\n\t\ttry {\r\n\t\t\tFileInputStream fileInputStream = new FileInputStream(outputFile);\r\n\t\t\tBufferedInputStream bufferedInputStream = new BufferedInputStream(fileInputStream);\r\n\t\t\t\r\n\t\t\tbyte[] datei = bufferedInputStream.readAllBytes();\r\n\t\t\tMessageDigest md = MessageDigest.getInstance(\"MD5\");\r\n\t\t\tbyte[] md5 = md.digest(datei);\r\n\t\t\tfor (int i = 0; i < md5.length; i++) {\r\n\t\t\t\tSystem.out.print(String.format(\"%02X\", md5[i]));\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\" File Length: \" + outputFile.length());\r\n\t\t\tSystem.out.println();\r\n\t\t\t\r\n\t\t\tbufferedInputStream.close();\r\n\t\t\tfileInputStream.close();\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\tthrow new ConverterException(\"Datei kann nicht gefunden werden\");\r\n\t\t} catch (IOException e) {\r\n\t\t\tthrow new ConverterException(\"Beim Lesen der Datei ist ein Fehler aufgetreten\");\r\n\t\t} catch (NoSuchAlgorithmException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"private String calculateCheckSum(File file2) {\n\t\tStringBuffer sb = new StringBuffer(\"\");\n\t\ttry {\n\t\t\tMessageDigest messageDigest = MessageDigest.getInstance(\"SHA1\");\n\n\t\t\tFileInputStream finput = new FileInputStream(file2);\n\t\t\tbyte[] dataBytes = new byte[1024];\n\n\t\t\tint bytesRead = 0;\n\n\t\t\twhile ((bytesRead = finput.read(dataBytes)) != -1) {\n\t\t\t\tmessageDigest.update(dataBytes, 0, bytesRead);\n\t\t\t}\n\n\t\t\tbyte[] digestBytes = messageDigest.digest();\n\n\t\t\tfor (int i = 0; i < digestBytes.length; i++) {\n\t\t\t\tsb.append(Integer.toString((digestBytes[i] & 0xff) + 0x100, 16).substring(1));\n\t\t\t}\n\t\t\tSystem.out.println(\"file check sum value is \" + sb.toString());\n\t\t\tfinput.close();\n\t\t} catch (Exception ex) {\n\t\t\t// TODO: handle exception\n\t\t\tLogger.getLogger(FileTransferClient.class.getName()).log(Level.SEVERE, null, ex);\n\t\t}\n\n\t\treturn sb.toString();\n\t}",
"public static byte[] computeMD5Hash(byte[] data) throws NoSuchAlgorithmException, IOException {\n return computeMD5Hash(new ByteArrayInputStream(data));\n }",
"public byte[] getMD5() {\n return MD5;\n }",
"public Digest (File appdir)\n throws IOException\n {\n // parse and validate our digest file contents\n StringBuffer data = new StringBuffer();\n File dfile = new File(appdir, DIGEST_FILE);\n List pairs = ConfigUtil.parsePairs(dfile, false);\n for (Iterator iter = pairs.iterator(); iter.hasNext(); ) {\n String[] pair = (String[])iter.next();\n if (pair[0].equals(DIGEST_FILE)) {\n _metaDigest = pair[1];\n break;\n }\n _digests.put(pair[0], pair[1]);\n note(data, pair[0], pair[1]);\n }\n \n // we've reached the end, validate our contents\n MessageDigest md = getMessageDigest();\n byte[] contents = data.toString().getBytes(\"UTF-8\");\n String md5 = StringUtil.hexlate(md.digest(contents));\n if (!md5.equals(_metaDigest)) {\n String err = MessageUtil.tcompose(\n \"m.invalid_digest_file\", _metaDigest, md5);\n throw new IOException(err);\n }\n }",
"public byte[] MD5(File archivo) throws OpenSSL_Exception {\n\t\tString[] comando = new String[]{ \"openssl\" , \"dgst\" , \"-md5\" , archivo.getAbsolutePath()};\n\t\tProcess terminal = null;\n\t\ttry { terminal = Runtime.getRuntime().exec(comando); } catch (IOException e) { \n\t\t\tthrow new OpenSSL_Exception(\"No se puede ejecutar el comando en el terminal\");\n\t\t}\n\t\t// --- > Leemos la salida error del comando\n\t\tBufferedReader errors = new BufferedReader(new InputStreamReader(terminal.getErrorStream()));\n\t\tString linea = \"\" , error = \"\" ;\n\t\ttry { while( (linea = errors.readLine()) != null) error += linea + \"\\n\"; } catch (IOException e) {\n\t\t\tthrow new OpenSSL_Exception(\"No se puede leer el error que ha producido el comando\");\n\t\t}\n\t\t// --- > Si hubo salida error lanzamos al excepcion con el error\n\t\tif(!error.equals(\"\"))throw new OpenSSL_Exception(\"Error al ejecutar el comando:\\n\" + error );\n\t\t// --- > Leemos el resultado obtenido\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(terminal.getInputStream()));\n\t\tString res = \"\";\n\t\ttry { while((linea = in.readLine()) != null) res += linea; } catch (IOException e) {\n\t\t\tthrow new OpenSSL_Exception(\"No se puede leer el resultado que ha producido el comando\");\n\t\t}\n\t\treturn res.substring(res.lastIndexOf(\" \") + 1 ).getBytes();\n\t}",
"public byte[] getHash()\n\t{\n\t\treturn md5.getHash();\n\t}",
"@Test\n public void md5Checksum() throws NoSuchAlgorithmException {\n String string = Utils.md5Checksum(\"abcde fghijk lmn op\");\n Assert.assertEquals(\"1580420c86bbc3b356f6c40d46b53fc8\", string);\n }",
"public static String md5(String pass)\n {\n try{\n MessageDigest md=MessageDigest.getInstance(\"MD5\");\n byte[] messageDigest=md.digest(pass.getBytes());\n BigInteger num=new BigInteger(1,messageDigest);\n String hashText=num.toString(16);\n while(hashText.length()<32)\n {\n hashText=\"0\"+hashText;\n } \n return hashText; \n }\n catch(Exception e)\n { \n throw new RuntimeException(e);\n } \n }",
"public static void main(String[] args) throws NoSuchAlgorithmException, FileNotFoundException, IOException {\n \r\n String hash = \"F5D080D4F4E185DECA8A8B24F72408D9\";\r\n String [] keys = {\"9A1BA7F38A3E8D8F9DDD55972868CB3F\",\"17185CEF199E1C89804EDEE9DCDD1B90\",\"F5D080D4F4E185DECA8A8B24F72408D9\"};\r\n String password = \"NoSuchPassword\";\r\n File file = null;\r\n JFileChooser ff = new JFileChooser();\r\n int a = ff.showOpenDialog(null);\r\n if(a == JFileChooser.APPROVE_OPTION){\r\n try {\r\n file = ff.getSelectedFile();\r\n JOptionPane.showMessageDialog(ff, a);\r\n \r\n } catch (Exception ex) {\r\n ex.printStackTrace();\r\n } finally {\r\n System.out.println(file.getPath());\r\n }\r\n } \r\n BufferedReader fr = null;\r\n fr = new BufferedReader(new FileReader(file.getPath()));\r\n String line = null;\r\n int i = 0; \r\n //This is the funtion that Java implement in java.security.MessageDigest\r\n MessageDigest md5 = MessageDigest.getInstance(\"MD5\");\r\n while((line = fr.readLine()) != null){\r\n System.out.println(line);\r\n md5.update(line.getBytes());\r\n byte [] digests = md5.digest();\r\n String hashs = DatatypeConverter.printHexBinary(digests).toUpperCase();\r\n if(keys[i].equals(hashs)){\r\n System.out.println(\"CORRECT!\\nThe hash created is the same as the hash saved \");\r\n }\r\n else{\r\n System.out.println(\"ERROR!\\nThere was a mistake, the hash create doesn't mach the hash saved\");\r\n }\r\n i++;\r\n } \r\n fr.close();\r\n /**In conclusion we can use the MD5 for digest a words and then same them\r\n * is a DataBase, this with the function that if the DB is committed the\r\n * passwords will not be there\r\n */\r\n }",
"public ShareFileHttpHeaders setContentMd5(byte[] contentMd5) {\n this.contentMd5 = CoreUtils.clone(contentMd5);\n return this;\n }",
"public String getMD5ForGame(String gameId) {\n return \"TODO\";\n }",
"public static String md5(String message) {\n String digest = null;\n try {\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n byte[] hash = md.digest(message.getBytes(\"UTF-8\"));\n\n //converting byte array to HexadecimalString\n StringBuilder sb = new StringBuilder(2 * hash.length);\n for (byte b : hash) {\n sb.append(String.format(\"%02x\", b & 0xff));\n }\n digest = sb.toString();\n } catch (UnsupportedEncodingException ex) {\n log.error(\"UnsupportedEncodingException\",ex);\n } catch (NoSuchAlgorithmException ex) {\n log.error(\"NoSuchAlgorithmException\",ex);\n }\n\n return digest;\n }",
"protected String getFileETag(File file) {\n\t\tFileInputStream is = null;\n\t\ttry {\n\t\t\tis = new FileInputStream(file);\n\t\t\treturn \"\\\"\" + DigestUtils.md5Hex(is) + \"\\\"\";\n\t\t} catch (IOException e) {\n\t\t\treturn \"\";\n\t\t} finally {\n\t\t\tcloseQuietly(is);\n\t\t}\n\t}",
"private static byte[] m14295fl(String str) {\n try {\n MessageDigest instance = MessageDigest.getInstance(\"MD5\");\n if (instance == null) {\n return str.getBytes();\n }\n instance.update(str.getBytes());\n return instance.digest();\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n return str.getBytes();\n }\n }",
"protected String getMd5Hash(String token) {\n\n MessageDigest m;\n\t\ttry {\n\t\t\tm = MessageDigest.getInstance(\"MD5\");\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\tthrow new IllegalStateException(e);\n\t\t}\n m.update(token.getBytes());\n \n byte[] digest = m.digest();\n BigInteger bigInt = new BigInteger(1,digest);\n String hashtext = bigInt.toString(16);\n \n // Now we need to zero pad it if you actually want the full 32 chars.\n while(hashtext.length() < 32 ){\n hashtext = \"0\"+hashtext;\n }\n \n return hashtext;\n\t}",
"public static String toSHA1(String filename){\n\t\tMessageDigest md=null;\n\t\ttry{\n\t\t\tmd = MessageDigest.getInstance(\"SHA-1\");\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\ttry{\n\t\t\tFileInputStream in = new FileInputStream(filename);\n\t\t\tBufferedInputStream buffIn = new BufferedInputStream(in);\n\t\t\tDigestInputStream dis = new DigestInputStream(buffIn, md);\n\t\t\t\n\t\t\tFile f = new File(filename);\n\t\t\tLong fileSize = f.length();\n\t\t\t\n\t\t\tString blob = \"blob \" + fileSize.toString() + '\\0';\n\t\t\tmd.update(blob.getBytes());\n\t\t\t\t\t\t\n\t\t\t// read the file and update the hash calculation\n while (dis.read() != -1);\n\n // get the hash value as byte array\n byte[] hash = md.digest();\n\n return byteArray2Hex(hash);\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\t\n\t\treturn \"\";\n\t}",
"public static byte[] encryptMD5File(final String filePath) {\n File file = isSpace(filePath) ? null : new File(filePath);\n return encryptMD5File(file);\n }",
"public boolean IsFileMd5Equeal(UploadReport report) {\r\n\t\tString filename = this.conf.getFtpMountDirectory() + \"/DATA/\" + report.getFilename();\r\n\t\tString md5value = MD5Util.getFileMD5(new File(filename));\r\n\t\tFile file = new File(filename);\r\n\t\tif (file.exists()) {\r\n\t\t\tif (md5value.compareTo(report.getMd5value()) == 0) {\r\n\t\t\t\treturn true;\r\n\t\t\t} else {\r\n\t\t\t\tLogUtils.logger.error(\"Error happened when Caculate MD5 value, Original value: \" + report.getMd5value()\r\n\t\t\t\t\t\t+ \", New value : \" + md5value);\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tLogUtils.logger.error(\"Error happened when Caculate MD5 value, File: \" + filename + \" does not exist! \");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"public static String mySHA(String file) {\n\t\ttry {\n\t\t\t// java.security.MessageDigest digest = null;\n\t\t\t// digest = java.security.MessageDigest.getInstance(\"SHA-1\");\n\t\t\t// digest.reset();\n\t\t\t// digest.update(x.getBytes(\"UTF-8\"));\n\t\t\t// digest.update(x.getBytes(\"UTF-8\"));\n\t\t\t// return digest.digest();\n\t\t\tMessageDigest sha1 = MessageDigest.getInstance(\"SHA1\");\n\t\t\tFileInputStream fis = new FileInputStream(file);\n\n\t\t\tbyte[] data = new byte[1024];\n\t\t\tint read = 0;\n\t\t\twhile ((read = fis.read(data)) != -1) {\n\t\t\t\tsha1.update(data, 0, read);\n\t\t\t}\n\t\t\t;\n\t\t\tbyte[] hashBytes = sha1.digest();\n\n\t\t\tStringBuffer sb = new StringBuffer();\n\t\t\tfor (int i = 0; i < hashBytes.length; i++) {\n\t\t\t\tsb.append(Integer.toString((hashBytes[i] & 0xff) + 0x100, 16).substring(1));\n\t\t\t}\n\n\t\t\tString fileHash = sb.toString();\n\t\t\treturn fileHash;\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(e);\n\t\t\tString s = \"-1\";\n\t\t\treturn s;\n\t\t}\n\t}",
"public static String computeSHA(byte[] filebytes) throws NoSuchAlgorithmException {\r\n\t\tMessageDigest messageDigest = MessageDigest.getInstance(\"SHA-1\");\r\n\t\tbyte[] hash = messageDigest.digest(filebytes);\r\n\t\t\r\n\t\tFormatter formatter = new Formatter();\r\n\t\t\r\n\t\tfor (byte b : hash) {\r\n\t\t\tformatter.format(\"%02x\", b);\r\n\t\t}\r\n\t\t\r\n\t\treturn formatter.toString();\r\n\t}",
"public String getMD5Checksum(String pid, String dsName) throws FedoraException, IOException {\r\n try {\r\n return getDatastreamProperty(pid, dsName, DatastreamProfile.DatastreamProperty.DS_CHECKSUM);\r\n } catch (XPathExpressionException ex) {\r\n throw new FedoraException(ex);\r\n } catch (SAXException ex) {\r\n throw new FedoraException(ex);\r\n } catch (ParserConfigurationException ex) {\r\n throw new FedoraException(ex);\r\n }\r\n }",
"public String getHashsum(String file_name) {\n\t\t//\n\t\t// query database\n\t\t//\n\t\tCursor cursor = m_db.query(FILE_TABLE_NAME,\n\t\t\t\tnew String[] { FILE_FIELD_HASH_SUM }, FILE_FIELD_PATH + \"=?\",\n\t\t\t\tnew String[] { file_name }, null, null, null);\n\n\t\t//\n\t\t// get first entry of result set\n\t\t//\n\t\tString result = getFirstEntryOfResultSet(cursor);\n\n\t\t//\n\t\t// close cursor\n\t\t//\n\t\tcursor.close();\n\n\t\t//\n\t\t// done\n\t\t//\n\t\treturn result;\n\n\t}",
"java.lang.String getChecksum();",
"private static java.security.MessageDigest f() {\n /*\n r0 = \"MD5\";\n r1 = j;\n r0 = r0.equals(r1);\n if (r0 == 0) goto L_0x003a;\n L_0x000a:\n r0 = java.security.Security.getProviders();\n r1 = r0.length;\n r2 = 0;\n L_0x0010:\n if (r2 >= r1) goto L_0x003a;\n L_0x0012:\n r3 = r0[r2];\n r3 = r3.getServices();\n r3 = r3.iterator();\n L_0x001c:\n r4 = r3.hasNext();\n if (r4 == 0) goto L_0x0037;\n L_0x0022:\n r4 = r3.next();\n r4 = (java.security.Provider.Service) r4;\n r4 = r4.getAlgorithm();\n j = r4;\n r4 = j;\t Catch:{ NoSuchAlgorithmException -> 0x001c }\n r4 = java.security.MessageDigest.getInstance(r4);\t Catch:{ NoSuchAlgorithmException -> 0x001c }\n if (r4 == 0) goto L_0x001c;\n L_0x0036:\n return r4;\n L_0x0037:\n r2 = r2 + 1;\n goto L_0x0010;\n L_0x003a:\n r0 = 0;\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.koushikdutta.async.util.FileCache.f():java.security.MessageDigest\");\n }",
"public String getHashString()\n\t{\n\t\treturn md5.getHashString();\n\t}",
"public Builder setFileHash(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n fileHash_ = value;\n onChanged();\n return this;\n }",
"public Builder setFileHash(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n fileHash_ = value;\n onChanged();\n return this;\n }",
"public static String createMd5(String value)\r\n\t{ \r\n\t\ttry \r\n\t\t{\r\n\t\t\tMessageDigest md = MessageDigest.getInstance(\"MD5\");\t\t\t\r\n\t\t\tbyte[] hashInBytes = md.digest(value.getBytes(StandardCharsets.UTF_8));\r\n\t\t\tStringBuilder sb = new StringBuilder();\r\n\t for (byte b : hashInBytes) \r\n\t {\r\n\t sb.append(String.format(\"%02x\", b));\r\n\t }\r\n\t return sb.toString();\r\n\t\t}\r\n\t\tcatch(Exception ex)\r\n\t\t{\r\n\t\t\t\r\n\t\t}\r\n\t\treturn \"\";\r\n\t}",
"public static String hash(File remoteFsRoot) {\n logger.config(\"hash() invoked\");\n\n StringBuilder buf = new StringBuilder();\n try {\n buf.append(remoteFsRoot.getCanonicalPath()).append('\\n');\n } catch (IOException e) {\n logger.log(Level.FINER, \"hash() IOException - may be normal?\", e);\n buf.append(remoteFsRoot.getAbsolutePath()).append('\\n');\n }\n try {\n for (NetworkInterface ni : Collections.list(NetworkInterface.getNetworkInterfaces())) {\n for (InetAddress ia : Collections.list(ni.getInetAddresses())) {\n if (ia instanceof Inet4Address) {\n buf.append(ia.getHostAddress()).append('\\n');\n } else if (ia instanceof Inet6Address) {\n buf.append(ia.getHostAddress()).append('\\n');\n }\n }\n byte[] hardwareAddress = ni.getHardwareAddress();\n if (hardwareAddress != null) {\n buf.append(Arrays.toString(hardwareAddress));\n }\n }\n } catch (SocketException e) {\n // oh well we tried\n logger.log(Level.FINEST, \"hash() SocketException - 'oh well we tried'\", e);\n }\n return DigestUtils.md5Hex(buf.toString()).substring(0, 8);\n }",
"public static String getMD5(final File file) {\n if (file == null || !file.exists()) {\n return null;\n }\n\n FileInputStream fin = null;\n try {\n fin = new FileInputStream(file);\n String md5 = getMD5(fin);\n return md5;\n } catch (Exception e) {\n return null;\n } finally {\n closeQuietly(fin);\n }\n }",
"public static String getMd5(String input) {\n try {\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n\n byte[] messageDigest = md.digest(input.getBytes());\n\n BigInteger no = new BigInteger(1, messageDigest);\n\n String hashtext = no.toString(16);\n while (hashtext.length() < 32) {\n hashtext = \"0\" + hashtext;\n }\n return hashtext;\n } catch (NoSuchAlgorithmException e) {\n throw new RuntimeException(e);\n }\n }",
"public String getMD5(String txt){\n String md5output;\n md5output = txt;\n try {\n MessageDigest m = MessageDigest.getInstance(\"MD5\");\n m.reset();\n m.update(md5output.getBytes());\n byte[] digest = m.digest();\n BigInteger bigInt = new BigInteger(1,digest);\n md5output = bigInt.toString(16);\n } catch (Exception e) {\n md5output = null;\n } finally{\n return md5output;\n }\n \n }",
"private static byte[] generateMD5(String info) throws\n UnsupportedEncodingException, NoSuchAlgorithmException {\n byte[] inputData = info.getBytes(\"UTF-8\");\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n md.update(inputData);\n byte[] digest= md.digest();\n return digest;\n }",
"public String getHash(String str) throws Exception{\n\t\t\n\t\tMessageDigest md = MessageDigest.getInstance(\"MD5\");\n md.update(str.getBytes());\n \n byte byteData[] = md.digest();\n \n //convert the byte to hex format method 1\n StringBuffer sb = new StringBuffer();\n for (int i = 0; i < byteData.length; i++) {\n sb.append(Integer.toString((byteData[i] & 0xff) + 0x100, 16).substring(1));\n }\n \n String hex = sb.toString();\n System.out.println(hex);\n return hex; \n}",
"public static String getMD5(String s) {\n try {\n MessageDigest m = MessageDigest.getInstance(\"MD5\");\n m.update(s.getBytes(), 0, s.length());\n return \"\" + new BigInteger(1, m.digest()).toString(16);\n } catch (NoSuchAlgorithmException e) {\n logger.error(\"MD5 is not supported !!!\");\n }\n return s;\n }",
"public byte[] calc_hash(File filename)\r\n {\r\n\tint digest_length = 512;\r\n\tbyte message[] = new byte[digest_length];\r\n\tbyte key[] = new byte[0];\r\n\tMessageDigest sha;\r\n\tint message_size;\r\n\tlong file_size = 0;\r\n\r\n\ttry{\r\n\t sha = MessageDigest.getInstance(algorithm, provider);\r\n\r\n\t try{\r\n\t\t/* Read file into byte array, and use array to update hash key */\r\n\t\tFileInputStream fin = new FileInputStream(filename);\r\n\t\twhile((message_size = fin.read(message)) != -1)\r\n\t\t {\r\n\t\t\tif(message_size < digest_length)\r\n\t\t\t sha.update(message, 0, message_size);\r\n\t\t\telse\r\n\t\t\t sha.update(message);\r\n\t\t }\r\n\t\tfin.close();\r\n\r\n\t\tkey = sha.digest();\r\n\t }\r\n\t catch(IOException ioe){\r\n\t\tSystem.out.println(\"Error (calc_hash): Unable to open and read file \" + filename.getName());\r\n\t\tioe.printStackTrace();\r\n\t\treturn null;\r\n\t }\r\n\t}\r\n\tcatch(NoSuchAlgorithmException nae){\r\n\t System.out.println(\"Error (calc_hash): hash algorithm \" + algorithm + \" not found\");\r\n\t nae.printStackTrace();\r\n\t return null;\r\n\t}\r\n\tcatch(NoSuchProviderException npe){\r\n\t System.out.println(\"Error (calc_hash): Security provider \" + provider + \" not found\");\r\n\t npe.printStackTrace();\r\n\t return null;\r\n\t}\r\n\r\n\treturn key;\r\n }",
"public HashCode getInstallMD5() {\n return installMD5;\n }",
"public static String getStringMD5(String src) {\n\t\tMessageDigest messageDigest = null;\n\t\tbyte[] srcBytes = src.getBytes();\n\t\ttry {\n\t\t\tmessageDigest = MessageDigest.getInstance(\"MD5\");\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tmessageDigest.update(srcBytes, 0, srcBytes.length);\n\t\tBigInteger bigInt = new BigInteger(1, messageDigest.digest());\n\t\treturn bigInt.toString(16);\n\t}",
"public static byte[] encryptMD5(final byte[] data) {\n return hashTemplate(data, \"MD5\");\n }",
"public String md5(String s) {\n try {\n // Create MD5 Hash\n MessageDigest digest = java.security.MessageDigest.getInstance(\"MD5\");\n digest.update(s.getBytes());\n byte messageDigest[] = digest.digest();\n\n // Create Hex String\n StringBuffer hexString = new StringBuffer();\n for (int i = 0; i < messageDigest.length; i++)\n hexString.append(Integer.toHexString(0xFF & messageDigest[i]));\n return hexString.toString();\n\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n }\n return \"\";\n }",
"private static String md5(String str) {\n\n if (str == null) {\n return null;\n }\n\n MessageDigest messageDigest = null;\n\n try {\n messageDigest = MessageDigest.getInstance(HttpConf.signType);\n messageDigest.reset();\n messageDigest.update(str.getBytes(HttpConf.charset));\n } catch (NoSuchAlgorithmException e) {\n\n return str;\n } catch (UnsupportedEncodingException e) {\n return str;\n }\n\n byte[] byteArray = messageDigest.digest();\n\n StringBuffer md5StrBuff = new StringBuffer();\n\n for (int i = 0; i < byteArray.length; i++) {\n if (Integer.toHexString(0xFF & byteArray[i]).length() == 1) {\n md5StrBuff.append(\"0\").append(Integer.toHexString(0xFF & byteArray[i]));\n } else {\n md5StrBuff.append(Integer.toHexString(0xFF & byteArray[i]));\n }\n }\n\n return md5StrBuff.toString();\n }",
"private static void compareSha(String filename) {\n\n\t\tMessageDigest md = null;\n\n\t\ttry (InputStream is = new BufferedInputStream(new FileInputStream(filename))) {\n\n\t\t\tbyte[] data = new byte[4096];\n\t\t\tint nRead;\n\t\t\tmd = MessageDigest.getInstance(\"SHA-256\");\n\n\t\t\twhile ((nRead = is.read(data)) != -1) {\n\t\t\t\tmd.update(data, 0, nRead);\n\t\t\t}\n\n\t\t} catch (FileNotFoundException exc) {\n\t\t\tSystem.out.println(\n\t\t\t\t\t\"File does not exist, is a directory rather than a regular file, or cannot be opened for reading because of some other reason\");\n\t\t\tSystem.exit(1);\n\n\t\t} catch (IOException exc) {\n\t\t\tSystem.out.println(\"Input stream couldn't be initialized.\");\n\t\t\tSystem.exit(1);\n\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\tSystem.out.println(\"No provider supports a MessageDigestSpi implementation for the specified algorithm.\");\n\t\t\tSystem.exit(1);\n\t\t}\n\n\t\tString sha256Digest = Util.bytetohex(md.digest());\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tSystem.out.println(\"Please provide expected sha-256 digest for hw06part2.pdf: \");\n\t\tSystem.out.print(\">\");\n\t\tString expectedDigest = sc.nextLine();\n\t\tsc.close();\n\n\t\tif (sha256Digest.equals(expectedDigest)) {\n\t\t\tSystem.out.printf(\"Digesting completed. Digest of %s matches expected digest.\\n\", filename);\n\n\t\t} else {\n\t\t\tSystem.out.printf(\"Digesting completed. Digest of %s does not match the expected digest. Digest was: %s\\n\",\n\t\t\t\t\tfilename, sha256Digest);\n\t\t}\n\n\t}",
"private static String md5(final String s) {\n final String MD5 = \"MD5\";\n try {\n // Create MD5 Hash\n MessageDigest digest = java.security.MessageDigest\n .getInstance(MD5);\n digest.update(s.getBytes());\n byte messageDigest[] = digest.digest();\n\n // Create Hex String\n StringBuilder hexString = new StringBuilder();\n for (byte aMessageDigest : messageDigest) {\n String h = Integer.toHexString(0xFF & aMessageDigest);\n while (h.length() < 2)\n h = \"0\" + h;\n hexString.append(h);\n }\n return hexString.toString();\n\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n }\n return \"\";\n }",
"String getHash();",
"String getHash();",
"public MD5Hash(String s) {\n\t\tif(s.length() != 32) throw new IllegalArgumentException(\"Hash must have 32 characters\");\n\t\thashString = s;\n\t}",
"private String md5(String input) {\r\n\t\tString md5 = null;\r\n\t\tif (null == input)\r\n\t\t\treturn null;\r\n\r\n\t\ttry {\r\n\t\t\tMessageDigest digest = MessageDigest.getInstance(\"MD5\");\r\n\t\t\tdigest.update(input.getBytes(), 0, input.length());\r\n\t\t\tmd5 = new BigInteger(1, digest.digest()).toString(16);\r\n\t\t} catch (NoSuchAlgorithmException e) {\r\n\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn md5;\r\n\t}",
"private static String getKeyByMd5(String url) {\n String key;\n try {\n MessageDigest messageDigest = MessageDigest.getInstance(\"MD5\");\n messageDigest.update(url.getBytes());\n key = md5Encryption(messageDigest.digest());\n return key;\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n key = String.valueOf(url.hashCode());\n }\n return key;\n }",
"public static String md5(final String data) {\n return ByteString.encodeUtf8(data).md5().hex().toLowerCase();\n }",
"private String md5(final String s)\n\t{\n\t\ttry {\n\t\t\t// Create MD5 Hash\n\t\t\tMessageDigest digest = MessageDigest.getInstance(\"MD5\");\n\t\t\tdigest.update(s.getBytes());\n\t\t\tbyte messageDigest[] = digest.digest();\n\n\t\t\t// Create Hex String\n\t\t\tStringBuffer hexString = new StringBuffer();\n\t\t\tfor (int i=0; i<messageDigest.length; i++) {\n\t\t\t\tString h = Integer.toHexString(0xFF & messageDigest[i]);\n\t\t\t\twhile (h.length() < 2) h = \"0\" + h;\n\t\t\t\thexString.append(h);\n\t\t\t}\n\t\t\treturn hexString.toString();\n\t\t} catch(NoSuchAlgorithmException e) {\n\t\t\t//Logger.logStackTrace(TAG,e);\n\t\t}\n\t\treturn \"\";\n\t}",
"java.lang.String getHashData();",
"com.google.protobuf.ByteString getHash();",
"com.google.protobuf.ByteString getHash();",
"public static String hash(String data) {\n\t MessageDigest md;\n\t\ttry {\n\t\t\tmd = MessageDigest.getInstance(\"MD5\");\n\t\t md.update(data.getBytes());\n\t\t byte[] digest = md.digest();\n\t\t char[] HEX_ARRAY = \"0123456789ABCDEF\".toCharArray();\n\t char[] hexChars = new char[digest.length * 2];\n\t for (int j = 0; j < digest.length; j++) {\n\t int v = digest[j] & 0xFF;\n\t hexChars[j * 2] = HEX_ARRAY[v >>> 4];\n\t hexChars[j * 2 + 1] = HEX_ARRAY[v & 0x0F];\n\t }\n\t return new String(hexChars);\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n return null;\n\t}",
"public static String getMD5Hash(String string) {\r\n\t\tMessageDigest digest;\r\n\t\ttry {\r\n\t\t\tdigest = java.security.MessageDigest.getInstance(\"MD5\");\r\n\t\t\tdigest.update(string.getBytes());\r\n\t\t\tfinal byte[] hash = digest.digest();\r\n\t\t\tfinal StringBuilder result = new StringBuilder(hash.length);\r\n\t\t\tfor (int i = 0; i < hash.length; i++) {\r\n\t\t\t\tresult.append(Integer.toString((hash[i] & 0xff) + 0x100, 16)\r\n\t\t\t\t\t\t.substring(1));\r\n\t\t\t}\r\n\t\t\treturn result.toString();\r\n\t\t} catch (final NoSuchAlgorithmException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn \"error\";\r\n\t\t}\r\n\t}",
"int getHash();",
"public static String md5(String str) {\n MessageDigest messageDigest = null;\n try {\n messageDigest = MessageDigest.getInstance(\"MD5\");\n messageDigest.reset();\n messageDigest.update(str.getBytes(\"UTF-8\"));\n } catch (NoSuchAlgorithmException | UnsupportedEncodingException e) {\n // do nothing\n }\n byte[] byteArray = messageDigest.digest();\n StringBuffer md5StrBuff = new StringBuffer();\n for (int i = 0; i < byteArray.length; i++) {\n if (Integer.toHexString(0xFF & byteArray[i]).length() == 1)\n md5StrBuff.append(\"0\").append(Integer.toHexString(0xFF & byteArray[i]));\n else\n md5StrBuff.append(Integer.toHexString(0xFF & byteArray[i]));\n }\n return md5StrBuff.toString();\n }",
"private String md5(String message) throws java.security.NoSuchAlgorithmException\n\t{\n\t\tMessageDigest md5 = null;\n\t\ttry {\n\t\t\tmd5 = MessageDigest.getInstance(\"MD5\");\n\t\t}\n\t\tcatch (java.security.NoSuchAlgorithmException ex) {\n\t\t\tex.printStackTrace();\n\t\t\tthrow ex;\n\t\t}\n\t\tbyte[] dig = md5.digest((byte[]) message.getBytes());\n\t\tStringBuffer code = new StringBuffer();\n\t\tfor (int i = 0; i < dig.length; ++i)\n\t\t{\n\t\t\tcode.append(Integer.toHexString(0x0100 + (dig[i] & 0x00FF)).substring(1));\n\t\t}\n\t\treturn code.toString();\n\t}",
"public static String hash(String in) {\r\n\t\treturn DigestUtils.md5Hex(in.getBytes());\r\n\t}",
"public static String getFileChecksum(File file) {\n return getFileChecksum(file, true);\n }"
] |
[
"0.7800426",
"0.7483837",
"0.745395",
"0.73832744",
"0.7380369",
"0.71196264",
"0.7082408",
"0.7062036",
"0.7048478",
"0.7031023",
"0.70060116",
"0.69423705",
"0.6941836",
"0.6911277",
"0.6899666",
"0.68789035",
"0.67872053",
"0.6573226",
"0.6517764",
"0.6462793",
"0.64626735",
"0.64483845",
"0.63890666",
"0.63889164",
"0.637664",
"0.6344204",
"0.6328337",
"0.63156193",
"0.62790745",
"0.62778276",
"0.62544405",
"0.62272245",
"0.622478",
"0.62095225",
"0.6189183",
"0.618581",
"0.6150319",
"0.61447257",
"0.6133792",
"0.61083305",
"0.61080337",
"0.6107677",
"0.6082222",
"0.6078524",
"0.6063569",
"0.60347885",
"0.6032613",
"0.6018872",
"0.5967777",
"0.59409916",
"0.5930955",
"0.59301263",
"0.59198403",
"0.59154654",
"0.58731323",
"0.58727765",
"0.5865943",
"0.58636516",
"0.58328414",
"0.58306295",
"0.58288914",
"0.5823926",
"0.5822736",
"0.5820728",
"0.58198696",
"0.58198696",
"0.5814811",
"0.5810591",
"0.5802849",
"0.5767336",
"0.57649535",
"0.57357484",
"0.5735534",
"0.5722977",
"0.5713615",
"0.5705999",
"0.5685397",
"0.5664443",
"0.5657681",
"0.56380135",
"0.5635169",
"0.56317455",
"0.56283534",
"0.56283534",
"0.5621572",
"0.5617056",
"0.56170446",
"0.5608373",
"0.5608194",
"0.5602473",
"0.55986595",
"0.55986595",
"0.5591306",
"0.5573595",
"0.5569579",
"0.5567024",
"0.55646014",
"0.5549714",
"0.553195"
] |
0.72531235
|
6
|
Use DownloadRequest.newBuilder() to construct.
|
private DownloadRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"entities.Torrent.DownloadRequestOrBuilder getDownloadRequestOrBuilder();",
"public entities.Torrent.DownloadRequestOrBuilder getDownloadRequestOrBuilder() {\n if (downloadRequestBuilder_ != null) {\n return downloadRequestBuilder_.getMessageOrBuilder();\n } else {\n return downloadRequest_ == null ?\n entities.Torrent.DownloadRequest.getDefaultInstance() : downloadRequest_;\n }\n }",
"public Builder setDownloadRequest(entities.Torrent.DownloadRequest value) {\n if (downloadRequestBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n downloadRequest_ = value;\n onChanged();\n } else {\n downloadRequestBuilder_.setMessage(value);\n }\n\n return this;\n }",
"public entities.Torrent.DownloadRequest getDownloadRequest() {\n if (downloadRequestBuilder_ == null) {\n return downloadRequest_ == null ? entities.Torrent.DownloadRequest.getDefaultInstance() : downloadRequest_;\n } else {\n return downloadRequestBuilder_.getMessage();\n }\n }",
"@java.lang.Override\n public entities.Torrent.DownloadRequestOrBuilder getDownloadRequestOrBuilder() {\n return getDownloadRequest();\n }",
"MovilizerRequest prepareDownloadRequest(Long systemId, String password, Integer numResponses,\n MovilizerRequest request);",
"public Builder mergeDownloadRequest(entities.Torrent.DownloadRequest value) {\n if (downloadRequestBuilder_ == null) {\n if (downloadRequest_ != null) {\n downloadRequest_ =\n entities.Torrent.DownloadRequest.newBuilder(downloadRequest_).mergeFrom(value).buildPartial();\n } else {\n downloadRequest_ = value;\n }\n onChanged();\n } else {\n downloadRequestBuilder_.mergeFrom(value);\n }\n\n return this;\n }",
"entities.Torrent.DownloadRequest getDownloadRequest();",
"private DownloadResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public entities.Torrent.DownloadRequest.Builder getDownloadRequestBuilder() {\n\n onChanged();\n return getDownloadRequestFieldBuilder().getBuilder();\n }",
"private Request(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private Request(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private Request(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private Request(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"@java.lang.Override\n public entities.Torrent.DownloadRequest getDownloadRequest() {\n return downloadRequest_ == null ? entities.Torrent.DownloadRequest.getDefaultInstance() : downloadRequest_;\n }",
"entities.Torrent.DownloadResponseOrBuilder getDownloadResponseOrBuilder();",
"private com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.DownloadRequest, entities.Torrent.DownloadRequest.Builder, entities.Torrent.DownloadRequestOrBuilder>\n getDownloadRequestFieldBuilder() {\n if (downloadRequestBuilder_ == null) {\n downloadRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.DownloadRequest, entities.Torrent.DownloadRequest.Builder, entities.Torrent.DownloadRequestOrBuilder>(\n getDownloadRequest(),\n getParentForChildren(),\n isClean());\n downloadRequest_ = null;\n }\n return downloadRequestBuilder_;\n }",
"public Builder clearDownloadRequest() {\n if (downloadRequestBuilder_ == null) {\n downloadRequest_ = null;\n onChanged();\n } else {\n downloadRequest_ = null;\n downloadRequestBuilder_ = null;\n }\n\n return this;\n }",
"public Builder setRequestBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n request_ = value;\n onChanged();\n return this;\n }",
"public Builder setDownloadRequest(\n entities.Torrent.DownloadRequest.Builder builderForValue) {\n if (downloadRequestBuilder_ == null) {\n downloadRequest_ = builderForValue.build();\n onChanged();\n } else {\n downloadRequestBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }",
"private DownloadRequestState(\r\n String name )\r\n {\r\n super( name );\r\n }",
"private Request build() {\n Request.Builder builder =\n new Request.Builder().cacheControl(new CacheControl.Builder().noCache().build());\n\n HttpUrl.Builder urlBuilder = HttpUrl.parse(url).newBuilder();\n for (Map.Entry<String, String> entry : queryParams.entrySet()) {\n urlBuilder = urlBuilder.addEncodedQueryParameter(entry.getKey(), entry.getValue());\n }\n builder = builder.url(urlBuilder.build());\n\n for (Map.Entry<String, String> entry : headers.entrySet()) {\n builder = builder.header(entry.getKey(), entry.getValue());\n }\n\n RequestBody body = (bodyBuilder == null) ? null : bodyBuilder.build();\n builder = builder.method(method.name(), body);\n\n return builder.build();\n }",
"private Request() {}",
"private Request() {}",
"public Request() {\n }",
"public Request(){\n\t\tthis(null, null, null);\n\t}",
"private GetObjectRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public RequestBuilder() {\n this.https = false;\n }",
"private GRPCRequest(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n }",
"private Request(MarketDataRequestAtom inAtom,\n MarketDataRequest inCompleteRequest)\n {\n atom = inAtom;\n receiver.subscribe(this);\n flow = moduleManager.createDataFlow(new DataRequest[] { new DataRequest(feed.getURN(),generateRequestFromAtom(inAtom,inCompleteRequest)),new DataRequest(receiver.getURN()) });\n }",
"public DownloadResponseInner() {\n }",
"private MarketDataRequest generateRequestFromAtom(MarketDataRequestAtom inAtom,\n MarketDataRequest inCompleteRequest)\n {\n return MarketDataRequestBuilder.newRequest().withAssetClass(inCompleteRequest.getAssetClass()).withSymbols(inAtom.getSymbol()).withContent(inAtom.getContent()).withExchange(inAtom.getExchange()).create();\n }",
"public abstract Downloader createDownloader(DownloaderConstructorHelper downloaderConstructorHelper);",
"public Request() {\n\n }",
"public VersionDownload() {\n }",
"private MessageRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private DdzReadyRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public void postRequestDownloadProgress(Request<?> request, long transferredBytesSize, long totalSize);",
"private FetchResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public DownloadUtil(Download download) throws IOException {\n this.download = download;\n if (!download.getLink().startsWith(\"http://\") && !download.getLink().startsWith(\"https://\"))\n url = new URL(\"http://\" + download.getLink());\n else\n url = new URL(download.getLink());\n\n }",
"public entities.Torrent.DownloadResponse.Builder getDownloadResponseBuilder() {\n\n onChanged();\n return getDownloadResponseFieldBuilder().getBuilder();\n }",
"DownloadThread(BlockingQueue<DownloadRequest> queue,\n DownloadRequestQueue.CallBackDelivery delivery) {\n mQueue = queue;\n mDelivery = delivery;\n\n }",
"private GetBackupRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"@java.lang.Override\n public entities.Torrent.DownloadResponseOrBuilder getDownloadResponseOrBuilder() {\n return getDownloadResponse();\n }",
"Request(Request otherRequest) {\n this.reqNum = otherRequest.reqNum;\n this.reqText = otherRequest.reqText;\n this.reqExampleDocs = new ArrayList<ExampleDocument>(otherRequest.reqExampleDocs);\n }",
"private TestRequest(com.google.protobuf.GeneratedMessageLite.Builder builder) {\n super(builder);\n\n }",
"private DeleteRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private RequestEnvelop(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }",
"private OpenFileRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private ReadRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public Request(final FullHttpRequest request) {\n this.request = request;\n }",
"private CallRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public Request() {\n this.setRequestId(newRequestId());\n this.setRequestValue(0.0);\n this.date = new Date();\n }",
"private RetrieveFileResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public String getDownloadRequestUrl()\r\n {\r\n String requestUrl;\r\n if ( downloadURI != null )\r\n {\r\n try\r\n {\r\n // dont use whole uri.. only file and query part..!?\r\n requestUrl = URLUtil.getPathQueryFromUri( downloadURI );\r\n return requestUrl;\r\n }\r\n catch (URIException e)\r\n {// failed to use uri.. try other request urls..\r\n NLogger.warn( NLoggerNames.Download_Candidate, e, e );\r\n }\r\n }\r\n \r\n if ( resourceURN != null )\r\n {\r\n requestUrl = URLUtil.buildName2ResourceURL( resourceURN );\r\n }\r\n else\r\n {\r\n // build standard old style gnutella request.\r\n String fileIndexStr = String.valueOf( fileIndex );\r\n StringBuffer urlBuffer = new StringBuffer( 6 + fileIndexStr.length()\r\n + fileName.length() );\r\n urlBuffer.append( \"/get/\" );\r\n urlBuffer.append( fileIndexStr );\r\n urlBuffer.append( '/' ); \r\n urlBuffer.append( URLCodecUtils.encodeURL( fileName ) );\r\n requestUrl = urlBuffer.toString();\r\n }\r\n return requestUrl;\r\n }",
"private Request(com.google.protobuf.GeneratedMessage.ExtendableBuilder<Pokemon.Request, ?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }",
"private BenchmarkRequest(com.google.protobuf.GeneratedMessage.Builder builder) {\n super(builder);\n }",
"private ObjectRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public HttpRequest(URL url) throws IOException {\r\n this(url.openConnection());\r\n }",
"private DGRequest(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }",
"private ImageRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public UBERequest() {\r\n }",
"private OffchainWithdrawalRequest(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n }",
"public entities.Torrent.DownloadResponseOrBuilder getDownloadResponseOrBuilder() {\n if (downloadResponseBuilder_ != null) {\n return downloadResponseBuilder_.getMessageOrBuilder();\n } else {\n return downloadResponse_ == null ?\n entities.Torrent.DownloadResponse.getDefaultInstance() : downloadResponse_;\n }\n }",
"private Request() {\n initFields();\n }",
"public static Downloader getDownloader(Download download){\n\t\tClass<?> clazz;\n\t\tDownloader downloader = null;\n\t\tString downloaderName = download.getDownloadClass();\n\t\t\n\t\ttry{\n\t\t\t//Get the Class object associated with the class with the given string name.\n\t\t\tclazz = Class.forName(download.getDownloadClass());\n\t\t\t//Instantiate the class\n\t\t\tdownloader = (Downloader) clazz.newInstance();\n\t\t\t//Set the download \n\t\t\tdownloader.setDownload(download);\n\t\t}catch(ClassNotFoundException e){\n\t\t\tlogger.error(\"Error trying to instantiate the following class \" +downloaderName, e);\n\t\t}catch(InstantiationException e){\n\t\t\tlogger.error(\"Error trying to instantiate the following class \" +downloaderName, e);\n\t\t}catch(IllegalAccessException e){\n\t\t\tlogger.error(\"Error trying to instantiate the following class \" +downloaderName, e);\n\t\t}\n\t\t\n\t\treturn downloader;\n\t}",
"private RequestGetPrototype(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }",
"com.google.protobuf.ByteString\n getRequestBytes();",
"private synchronized void executeDownload(DownloadRequest request, String downloadUrl) {\n HttpURLConnection conn = null;\n URL url;\n InputStream inputStream = null;\n RandomAccessFile randomAccessFile;\n\n try {\n url = new URL(downloadUrl);\n long localFileLength = FileUtils.getLocalFileSize(getFullFileName());\n long remoteFileLength = fileTotalSize;\n\n // 远程文件不存在\n if (remoteFileLength == -1l) {\n // Log.log(\"下载文件不存在...\");\n updateDownloadFailed(request, DownloadManager.ERROR_UNHANDLED_HTTP_CODE, \"Remote file not found\");\n return;\n }\n\n request.setFileFullName(getFullFileName());\n randomAccessFile = new RandomAccessFile(getFullFileName(), \"rwd\");\n\n\n conn = (HttpURLConnection) url.openConnection();\n conn.setInstanceFollowRedirects(false);\n conn.setConnectTimeout(request.getRetryPolicy().getCurrentTimeout());\n conn.setReadTimeout(request.getRetryPolicy().getCurrentTimeout());\n conn.setRequestMethod(\"GET\");\n\n // 本地文件存在\n randomAccessFile.seek(localFileLength);\n conn.setRequestProperty(\"Range\", \"bytes=\"\n + localFileLength + \"-\" + remoteFileLength);\n\n inputStream = conn.getInputStream();\n\n\n HashMap<String, String> customHeaders = request.getCustomHeaders();\n if (customHeaders != null) {\n for (String headerName : customHeaders.keySet()) {\n conn.addRequestProperty(headerName, customHeaders.get(headerName));\n }\n }\n\n // Status Connecting is set here before\n // urlConnection is trying to connect to destination.\n updateDownloadState(request, DownloadManager.STATUS_CONNECTING);\n\n final int responseCode = conn.getResponseCode();\n\n DownLoadLog.v(\"Response code obtained for downloaded Id \"\n + request.getDownloadId()\n + \" : httpResponse Code \"\n + responseCode);\n\n switch (responseCode) {\n case HTTP_PARTIAL:\n case HTTP_OK:\n shouldAllowRedirects = false;\n if (fileTotalSize > 1) {\n transferData(request, inputStream, randomAccessFile);\n } else {\n updateDownloadFailed(request, DownloadManager.ERROR_DOWNLOAD_SIZE_UNKNOWN, \"Transfer-Encoding not found as well as can't know size of download, giving up\");\n }\n break;\n case HTTP_MOVED_PERM:\n case HTTP_MOVED_TEMP:\n case HTTP_SEE_OTHER:\n case HTTP_TEMP_REDIRECT:\n // Take redirect url and call executeDownload recursively until\n // MAX_REDIRECT is reached.\n while (mRedirectionCount < MAX_REDIRECTS && shouldAllowRedirects) {\n mRedirectionCount++;\n DownLoadLog.v(TAG, \"Redirect for downloaded Id \" + request.getDownloadId());\n final String location = conn.getHeaderField(\"Location\");\n executeDownload(request, location);\n }\n\n if (mRedirectionCount > MAX_REDIRECTS && shouldAllowRedirects) {\n updateDownloadFailed(request, DownloadManager.ERROR_TOO_MANY_REDIRECTS, \"Too many redirects, giving up\");\n return;\n }\n break;\n case HTTP_REQUESTED_RANGE_NOT_SATISFIABLE:\n updateDownloadFailed(request, HTTP_REQUESTED_RANGE_NOT_SATISFIABLE, conn.getResponseMessage());\n break;\n case HTTP_UNAVAILABLE:\n updateDownloadFailed(request, HTTP_UNAVAILABLE, conn.getResponseMessage());\n break;\n case HTTP_INTERNAL_ERROR:\n updateDownloadFailed(request, HTTP_INTERNAL_ERROR, conn.getResponseMessage());\n break;\n default:\n updateDownloadFailed(request, DownloadManager.ERROR_UNHANDLED_HTTP_CODE, \"Unhandled HTTP response:\" + responseCode + \" message:\" + conn.getResponseMessage());\n break;\n }\n } catch (SocketTimeoutException e) {\n e.printStackTrace();\n // Retry.\n attemptRetryOnTimeOutException(request);\n } catch (ConnectTimeoutException e) {\n e.printStackTrace();\n attemptRetryOnTimeOutException(request);\n } catch (IOException e) {\n e.printStackTrace();\n updateDownloadFailed(request, DownloadManager.ERROR_HTTP_DATA_ERROR, \"IOException \" + e.getMessage());\n } finally {\n if (conn != null) {\n conn.disconnect();\n }\n }\n }",
"private SubnetRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public static ApiRequest createRequests() {\n Retrofit retrofit = builder.client(client)\n .build();\n return retrofit.create(ApiRequest.class);\n }",
"private MarketSummaryRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private RequestGetItems(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }",
"io.envoyproxy.envoy.type.metadata.v3.MetadataKind.RequestOrBuilder getRequestOrBuilder();",
"private UpdateRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private final static HttpRequest createRequest() {\r\n\r\n HttpRequest req = new BasicHttpRequest\r\n (\"GET\", \"/\", HttpVersion.HTTP_1_1);\r\n //(\"OPTIONS\", \"*\", HttpVersion.HTTP_1_1);\r\n\r\n return req;\r\n }",
"private RetrieveFile(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public Builder setRequest(netty.framework.messages.TestMessage.TestRequest value) {\n if (value == null) {\n throw new NullPointerException();\n }\n request_ = value;\n\n bitField0_ |= 0x00000001;\n return this;\n }",
"public static InitializationTransactionRequest from(UnmarshallingContext context) throws IOException {\n\t\tTransactionReference classpath = TransactionReference.from(context);\n\t\tStorageReference manifest = StorageReference.from(context);\n\n\t\treturn new InitializationTransactionRequest(classpath, manifest);\n\t}",
"private GetDataVersionRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private GetDataVersionRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private GetDataVersionRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public ServiceRequest() {\n super();\n this.addNamespaceToRequest = true;\n }",
"net.iGap.proto.ProtoRequest.Request getRequest();",
"com.uzak.inter.bean.test.TestRequest.TestBeanRequestOrBuilder getRequestOrBuilder();",
"public AzureWorkloadSqlRestoreRequest() {\n }",
"public void build() {\n\t\t\tRequest request = new Request();\n request.context = context;\n\t\t\trequest.requestType = requestType;\n\t\t\trequest.url = url;\n\t\t\trequest.envelope = envelope;\n\t\t\trequest.headers = headers;\n\n\t\t\trequest.responseListener = responseListener;\n\t\t\trequest.onValidateResponseListener = validateResponseListener;\n\n\t\t\trequest.isDebug = isDebug;\n\n\t\t\trequest.start();\n\t\t}",
"public JobFetchRequest(int jobseekerId,\n Response.Listener<String> listener,\n Response.ErrorListener errorListener) {\n super(Method.GET, URL + jobseekerId, listener, errorListener);\n }",
"static Request parseRequest(InputStream in) throws IOException {\n\t\tRequestLine request = readRequestLine(in);\n\t\tHeaders headers = readHeaders(in);\n\t\tlong length = -1;\n\t\tInputStream body;\n\t\tif (HeaderValue.CHUNKED.equals(headers.get(HeaderName.TRANSFER_ENCODING))) {\n\t\t\tbody = new ChunkedInputStream(in);\n\t\t} else {\n\t\t\tString header = headers.get(HeaderName.CONTENT_LENGTH);\n\t\t\tlength = header == null ? 0 : Long.parseLong(header);\n\t\t\tbody = new LimitedInputStream(in, length);\n\t\t}\n\t\treturn new Request(request.method(), request.target(), request.path(), request.query(), headers, length, body);\n\t}",
"private ChunkRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"TransmissionProtocol.RequestOrBuilder getRequestOrBuilder(\n int index);",
"private FeedBack4ParkingRequest(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }",
"private LesenRPCRequest(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }",
"public Builder clearRequest() {\n request_ = netty.framework.messages.TestMessage.TestRequest.getDefaultInstance();\n\n bitField0_ = (bitField0_ & ~0x00000001);\n return this;\n }",
"private CreateRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private IssueRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private CalRequest(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }",
"private ClientRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public VersionsRequest(String user, String filename){\n super(user, filename);\n }",
"private RequestExecution() {}"
] |
[
"0.7531688",
"0.7184762",
"0.7022048",
"0.68095165",
"0.67746615",
"0.65542144",
"0.65541655",
"0.62999845",
"0.62807703",
"0.61270547",
"0.61072034",
"0.61072034",
"0.61072034",
"0.61072034",
"0.61069214",
"0.60092497",
"0.5966135",
"0.5938845",
"0.59207356",
"0.5890619",
"0.58275336",
"0.5790689",
"0.577297",
"0.577297",
"0.57263756",
"0.5699859",
"0.56280315",
"0.5608409",
"0.5575613",
"0.55639064",
"0.5557402",
"0.55301535",
"0.551737",
"0.54922056",
"0.54910886",
"0.54900444",
"0.5470118",
"0.5467129",
"0.54590666",
"0.5412206",
"0.53843343",
"0.53690475",
"0.5348219",
"0.53382343",
"0.5329001",
"0.53220636",
"0.5289617",
"0.52844095",
"0.5279102",
"0.5278837",
"0.52749854",
"0.5243834",
"0.5243337",
"0.52263784",
"0.52260345",
"0.52220505",
"0.5222038",
"0.5216496",
"0.5207811",
"0.5197344",
"0.5188194",
"0.5182553",
"0.51660645",
"0.5160251",
"0.5156856",
"0.51528406",
"0.51379454",
"0.51135224",
"0.5103831",
"0.5100739",
"0.5095312",
"0.5094388",
"0.508936",
"0.50821805",
"0.5062483",
"0.5050675",
"0.50378615",
"0.5023204",
"0.5014388",
"0.5012244",
"0.5012244",
"0.5012244",
"0.50038695",
"0.50029594",
"0.5002952",
"0.49968338",
"0.49940994",
"0.49926516",
"0.49864846",
"0.49800205",
"0.49725622",
"0.49719933",
"0.4969422",
"0.49477845",
"0.49407464",
"0.49389443",
"0.49385405",
"0.49371994",
"0.49371213",
"0.49329185"
] |
0.7450272
|
1
|
MD5 of the file content bytes fileHash = 1;
|
@java.lang.Override
public com.google.protobuf.ByteString getFileHash() {
return fileHash_;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private String getFileMd5Checksum(String filename){\n\t\ttry {\n\t\t\tbyte[] fileBytes = Files.readAllBytes(Paths.get(FILES_ROOT + filename));\n\t\t\tbyte[] fileHash = MessageDigest.getInstance(\"MD5\").digest(fileBytes);\n\n\t\t\treturn DatatypeConverter.printHexBinary(fileHash);\n\t\t} catch (IOException e) {\n\t\t\t// TODO: Handle file doesn't exist\n\t\t\treturn \"\";\n\t\t} catch (Exception e) {\n\t\t\treturn \"\";\n\t\t}\n\t}",
"public static String computeMD5FileHash (File file) throws Exception {\n byte[] b = createFileChecksum(file);\n String result = \"\";\n\n for (int i=0; i < b.length; i++) {\n result += Integer.toString( ( b[i] & 0xff ) + 0x100, 16).substring( 1 );\n }\n return result;\n }",
"private static String getMD5Checksum(String filename) throws Exception {\r\n\t\tbyte[] b = createChecksum(filename);\r\n\t\tStringBuilder result = new StringBuilder();\r\n\t\tfor (byte v : b) {\r\n\t\t\tresult.append(Integer.toString((v & 0xff) + 0x100, 16).substring(1));\r\n\t\t}\r\n\t\treturn result.toString();\r\n\t}",
"private static String getFileChecksum(File file) throws IOException, NoSuchAlgorithmException {\n FileInputStream fis = new FileInputStream(file);\n\n // Use MD5 algorithm\n MessageDigest digest = MessageDigest.getInstance(\"MD5\");\n\n // Create byte array to read data in chunks\n byte[] byteArray = new byte[1024];\n int bytesCount = 0;\n\n // Read file data and update in message digest\n while ((bytesCount = fis.read(byteArray)) != -1) {\n digest.update(byteArray, 0, bytesCount);\n }\n ;\n\n // close the stream; We don't need it now.\n fis.close();\n\n // Get the hash's bytes\n byte[] bytes = digest.digest();\n\n // This bytes[] has bytes in decimal format;\n // Convert it to hexadecimal format\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < bytes.length; i++) {\n sb.append(Integer.toString((bytes[i] & 0xff) + 0x100, 16).substring(1));\n }\n\n // return complete hash\n return sb.toString();\n }",
"public static String getFileMD5(File file) {\n\t\tMessageDigest messageDigest = null;\n\t\tFileInputStream fileInStream = null;\n\t\tbyte buffer[] = new byte[1024];\n\t\tint length = -1;\n\t\ttry {\n\t\t\tmessageDigest = MessageDigest.getInstance(\"MD5\");\n\t\t\tfileInStream = new FileInputStream(file);\n\t\t\twhile ((length = fileInStream.read(buffer, 0, 1024)) != -1) {\n\t\t\t\tmessageDigest.update(buffer, 0, length);\n\t\t\t}\n\t\t\tfileInStream.close();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t\tBigInteger bigInt = new BigInteger(1, messageDigest.digest());\n\t\treturn bigInt.toString(16);\n\t}",
"com.google.protobuf.ByteString getFileHash();",
"com.google.protobuf.ByteString getFileHash();",
"public static String fileMD5(File file) {\n\t\tFileInputStream fis = null;\n\t\tString md5 = null;\n\t\ttry {\n\t\t\tfis = new FileInputStream(file);\n\t\t\tmd5 = org.apache.commons.codec.digest.DigestUtils.md5Hex(fis);\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"!!!\", e);\n\t\t} finally {\n\t\t\tCloseUtils.close(fis);\n\t\t}\n\t\treturn md5;\n\t}",
"public static String md5(String inputFile) {\r\n String md5 = null;\r\n logger.debug(\"Start to calculate hashcode (SHA1) for {}\", inputFile);\r\n try (DigestInputStream digestIn = new DigestInputStream(new FileInputStream(inputFile),\r\n MessageDigest.getInstance(\"SHA1\"))) {\r\n byte[] buffer = new byte[1024 * 1024];\r\n while (digestIn.read(buffer) > 0) {\r\n // do nothing\r\n }\r\n md5 = toHexString(digestIn.getMessageDigest().digest());\r\n } catch (NoSuchAlgorithmException | IOException e) {\r\n logger.warn(\"Fail to md5 for {} ({})\", inputFile, e.getMessage());\r\n }\r\n logger.debug(\"End to calculate hashcode (SHA1) for {}, {}\", inputFile, md5);\r\n return md5;\r\n }",
"static String generateChecksum(String filename) {\n\n try {\n // Instantiating file and Hashing Algorithm.\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n FileInputStream file = new FileInputStream(filename);\n\n // Generation of checksum.\n byte[] dataBytes = new byte[1024];\n int nread;\n\n while ((nread = file.read(dataBytes)) != -1) {\n md.update(dataBytes, 0, nread);\n }\n\n byte[] mdbytes = md.digest();\n\n // Convert byte to hex.\n StringBuilder hexString = new StringBuilder();\n\n for (byte mdbyte : mdbytes) {\n String hex = Integer.toHexString(0xff & mdbyte);\n if (hex.length() == 1) hexString.append('0');\n hexString.append(hex);\n }\n\n // Return checksum as completed string.\n return hexString.toString();\n\n } catch (NoSuchAlgorithmException | IOException e) {\n e.printStackTrace();\n }\n return null;\n }",
"public static String getFileMD5(File file) {\n if (!file.isFile()) {\n return null;\n }\n MessageDigest digest = null;\n FileInputStream in = null;\n byte buffer[] = new byte[1024];\n int len;\n try {\n digest = MessageDigest.getInstance(\"MD5\");\n in = new FileInputStream(file);\n while ((len = in.read(buffer, 0, 1024)) != -1) {\n digest.update(buffer, 0, len);\n }\n in.close();\n } catch (Exception e) {\n e.printStackTrace();\n return null;\n }\n BigInteger bigInt = new BigInteger(1, digest.digest());\n String md5 = bigInt.toString(16);\n while (md5.length() < 32)\n md5 = \"0\" + md5;\n return md5;\n }",
"private static String getFileChecksum(MessageDigest digest, File file) throws IOException\n\t {\n\t FileInputStream fis = new FileInputStream(file);\n\t \n\t //Create byte array to read data in chunks\n\t byte[] byteArray = new byte[1024];\n\t int bytesCount = 0;\n\t \n\t //Read file data and update in message digest\n\t while ((bytesCount = fis.read(byteArray)) != -1) {\n\t digest.update(byteArray, 0, bytesCount);\n\t };\n\t \n\t //close the stream; We don't need it now.\n\t fis.close();\n\t \n\t //Get the hash's bytes\n\t byte[] bytes = digest.digest();\n\t \n\t //This bytes[] has bytes in decimal format;\n\t //Convert it to hexadecimal format\n\t StringBuilder sb = new StringBuilder();\n\t for(int i=0; i< bytes.length ;i++)\n\t {\n\t sb.append(Integer.toString((bytes[i] & 0xff) + 0x100, 16).substring(1));\n\t }\n\t \n\t //return complete hash\n\t return sb.toString();\n\t }",
"public String getMD5() {\n return hash;\n }",
"private static String getFileChecksum(MessageDigest digest, File file) throws IOException {\n FileInputStream fis = new FileInputStream(file);\n\n //Create byte array to read data in chunks\n byte[] byteArray = new byte[1024];\n int bytesCount = 0;\n\n //Read file data and update in message digest\n while ((bytesCount = fis.read(byteArray)) != -1) {\n digest.update(byteArray, 0, bytesCount);\n }\n\n //close the stream; We don't need it now.\n fis.close();\n\n //Get the hash's bytes\n byte[] bytes = digest.digest();\n\n //This bytes[] has bytes in decimal format;\n //Convert it to hexadecimal format\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < bytes.length; i++) {\n sb.append(Integer.toString((bytes[i] & 0xff) + 0x100, 16).substring(1));\n }\n\n //return complete hash\n return sb.toString();\n }",
"public static byte[] createCheckSum(String filename) throws Exception {\n InputStream fis = new FileInputStream(filename);\n\n byte[] buffer = new byte[1024];\n MessageDigest complete = MessageDigest.getInstance(\"MD5\");\n int numRead;\n\n do {\n numRead = fis.read(buffer);\n if (numRead > 0) {\n complete.update(buffer, 0, numRead);\n }\n } while (numRead != -1);\n\n fis.close();\n // Return MD5 Hash\n return complete.digest();\n }",
"public static String getFileMD5(String path) {\n\t\treturn getFileMD5(new File(path));\n\t}",
"public static String fileMD5(String filePath) {\n\t\tFileInputStream fis = null;\n\t\tString md5 = null;\n\t\ttry {\n\t\t\tfis = new FileInputStream(new File(filePath));\n\t\t\tmd5 = org.apache.commons.codec.digest.DigestUtils.md5Hex(fis);\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"!!!\", e);\n\t\t} finally {\n\t\t\tCloseUtils.close(fis);\n\t\t}\n\t\treturn md5;\n\t}",
"public static String computeMD5(String filename) throws Exception {\r\n byte[] b = createGenericChecksum(filename, 0);\r\n String result = \"\";\r\n for (int i = 0; i < b.length; i++) {\r\n result += Integer.toString((b[i] & 0xff) + 0x100, 16).substring(1);\r\n }\r\n return result;\r\n }",
"public static String getMD5(File file) throws IOException, NoSuchAlgorithmException {\n return getChecksum(file, MessageDigest.getInstance(\"MD5\"));\n }",
"protected void md5file(File file) throws IOException {\n if (file.isDirectory()) {\n throw new IllegalArgumentException(\"Only files can be check summed !\");\n }\n\n // calculating the output\n byte[] md5 = DigestUtils.md5(new FileInputStream(file));\n\n // getting the output file\n File outputFile = new File(file.getAbsolutePath() + \".md5\");\n Files.write(Paths.get(outputFile.getAbsolutePath()), md5);\n\n }",
"String saveData(MultipartFile md5File) throws IOException;",
"@java.lang.Override\n public com.google.protobuf.ByteString getFileHash() {\n return fileHash_;\n }",
"@java.lang.Override\n public com.google.protobuf.ByteString getFileHash() {\n return fileHash_;\n }",
"byte[] getFile(String sha) throws Exception;",
"byte[] getDigest();",
"private String fileChecksum(File tmpFile, ITaskMonitor monitor) {\n InputStream is = null;\n try {\n is = new FileInputStream(tmpFile);\n MessageDigest digester = getChecksumType().getMessageDigest();\n byte[] buf = new byte[65536];\n int n;\n while ((n = is.read(buf)) >= 0) {\n if (n > 0) {\n digester.update(buf, 0, n);\n }\n }\n return getDigestChecksum(digester);\n } catch (FileNotFoundException e) {\n monitor.setResult(\"File not found: %1$s\", e.getMessage());\n } catch (Exception e) {\n monitor.setResult(e.getMessage());\n } finally {\n if (is != null) {\n try {\n is.close();\n } catch (IOException e) {\n }\n }\n }\n return \"\";\n }",
"public static String getFileChecksum(MessageDigest digest, String filePath) throws IOException {\n\t\tFileInputStream fis = new FileInputStream(filePath);\n\n\t\t// Create byte array to read data in chunks\n\t\tbyte[] byteArray = new byte[1024];\n\t\tint bytesCount = 0;\n\n\t\t// Read file data and update in message digest\n\t\twhile ((bytesCount = fis.read(byteArray)) != -1) {\n\t\t\tdigest.update(byteArray, 0, bytesCount);\n\t\t}\n\t\t;\n\n\t\t// close the stream; We don't need it now.\n\t\tfis.close();\n\n\t\t// Get the hash's bytes\n\t\tbyte[] bytes = digest.digest();\n\n\t\t// This bytes[] has bytes in decimal format;\n\t\t// Convert it to hexadecimal format\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor (int i = 0; i < bytes.length; i++) {\n\t\t\tsb.append(Integer.toString((bytes[i] & 0xff) + 0x100, 16).substring(1));\n\t\t}\n\n\t\t// return complete hash\n\t\treturn sb.toString();\n\t}",
"public static byte[] encryptMD5File(final File file) {\n if (file == null) return null;\n FileInputStream fis = null;\n DigestInputStream digestInputStream;\n try {\n fis = new FileInputStream(file);\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n digestInputStream = new DigestInputStream(fis, md);\n byte[] buffer = new byte[256 * 1024];\n while (true) {\n if (!(digestInputStream.read(buffer) > 0)) break;\n }\n md = digestInputStream.getMessageDigest();\n return md.digest();\n } catch (NoSuchAlgorithmException | IOException e) {\n e.printStackTrace();\n return null;\n } finally {\n try {\n if (fis != null) {\n fis.close();\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }",
"byte[] digest();",
"@Test\n public void fileMd5Test() {\n // TODO: test fileMd5\n }",
"public String getMd5Hash() {\n return md5Hash;\n }",
"public String getMD5() {\n return m_module.getConfiguration().getMD5();\n }",
"public static String CreateMD5(File file) {\n String base64Image = \"\";\n try (FileInputStream imageInFile = new FileInputStream(file)) {\n // Reading a Image file from file system\n byte imageData[] = new byte[(int) file.length()];\n imageInFile.read(imageData);\n base64Image = Base64.getEncoder().encodeToString(imageData);\n } catch (FileNotFoundException e) {\n DialogWindow.ShowErrorPane(\"Image could not be found.\", \"Error Image Missing\");\n// System.out.println(\"Image not found\" + e);\n } catch (IOException ioe) {\n DialogWindow.ShowErrorPane(\"Error while the image was being converted.\", \"Error Converting Image\");\n// System.out.println(\"Exception while reading the Image \" + ioe);\n }\n return base64Image;\n }",
"public BoxFileUploadRequestObject setContentMD5(String sha1) {\n getRequestExtras().addHeader(Constants.CONTENT_MD5, sha1);\n return this;\n }",
"public static byte[] computeMD5Hash(InputStream is) throws NoSuchAlgorithmException, IOException {\n BufferedInputStream bis = new BufferedInputStream(is);\n try {\n MessageDigest messageDigest = MessageDigest.getInstance(\"MD5\");\n byte[] buffer = new byte[16384];\n int bytesRead = -1;\n while ((bytesRead = bis.read(buffer, 0, buffer.length)) != -1) {\n messageDigest.update(buffer, 0, bytesRead);\n }\n return messageDigest.digest();\n } finally {\n try {\n bis.close();\n } catch (Exception e) {\n System.err.println(\"Unable to close input stream of hash candidate: \" + e);\n }\n }\n }",
"public byte[] getContentMd5() {\n return CoreUtils.clone(this.contentMd5);\n }",
"private static String md5(byte[] b) {\n try {\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n md.reset();\n md.update(b);\n byte[] digest = md.digest();\n StringBuffer sb = new StringBuffer();\n for (int i=0; i<digest.length; i++) {\n String a = Integer.toHexString(0xff & digest[i]);\n if (a.length() == 1) a = \"0\" + a;\n sb.append(a);\n }\n return sb.toString();\n }\n catch (NoSuchAlgorithmException e) { writeLog(e); }\n return null;\n }",
"private int getFileContentHashCode(Path filePath) throws IOException {\n return Arrays.hashCode(Files.readAllBytes(filePath));\n }",
"public static void md5(File outputFile) throws ConverterException {\r\n\t\ttry {\r\n\t\t\tFileInputStream fileInputStream = new FileInputStream(outputFile);\r\n\t\t\tBufferedInputStream bufferedInputStream = new BufferedInputStream(fileInputStream);\r\n\t\t\t\r\n\t\t\tbyte[] datei = bufferedInputStream.readAllBytes();\r\n\t\t\tMessageDigest md = MessageDigest.getInstance(\"MD5\");\r\n\t\t\tbyte[] md5 = md.digest(datei);\r\n\t\t\tfor (int i = 0; i < md5.length; i++) {\r\n\t\t\t\tSystem.out.print(String.format(\"%02X\", md5[i]));\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\" File Length: \" + outputFile.length());\r\n\t\t\tSystem.out.println();\r\n\t\t\t\r\n\t\t\tbufferedInputStream.close();\r\n\t\t\tfileInputStream.close();\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\tthrow new ConverterException(\"Datei kann nicht gefunden werden\");\r\n\t\t} catch (IOException e) {\r\n\t\t\tthrow new ConverterException(\"Beim Lesen der Datei ist ein Fehler aufgetreten\");\r\n\t\t} catch (NoSuchAlgorithmException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"private String calculateCheckSum(File file2) {\n\t\tStringBuffer sb = new StringBuffer(\"\");\n\t\ttry {\n\t\t\tMessageDigest messageDigest = MessageDigest.getInstance(\"SHA1\");\n\n\t\t\tFileInputStream finput = new FileInputStream(file2);\n\t\t\tbyte[] dataBytes = new byte[1024];\n\n\t\t\tint bytesRead = 0;\n\n\t\t\twhile ((bytesRead = finput.read(dataBytes)) != -1) {\n\t\t\t\tmessageDigest.update(dataBytes, 0, bytesRead);\n\t\t\t}\n\n\t\t\tbyte[] digestBytes = messageDigest.digest();\n\n\t\t\tfor (int i = 0; i < digestBytes.length; i++) {\n\t\t\t\tsb.append(Integer.toString((digestBytes[i] & 0xff) + 0x100, 16).substring(1));\n\t\t\t}\n\t\t\tSystem.out.println(\"file check sum value is \" + sb.toString());\n\t\t\tfinput.close();\n\t\t} catch (Exception ex) {\n\t\t\t// TODO: handle exception\n\t\t\tLogger.getLogger(FileTransferClient.class.getName()).log(Level.SEVERE, null, ex);\n\t\t}\n\n\t\treturn sb.toString();\n\t}",
"public static byte[] computeMD5Hash(byte[] data) throws NoSuchAlgorithmException, IOException {\n return computeMD5Hash(new ByteArrayInputStream(data));\n }",
"public byte[] getMD5() {\n return MD5;\n }",
"public Digest (File appdir)\n throws IOException\n {\n // parse and validate our digest file contents\n StringBuffer data = new StringBuffer();\n File dfile = new File(appdir, DIGEST_FILE);\n List pairs = ConfigUtil.parsePairs(dfile, false);\n for (Iterator iter = pairs.iterator(); iter.hasNext(); ) {\n String[] pair = (String[])iter.next();\n if (pair[0].equals(DIGEST_FILE)) {\n _metaDigest = pair[1];\n break;\n }\n _digests.put(pair[0], pair[1]);\n note(data, pair[0], pair[1]);\n }\n \n // we've reached the end, validate our contents\n MessageDigest md = getMessageDigest();\n byte[] contents = data.toString().getBytes(\"UTF-8\");\n String md5 = StringUtil.hexlate(md.digest(contents));\n if (!md5.equals(_metaDigest)) {\n String err = MessageUtil.tcompose(\n \"m.invalid_digest_file\", _metaDigest, md5);\n throw new IOException(err);\n }\n }",
"public byte[] MD5(File archivo) throws OpenSSL_Exception {\n\t\tString[] comando = new String[]{ \"openssl\" , \"dgst\" , \"-md5\" , archivo.getAbsolutePath()};\n\t\tProcess terminal = null;\n\t\ttry { terminal = Runtime.getRuntime().exec(comando); } catch (IOException e) { \n\t\t\tthrow new OpenSSL_Exception(\"No se puede ejecutar el comando en el terminal\");\n\t\t}\n\t\t// --- > Leemos la salida error del comando\n\t\tBufferedReader errors = new BufferedReader(new InputStreamReader(terminal.getErrorStream()));\n\t\tString linea = \"\" , error = \"\" ;\n\t\ttry { while( (linea = errors.readLine()) != null) error += linea + \"\\n\"; } catch (IOException e) {\n\t\t\tthrow new OpenSSL_Exception(\"No se puede leer el error que ha producido el comando\");\n\t\t}\n\t\t// --- > Si hubo salida error lanzamos al excepcion con el error\n\t\tif(!error.equals(\"\"))throw new OpenSSL_Exception(\"Error al ejecutar el comando:\\n\" + error );\n\t\t// --- > Leemos el resultado obtenido\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(terminal.getInputStream()));\n\t\tString res = \"\";\n\t\ttry { while((linea = in.readLine()) != null) res += linea; } catch (IOException e) {\n\t\t\tthrow new OpenSSL_Exception(\"No se puede leer el resultado que ha producido el comando\");\n\t\t}\n\t\treturn res.substring(res.lastIndexOf(\" \") + 1 ).getBytes();\n\t}",
"public byte[] getHash()\n\t{\n\t\treturn md5.getHash();\n\t}",
"@Test\n public void md5Checksum() throws NoSuchAlgorithmException {\n String string = Utils.md5Checksum(\"abcde fghijk lmn op\");\n Assert.assertEquals(\"1580420c86bbc3b356f6c40d46b53fc8\", string);\n }",
"public static String md5(String pass)\n {\n try{\n MessageDigest md=MessageDigest.getInstance(\"MD5\");\n byte[] messageDigest=md.digest(pass.getBytes());\n BigInteger num=new BigInteger(1,messageDigest);\n String hashText=num.toString(16);\n while(hashText.length()<32)\n {\n hashText=\"0\"+hashText;\n } \n return hashText; \n }\n catch(Exception e)\n { \n throw new RuntimeException(e);\n } \n }",
"public static void main(String[] args) throws NoSuchAlgorithmException, FileNotFoundException, IOException {\n \r\n String hash = \"F5D080D4F4E185DECA8A8B24F72408D9\";\r\n String [] keys = {\"9A1BA7F38A3E8D8F9DDD55972868CB3F\",\"17185CEF199E1C89804EDEE9DCDD1B90\",\"F5D080D4F4E185DECA8A8B24F72408D9\"};\r\n String password = \"NoSuchPassword\";\r\n File file = null;\r\n JFileChooser ff = new JFileChooser();\r\n int a = ff.showOpenDialog(null);\r\n if(a == JFileChooser.APPROVE_OPTION){\r\n try {\r\n file = ff.getSelectedFile();\r\n JOptionPane.showMessageDialog(ff, a);\r\n \r\n } catch (Exception ex) {\r\n ex.printStackTrace();\r\n } finally {\r\n System.out.println(file.getPath());\r\n }\r\n } \r\n BufferedReader fr = null;\r\n fr = new BufferedReader(new FileReader(file.getPath()));\r\n String line = null;\r\n int i = 0; \r\n //This is the funtion that Java implement in java.security.MessageDigest\r\n MessageDigest md5 = MessageDigest.getInstance(\"MD5\");\r\n while((line = fr.readLine()) != null){\r\n System.out.println(line);\r\n md5.update(line.getBytes());\r\n byte [] digests = md5.digest();\r\n String hashs = DatatypeConverter.printHexBinary(digests).toUpperCase();\r\n if(keys[i].equals(hashs)){\r\n System.out.println(\"CORRECT!\\nThe hash created is the same as the hash saved \");\r\n }\r\n else{\r\n System.out.println(\"ERROR!\\nThere was a mistake, the hash create doesn't mach the hash saved\");\r\n }\r\n i++;\r\n } \r\n fr.close();\r\n /**In conclusion we can use the MD5 for digest a words and then same them\r\n * is a DataBase, this with the function that if the DB is committed the\r\n * passwords will not be there\r\n */\r\n }",
"public ShareFileHttpHeaders setContentMd5(byte[] contentMd5) {\n this.contentMd5 = CoreUtils.clone(contentMd5);\n return this;\n }",
"public String getMD5ForGame(String gameId) {\n return \"TODO\";\n }",
"public static String md5(String message) {\n String digest = null;\n try {\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n byte[] hash = md.digest(message.getBytes(\"UTF-8\"));\n\n //converting byte array to HexadecimalString\n StringBuilder sb = new StringBuilder(2 * hash.length);\n for (byte b : hash) {\n sb.append(String.format(\"%02x\", b & 0xff));\n }\n digest = sb.toString();\n } catch (UnsupportedEncodingException ex) {\n log.error(\"UnsupportedEncodingException\",ex);\n } catch (NoSuchAlgorithmException ex) {\n log.error(\"NoSuchAlgorithmException\",ex);\n }\n\n return digest;\n }",
"protected String getFileETag(File file) {\n\t\tFileInputStream is = null;\n\t\ttry {\n\t\t\tis = new FileInputStream(file);\n\t\t\treturn \"\\\"\" + DigestUtils.md5Hex(is) + \"\\\"\";\n\t\t} catch (IOException e) {\n\t\t\treturn \"\";\n\t\t} finally {\n\t\t\tcloseQuietly(is);\n\t\t}\n\t}",
"private static byte[] m14295fl(String str) {\n try {\n MessageDigest instance = MessageDigest.getInstance(\"MD5\");\n if (instance == null) {\n return str.getBytes();\n }\n instance.update(str.getBytes());\n return instance.digest();\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n return str.getBytes();\n }\n }",
"protected String getMd5Hash(String token) {\n\n MessageDigest m;\n\t\ttry {\n\t\t\tm = MessageDigest.getInstance(\"MD5\");\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\tthrow new IllegalStateException(e);\n\t\t}\n m.update(token.getBytes());\n \n byte[] digest = m.digest();\n BigInteger bigInt = new BigInteger(1,digest);\n String hashtext = bigInt.toString(16);\n \n // Now we need to zero pad it if you actually want the full 32 chars.\n while(hashtext.length() < 32 ){\n hashtext = \"0\"+hashtext;\n }\n \n return hashtext;\n\t}",
"public static String toSHA1(String filename){\n\t\tMessageDigest md=null;\n\t\ttry{\n\t\t\tmd = MessageDigest.getInstance(\"SHA-1\");\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\ttry{\n\t\t\tFileInputStream in = new FileInputStream(filename);\n\t\t\tBufferedInputStream buffIn = new BufferedInputStream(in);\n\t\t\tDigestInputStream dis = new DigestInputStream(buffIn, md);\n\t\t\t\n\t\t\tFile f = new File(filename);\n\t\t\tLong fileSize = f.length();\n\t\t\t\n\t\t\tString blob = \"blob \" + fileSize.toString() + '\\0';\n\t\t\tmd.update(blob.getBytes());\n\t\t\t\t\t\t\n\t\t\t// read the file and update the hash calculation\n while (dis.read() != -1);\n\n // get the hash value as byte array\n byte[] hash = md.digest();\n\n return byteArray2Hex(hash);\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\t\n\t\treturn \"\";\n\t}",
"public static byte[] encryptMD5File(final String filePath) {\n File file = isSpace(filePath) ? null : new File(filePath);\n return encryptMD5File(file);\n }",
"public boolean IsFileMd5Equeal(UploadReport report) {\r\n\t\tString filename = this.conf.getFtpMountDirectory() + \"/DATA/\" + report.getFilename();\r\n\t\tString md5value = MD5Util.getFileMD5(new File(filename));\r\n\t\tFile file = new File(filename);\r\n\t\tif (file.exists()) {\r\n\t\t\tif (md5value.compareTo(report.getMd5value()) == 0) {\r\n\t\t\t\treturn true;\r\n\t\t\t} else {\r\n\t\t\t\tLogUtils.logger.error(\"Error happened when Caculate MD5 value, Original value: \" + report.getMd5value()\r\n\t\t\t\t\t\t+ \", New value : \" + md5value);\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tLogUtils.logger.error(\"Error happened when Caculate MD5 value, File: \" + filename + \" does not exist! \");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"public static String mySHA(String file) {\n\t\ttry {\n\t\t\t// java.security.MessageDigest digest = null;\n\t\t\t// digest = java.security.MessageDigest.getInstance(\"SHA-1\");\n\t\t\t// digest.reset();\n\t\t\t// digest.update(x.getBytes(\"UTF-8\"));\n\t\t\t// digest.update(x.getBytes(\"UTF-8\"));\n\t\t\t// return digest.digest();\n\t\t\tMessageDigest sha1 = MessageDigest.getInstance(\"SHA1\");\n\t\t\tFileInputStream fis = new FileInputStream(file);\n\n\t\t\tbyte[] data = new byte[1024];\n\t\t\tint read = 0;\n\t\t\twhile ((read = fis.read(data)) != -1) {\n\t\t\t\tsha1.update(data, 0, read);\n\t\t\t}\n\t\t\t;\n\t\t\tbyte[] hashBytes = sha1.digest();\n\n\t\t\tStringBuffer sb = new StringBuffer();\n\t\t\tfor (int i = 0; i < hashBytes.length; i++) {\n\t\t\t\tsb.append(Integer.toString((hashBytes[i] & 0xff) + 0x100, 16).substring(1));\n\t\t\t}\n\n\t\t\tString fileHash = sb.toString();\n\t\t\treturn fileHash;\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(e);\n\t\t\tString s = \"-1\";\n\t\t\treturn s;\n\t\t}\n\t}",
"public static String computeSHA(byte[] filebytes) throws NoSuchAlgorithmException {\r\n\t\tMessageDigest messageDigest = MessageDigest.getInstance(\"SHA-1\");\r\n\t\tbyte[] hash = messageDigest.digest(filebytes);\r\n\t\t\r\n\t\tFormatter formatter = new Formatter();\r\n\t\t\r\n\t\tfor (byte b : hash) {\r\n\t\t\tformatter.format(\"%02x\", b);\r\n\t\t}\r\n\t\t\r\n\t\treturn formatter.toString();\r\n\t}",
"public String getMD5Checksum(String pid, String dsName) throws FedoraException, IOException {\r\n try {\r\n return getDatastreamProperty(pid, dsName, DatastreamProfile.DatastreamProperty.DS_CHECKSUM);\r\n } catch (XPathExpressionException ex) {\r\n throw new FedoraException(ex);\r\n } catch (SAXException ex) {\r\n throw new FedoraException(ex);\r\n } catch (ParserConfigurationException ex) {\r\n throw new FedoraException(ex);\r\n }\r\n }",
"public String getHashsum(String file_name) {\n\t\t//\n\t\t// query database\n\t\t//\n\t\tCursor cursor = m_db.query(FILE_TABLE_NAME,\n\t\t\t\tnew String[] { FILE_FIELD_HASH_SUM }, FILE_FIELD_PATH + \"=?\",\n\t\t\t\tnew String[] { file_name }, null, null, null);\n\n\t\t//\n\t\t// get first entry of result set\n\t\t//\n\t\tString result = getFirstEntryOfResultSet(cursor);\n\n\t\t//\n\t\t// close cursor\n\t\t//\n\t\tcursor.close();\n\n\t\t//\n\t\t// done\n\t\t//\n\t\treturn result;\n\n\t}",
"java.lang.String getChecksum();",
"private static java.security.MessageDigest f() {\n /*\n r0 = \"MD5\";\n r1 = j;\n r0 = r0.equals(r1);\n if (r0 == 0) goto L_0x003a;\n L_0x000a:\n r0 = java.security.Security.getProviders();\n r1 = r0.length;\n r2 = 0;\n L_0x0010:\n if (r2 >= r1) goto L_0x003a;\n L_0x0012:\n r3 = r0[r2];\n r3 = r3.getServices();\n r3 = r3.iterator();\n L_0x001c:\n r4 = r3.hasNext();\n if (r4 == 0) goto L_0x0037;\n L_0x0022:\n r4 = r3.next();\n r4 = (java.security.Provider.Service) r4;\n r4 = r4.getAlgorithm();\n j = r4;\n r4 = j;\t Catch:{ NoSuchAlgorithmException -> 0x001c }\n r4 = java.security.MessageDigest.getInstance(r4);\t Catch:{ NoSuchAlgorithmException -> 0x001c }\n if (r4 == 0) goto L_0x001c;\n L_0x0036:\n return r4;\n L_0x0037:\n r2 = r2 + 1;\n goto L_0x0010;\n L_0x003a:\n r0 = 0;\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.koushikdutta.async.util.FileCache.f():java.security.MessageDigest\");\n }",
"public String getHashString()\n\t{\n\t\treturn md5.getHashString();\n\t}",
"public Builder setFileHash(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n fileHash_ = value;\n onChanged();\n return this;\n }",
"public Builder setFileHash(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n fileHash_ = value;\n onChanged();\n return this;\n }",
"public static String createMd5(String value)\r\n\t{ \r\n\t\ttry \r\n\t\t{\r\n\t\t\tMessageDigest md = MessageDigest.getInstance(\"MD5\");\t\t\t\r\n\t\t\tbyte[] hashInBytes = md.digest(value.getBytes(StandardCharsets.UTF_8));\r\n\t\t\tStringBuilder sb = new StringBuilder();\r\n\t for (byte b : hashInBytes) \r\n\t {\r\n\t sb.append(String.format(\"%02x\", b));\r\n\t }\r\n\t return sb.toString();\r\n\t\t}\r\n\t\tcatch(Exception ex)\r\n\t\t{\r\n\t\t\t\r\n\t\t}\r\n\t\treturn \"\";\r\n\t}",
"public static String hash(File remoteFsRoot) {\n logger.config(\"hash() invoked\");\n\n StringBuilder buf = new StringBuilder();\n try {\n buf.append(remoteFsRoot.getCanonicalPath()).append('\\n');\n } catch (IOException e) {\n logger.log(Level.FINER, \"hash() IOException - may be normal?\", e);\n buf.append(remoteFsRoot.getAbsolutePath()).append('\\n');\n }\n try {\n for (NetworkInterface ni : Collections.list(NetworkInterface.getNetworkInterfaces())) {\n for (InetAddress ia : Collections.list(ni.getInetAddresses())) {\n if (ia instanceof Inet4Address) {\n buf.append(ia.getHostAddress()).append('\\n');\n } else if (ia instanceof Inet6Address) {\n buf.append(ia.getHostAddress()).append('\\n');\n }\n }\n byte[] hardwareAddress = ni.getHardwareAddress();\n if (hardwareAddress != null) {\n buf.append(Arrays.toString(hardwareAddress));\n }\n }\n } catch (SocketException e) {\n // oh well we tried\n logger.log(Level.FINEST, \"hash() SocketException - 'oh well we tried'\", e);\n }\n return DigestUtils.md5Hex(buf.toString()).substring(0, 8);\n }",
"public static String getMD5(final File file) {\n if (file == null || !file.exists()) {\n return null;\n }\n\n FileInputStream fin = null;\n try {\n fin = new FileInputStream(file);\n String md5 = getMD5(fin);\n return md5;\n } catch (Exception e) {\n return null;\n } finally {\n closeQuietly(fin);\n }\n }",
"public static String getMd5(String input) {\n try {\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n\n byte[] messageDigest = md.digest(input.getBytes());\n\n BigInteger no = new BigInteger(1, messageDigest);\n\n String hashtext = no.toString(16);\n while (hashtext.length() < 32) {\n hashtext = \"0\" + hashtext;\n }\n return hashtext;\n } catch (NoSuchAlgorithmException e) {\n throw new RuntimeException(e);\n }\n }",
"public String getMD5(String txt){\n String md5output;\n md5output = txt;\n try {\n MessageDigest m = MessageDigest.getInstance(\"MD5\");\n m.reset();\n m.update(md5output.getBytes());\n byte[] digest = m.digest();\n BigInteger bigInt = new BigInteger(1,digest);\n md5output = bigInt.toString(16);\n } catch (Exception e) {\n md5output = null;\n } finally{\n return md5output;\n }\n \n }",
"private static byte[] generateMD5(String info) throws\n UnsupportedEncodingException, NoSuchAlgorithmException {\n byte[] inputData = info.getBytes(\"UTF-8\");\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n md.update(inputData);\n byte[] digest= md.digest();\n return digest;\n }",
"public String getHash(String str) throws Exception{\n\t\t\n\t\tMessageDigest md = MessageDigest.getInstance(\"MD5\");\n md.update(str.getBytes());\n \n byte byteData[] = md.digest();\n \n //convert the byte to hex format method 1\n StringBuffer sb = new StringBuffer();\n for (int i = 0; i < byteData.length; i++) {\n sb.append(Integer.toString((byteData[i] & 0xff) + 0x100, 16).substring(1));\n }\n \n String hex = sb.toString();\n System.out.println(hex);\n return hex; \n}",
"public static String getMD5(String s) {\n try {\n MessageDigest m = MessageDigest.getInstance(\"MD5\");\n m.update(s.getBytes(), 0, s.length());\n return \"\" + new BigInteger(1, m.digest()).toString(16);\n } catch (NoSuchAlgorithmException e) {\n logger.error(\"MD5 is not supported !!!\");\n }\n return s;\n }",
"public byte[] calc_hash(File filename)\r\n {\r\n\tint digest_length = 512;\r\n\tbyte message[] = new byte[digest_length];\r\n\tbyte key[] = new byte[0];\r\n\tMessageDigest sha;\r\n\tint message_size;\r\n\tlong file_size = 0;\r\n\r\n\ttry{\r\n\t sha = MessageDigest.getInstance(algorithm, provider);\r\n\r\n\t try{\r\n\t\t/* Read file into byte array, and use array to update hash key */\r\n\t\tFileInputStream fin = new FileInputStream(filename);\r\n\t\twhile((message_size = fin.read(message)) != -1)\r\n\t\t {\r\n\t\t\tif(message_size < digest_length)\r\n\t\t\t sha.update(message, 0, message_size);\r\n\t\t\telse\r\n\t\t\t sha.update(message);\r\n\t\t }\r\n\t\tfin.close();\r\n\r\n\t\tkey = sha.digest();\r\n\t }\r\n\t catch(IOException ioe){\r\n\t\tSystem.out.println(\"Error (calc_hash): Unable to open and read file \" + filename.getName());\r\n\t\tioe.printStackTrace();\r\n\t\treturn null;\r\n\t }\r\n\t}\r\n\tcatch(NoSuchAlgorithmException nae){\r\n\t System.out.println(\"Error (calc_hash): hash algorithm \" + algorithm + \" not found\");\r\n\t nae.printStackTrace();\r\n\t return null;\r\n\t}\r\n\tcatch(NoSuchProviderException npe){\r\n\t System.out.println(\"Error (calc_hash): Security provider \" + provider + \" not found\");\r\n\t npe.printStackTrace();\r\n\t return null;\r\n\t}\r\n\r\n\treturn key;\r\n }",
"public HashCode getInstallMD5() {\n return installMD5;\n }",
"public static String getStringMD5(String src) {\n\t\tMessageDigest messageDigest = null;\n\t\tbyte[] srcBytes = src.getBytes();\n\t\ttry {\n\t\t\tmessageDigest = MessageDigest.getInstance(\"MD5\");\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tmessageDigest.update(srcBytes, 0, srcBytes.length);\n\t\tBigInteger bigInt = new BigInteger(1, messageDigest.digest());\n\t\treturn bigInt.toString(16);\n\t}",
"public static byte[] encryptMD5(final byte[] data) {\n return hashTemplate(data, \"MD5\");\n }",
"public String md5(String s) {\n try {\n // Create MD5 Hash\n MessageDigest digest = java.security.MessageDigest.getInstance(\"MD5\");\n digest.update(s.getBytes());\n byte messageDigest[] = digest.digest();\n\n // Create Hex String\n StringBuffer hexString = new StringBuffer();\n for (int i = 0; i < messageDigest.length; i++)\n hexString.append(Integer.toHexString(0xFF & messageDigest[i]));\n return hexString.toString();\n\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n }\n return \"\";\n }",
"private static String md5(String str) {\n\n if (str == null) {\n return null;\n }\n\n MessageDigest messageDigest = null;\n\n try {\n messageDigest = MessageDigest.getInstance(HttpConf.signType);\n messageDigest.reset();\n messageDigest.update(str.getBytes(HttpConf.charset));\n } catch (NoSuchAlgorithmException e) {\n\n return str;\n } catch (UnsupportedEncodingException e) {\n return str;\n }\n\n byte[] byteArray = messageDigest.digest();\n\n StringBuffer md5StrBuff = new StringBuffer();\n\n for (int i = 0; i < byteArray.length; i++) {\n if (Integer.toHexString(0xFF & byteArray[i]).length() == 1) {\n md5StrBuff.append(\"0\").append(Integer.toHexString(0xFF & byteArray[i]));\n } else {\n md5StrBuff.append(Integer.toHexString(0xFF & byteArray[i]));\n }\n }\n\n return md5StrBuff.toString();\n }",
"private static void compareSha(String filename) {\n\n\t\tMessageDigest md = null;\n\n\t\ttry (InputStream is = new BufferedInputStream(new FileInputStream(filename))) {\n\n\t\t\tbyte[] data = new byte[4096];\n\t\t\tint nRead;\n\t\t\tmd = MessageDigest.getInstance(\"SHA-256\");\n\n\t\t\twhile ((nRead = is.read(data)) != -1) {\n\t\t\t\tmd.update(data, 0, nRead);\n\t\t\t}\n\n\t\t} catch (FileNotFoundException exc) {\n\t\t\tSystem.out.println(\n\t\t\t\t\t\"File does not exist, is a directory rather than a regular file, or cannot be opened for reading because of some other reason\");\n\t\t\tSystem.exit(1);\n\n\t\t} catch (IOException exc) {\n\t\t\tSystem.out.println(\"Input stream couldn't be initialized.\");\n\t\t\tSystem.exit(1);\n\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\tSystem.out.println(\"No provider supports a MessageDigestSpi implementation for the specified algorithm.\");\n\t\t\tSystem.exit(1);\n\t\t}\n\n\t\tString sha256Digest = Util.bytetohex(md.digest());\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tSystem.out.println(\"Please provide expected sha-256 digest for hw06part2.pdf: \");\n\t\tSystem.out.print(\">\");\n\t\tString expectedDigest = sc.nextLine();\n\t\tsc.close();\n\n\t\tif (sha256Digest.equals(expectedDigest)) {\n\t\t\tSystem.out.printf(\"Digesting completed. Digest of %s matches expected digest.\\n\", filename);\n\n\t\t} else {\n\t\t\tSystem.out.printf(\"Digesting completed. Digest of %s does not match the expected digest. Digest was: %s\\n\",\n\t\t\t\t\tfilename, sha256Digest);\n\t\t}\n\n\t}",
"private static String md5(final String s) {\n final String MD5 = \"MD5\";\n try {\n // Create MD5 Hash\n MessageDigest digest = java.security.MessageDigest\n .getInstance(MD5);\n digest.update(s.getBytes());\n byte messageDigest[] = digest.digest();\n\n // Create Hex String\n StringBuilder hexString = new StringBuilder();\n for (byte aMessageDigest : messageDigest) {\n String h = Integer.toHexString(0xFF & aMessageDigest);\n while (h.length() < 2)\n h = \"0\" + h;\n hexString.append(h);\n }\n return hexString.toString();\n\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n }\n return \"\";\n }",
"String getHash();",
"String getHash();",
"public MD5Hash(String s) {\n\t\tif(s.length() != 32) throw new IllegalArgumentException(\"Hash must have 32 characters\");\n\t\thashString = s;\n\t}",
"private String md5(String input) {\r\n\t\tString md5 = null;\r\n\t\tif (null == input)\r\n\t\t\treturn null;\r\n\r\n\t\ttry {\r\n\t\t\tMessageDigest digest = MessageDigest.getInstance(\"MD5\");\r\n\t\t\tdigest.update(input.getBytes(), 0, input.length());\r\n\t\t\tmd5 = new BigInteger(1, digest.digest()).toString(16);\r\n\t\t} catch (NoSuchAlgorithmException e) {\r\n\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn md5;\r\n\t}",
"private static String getKeyByMd5(String url) {\n String key;\n try {\n MessageDigest messageDigest = MessageDigest.getInstance(\"MD5\");\n messageDigest.update(url.getBytes());\n key = md5Encryption(messageDigest.digest());\n return key;\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n key = String.valueOf(url.hashCode());\n }\n return key;\n }",
"public static String md5(final String data) {\n return ByteString.encodeUtf8(data).md5().hex().toLowerCase();\n }",
"private String md5(final String s)\n\t{\n\t\ttry {\n\t\t\t// Create MD5 Hash\n\t\t\tMessageDigest digest = MessageDigest.getInstance(\"MD5\");\n\t\t\tdigest.update(s.getBytes());\n\t\t\tbyte messageDigest[] = digest.digest();\n\n\t\t\t// Create Hex String\n\t\t\tStringBuffer hexString = new StringBuffer();\n\t\t\tfor (int i=0; i<messageDigest.length; i++) {\n\t\t\t\tString h = Integer.toHexString(0xFF & messageDigest[i]);\n\t\t\t\twhile (h.length() < 2) h = \"0\" + h;\n\t\t\t\thexString.append(h);\n\t\t\t}\n\t\t\treturn hexString.toString();\n\t\t} catch(NoSuchAlgorithmException e) {\n\t\t\t//Logger.logStackTrace(TAG,e);\n\t\t}\n\t\treturn \"\";\n\t}",
"java.lang.String getHashData();",
"com.google.protobuf.ByteString getHash();",
"com.google.protobuf.ByteString getHash();",
"public static String hash(String data) {\n\t MessageDigest md;\n\t\ttry {\n\t\t\tmd = MessageDigest.getInstance(\"MD5\");\n\t\t md.update(data.getBytes());\n\t\t byte[] digest = md.digest();\n\t\t char[] HEX_ARRAY = \"0123456789ABCDEF\".toCharArray();\n\t char[] hexChars = new char[digest.length * 2];\n\t for (int j = 0; j < digest.length; j++) {\n\t int v = digest[j] & 0xFF;\n\t hexChars[j * 2] = HEX_ARRAY[v >>> 4];\n\t hexChars[j * 2 + 1] = HEX_ARRAY[v & 0x0F];\n\t }\n\t return new String(hexChars);\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n return null;\n\t}",
"public static String getMD5Hash(String string) {\r\n\t\tMessageDigest digest;\r\n\t\ttry {\r\n\t\t\tdigest = java.security.MessageDigest.getInstance(\"MD5\");\r\n\t\t\tdigest.update(string.getBytes());\r\n\t\t\tfinal byte[] hash = digest.digest();\r\n\t\t\tfinal StringBuilder result = new StringBuilder(hash.length);\r\n\t\t\tfor (int i = 0; i < hash.length; i++) {\r\n\t\t\t\tresult.append(Integer.toString((hash[i] & 0xff) + 0x100, 16)\r\n\t\t\t\t\t\t.substring(1));\r\n\t\t\t}\r\n\t\t\treturn result.toString();\r\n\t\t} catch (final NoSuchAlgorithmException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn \"error\";\r\n\t\t}\r\n\t}",
"int getHash();",
"public static String md5(String str) {\n MessageDigest messageDigest = null;\n try {\n messageDigest = MessageDigest.getInstance(\"MD5\");\n messageDigest.reset();\n messageDigest.update(str.getBytes(\"UTF-8\"));\n } catch (NoSuchAlgorithmException | UnsupportedEncodingException e) {\n // do nothing\n }\n byte[] byteArray = messageDigest.digest();\n StringBuffer md5StrBuff = new StringBuffer();\n for (int i = 0; i < byteArray.length; i++) {\n if (Integer.toHexString(0xFF & byteArray[i]).length() == 1)\n md5StrBuff.append(\"0\").append(Integer.toHexString(0xFF & byteArray[i]));\n else\n md5StrBuff.append(Integer.toHexString(0xFF & byteArray[i]));\n }\n return md5StrBuff.toString();\n }",
"private String md5(String message) throws java.security.NoSuchAlgorithmException\n\t{\n\t\tMessageDigest md5 = null;\n\t\ttry {\n\t\t\tmd5 = MessageDigest.getInstance(\"MD5\");\n\t\t}\n\t\tcatch (java.security.NoSuchAlgorithmException ex) {\n\t\t\tex.printStackTrace();\n\t\t\tthrow ex;\n\t\t}\n\t\tbyte[] dig = md5.digest((byte[]) message.getBytes());\n\t\tStringBuffer code = new StringBuffer();\n\t\tfor (int i = 0; i < dig.length; ++i)\n\t\t{\n\t\t\tcode.append(Integer.toHexString(0x0100 + (dig[i] & 0x00FF)).substring(1));\n\t\t}\n\t\treturn code.toString();\n\t}",
"public static String hash(String in) {\r\n\t\treturn DigestUtils.md5Hex(in.getBytes());\r\n\t}",
"public static String getFileChecksum(File file) {\n return getFileChecksum(file, true);\n }"
] |
[
"0.7800426",
"0.7483837",
"0.745395",
"0.73832744",
"0.7380369",
"0.72531235",
"0.72531235",
"0.71196264",
"0.7082408",
"0.7062036",
"0.7048478",
"0.7031023",
"0.70060116",
"0.69423705",
"0.6941836",
"0.6911277",
"0.6899666",
"0.68789035",
"0.67872053",
"0.6573226",
"0.6517764",
"0.6462793",
"0.64626735",
"0.64483845",
"0.637664",
"0.6344204",
"0.6328337",
"0.63156193",
"0.62790745",
"0.62778276",
"0.62544405",
"0.62272245",
"0.622478",
"0.62095225",
"0.6189183",
"0.618581",
"0.6150319",
"0.61447257",
"0.6133792",
"0.61083305",
"0.61080337",
"0.6107677",
"0.6082222",
"0.6078524",
"0.6063569",
"0.60347885",
"0.6032613",
"0.6018872",
"0.5967777",
"0.59409916",
"0.5930955",
"0.59301263",
"0.59198403",
"0.59154654",
"0.58731323",
"0.58727765",
"0.5865943",
"0.58636516",
"0.58328414",
"0.58306295",
"0.58288914",
"0.5823926",
"0.5822736",
"0.5820728",
"0.58198696",
"0.58198696",
"0.5814811",
"0.5810591",
"0.5802849",
"0.5767336",
"0.57649535",
"0.57357484",
"0.5735534",
"0.5722977",
"0.5713615",
"0.5705999",
"0.5685397",
"0.5664443",
"0.5657681",
"0.56380135",
"0.5635169",
"0.56317455",
"0.56283534",
"0.56283534",
"0.5621572",
"0.5617056",
"0.56170446",
"0.5608373",
"0.5608194",
"0.5602473",
"0.55986595",
"0.55986595",
"0.5591306",
"0.5573595",
"0.5569579",
"0.5567024",
"0.55646014",
"0.5549714",
"0.553195"
] |
0.63889164
|
25
|
MD5 of the file content bytes fileHash = 1;
|
@java.lang.Override
public com.google.protobuf.ByteString getFileHash() {
return fileHash_;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private String getFileMd5Checksum(String filename){\n\t\ttry {\n\t\t\tbyte[] fileBytes = Files.readAllBytes(Paths.get(FILES_ROOT + filename));\n\t\t\tbyte[] fileHash = MessageDigest.getInstance(\"MD5\").digest(fileBytes);\n\n\t\t\treturn DatatypeConverter.printHexBinary(fileHash);\n\t\t} catch (IOException e) {\n\t\t\t// TODO: Handle file doesn't exist\n\t\t\treturn \"\";\n\t\t} catch (Exception e) {\n\t\t\treturn \"\";\n\t\t}\n\t}",
"public static String computeMD5FileHash (File file) throws Exception {\n byte[] b = createFileChecksum(file);\n String result = \"\";\n\n for (int i=0; i < b.length; i++) {\n result += Integer.toString( ( b[i] & 0xff ) + 0x100, 16).substring( 1 );\n }\n return result;\n }",
"private static String getMD5Checksum(String filename) throws Exception {\r\n\t\tbyte[] b = createChecksum(filename);\r\n\t\tStringBuilder result = new StringBuilder();\r\n\t\tfor (byte v : b) {\r\n\t\t\tresult.append(Integer.toString((v & 0xff) + 0x100, 16).substring(1));\r\n\t\t}\r\n\t\treturn result.toString();\r\n\t}",
"private static String getFileChecksum(File file) throws IOException, NoSuchAlgorithmException {\n FileInputStream fis = new FileInputStream(file);\n\n // Use MD5 algorithm\n MessageDigest digest = MessageDigest.getInstance(\"MD5\");\n\n // Create byte array to read data in chunks\n byte[] byteArray = new byte[1024];\n int bytesCount = 0;\n\n // Read file data and update in message digest\n while ((bytesCount = fis.read(byteArray)) != -1) {\n digest.update(byteArray, 0, bytesCount);\n }\n ;\n\n // close the stream; We don't need it now.\n fis.close();\n\n // Get the hash's bytes\n byte[] bytes = digest.digest();\n\n // This bytes[] has bytes in decimal format;\n // Convert it to hexadecimal format\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < bytes.length; i++) {\n sb.append(Integer.toString((bytes[i] & 0xff) + 0x100, 16).substring(1));\n }\n\n // return complete hash\n return sb.toString();\n }",
"public static String getFileMD5(File file) {\n\t\tMessageDigest messageDigest = null;\n\t\tFileInputStream fileInStream = null;\n\t\tbyte buffer[] = new byte[1024];\n\t\tint length = -1;\n\t\ttry {\n\t\t\tmessageDigest = MessageDigest.getInstance(\"MD5\");\n\t\t\tfileInStream = new FileInputStream(file);\n\t\t\twhile ((length = fileInStream.read(buffer, 0, 1024)) != -1) {\n\t\t\t\tmessageDigest.update(buffer, 0, length);\n\t\t\t}\n\t\t\tfileInStream.close();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t\tBigInteger bigInt = new BigInteger(1, messageDigest.digest());\n\t\treturn bigInt.toString(16);\n\t}",
"com.google.protobuf.ByteString getFileHash();",
"com.google.protobuf.ByteString getFileHash();",
"public static String fileMD5(File file) {\n\t\tFileInputStream fis = null;\n\t\tString md5 = null;\n\t\ttry {\n\t\t\tfis = new FileInputStream(file);\n\t\t\tmd5 = org.apache.commons.codec.digest.DigestUtils.md5Hex(fis);\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"!!!\", e);\n\t\t} finally {\n\t\t\tCloseUtils.close(fis);\n\t\t}\n\t\treturn md5;\n\t}",
"public static String md5(String inputFile) {\r\n String md5 = null;\r\n logger.debug(\"Start to calculate hashcode (SHA1) for {}\", inputFile);\r\n try (DigestInputStream digestIn = new DigestInputStream(new FileInputStream(inputFile),\r\n MessageDigest.getInstance(\"SHA1\"))) {\r\n byte[] buffer = new byte[1024 * 1024];\r\n while (digestIn.read(buffer) > 0) {\r\n // do nothing\r\n }\r\n md5 = toHexString(digestIn.getMessageDigest().digest());\r\n } catch (NoSuchAlgorithmException | IOException e) {\r\n logger.warn(\"Fail to md5 for {} ({})\", inputFile, e.getMessage());\r\n }\r\n logger.debug(\"End to calculate hashcode (SHA1) for {}, {}\", inputFile, md5);\r\n return md5;\r\n }",
"static String generateChecksum(String filename) {\n\n try {\n // Instantiating file and Hashing Algorithm.\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n FileInputStream file = new FileInputStream(filename);\n\n // Generation of checksum.\n byte[] dataBytes = new byte[1024];\n int nread;\n\n while ((nread = file.read(dataBytes)) != -1) {\n md.update(dataBytes, 0, nread);\n }\n\n byte[] mdbytes = md.digest();\n\n // Convert byte to hex.\n StringBuilder hexString = new StringBuilder();\n\n for (byte mdbyte : mdbytes) {\n String hex = Integer.toHexString(0xff & mdbyte);\n if (hex.length() == 1) hexString.append('0');\n hexString.append(hex);\n }\n\n // Return checksum as completed string.\n return hexString.toString();\n\n } catch (NoSuchAlgorithmException | IOException e) {\n e.printStackTrace();\n }\n return null;\n }",
"public static String getFileMD5(File file) {\n if (!file.isFile()) {\n return null;\n }\n MessageDigest digest = null;\n FileInputStream in = null;\n byte buffer[] = new byte[1024];\n int len;\n try {\n digest = MessageDigest.getInstance(\"MD5\");\n in = new FileInputStream(file);\n while ((len = in.read(buffer, 0, 1024)) != -1) {\n digest.update(buffer, 0, len);\n }\n in.close();\n } catch (Exception e) {\n e.printStackTrace();\n return null;\n }\n BigInteger bigInt = new BigInteger(1, digest.digest());\n String md5 = bigInt.toString(16);\n while (md5.length() < 32)\n md5 = \"0\" + md5;\n return md5;\n }",
"private static String getFileChecksum(MessageDigest digest, File file) throws IOException\n\t {\n\t FileInputStream fis = new FileInputStream(file);\n\t \n\t //Create byte array to read data in chunks\n\t byte[] byteArray = new byte[1024];\n\t int bytesCount = 0;\n\t \n\t //Read file data and update in message digest\n\t while ((bytesCount = fis.read(byteArray)) != -1) {\n\t digest.update(byteArray, 0, bytesCount);\n\t };\n\t \n\t //close the stream; We don't need it now.\n\t fis.close();\n\t \n\t //Get the hash's bytes\n\t byte[] bytes = digest.digest();\n\t \n\t //This bytes[] has bytes in decimal format;\n\t //Convert it to hexadecimal format\n\t StringBuilder sb = new StringBuilder();\n\t for(int i=0; i< bytes.length ;i++)\n\t {\n\t sb.append(Integer.toString((bytes[i] & 0xff) + 0x100, 16).substring(1));\n\t }\n\t \n\t //return complete hash\n\t return sb.toString();\n\t }",
"public String getMD5() {\n return hash;\n }",
"private static String getFileChecksum(MessageDigest digest, File file) throws IOException {\n FileInputStream fis = new FileInputStream(file);\n\n //Create byte array to read data in chunks\n byte[] byteArray = new byte[1024];\n int bytesCount = 0;\n\n //Read file data and update in message digest\n while ((bytesCount = fis.read(byteArray)) != -1) {\n digest.update(byteArray, 0, bytesCount);\n }\n\n //close the stream; We don't need it now.\n fis.close();\n\n //Get the hash's bytes\n byte[] bytes = digest.digest();\n\n //This bytes[] has bytes in decimal format;\n //Convert it to hexadecimal format\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < bytes.length; i++) {\n sb.append(Integer.toString((bytes[i] & 0xff) + 0x100, 16).substring(1));\n }\n\n //return complete hash\n return sb.toString();\n }",
"public static byte[] createCheckSum(String filename) throws Exception {\n InputStream fis = new FileInputStream(filename);\n\n byte[] buffer = new byte[1024];\n MessageDigest complete = MessageDigest.getInstance(\"MD5\");\n int numRead;\n\n do {\n numRead = fis.read(buffer);\n if (numRead > 0) {\n complete.update(buffer, 0, numRead);\n }\n } while (numRead != -1);\n\n fis.close();\n // Return MD5 Hash\n return complete.digest();\n }",
"public static String getFileMD5(String path) {\n\t\treturn getFileMD5(new File(path));\n\t}",
"public static String fileMD5(String filePath) {\n\t\tFileInputStream fis = null;\n\t\tString md5 = null;\n\t\ttry {\n\t\t\tfis = new FileInputStream(new File(filePath));\n\t\t\tmd5 = org.apache.commons.codec.digest.DigestUtils.md5Hex(fis);\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"!!!\", e);\n\t\t} finally {\n\t\t\tCloseUtils.close(fis);\n\t\t}\n\t\treturn md5;\n\t}",
"public static String computeMD5(String filename) throws Exception {\r\n byte[] b = createGenericChecksum(filename, 0);\r\n String result = \"\";\r\n for (int i = 0; i < b.length; i++) {\r\n result += Integer.toString((b[i] & 0xff) + 0x100, 16).substring(1);\r\n }\r\n return result;\r\n }",
"public static String getMD5(File file) throws IOException, NoSuchAlgorithmException {\n return getChecksum(file, MessageDigest.getInstance(\"MD5\"));\n }",
"protected void md5file(File file) throws IOException {\n if (file.isDirectory()) {\n throw new IllegalArgumentException(\"Only files can be check summed !\");\n }\n\n // calculating the output\n byte[] md5 = DigestUtils.md5(new FileInputStream(file));\n\n // getting the output file\n File outputFile = new File(file.getAbsolutePath() + \".md5\");\n Files.write(Paths.get(outputFile.getAbsolutePath()), md5);\n\n }",
"String saveData(MultipartFile md5File) throws IOException;",
"byte[] getFile(String sha) throws Exception;",
"@java.lang.Override\n public com.google.protobuf.ByteString getFileHash() {\n return fileHash_;\n }",
"@java.lang.Override\n public com.google.protobuf.ByteString getFileHash() {\n return fileHash_;\n }",
"byte[] getDigest();",
"private String fileChecksum(File tmpFile, ITaskMonitor monitor) {\n InputStream is = null;\n try {\n is = new FileInputStream(tmpFile);\n MessageDigest digester = getChecksumType().getMessageDigest();\n byte[] buf = new byte[65536];\n int n;\n while ((n = is.read(buf)) >= 0) {\n if (n > 0) {\n digester.update(buf, 0, n);\n }\n }\n return getDigestChecksum(digester);\n } catch (FileNotFoundException e) {\n monitor.setResult(\"File not found: %1$s\", e.getMessage());\n } catch (Exception e) {\n monitor.setResult(e.getMessage());\n } finally {\n if (is != null) {\n try {\n is.close();\n } catch (IOException e) {\n }\n }\n }\n return \"\";\n }",
"public static String getFileChecksum(MessageDigest digest, String filePath) throws IOException {\n\t\tFileInputStream fis = new FileInputStream(filePath);\n\n\t\t// Create byte array to read data in chunks\n\t\tbyte[] byteArray = new byte[1024];\n\t\tint bytesCount = 0;\n\n\t\t// Read file data and update in message digest\n\t\twhile ((bytesCount = fis.read(byteArray)) != -1) {\n\t\t\tdigest.update(byteArray, 0, bytesCount);\n\t\t}\n\t\t;\n\n\t\t// close the stream; We don't need it now.\n\t\tfis.close();\n\n\t\t// Get the hash's bytes\n\t\tbyte[] bytes = digest.digest();\n\n\t\t// This bytes[] has bytes in decimal format;\n\t\t// Convert it to hexadecimal format\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor (int i = 0; i < bytes.length; i++) {\n\t\t\tsb.append(Integer.toString((bytes[i] & 0xff) + 0x100, 16).substring(1));\n\t\t}\n\n\t\t// return complete hash\n\t\treturn sb.toString();\n\t}",
"public static byte[] encryptMD5File(final File file) {\n if (file == null) return null;\n FileInputStream fis = null;\n DigestInputStream digestInputStream;\n try {\n fis = new FileInputStream(file);\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n digestInputStream = new DigestInputStream(fis, md);\n byte[] buffer = new byte[256 * 1024];\n while (true) {\n if (!(digestInputStream.read(buffer) > 0)) break;\n }\n md = digestInputStream.getMessageDigest();\n return md.digest();\n } catch (NoSuchAlgorithmException | IOException e) {\n e.printStackTrace();\n return null;\n } finally {\n try {\n if (fis != null) {\n fis.close();\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }",
"byte[] digest();",
"@Test\n public void fileMd5Test() {\n // TODO: test fileMd5\n }",
"public String getMd5Hash() {\n return md5Hash;\n }",
"public String getMD5() {\n return m_module.getConfiguration().getMD5();\n }",
"public static String CreateMD5(File file) {\n String base64Image = \"\";\n try (FileInputStream imageInFile = new FileInputStream(file)) {\n // Reading a Image file from file system\n byte imageData[] = new byte[(int) file.length()];\n imageInFile.read(imageData);\n base64Image = Base64.getEncoder().encodeToString(imageData);\n } catch (FileNotFoundException e) {\n DialogWindow.ShowErrorPane(\"Image could not be found.\", \"Error Image Missing\");\n// System.out.println(\"Image not found\" + e);\n } catch (IOException ioe) {\n DialogWindow.ShowErrorPane(\"Error while the image was being converted.\", \"Error Converting Image\");\n// System.out.println(\"Exception while reading the Image \" + ioe);\n }\n return base64Image;\n }",
"public BoxFileUploadRequestObject setContentMD5(String sha1) {\n getRequestExtras().addHeader(Constants.CONTENT_MD5, sha1);\n return this;\n }",
"public static byte[] computeMD5Hash(InputStream is) throws NoSuchAlgorithmException, IOException {\n BufferedInputStream bis = new BufferedInputStream(is);\n try {\n MessageDigest messageDigest = MessageDigest.getInstance(\"MD5\");\n byte[] buffer = new byte[16384];\n int bytesRead = -1;\n while ((bytesRead = bis.read(buffer, 0, buffer.length)) != -1) {\n messageDigest.update(buffer, 0, bytesRead);\n }\n return messageDigest.digest();\n } finally {\n try {\n bis.close();\n } catch (Exception e) {\n System.err.println(\"Unable to close input stream of hash candidate: \" + e);\n }\n }\n }",
"public byte[] getContentMd5() {\n return CoreUtils.clone(this.contentMd5);\n }",
"private static String md5(byte[] b) {\n try {\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n md.reset();\n md.update(b);\n byte[] digest = md.digest();\n StringBuffer sb = new StringBuffer();\n for (int i=0; i<digest.length; i++) {\n String a = Integer.toHexString(0xff & digest[i]);\n if (a.length() == 1) a = \"0\" + a;\n sb.append(a);\n }\n return sb.toString();\n }\n catch (NoSuchAlgorithmException e) { writeLog(e); }\n return null;\n }",
"private int getFileContentHashCode(Path filePath) throws IOException {\n return Arrays.hashCode(Files.readAllBytes(filePath));\n }",
"public static void md5(File outputFile) throws ConverterException {\r\n\t\ttry {\r\n\t\t\tFileInputStream fileInputStream = new FileInputStream(outputFile);\r\n\t\t\tBufferedInputStream bufferedInputStream = new BufferedInputStream(fileInputStream);\r\n\t\t\t\r\n\t\t\tbyte[] datei = bufferedInputStream.readAllBytes();\r\n\t\t\tMessageDigest md = MessageDigest.getInstance(\"MD5\");\r\n\t\t\tbyte[] md5 = md.digest(datei);\r\n\t\t\tfor (int i = 0; i < md5.length; i++) {\r\n\t\t\t\tSystem.out.print(String.format(\"%02X\", md5[i]));\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\" File Length: \" + outputFile.length());\r\n\t\t\tSystem.out.println();\r\n\t\t\t\r\n\t\t\tbufferedInputStream.close();\r\n\t\t\tfileInputStream.close();\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\tthrow new ConverterException(\"Datei kann nicht gefunden werden\");\r\n\t\t} catch (IOException e) {\r\n\t\t\tthrow new ConverterException(\"Beim Lesen der Datei ist ein Fehler aufgetreten\");\r\n\t\t} catch (NoSuchAlgorithmException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"private String calculateCheckSum(File file2) {\n\t\tStringBuffer sb = new StringBuffer(\"\");\n\t\ttry {\n\t\t\tMessageDigest messageDigest = MessageDigest.getInstance(\"SHA1\");\n\n\t\t\tFileInputStream finput = new FileInputStream(file2);\n\t\t\tbyte[] dataBytes = new byte[1024];\n\n\t\t\tint bytesRead = 0;\n\n\t\t\twhile ((bytesRead = finput.read(dataBytes)) != -1) {\n\t\t\t\tmessageDigest.update(dataBytes, 0, bytesRead);\n\t\t\t}\n\n\t\t\tbyte[] digestBytes = messageDigest.digest();\n\n\t\t\tfor (int i = 0; i < digestBytes.length; i++) {\n\t\t\t\tsb.append(Integer.toString((digestBytes[i] & 0xff) + 0x100, 16).substring(1));\n\t\t\t}\n\t\t\tSystem.out.println(\"file check sum value is \" + sb.toString());\n\t\t\tfinput.close();\n\t\t} catch (Exception ex) {\n\t\t\t// TODO: handle exception\n\t\t\tLogger.getLogger(FileTransferClient.class.getName()).log(Level.SEVERE, null, ex);\n\t\t}\n\n\t\treturn sb.toString();\n\t}",
"public static byte[] computeMD5Hash(byte[] data) throws NoSuchAlgorithmException, IOException {\n return computeMD5Hash(new ByteArrayInputStream(data));\n }",
"public byte[] getMD5() {\n return MD5;\n }",
"public Digest (File appdir)\n throws IOException\n {\n // parse and validate our digest file contents\n StringBuffer data = new StringBuffer();\n File dfile = new File(appdir, DIGEST_FILE);\n List pairs = ConfigUtil.parsePairs(dfile, false);\n for (Iterator iter = pairs.iterator(); iter.hasNext(); ) {\n String[] pair = (String[])iter.next();\n if (pair[0].equals(DIGEST_FILE)) {\n _metaDigest = pair[1];\n break;\n }\n _digests.put(pair[0], pair[1]);\n note(data, pair[0], pair[1]);\n }\n \n // we've reached the end, validate our contents\n MessageDigest md = getMessageDigest();\n byte[] contents = data.toString().getBytes(\"UTF-8\");\n String md5 = StringUtil.hexlate(md.digest(contents));\n if (!md5.equals(_metaDigest)) {\n String err = MessageUtil.tcompose(\n \"m.invalid_digest_file\", _metaDigest, md5);\n throw new IOException(err);\n }\n }",
"public byte[] MD5(File archivo) throws OpenSSL_Exception {\n\t\tString[] comando = new String[]{ \"openssl\" , \"dgst\" , \"-md5\" , archivo.getAbsolutePath()};\n\t\tProcess terminal = null;\n\t\ttry { terminal = Runtime.getRuntime().exec(comando); } catch (IOException e) { \n\t\t\tthrow new OpenSSL_Exception(\"No se puede ejecutar el comando en el terminal\");\n\t\t}\n\t\t// --- > Leemos la salida error del comando\n\t\tBufferedReader errors = new BufferedReader(new InputStreamReader(terminal.getErrorStream()));\n\t\tString linea = \"\" , error = \"\" ;\n\t\ttry { while( (linea = errors.readLine()) != null) error += linea + \"\\n\"; } catch (IOException e) {\n\t\t\tthrow new OpenSSL_Exception(\"No se puede leer el error que ha producido el comando\");\n\t\t}\n\t\t// --- > Si hubo salida error lanzamos al excepcion con el error\n\t\tif(!error.equals(\"\"))throw new OpenSSL_Exception(\"Error al ejecutar el comando:\\n\" + error );\n\t\t// --- > Leemos el resultado obtenido\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(terminal.getInputStream()));\n\t\tString res = \"\";\n\t\ttry { while((linea = in.readLine()) != null) res += linea; } catch (IOException e) {\n\t\t\tthrow new OpenSSL_Exception(\"No se puede leer el resultado que ha producido el comando\");\n\t\t}\n\t\treturn res.substring(res.lastIndexOf(\" \") + 1 ).getBytes();\n\t}",
"public byte[] getHash()\n\t{\n\t\treturn md5.getHash();\n\t}",
"@Test\n public void md5Checksum() throws NoSuchAlgorithmException {\n String string = Utils.md5Checksum(\"abcde fghijk lmn op\");\n Assert.assertEquals(\"1580420c86bbc3b356f6c40d46b53fc8\", string);\n }",
"public static String md5(String pass)\n {\n try{\n MessageDigest md=MessageDigest.getInstance(\"MD5\");\n byte[] messageDigest=md.digest(pass.getBytes());\n BigInteger num=new BigInteger(1,messageDigest);\n String hashText=num.toString(16);\n while(hashText.length()<32)\n {\n hashText=\"0\"+hashText;\n } \n return hashText; \n }\n catch(Exception e)\n { \n throw new RuntimeException(e);\n } \n }",
"public static void main(String[] args) throws NoSuchAlgorithmException, FileNotFoundException, IOException {\n \r\n String hash = \"F5D080D4F4E185DECA8A8B24F72408D9\";\r\n String [] keys = {\"9A1BA7F38A3E8D8F9DDD55972868CB3F\",\"17185CEF199E1C89804EDEE9DCDD1B90\",\"F5D080D4F4E185DECA8A8B24F72408D9\"};\r\n String password = \"NoSuchPassword\";\r\n File file = null;\r\n JFileChooser ff = new JFileChooser();\r\n int a = ff.showOpenDialog(null);\r\n if(a == JFileChooser.APPROVE_OPTION){\r\n try {\r\n file = ff.getSelectedFile();\r\n JOptionPane.showMessageDialog(ff, a);\r\n \r\n } catch (Exception ex) {\r\n ex.printStackTrace();\r\n } finally {\r\n System.out.println(file.getPath());\r\n }\r\n } \r\n BufferedReader fr = null;\r\n fr = new BufferedReader(new FileReader(file.getPath()));\r\n String line = null;\r\n int i = 0; \r\n //This is the funtion that Java implement in java.security.MessageDigest\r\n MessageDigest md5 = MessageDigest.getInstance(\"MD5\");\r\n while((line = fr.readLine()) != null){\r\n System.out.println(line);\r\n md5.update(line.getBytes());\r\n byte [] digests = md5.digest();\r\n String hashs = DatatypeConverter.printHexBinary(digests).toUpperCase();\r\n if(keys[i].equals(hashs)){\r\n System.out.println(\"CORRECT!\\nThe hash created is the same as the hash saved \");\r\n }\r\n else{\r\n System.out.println(\"ERROR!\\nThere was a mistake, the hash create doesn't mach the hash saved\");\r\n }\r\n i++;\r\n } \r\n fr.close();\r\n /**In conclusion we can use the MD5 for digest a words and then same them\r\n * is a DataBase, this with the function that if the DB is committed the\r\n * passwords will not be there\r\n */\r\n }",
"public ShareFileHttpHeaders setContentMd5(byte[] contentMd5) {\n this.contentMd5 = CoreUtils.clone(contentMd5);\n return this;\n }",
"public String getMD5ForGame(String gameId) {\n return \"TODO\";\n }",
"public static String md5(String message) {\n String digest = null;\n try {\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n byte[] hash = md.digest(message.getBytes(\"UTF-8\"));\n\n //converting byte array to HexadecimalString\n StringBuilder sb = new StringBuilder(2 * hash.length);\n for (byte b : hash) {\n sb.append(String.format(\"%02x\", b & 0xff));\n }\n digest = sb.toString();\n } catch (UnsupportedEncodingException ex) {\n log.error(\"UnsupportedEncodingException\",ex);\n } catch (NoSuchAlgorithmException ex) {\n log.error(\"NoSuchAlgorithmException\",ex);\n }\n\n return digest;\n }",
"protected String getFileETag(File file) {\n\t\tFileInputStream is = null;\n\t\ttry {\n\t\t\tis = new FileInputStream(file);\n\t\t\treturn \"\\\"\" + DigestUtils.md5Hex(is) + \"\\\"\";\n\t\t} catch (IOException e) {\n\t\t\treturn \"\";\n\t\t} finally {\n\t\t\tcloseQuietly(is);\n\t\t}\n\t}",
"private static byte[] m14295fl(String str) {\n try {\n MessageDigest instance = MessageDigest.getInstance(\"MD5\");\n if (instance == null) {\n return str.getBytes();\n }\n instance.update(str.getBytes());\n return instance.digest();\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n return str.getBytes();\n }\n }",
"protected String getMd5Hash(String token) {\n\n MessageDigest m;\n\t\ttry {\n\t\t\tm = MessageDigest.getInstance(\"MD5\");\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\tthrow new IllegalStateException(e);\n\t\t}\n m.update(token.getBytes());\n \n byte[] digest = m.digest();\n BigInteger bigInt = new BigInteger(1,digest);\n String hashtext = bigInt.toString(16);\n \n // Now we need to zero pad it if you actually want the full 32 chars.\n while(hashtext.length() < 32 ){\n hashtext = \"0\"+hashtext;\n }\n \n return hashtext;\n\t}",
"public static String toSHA1(String filename){\n\t\tMessageDigest md=null;\n\t\ttry{\n\t\t\tmd = MessageDigest.getInstance(\"SHA-1\");\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\ttry{\n\t\t\tFileInputStream in = new FileInputStream(filename);\n\t\t\tBufferedInputStream buffIn = new BufferedInputStream(in);\n\t\t\tDigestInputStream dis = new DigestInputStream(buffIn, md);\n\t\t\t\n\t\t\tFile f = new File(filename);\n\t\t\tLong fileSize = f.length();\n\t\t\t\n\t\t\tString blob = \"blob \" + fileSize.toString() + '\\0';\n\t\t\tmd.update(blob.getBytes());\n\t\t\t\t\t\t\n\t\t\t// read the file and update the hash calculation\n while (dis.read() != -1);\n\n // get the hash value as byte array\n byte[] hash = md.digest();\n\n return byteArray2Hex(hash);\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\t\n\t\treturn \"\";\n\t}",
"public static byte[] encryptMD5File(final String filePath) {\n File file = isSpace(filePath) ? null : new File(filePath);\n return encryptMD5File(file);\n }",
"public boolean IsFileMd5Equeal(UploadReport report) {\r\n\t\tString filename = this.conf.getFtpMountDirectory() + \"/DATA/\" + report.getFilename();\r\n\t\tString md5value = MD5Util.getFileMD5(new File(filename));\r\n\t\tFile file = new File(filename);\r\n\t\tif (file.exists()) {\r\n\t\t\tif (md5value.compareTo(report.getMd5value()) == 0) {\r\n\t\t\t\treturn true;\r\n\t\t\t} else {\r\n\t\t\t\tLogUtils.logger.error(\"Error happened when Caculate MD5 value, Original value: \" + report.getMd5value()\r\n\t\t\t\t\t\t+ \", New value : \" + md5value);\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tLogUtils.logger.error(\"Error happened when Caculate MD5 value, File: \" + filename + \" does not exist! \");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"public static String mySHA(String file) {\n\t\ttry {\n\t\t\t// java.security.MessageDigest digest = null;\n\t\t\t// digest = java.security.MessageDigest.getInstance(\"SHA-1\");\n\t\t\t// digest.reset();\n\t\t\t// digest.update(x.getBytes(\"UTF-8\"));\n\t\t\t// digest.update(x.getBytes(\"UTF-8\"));\n\t\t\t// return digest.digest();\n\t\t\tMessageDigest sha1 = MessageDigest.getInstance(\"SHA1\");\n\t\t\tFileInputStream fis = new FileInputStream(file);\n\n\t\t\tbyte[] data = new byte[1024];\n\t\t\tint read = 0;\n\t\t\twhile ((read = fis.read(data)) != -1) {\n\t\t\t\tsha1.update(data, 0, read);\n\t\t\t}\n\t\t\t;\n\t\t\tbyte[] hashBytes = sha1.digest();\n\n\t\t\tStringBuffer sb = new StringBuffer();\n\t\t\tfor (int i = 0; i < hashBytes.length; i++) {\n\t\t\t\tsb.append(Integer.toString((hashBytes[i] & 0xff) + 0x100, 16).substring(1));\n\t\t\t}\n\n\t\t\tString fileHash = sb.toString();\n\t\t\treturn fileHash;\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(e);\n\t\t\tString s = \"-1\";\n\t\t\treturn s;\n\t\t}\n\t}",
"public static String computeSHA(byte[] filebytes) throws NoSuchAlgorithmException {\r\n\t\tMessageDigest messageDigest = MessageDigest.getInstance(\"SHA-1\");\r\n\t\tbyte[] hash = messageDigest.digest(filebytes);\r\n\t\t\r\n\t\tFormatter formatter = new Formatter();\r\n\t\t\r\n\t\tfor (byte b : hash) {\r\n\t\t\tformatter.format(\"%02x\", b);\r\n\t\t}\r\n\t\t\r\n\t\treturn formatter.toString();\r\n\t}",
"public String getMD5Checksum(String pid, String dsName) throws FedoraException, IOException {\r\n try {\r\n return getDatastreamProperty(pid, dsName, DatastreamProfile.DatastreamProperty.DS_CHECKSUM);\r\n } catch (XPathExpressionException ex) {\r\n throw new FedoraException(ex);\r\n } catch (SAXException ex) {\r\n throw new FedoraException(ex);\r\n } catch (ParserConfigurationException ex) {\r\n throw new FedoraException(ex);\r\n }\r\n }",
"public String getHashsum(String file_name) {\n\t\t//\n\t\t// query database\n\t\t//\n\t\tCursor cursor = m_db.query(FILE_TABLE_NAME,\n\t\t\t\tnew String[] { FILE_FIELD_HASH_SUM }, FILE_FIELD_PATH + \"=?\",\n\t\t\t\tnew String[] { file_name }, null, null, null);\n\n\t\t//\n\t\t// get first entry of result set\n\t\t//\n\t\tString result = getFirstEntryOfResultSet(cursor);\n\n\t\t//\n\t\t// close cursor\n\t\t//\n\t\tcursor.close();\n\n\t\t//\n\t\t// done\n\t\t//\n\t\treturn result;\n\n\t}",
"java.lang.String getChecksum();",
"private static java.security.MessageDigest f() {\n /*\n r0 = \"MD5\";\n r1 = j;\n r0 = r0.equals(r1);\n if (r0 == 0) goto L_0x003a;\n L_0x000a:\n r0 = java.security.Security.getProviders();\n r1 = r0.length;\n r2 = 0;\n L_0x0010:\n if (r2 >= r1) goto L_0x003a;\n L_0x0012:\n r3 = r0[r2];\n r3 = r3.getServices();\n r3 = r3.iterator();\n L_0x001c:\n r4 = r3.hasNext();\n if (r4 == 0) goto L_0x0037;\n L_0x0022:\n r4 = r3.next();\n r4 = (java.security.Provider.Service) r4;\n r4 = r4.getAlgorithm();\n j = r4;\n r4 = j;\t Catch:{ NoSuchAlgorithmException -> 0x001c }\n r4 = java.security.MessageDigest.getInstance(r4);\t Catch:{ NoSuchAlgorithmException -> 0x001c }\n if (r4 == 0) goto L_0x001c;\n L_0x0036:\n return r4;\n L_0x0037:\n r2 = r2 + 1;\n goto L_0x0010;\n L_0x003a:\n r0 = 0;\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.koushikdutta.async.util.FileCache.f():java.security.MessageDigest\");\n }",
"public String getHashString()\n\t{\n\t\treturn md5.getHashString();\n\t}",
"public Builder setFileHash(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n fileHash_ = value;\n onChanged();\n return this;\n }",
"public Builder setFileHash(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n fileHash_ = value;\n onChanged();\n return this;\n }",
"public static String createMd5(String value)\r\n\t{ \r\n\t\ttry \r\n\t\t{\r\n\t\t\tMessageDigest md = MessageDigest.getInstance(\"MD5\");\t\t\t\r\n\t\t\tbyte[] hashInBytes = md.digest(value.getBytes(StandardCharsets.UTF_8));\r\n\t\t\tStringBuilder sb = new StringBuilder();\r\n\t for (byte b : hashInBytes) \r\n\t {\r\n\t sb.append(String.format(\"%02x\", b));\r\n\t }\r\n\t return sb.toString();\r\n\t\t}\r\n\t\tcatch(Exception ex)\r\n\t\t{\r\n\t\t\t\r\n\t\t}\r\n\t\treturn \"\";\r\n\t}",
"public static String hash(File remoteFsRoot) {\n logger.config(\"hash() invoked\");\n\n StringBuilder buf = new StringBuilder();\n try {\n buf.append(remoteFsRoot.getCanonicalPath()).append('\\n');\n } catch (IOException e) {\n logger.log(Level.FINER, \"hash() IOException - may be normal?\", e);\n buf.append(remoteFsRoot.getAbsolutePath()).append('\\n');\n }\n try {\n for (NetworkInterface ni : Collections.list(NetworkInterface.getNetworkInterfaces())) {\n for (InetAddress ia : Collections.list(ni.getInetAddresses())) {\n if (ia instanceof Inet4Address) {\n buf.append(ia.getHostAddress()).append('\\n');\n } else if (ia instanceof Inet6Address) {\n buf.append(ia.getHostAddress()).append('\\n');\n }\n }\n byte[] hardwareAddress = ni.getHardwareAddress();\n if (hardwareAddress != null) {\n buf.append(Arrays.toString(hardwareAddress));\n }\n }\n } catch (SocketException e) {\n // oh well we tried\n logger.log(Level.FINEST, \"hash() SocketException - 'oh well we tried'\", e);\n }\n return DigestUtils.md5Hex(buf.toString()).substring(0, 8);\n }",
"public static String getMD5(final File file) {\n if (file == null || !file.exists()) {\n return null;\n }\n\n FileInputStream fin = null;\n try {\n fin = new FileInputStream(file);\n String md5 = getMD5(fin);\n return md5;\n } catch (Exception e) {\n return null;\n } finally {\n closeQuietly(fin);\n }\n }",
"public static String getMd5(String input) {\n try {\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n\n byte[] messageDigest = md.digest(input.getBytes());\n\n BigInteger no = new BigInteger(1, messageDigest);\n\n String hashtext = no.toString(16);\n while (hashtext.length() < 32) {\n hashtext = \"0\" + hashtext;\n }\n return hashtext;\n } catch (NoSuchAlgorithmException e) {\n throw new RuntimeException(e);\n }\n }",
"public String getMD5(String txt){\n String md5output;\n md5output = txt;\n try {\n MessageDigest m = MessageDigest.getInstance(\"MD5\");\n m.reset();\n m.update(md5output.getBytes());\n byte[] digest = m.digest();\n BigInteger bigInt = new BigInteger(1,digest);\n md5output = bigInt.toString(16);\n } catch (Exception e) {\n md5output = null;\n } finally{\n return md5output;\n }\n \n }",
"private static byte[] generateMD5(String info) throws\n UnsupportedEncodingException, NoSuchAlgorithmException {\n byte[] inputData = info.getBytes(\"UTF-8\");\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n md.update(inputData);\n byte[] digest= md.digest();\n return digest;\n }",
"public String getHash(String str) throws Exception{\n\t\t\n\t\tMessageDigest md = MessageDigest.getInstance(\"MD5\");\n md.update(str.getBytes());\n \n byte byteData[] = md.digest();\n \n //convert the byte to hex format method 1\n StringBuffer sb = new StringBuffer();\n for (int i = 0; i < byteData.length; i++) {\n sb.append(Integer.toString((byteData[i] & 0xff) + 0x100, 16).substring(1));\n }\n \n String hex = sb.toString();\n System.out.println(hex);\n return hex; \n}",
"public static String getMD5(String s) {\n try {\n MessageDigest m = MessageDigest.getInstance(\"MD5\");\n m.update(s.getBytes(), 0, s.length());\n return \"\" + new BigInteger(1, m.digest()).toString(16);\n } catch (NoSuchAlgorithmException e) {\n logger.error(\"MD5 is not supported !!!\");\n }\n return s;\n }",
"public byte[] calc_hash(File filename)\r\n {\r\n\tint digest_length = 512;\r\n\tbyte message[] = new byte[digest_length];\r\n\tbyte key[] = new byte[0];\r\n\tMessageDigest sha;\r\n\tint message_size;\r\n\tlong file_size = 0;\r\n\r\n\ttry{\r\n\t sha = MessageDigest.getInstance(algorithm, provider);\r\n\r\n\t try{\r\n\t\t/* Read file into byte array, and use array to update hash key */\r\n\t\tFileInputStream fin = new FileInputStream(filename);\r\n\t\twhile((message_size = fin.read(message)) != -1)\r\n\t\t {\r\n\t\t\tif(message_size < digest_length)\r\n\t\t\t sha.update(message, 0, message_size);\r\n\t\t\telse\r\n\t\t\t sha.update(message);\r\n\t\t }\r\n\t\tfin.close();\r\n\r\n\t\tkey = sha.digest();\r\n\t }\r\n\t catch(IOException ioe){\r\n\t\tSystem.out.println(\"Error (calc_hash): Unable to open and read file \" + filename.getName());\r\n\t\tioe.printStackTrace();\r\n\t\treturn null;\r\n\t }\r\n\t}\r\n\tcatch(NoSuchAlgorithmException nae){\r\n\t System.out.println(\"Error (calc_hash): hash algorithm \" + algorithm + \" not found\");\r\n\t nae.printStackTrace();\r\n\t return null;\r\n\t}\r\n\tcatch(NoSuchProviderException npe){\r\n\t System.out.println(\"Error (calc_hash): Security provider \" + provider + \" not found\");\r\n\t npe.printStackTrace();\r\n\t return null;\r\n\t}\r\n\r\n\treturn key;\r\n }",
"public HashCode getInstallMD5() {\n return installMD5;\n }",
"public static String getStringMD5(String src) {\n\t\tMessageDigest messageDigest = null;\n\t\tbyte[] srcBytes = src.getBytes();\n\t\ttry {\n\t\t\tmessageDigest = MessageDigest.getInstance(\"MD5\");\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tmessageDigest.update(srcBytes, 0, srcBytes.length);\n\t\tBigInteger bigInt = new BigInteger(1, messageDigest.digest());\n\t\treturn bigInt.toString(16);\n\t}",
"public static byte[] encryptMD5(final byte[] data) {\n return hashTemplate(data, \"MD5\");\n }",
"public String md5(String s) {\n try {\n // Create MD5 Hash\n MessageDigest digest = java.security.MessageDigest.getInstance(\"MD5\");\n digest.update(s.getBytes());\n byte messageDigest[] = digest.digest();\n\n // Create Hex String\n StringBuffer hexString = new StringBuffer();\n for (int i = 0; i < messageDigest.length; i++)\n hexString.append(Integer.toHexString(0xFF & messageDigest[i]));\n return hexString.toString();\n\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n }\n return \"\";\n }",
"private static String md5(String str) {\n\n if (str == null) {\n return null;\n }\n\n MessageDigest messageDigest = null;\n\n try {\n messageDigest = MessageDigest.getInstance(HttpConf.signType);\n messageDigest.reset();\n messageDigest.update(str.getBytes(HttpConf.charset));\n } catch (NoSuchAlgorithmException e) {\n\n return str;\n } catch (UnsupportedEncodingException e) {\n return str;\n }\n\n byte[] byteArray = messageDigest.digest();\n\n StringBuffer md5StrBuff = new StringBuffer();\n\n for (int i = 0; i < byteArray.length; i++) {\n if (Integer.toHexString(0xFF & byteArray[i]).length() == 1) {\n md5StrBuff.append(\"0\").append(Integer.toHexString(0xFF & byteArray[i]));\n } else {\n md5StrBuff.append(Integer.toHexString(0xFF & byteArray[i]));\n }\n }\n\n return md5StrBuff.toString();\n }",
"private static void compareSha(String filename) {\n\n\t\tMessageDigest md = null;\n\n\t\ttry (InputStream is = new BufferedInputStream(new FileInputStream(filename))) {\n\n\t\t\tbyte[] data = new byte[4096];\n\t\t\tint nRead;\n\t\t\tmd = MessageDigest.getInstance(\"SHA-256\");\n\n\t\t\twhile ((nRead = is.read(data)) != -1) {\n\t\t\t\tmd.update(data, 0, nRead);\n\t\t\t}\n\n\t\t} catch (FileNotFoundException exc) {\n\t\t\tSystem.out.println(\n\t\t\t\t\t\"File does not exist, is a directory rather than a regular file, or cannot be opened for reading because of some other reason\");\n\t\t\tSystem.exit(1);\n\n\t\t} catch (IOException exc) {\n\t\t\tSystem.out.println(\"Input stream couldn't be initialized.\");\n\t\t\tSystem.exit(1);\n\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\tSystem.out.println(\"No provider supports a MessageDigestSpi implementation for the specified algorithm.\");\n\t\t\tSystem.exit(1);\n\t\t}\n\n\t\tString sha256Digest = Util.bytetohex(md.digest());\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tSystem.out.println(\"Please provide expected sha-256 digest for hw06part2.pdf: \");\n\t\tSystem.out.print(\">\");\n\t\tString expectedDigest = sc.nextLine();\n\t\tsc.close();\n\n\t\tif (sha256Digest.equals(expectedDigest)) {\n\t\t\tSystem.out.printf(\"Digesting completed. Digest of %s matches expected digest.\\n\", filename);\n\n\t\t} else {\n\t\t\tSystem.out.printf(\"Digesting completed. Digest of %s does not match the expected digest. Digest was: %s\\n\",\n\t\t\t\t\tfilename, sha256Digest);\n\t\t}\n\n\t}",
"private static String md5(final String s) {\n final String MD5 = \"MD5\";\n try {\n // Create MD5 Hash\n MessageDigest digest = java.security.MessageDigest\n .getInstance(MD5);\n digest.update(s.getBytes());\n byte messageDigest[] = digest.digest();\n\n // Create Hex String\n StringBuilder hexString = new StringBuilder();\n for (byte aMessageDigest : messageDigest) {\n String h = Integer.toHexString(0xFF & aMessageDigest);\n while (h.length() < 2)\n h = \"0\" + h;\n hexString.append(h);\n }\n return hexString.toString();\n\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n }\n return \"\";\n }",
"String getHash();",
"String getHash();",
"public MD5Hash(String s) {\n\t\tif(s.length() != 32) throw new IllegalArgumentException(\"Hash must have 32 characters\");\n\t\thashString = s;\n\t}",
"private String md5(String input) {\r\n\t\tString md5 = null;\r\n\t\tif (null == input)\r\n\t\t\treturn null;\r\n\r\n\t\ttry {\r\n\t\t\tMessageDigest digest = MessageDigest.getInstance(\"MD5\");\r\n\t\t\tdigest.update(input.getBytes(), 0, input.length());\r\n\t\t\tmd5 = new BigInteger(1, digest.digest()).toString(16);\r\n\t\t} catch (NoSuchAlgorithmException e) {\r\n\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn md5;\r\n\t}",
"private static String getKeyByMd5(String url) {\n String key;\n try {\n MessageDigest messageDigest = MessageDigest.getInstance(\"MD5\");\n messageDigest.update(url.getBytes());\n key = md5Encryption(messageDigest.digest());\n return key;\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n key = String.valueOf(url.hashCode());\n }\n return key;\n }",
"public static String md5(final String data) {\n return ByteString.encodeUtf8(data).md5().hex().toLowerCase();\n }",
"private String md5(final String s)\n\t{\n\t\ttry {\n\t\t\t// Create MD5 Hash\n\t\t\tMessageDigest digest = MessageDigest.getInstance(\"MD5\");\n\t\t\tdigest.update(s.getBytes());\n\t\t\tbyte messageDigest[] = digest.digest();\n\n\t\t\t// Create Hex String\n\t\t\tStringBuffer hexString = new StringBuffer();\n\t\t\tfor (int i=0; i<messageDigest.length; i++) {\n\t\t\t\tString h = Integer.toHexString(0xFF & messageDigest[i]);\n\t\t\t\twhile (h.length() < 2) h = \"0\" + h;\n\t\t\t\thexString.append(h);\n\t\t\t}\n\t\t\treturn hexString.toString();\n\t\t} catch(NoSuchAlgorithmException e) {\n\t\t\t//Logger.logStackTrace(TAG,e);\n\t\t}\n\t\treturn \"\";\n\t}",
"java.lang.String getHashData();",
"com.google.protobuf.ByteString getHash();",
"com.google.protobuf.ByteString getHash();",
"public static String hash(String data) {\n\t MessageDigest md;\n\t\ttry {\n\t\t\tmd = MessageDigest.getInstance(\"MD5\");\n\t\t md.update(data.getBytes());\n\t\t byte[] digest = md.digest();\n\t\t char[] HEX_ARRAY = \"0123456789ABCDEF\".toCharArray();\n\t char[] hexChars = new char[digest.length * 2];\n\t for (int j = 0; j < digest.length; j++) {\n\t int v = digest[j] & 0xFF;\n\t hexChars[j * 2] = HEX_ARRAY[v >>> 4];\n\t hexChars[j * 2 + 1] = HEX_ARRAY[v & 0x0F];\n\t }\n\t return new String(hexChars);\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n return null;\n\t}",
"public static String getMD5Hash(String string) {\r\n\t\tMessageDigest digest;\r\n\t\ttry {\r\n\t\t\tdigest = java.security.MessageDigest.getInstance(\"MD5\");\r\n\t\t\tdigest.update(string.getBytes());\r\n\t\t\tfinal byte[] hash = digest.digest();\r\n\t\t\tfinal StringBuilder result = new StringBuilder(hash.length);\r\n\t\t\tfor (int i = 0; i < hash.length; i++) {\r\n\t\t\t\tresult.append(Integer.toString((hash[i] & 0xff) + 0x100, 16)\r\n\t\t\t\t\t\t.substring(1));\r\n\t\t\t}\r\n\t\t\treturn result.toString();\r\n\t\t} catch (final NoSuchAlgorithmException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn \"error\";\r\n\t\t}\r\n\t}",
"int getHash();",
"public static String md5(String str) {\n MessageDigest messageDigest = null;\n try {\n messageDigest = MessageDigest.getInstance(\"MD5\");\n messageDigest.reset();\n messageDigest.update(str.getBytes(\"UTF-8\"));\n } catch (NoSuchAlgorithmException | UnsupportedEncodingException e) {\n // do nothing\n }\n byte[] byteArray = messageDigest.digest();\n StringBuffer md5StrBuff = new StringBuffer();\n for (int i = 0; i < byteArray.length; i++) {\n if (Integer.toHexString(0xFF & byteArray[i]).length() == 1)\n md5StrBuff.append(\"0\").append(Integer.toHexString(0xFF & byteArray[i]));\n else\n md5StrBuff.append(Integer.toHexString(0xFF & byteArray[i]));\n }\n return md5StrBuff.toString();\n }",
"private String md5(String message) throws java.security.NoSuchAlgorithmException\n\t{\n\t\tMessageDigest md5 = null;\n\t\ttry {\n\t\t\tmd5 = MessageDigest.getInstance(\"MD5\");\n\t\t}\n\t\tcatch (java.security.NoSuchAlgorithmException ex) {\n\t\t\tex.printStackTrace();\n\t\t\tthrow ex;\n\t\t}\n\t\tbyte[] dig = md5.digest((byte[]) message.getBytes());\n\t\tStringBuffer code = new StringBuffer();\n\t\tfor (int i = 0; i < dig.length; ++i)\n\t\t{\n\t\t\tcode.append(Integer.toHexString(0x0100 + (dig[i] & 0x00FF)).substring(1));\n\t\t}\n\t\treturn code.toString();\n\t}",
"public static String hash(String in) {\r\n\t\treturn DigestUtils.md5Hex(in.getBytes());\r\n\t}",
"public static String getFileChecksum(File file) {\n return getFileChecksum(file, true);\n }"
] |
[
"0.7800426",
"0.7483837",
"0.745395",
"0.73832744",
"0.7380369",
"0.72531235",
"0.72531235",
"0.71196264",
"0.7082408",
"0.7062036",
"0.7048478",
"0.7031023",
"0.70060116",
"0.69423705",
"0.6941836",
"0.6911277",
"0.6899666",
"0.68789035",
"0.67872053",
"0.6573226",
"0.6517764",
"0.64483845",
"0.63890666",
"0.63889164",
"0.637664",
"0.6344204",
"0.6328337",
"0.63156193",
"0.62790745",
"0.62778276",
"0.62544405",
"0.62272245",
"0.622478",
"0.62095225",
"0.6189183",
"0.618581",
"0.6150319",
"0.61447257",
"0.6133792",
"0.61083305",
"0.61080337",
"0.6107677",
"0.6082222",
"0.6078524",
"0.6063569",
"0.60347885",
"0.6032613",
"0.6018872",
"0.5967777",
"0.59409916",
"0.5930955",
"0.59301263",
"0.59198403",
"0.59154654",
"0.58731323",
"0.58727765",
"0.5865943",
"0.58636516",
"0.58328414",
"0.58306295",
"0.58288914",
"0.5823926",
"0.5822736",
"0.5820728",
"0.58198696",
"0.58198696",
"0.5814811",
"0.5810591",
"0.5802849",
"0.5767336",
"0.57649535",
"0.57357484",
"0.5735534",
"0.5722977",
"0.5713615",
"0.5705999",
"0.5685397",
"0.5664443",
"0.5657681",
"0.56380135",
"0.5635169",
"0.56317455",
"0.56283534",
"0.56283534",
"0.5621572",
"0.5617056",
"0.56170446",
"0.5608373",
"0.5608194",
"0.5602473",
"0.55986595",
"0.55986595",
"0.5591306",
"0.5573595",
"0.5569579",
"0.5567024",
"0.55646014",
"0.5549714",
"0.553195"
] |
0.6462793
|
21
|
MD5 of the file content bytes fileHash = 1;
|
public Builder setFileHash(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
fileHash_ = value;
onChanged();
return this;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private String getFileMd5Checksum(String filename){\n\t\ttry {\n\t\t\tbyte[] fileBytes = Files.readAllBytes(Paths.get(FILES_ROOT + filename));\n\t\t\tbyte[] fileHash = MessageDigest.getInstance(\"MD5\").digest(fileBytes);\n\n\t\t\treturn DatatypeConverter.printHexBinary(fileHash);\n\t\t} catch (IOException e) {\n\t\t\t// TODO: Handle file doesn't exist\n\t\t\treturn \"\";\n\t\t} catch (Exception e) {\n\t\t\treturn \"\";\n\t\t}\n\t}",
"public static String computeMD5FileHash (File file) throws Exception {\n byte[] b = createFileChecksum(file);\n String result = \"\";\n\n for (int i=0; i < b.length; i++) {\n result += Integer.toString( ( b[i] & 0xff ) + 0x100, 16).substring( 1 );\n }\n return result;\n }",
"private static String getMD5Checksum(String filename) throws Exception {\r\n\t\tbyte[] b = createChecksum(filename);\r\n\t\tStringBuilder result = new StringBuilder();\r\n\t\tfor (byte v : b) {\r\n\t\t\tresult.append(Integer.toString((v & 0xff) + 0x100, 16).substring(1));\r\n\t\t}\r\n\t\treturn result.toString();\r\n\t}",
"private static String getFileChecksum(File file) throws IOException, NoSuchAlgorithmException {\n FileInputStream fis = new FileInputStream(file);\n\n // Use MD5 algorithm\n MessageDigest digest = MessageDigest.getInstance(\"MD5\");\n\n // Create byte array to read data in chunks\n byte[] byteArray = new byte[1024];\n int bytesCount = 0;\n\n // Read file data and update in message digest\n while ((bytesCount = fis.read(byteArray)) != -1) {\n digest.update(byteArray, 0, bytesCount);\n }\n ;\n\n // close the stream; We don't need it now.\n fis.close();\n\n // Get the hash's bytes\n byte[] bytes = digest.digest();\n\n // This bytes[] has bytes in decimal format;\n // Convert it to hexadecimal format\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < bytes.length; i++) {\n sb.append(Integer.toString((bytes[i] & 0xff) + 0x100, 16).substring(1));\n }\n\n // return complete hash\n return sb.toString();\n }",
"public static String getFileMD5(File file) {\n\t\tMessageDigest messageDigest = null;\n\t\tFileInputStream fileInStream = null;\n\t\tbyte buffer[] = new byte[1024];\n\t\tint length = -1;\n\t\ttry {\n\t\t\tmessageDigest = MessageDigest.getInstance(\"MD5\");\n\t\t\tfileInStream = new FileInputStream(file);\n\t\t\twhile ((length = fileInStream.read(buffer, 0, 1024)) != -1) {\n\t\t\t\tmessageDigest.update(buffer, 0, length);\n\t\t\t}\n\t\t\tfileInStream.close();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t\tBigInteger bigInt = new BigInteger(1, messageDigest.digest());\n\t\treturn bigInt.toString(16);\n\t}",
"com.google.protobuf.ByteString getFileHash();",
"com.google.protobuf.ByteString getFileHash();",
"public static String fileMD5(File file) {\n\t\tFileInputStream fis = null;\n\t\tString md5 = null;\n\t\ttry {\n\t\t\tfis = new FileInputStream(file);\n\t\t\tmd5 = org.apache.commons.codec.digest.DigestUtils.md5Hex(fis);\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"!!!\", e);\n\t\t} finally {\n\t\t\tCloseUtils.close(fis);\n\t\t}\n\t\treturn md5;\n\t}",
"public static String md5(String inputFile) {\r\n String md5 = null;\r\n logger.debug(\"Start to calculate hashcode (SHA1) for {}\", inputFile);\r\n try (DigestInputStream digestIn = new DigestInputStream(new FileInputStream(inputFile),\r\n MessageDigest.getInstance(\"SHA1\"))) {\r\n byte[] buffer = new byte[1024 * 1024];\r\n while (digestIn.read(buffer) > 0) {\r\n // do nothing\r\n }\r\n md5 = toHexString(digestIn.getMessageDigest().digest());\r\n } catch (NoSuchAlgorithmException | IOException e) {\r\n logger.warn(\"Fail to md5 for {} ({})\", inputFile, e.getMessage());\r\n }\r\n logger.debug(\"End to calculate hashcode (SHA1) for {}, {}\", inputFile, md5);\r\n return md5;\r\n }",
"static String generateChecksum(String filename) {\n\n try {\n // Instantiating file and Hashing Algorithm.\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n FileInputStream file = new FileInputStream(filename);\n\n // Generation of checksum.\n byte[] dataBytes = new byte[1024];\n int nread;\n\n while ((nread = file.read(dataBytes)) != -1) {\n md.update(dataBytes, 0, nread);\n }\n\n byte[] mdbytes = md.digest();\n\n // Convert byte to hex.\n StringBuilder hexString = new StringBuilder();\n\n for (byte mdbyte : mdbytes) {\n String hex = Integer.toHexString(0xff & mdbyte);\n if (hex.length() == 1) hexString.append('0');\n hexString.append(hex);\n }\n\n // Return checksum as completed string.\n return hexString.toString();\n\n } catch (NoSuchAlgorithmException | IOException e) {\n e.printStackTrace();\n }\n return null;\n }",
"public static String getFileMD5(File file) {\n if (!file.isFile()) {\n return null;\n }\n MessageDigest digest = null;\n FileInputStream in = null;\n byte buffer[] = new byte[1024];\n int len;\n try {\n digest = MessageDigest.getInstance(\"MD5\");\n in = new FileInputStream(file);\n while ((len = in.read(buffer, 0, 1024)) != -1) {\n digest.update(buffer, 0, len);\n }\n in.close();\n } catch (Exception e) {\n e.printStackTrace();\n return null;\n }\n BigInteger bigInt = new BigInteger(1, digest.digest());\n String md5 = bigInt.toString(16);\n while (md5.length() < 32)\n md5 = \"0\" + md5;\n return md5;\n }",
"private static String getFileChecksum(MessageDigest digest, File file) throws IOException\n\t {\n\t FileInputStream fis = new FileInputStream(file);\n\t \n\t //Create byte array to read data in chunks\n\t byte[] byteArray = new byte[1024];\n\t int bytesCount = 0;\n\t \n\t //Read file data and update in message digest\n\t while ((bytesCount = fis.read(byteArray)) != -1) {\n\t digest.update(byteArray, 0, bytesCount);\n\t };\n\t \n\t //close the stream; We don't need it now.\n\t fis.close();\n\t \n\t //Get the hash's bytes\n\t byte[] bytes = digest.digest();\n\t \n\t //This bytes[] has bytes in decimal format;\n\t //Convert it to hexadecimal format\n\t StringBuilder sb = new StringBuilder();\n\t for(int i=0; i< bytes.length ;i++)\n\t {\n\t sb.append(Integer.toString((bytes[i] & 0xff) + 0x100, 16).substring(1));\n\t }\n\t \n\t //return complete hash\n\t return sb.toString();\n\t }",
"public String getMD5() {\n return hash;\n }",
"private static String getFileChecksum(MessageDigest digest, File file) throws IOException {\n FileInputStream fis = new FileInputStream(file);\n\n //Create byte array to read data in chunks\n byte[] byteArray = new byte[1024];\n int bytesCount = 0;\n\n //Read file data and update in message digest\n while ((bytesCount = fis.read(byteArray)) != -1) {\n digest.update(byteArray, 0, bytesCount);\n }\n\n //close the stream; We don't need it now.\n fis.close();\n\n //Get the hash's bytes\n byte[] bytes = digest.digest();\n\n //This bytes[] has bytes in decimal format;\n //Convert it to hexadecimal format\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < bytes.length; i++) {\n sb.append(Integer.toString((bytes[i] & 0xff) + 0x100, 16).substring(1));\n }\n\n //return complete hash\n return sb.toString();\n }",
"public static byte[] createCheckSum(String filename) throws Exception {\n InputStream fis = new FileInputStream(filename);\n\n byte[] buffer = new byte[1024];\n MessageDigest complete = MessageDigest.getInstance(\"MD5\");\n int numRead;\n\n do {\n numRead = fis.read(buffer);\n if (numRead > 0) {\n complete.update(buffer, 0, numRead);\n }\n } while (numRead != -1);\n\n fis.close();\n // Return MD5 Hash\n return complete.digest();\n }",
"public static String getFileMD5(String path) {\n\t\treturn getFileMD5(new File(path));\n\t}",
"public static String fileMD5(String filePath) {\n\t\tFileInputStream fis = null;\n\t\tString md5 = null;\n\t\ttry {\n\t\t\tfis = new FileInputStream(new File(filePath));\n\t\t\tmd5 = org.apache.commons.codec.digest.DigestUtils.md5Hex(fis);\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"!!!\", e);\n\t\t} finally {\n\t\t\tCloseUtils.close(fis);\n\t\t}\n\t\treturn md5;\n\t}",
"public static String computeMD5(String filename) throws Exception {\r\n byte[] b = createGenericChecksum(filename, 0);\r\n String result = \"\";\r\n for (int i = 0; i < b.length; i++) {\r\n result += Integer.toString((b[i] & 0xff) + 0x100, 16).substring(1);\r\n }\r\n return result;\r\n }",
"public static String getMD5(File file) throws IOException, NoSuchAlgorithmException {\n return getChecksum(file, MessageDigest.getInstance(\"MD5\"));\n }",
"protected void md5file(File file) throws IOException {\n if (file.isDirectory()) {\n throw new IllegalArgumentException(\"Only files can be check summed !\");\n }\n\n // calculating the output\n byte[] md5 = DigestUtils.md5(new FileInputStream(file));\n\n // getting the output file\n File outputFile = new File(file.getAbsolutePath() + \".md5\");\n Files.write(Paths.get(outputFile.getAbsolutePath()), md5);\n\n }",
"String saveData(MultipartFile md5File) throws IOException;",
"@java.lang.Override\n public com.google.protobuf.ByteString getFileHash() {\n return fileHash_;\n }",
"@java.lang.Override\n public com.google.protobuf.ByteString getFileHash() {\n return fileHash_;\n }",
"byte[] getFile(String sha) throws Exception;",
"@java.lang.Override\n public com.google.protobuf.ByteString getFileHash() {\n return fileHash_;\n }",
"@java.lang.Override\n public com.google.protobuf.ByteString getFileHash() {\n return fileHash_;\n }",
"byte[] getDigest();",
"private String fileChecksum(File tmpFile, ITaskMonitor monitor) {\n InputStream is = null;\n try {\n is = new FileInputStream(tmpFile);\n MessageDigest digester = getChecksumType().getMessageDigest();\n byte[] buf = new byte[65536];\n int n;\n while ((n = is.read(buf)) >= 0) {\n if (n > 0) {\n digester.update(buf, 0, n);\n }\n }\n return getDigestChecksum(digester);\n } catch (FileNotFoundException e) {\n monitor.setResult(\"File not found: %1$s\", e.getMessage());\n } catch (Exception e) {\n monitor.setResult(e.getMessage());\n } finally {\n if (is != null) {\n try {\n is.close();\n } catch (IOException e) {\n }\n }\n }\n return \"\";\n }",
"public static String getFileChecksum(MessageDigest digest, String filePath) throws IOException {\n\t\tFileInputStream fis = new FileInputStream(filePath);\n\n\t\t// Create byte array to read data in chunks\n\t\tbyte[] byteArray = new byte[1024];\n\t\tint bytesCount = 0;\n\n\t\t// Read file data and update in message digest\n\t\twhile ((bytesCount = fis.read(byteArray)) != -1) {\n\t\t\tdigest.update(byteArray, 0, bytesCount);\n\t\t}\n\t\t;\n\n\t\t// close the stream; We don't need it now.\n\t\tfis.close();\n\n\t\t// Get the hash's bytes\n\t\tbyte[] bytes = digest.digest();\n\n\t\t// This bytes[] has bytes in decimal format;\n\t\t// Convert it to hexadecimal format\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor (int i = 0; i < bytes.length; i++) {\n\t\t\tsb.append(Integer.toString((bytes[i] & 0xff) + 0x100, 16).substring(1));\n\t\t}\n\n\t\t// return complete hash\n\t\treturn sb.toString();\n\t}",
"public static byte[] encryptMD5File(final File file) {\n if (file == null) return null;\n FileInputStream fis = null;\n DigestInputStream digestInputStream;\n try {\n fis = new FileInputStream(file);\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n digestInputStream = new DigestInputStream(fis, md);\n byte[] buffer = new byte[256 * 1024];\n while (true) {\n if (!(digestInputStream.read(buffer) > 0)) break;\n }\n md = digestInputStream.getMessageDigest();\n return md.digest();\n } catch (NoSuchAlgorithmException | IOException e) {\n e.printStackTrace();\n return null;\n } finally {\n try {\n if (fis != null) {\n fis.close();\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }",
"byte[] digest();",
"@Test\n public void fileMd5Test() {\n // TODO: test fileMd5\n }",
"public String getMd5Hash() {\n return md5Hash;\n }",
"public String getMD5() {\n return m_module.getConfiguration().getMD5();\n }",
"public static String CreateMD5(File file) {\n String base64Image = \"\";\n try (FileInputStream imageInFile = new FileInputStream(file)) {\n // Reading a Image file from file system\n byte imageData[] = new byte[(int) file.length()];\n imageInFile.read(imageData);\n base64Image = Base64.getEncoder().encodeToString(imageData);\n } catch (FileNotFoundException e) {\n DialogWindow.ShowErrorPane(\"Image could not be found.\", \"Error Image Missing\");\n// System.out.println(\"Image not found\" + e);\n } catch (IOException ioe) {\n DialogWindow.ShowErrorPane(\"Error while the image was being converted.\", \"Error Converting Image\");\n// System.out.println(\"Exception while reading the Image \" + ioe);\n }\n return base64Image;\n }",
"public BoxFileUploadRequestObject setContentMD5(String sha1) {\n getRequestExtras().addHeader(Constants.CONTENT_MD5, sha1);\n return this;\n }",
"public static byte[] computeMD5Hash(InputStream is) throws NoSuchAlgorithmException, IOException {\n BufferedInputStream bis = new BufferedInputStream(is);\n try {\n MessageDigest messageDigest = MessageDigest.getInstance(\"MD5\");\n byte[] buffer = new byte[16384];\n int bytesRead = -1;\n while ((bytesRead = bis.read(buffer, 0, buffer.length)) != -1) {\n messageDigest.update(buffer, 0, bytesRead);\n }\n return messageDigest.digest();\n } finally {\n try {\n bis.close();\n } catch (Exception e) {\n System.err.println(\"Unable to close input stream of hash candidate: \" + e);\n }\n }\n }",
"public byte[] getContentMd5() {\n return CoreUtils.clone(this.contentMd5);\n }",
"private static String md5(byte[] b) {\n try {\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n md.reset();\n md.update(b);\n byte[] digest = md.digest();\n StringBuffer sb = new StringBuffer();\n for (int i=0; i<digest.length; i++) {\n String a = Integer.toHexString(0xff & digest[i]);\n if (a.length() == 1) a = \"0\" + a;\n sb.append(a);\n }\n return sb.toString();\n }\n catch (NoSuchAlgorithmException e) { writeLog(e); }\n return null;\n }",
"private int getFileContentHashCode(Path filePath) throws IOException {\n return Arrays.hashCode(Files.readAllBytes(filePath));\n }",
"public static void md5(File outputFile) throws ConverterException {\r\n\t\ttry {\r\n\t\t\tFileInputStream fileInputStream = new FileInputStream(outputFile);\r\n\t\t\tBufferedInputStream bufferedInputStream = new BufferedInputStream(fileInputStream);\r\n\t\t\t\r\n\t\t\tbyte[] datei = bufferedInputStream.readAllBytes();\r\n\t\t\tMessageDigest md = MessageDigest.getInstance(\"MD5\");\r\n\t\t\tbyte[] md5 = md.digest(datei);\r\n\t\t\tfor (int i = 0; i < md5.length; i++) {\r\n\t\t\t\tSystem.out.print(String.format(\"%02X\", md5[i]));\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\" File Length: \" + outputFile.length());\r\n\t\t\tSystem.out.println();\r\n\t\t\t\r\n\t\t\tbufferedInputStream.close();\r\n\t\t\tfileInputStream.close();\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\tthrow new ConverterException(\"Datei kann nicht gefunden werden\");\r\n\t\t} catch (IOException e) {\r\n\t\t\tthrow new ConverterException(\"Beim Lesen der Datei ist ein Fehler aufgetreten\");\r\n\t\t} catch (NoSuchAlgorithmException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"private String calculateCheckSum(File file2) {\n\t\tStringBuffer sb = new StringBuffer(\"\");\n\t\ttry {\n\t\t\tMessageDigest messageDigest = MessageDigest.getInstance(\"SHA1\");\n\n\t\t\tFileInputStream finput = new FileInputStream(file2);\n\t\t\tbyte[] dataBytes = new byte[1024];\n\n\t\t\tint bytesRead = 0;\n\n\t\t\twhile ((bytesRead = finput.read(dataBytes)) != -1) {\n\t\t\t\tmessageDigest.update(dataBytes, 0, bytesRead);\n\t\t\t}\n\n\t\t\tbyte[] digestBytes = messageDigest.digest();\n\n\t\t\tfor (int i = 0; i < digestBytes.length; i++) {\n\t\t\t\tsb.append(Integer.toString((digestBytes[i] & 0xff) + 0x100, 16).substring(1));\n\t\t\t}\n\t\t\tSystem.out.println(\"file check sum value is \" + sb.toString());\n\t\t\tfinput.close();\n\t\t} catch (Exception ex) {\n\t\t\t// TODO: handle exception\n\t\t\tLogger.getLogger(FileTransferClient.class.getName()).log(Level.SEVERE, null, ex);\n\t\t}\n\n\t\treturn sb.toString();\n\t}",
"public static byte[] computeMD5Hash(byte[] data) throws NoSuchAlgorithmException, IOException {\n return computeMD5Hash(new ByteArrayInputStream(data));\n }",
"public byte[] getMD5() {\n return MD5;\n }",
"public Digest (File appdir)\n throws IOException\n {\n // parse and validate our digest file contents\n StringBuffer data = new StringBuffer();\n File dfile = new File(appdir, DIGEST_FILE);\n List pairs = ConfigUtil.parsePairs(dfile, false);\n for (Iterator iter = pairs.iterator(); iter.hasNext(); ) {\n String[] pair = (String[])iter.next();\n if (pair[0].equals(DIGEST_FILE)) {\n _metaDigest = pair[1];\n break;\n }\n _digests.put(pair[0], pair[1]);\n note(data, pair[0], pair[1]);\n }\n \n // we've reached the end, validate our contents\n MessageDigest md = getMessageDigest();\n byte[] contents = data.toString().getBytes(\"UTF-8\");\n String md5 = StringUtil.hexlate(md.digest(contents));\n if (!md5.equals(_metaDigest)) {\n String err = MessageUtil.tcompose(\n \"m.invalid_digest_file\", _metaDigest, md5);\n throw new IOException(err);\n }\n }",
"public byte[] MD5(File archivo) throws OpenSSL_Exception {\n\t\tString[] comando = new String[]{ \"openssl\" , \"dgst\" , \"-md5\" , archivo.getAbsolutePath()};\n\t\tProcess terminal = null;\n\t\ttry { terminal = Runtime.getRuntime().exec(comando); } catch (IOException e) { \n\t\t\tthrow new OpenSSL_Exception(\"No se puede ejecutar el comando en el terminal\");\n\t\t}\n\t\t// --- > Leemos la salida error del comando\n\t\tBufferedReader errors = new BufferedReader(new InputStreamReader(terminal.getErrorStream()));\n\t\tString linea = \"\" , error = \"\" ;\n\t\ttry { while( (linea = errors.readLine()) != null) error += linea + \"\\n\"; } catch (IOException e) {\n\t\t\tthrow new OpenSSL_Exception(\"No se puede leer el error que ha producido el comando\");\n\t\t}\n\t\t// --- > Si hubo salida error lanzamos al excepcion con el error\n\t\tif(!error.equals(\"\"))throw new OpenSSL_Exception(\"Error al ejecutar el comando:\\n\" + error );\n\t\t// --- > Leemos el resultado obtenido\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(terminal.getInputStream()));\n\t\tString res = \"\";\n\t\ttry { while((linea = in.readLine()) != null) res += linea; } catch (IOException e) {\n\t\t\tthrow new OpenSSL_Exception(\"No se puede leer el resultado que ha producido el comando\");\n\t\t}\n\t\treturn res.substring(res.lastIndexOf(\" \") + 1 ).getBytes();\n\t}",
"public byte[] getHash()\n\t{\n\t\treturn md5.getHash();\n\t}",
"@Test\n public void md5Checksum() throws NoSuchAlgorithmException {\n String string = Utils.md5Checksum(\"abcde fghijk lmn op\");\n Assert.assertEquals(\"1580420c86bbc3b356f6c40d46b53fc8\", string);\n }",
"public static String md5(String pass)\n {\n try{\n MessageDigest md=MessageDigest.getInstance(\"MD5\");\n byte[] messageDigest=md.digest(pass.getBytes());\n BigInteger num=new BigInteger(1,messageDigest);\n String hashText=num.toString(16);\n while(hashText.length()<32)\n {\n hashText=\"0\"+hashText;\n } \n return hashText; \n }\n catch(Exception e)\n { \n throw new RuntimeException(e);\n } \n }",
"public static void main(String[] args) throws NoSuchAlgorithmException, FileNotFoundException, IOException {\n \r\n String hash = \"F5D080D4F4E185DECA8A8B24F72408D9\";\r\n String [] keys = {\"9A1BA7F38A3E8D8F9DDD55972868CB3F\",\"17185CEF199E1C89804EDEE9DCDD1B90\",\"F5D080D4F4E185DECA8A8B24F72408D9\"};\r\n String password = \"NoSuchPassword\";\r\n File file = null;\r\n JFileChooser ff = new JFileChooser();\r\n int a = ff.showOpenDialog(null);\r\n if(a == JFileChooser.APPROVE_OPTION){\r\n try {\r\n file = ff.getSelectedFile();\r\n JOptionPane.showMessageDialog(ff, a);\r\n \r\n } catch (Exception ex) {\r\n ex.printStackTrace();\r\n } finally {\r\n System.out.println(file.getPath());\r\n }\r\n } \r\n BufferedReader fr = null;\r\n fr = new BufferedReader(new FileReader(file.getPath()));\r\n String line = null;\r\n int i = 0; \r\n //This is the funtion that Java implement in java.security.MessageDigest\r\n MessageDigest md5 = MessageDigest.getInstance(\"MD5\");\r\n while((line = fr.readLine()) != null){\r\n System.out.println(line);\r\n md5.update(line.getBytes());\r\n byte [] digests = md5.digest();\r\n String hashs = DatatypeConverter.printHexBinary(digests).toUpperCase();\r\n if(keys[i].equals(hashs)){\r\n System.out.println(\"CORRECT!\\nThe hash created is the same as the hash saved \");\r\n }\r\n else{\r\n System.out.println(\"ERROR!\\nThere was a mistake, the hash create doesn't mach the hash saved\");\r\n }\r\n i++;\r\n } \r\n fr.close();\r\n /**In conclusion we can use the MD5 for digest a words and then same them\r\n * is a DataBase, this with the function that if the DB is committed the\r\n * passwords will not be there\r\n */\r\n }",
"public ShareFileHttpHeaders setContentMd5(byte[] contentMd5) {\n this.contentMd5 = CoreUtils.clone(contentMd5);\n return this;\n }",
"public String getMD5ForGame(String gameId) {\n return \"TODO\";\n }",
"public static String md5(String message) {\n String digest = null;\n try {\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n byte[] hash = md.digest(message.getBytes(\"UTF-8\"));\n\n //converting byte array to HexadecimalString\n StringBuilder sb = new StringBuilder(2 * hash.length);\n for (byte b : hash) {\n sb.append(String.format(\"%02x\", b & 0xff));\n }\n digest = sb.toString();\n } catch (UnsupportedEncodingException ex) {\n log.error(\"UnsupportedEncodingException\",ex);\n } catch (NoSuchAlgorithmException ex) {\n log.error(\"NoSuchAlgorithmException\",ex);\n }\n\n return digest;\n }",
"protected String getFileETag(File file) {\n\t\tFileInputStream is = null;\n\t\ttry {\n\t\t\tis = new FileInputStream(file);\n\t\t\treturn \"\\\"\" + DigestUtils.md5Hex(is) + \"\\\"\";\n\t\t} catch (IOException e) {\n\t\t\treturn \"\";\n\t\t} finally {\n\t\t\tcloseQuietly(is);\n\t\t}\n\t}",
"private static byte[] m14295fl(String str) {\n try {\n MessageDigest instance = MessageDigest.getInstance(\"MD5\");\n if (instance == null) {\n return str.getBytes();\n }\n instance.update(str.getBytes());\n return instance.digest();\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n return str.getBytes();\n }\n }",
"protected String getMd5Hash(String token) {\n\n MessageDigest m;\n\t\ttry {\n\t\t\tm = MessageDigest.getInstance(\"MD5\");\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\tthrow new IllegalStateException(e);\n\t\t}\n m.update(token.getBytes());\n \n byte[] digest = m.digest();\n BigInteger bigInt = new BigInteger(1,digest);\n String hashtext = bigInt.toString(16);\n \n // Now we need to zero pad it if you actually want the full 32 chars.\n while(hashtext.length() < 32 ){\n hashtext = \"0\"+hashtext;\n }\n \n return hashtext;\n\t}",
"public static String toSHA1(String filename){\n\t\tMessageDigest md=null;\n\t\ttry{\n\t\t\tmd = MessageDigest.getInstance(\"SHA-1\");\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\ttry{\n\t\t\tFileInputStream in = new FileInputStream(filename);\n\t\t\tBufferedInputStream buffIn = new BufferedInputStream(in);\n\t\t\tDigestInputStream dis = new DigestInputStream(buffIn, md);\n\t\t\t\n\t\t\tFile f = new File(filename);\n\t\t\tLong fileSize = f.length();\n\t\t\t\n\t\t\tString blob = \"blob \" + fileSize.toString() + '\\0';\n\t\t\tmd.update(blob.getBytes());\n\t\t\t\t\t\t\n\t\t\t// read the file and update the hash calculation\n while (dis.read() != -1);\n\n // get the hash value as byte array\n byte[] hash = md.digest();\n\n return byteArray2Hex(hash);\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\t\n\t\treturn \"\";\n\t}",
"public static byte[] encryptMD5File(final String filePath) {\n File file = isSpace(filePath) ? null : new File(filePath);\n return encryptMD5File(file);\n }",
"public boolean IsFileMd5Equeal(UploadReport report) {\r\n\t\tString filename = this.conf.getFtpMountDirectory() + \"/DATA/\" + report.getFilename();\r\n\t\tString md5value = MD5Util.getFileMD5(new File(filename));\r\n\t\tFile file = new File(filename);\r\n\t\tif (file.exists()) {\r\n\t\t\tif (md5value.compareTo(report.getMd5value()) == 0) {\r\n\t\t\t\treturn true;\r\n\t\t\t} else {\r\n\t\t\t\tLogUtils.logger.error(\"Error happened when Caculate MD5 value, Original value: \" + report.getMd5value()\r\n\t\t\t\t\t\t+ \", New value : \" + md5value);\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tLogUtils.logger.error(\"Error happened when Caculate MD5 value, File: \" + filename + \" does not exist! \");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"public static String mySHA(String file) {\n\t\ttry {\n\t\t\t// java.security.MessageDigest digest = null;\n\t\t\t// digest = java.security.MessageDigest.getInstance(\"SHA-1\");\n\t\t\t// digest.reset();\n\t\t\t// digest.update(x.getBytes(\"UTF-8\"));\n\t\t\t// digest.update(x.getBytes(\"UTF-8\"));\n\t\t\t// return digest.digest();\n\t\t\tMessageDigest sha1 = MessageDigest.getInstance(\"SHA1\");\n\t\t\tFileInputStream fis = new FileInputStream(file);\n\n\t\t\tbyte[] data = new byte[1024];\n\t\t\tint read = 0;\n\t\t\twhile ((read = fis.read(data)) != -1) {\n\t\t\t\tsha1.update(data, 0, read);\n\t\t\t}\n\t\t\t;\n\t\t\tbyte[] hashBytes = sha1.digest();\n\n\t\t\tStringBuffer sb = new StringBuffer();\n\t\t\tfor (int i = 0; i < hashBytes.length; i++) {\n\t\t\t\tsb.append(Integer.toString((hashBytes[i] & 0xff) + 0x100, 16).substring(1));\n\t\t\t}\n\n\t\t\tString fileHash = sb.toString();\n\t\t\treturn fileHash;\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(e);\n\t\t\tString s = \"-1\";\n\t\t\treturn s;\n\t\t}\n\t}",
"public static String computeSHA(byte[] filebytes) throws NoSuchAlgorithmException {\r\n\t\tMessageDigest messageDigest = MessageDigest.getInstance(\"SHA-1\");\r\n\t\tbyte[] hash = messageDigest.digest(filebytes);\r\n\t\t\r\n\t\tFormatter formatter = new Formatter();\r\n\t\t\r\n\t\tfor (byte b : hash) {\r\n\t\t\tformatter.format(\"%02x\", b);\r\n\t\t}\r\n\t\t\r\n\t\treturn formatter.toString();\r\n\t}",
"public String getMD5Checksum(String pid, String dsName) throws FedoraException, IOException {\r\n try {\r\n return getDatastreamProperty(pid, dsName, DatastreamProfile.DatastreamProperty.DS_CHECKSUM);\r\n } catch (XPathExpressionException ex) {\r\n throw new FedoraException(ex);\r\n } catch (SAXException ex) {\r\n throw new FedoraException(ex);\r\n } catch (ParserConfigurationException ex) {\r\n throw new FedoraException(ex);\r\n }\r\n }",
"public String getHashsum(String file_name) {\n\t\t//\n\t\t// query database\n\t\t//\n\t\tCursor cursor = m_db.query(FILE_TABLE_NAME,\n\t\t\t\tnew String[] { FILE_FIELD_HASH_SUM }, FILE_FIELD_PATH + \"=?\",\n\t\t\t\tnew String[] { file_name }, null, null, null);\n\n\t\t//\n\t\t// get first entry of result set\n\t\t//\n\t\tString result = getFirstEntryOfResultSet(cursor);\n\n\t\t//\n\t\t// close cursor\n\t\t//\n\t\tcursor.close();\n\n\t\t//\n\t\t// done\n\t\t//\n\t\treturn result;\n\n\t}",
"java.lang.String getChecksum();",
"private static java.security.MessageDigest f() {\n /*\n r0 = \"MD5\";\n r1 = j;\n r0 = r0.equals(r1);\n if (r0 == 0) goto L_0x003a;\n L_0x000a:\n r0 = java.security.Security.getProviders();\n r1 = r0.length;\n r2 = 0;\n L_0x0010:\n if (r2 >= r1) goto L_0x003a;\n L_0x0012:\n r3 = r0[r2];\n r3 = r3.getServices();\n r3 = r3.iterator();\n L_0x001c:\n r4 = r3.hasNext();\n if (r4 == 0) goto L_0x0037;\n L_0x0022:\n r4 = r3.next();\n r4 = (java.security.Provider.Service) r4;\n r4 = r4.getAlgorithm();\n j = r4;\n r4 = j;\t Catch:{ NoSuchAlgorithmException -> 0x001c }\n r4 = java.security.MessageDigest.getInstance(r4);\t Catch:{ NoSuchAlgorithmException -> 0x001c }\n if (r4 == 0) goto L_0x001c;\n L_0x0036:\n return r4;\n L_0x0037:\n r2 = r2 + 1;\n goto L_0x0010;\n L_0x003a:\n r0 = 0;\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.koushikdutta.async.util.FileCache.f():java.security.MessageDigest\");\n }",
"public String getHashString()\n\t{\n\t\treturn md5.getHashString();\n\t}",
"public static String createMd5(String value)\r\n\t{ \r\n\t\ttry \r\n\t\t{\r\n\t\t\tMessageDigest md = MessageDigest.getInstance(\"MD5\");\t\t\t\r\n\t\t\tbyte[] hashInBytes = md.digest(value.getBytes(StandardCharsets.UTF_8));\r\n\t\t\tStringBuilder sb = new StringBuilder();\r\n\t for (byte b : hashInBytes) \r\n\t {\r\n\t sb.append(String.format(\"%02x\", b));\r\n\t }\r\n\t return sb.toString();\r\n\t\t}\r\n\t\tcatch(Exception ex)\r\n\t\t{\r\n\t\t\t\r\n\t\t}\r\n\t\treturn \"\";\r\n\t}",
"public static String hash(File remoteFsRoot) {\n logger.config(\"hash() invoked\");\n\n StringBuilder buf = new StringBuilder();\n try {\n buf.append(remoteFsRoot.getCanonicalPath()).append('\\n');\n } catch (IOException e) {\n logger.log(Level.FINER, \"hash() IOException - may be normal?\", e);\n buf.append(remoteFsRoot.getAbsolutePath()).append('\\n');\n }\n try {\n for (NetworkInterface ni : Collections.list(NetworkInterface.getNetworkInterfaces())) {\n for (InetAddress ia : Collections.list(ni.getInetAddresses())) {\n if (ia instanceof Inet4Address) {\n buf.append(ia.getHostAddress()).append('\\n');\n } else if (ia instanceof Inet6Address) {\n buf.append(ia.getHostAddress()).append('\\n');\n }\n }\n byte[] hardwareAddress = ni.getHardwareAddress();\n if (hardwareAddress != null) {\n buf.append(Arrays.toString(hardwareAddress));\n }\n }\n } catch (SocketException e) {\n // oh well we tried\n logger.log(Level.FINEST, \"hash() SocketException - 'oh well we tried'\", e);\n }\n return DigestUtils.md5Hex(buf.toString()).substring(0, 8);\n }",
"public static String getMD5(final File file) {\n if (file == null || !file.exists()) {\n return null;\n }\n\n FileInputStream fin = null;\n try {\n fin = new FileInputStream(file);\n String md5 = getMD5(fin);\n return md5;\n } catch (Exception e) {\n return null;\n } finally {\n closeQuietly(fin);\n }\n }",
"public static String getMd5(String input) {\n try {\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n\n byte[] messageDigest = md.digest(input.getBytes());\n\n BigInteger no = new BigInteger(1, messageDigest);\n\n String hashtext = no.toString(16);\n while (hashtext.length() < 32) {\n hashtext = \"0\" + hashtext;\n }\n return hashtext;\n } catch (NoSuchAlgorithmException e) {\n throw new RuntimeException(e);\n }\n }",
"public String getMD5(String txt){\n String md5output;\n md5output = txt;\n try {\n MessageDigest m = MessageDigest.getInstance(\"MD5\");\n m.reset();\n m.update(md5output.getBytes());\n byte[] digest = m.digest();\n BigInteger bigInt = new BigInteger(1,digest);\n md5output = bigInt.toString(16);\n } catch (Exception e) {\n md5output = null;\n } finally{\n return md5output;\n }\n \n }",
"private static byte[] generateMD5(String info) throws\n UnsupportedEncodingException, NoSuchAlgorithmException {\n byte[] inputData = info.getBytes(\"UTF-8\");\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n md.update(inputData);\n byte[] digest= md.digest();\n return digest;\n }",
"public String getHash(String str) throws Exception{\n\t\t\n\t\tMessageDigest md = MessageDigest.getInstance(\"MD5\");\n md.update(str.getBytes());\n \n byte byteData[] = md.digest();\n \n //convert the byte to hex format method 1\n StringBuffer sb = new StringBuffer();\n for (int i = 0; i < byteData.length; i++) {\n sb.append(Integer.toString((byteData[i] & 0xff) + 0x100, 16).substring(1));\n }\n \n String hex = sb.toString();\n System.out.println(hex);\n return hex; \n}",
"public static String getMD5(String s) {\n try {\n MessageDigest m = MessageDigest.getInstance(\"MD5\");\n m.update(s.getBytes(), 0, s.length());\n return \"\" + new BigInteger(1, m.digest()).toString(16);\n } catch (NoSuchAlgorithmException e) {\n logger.error(\"MD5 is not supported !!!\");\n }\n return s;\n }",
"public byte[] calc_hash(File filename)\r\n {\r\n\tint digest_length = 512;\r\n\tbyte message[] = new byte[digest_length];\r\n\tbyte key[] = new byte[0];\r\n\tMessageDigest sha;\r\n\tint message_size;\r\n\tlong file_size = 0;\r\n\r\n\ttry{\r\n\t sha = MessageDigest.getInstance(algorithm, provider);\r\n\r\n\t try{\r\n\t\t/* Read file into byte array, and use array to update hash key */\r\n\t\tFileInputStream fin = new FileInputStream(filename);\r\n\t\twhile((message_size = fin.read(message)) != -1)\r\n\t\t {\r\n\t\t\tif(message_size < digest_length)\r\n\t\t\t sha.update(message, 0, message_size);\r\n\t\t\telse\r\n\t\t\t sha.update(message);\r\n\t\t }\r\n\t\tfin.close();\r\n\r\n\t\tkey = sha.digest();\r\n\t }\r\n\t catch(IOException ioe){\r\n\t\tSystem.out.println(\"Error (calc_hash): Unable to open and read file \" + filename.getName());\r\n\t\tioe.printStackTrace();\r\n\t\treturn null;\r\n\t }\r\n\t}\r\n\tcatch(NoSuchAlgorithmException nae){\r\n\t System.out.println(\"Error (calc_hash): hash algorithm \" + algorithm + \" not found\");\r\n\t nae.printStackTrace();\r\n\t return null;\r\n\t}\r\n\tcatch(NoSuchProviderException npe){\r\n\t System.out.println(\"Error (calc_hash): Security provider \" + provider + \" not found\");\r\n\t npe.printStackTrace();\r\n\t return null;\r\n\t}\r\n\r\n\treturn key;\r\n }",
"public HashCode getInstallMD5() {\n return installMD5;\n }",
"public static String getStringMD5(String src) {\n\t\tMessageDigest messageDigest = null;\n\t\tbyte[] srcBytes = src.getBytes();\n\t\ttry {\n\t\t\tmessageDigest = MessageDigest.getInstance(\"MD5\");\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tmessageDigest.update(srcBytes, 0, srcBytes.length);\n\t\tBigInteger bigInt = new BigInteger(1, messageDigest.digest());\n\t\treturn bigInt.toString(16);\n\t}",
"public static byte[] encryptMD5(final byte[] data) {\n return hashTemplate(data, \"MD5\");\n }",
"public String md5(String s) {\n try {\n // Create MD5 Hash\n MessageDigest digest = java.security.MessageDigest.getInstance(\"MD5\");\n digest.update(s.getBytes());\n byte messageDigest[] = digest.digest();\n\n // Create Hex String\n StringBuffer hexString = new StringBuffer();\n for (int i = 0; i < messageDigest.length; i++)\n hexString.append(Integer.toHexString(0xFF & messageDigest[i]));\n return hexString.toString();\n\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n }\n return \"\";\n }",
"private static String md5(String str) {\n\n if (str == null) {\n return null;\n }\n\n MessageDigest messageDigest = null;\n\n try {\n messageDigest = MessageDigest.getInstance(HttpConf.signType);\n messageDigest.reset();\n messageDigest.update(str.getBytes(HttpConf.charset));\n } catch (NoSuchAlgorithmException e) {\n\n return str;\n } catch (UnsupportedEncodingException e) {\n return str;\n }\n\n byte[] byteArray = messageDigest.digest();\n\n StringBuffer md5StrBuff = new StringBuffer();\n\n for (int i = 0; i < byteArray.length; i++) {\n if (Integer.toHexString(0xFF & byteArray[i]).length() == 1) {\n md5StrBuff.append(\"0\").append(Integer.toHexString(0xFF & byteArray[i]));\n } else {\n md5StrBuff.append(Integer.toHexString(0xFF & byteArray[i]));\n }\n }\n\n return md5StrBuff.toString();\n }",
"private static void compareSha(String filename) {\n\n\t\tMessageDigest md = null;\n\n\t\ttry (InputStream is = new BufferedInputStream(new FileInputStream(filename))) {\n\n\t\t\tbyte[] data = new byte[4096];\n\t\t\tint nRead;\n\t\t\tmd = MessageDigest.getInstance(\"SHA-256\");\n\n\t\t\twhile ((nRead = is.read(data)) != -1) {\n\t\t\t\tmd.update(data, 0, nRead);\n\t\t\t}\n\n\t\t} catch (FileNotFoundException exc) {\n\t\t\tSystem.out.println(\n\t\t\t\t\t\"File does not exist, is a directory rather than a regular file, or cannot be opened for reading because of some other reason\");\n\t\t\tSystem.exit(1);\n\n\t\t} catch (IOException exc) {\n\t\t\tSystem.out.println(\"Input stream couldn't be initialized.\");\n\t\t\tSystem.exit(1);\n\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\tSystem.out.println(\"No provider supports a MessageDigestSpi implementation for the specified algorithm.\");\n\t\t\tSystem.exit(1);\n\t\t}\n\n\t\tString sha256Digest = Util.bytetohex(md.digest());\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tSystem.out.println(\"Please provide expected sha-256 digest for hw06part2.pdf: \");\n\t\tSystem.out.print(\">\");\n\t\tString expectedDigest = sc.nextLine();\n\t\tsc.close();\n\n\t\tif (sha256Digest.equals(expectedDigest)) {\n\t\t\tSystem.out.printf(\"Digesting completed. Digest of %s matches expected digest.\\n\", filename);\n\n\t\t} else {\n\t\t\tSystem.out.printf(\"Digesting completed. Digest of %s does not match the expected digest. Digest was: %s\\n\",\n\t\t\t\t\tfilename, sha256Digest);\n\t\t}\n\n\t}",
"private static String md5(final String s) {\n final String MD5 = \"MD5\";\n try {\n // Create MD5 Hash\n MessageDigest digest = java.security.MessageDigest\n .getInstance(MD5);\n digest.update(s.getBytes());\n byte messageDigest[] = digest.digest();\n\n // Create Hex String\n StringBuilder hexString = new StringBuilder();\n for (byte aMessageDigest : messageDigest) {\n String h = Integer.toHexString(0xFF & aMessageDigest);\n while (h.length() < 2)\n h = \"0\" + h;\n hexString.append(h);\n }\n return hexString.toString();\n\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n }\n return \"\";\n }",
"String getHash();",
"String getHash();",
"public MD5Hash(String s) {\n\t\tif(s.length() != 32) throw new IllegalArgumentException(\"Hash must have 32 characters\");\n\t\thashString = s;\n\t}",
"private String md5(String input) {\r\n\t\tString md5 = null;\r\n\t\tif (null == input)\r\n\t\t\treturn null;\r\n\r\n\t\ttry {\r\n\t\t\tMessageDigest digest = MessageDigest.getInstance(\"MD5\");\r\n\t\t\tdigest.update(input.getBytes(), 0, input.length());\r\n\t\t\tmd5 = new BigInteger(1, digest.digest()).toString(16);\r\n\t\t} catch (NoSuchAlgorithmException e) {\r\n\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn md5;\r\n\t}",
"private static String getKeyByMd5(String url) {\n String key;\n try {\n MessageDigest messageDigest = MessageDigest.getInstance(\"MD5\");\n messageDigest.update(url.getBytes());\n key = md5Encryption(messageDigest.digest());\n return key;\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n key = String.valueOf(url.hashCode());\n }\n return key;\n }",
"public static String md5(final String data) {\n return ByteString.encodeUtf8(data).md5().hex().toLowerCase();\n }",
"private String md5(final String s)\n\t{\n\t\ttry {\n\t\t\t// Create MD5 Hash\n\t\t\tMessageDigest digest = MessageDigest.getInstance(\"MD5\");\n\t\t\tdigest.update(s.getBytes());\n\t\t\tbyte messageDigest[] = digest.digest();\n\n\t\t\t// Create Hex String\n\t\t\tStringBuffer hexString = new StringBuffer();\n\t\t\tfor (int i=0; i<messageDigest.length; i++) {\n\t\t\t\tString h = Integer.toHexString(0xFF & messageDigest[i]);\n\t\t\t\twhile (h.length() < 2) h = \"0\" + h;\n\t\t\t\thexString.append(h);\n\t\t\t}\n\t\t\treturn hexString.toString();\n\t\t} catch(NoSuchAlgorithmException e) {\n\t\t\t//Logger.logStackTrace(TAG,e);\n\t\t}\n\t\treturn \"\";\n\t}",
"java.lang.String getHashData();",
"com.google.protobuf.ByteString getHash();",
"com.google.protobuf.ByteString getHash();",
"public static String hash(String data) {\n\t MessageDigest md;\n\t\ttry {\n\t\t\tmd = MessageDigest.getInstance(\"MD5\");\n\t\t md.update(data.getBytes());\n\t\t byte[] digest = md.digest();\n\t\t char[] HEX_ARRAY = \"0123456789ABCDEF\".toCharArray();\n\t char[] hexChars = new char[digest.length * 2];\n\t for (int j = 0; j < digest.length; j++) {\n\t int v = digest[j] & 0xFF;\n\t hexChars[j * 2] = HEX_ARRAY[v >>> 4];\n\t hexChars[j * 2 + 1] = HEX_ARRAY[v & 0x0F];\n\t }\n\t return new String(hexChars);\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n return null;\n\t}",
"public static String getMD5Hash(String string) {\r\n\t\tMessageDigest digest;\r\n\t\ttry {\r\n\t\t\tdigest = java.security.MessageDigest.getInstance(\"MD5\");\r\n\t\t\tdigest.update(string.getBytes());\r\n\t\t\tfinal byte[] hash = digest.digest();\r\n\t\t\tfinal StringBuilder result = new StringBuilder(hash.length);\r\n\t\t\tfor (int i = 0; i < hash.length; i++) {\r\n\t\t\t\tresult.append(Integer.toString((hash[i] & 0xff) + 0x100, 16)\r\n\t\t\t\t\t\t.substring(1));\r\n\t\t\t}\r\n\t\t\treturn result.toString();\r\n\t\t} catch (final NoSuchAlgorithmException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn \"error\";\r\n\t\t}\r\n\t}",
"int getHash();",
"public static String md5(String str) {\n MessageDigest messageDigest = null;\n try {\n messageDigest = MessageDigest.getInstance(\"MD5\");\n messageDigest.reset();\n messageDigest.update(str.getBytes(\"UTF-8\"));\n } catch (NoSuchAlgorithmException | UnsupportedEncodingException e) {\n // do nothing\n }\n byte[] byteArray = messageDigest.digest();\n StringBuffer md5StrBuff = new StringBuffer();\n for (int i = 0; i < byteArray.length; i++) {\n if (Integer.toHexString(0xFF & byteArray[i]).length() == 1)\n md5StrBuff.append(\"0\").append(Integer.toHexString(0xFF & byteArray[i]));\n else\n md5StrBuff.append(Integer.toHexString(0xFF & byteArray[i]));\n }\n return md5StrBuff.toString();\n }",
"private String md5(String message) throws java.security.NoSuchAlgorithmException\n\t{\n\t\tMessageDigest md5 = null;\n\t\ttry {\n\t\t\tmd5 = MessageDigest.getInstance(\"MD5\");\n\t\t}\n\t\tcatch (java.security.NoSuchAlgorithmException ex) {\n\t\t\tex.printStackTrace();\n\t\t\tthrow ex;\n\t\t}\n\t\tbyte[] dig = md5.digest((byte[]) message.getBytes());\n\t\tStringBuffer code = new StringBuffer();\n\t\tfor (int i = 0; i < dig.length; ++i)\n\t\t{\n\t\t\tcode.append(Integer.toHexString(0x0100 + (dig[i] & 0x00FF)).substring(1));\n\t\t}\n\t\treturn code.toString();\n\t}",
"public static String hash(String in) {\r\n\t\treturn DigestUtils.md5Hex(in.getBytes());\r\n\t}",
"public static String getFileChecksum(File file) {\n return getFileChecksum(file, true);\n }"
] |
[
"0.7800426",
"0.7483837",
"0.745395",
"0.73832744",
"0.7380369",
"0.72531235",
"0.72531235",
"0.71196264",
"0.7082408",
"0.7062036",
"0.7048478",
"0.7031023",
"0.70060116",
"0.69423705",
"0.6941836",
"0.6911277",
"0.6899666",
"0.68789035",
"0.67872053",
"0.6573226",
"0.6517764",
"0.6462793",
"0.64626735",
"0.64483845",
"0.63890666",
"0.63889164",
"0.637664",
"0.6344204",
"0.6328337",
"0.63156193",
"0.62790745",
"0.62778276",
"0.62544405",
"0.62272245",
"0.622478",
"0.62095225",
"0.6189183",
"0.618581",
"0.6150319",
"0.61447257",
"0.6133792",
"0.61083305",
"0.61080337",
"0.6107677",
"0.6082222",
"0.6078524",
"0.6063569",
"0.60347885",
"0.6032613",
"0.6018872",
"0.5967777",
"0.59409916",
"0.5930955",
"0.59301263",
"0.59198403",
"0.59154654",
"0.58731323",
"0.58727765",
"0.5865943",
"0.58636516",
"0.58328414",
"0.58306295",
"0.58288914",
"0.5823926",
"0.5822736",
"0.5820728",
"0.5814811",
"0.5810591",
"0.5802849",
"0.5767336",
"0.57649535",
"0.57357484",
"0.5735534",
"0.5722977",
"0.5713615",
"0.5705999",
"0.5685397",
"0.5664443",
"0.5657681",
"0.56380135",
"0.5635169",
"0.56317455",
"0.56283534",
"0.56283534",
"0.5621572",
"0.5617056",
"0.56170446",
"0.5608373",
"0.5608194",
"0.5602473",
"0.55986595",
"0.55986595",
"0.5591306",
"0.5573595",
"0.5569579",
"0.5567024",
"0.55646014",
"0.5549714",
"0.553195"
] |
0.58198696
|
66
|
MD5 of the file content bytes fileHash = 1;
|
public Builder clearFileHash() {
fileHash_ = getDefaultInstance().getFileHash();
onChanged();
return this;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private String getFileMd5Checksum(String filename){\n\t\ttry {\n\t\t\tbyte[] fileBytes = Files.readAllBytes(Paths.get(FILES_ROOT + filename));\n\t\t\tbyte[] fileHash = MessageDigest.getInstance(\"MD5\").digest(fileBytes);\n\n\t\t\treturn DatatypeConverter.printHexBinary(fileHash);\n\t\t} catch (IOException e) {\n\t\t\t// TODO: Handle file doesn't exist\n\t\t\treturn \"\";\n\t\t} catch (Exception e) {\n\t\t\treturn \"\";\n\t\t}\n\t}",
"public static String computeMD5FileHash (File file) throws Exception {\n byte[] b = createFileChecksum(file);\n String result = \"\";\n\n for (int i=0; i < b.length; i++) {\n result += Integer.toString( ( b[i] & 0xff ) + 0x100, 16).substring( 1 );\n }\n return result;\n }",
"private static String getMD5Checksum(String filename) throws Exception {\r\n\t\tbyte[] b = createChecksum(filename);\r\n\t\tStringBuilder result = new StringBuilder();\r\n\t\tfor (byte v : b) {\r\n\t\t\tresult.append(Integer.toString((v & 0xff) + 0x100, 16).substring(1));\r\n\t\t}\r\n\t\treturn result.toString();\r\n\t}",
"private static String getFileChecksum(File file) throws IOException, NoSuchAlgorithmException {\n FileInputStream fis = new FileInputStream(file);\n\n // Use MD5 algorithm\n MessageDigest digest = MessageDigest.getInstance(\"MD5\");\n\n // Create byte array to read data in chunks\n byte[] byteArray = new byte[1024];\n int bytesCount = 0;\n\n // Read file data and update in message digest\n while ((bytesCount = fis.read(byteArray)) != -1) {\n digest.update(byteArray, 0, bytesCount);\n }\n ;\n\n // close the stream; We don't need it now.\n fis.close();\n\n // Get the hash's bytes\n byte[] bytes = digest.digest();\n\n // This bytes[] has bytes in decimal format;\n // Convert it to hexadecimal format\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < bytes.length; i++) {\n sb.append(Integer.toString((bytes[i] & 0xff) + 0x100, 16).substring(1));\n }\n\n // return complete hash\n return sb.toString();\n }",
"public static String getFileMD5(File file) {\n\t\tMessageDigest messageDigest = null;\n\t\tFileInputStream fileInStream = null;\n\t\tbyte buffer[] = new byte[1024];\n\t\tint length = -1;\n\t\ttry {\n\t\t\tmessageDigest = MessageDigest.getInstance(\"MD5\");\n\t\t\tfileInStream = new FileInputStream(file);\n\t\t\twhile ((length = fileInStream.read(buffer, 0, 1024)) != -1) {\n\t\t\t\tmessageDigest.update(buffer, 0, length);\n\t\t\t}\n\t\t\tfileInStream.close();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t\tBigInteger bigInt = new BigInteger(1, messageDigest.digest());\n\t\treturn bigInt.toString(16);\n\t}",
"com.google.protobuf.ByteString getFileHash();",
"com.google.protobuf.ByteString getFileHash();",
"public static String fileMD5(File file) {\n\t\tFileInputStream fis = null;\n\t\tString md5 = null;\n\t\ttry {\n\t\t\tfis = new FileInputStream(file);\n\t\t\tmd5 = org.apache.commons.codec.digest.DigestUtils.md5Hex(fis);\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"!!!\", e);\n\t\t} finally {\n\t\t\tCloseUtils.close(fis);\n\t\t}\n\t\treturn md5;\n\t}",
"public static String md5(String inputFile) {\r\n String md5 = null;\r\n logger.debug(\"Start to calculate hashcode (SHA1) for {}\", inputFile);\r\n try (DigestInputStream digestIn = new DigestInputStream(new FileInputStream(inputFile),\r\n MessageDigest.getInstance(\"SHA1\"))) {\r\n byte[] buffer = new byte[1024 * 1024];\r\n while (digestIn.read(buffer) > 0) {\r\n // do nothing\r\n }\r\n md5 = toHexString(digestIn.getMessageDigest().digest());\r\n } catch (NoSuchAlgorithmException | IOException e) {\r\n logger.warn(\"Fail to md5 for {} ({})\", inputFile, e.getMessage());\r\n }\r\n logger.debug(\"End to calculate hashcode (SHA1) for {}, {}\", inputFile, md5);\r\n return md5;\r\n }",
"static String generateChecksum(String filename) {\n\n try {\n // Instantiating file and Hashing Algorithm.\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n FileInputStream file = new FileInputStream(filename);\n\n // Generation of checksum.\n byte[] dataBytes = new byte[1024];\n int nread;\n\n while ((nread = file.read(dataBytes)) != -1) {\n md.update(dataBytes, 0, nread);\n }\n\n byte[] mdbytes = md.digest();\n\n // Convert byte to hex.\n StringBuilder hexString = new StringBuilder();\n\n for (byte mdbyte : mdbytes) {\n String hex = Integer.toHexString(0xff & mdbyte);\n if (hex.length() == 1) hexString.append('0');\n hexString.append(hex);\n }\n\n // Return checksum as completed string.\n return hexString.toString();\n\n } catch (NoSuchAlgorithmException | IOException e) {\n e.printStackTrace();\n }\n return null;\n }",
"public static String getFileMD5(File file) {\n if (!file.isFile()) {\n return null;\n }\n MessageDigest digest = null;\n FileInputStream in = null;\n byte buffer[] = new byte[1024];\n int len;\n try {\n digest = MessageDigest.getInstance(\"MD5\");\n in = new FileInputStream(file);\n while ((len = in.read(buffer, 0, 1024)) != -1) {\n digest.update(buffer, 0, len);\n }\n in.close();\n } catch (Exception e) {\n e.printStackTrace();\n return null;\n }\n BigInteger bigInt = new BigInteger(1, digest.digest());\n String md5 = bigInt.toString(16);\n while (md5.length() < 32)\n md5 = \"0\" + md5;\n return md5;\n }",
"private static String getFileChecksum(MessageDigest digest, File file) throws IOException\n\t {\n\t FileInputStream fis = new FileInputStream(file);\n\t \n\t //Create byte array to read data in chunks\n\t byte[] byteArray = new byte[1024];\n\t int bytesCount = 0;\n\t \n\t //Read file data and update in message digest\n\t while ((bytesCount = fis.read(byteArray)) != -1) {\n\t digest.update(byteArray, 0, bytesCount);\n\t };\n\t \n\t //close the stream; We don't need it now.\n\t fis.close();\n\t \n\t //Get the hash's bytes\n\t byte[] bytes = digest.digest();\n\t \n\t //This bytes[] has bytes in decimal format;\n\t //Convert it to hexadecimal format\n\t StringBuilder sb = new StringBuilder();\n\t for(int i=0; i< bytes.length ;i++)\n\t {\n\t sb.append(Integer.toString((bytes[i] & 0xff) + 0x100, 16).substring(1));\n\t }\n\t \n\t //return complete hash\n\t return sb.toString();\n\t }",
"public String getMD5() {\n return hash;\n }",
"private static String getFileChecksum(MessageDigest digest, File file) throws IOException {\n FileInputStream fis = new FileInputStream(file);\n\n //Create byte array to read data in chunks\n byte[] byteArray = new byte[1024];\n int bytesCount = 0;\n\n //Read file data and update in message digest\n while ((bytesCount = fis.read(byteArray)) != -1) {\n digest.update(byteArray, 0, bytesCount);\n }\n\n //close the stream; We don't need it now.\n fis.close();\n\n //Get the hash's bytes\n byte[] bytes = digest.digest();\n\n //This bytes[] has bytes in decimal format;\n //Convert it to hexadecimal format\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < bytes.length; i++) {\n sb.append(Integer.toString((bytes[i] & 0xff) + 0x100, 16).substring(1));\n }\n\n //return complete hash\n return sb.toString();\n }",
"public static byte[] createCheckSum(String filename) throws Exception {\n InputStream fis = new FileInputStream(filename);\n\n byte[] buffer = new byte[1024];\n MessageDigest complete = MessageDigest.getInstance(\"MD5\");\n int numRead;\n\n do {\n numRead = fis.read(buffer);\n if (numRead > 0) {\n complete.update(buffer, 0, numRead);\n }\n } while (numRead != -1);\n\n fis.close();\n // Return MD5 Hash\n return complete.digest();\n }",
"public static String getFileMD5(String path) {\n\t\treturn getFileMD5(new File(path));\n\t}",
"public static String fileMD5(String filePath) {\n\t\tFileInputStream fis = null;\n\t\tString md5 = null;\n\t\ttry {\n\t\t\tfis = new FileInputStream(new File(filePath));\n\t\t\tmd5 = org.apache.commons.codec.digest.DigestUtils.md5Hex(fis);\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"!!!\", e);\n\t\t} finally {\n\t\t\tCloseUtils.close(fis);\n\t\t}\n\t\treturn md5;\n\t}",
"public static String computeMD5(String filename) throws Exception {\r\n byte[] b = createGenericChecksum(filename, 0);\r\n String result = \"\";\r\n for (int i = 0; i < b.length; i++) {\r\n result += Integer.toString((b[i] & 0xff) + 0x100, 16).substring(1);\r\n }\r\n return result;\r\n }",
"public static String getMD5(File file) throws IOException, NoSuchAlgorithmException {\n return getChecksum(file, MessageDigest.getInstance(\"MD5\"));\n }",
"protected void md5file(File file) throws IOException {\n if (file.isDirectory()) {\n throw new IllegalArgumentException(\"Only files can be check summed !\");\n }\n\n // calculating the output\n byte[] md5 = DigestUtils.md5(new FileInputStream(file));\n\n // getting the output file\n File outputFile = new File(file.getAbsolutePath() + \".md5\");\n Files.write(Paths.get(outputFile.getAbsolutePath()), md5);\n\n }",
"String saveData(MultipartFile md5File) throws IOException;",
"@java.lang.Override\n public com.google.protobuf.ByteString getFileHash() {\n return fileHash_;\n }",
"@java.lang.Override\n public com.google.protobuf.ByteString getFileHash() {\n return fileHash_;\n }",
"byte[] getFile(String sha) throws Exception;",
"@java.lang.Override\n public com.google.protobuf.ByteString getFileHash() {\n return fileHash_;\n }",
"@java.lang.Override\n public com.google.protobuf.ByteString getFileHash() {\n return fileHash_;\n }",
"byte[] getDigest();",
"private String fileChecksum(File tmpFile, ITaskMonitor monitor) {\n InputStream is = null;\n try {\n is = new FileInputStream(tmpFile);\n MessageDigest digester = getChecksumType().getMessageDigest();\n byte[] buf = new byte[65536];\n int n;\n while ((n = is.read(buf)) >= 0) {\n if (n > 0) {\n digester.update(buf, 0, n);\n }\n }\n return getDigestChecksum(digester);\n } catch (FileNotFoundException e) {\n monitor.setResult(\"File not found: %1$s\", e.getMessage());\n } catch (Exception e) {\n monitor.setResult(e.getMessage());\n } finally {\n if (is != null) {\n try {\n is.close();\n } catch (IOException e) {\n }\n }\n }\n return \"\";\n }",
"public static String getFileChecksum(MessageDigest digest, String filePath) throws IOException {\n\t\tFileInputStream fis = new FileInputStream(filePath);\n\n\t\t// Create byte array to read data in chunks\n\t\tbyte[] byteArray = new byte[1024];\n\t\tint bytesCount = 0;\n\n\t\t// Read file data and update in message digest\n\t\twhile ((bytesCount = fis.read(byteArray)) != -1) {\n\t\t\tdigest.update(byteArray, 0, bytesCount);\n\t\t}\n\t\t;\n\n\t\t// close the stream; We don't need it now.\n\t\tfis.close();\n\n\t\t// Get the hash's bytes\n\t\tbyte[] bytes = digest.digest();\n\n\t\t// This bytes[] has bytes in decimal format;\n\t\t// Convert it to hexadecimal format\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor (int i = 0; i < bytes.length; i++) {\n\t\t\tsb.append(Integer.toString((bytes[i] & 0xff) + 0x100, 16).substring(1));\n\t\t}\n\n\t\t// return complete hash\n\t\treturn sb.toString();\n\t}",
"public static byte[] encryptMD5File(final File file) {\n if (file == null) return null;\n FileInputStream fis = null;\n DigestInputStream digestInputStream;\n try {\n fis = new FileInputStream(file);\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n digestInputStream = new DigestInputStream(fis, md);\n byte[] buffer = new byte[256 * 1024];\n while (true) {\n if (!(digestInputStream.read(buffer) > 0)) break;\n }\n md = digestInputStream.getMessageDigest();\n return md.digest();\n } catch (NoSuchAlgorithmException | IOException e) {\n e.printStackTrace();\n return null;\n } finally {\n try {\n if (fis != null) {\n fis.close();\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }",
"byte[] digest();",
"@Test\n public void fileMd5Test() {\n // TODO: test fileMd5\n }",
"public String getMd5Hash() {\n return md5Hash;\n }",
"public String getMD5() {\n return m_module.getConfiguration().getMD5();\n }",
"public static String CreateMD5(File file) {\n String base64Image = \"\";\n try (FileInputStream imageInFile = new FileInputStream(file)) {\n // Reading a Image file from file system\n byte imageData[] = new byte[(int) file.length()];\n imageInFile.read(imageData);\n base64Image = Base64.getEncoder().encodeToString(imageData);\n } catch (FileNotFoundException e) {\n DialogWindow.ShowErrorPane(\"Image could not be found.\", \"Error Image Missing\");\n// System.out.println(\"Image not found\" + e);\n } catch (IOException ioe) {\n DialogWindow.ShowErrorPane(\"Error while the image was being converted.\", \"Error Converting Image\");\n// System.out.println(\"Exception while reading the Image \" + ioe);\n }\n return base64Image;\n }",
"public BoxFileUploadRequestObject setContentMD5(String sha1) {\n getRequestExtras().addHeader(Constants.CONTENT_MD5, sha1);\n return this;\n }",
"public static byte[] computeMD5Hash(InputStream is) throws NoSuchAlgorithmException, IOException {\n BufferedInputStream bis = new BufferedInputStream(is);\n try {\n MessageDigest messageDigest = MessageDigest.getInstance(\"MD5\");\n byte[] buffer = new byte[16384];\n int bytesRead = -1;\n while ((bytesRead = bis.read(buffer, 0, buffer.length)) != -1) {\n messageDigest.update(buffer, 0, bytesRead);\n }\n return messageDigest.digest();\n } finally {\n try {\n bis.close();\n } catch (Exception e) {\n System.err.println(\"Unable to close input stream of hash candidate: \" + e);\n }\n }\n }",
"public byte[] getContentMd5() {\n return CoreUtils.clone(this.contentMd5);\n }",
"private static String md5(byte[] b) {\n try {\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n md.reset();\n md.update(b);\n byte[] digest = md.digest();\n StringBuffer sb = new StringBuffer();\n for (int i=0; i<digest.length; i++) {\n String a = Integer.toHexString(0xff & digest[i]);\n if (a.length() == 1) a = \"0\" + a;\n sb.append(a);\n }\n return sb.toString();\n }\n catch (NoSuchAlgorithmException e) { writeLog(e); }\n return null;\n }",
"private int getFileContentHashCode(Path filePath) throws IOException {\n return Arrays.hashCode(Files.readAllBytes(filePath));\n }",
"public static void md5(File outputFile) throws ConverterException {\r\n\t\ttry {\r\n\t\t\tFileInputStream fileInputStream = new FileInputStream(outputFile);\r\n\t\t\tBufferedInputStream bufferedInputStream = new BufferedInputStream(fileInputStream);\r\n\t\t\t\r\n\t\t\tbyte[] datei = bufferedInputStream.readAllBytes();\r\n\t\t\tMessageDigest md = MessageDigest.getInstance(\"MD5\");\r\n\t\t\tbyte[] md5 = md.digest(datei);\r\n\t\t\tfor (int i = 0; i < md5.length; i++) {\r\n\t\t\t\tSystem.out.print(String.format(\"%02X\", md5[i]));\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\" File Length: \" + outputFile.length());\r\n\t\t\tSystem.out.println();\r\n\t\t\t\r\n\t\t\tbufferedInputStream.close();\r\n\t\t\tfileInputStream.close();\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\tthrow new ConverterException(\"Datei kann nicht gefunden werden\");\r\n\t\t} catch (IOException e) {\r\n\t\t\tthrow new ConverterException(\"Beim Lesen der Datei ist ein Fehler aufgetreten\");\r\n\t\t} catch (NoSuchAlgorithmException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"private String calculateCheckSum(File file2) {\n\t\tStringBuffer sb = new StringBuffer(\"\");\n\t\ttry {\n\t\t\tMessageDigest messageDigest = MessageDigest.getInstance(\"SHA1\");\n\n\t\t\tFileInputStream finput = new FileInputStream(file2);\n\t\t\tbyte[] dataBytes = new byte[1024];\n\n\t\t\tint bytesRead = 0;\n\n\t\t\twhile ((bytesRead = finput.read(dataBytes)) != -1) {\n\t\t\t\tmessageDigest.update(dataBytes, 0, bytesRead);\n\t\t\t}\n\n\t\t\tbyte[] digestBytes = messageDigest.digest();\n\n\t\t\tfor (int i = 0; i < digestBytes.length; i++) {\n\t\t\t\tsb.append(Integer.toString((digestBytes[i] & 0xff) + 0x100, 16).substring(1));\n\t\t\t}\n\t\t\tSystem.out.println(\"file check sum value is \" + sb.toString());\n\t\t\tfinput.close();\n\t\t} catch (Exception ex) {\n\t\t\t// TODO: handle exception\n\t\t\tLogger.getLogger(FileTransferClient.class.getName()).log(Level.SEVERE, null, ex);\n\t\t}\n\n\t\treturn sb.toString();\n\t}",
"public static byte[] computeMD5Hash(byte[] data) throws NoSuchAlgorithmException, IOException {\n return computeMD5Hash(new ByteArrayInputStream(data));\n }",
"public byte[] getMD5() {\n return MD5;\n }",
"public Digest (File appdir)\n throws IOException\n {\n // parse and validate our digest file contents\n StringBuffer data = new StringBuffer();\n File dfile = new File(appdir, DIGEST_FILE);\n List pairs = ConfigUtil.parsePairs(dfile, false);\n for (Iterator iter = pairs.iterator(); iter.hasNext(); ) {\n String[] pair = (String[])iter.next();\n if (pair[0].equals(DIGEST_FILE)) {\n _metaDigest = pair[1];\n break;\n }\n _digests.put(pair[0], pair[1]);\n note(data, pair[0], pair[1]);\n }\n \n // we've reached the end, validate our contents\n MessageDigest md = getMessageDigest();\n byte[] contents = data.toString().getBytes(\"UTF-8\");\n String md5 = StringUtil.hexlate(md.digest(contents));\n if (!md5.equals(_metaDigest)) {\n String err = MessageUtil.tcompose(\n \"m.invalid_digest_file\", _metaDigest, md5);\n throw new IOException(err);\n }\n }",
"public byte[] MD5(File archivo) throws OpenSSL_Exception {\n\t\tString[] comando = new String[]{ \"openssl\" , \"dgst\" , \"-md5\" , archivo.getAbsolutePath()};\n\t\tProcess terminal = null;\n\t\ttry { terminal = Runtime.getRuntime().exec(comando); } catch (IOException e) { \n\t\t\tthrow new OpenSSL_Exception(\"No se puede ejecutar el comando en el terminal\");\n\t\t}\n\t\t// --- > Leemos la salida error del comando\n\t\tBufferedReader errors = new BufferedReader(new InputStreamReader(terminal.getErrorStream()));\n\t\tString linea = \"\" , error = \"\" ;\n\t\ttry { while( (linea = errors.readLine()) != null) error += linea + \"\\n\"; } catch (IOException e) {\n\t\t\tthrow new OpenSSL_Exception(\"No se puede leer el error que ha producido el comando\");\n\t\t}\n\t\t// --- > Si hubo salida error lanzamos al excepcion con el error\n\t\tif(!error.equals(\"\"))throw new OpenSSL_Exception(\"Error al ejecutar el comando:\\n\" + error );\n\t\t// --- > Leemos el resultado obtenido\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(terminal.getInputStream()));\n\t\tString res = \"\";\n\t\ttry { while((linea = in.readLine()) != null) res += linea; } catch (IOException e) {\n\t\t\tthrow new OpenSSL_Exception(\"No se puede leer el resultado que ha producido el comando\");\n\t\t}\n\t\treturn res.substring(res.lastIndexOf(\" \") + 1 ).getBytes();\n\t}",
"public byte[] getHash()\n\t{\n\t\treturn md5.getHash();\n\t}",
"@Test\n public void md5Checksum() throws NoSuchAlgorithmException {\n String string = Utils.md5Checksum(\"abcde fghijk lmn op\");\n Assert.assertEquals(\"1580420c86bbc3b356f6c40d46b53fc8\", string);\n }",
"public static String md5(String pass)\n {\n try{\n MessageDigest md=MessageDigest.getInstance(\"MD5\");\n byte[] messageDigest=md.digest(pass.getBytes());\n BigInteger num=new BigInteger(1,messageDigest);\n String hashText=num.toString(16);\n while(hashText.length()<32)\n {\n hashText=\"0\"+hashText;\n } \n return hashText; \n }\n catch(Exception e)\n { \n throw new RuntimeException(e);\n } \n }",
"public static void main(String[] args) throws NoSuchAlgorithmException, FileNotFoundException, IOException {\n \r\n String hash = \"F5D080D4F4E185DECA8A8B24F72408D9\";\r\n String [] keys = {\"9A1BA7F38A3E8D8F9DDD55972868CB3F\",\"17185CEF199E1C89804EDEE9DCDD1B90\",\"F5D080D4F4E185DECA8A8B24F72408D9\"};\r\n String password = \"NoSuchPassword\";\r\n File file = null;\r\n JFileChooser ff = new JFileChooser();\r\n int a = ff.showOpenDialog(null);\r\n if(a == JFileChooser.APPROVE_OPTION){\r\n try {\r\n file = ff.getSelectedFile();\r\n JOptionPane.showMessageDialog(ff, a);\r\n \r\n } catch (Exception ex) {\r\n ex.printStackTrace();\r\n } finally {\r\n System.out.println(file.getPath());\r\n }\r\n } \r\n BufferedReader fr = null;\r\n fr = new BufferedReader(new FileReader(file.getPath()));\r\n String line = null;\r\n int i = 0; \r\n //This is the funtion that Java implement in java.security.MessageDigest\r\n MessageDigest md5 = MessageDigest.getInstance(\"MD5\");\r\n while((line = fr.readLine()) != null){\r\n System.out.println(line);\r\n md5.update(line.getBytes());\r\n byte [] digests = md5.digest();\r\n String hashs = DatatypeConverter.printHexBinary(digests).toUpperCase();\r\n if(keys[i].equals(hashs)){\r\n System.out.println(\"CORRECT!\\nThe hash created is the same as the hash saved \");\r\n }\r\n else{\r\n System.out.println(\"ERROR!\\nThere was a mistake, the hash create doesn't mach the hash saved\");\r\n }\r\n i++;\r\n } \r\n fr.close();\r\n /**In conclusion we can use the MD5 for digest a words and then same them\r\n * is a DataBase, this with the function that if the DB is committed the\r\n * passwords will not be there\r\n */\r\n }",
"public ShareFileHttpHeaders setContentMd5(byte[] contentMd5) {\n this.contentMd5 = CoreUtils.clone(contentMd5);\n return this;\n }",
"public String getMD5ForGame(String gameId) {\n return \"TODO\";\n }",
"public static String md5(String message) {\n String digest = null;\n try {\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n byte[] hash = md.digest(message.getBytes(\"UTF-8\"));\n\n //converting byte array to HexadecimalString\n StringBuilder sb = new StringBuilder(2 * hash.length);\n for (byte b : hash) {\n sb.append(String.format(\"%02x\", b & 0xff));\n }\n digest = sb.toString();\n } catch (UnsupportedEncodingException ex) {\n log.error(\"UnsupportedEncodingException\",ex);\n } catch (NoSuchAlgorithmException ex) {\n log.error(\"NoSuchAlgorithmException\",ex);\n }\n\n return digest;\n }",
"protected String getFileETag(File file) {\n\t\tFileInputStream is = null;\n\t\ttry {\n\t\t\tis = new FileInputStream(file);\n\t\t\treturn \"\\\"\" + DigestUtils.md5Hex(is) + \"\\\"\";\n\t\t} catch (IOException e) {\n\t\t\treturn \"\";\n\t\t} finally {\n\t\t\tcloseQuietly(is);\n\t\t}\n\t}",
"private static byte[] m14295fl(String str) {\n try {\n MessageDigest instance = MessageDigest.getInstance(\"MD5\");\n if (instance == null) {\n return str.getBytes();\n }\n instance.update(str.getBytes());\n return instance.digest();\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n return str.getBytes();\n }\n }",
"protected String getMd5Hash(String token) {\n\n MessageDigest m;\n\t\ttry {\n\t\t\tm = MessageDigest.getInstance(\"MD5\");\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\tthrow new IllegalStateException(e);\n\t\t}\n m.update(token.getBytes());\n \n byte[] digest = m.digest();\n BigInteger bigInt = new BigInteger(1,digest);\n String hashtext = bigInt.toString(16);\n \n // Now we need to zero pad it if you actually want the full 32 chars.\n while(hashtext.length() < 32 ){\n hashtext = \"0\"+hashtext;\n }\n \n return hashtext;\n\t}",
"public static String toSHA1(String filename){\n\t\tMessageDigest md=null;\n\t\ttry{\n\t\t\tmd = MessageDigest.getInstance(\"SHA-1\");\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\ttry{\n\t\t\tFileInputStream in = new FileInputStream(filename);\n\t\t\tBufferedInputStream buffIn = new BufferedInputStream(in);\n\t\t\tDigestInputStream dis = new DigestInputStream(buffIn, md);\n\t\t\t\n\t\t\tFile f = new File(filename);\n\t\t\tLong fileSize = f.length();\n\t\t\t\n\t\t\tString blob = \"blob \" + fileSize.toString() + '\\0';\n\t\t\tmd.update(blob.getBytes());\n\t\t\t\t\t\t\n\t\t\t// read the file and update the hash calculation\n while (dis.read() != -1);\n\n // get the hash value as byte array\n byte[] hash = md.digest();\n\n return byteArray2Hex(hash);\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\t\n\t\treturn \"\";\n\t}",
"public static byte[] encryptMD5File(final String filePath) {\n File file = isSpace(filePath) ? null : new File(filePath);\n return encryptMD5File(file);\n }",
"public boolean IsFileMd5Equeal(UploadReport report) {\r\n\t\tString filename = this.conf.getFtpMountDirectory() + \"/DATA/\" + report.getFilename();\r\n\t\tString md5value = MD5Util.getFileMD5(new File(filename));\r\n\t\tFile file = new File(filename);\r\n\t\tif (file.exists()) {\r\n\t\t\tif (md5value.compareTo(report.getMd5value()) == 0) {\r\n\t\t\t\treturn true;\r\n\t\t\t} else {\r\n\t\t\t\tLogUtils.logger.error(\"Error happened when Caculate MD5 value, Original value: \" + report.getMd5value()\r\n\t\t\t\t\t\t+ \", New value : \" + md5value);\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tLogUtils.logger.error(\"Error happened when Caculate MD5 value, File: \" + filename + \" does not exist! \");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"public static String mySHA(String file) {\n\t\ttry {\n\t\t\t// java.security.MessageDigest digest = null;\n\t\t\t// digest = java.security.MessageDigest.getInstance(\"SHA-1\");\n\t\t\t// digest.reset();\n\t\t\t// digest.update(x.getBytes(\"UTF-8\"));\n\t\t\t// digest.update(x.getBytes(\"UTF-8\"));\n\t\t\t// return digest.digest();\n\t\t\tMessageDigest sha1 = MessageDigest.getInstance(\"SHA1\");\n\t\t\tFileInputStream fis = new FileInputStream(file);\n\n\t\t\tbyte[] data = new byte[1024];\n\t\t\tint read = 0;\n\t\t\twhile ((read = fis.read(data)) != -1) {\n\t\t\t\tsha1.update(data, 0, read);\n\t\t\t}\n\t\t\t;\n\t\t\tbyte[] hashBytes = sha1.digest();\n\n\t\t\tStringBuffer sb = new StringBuffer();\n\t\t\tfor (int i = 0; i < hashBytes.length; i++) {\n\t\t\t\tsb.append(Integer.toString((hashBytes[i] & 0xff) + 0x100, 16).substring(1));\n\t\t\t}\n\n\t\t\tString fileHash = sb.toString();\n\t\t\treturn fileHash;\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(e);\n\t\t\tString s = \"-1\";\n\t\t\treturn s;\n\t\t}\n\t}",
"public static String computeSHA(byte[] filebytes) throws NoSuchAlgorithmException {\r\n\t\tMessageDigest messageDigest = MessageDigest.getInstance(\"SHA-1\");\r\n\t\tbyte[] hash = messageDigest.digest(filebytes);\r\n\t\t\r\n\t\tFormatter formatter = new Formatter();\r\n\t\t\r\n\t\tfor (byte b : hash) {\r\n\t\t\tformatter.format(\"%02x\", b);\r\n\t\t}\r\n\t\t\r\n\t\treturn formatter.toString();\r\n\t}",
"public String getMD5Checksum(String pid, String dsName) throws FedoraException, IOException {\r\n try {\r\n return getDatastreamProperty(pid, dsName, DatastreamProfile.DatastreamProperty.DS_CHECKSUM);\r\n } catch (XPathExpressionException ex) {\r\n throw new FedoraException(ex);\r\n } catch (SAXException ex) {\r\n throw new FedoraException(ex);\r\n } catch (ParserConfigurationException ex) {\r\n throw new FedoraException(ex);\r\n }\r\n }",
"public String getHashsum(String file_name) {\n\t\t//\n\t\t// query database\n\t\t//\n\t\tCursor cursor = m_db.query(FILE_TABLE_NAME,\n\t\t\t\tnew String[] { FILE_FIELD_HASH_SUM }, FILE_FIELD_PATH + \"=?\",\n\t\t\t\tnew String[] { file_name }, null, null, null);\n\n\t\t//\n\t\t// get first entry of result set\n\t\t//\n\t\tString result = getFirstEntryOfResultSet(cursor);\n\n\t\t//\n\t\t// close cursor\n\t\t//\n\t\tcursor.close();\n\n\t\t//\n\t\t// done\n\t\t//\n\t\treturn result;\n\n\t}",
"java.lang.String getChecksum();",
"private static java.security.MessageDigest f() {\n /*\n r0 = \"MD5\";\n r1 = j;\n r0 = r0.equals(r1);\n if (r0 == 0) goto L_0x003a;\n L_0x000a:\n r0 = java.security.Security.getProviders();\n r1 = r0.length;\n r2 = 0;\n L_0x0010:\n if (r2 >= r1) goto L_0x003a;\n L_0x0012:\n r3 = r0[r2];\n r3 = r3.getServices();\n r3 = r3.iterator();\n L_0x001c:\n r4 = r3.hasNext();\n if (r4 == 0) goto L_0x0037;\n L_0x0022:\n r4 = r3.next();\n r4 = (java.security.Provider.Service) r4;\n r4 = r4.getAlgorithm();\n j = r4;\n r4 = j;\t Catch:{ NoSuchAlgorithmException -> 0x001c }\n r4 = java.security.MessageDigest.getInstance(r4);\t Catch:{ NoSuchAlgorithmException -> 0x001c }\n if (r4 == 0) goto L_0x001c;\n L_0x0036:\n return r4;\n L_0x0037:\n r2 = r2 + 1;\n goto L_0x0010;\n L_0x003a:\n r0 = 0;\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.koushikdutta.async.util.FileCache.f():java.security.MessageDigest\");\n }",
"public String getHashString()\n\t{\n\t\treturn md5.getHashString();\n\t}",
"public Builder setFileHash(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n fileHash_ = value;\n onChanged();\n return this;\n }",
"public Builder setFileHash(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n fileHash_ = value;\n onChanged();\n return this;\n }",
"public static String createMd5(String value)\r\n\t{ \r\n\t\ttry \r\n\t\t{\r\n\t\t\tMessageDigest md = MessageDigest.getInstance(\"MD5\");\t\t\t\r\n\t\t\tbyte[] hashInBytes = md.digest(value.getBytes(StandardCharsets.UTF_8));\r\n\t\t\tStringBuilder sb = new StringBuilder();\r\n\t for (byte b : hashInBytes) \r\n\t {\r\n\t sb.append(String.format(\"%02x\", b));\r\n\t }\r\n\t return sb.toString();\r\n\t\t}\r\n\t\tcatch(Exception ex)\r\n\t\t{\r\n\t\t\t\r\n\t\t}\r\n\t\treturn \"\";\r\n\t}",
"public static String hash(File remoteFsRoot) {\n logger.config(\"hash() invoked\");\n\n StringBuilder buf = new StringBuilder();\n try {\n buf.append(remoteFsRoot.getCanonicalPath()).append('\\n');\n } catch (IOException e) {\n logger.log(Level.FINER, \"hash() IOException - may be normal?\", e);\n buf.append(remoteFsRoot.getAbsolutePath()).append('\\n');\n }\n try {\n for (NetworkInterface ni : Collections.list(NetworkInterface.getNetworkInterfaces())) {\n for (InetAddress ia : Collections.list(ni.getInetAddresses())) {\n if (ia instanceof Inet4Address) {\n buf.append(ia.getHostAddress()).append('\\n');\n } else if (ia instanceof Inet6Address) {\n buf.append(ia.getHostAddress()).append('\\n');\n }\n }\n byte[] hardwareAddress = ni.getHardwareAddress();\n if (hardwareAddress != null) {\n buf.append(Arrays.toString(hardwareAddress));\n }\n }\n } catch (SocketException e) {\n // oh well we tried\n logger.log(Level.FINEST, \"hash() SocketException - 'oh well we tried'\", e);\n }\n return DigestUtils.md5Hex(buf.toString()).substring(0, 8);\n }",
"public static String getMD5(final File file) {\n if (file == null || !file.exists()) {\n return null;\n }\n\n FileInputStream fin = null;\n try {\n fin = new FileInputStream(file);\n String md5 = getMD5(fin);\n return md5;\n } catch (Exception e) {\n return null;\n } finally {\n closeQuietly(fin);\n }\n }",
"public static String getMd5(String input) {\n try {\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n\n byte[] messageDigest = md.digest(input.getBytes());\n\n BigInteger no = new BigInteger(1, messageDigest);\n\n String hashtext = no.toString(16);\n while (hashtext.length() < 32) {\n hashtext = \"0\" + hashtext;\n }\n return hashtext;\n } catch (NoSuchAlgorithmException e) {\n throw new RuntimeException(e);\n }\n }",
"public String getMD5(String txt){\n String md5output;\n md5output = txt;\n try {\n MessageDigest m = MessageDigest.getInstance(\"MD5\");\n m.reset();\n m.update(md5output.getBytes());\n byte[] digest = m.digest();\n BigInteger bigInt = new BigInteger(1,digest);\n md5output = bigInt.toString(16);\n } catch (Exception e) {\n md5output = null;\n } finally{\n return md5output;\n }\n \n }",
"private static byte[] generateMD5(String info) throws\n UnsupportedEncodingException, NoSuchAlgorithmException {\n byte[] inputData = info.getBytes(\"UTF-8\");\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n md.update(inputData);\n byte[] digest= md.digest();\n return digest;\n }",
"public String getHash(String str) throws Exception{\n\t\t\n\t\tMessageDigest md = MessageDigest.getInstance(\"MD5\");\n md.update(str.getBytes());\n \n byte byteData[] = md.digest();\n \n //convert the byte to hex format method 1\n StringBuffer sb = new StringBuffer();\n for (int i = 0; i < byteData.length; i++) {\n sb.append(Integer.toString((byteData[i] & 0xff) + 0x100, 16).substring(1));\n }\n \n String hex = sb.toString();\n System.out.println(hex);\n return hex; \n}",
"public static String getMD5(String s) {\n try {\n MessageDigest m = MessageDigest.getInstance(\"MD5\");\n m.update(s.getBytes(), 0, s.length());\n return \"\" + new BigInteger(1, m.digest()).toString(16);\n } catch (NoSuchAlgorithmException e) {\n logger.error(\"MD5 is not supported !!!\");\n }\n return s;\n }",
"public byte[] calc_hash(File filename)\r\n {\r\n\tint digest_length = 512;\r\n\tbyte message[] = new byte[digest_length];\r\n\tbyte key[] = new byte[0];\r\n\tMessageDigest sha;\r\n\tint message_size;\r\n\tlong file_size = 0;\r\n\r\n\ttry{\r\n\t sha = MessageDigest.getInstance(algorithm, provider);\r\n\r\n\t try{\r\n\t\t/* Read file into byte array, and use array to update hash key */\r\n\t\tFileInputStream fin = new FileInputStream(filename);\r\n\t\twhile((message_size = fin.read(message)) != -1)\r\n\t\t {\r\n\t\t\tif(message_size < digest_length)\r\n\t\t\t sha.update(message, 0, message_size);\r\n\t\t\telse\r\n\t\t\t sha.update(message);\r\n\t\t }\r\n\t\tfin.close();\r\n\r\n\t\tkey = sha.digest();\r\n\t }\r\n\t catch(IOException ioe){\r\n\t\tSystem.out.println(\"Error (calc_hash): Unable to open and read file \" + filename.getName());\r\n\t\tioe.printStackTrace();\r\n\t\treturn null;\r\n\t }\r\n\t}\r\n\tcatch(NoSuchAlgorithmException nae){\r\n\t System.out.println(\"Error (calc_hash): hash algorithm \" + algorithm + \" not found\");\r\n\t nae.printStackTrace();\r\n\t return null;\r\n\t}\r\n\tcatch(NoSuchProviderException npe){\r\n\t System.out.println(\"Error (calc_hash): Security provider \" + provider + \" not found\");\r\n\t npe.printStackTrace();\r\n\t return null;\r\n\t}\r\n\r\n\treturn key;\r\n }",
"public HashCode getInstallMD5() {\n return installMD5;\n }",
"public static String getStringMD5(String src) {\n\t\tMessageDigest messageDigest = null;\n\t\tbyte[] srcBytes = src.getBytes();\n\t\ttry {\n\t\t\tmessageDigest = MessageDigest.getInstance(\"MD5\");\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tmessageDigest.update(srcBytes, 0, srcBytes.length);\n\t\tBigInteger bigInt = new BigInteger(1, messageDigest.digest());\n\t\treturn bigInt.toString(16);\n\t}",
"public static byte[] encryptMD5(final byte[] data) {\n return hashTemplate(data, \"MD5\");\n }",
"public String md5(String s) {\n try {\n // Create MD5 Hash\n MessageDigest digest = java.security.MessageDigest.getInstance(\"MD5\");\n digest.update(s.getBytes());\n byte messageDigest[] = digest.digest();\n\n // Create Hex String\n StringBuffer hexString = new StringBuffer();\n for (int i = 0; i < messageDigest.length; i++)\n hexString.append(Integer.toHexString(0xFF & messageDigest[i]));\n return hexString.toString();\n\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n }\n return \"\";\n }",
"private static String md5(String str) {\n\n if (str == null) {\n return null;\n }\n\n MessageDigest messageDigest = null;\n\n try {\n messageDigest = MessageDigest.getInstance(HttpConf.signType);\n messageDigest.reset();\n messageDigest.update(str.getBytes(HttpConf.charset));\n } catch (NoSuchAlgorithmException e) {\n\n return str;\n } catch (UnsupportedEncodingException e) {\n return str;\n }\n\n byte[] byteArray = messageDigest.digest();\n\n StringBuffer md5StrBuff = new StringBuffer();\n\n for (int i = 0; i < byteArray.length; i++) {\n if (Integer.toHexString(0xFF & byteArray[i]).length() == 1) {\n md5StrBuff.append(\"0\").append(Integer.toHexString(0xFF & byteArray[i]));\n } else {\n md5StrBuff.append(Integer.toHexString(0xFF & byteArray[i]));\n }\n }\n\n return md5StrBuff.toString();\n }",
"private static void compareSha(String filename) {\n\n\t\tMessageDigest md = null;\n\n\t\ttry (InputStream is = new BufferedInputStream(new FileInputStream(filename))) {\n\n\t\t\tbyte[] data = new byte[4096];\n\t\t\tint nRead;\n\t\t\tmd = MessageDigest.getInstance(\"SHA-256\");\n\n\t\t\twhile ((nRead = is.read(data)) != -1) {\n\t\t\t\tmd.update(data, 0, nRead);\n\t\t\t}\n\n\t\t} catch (FileNotFoundException exc) {\n\t\t\tSystem.out.println(\n\t\t\t\t\t\"File does not exist, is a directory rather than a regular file, or cannot be opened for reading because of some other reason\");\n\t\t\tSystem.exit(1);\n\n\t\t} catch (IOException exc) {\n\t\t\tSystem.out.println(\"Input stream couldn't be initialized.\");\n\t\t\tSystem.exit(1);\n\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\tSystem.out.println(\"No provider supports a MessageDigestSpi implementation for the specified algorithm.\");\n\t\t\tSystem.exit(1);\n\t\t}\n\n\t\tString sha256Digest = Util.bytetohex(md.digest());\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tSystem.out.println(\"Please provide expected sha-256 digest for hw06part2.pdf: \");\n\t\tSystem.out.print(\">\");\n\t\tString expectedDigest = sc.nextLine();\n\t\tsc.close();\n\n\t\tif (sha256Digest.equals(expectedDigest)) {\n\t\t\tSystem.out.printf(\"Digesting completed. Digest of %s matches expected digest.\\n\", filename);\n\n\t\t} else {\n\t\t\tSystem.out.printf(\"Digesting completed. Digest of %s does not match the expected digest. Digest was: %s\\n\",\n\t\t\t\t\tfilename, sha256Digest);\n\t\t}\n\n\t}",
"private static String md5(final String s) {\n final String MD5 = \"MD5\";\n try {\n // Create MD5 Hash\n MessageDigest digest = java.security.MessageDigest\n .getInstance(MD5);\n digest.update(s.getBytes());\n byte messageDigest[] = digest.digest();\n\n // Create Hex String\n StringBuilder hexString = new StringBuilder();\n for (byte aMessageDigest : messageDigest) {\n String h = Integer.toHexString(0xFF & aMessageDigest);\n while (h.length() < 2)\n h = \"0\" + h;\n hexString.append(h);\n }\n return hexString.toString();\n\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n }\n return \"\";\n }",
"String getHash();",
"String getHash();",
"public MD5Hash(String s) {\n\t\tif(s.length() != 32) throw new IllegalArgumentException(\"Hash must have 32 characters\");\n\t\thashString = s;\n\t}",
"private String md5(String input) {\r\n\t\tString md5 = null;\r\n\t\tif (null == input)\r\n\t\t\treturn null;\r\n\r\n\t\ttry {\r\n\t\t\tMessageDigest digest = MessageDigest.getInstance(\"MD5\");\r\n\t\t\tdigest.update(input.getBytes(), 0, input.length());\r\n\t\t\tmd5 = new BigInteger(1, digest.digest()).toString(16);\r\n\t\t} catch (NoSuchAlgorithmException e) {\r\n\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn md5;\r\n\t}",
"private static String getKeyByMd5(String url) {\n String key;\n try {\n MessageDigest messageDigest = MessageDigest.getInstance(\"MD5\");\n messageDigest.update(url.getBytes());\n key = md5Encryption(messageDigest.digest());\n return key;\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n key = String.valueOf(url.hashCode());\n }\n return key;\n }",
"public static String md5(final String data) {\n return ByteString.encodeUtf8(data).md5().hex().toLowerCase();\n }",
"private String md5(final String s)\n\t{\n\t\ttry {\n\t\t\t// Create MD5 Hash\n\t\t\tMessageDigest digest = MessageDigest.getInstance(\"MD5\");\n\t\t\tdigest.update(s.getBytes());\n\t\t\tbyte messageDigest[] = digest.digest();\n\n\t\t\t// Create Hex String\n\t\t\tStringBuffer hexString = new StringBuffer();\n\t\t\tfor (int i=0; i<messageDigest.length; i++) {\n\t\t\t\tString h = Integer.toHexString(0xFF & messageDigest[i]);\n\t\t\t\twhile (h.length() < 2) h = \"0\" + h;\n\t\t\t\thexString.append(h);\n\t\t\t}\n\t\t\treturn hexString.toString();\n\t\t} catch(NoSuchAlgorithmException e) {\n\t\t\t//Logger.logStackTrace(TAG,e);\n\t\t}\n\t\treturn \"\";\n\t}",
"java.lang.String getHashData();",
"com.google.protobuf.ByteString getHash();",
"com.google.protobuf.ByteString getHash();",
"public static String hash(String data) {\n\t MessageDigest md;\n\t\ttry {\n\t\t\tmd = MessageDigest.getInstance(\"MD5\");\n\t\t md.update(data.getBytes());\n\t\t byte[] digest = md.digest();\n\t\t char[] HEX_ARRAY = \"0123456789ABCDEF\".toCharArray();\n\t char[] hexChars = new char[digest.length * 2];\n\t for (int j = 0; j < digest.length; j++) {\n\t int v = digest[j] & 0xFF;\n\t hexChars[j * 2] = HEX_ARRAY[v >>> 4];\n\t hexChars[j * 2 + 1] = HEX_ARRAY[v & 0x0F];\n\t }\n\t return new String(hexChars);\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n return null;\n\t}",
"public static String getMD5Hash(String string) {\r\n\t\tMessageDigest digest;\r\n\t\ttry {\r\n\t\t\tdigest = java.security.MessageDigest.getInstance(\"MD5\");\r\n\t\t\tdigest.update(string.getBytes());\r\n\t\t\tfinal byte[] hash = digest.digest();\r\n\t\t\tfinal StringBuilder result = new StringBuilder(hash.length);\r\n\t\t\tfor (int i = 0; i < hash.length; i++) {\r\n\t\t\t\tresult.append(Integer.toString((hash[i] & 0xff) + 0x100, 16)\r\n\t\t\t\t\t\t.substring(1));\r\n\t\t\t}\r\n\t\t\treturn result.toString();\r\n\t\t} catch (final NoSuchAlgorithmException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn \"error\";\r\n\t\t}\r\n\t}",
"int getHash();",
"public static String md5(String str) {\n MessageDigest messageDigest = null;\n try {\n messageDigest = MessageDigest.getInstance(\"MD5\");\n messageDigest.reset();\n messageDigest.update(str.getBytes(\"UTF-8\"));\n } catch (NoSuchAlgorithmException | UnsupportedEncodingException e) {\n // do nothing\n }\n byte[] byteArray = messageDigest.digest();\n StringBuffer md5StrBuff = new StringBuffer();\n for (int i = 0; i < byteArray.length; i++) {\n if (Integer.toHexString(0xFF & byteArray[i]).length() == 1)\n md5StrBuff.append(\"0\").append(Integer.toHexString(0xFF & byteArray[i]));\n else\n md5StrBuff.append(Integer.toHexString(0xFF & byteArray[i]));\n }\n return md5StrBuff.toString();\n }",
"private String md5(String message) throws java.security.NoSuchAlgorithmException\n\t{\n\t\tMessageDigest md5 = null;\n\t\ttry {\n\t\t\tmd5 = MessageDigest.getInstance(\"MD5\");\n\t\t}\n\t\tcatch (java.security.NoSuchAlgorithmException ex) {\n\t\t\tex.printStackTrace();\n\t\t\tthrow ex;\n\t\t}\n\t\tbyte[] dig = md5.digest((byte[]) message.getBytes());\n\t\tStringBuffer code = new StringBuffer();\n\t\tfor (int i = 0; i < dig.length; ++i)\n\t\t{\n\t\t\tcode.append(Integer.toHexString(0x0100 + (dig[i] & 0x00FF)).substring(1));\n\t\t}\n\t\treturn code.toString();\n\t}",
"public static String hash(String in) {\r\n\t\treturn DigestUtils.md5Hex(in.getBytes());\r\n\t}",
"public static String getFileChecksum(File file) {\n return getFileChecksum(file, true);\n }"
] |
[
"0.7800426",
"0.7483837",
"0.745395",
"0.73832744",
"0.7380369",
"0.72531235",
"0.72531235",
"0.71196264",
"0.7082408",
"0.7062036",
"0.7048478",
"0.7031023",
"0.70060116",
"0.69423705",
"0.6941836",
"0.6911277",
"0.6899666",
"0.68789035",
"0.67872053",
"0.6573226",
"0.6517764",
"0.6462793",
"0.64626735",
"0.64483845",
"0.63890666",
"0.63889164",
"0.637664",
"0.6344204",
"0.6328337",
"0.63156193",
"0.62790745",
"0.62778276",
"0.62544405",
"0.62272245",
"0.622478",
"0.62095225",
"0.6189183",
"0.618581",
"0.6150319",
"0.61447257",
"0.6133792",
"0.61083305",
"0.61080337",
"0.6107677",
"0.6082222",
"0.6078524",
"0.6063569",
"0.60347885",
"0.6032613",
"0.6018872",
"0.5967777",
"0.59409916",
"0.5930955",
"0.59301263",
"0.59198403",
"0.59154654",
"0.58731323",
"0.58727765",
"0.5865943",
"0.58636516",
"0.58328414",
"0.58306295",
"0.58288914",
"0.5823926",
"0.5822736",
"0.5820728",
"0.58198696",
"0.58198696",
"0.5814811",
"0.5810591",
"0.5802849",
"0.5767336",
"0.57649535",
"0.57357484",
"0.5735534",
"0.5722977",
"0.5713615",
"0.5705999",
"0.5685397",
"0.5664443",
"0.5657681",
"0.56380135",
"0.5635169",
"0.56317455",
"0.56283534",
"0.56283534",
"0.5621572",
"0.5617056",
"0.56170446",
"0.5608373",
"0.5608194",
"0.5602473",
"0.55986595",
"0.55986595",
"0.5591306",
"0.5573595",
"0.5569579",
"0.5567024",
"0.55646014",
"0.5549714",
"0.553195"
] |
0.0
|
-1
|
.Status status = 1;
|
int getStatusValue();
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setStatus(String status) { this.status = status; }",
"void setStatus(STATUS status);",
"public void setStatus(EnumVar status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\r\n\t this.status = status;\r\n\t }",
"public void setStatus(Integer status) {\r\n this.status = status;\r\n }",
"public void setStatus(Integer status) {\r\n this.status = status;\r\n }",
"void setStatus(int status);",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(int status){\r\n\t\tthis.status=status;\r\n\t}",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(int status);",
"public void setStatus(int status);",
"public void setStatus(Boolean s){ status = s;}",
"public void setStatus(int status) {\n STATUS = status;\n }",
"public void setStatus(Status newStatus){\n status = newStatus;\n }",
"public void setStatus(String stat)\n {\n status = stat;\n }",
"private void setStatus(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n status_ = value;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(long status) {\r\n this.status = status;\r\n }",
"public void setStatus(Integer status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(Integer status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(String status) {\r\n this.status = status;\r\n }",
"public void setStatus(java.lang.Object status) {\n this.status = status;\n }",
"public void setStatus(Status status)\n {\n this.status = status;\n }",
"public void setgetStatus()\r\n\t{\r\n\t\tthis.status = 'S';\r\n\t}",
"public void setStatus(Byte status) {\r\n\t\tthis.status = status;\r\n\t}",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"@Override\n\t\tpublic void setStatus(int status) {\n\t\t\t\n\t\t}",
"public void setStatus(StatusEnum status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(Byte status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(int status) {\n this.status = status;\n }",
"public void setStatus(int status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\r\n this.status = status;\r\n }",
"public void setStatus(String status) {\r\n this.status = status;\r\n }",
"public void setStatus(String status) {\r\n this.status = status;\r\n }",
"public void setStatus(Short status) {\n this.status = status;\n }",
"public void setStatus(STATUS status) {\n this.status = status;\n }",
"void setStatus(String status);",
"public void setStatus(Short status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(Short status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(int v) \n {\n \n if (this.status != v)\n {\n this.status = v;\n setModified(true);\n }\n \n \n }",
"public void setStatus( Short status ) {\n this.status = status;\n }",
"public void setStatus(String newStatus){\n\n //assigns the value of newStatus to the status field\n this.status = newStatus;\n }",
"public Status getStatus(){\n return status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\n this.status = status;\n }"
] |
[
"0.7656765",
"0.76468766",
"0.7565312",
"0.7561203",
"0.75449044",
"0.75449044",
"0.75349724",
"0.74959093",
"0.74959093",
"0.74959093",
"0.74959093",
"0.74959093",
"0.74959093",
"0.74959093",
"0.7482147",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.74783385",
"0.74783385",
"0.746719",
"0.74658287",
"0.746098",
"0.7456925",
"0.7452718",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435248",
"0.7432568",
"0.7432568",
"0.7425985",
"0.74143654",
"0.74118876",
"0.7398544",
"0.7398282",
"0.73973185",
"0.73973185",
"0.7396562",
"0.73950607",
"0.7392215",
"0.7392215",
"0.7382456",
"0.7382456",
"0.7378742",
"0.73726434",
"0.73726434",
"0.7368736",
"0.73626804",
"0.7351154",
"0.7345713",
"0.7345713",
"0.73451585",
"0.7332328",
"0.7329264",
"0.73258084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.728639",
"0.728639",
"0.728639"
] |
0.0
|
-1
|
.Status status = 1;
|
entities.Torrent.Status getStatus();
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setStatus(String status) { this.status = status; }",
"void setStatus(STATUS status);",
"public void setStatus(EnumVar status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\r\n\t this.status = status;\r\n\t }",
"public void setStatus(Integer status) {\r\n this.status = status;\r\n }",
"public void setStatus(Integer status) {\r\n this.status = status;\r\n }",
"void setStatus(int status);",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(int status){\r\n\t\tthis.status=status;\r\n\t}",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(int status);",
"public void setStatus(int status);",
"public void setStatus(Boolean s){ status = s;}",
"public void setStatus(int status) {\n STATUS = status;\n }",
"public void setStatus(Status newStatus){\n status = newStatus;\n }",
"public void setStatus(String stat)\n {\n status = stat;\n }",
"private void setStatus(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n status_ = value;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(long status) {\r\n this.status = status;\r\n }",
"public void setStatus(Integer status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(Integer status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(String status) {\r\n this.status = status;\r\n }",
"public void setStatus(java.lang.Object status) {\n this.status = status;\n }",
"public void setStatus(Status status)\n {\n this.status = status;\n }",
"public void setgetStatus()\r\n\t{\r\n\t\tthis.status = 'S';\r\n\t}",
"public void setStatus(Byte status) {\r\n\t\tthis.status = status;\r\n\t}",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"@Override\n\t\tpublic void setStatus(int status) {\n\t\t\t\n\t\t}",
"public void setStatus(StatusEnum status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(Byte status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(int status) {\n this.status = status;\n }",
"public void setStatus(int status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\r\n this.status = status;\r\n }",
"public void setStatus(String status) {\r\n this.status = status;\r\n }",
"public void setStatus(String status) {\r\n this.status = status;\r\n }",
"public void setStatus(Short status) {\n this.status = status;\n }",
"public void setStatus(STATUS status) {\n this.status = status;\n }",
"void setStatus(String status);",
"public void setStatus(Short status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(Short status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(int v) \n {\n \n if (this.status != v)\n {\n this.status = v;\n setModified(true);\n }\n \n \n }",
"public void setStatus( Short status ) {\n this.status = status;\n }",
"public void setStatus(String newStatus){\n\n //assigns the value of newStatus to the status field\n this.status = newStatus;\n }",
"public Status getStatus(){\n return status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\n this.status = status;\n }"
] |
[
"0.7656765",
"0.76468766",
"0.7565312",
"0.7561203",
"0.75449044",
"0.75449044",
"0.75349724",
"0.74959093",
"0.74959093",
"0.74959093",
"0.74959093",
"0.74959093",
"0.74959093",
"0.74959093",
"0.7482147",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.74783385",
"0.74783385",
"0.746719",
"0.74658287",
"0.746098",
"0.7456925",
"0.7452718",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435248",
"0.7432568",
"0.7432568",
"0.7425985",
"0.74143654",
"0.74118876",
"0.7398544",
"0.7398282",
"0.73973185",
"0.73973185",
"0.7396562",
"0.73950607",
"0.7392215",
"0.7392215",
"0.7382456",
"0.7382456",
"0.7378742",
"0.73726434",
"0.73726434",
"0.7368736",
"0.73626804",
"0.7351154",
"0.7345713",
"0.7345713",
"0.73451585",
"0.7332328",
"0.7329264",
"0.73258084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.728639",
"0.728639",
"0.728639"
] |
0.0
|
-1
|
string errorMessage = 2;
|
java.lang.String getErrorMessage();
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"String errorMessage();",
"private void error(String string) {\n\t\r\n}",
"String getErrorMessage();",
"String getErrorMessage();",
"String getError(int i) {\n if (i >= 0 & i < msgs.length)\n return msgs[i];\n else\n return \"Invalid Error Code\";\n }",
"java.lang.String getError();",
"java.lang.String getError();",
"java.lang.String getError();",
"void showErrorMsg(String string);",
"String getGetErrorMessage();",
"java.lang.String getErr();",
"public String getErrorString()\r\n\t{\r\n\t\t\r\n\t\treturn ERROR_STRING;\r\n\t}",
"public void error(String string) {\n\t\t\n\t}",
"String getInvalidMessage();",
"private static String getMessage(int code) {\n switch (code) {\n case ME_DIV_BY_ZERO:\n return \"Attempt to divide by zero.\";\n case ME_ASSIGNLITERAL:\n return \"Attempt to assign to a literal.\";\n case ME_NONVARASSIGN:\n return \"Attempt to assign to a non-variable.\";\n default:\n return \"Unknown error.\";\n }\n }",
"String getErrorsString();",
"public String error();",
"public String getError() {\n\treturn mistake;\n }",
"private String getErrorString() {\n\t\treturn \"GUID:ERROR:\" + mErrors[0][0]\n\t\t + \":\" + mErrors[1][0]\n\t\t + \":\" + mErrors[2][0]\n\t\t + \":\" + mErrors[3][0];\n\t}",
"public String getErrorMessage() \r\n\t{\r\n\t\t\r\n\t\treturn errorMessage;\r\n\t\t\r\n\t}",
"public java.lang.String getErrorMessage(){\n return localErrorMessage;\n }",
"java.lang.String getErrmsg();",
"public String getErrorString()\n\t{\n\t\treturn errorString;\n\t}",
"public static String getLastErrorMessage()\r\n\t{\n\t\treturn lastAlert;\r\n\t}",
"String getMessage();",
"String getMessage();",
"String getMessage();",
"private int getErrorId(final String message) {\n\t\tif (isLowerCase(message)) {\n\t\t\treturn ERROR_LOWER_CASE;\n\t\t} else if (isUnunsedMacro(message)) {\n\t\t\treturn ERROR_UNUSED_MACRO;\n\t\t} else if (isUnunsedVariable(message)) {\n\t\t\treturn ERROR_UNUSED_VARIABLE;\n\t\t} else if (isEndLineSpace(message) || isNoSpace(message)) {\n\t\t\treturn ERROR_NO_SPACE;\n\t\t} else if (isOneSpace(message)) {\n\t\t\treturn ERROR_ONE_SPACE;\n\t\t} else {\n\t\t\treturn ERROR_INVALID;\n\t\t}\n\t}",
"public String getErrorString(String message) {\n \t\treturn getString(new StringBuffer(\"error.\").append(message).toString());\n \t}",
"String getErrorMessage(E input);",
"public String errorMessage()\n {\n return new String(errorMessageAsBytes());\n }",
"String Message ();",
"public String errorMessage() {\n return errorMessage;\n }",
"void SemErr(String str);",
"public String getErrorMessage()\n {\n return errorMessage;\n }",
"ErrorCodes(int code){\n this.code = code;\n //this.message = message;\n }",
"int getErrorCode();",
"public String getErrorCode();",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n errorMessage_ = s;\n }\n return s;\n }\n }",
"void showError(@StringRes int errorMessage);",
"void showError(String errorMessage);",
"private static int getErrorLine(String errmsg){\n\t\treturn Integer.parseInt(errmsg.substring(0,errmsg.indexOf(\":\")).substring(errmsg.substring(0,errmsg.indexOf(\":\")).lastIndexOf(\" \")+1));\n\t}",
"public String errorMessage()\n {\n return edma_errorMsg;\n }",
"public String getErrorMessage() {\r\n return this.errorMessage;\r\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public String errorMessage() {\n return this.errorMessage;\n }",
"public String getErrorMessage() {\n\t\treturn errorMessage;\n\t}",
"public int getError() {\n return error;\n }",
"public String getErrorMessage() {\n return this.errorMessage;\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"void setErrorMessage(String errorMessage);",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"static int errorMsg(int eCode)\n {\n if (eCode == 0) return 0;\n String message = \"\";\n switch (eCode){\n case 1: message = \"Division by zero\"; break;\n case 2: message = \"Non-matching parenthesis in function\"; break;\n case 3: message = \"Must enclose negative exponents in parentheses\"; break;\n case 4: message = \"Incorrect Operator Syntax\"; break;\n case 5: message = \"Rightfunctions must use parenthesis. (example: ABS(-2);\"; break;\n case 6: message = \"Unrecognized token in function srtring.\"; break;\n case 8: message = \"Can not raise negative number to a fractional power.\"; break;\n case 10:message = \"Input a real number with no operators\"; break;\n }\n JOptionPane.showMessageDialog(null, message, \"Error \"+eCode, JOptionPane.ERROR_MESSAGE);\n return 0;\n }",
"public String getError() {\n return errMsg;\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n }\n }",
"public String getMsgError() {\r\n\t\treturn msgError;\r\n\t}",
"public String getErrorMessage() {\n return errorMessage;\n }",
"public String getErrorMessage() {\n return errorMessage;\n }",
"public String getErrorMessage() {\n return errorMessage;\n }",
"String getFailureMessage();",
"public int error() {\n return this.error;\n }",
"public String getParseErrorMessage();",
"public String getErrorMessage() {\n return ERROR_MESSAGE;\n }",
"public String getError() {\r\n if (scriptError == null) return \"\";\r\n return scriptError;\r\n }",
"private String getGUIErrorMsg(long errorcode) {\n\t\tif (errorcode == 0) {\n\t\t\treturn \"This popup shouldn't have launched!\";\n\t\t} else if (errorcode == 9) {\n\t\t\treturn \"Latitude input format incorrect!\\nValid Latitude values are -90 to 90 with negative values being south Latitude.\";\n\t\t} else if (errorcode == 10) {\n\t\t\treturn \"Longitude input format incorrect!\\nValid Longitude values are -180 to 180 with negative values being west latitude.\";\n\t\t} else if (errorcode == 11) {\n\t\t\treturn \"Date input format incorrect!\\nValid dates go <year>-<month>-<day>\\nValid month values are 1- 12 and valid day values are 1 - 31.\";\n\t\t} else if (errorcode == 12) {\n\t\t\treturn \"Time input format incorrect!\\nValid times go <hour>-<minute>-<second>\\nValid hour values are 0 - 23 and valid minute and second values are 0 - 59\";\n\t\t} else if (errorcode == 1) {\n\t\t\treturn \"Invalid latitude!\\nValid Latitude values are -90 to 90 with negative values being south Latitude.\";\n\t\t} else if (errorcode == 2) {\n\t\t\treturn \"Invalid Longitude!\\nValid Longitude values are -180 to 180 with negative values being west latitude.\";\n\t\t} else if (errorcode == 3) {\n\t\t\treturn \"Invalid Year!\\nValid year values are \" + Integer.MIN_VALUE + \" - \" + Integer.MAX_VALUE + \".\";\n\t\t} else if (errorcode == 4) {\n\t\t\treturn \"Invalid Month!\\nValid month values are 1 - 12\";\n\t\t} else if (errorcode == 5) {\n\t\t\treturn \"Invalid Day!\\nValid day values are 1 - 31\";\n\t\t} else if (errorcode == 6) {\n\t\t\treturn \"Invalid Hour!\\nValid hour values are 0 - 23\";\n\t\t} else if (errorcode == 7) {\n\t\t\treturn \"Invalid Minute!\\nValid minute values are 0 - 59\";\n\t\t} else if (errorcode == 8) {\n\t\t\treturn \"Invalid Second!\\nValid second values are 0 - 59\";\n\t\t} \n\t\treturn \"Undefined Error Message!\";\n\t}",
"public void setErrorMsg(String text) {\n this.errorMsg = text;\n }",
"public int getErrorNo() {\n return this.errorNo;\n }",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();"
] |
[
"0.7234827",
"0.68487597",
"0.68242407",
"0.68242407",
"0.66320926",
"0.6613902",
"0.6613902",
"0.6613902",
"0.6587221",
"0.6458624",
"0.642881",
"0.6387629",
"0.6339448",
"0.63337046",
"0.6318866",
"0.6310054",
"0.6266495",
"0.6207546",
"0.6169787",
"0.6162002",
"0.61556125",
"0.61209476",
"0.6114965",
"0.61042917",
"0.60988075",
"0.60988075",
"0.60988075",
"0.60916275",
"0.60737956",
"0.6044167",
"0.60035205",
"0.59917176",
"0.59845275",
"0.59643966",
"0.5963419",
"0.59538627",
"0.5917793",
"0.58881736",
"0.58858836",
"0.5880861",
"0.58786815",
"0.5865479",
"0.5863698",
"0.5842632",
"0.583974",
"0.583974",
"0.583974",
"0.583974",
"0.583974",
"0.583974",
"0.583974",
"0.58391654",
"0.58391654",
"0.58391654",
"0.5837601",
"0.5828023",
"0.58268774",
"0.58249444",
"0.5820853",
"0.5818837",
"0.5808825",
"0.5808012",
"0.5803665",
"0.57976645",
"0.5796016",
"0.57934284",
"0.57934284",
"0.57934284",
"0.5786855",
"0.57868457",
"0.5785435",
"0.578205",
"0.576942",
"0.57514906",
"0.57502955",
"0.5743453",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053"
] |
0.65931696
|
15
|
string errorMessage = 2;
|
com.google.protobuf.ByteString
getErrorMessageBytes();
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"String errorMessage();",
"private void error(String string) {\n\t\r\n}",
"String getErrorMessage();",
"String getErrorMessage();",
"String getError(int i) {\n if (i >= 0 & i < msgs.length)\n return msgs[i];\n else\n return \"Invalid Error Code\";\n }",
"java.lang.String getError();",
"java.lang.String getError();",
"java.lang.String getError();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"void showErrorMsg(String string);",
"String getGetErrorMessage();",
"java.lang.String getErr();",
"public String getErrorString()\r\n\t{\r\n\t\t\r\n\t\treturn ERROR_STRING;\r\n\t}",
"public void error(String string) {\n\t\t\n\t}",
"String getInvalidMessage();",
"private static String getMessage(int code) {\n switch (code) {\n case ME_DIV_BY_ZERO:\n return \"Attempt to divide by zero.\";\n case ME_ASSIGNLITERAL:\n return \"Attempt to assign to a literal.\";\n case ME_NONVARASSIGN:\n return \"Attempt to assign to a non-variable.\";\n default:\n return \"Unknown error.\";\n }\n }",
"String getErrorsString();",
"public String error();",
"public String getError() {\n\treturn mistake;\n }",
"private String getErrorString() {\n\t\treturn \"GUID:ERROR:\" + mErrors[0][0]\n\t\t + \":\" + mErrors[1][0]\n\t\t + \":\" + mErrors[2][0]\n\t\t + \":\" + mErrors[3][0];\n\t}",
"public String getErrorMessage() \r\n\t{\r\n\t\t\r\n\t\treturn errorMessage;\r\n\t\t\r\n\t}",
"public java.lang.String getErrorMessage(){\n return localErrorMessage;\n }",
"java.lang.String getErrmsg();",
"public String getErrorString()\n\t{\n\t\treturn errorString;\n\t}",
"public static String getLastErrorMessage()\r\n\t{\n\t\treturn lastAlert;\r\n\t}",
"String getMessage();",
"String getMessage();",
"String getMessage();",
"private int getErrorId(final String message) {\n\t\tif (isLowerCase(message)) {\n\t\t\treturn ERROR_LOWER_CASE;\n\t\t} else if (isUnunsedMacro(message)) {\n\t\t\treturn ERROR_UNUSED_MACRO;\n\t\t} else if (isUnunsedVariable(message)) {\n\t\t\treturn ERROR_UNUSED_VARIABLE;\n\t\t} else if (isEndLineSpace(message) || isNoSpace(message)) {\n\t\t\treturn ERROR_NO_SPACE;\n\t\t} else if (isOneSpace(message)) {\n\t\t\treturn ERROR_ONE_SPACE;\n\t\t} else {\n\t\t\treturn ERROR_INVALID;\n\t\t}\n\t}",
"public String getErrorString(String message) {\n \t\treturn getString(new StringBuffer(\"error.\").append(message).toString());\n \t}",
"String getErrorMessage(E input);",
"public String errorMessage()\n {\n return new String(errorMessageAsBytes());\n }",
"String Message ();",
"public String errorMessage() {\n return errorMessage;\n }",
"void SemErr(String str);",
"public String getErrorMessage()\n {\n return errorMessage;\n }",
"ErrorCodes(int code){\n this.code = code;\n //this.message = message;\n }",
"int getErrorCode();",
"public String getErrorCode();",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n errorMessage_ = s;\n }\n return s;\n }\n }",
"void showError(@StringRes int errorMessage);",
"void showError(String errorMessage);",
"private static int getErrorLine(String errmsg){\n\t\treturn Integer.parseInt(errmsg.substring(0,errmsg.indexOf(\":\")).substring(errmsg.substring(0,errmsg.indexOf(\":\")).lastIndexOf(\" \")+1));\n\t}",
"public String errorMessage()\n {\n return edma_errorMsg;\n }",
"public String getErrorMessage() {\r\n return this.errorMessage;\r\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public String errorMessage() {\n return this.errorMessage;\n }",
"public String getErrorMessage() {\n\t\treturn errorMessage;\n\t}",
"public int getError() {\n return error;\n }",
"public String getErrorMessage() {\n return this.errorMessage;\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"void setErrorMessage(String errorMessage);",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"static int errorMsg(int eCode)\n {\n if (eCode == 0) return 0;\n String message = \"\";\n switch (eCode){\n case 1: message = \"Division by zero\"; break;\n case 2: message = \"Non-matching parenthesis in function\"; break;\n case 3: message = \"Must enclose negative exponents in parentheses\"; break;\n case 4: message = \"Incorrect Operator Syntax\"; break;\n case 5: message = \"Rightfunctions must use parenthesis. (example: ABS(-2);\"; break;\n case 6: message = \"Unrecognized token in function srtring.\"; break;\n case 8: message = \"Can not raise negative number to a fractional power.\"; break;\n case 10:message = \"Input a real number with no operators\"; break;\n }\n JOptionPane.showMessageDialog(null, message, \"Error \"+eCode, JOptionPane.ERROR_MESSAGE);\n return 0;\n }",
"public String getError() {\n return errMsg;\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n }\n }",
"public String getMsgError() {\r\n\t\treturn msgError;\r\n\t}",
"public String getErrorMessage() {\n return errorMessage;\n }",
"public String getErrorMessage() {\n return errorMessage;\n }",
"public String getErrorMessage() {\n return errorMessage;\n }",
"String getFailureMessage();",
"public int error() {\n return this.error;\n }",
"public String getParseErrorMessage();",
"public String getErrorMessage() {\n return ERROR_MESSAGE;\n }",
"public String getError() {\r\n if (scriptError == null) return \"\";\r\n return scriptError;\r\n }",
"private String getGUIErrorMsg(long errorcode) {\n\t\tif (errorcode == 0) {\n\t\t\treturn \"This popup shouldn't have launched!\";\n\t\t} else if (errorcode == 9) {\n\t\t\treturn \"Latitude input format incorrect!\\nValid Latitude values are -90 to 90 with negative values being south Latitude.\";\n\t\t} else if (errorcode == 10) {\n\t\t\treturn \"Longitude input format incorrect!\\nValid Longitude values are -180 to 180 with negative values being west latitude.\";\n\t\t} else if (errorcode == 11) {\n\t\t\treturn \"Date input format incorrect!\\nValid dates go <year>-<month>-<day>\\nValid month values are 1- 12 and valid day values are 1 - 31.\";\n\t\t} else if (errorcode == 12) {\n\t\t\treturn \"Time input format incorrect!\\nValid times go <hour>-<minute>-<second>\\nValid hour values are 0 - 23 and valid minute and second values are 0 - 59\";\n\t\t} else if (errorcode == 1) {\n\t\t\treturn \"Invalid latitude!\\nValid Latitude values are -90 to 90 with negative values being south Latitude.\";\n\t\t} else if (errorcode == 2) {\n\t\t\treturn \"Invalid Longitude!\\nValid Longitude values are -180 to 180 with negative values being west latitude.\";\n\t\t} else if (errorcode == 3) {\n\t\t\treturn \"Invalid Year!\\nValid year values are \" + Integer.MIN_VALUE + \" - \" + Integer.MAX_VALUE + \".\";\n\t\t} else if (errorcode == 4) {\n\t\t\treturn \"Invalid Month!\\nValid month values are 1 - 12\";\n\t\t} else if (errorcode == 5) {\n\t\t\treturn \"Invalid Day!\\nValid day values are 1 - 31\";\n\t\t} else if (errorcode == 6) {\n\t\t\treturn \"Invalid Hour!\\nValid hour values are 0 - 23\";\n\t\t} else if (errorcode == 7) {\n\t\t\treturn \"Invalid Minute!\\nValid minute values are 0 - 59\";\n\t\t} else if (errorcode == 8) {\n\t\t\treturn \"Invalid Second!\\nValid second values are 0 - 59\";\n\t\t} \n\t\treturn \"Undefined Error Message!\";\n\t}",
"public void setErrorMsg(String text) {\n this.errorMsg = text;\n }",
"public int getErrorNo() {\n return this.errorNo;\n }",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();"
] |
[
"0.7234827",
"0.68487597",
"0.68242407",
"0.68242407",
"0.66320926",
"0.6613902",
"0.6613902",
"0.6613902",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.6587221",
"0.6458624",
"0.642881",
"0.6387629",
"0.6339448",
"0.63337046",
"0.6318866",
"0.6310054",
"0.6266495",
"0.6207546",
"0.6169787",
"0.6162002",
"0.61556125",
"0.61209476",
"0.6114965",
"0.61042917",
"0.60988075",
"0.60988075",
"0.60988075",
"0.60916275",
"0.60737956",
"0.6044167",
"0.60035205",
"0.59917176",
"0.59845275",
"0.59643966",
"0.5963419",
"0.59538627",
"0.5917793",
"0.58881736",
"0.58858836",
"0.5880861",
"0.58786815",
"0.5865479",
"0.5863698",
"0.5842632",
"0.583974",
"0.583974",
"0.583974",
"0.583974",
"0.583974",
"0.583974",
"0.583974",
"0.58391654",
"0.58391654",
"0.58391654",
"0.5837601",
"0.5828023",
"0.58268774",
"0.58249444",
"0.5820853",
"0.5818837",
"0.5808825",
"0.5808012",
"0.5803665",
"0.57976645",
"0.5796016",
"0.57934284",
"0.57934284",
"0.57934284",
"0.5786855",
"0.57868457",
"0.5785435",
"0.578205",
"0.576942",
"0.57514906",
"0.57502955",
"0.5743453",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053"
] |
0.0
|
-1
|
File content bytes data = 3;
|
com.google.protobuf.ByteString getData();
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"byte[] getData();",
"byte[] getData();",
"byte[] getData();",
"byte[] getData();",
"public void getFile(byte[] data, String name,String server) throws RemoteException;",
"byte[] getByteContent() throws IOException;",
"public ByteBuffer getFileData() {\n\t\treturn fileData;\n\t}",
"byte[] getContent();",
"byte[] getContent() throws IOException;",
"public byte[] getData();",
"public File getDataFile();",
"byte[] readBytes();",
"public byte[] getFilecontent() {\n return filecontent;\n }",
"public void OnFileDataReceived(byte[] data,int read, int length, int downloaded);",
"public FileChunkReference getFileData() {\n return fileData;\n }",
"byte getBlockData();",
"private byte[] getContent(File f) {\n byte[] content = null;\n\n try {\n FileInputStream fis = new FileInputStream(f);\n byte[] temp = new byte[fis.available()];\n fis.read(temp);\n fis.close();\n content = temp;\n } catch (IOException e) {\n System.err.println(e.getMessage());\n }\n\n return content;\n }",
"public byte[] getContent();",
"public FileHandler(byte[] data) {\n this.data = data;\n }",
"public ByteBuffer filedata(int pos) throws IOException\n {\n ByteBuffer buf = ByteBuffer.allocate(1024);\n \t buf.order(ByteOrder.LITTLE_ENDIAN);\n \t byte[] bytes = new byte[1024];\n f.seek(1024*pos);\n \t f.read(bytes);\n \t buf.put(bytes);\n \t return buf;\n }",
"public static byte[] readId3V1Data(File file) {\n\t\tfinal byte[] buffer = new byte[128];\n\t\ttry (RandomAccessFile mp3File = new RandomAccessFile(file, \"r\")) {\n\t\t\tmp3File.seek(mp3File.length() - 128);\n\t\t\tmp3File.read(buffer, 0, 128);\n\t\t} catch (FileNotFoundException e) {\n\n\t\t} catch (IOException e) {\n\n\t\t}\n\t\treturn buffer;\n\t}",
"public byte[] getFileContent() throws IOException {\n if (data != null) {\n return data;\n }\n if (tempFile != null) {\n return FileUtil.readBytes(tempFile);\n }\n return null;\n }",
"FileObject getFile();",
"FileObject getFile();",
"public byte[] getFileBytes(){\n\t\treturn fileBytes;\n\t}",
"public void getData() {\n\t\tContext context = getApplicationContext();\n\t\tint ch;\n\t\tStringBuffer fileContent = new StringBuffer(\"\");\n\t\tFileInputStream fis;\n\t\ttry {\n\t\t\tfis = context.openFileInput(filename);\n\t\t\ttry {\n\t\t\t\twhile ((ch = fis.read()) != -1)\n\n\t\t\t\t\tfileContent.append((char) ch);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tdata = new String(fileContent);\n\n\t}",
"public byte getData() {\n return data;\n }",
"public final ByteBlock getData() { return data; }",
"byte[] getFile(String sha) throws Exception;",
"void mo12945a(Data data) throws IOException;",
"public byte[] read();",
"com.google.protobuf.ByteString getData(int index);",
"com.google.protobuf.ByteString getData(int index);",
"public void data(byte[] data, int count);",
"@Nullable\n public abstract byte[] getContent() throws IOException;",
"void mo18920a(Data data) throws IOException;",
"File getFile();",
"File getFile();",
"byte[] getBytes();",
"byte[] getBytes();",
"public byte getData() {\n return this.data;\n }",
"public void onDataRecieved(byte data[]);",
"public byte[] getFile() {\n return file;\n }",
"private int readFdocaOneByte() {\n checkForSplitRowAndComplete(1);\n //return dataBuffer_[position_++] & 0xff;\n return dataBuffer_.readUnsignedByte();\n }",
"public byte[] getData()\r\n/* 18: */ {\r\n/* 19:59 */ byte[] data = new byte[4];\r\n/* 20: */ \r\n/* 21:61 */ IntegerHelper.getTwoBytes(this.xfIndex, data, 0); int \r\n/* 22: */ \r\n/* 23: */ \r\n/* 24:64 */ tmp15_14 = 1; byte[] tmp15_13 = data;tmp15_13[tmp15_14] = ((byte)(tmp15_13[tmp15_14] | 0x80));\r\n/* 25: */ \r\n/* 26:66 */ data[2] = ((byte)this.styleNumber);\r\n/* 27: */ \r\n/* 28: */ \r\n/* 29:69 */ data[3] = -1;\r\n/* 30: */ \r\n/* 31:71 */ return data;\r\n/* 32: */ }",
"private byte[] readFdocaBytes(int length) {\n\n checkForSplitRowAndComplete(length);\n\n byte[] b = new byte[length];\n dataBuffer_.readBytes(b);\n// System.arraycopy(dataBuffer_, position_, b, 0, length);\n// position_ += length;\n//\n return b;\n }",
"@Column(name = \"FILE_CONTENT\" )\n @Lob\n public Byte[] getFileContent() {\n return fileContent;\n }",
"public static byte[] readFile(File file, int valueType) {\n if (!file.exists()) {\n Log.e(TAG, \"The file doesn't exist\");\n }\n try {\n ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();\n FileInputStream fileInputStream = new FileInputStream(file);\n BufferedInputStream bufferedInputStream = new BufferedInputStream(fileInputStream);\n byte[] buf = new byte[4096];\n switch (valueType) {\n case 0:\n case 1:\n case 2:\n case 3:\n while (bufferedInputStream.read(buf) != -1) {\n byteArrayOutputStream.write(buf, 16 * valueType, 16);\n }\n break;\n case 4:\n if (!file.getName().equals(\"E_SK2\")) {\n if (!file.getName().equals(\"E_PIN2\")) {\n while (true) {\n int len = bufferedInputStream.read(buf);\n if (len == -1) {\n break;\n } else {\n byteArrayOutputStream.write(buf, 16 * 1, (len - 32) - (16 * 1));\n }\n }\n } else {\n while (true) {\n int len2 = bufferedInputStream.read(buf);\n if (len2 == -1) {\n break;\n } else {\n byteArrayOutputStream.write(buf, 16 * 1, ((len2 - 32) - (16 * 1)) - PKLENGTH);\n }\n }\n }\n } else {\n while (true) {\n int len3 = bufferedInputStream.read(buf);\n if (len3 == -1) {\n break;\n } else {\n byteArrayOutputStream.write(buf, 16 * 4, (len3 - 32) - (16 * 4));\n }\n }\n }\n case 5:\n while (true) {\n int len4 = bufferedInputStream.read(buf);\n if (len4 == -1) {\n break;\n } else {\n byteArrayOutputStream.write(buf, len4 - 32, 32);\n }\n }\n case PUBLICKEY /* 7 */:\n while (true) {\n int len5 = bufferedInputStream.read(buf);\n if (len5 == -1) {\n break;\n } else {\n byteArrayOutputStream.write(buf, (len5 - 32) - PKLENGTH, PKLENGTH);\n }\n }\n case 8:\n while (true) {\n int len6 = bufferedInputStream.read(buf);\n if (len6 == -1) {\n break;\n } else {\n byteArrayOutputStream.write(buf, 0, len6 - 32);\n }\n }\n }\n byte[] buffer = byteArrayOutputStream.toByteArray();\n bufferedInputStream.close();\n fileInputStream.close();\n byteArrayOutputStream.close();\n return buffer;\n } catch (IOException e) {\n Log.e(TAG, \"read file exception!\" + e.getMessage());\n return new byte[0];\n }\n }",
"@Override\n public int getFile() {\n return file;\n }",
"public byte[] getBytes() throws IOException {\r\n return mFile.getBytes();\r\n }",
"@Test\n public void testGetBytes() {\n System.out.println(\"getBytes\");\n RecordFile instance = new RecordFile();\n \n String first = \"hello\";\n String second = \"hello 2\";\n String third = \"hello 3\";\n String meta = \"hello, I'm meta!\";\n \n instance.setMeta(meta.getBytes());\n instance.write(first.getBytes(), 0);\n instance.write(second.getBytes(), 1);\n instance.write(third.getBytes(), 2);\n \n byte[] bytes = instance.getBytes();\n \n instance = new RecordFile(bytes);\n \n Assert.assertEquals(RecordFile.DEFAULT_RECORDS, instance.compacity());\n Assert.assertEquals(meta, new String(instance.getMeta()));\n Assert.assertEquals(first, new String(instance.read(0)));\n Assert.assertEquals(second, new String(instance.read(1)));\n Assert.assertEquals(third, new String(instance.read(2)));\n }",
"public byte[] getByteData() { return bytedata; }",
"public byte[] getbyteArray() {\n byte[] output = new byte[header_size+fileData.length];\n output[0] = (byte)((type & 0xff00)>> 8);\n output[1] = (byte)(type & 0xff);\n output[2] = (byte)((length & 0xff00)>> 8);\n\t output[3] = (byte)(length & 0xff);\n output[4] = (byte)((clientID & 0xff00)>> 8);\n output[5] = (byte)(clientID & 0xff);\n output[6] = action;\n byte[] temp2 = ByteBuffer.allocate(4).putInt(sectionLength).array();\n for(int i=0;i<4;i++) {\n output[7+i] = temp2[i]; \n }\n temp2 = ByteBuffer.allocate(4).putInt(filePosition).array();\n for(int j=0;j<4;j++) {\n output[11+j] = temp2[j]; \n }\n //copy file data\n System.arraycopy(fileData, 0,output, 15,fileData.length); \n return output;\n }",
"private int readFdocaOneByte(int index) {\n\n checkForSplitRowAndComplete(1, index);\n //return dataBuffer_[position_++] & 0xff;\n return dataBuffer_.readByte();\n }",
"public static byte[] readBytesFromFile(File f) {\r\n byte[] bytes = null;\r\n try {\r\n int filesize = (int) f.length();\r\n bytes = new byte[filesize];\r\n DataInputStream in = new DataInputStream(new FileInputStream(f));\r\n in.readFully(bytes);\r\n in.close();\r\n } catch (Exception e) {\r\n System.out.println(\"Error reading byte[] from file: \"\r\n + e.getMessage());\r\n return null;\r\n }\r\n return bytes;\r\n }",
"public Object getContent() {\n/* 112 */ return this.buf;\n/* */ }",
"com.google.protobuf.ByteString getContent();",
"com.google.protobuf.ByteString getContent();",
"public byte[] getFile(final String file) throws RemoteException;",
"String getFile();",
"String getFile();",
"String getFile();",
"com.google.protobuf.ByteString getContentBytes();",
"public static void vu0DownloadData(int index, byte[] data) { }",
"private static byte[] getFileAsByte(String pathFile) {\n\t\tFile file = new File(pathFile);\n\n\t\ttry {\n\t\t\tFileInputStream fin = new FileInputStream(file);\n\t\t\tbyte fileContent[] = new byte[(int) file.length()];\n\t\t\tfin.read(fileContent);\n\t\t\tfin.close();\n\n\t\t\treturn fileContent;\n\t\t} catch (FileNotFoundException e) {\n\t\t\tLOGGER.error(\"File not found: \" + e);\n\t\t} catch (IOException e) {\n\t\t\tLOGGER.error(\"Exception while reading the file: \" + e);\n\t\t}\n\t\treturn null;\n\t}",
"public byte[] getData(String h) {\n String[] CATF = {\"git\", \"cat-file\", \"-p\", h};\n return exec(CATF);\n }",
"private static byte[] m136428a(File file) throws IOException {\n FileInputStream fileInputStream = new FileInputStream(file);\n byte[] bArr = new byte[((int) file.length())];\n int i = 0;\n while (i < bArr.length) {\n int read = fileInputStream.read(bArr, i, bArr.length - i);\n if (read < 0) {\n break;\n }\n i += read;\n }\n if (i >= bArr.length) {\n fileInputStream.close();\n return bArr;\n }\n StringBuilder sb = new StringBuilder(\"Could not completely read file \");\n sb.append(file.getName());\n throw new IOException(sb.toString());\n }",
"char[] getCharContent() throws IOException;",
"public byte[] loadData(FileWindow window)\n\t\t{\n\t\t\tbyte[] result = null;\n\t\t\tFileChannel channel = getFileChannel(false);\n\t\t\tif (channel != null)\n\t\t\t{\n\t\t\t\tByteBuffer buffer = ByteBuffer.allocate(window.getFilePartSize());\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tchannel.read(buffer, window.getFilePartOffset());\n\t\t\t\t\tif (buffer.hasArray())\n\t\t\t\t\t{\n\t\t\t\t\t\tresult = buffer.array();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch (IOException e)\n\t\t\t\t{\n\t\t\t\t\tlog.error(\"Error reading from file channel \" + channel, e);\n\t\t\t\t}\n\t\t\t\tfinally\n\t\t\t\t{\n\t\t\t\t\tIOUtils.closeQuietly(channel);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn result;\n\t\t}",
"byte[] getData() {\n return data;\n }",
"InputStream getDataStream();",
"public byte[] bytes() throws IOException {\n try(FileInputStream fis = new FileInputStream(file)) {\n return ByteStreams.toByteArray(fis);\n }\n }",
"public int getFile() {\n validify();\n return Client.INSTANCE.pieceGetFile(ptr);\n }",
"private byte[] readFixedLengthContent(ByteBuf in) throws UnsupportedEncodingException {\n if (in.readableBytes() < 2) {\n return new byte[]{};\n }\n int strLen = in.readableBytes();\n// if (in.readableBytes() < strLen) {\n// return null;\n// }\n byte[] strRaw = new byte[strLen];\n in.readBytes(strRaw);\n\n return strRaw;\n }",
"public File getFileValue();",
"void setData(byte[] data);",
"public byte[] getData()\r\n/* 20: */ {\r\n/* 21:60 */ byte[] data = new byte[2];\r\n/* 22: */ \r\n/* 23:62 */ IntegerHelper.getTwoBytes(this.calcCount, data, 0);\r\n/* 24: */ \r\n/* 25:64 */ return data;\r\n/* 26: */ }",
"com.google.protobuf.ByteString\n getContentBytes();",
"com.google.protobuf.ByteString\n getContentBytes();",
"com.google.protobuf.ByteString\n getContentBytes();",
"com.google.protobuf.ByteString\n getContentBytes();",
"public byte[] getData() {\n\treturn null;\n }",
"byte[] inflate(byte[] data) throws IOException;",
"public byte[] getData() {\n return data;\n }",
"public byte[] getData()\r\n/* 38: */ {\r\n/* 39: 98 */ byte[] data = new byte[18];\r\n/* 40: */ \r\n/* 41:100 */ int options = 0;\r\n/* 42:102 */ if (this.promptBoxVisible) {\r\n/* 43:104 */ options |= PROMPT_BOX_VISIBLE_MASK;\r\n/* 44: */ }\r\n/* 45:107 */ if (this.promptBoxAtCell) {\r\n/* 46:109 */ options |= PROMPT_BOX_AT_CELL_MASK;\r\n/* 47: */ }\r\n/* 48:112 */ if (this.validityDataCached) {\r\n/* 49:114 */ options |= VALIDITY_DATA_CACHED_MASK;\r\n/* 50: */ }\r\n/* 51:117 */ IntegerHelper.getTwoBytes(options, data, 0);\r\n/* 52: */ \r\n/* 53:119 */ IntegerHelper.getFourBytes(this.objectId, data, 10);\r\n/* 54: */ \r\n/* 55:121 */ IntegerHelper.getFourBytes(this.numDVRecords, data, 14);\r\n/* 56: */ \r\n/* 57:123 */ return data;\r\n/* 58: */ }",
"public byte[] getData() {\r\n return Arrays.copyOf(data, data.length);\r\n }",
"public abstract byte read_octet();",
"void loadNodeData(byte[] data) throws Exception;"
] |
[
"0.6709735",
"0.6709735",
"0.6709735",
"0.6709735",
"0.66785",
"0.6659824",
"0.6581903",
"0.6383353",
"0.63418925",
"0.62733114",
"0.62677306",
"0.62643033",
"0.61281914",
"0.609729",
"0.6084979",
"0.60340255",
"0.601819",
"0.60013723",
"0.595937",
"0.59351724",
"0.59279966",
"0.591943",
"0.589374",
"0.589374",
"0.5880462",
"0.58455914",
"0.5838588",
"0.58351654",
"0.5794297",
"0.5770274",
"0.5748435",
"0.57187235",
"0.57187235",
"0.5708217",
"0.56941706",
"0.5679498",
"0.56645906",
"0.56645906",
"0.56630516",
"0.56630516",
"0.56359535",
"0.56304836",
"0.56226707",
"0.56213856",
"0.5604026",
"0.5602977",
"0.5602889",
"0.56022096",
"0.557618",
"0.5575854",
"0.5548122",
"0.55321366",
"0.5509312",
"0.5502337",
"0.54915285",
"0.5478545",
"0.5476886",
"0.5476886",
"0.5475332",
"0.54735583",
"0.54735583",
"0.54735583",
"0.5462679",
"0.5461663",
"0.5457024",
"0.5456652",
"0.5419763",
"0.5409318",
"0.5407993",
"0.54057324",
"0.53989375",
"0.5396377",
"0.53803045",
"0.53771585",
"0.53761363",
"0.53729665",
"0.53659993",
"0.53529865",
"0.53529865",
"0.53496736",
"0.53496736",
"0.5349085",
"0.5349048",
"0.5348476",
"0.5330209",
"0.53163624",
"0.5310617",
"0.5300257"
] |
0.5813266
|
37
|
Use DownloadResponse.newBuilder() to construct.
|
private DownloadResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"entities.Torrent.DownloadResponseOrBuilder getDownloadResponseOrBuilder();",
"public Builder setDownloadResponse(entities.Torrent.DownloadResponse value) {\n if (downloadResponseBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n downloadResponse_ = value;\n onChanged();\n } else {\n downloadResponseBuilder_.setMessage(value);\n }\n\n return this;\n }",
"public DownloadResponseInner() {\n }",
"public entities.Torrent.DownloadResponseOrBuilder getDownloadResponseOrBuilder() {\n if (downloadResponseBuilder_ != null) {\n return downloadResponseBuilder_.getMessageOrBuilder();\n } else {\n return downloadResponse_ == null ?\n entities.Torrent.DownloadResponse.getDefaultInstance() : downloadResponse_;\n }\n }",
"public entities.Torrent.DownloadResponse.Builder getDownloadResponseBuilder() {\n\n onChanged();\n return getDownloadResponseFieldBuilder().getBuilder();\n }",
"private FetchResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public Builder mergeDownloadResponse(entities.Torrent.DownloadResponse value) {\n if (downloadResponseBuilder_ == null) {\n if (downloadResponse_ != null) {\n downloadResponse_ =\n entities.Torrent.DownloadResponse.newBuilder(downloadResponse_).mergeFrom(value).buildPartial();\n } else {\n downloadResponse_ = value;\n }\n onChanged();\n } else {\n downloadResponseBuilder_.mergeFrom(value);\n }\n\n return this;\n }",
"@java.lang.Override\n public entities.Torrent.DownloadResponseOrBuilder getDownloadResponseOrBuilder() {\n return getDownloadResponse();\n }",
"private RetrieveFileResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public entities.Torrent.DownloadResponse getDownloadResponse() {\n if (downloadResponseBuilder_ == null) {\n return downloadResponse_ == null ? entities.Torrent.DownloadResponse.getDefaultInstance() : downloadResponse_;\n } else {\n return downloadResponseBuilder_.getMessage();\n }\n }",
"private DownloadRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public Builder setResponseBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n response_ = value;\n onChanged();\n return this;\n }",
"public Builder clearDownloadResponse() {\n if (downloadResponseBuilder_ == null) {\n downloadResponse_ = null;\n onChanged();\n } else {\n downloadResponse_ = null;\n downloadResponseBuilder_ = null;\n }\n\n return this;\n }",
"private Response(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private Response(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private Response(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private Response(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private Response(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private Response(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private Response(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public Builder setDownloadResponse(\n entities.Torrent.DownloadResponse.Builder builderForValue) {\n if (downloadResponseBuilder_ == null) {\n downloadResponse_ = builderForValue.build();\n onChanged();\n } else {\n downloadResponseBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }",
"private LivestockResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private HelloResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.DownloadResponse, entities.Torrent.DownloadResponse.Builder, entities.Torrent.DownloadResponseOrBuilder>\n getDownloadResponseFieldBuilder() {\n if (downloadResponseBuilder_ == null) {\n downloadResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.DownloadResponse, entities.Torrent.DownloadResponse.Builder, entities.Torrent.DownloadResponseOrBuilder>(\n getDownloadResponse(),\n getParentForChildren(),\n isClean());\n downloadResponse_ = null;\n }\n return downloadResponseBuilder_;\n }",
"private MessageResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public Builder addResponse(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureResponseIsMutable();\n response_.add(value);\n onChanged();\n return this;\n }",
"private CallResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"entities.Torrent.DownloadRequestOrBuilder getDownloadRequestOrBuilder();",
"private ReadResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private TestResponse(com.google.protobuf.GeneratedMessageLite.Builder builder) {\n super(builder);\n\n }",
"entities.Torrent.DownloadResponse getDownloadResponse();",
"private ListFilesResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"@java.lang.Override\n public entities.Torrent.DownloadResponse getDownloadResponse() {\n return downloadResponse_ == null ? entities.Torrent.DownloadResponse.getDefaultInstance() : downloadResponse_;\n }",
"MovilizerRequest prepareDownloadRequest(Long systemId, String password, Integer numResponses,\n MovilizerRequest request);",
"private DeleteResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private BaseResponse(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n }",
"private BenchmarkResponse(com.google.protobuf.GeneratedMessage.Builder builder) {\n super(builder);\n }",
"private PrepareResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private CreateResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private CommitResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private SubnetResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private ListResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private ListResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"com.google.protobuf.ByteString\n getResponseBytes();",
"private OpenFileResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private ChunkResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private Response() {}",
"private Response() {}",
"private UpdateResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private LesenRPCResponse(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }",
"public OrderResponseBuilder() {\r\n orderResponse = new OrderResponse();\r\n }",
"private GetDataVersionResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private GetDataVersionResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private GetDataVersionResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private CloseFileResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public Builder setRetrieveFileResponse(edu.usfca.cs.dfs.StorageMessages.RetrieveFileResponse value) {\n if (retrieveFileResponseBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n msg_ = value;\n onChanged();\n } else {\n retrieveFileResponseBuilder_.setMessage(value);\n }\n msgCase_ = 11;\n return this;\n }",
"public Builder setDownloadRequest(entities.Torrent.DownloadRequest value) {\n if (downloadRequestBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n downloadRequest_ = value;\n onChanged();\n } else {\n downloadRequestBuilder_.setMessage(value);\n }\n\n return this;\n }",
"private ClientResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private MessagesResponse(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n }",
"private MsgInstantiateContractResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private ServerResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n\t\t\tsuper(builder);\n\t\t}",
"private BlockReportResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private ResponseKv(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"com.google.protobuf.ByteString\n getResponseBytes();",
"public MetadataResponse() {\n }",
"private DGResponse(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }",
"private CallResponse() {\n initFields();\n }",
"private ResponseGetPrototype(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }",
"private AnswerResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public VersionDownload() {\n }",
"private SyncResultsResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private UResponses(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private ReadBlockResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private EmployeeResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public com.github.yeriomin.playstoreapi.ResponseWrapper.Builder getResponseBuilder() {\n bitField0_ |= 0x00000002;\n onChanged();\n return getResponseFieldBuilder().getBuilder();\n }",
"public IMAPUntaggedResponse(String keyword, byte [] response) {\n super(response); \n this.keyword = keyword; \n }",
"private FeedBack4ParkingResponse(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }",
"private IssueResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private SearchResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private HeartBeatResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private HeartBeatResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private BlockLocationResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public TrackResponse() {\n\t\tsuper();\n\t}",
"Response createResponse();",
"private TeledonResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private CalResponse(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }",
"private RollbackResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public Builder setResponse(com.github.yeriomin.playstoreapi.ResponseWrapper value) {\n if (responseBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n response_ = value;\n onChanged();\n } else {\n responseBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000002;\n return this;\n }",
"public abstract Downloader createDownloader(DownloaderConstructorHelper downloaderConstructorHelper);",
"private SendResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public Builder setResponse(br.com.sergio.wallet.Response value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n response_ = value.getNumber();\n onChanged();\n return this;\n }",
"private TestBeanResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private void setResponse(com.google.search.now.wire.feed.ResponseProto.Response value) {\n if (value == null) {\n throw new NullPointerException();\n }\n response_ = value;\n bitField0_ |= 0x00000001;\n }",
"private CreateProofResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"edu.usfca.cs.dfs.StorageMessages.RetrieveFileResponseOrBuilder getRetrieveFileResponseOrBuilder();",
"public Builder setResponse(\n int index, com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureResponseIsMutable();\n response_.set(index, value);\n onChanged();\n return this;\n }",
"private ResultSetResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"@java.lang.Override\n public entities.Torrent.DownloadRequestOrBuilder getDownloadRequestOrBuilder() {\n return getDownloadRequest();\n }",
"private UploadResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private GetPictureResponse(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }"
] |
[
"0.7252917",
"0.70944875",
"0.7020892",
"0.68187046",
"0.6816472",
"0.6770379",
"0.6728819",
"0.6594669",
"0.63115823",
"0.6304935",
"0.6265901",
"0.623019",
"0.6153071",
"0.61237",
"0.61237",
"0.61237",
"0.61237",
"0.61237",
"0.61237",
"0.61237",
"0.61232024",
"0.60902756",
"0.6044709",
"0.5998213",
"0.5901068",
"0.58864224",
"0.586587",
"0.5848565",
"0.57849056",
"0.5768495",
"0.5753915",
"0.57258856",
"0.5720425",
"0.5718509",
"0.57047594",
"0.5689743",
"0.5660907",
"0.56386876",
"0.56365013",
"0.563262",
"0.55967903",
"0.5596387",
"0.5596387",
"0.55817395",
"0.55817026",
"0.5580579",
"0.5538226",
"0.5538226",
"0.5534751",
"0.5526076",
"0.55063397",
"0.55037904",
"0.55037904",
"0.55037904",
"0.549959",
"0.5485822",
"0.5481542",
"0.5465788",
"0.54650885",
"0.54516935",
"0.5437773",
"0.543683",
"0.5428092",
"0.54249954",
"0.54231536",
"0.5423019",
"0.53957397",
"0.53908277",
"0.5386298",
"0.5384967",
"0.5381158",
"0.5379766",
"0.5372566",
"0.5372317",
"0.5359594",
"0.5359396",
"0.53576916",
"0.53410065",
"0.53213775",
"0.5312023",
"0.5312023",
"0.53081816",
"0.53065675",
"0.530287",
"0.5301071",
"0.5294871",
"0.5289909",
"0.52779776",
"0.527495",
"0.5266741",
"0.52573466",
"0.52551717",
"0.5254227",
"0.5248715",
"0.5248596",
"0.524246",
"0.5239488",
"0.5234643",
"0.52329654",
"0.5228478"
] |
0.7422404
|
0
|
.Status status = 1;
|
@java.lang.Override public int getStatusValue() {
return status_;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setStatus(String status) { this.status = status; }",
"void setStatus(STATUS status);",
"public void setStatus(EnumVar status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\r\n\t this.status = status;\r\n\t }",
"public void setStatus(Integer status) {\r\n this.status = status;\r\n }",
"public void setStatus(Integer status) {\r\n this.status = status;\r\n }",
"void setStatus(int status);",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(int status){\r\n\t\tthis.status=status;\r\n\t}",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(int status);",
"public void setStatus(int status);",
"public void setStatus(Boolean s){ status = s;}",
"public void setStatus(int status) {\n STATUS = status;\n }",
"public void setStatus(Status newStatus){\n status = newStatus;\n }",
"public void setStatus(String stat)\n {\n status = stat;\n }",
"private void setStatus(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n status_ = value;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(long status) {\r\n this.status = status;\r\n }",
"public void setStatus(Integer status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(Integer status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(String status) {\r\n this.status = status;\r\n }",
"public void setStatus(java.lang.Object status) {\n this.status = status;\n }",
"public void setStatus(Status status)\n {\n this.status = status;\n }",
"public void setgetStatus()\r\n\t{\r\n\t\tthis.status = 'S';\r\n\t}",
"public void setStatus(Byte status) {\r\n\t\tthis.status = status;\r\n\t}",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"@Override\n\t\tpublic void setStatus(int status) {\n\t\t\t\n\t\t}",
"public void setStatus(StatusEnum status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(Byte status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(int status) {\n this.status = status;\n }",
"public void setStatus(int status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\r\n this.status = status;\r\n }",
"public void setStatus(String status) {\r\n this.status = status;\r\n }",
"public void setStatus(String status) {\r\n this.status = status;\r\n }",
"public void setStatus(Short status) {\n this.status = status;\n }",
"public void setStatus(STATUS status) {\n this.status = status;\n }",
"void setStatus(String status);",
"public void setStatus(Short status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(Short status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(int v) \n {\n \n if (this.status != v)\n {\n this.status = v;\n setModified(true);\n }\n \n \n }",
"public void setStatus( Short status ) {\n this.status = status;\n }",
"public void setStatus(String newStatus){\n\n //assigns the value of newStatus to the status field\n this.status = newStatus;\n }",
"public Status getStatus(){\n return status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\n this.status = status;\n }"
] |
[
"0.7656765",
"0.76468766",
"0.7565312",
"0.7561203",
"0.75449044",
"0.75449044",
"0.75349724",
"0.74959093",
"0.74959093",
"0.74959093",
"0.74959093",
"0.74959093",
"0.74959093",
"0.74959093",
"0.7482147",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.74783385",
"0.74783385",
"0.746719",
"0.74658287",
"0.746098",
"0.7456925",
"0.7452718",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435248",
"0.7432568",
"0.7432568",
"0.7425985",
"0.74143654",
"0.74118876",
"0.7398544",
"0.7398282",
"0.73973185",
"0.73973185",
"0.7396562",
"0.73950607",
"0.7392215",
"0.7392215",
"0.7382456",
"0.7382456",
"0.7378742",
"0.73726434",
"0.73726434",
"0.7368736",
"0.73626804",
"0.7351154",
"0.7345713",
"0.7345713",
"0.73451585",
"0.7332328",
"0.7329264",
"0.73258084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.728639",
"0.728639",
"0.728639"
] |
0.0
|
-1
|
.Status status = 1;
|
@java.lang.Override public entities.Torrent.Status getStatus() {
@SuppressWarnings("deprecation")
entities.Torrent.Status result = entities.Torrent.Status.valueOf(status_);
return result == null ? entities.Torrent.Status.UNRECOGNIZED : result;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setStatus(String status) { this.status = status; }",
"void setStatus(STATUS status);",
"public void setStatus(EnumVar status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\r\n\t this.status = status;\r\n\t }",
"public void setStatus(Integer status) {\r\n this.status = status;\r\n }",
"public void setStatus(Integer status) {\r\n this.status = status;\r\n }",
"void setStatus(int status);",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(int status){\r\n\t\tthis.status=status;\r\n\t}",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(int status);",
"public void setStatus(int status);",
"public void setStatus(Boolean s){ status = s;}",
"public void setStatus(int status) {\n STATUS = status;\n }",
"public void setStatus(Status newStatus){\n status = newStatus;\n }",
"public void setStatus(String stat)\n {\n status = stat;\n }",
"private void setStatus(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n status_ = value;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(long status) {\r\n this.status = status;\r\n }",
"public void setStatus(Integer status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(Integer status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(String status) {\r\n this.status = status;\r\n }",
"public void setStatus(java.lang.Object status) {\n this.status = status;\n }",
"public void setStatus(Status status)\n {\n this.status = status;\n }",
"public void setgetStatus()\r\n\t{\r\n\t\tthis.status = 'S';\r\n\t}",
"public void setStatus(Byte status) {\r\n\t\tthis.status = status;\r\n\t}",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"@Override\n\t\tpublic void setStatus(int status) {\n\t\t\t\n\t\t}",
"public void setStatus(StatusEnum status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(Byte status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(int status) {\n this.status = status;\n }",
"public void setStatus(int status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\r\n this.status = status;\r\n }",
"public void setStatus(String status) {\r\n this.status = status;\r\n }",
"public void setStatus(String status) {\r\n this.status = status;\r\n }",
"public void setStatus(Short status) {\n this.status = status;\n }",
"public void setStatus(STATUS status) {\n this.status = status;\n }",
"void setStatus(String status);",
"public void setStatus(Short status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(Short status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(int v) \n {\n \n if (this.status != v)\n {\n this.status = v;\n setModified(true);\n }\n \n \n }",
"public void setStatus( Short status ) {\n this.status = status;\n }",
"public void setStatus(String newStatus){\n\n //assigns the value of newStatus to the status field\n this.status = newStatus;\n }",
"public Status getStatus(){\n return status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\n this.status = status;\n }"
] |
[
"0.7656765",
"0.76468766",
"0.7565312",
"0.7561203",
"0.75449044",
"0.75449044",
"0.75349724",
"0.74959093",
"0.74959093",
"0.74959093",
"0.74959093",
"0.74959093",
"0.74959093",
"0.74959093",
"0.7482147",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.74783385",
"0.74783385",
"0.746719",
"0.74658287",
"0.746098",
"0.7456925",
"0.7452718",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435248",
"0.7432568",
"0.7432568",
"0.7425985",
"0.74143654",
"0.74118876",
"0.7398544",
"0.7398282",
"0.73973185",
"0.73973185",
"0.7396562",
"0.73950607",
"0.7392215",
"0.7392215",
"0.7382456",
"0.7382456",
"0.7378742",
"0.73726434",
"0.73726434",
"0.7368736",
"0.73626804",
"0.7351154",
"0.7345713",
"0.7345713",
"0.73451585",
"0.7332328",
"0.7329264",
"0.73258084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.728639",
"0.728639",
"0.728639"
] |
0.0
|
-1
|
string errorMessage = 2;
|
@java.lang.Override
public java.lang.String getErrorMessage() {
java.lang.Object ref = errorMessage_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
errorMessage_ = s;
return s;
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"String errorMessage();",
"private void error(String string) {\n\t\r\n}",
"String getErrorMessage();",
"String getErrorMessage();",
"String getError(int i) {\n if (i >= 0 & i < msgs.length)\n return msgs[i];\n else\n return \"Invalid Error Code\";\n }",
"java.lang.String getError();",
"java.lang.String getError();",
"java.lang.String getError();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"void showErrorMsg(String string);",
"String getGetErrorMessage();",
"java.lang.String getErr();",
"public String getErrorString()\r\n\t{\r\n\t\t\r\n\t\treturn ERROR_STRING;\r\n\t}",
"public void error(String string) {\n\t\t\n\t}",
"String getInvalidMessage();",
"private static String getMessage(int code) {\n switch (code) {\n case ME_DIV_BY_ZERO:\n return \"Attempt to divide by zero.\";\n case ME_ASSIGNLITERAL:\n return \"Attempt to assign to a literal.\";\n case ME_NONVARASSIGN:\n return \"Attempt to assign to a non-variable.\";\n default:\n return \"Unknown error.\";\n }\n }",
"String getErrorsString();",
"public String error();",
"public String getError() {\n\treturn mistake;\n }",
"private String getErrorString() {\n\t\treturn \"GUID:ERROR:\" + mErrors[0][0]\n\t\t + \":\" + mErrors[1][0]\n\t\t + \":\" + mErrors[2][0]\n\t\t + \":\" + mErrors[3][0];\n\t}",
"public String getErrorMessage() \r\n\t{\r\n\t\t\r\n\t\treturn errorMessage;\r\n\t\t\r\n\t}",
"public java.lang.String getErrorMessage(){\n return localErrorMessage;\n }",
"java.lang.String getErrmsg();",
"public String getErrorString()\n\t{\n\t\treturn errorString;\n\t}",
"public static String getLastErrorMessage()\r\n\t{\n\t\treturn lastAlert;\r\n\t}",
"String getMessage();",
"String getMessage();",
"String getMessage();",
"private int getErrorId(final String message) {\n\t\tif (isLowerCase(message)) {\n\t\t\treturn ERROR_LOWER_CASE;\n\t\t} else if (isUnunsedMacro(message)) {\n\t\t\treturn ERROR_UNUSED_MACRO;\n\t\t} else if (isUnunsedVariable(message)) {\n\t\t\treturn ERROR_UNUSED_VARIABLE;\n\t\t} else if (isEndLineSpace(message) || isNoSpace(message)) {\n\t\t\treturn ERROR_NO_SPACE;\n\t\t} else if (isOneSpace(message)) {\n\t\t\treturn ERROR_ONE_SPACE;\n\t\t} else {\n\t\t\treturn ERROR_INVALID;\n\t\t}\n\t}",
"public String getErrorString(String message) {\n \t\treturn getString(new StringBuffer(\"error.\").append(message).toString());\n \t}",
"String getErrorMessage(E input);",
"public String errorMessage()\n {\n return new String(errorMessageAsBytes());\n }",
"String Message ();",
"public String errorMessage() {\n return errorMessage;\n }",
"void SemErr(String str);",
"public String getErrorMessage()\n {\n return errorMessage;\n }",
"ErrorCodes(int code){\n this.code = code;\n //this.message = message;\n }",
"int getErrorCode();",
"public String getErrorCode();",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n errorMessage_ = s;\n }\n return s;\n }\n }",
"void showError(@StringRes int errorMessage);",
"void showError(String errorMessage);",
"private static int getErrorLine(String errmsg){\n\t\treturn Integer.parseInt(errmsg.substring(0,errmsg.indexOf(\":\")).substring(errmsg.substring(0,errmsg.indexOf(\":\")).lastIndexOf(\" \")+1));\n\t}",
"public String errorMessage()\n {\n return edma_errorMsg;\n }",
"public String getErrorMessage() {\r\n return this.errorMessage;\r\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public String errorMessage() {\n return this.errorMessage;\n }",
"public String getErrorMessage() {\n\t\treturn errorMessage;\n\t}",
"public int getError() {\n return error;\n }",
"public String getErrorMessage() {\n return this.errorMessage;\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"void setErrorMessage(String errorMessage);",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"static int errorMsg(int eCode)\n {\n if (eCode == 0) return 0;\n String message = \"\";\n switch (eCode){\n case 1: message = \"Division by zero\"; break;\n case 2: message = \"Non-matching parenthesis in function\"; break;\n case 3: message = \"Must enclose negative exponents in parentheses\"; break;\n case 4: message = \"Incorrect Operator Syntax\"; break;\n case 5: message = \"Rightfunctions must use parenthesis. (example: ABS(-2);\"; break;\n case 6: message = \"Unrecognized token in function srtring.\"; break;\n case 8: message = \"Can not raise negative number to a fractional power.\"; break;\n case 10:message = \"Input a real number with no operators\"; break;\n }\n JOptionPane.showMessageDialog(null, message, \"Error \"+eCode, JOptionPane.ERROR_MESSAGE);\n return 0;\n }",
"public String getError() {\n return errMsg;\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n }\n }",
"public String getMsgError() {\r\n\t\treturn msgError;\r\n\t}",
"public String getErrorMessage() {\n return errorMessage;\n }",
"public String getErrorMessage() {\n return errorMessage;\n }",
"public String getErrorMessage() {\n return errorMessage;\n }",
"String getFailureMessage();",
"public int error() {\n return this.error;\n }",
"public String getParseErrorMessage();",
"public String getErrorMessage() {\n return ERROR_MESSAGE;\n }",
"public String getError() {\r\n if (scriptError == null) return \"\";\r\n return scriptError;\r\n }",
"private String getGUIErrorMsg(long errorcode) {\n\t\tif (errorcode == 0) {\n\t\t\treturn \"This popup shouldn't have launched!\";\n\t\t} else if (errorcode == 9) {\n\t\t\treturn \"Latitude input format incorrect!\\nValid Latitude values are -90 to 90 with negative values being south Latitude.\";\n\t\t} else if (errorcode == 10) {\n\t\t\treturn \"Longitude input format incorrect!\\nValid Longitude values are -180 to 180 with negative values being west latitude.\";\n\t\t} else if (errorcode == 11) {\n\t\t\treturn \"Date input format incorrect!\\nValid dates go <year>-<month>-<day>\\nValid month values are 1- 12 and valid day values are 1 - 31.\";\n\t\t} else if (errorcode == 12) {\n\t\t\treturn \"Time input format incorrect!\\nValid times go <hour>-<minute>-<second>\\nValid hour values are 0 - 23 and valid minute and second values are 0 - 59\";\n\t\t} else if (errorcode == 1) {\n\t\t\treturn \"Invalid latitude!\\nValid Latitude values are -90 to 90 with negative values being south Latitude.\";\n\t\t} else if (errorcode == 2) {\n\t\t\treturn \"Invalid Longitude!\\nValid Longitude values are -180 to 180 with negative values being west latitude.\";\n\t\t} else if (errorcode == 3) {\n\t\t\treturn \"Invalid Year!\\nValid year values are \" + Integer.MIN_VALUE + \" - \" + Integer.MAX_VALUE + \".\";\n\t\t} else if (errorcode == 4) {\n\t\t\treturn \"Invalid Month!\\nValid month values are 1 - 12\";\n\t\t} else if (errorcode == 5) {\n\t\t\treturn \"Invalid Day!\\nValid day values are 1 - 31\";\n\t\t} else if (errorcode == 6) {\n\t\t\treturn \"Invalid Hour!\\nValid hour values are 0 - 23\";\n\t\t} else if (errorcode == 7) {\n\t\t\treturn \"Invalid Minute!\\nValid minute values are 0 - 59\";\n\t\t} else if (errorcode == 8) {\n\t\t\treturn \"Invalid Second!\\nValid second values are 0 - 59\";\n\t\t} \n\t\treturn \"Undefined Error Message!\";\n\t}",
"public void setErrorMsg(String text) {\n this.errorMsg = text;\n }",
"public int getErrorNo() {\n return this.errorNo;\n }",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();"
] |
[
"0.7234827",
"0.68487597",
"0.68242407",
"0.68242407",
"0.66320926",
"0.6613902",
"0.6613902",
"0.6613902",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.6587221",
"0.6458624",
"0.642881",
"0.6387629",
"0.6339448",
"0.63337046",
"0.6318866",
"0.6310054",
"0.6266495",
"0.6207546",
"0.6169787",
"0.6162002",
"0.61556125",
"0.61209476",
"0.6114965",
"0.61042917",
"0.60988075",
"0.60988075",
"0.60988075",
"0.60916275",
"0.60737956",
"0.6044167",
"0.60035205",
"0.59917176",
"0.59845275",
"0.59643966",
"0.5963419",
"0.59538627",
"0.5917793",
"0.58881736",
"0.58858836",
"0.5880861",
"0.58786815",
"0.5865479",
"0.5863698",
"0.5842632",
"0.583974",
"0.583974",
"0.583974",
"0.583974",
"0.583974",
"0.583974",
"0.583974",
"0.58391654",
"0.58391654",
"0.58391654",
"0.5837601",
"0.5828023",
"0.58268774",
"0.58249444",
"0.5820853",
"0.5818837",
"0.5808825",
"0.5808012",
"0.5803665",
"0.57976645",
"0.5796016",
"0.57934284",
"0.57934284",
"0.57934284",
"0.5786855",
"0.57868457",
"0.5785435",
"0.578205",
"0.576942",
"0.57514906",
"0.57502955",
"0.5743453",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053"
] |
0.0
|
-1
|
string errorMessage = 2;
|
@java.lang.Override
public com.google.protobuf.ByteString
getErrorMessageBytes() {
java.lang.Object ref = errorMessage_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
errorMessage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"String errorMessage();",
"private void error(String string) {\n\t\r\n}",
"String getErrorMessage();",
"String getErrorMessage();",
"String getError(int i) {\n if (i >= 0 & i < msgs.length)\n return msgs[i];\n else\n return \"Invalid Error Code\";\n }",
"java.lang.String getError();",
"java.lang.String getError();",
"java.lang.String getError();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"void showErrorMsg(String string);",
"String getGetErrorMessage();",
"java.lang.String getErr();",
"public String getErrorString()\r\n\t{\r\n\t\t\r\n\t\treturn ERROR_STRING;\r\n\t}",
"public void error(String string) {\n\t\t\n\t}",
"String getInvalidMessage();",
"private static String getMessage(int code) {\n switch (code) {\n case ME_DIV_BY_ZERO:\n return \"Attempt to divide by zero.\";\n case ME_ASSIGNLITERAL:\n return \"Attempt to assign to a literal.\";\n case ME_NONVARASSIGN:\n return \"Attempt to assign to a non-variable.\";\n default:\n return \"Unknown error.\";\n }\n }",
"String getErrorsString();",
"public String error();",
"public String getError() {\n\treturn mistake;\n }",
"private String getErrorString() {\n\t\treturn \"GUID:ERROR:\" + mErrors[0][0]\n\t\t + \":\" + mErrors[1][0]\n\t\t + \":\" + mErrors[2][0]\n\t\t + \":\" + mErrors[3][0];\n\t}",
"public String getErrorMessage() \r\n\t{\r\n\t\t\r\n\t\treturn errorMessage;\r\n\t\t\r\n\t}",
"public java.lang.String getErrorMessage(){\n return localErrorMessage;\n }",
"java.lang.String getErrmsg();",
"public String getErrorString()\n\t{\n\t\treturn errorString;\n\t}",
"public static String getLastErrorMessage()\r\n\t{\n\t\treturn lastAlert;\r\n\t}",
"String getMessage();",
"String getMessage();",
"String getMessage();",
"private int getErrorId(final String message) {\n\t\tif (isLowerCase(message)) {\n\t\t\treturn ERROR_LOWER_CASE;\n\t\t} else if (isUnunsedMacro(message)) {\n\t\t\treturn ERROR_UNUSED_MACRO;\n\t\t} else if (isUnunsedVariable(message)) {\n\t\t\treturn ERROR_UNUSED_VARIABLE;\n\t\t} else if (isEndLineSpace(message) || isNoSpace(message)) {\n\t\t\treturn ERROR_NO_SPACE;\n\t\t} else if (isOneSpace(message)) {\n\t\t\treturn ERROR_ONE_SPACE;\n\t\t} else {\n\t\t\treturn ERROR_INVALID;\n\t\t}\n\t}",
"public String getErrorString(String message) {\n \t\treturn getString(new StringBuffer(\"error.\").append(message).toString());\n \t}",
"String getErrorMessage(E input);",
"public String errorMessage()\n {\n return new String(errorMessageAsBytes());\n }",
"String Message ();",
"public String errorMessage() {\n return errorMessage;\n }",
"void SemErr(String str);",
"public String getErrorMessage()\n {\n return errorMessage;\n }",
"ErrorCodes(int code){\n this.code = code;\n //this.message = message;\n }",
"int getErrorCode();",
"public String getErrorCode();",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n errorMessage_ = s;\n }\n return s;\n }\n }",
"void showError(@StringRes int errorMessage);",
"void showError(String errorMessage);",
"private static int getErrorLine(String errmsg){\n\t\treturn Integer.parseInt(errmsg.substring(0,errmsg.indexOf(\":\")).substring(errmsg.substring(0,errmsg.indexOf(\":\")).lastIndexOf(\" \")+1));\n\t}",
"public String errorMessage()\n {\n return edma_errorMsg;\n }",
"public String getErrorMessage() {\r\n return this.errorMessage;\r\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public String errorMessage() {\n return this.errorMessage;\n }",
"public String getErrorMessage() {\n\t\treturn errorMessage;\n\t}",
"public int getError() {\n return error;\n }",
"public String getErrorMessage() {\n return this.errorMessage;\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"void setErrorMessage(String errorMessage);",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"static int errorMsg(int eCode)\n {\n if (eCode == 0) return 0;\n String message = \"\";\n switch (eCode){\n case 1: message = \"Division by zero\"; break;\n case 2: message = \"Non-matching parenthesis in function\"; break;\n case 3: message = \"Must enclose negative exponents in parentheses\"; break;\n case 4: message = \"Incorrect Operator Syntax\"; break;\n case 5: message = \"Rightfunctions must use parenthesis. (example: ABS(-2);\"; break;\n case 6: message = \"Unrecognized token in function srtring.\"; break;\n case 8: message = \"Can not raise negative number to a fractional power.\"; break;\n case 10:message = \"Input a real number with no operators\"; break;\n }\n JOptionPane.showMessageDialog(null, message, \"Error \"+eCode, JOptionPane.ERROR_MESSAGE);\n return 0;\n }",
"public String getError() {\n return errMsg;\n }",
"public java.lang.String getErrorMessage() {\n java.lang.Object ref = errorMessage_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorMessage_ = s;\n return s;\n }\n }",
"public String getMsgError() {\r\n\t\treturn msgError;\r\n\t}",
"public String getErrorMessage() {\n return errorMessage;\n }",
"public String getErrorMessage() {\n return errorMessage;\n }",
"public String getErrorMessage() {\n return errorMessage;\n }",
"String getFailureMessage();",
"public int error() {\n return this.error;\n }",
"public String getParseErrorMessage();",
"public String getErrorMessage() {\n return ERROR_MESSAGE;\n }",
"public String getError() {\r\n if (scriptError == null) return \"\";\r\n return scriptError;\r\n }",
"private String getGUIErrorMsg(long errorcode) {\n\t\tif (errorcode == 0) {\n\t\t\treturn \"This popup shouldn't have launched!\";\n\t\t} else if (errorcode == 9) {\n\t\t\treturn \"Latitude input format incorrect!\\nValid Latitude values are -90 to 90 with negative values being south Latitude.\";\n\t\t} else if (errorcode == 10) {\n\t\t\treturn \"Longitude input format incorrect!\\nValid Longitude values are -180 to 180 with negative values being west latitude.\";\n\t\t} else if (errorcode == 11) {\n\t\t\treturn \"Date input format incorrect!\\nValid dates go <year>-<month>-<day>\\nValid month values are 1- 12 and valid day values are 1 - 31.\";\n\t\t} else if (errorcode == 12) {\n\t\t\treturn \"Time input format incorrect!\\nValid times go <hour>-<minute>-<second>\\nValid hour values are 0 - 23 and valid minute and second values are 0 - 59\";\n\t\t} else if (errorcode == 1) {\n\t\t\treturn \"Invalid latitude!\\nValid Latitude values are -90 to 90 with negative values being south Latitude.\";\n\t\t} else if (errorcode == 2) {\n\t\t\treturn \"Invalid Longitude!\\nValid Longitude values are -180 to 180 with negative values being west latitude.\";\n\t\t} else if (errorcode == 3) {\n\t\t\treturn \"Invalid Year!\\nValid year values are \" + Integer.MIN_VALUE + \" - \" + Integer.MAX_VALUE + \".\";\n\t\t} else if (errorcode == 4) {\n\t\t\treturn \"Invalid Month!\\nValid month values are 1 - 12\";\n\t\t} else if (errorcode == 5) {\n\t\t\treturn \"Invalid Day!\\nValid day values are 1 - 31\";\n\t\t} else if (errorcode == 6) {\n\t\t\treturn \"Invalid Hour!\\nValid hour values are 0 - 23\";\n\t\t} else if (errorcode == 7) {\n\t\t\treturn \"Invalid Minute!\\nValid minute values are 0 - 59\";\n\t\t} else if (errorcode == 8) {\n\t\t\treturn \"Invalid Second!\\nValid second values are 0 - 59\";\n\t\t} \n\t\treturn \"Undefined Error Message!\";\n\t}",
"public void setErrorMsg(String text) {\n this.errorMsg = text;\n }",
"public int getErrorNo() {\n return this.errorNo;\n }",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();"
] |
[
"0.7234827",
"0.68487597",
"0.68242407",
"0.68242407",
"0.66320926",
"0.6613902",
"0.6613902",
"0.6613902",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.65931696",
"0.6587221",
"0.6458624",
"0.642881",
"0.6387629",
"0.6339448",
"0.63337046",
"0.6318866",
"0.6310054",
"0.6266495",
"0.6207546",
"0.6169787",
"0.6162002",
"0.61556125",
"0.61209476",
"0.6114965",
"0.61042917",
"0.60988075",
"0.60988075",
"0.60988075",
"0.60916275",
"0.60737956",
"0.6044167",
"0.60035205",
"0.59917176",
"0.59845275",
"0.59643966",
"0.5963419",
"0.59538627",
"0.5917793",
"0.58881736",
"0.58858836",
"0.5880861",
"0.58786815",
"0.5865479",
"0.5863698",
"0.5842632",
"0.583974",
"0.583974",
"0.583974",
"0.583974",
"0.583974",
"0.583974",
"0.583974",
"0.58391654",
"0.58391654",
"0.58391654",
"0.5837601",
"0.5828023",
"0.58268774",
"0.58249444",
"0.5820853",
"0.5818837",
"0.5808825",
"0.5808012",
"0.5803665",
"0.57976645",
"0.5796016",
"0.57934284",
"0.57934284",
"0.57934284",
"0.5786855",
"0.57868457",
"0.5785435",
"0.578205",
"0.576942",
"0.57514906",
"0.57502955",
"0.5743453",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053",
"0.57404053"
] |
0.0
|
-1
|
File content bytes data = 3;
|
@java.lang.Override
public com.google.protobuf.ByteString getData() {
return data_;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"byte[] getData();",
"byte[] getData();",
"byte[] getData();",
"byte[] getData();",
"public void getFile(byte[] data, String name,String server) throws RemoteException;",
"byte[] getByteContent() throws IOException;",
"public ByteBuffer getFileData() {\n\t\treturn fileData;\n\t}",
"byte[] getContent();",
"byte[] getContent() throws IOException;",
"public byte[] getData();",
"public File getDataFile();",
"byte[] readBytes();",
"public byte[] getFilecontent() {\n return filecontent;\n }",
"public void OnFileDataReceived(byte[] data,int read, int length, int downloaded);",
"public FileChunkReference getFileData() {\n return fileData;\n }",
"byte getBlockData();",
"private byte[] getContent(File f) {\n byte[] content = null;\n\n try {\n FileInputStream fis = new FileInputStream(f);\n byte[] temp = new byte[fis.available()];\n fis.read(temp);\n fis.close();\n content = temp;\n } catch (IOException e) {\n System.err.println(e.getMessage());\n }\n\n return content;\n }",
"public byte[] getContent();",
"public FileHandler(byte[] data) {\n this.data = data;\n }",
"public ByteBuffer filedata(int pos) throws IOException\n {\n ByteBuffer buf = ByteBuffer.allocate(1024);\n \t buf.order(ByteOrder.LITTLE_ENDIAN);\n \t byte[] bytes = new byte[1024];\n f.seek(1024*pos);\n \t f.read(bytes);\n \t buf.put(bytes);\n \t return buf;\n }",
"public static byte[] readId3V1Data(File file) {\n\t\tfinal byte[] buffer = new byte[128];\n\t\ttry (RandomAccessFile mp3File = new RandomAccessFile(file, \"r\")) {\n\t\t\tmp3File.seek(mp3File.length() - 128);\n\t\t\tmp3File.read(buffer, 0, 128);\n\t\t} catch (FileNotFoundException e) {\n\n\t\t} catch (IOException e) {\n\n\t\t}\n\t\treturn buffer;\n\t}",
"public byte[] getFileContent() throws IOException {\n if (data != null) {\n return data;\n }\n if (tempFile != null) {\n return FileUtil.readBytes(tempFile);\n }\n return null;\n }",
"FileObject getFile();",
"FileObject getFile();",
"public byte[] getFileBytes(){\n\t\treturn fileBytes;\n\t}",
"public void getData() {\n\t\tContext context = getApplicationContext();\n\t\tint ch;\n\t\tStringBuffer fileContent = new StringBuffer(\"\");\n\t\tFileInputStream fis;\n\t\ttry {\n\t\t\tfis = context.openFileInput(filename);\n\t\t\ttry {\n\t\t\t\twhile ((ch = fis.read()) != -1)\n\n\t\t\t\t\tfileContent.append((char) ch);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tdata = new String(fileContent);\n\n\t}",
"public byte getData() {\n return data;\n }",
"public final ByteBlock getData() { return data; }",
"com.google.protobuf.ByteString getData();",
"com.google.protobuf.ByteString getData();",
"com.google.protobuf.ByteString getData();",
"com.google.protobuf.ByteString getData();",
"com.google.protobuf.ByteString getData();",
"com.google.protobuf.ByteString getData();",
"com.google.protobuf.ByteString getData();",
"com.google.protobuf.ByteString getData();",
"com.google.protobuf.ByteString getData();",
"com.google.protobuf.ByteString getData();",
"com.google.protobuf.ByteString getData();",
"com.google.protobuf.ByteString getData();",
"com.google.protobuf.ByteString getData();",
"byte[] getFile(String sha) throws Exception;",
"void mo12945a(Data data) throws IOException;",
"public byte[] read();",
"com.google.protobuf.ByteString getData(int index);",
"com.google.protobuf.ByteString getData(int index);",
"public void data(byte[] data, int count);",
"@Nullable\n public abstract byte[] getContent() throws IOException;",
"void mo18920a(Data data) throws IOException;",
"File getFile();",
"File getFile();",
"byte[] getBytes();",
"byte[] getBytes();",
"public byte getData() {\n return this.data;\n }",
"public void onDataRecieved(byte data[]);",
"public byte[] getFile() {\n return file;\n }",
"private int readFdocaOneByte() {\n checkForSplitRowAndComplete(1);\n //return dataBuffer_[position_++] & 0xff;\n return dataBuffer_.readUnsignedByte();\n }",
"public byte[] getData()\r\n/* 18: */ {\r\n/* 19:59 */ byte[] data = new byte[4];\r\n/* 20: */ \r\n/* 21:61 */ IntegerHelper.getTwoBytes(this.xfIndex, data, 0); int \r\n/* 22: */ \r\n/* 23: */ \r\n/* 24:64 */ tmp15_14 = 1; byte[] tmp15_13 = data;tmp15_13[tmp15_14] = ((byte)(tmp15_13[tmp15_14] | 0x80));\r\n/* 25: */ \r\n/* 26:66 */ data[2] = ((byte)this.styleNumber);\r\n/* 27: */ \r\n/* 28: */ \r\n/* 29:69 */ data[3] = -1;\r\n/* 30: */ \r\n/* 31:71 */ return data;\r\n/* 32: */ }",
"private byte[] readFdocaBytes(int length) {\n\n checkForSplitRowAndComplete(length);\n\n byte[] b = new byte[length];\n dataBuffer_.readBytes(b);\n// System.arraycopy(dataBuffer_, position_, b, 0, length);\n// position_ += length;\n//\n return b;\n }",
"@Column(name = \"FILE_CONTENT\" )\n @Lob\n public Byte[] getFileContent() {\n return fileContent;\n }",
"public static byte[] readFile(File file, int valueType) {\n if (!file.exists()) {\n Log.e(TAG, \"The file doesn't exist\");\n }\n try {\n ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();\n FileInputStream fileInputStream = new FileInputStream(file);\n BufferedInputStream bufferedInputStream = new BufferedInputStream(fileInputStream);\n byte[] buf = new byte[4096];\n switch (valueType) {\n case 0:\n case 1:\n case 2:\n case 3:\n while (bufferedInputStream.read(buf) != -1) {\n byteArrayOutputStream.write(buf, 16 * valueType, 16);\n }\n break;\n case 4:\n if (!file.getName().equals(\"E_SK2\")) {\n if (!file.getName().equals(\"E_PIN2\")) {\n while (true) {\n int len = bufferedInputStream.read(buf);\n if (len == -1) {\n break;\n } else {\n byteArrayOutputStream.write(buf, 16 * 1, (len - 32) - (16 * 1));\n }\n }\n } else {\n while (true) {\n int len2 = bufferedInputStream.read(buf);\n if (len2 == -1) {\n break;\n } else {\n byteArrayOutputStream.write(buf, 16 * 1, ((len2 - 32) - (16 * 1)) - PKLENGTH);\n }\n }\n }\n } else {\n while (true) {\n int len3 = bufferedInputStream.read(buf);\n if (len3 == -1) {\n break;\n } else {\n byteArrayOutputStream.write(buf, 16 * 4, (len3 - 32) - (16 * 4));\n }\n }\n }\n case 5:\n while (true) {\n int len4 = bufferedInputStream.read(buf);\n if (len4 == -1) {\n break;\n } else {\n byteArrayOutputStream.write(buf, len4 - 32, 32);\n }\n }\n case PUBLICKEY /* 7 */:\n while (true) {\n int len5 = bufferedInputStream.read(buf);\n if (len5 == -1) {\n break;\n } else {\n byteArrayOutputStream.write(buf, (len5 - 32) - PKLENGTH, PKLENGTH);\n }\n }\n case 8:\n while (true) {\n int len6 = bufferedInputStream.read(buf);\n if (len6 == -1) {\n break;\n } else {\n byteArrayOutputStream.write(buf, 0, len6 - 32);\n }\n }\n }\n byte[] buffer = byteArrayOutputStream.toByteArray();\n bufferedInputStream.close();\n fileInputStream.close();\n byteArrayOutputStream.close();\n return buffer;\n } catch (IOException e) {\n Log.e(TAG, \"read file exception!\" + e.getMessage());\n return new byte[0];\n }\n }",
"@Override\n public int getFile() {\n return file;\n }",
"public byte[] getBytes() throws IOException {\r\n return mFile.getBytes();\r\n }",
"@Test\n public void testGetBytes() {\n System.out.println(\"getBytes\");\n RecordFile instance = new RecordFile();\n \n String first = \"hello\";\n String second = \"hello 2\";\n String third = \"hello 3\";\n String meta = \"hello, I'm meta!\";\n \n instance.setMeta(meta.getBytes());\n instance.write(first.getBytes(), 0);\n instance.write(second.getBytes(), 1);\n instance.write(third.getBytes(), 2);\n \n byte[] bytes = instance.getBytes();\n \n instance = new RecordFile(bytes);\n \n Assert.assertEquals(RecordFile.DEFAULT_RECORDS, instance.compacity());\n Assert.assertEquals(meta, new String(instance.getMeta()));\n Assert.assertEquals(first, new String(instance.read(0)));\n Assert.assertEquals(second, new String(instance.read(1)));\n Assert.assertEquals(third, new String(instance.read(2)));\n }",
"public byte[] getByteData() { return bytedata; }",
"public byte[] getbyteArray() {\n byte[] output = new byte[header_size+fileData.length];\n output[0] = (byte)((type & 0xff00)>> 8);\n output[1] = (byte)(type & 0xff);\n output[2] = (byte)((length & 0xff00)>> 8);\n\t output[3] = (byte)(length & 0xff);\n output[4] = (byte)((clientID & 0xff00)>> 8);\n output[5] = (byte)(clientID & 0xff);\n output[6] = action;\n byte[] temp2 = ByteBuffer.allocate(4).putInt(sectionLength).array();\n for(int i=0;i<4;i++) {\n output[7+i] = temp2[i]; \n }\n temp2 = ByteBuffer.allocate(4).putInt(filePosition).array();\n for(int j=0;j<4;j++) {\n output[11+j] = temp2[j]; \n }\n //copy file data\n System.arraycopy(fileData, 0,output, 15,fileData.length); \n return output;\n }",
"private int readFdocaOneByte(int index) {\n\n checkForSplitRowAndComplete(1, index);\n //return dataBuffer_[position_++] & 0xff;\n return dataBuffer_.readByte();\n }",
"public static byte[] readBytesFromFile(File f) {\r\n byte[] bytes = null;\r\n try {\r\n int filesize = (int) f.length();\r\n bytes = new byte[filesize];\r\n DataInputStream in = new DataInputStream(new FileInputStream(f));\r\n in.readFully(bytes);\r\n in.close();\r\n } catch (Exception e) {\r\n System.out.println(\"Error reading byte[] from file: \"\r\n + e.getMessage());\r\n return null;\r\n }\r\n return bytes;\r\n }",
"public Object getContent() {\n/* 112 */ return this.buf;\n/* */ }",
"com.google.protobuf.ByteString getContent();",
"com.google.protobuf.ByteString getContent();",
"public byte[] getFile(final String file) throws RemoteException;",
"String getFile();",
"String getFile();",
"String getFile();",
"com.google.protobuf.ByteString getContentBytes();",
"public static void vu0DownloadData(int index, byte[] data) { }",
"private static byte[] getFileAsByte(String pathFile) {\n\t\tFile file = new File(pathFile);\n\n\t\ttry {\n\t\t\tFileInputStream fin = new FileInputStream(file);\n\t\t\tbyte fileContent[] = new byte[(int) file.length()];\n\t\t\tfin.read(fileContent);\n\t\t\tfin.close();\n\n\t\t\treturn fileContent;\n\t\t} catch (FileNotFoundException e) {\n\t\t\tLOGGER.error(\"File not found: \" + e);\n\t\t} catch (IOException e) {\n\t\t\tLOGGER.error(\"Exception while reading the file: \" + e);\n\t\t}\n\t\treturn null;\n\t}",
"public byte[] getData(String h) {\n String[] CATF = {\"git\", \"cat-file\", \"-p\", h};\n return exec(CATF);\n }",
"private static byte[] m136428a(File file) throws IOException {\n FileInputStream fileInputStream = new FileInputStream(file);\n byte[] bArr = new byte[((int) file.length())];\n int i = 0;\n while (i < bArr.length) {\n int read = fileInputStream.read(bArr, i, bArr.length - i);\n if (read < 0) {\n break;\n }\n i += read;\n }\n if (i >= bArr.length) {\n fileInputStream.close();\n return bArr;\n }\n StringBuilder sb = new StringBuilder(\"Could not completely read file \");\n sb.append(file.getName());\n throw new IOException(sb.toString());\n }",
"char[] getCharContent() throws IOException;",
"public byte[] loadData(FileWindow window)\n\t\t{\n\t\t\tbyte[] result = null;\n\t\t\tFileChannel channel = getFileChannel(false);\n\t\t\tif (channel != null)\n\t\t\t{\n\t\t\t\tByteBuffer buffer = ByteBuffer.allocate(window.getFilePartSize());\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tchannel.read(buffer, window.getFilePartOffset());\n\t\t\t\t\tif (buffer.hasArray())\n\t\t\t\t\t{\n\t\t\t\t\t\tresult = buffer.array();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch (IOException e)\n\t\t\t\t{\n\t\t\t\t\tlog.error(\"Error reading from file channel \" + channel, e);\n\t\t\t\t}\n\t\t\t\tfinally\n\t\t\t\t{\n\t\t\t\t\tIOUtils.closeQuietly(channel);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn result;\n\t\t}",
"byte[] getData() {\n return data;\n }",
"InputStream getDataStream();",
"public byte[] bytes() throws IOException {\n try(FileInputStream fis = new FileInputStream(file)) {\n return ByteStreams.toByteArray(fis);\n }\n }",
"public int getFile() {\n validify();\n return Client.INSTANCE.pieceGetFile(ptr);\n }",
"private byte[] readFixedLengthContent(ByteBuf in) throws UnsupportedEncodingException {\n if (in.readableBytes() < 2) {\n return new byte[]{};\n }\n int strLen = in.readableBytes();\n// if (in.readableBytes() < strLen) {\n// return null;\n// }\n byte[] strRaw = new byte[strLen];\n in.readBytes(strRaw);\n\n return strRaw;\n }",
"public File getFileValue();",
"void setData(byte[] data);",
"public byte[] getData()\r\n/* 20: */ {\r\n/* 21:60 */ byte[] data = new byte[2];\r\n/* 22: */ \r\n/* 23:62 */ IntegerHelper.getTwoBytes(this.calcCount, data, 0);\r\n/* 24: */ \r\n/* 25:64 */ return data;\r\n/* 26: */ }",
"com.google.protobuf.ByteString\n getContentBytes();",
"com.google.protobuf.ByteString\n getContentBytes();",
"com.google.protobuf.ByteString\n getContentBytes();",
"com.google.protobuf.ByteString\n getContentBytes();",
"public byte[] getData() {\n\treturn null;\n }",
"byte[] inflate(byte[] data) throws IOException;",
"public byte[] getData() {\n return data;\n }",
"public byte[] getData()\r\n/* 38: */ {\r\n/* 39: 98 */ byte[] data = new byte[18];\r\n/* 40: */ \r\n/* 41:100 */ int options = 0;\r\n/* 42:102 */ if (this.promptBoxVisible) {\r\n/* 43:104 */ options |= PROMPT_BOX_VISIBLE_MASK;\r\n/* 44: */ }\r\n/* 45:107 */ if (this.promptBoxAtCell) {\r\n/* 46:109 */ options |= PROMPT_BOX_AT_CELL_MASK;\r\n/* 47: */ }\r\n/* 48:112 */ if (this.validityDataCached) {\r\n/* 49:114 */ options |= VALIDITY_DATA_CACHED_MASK;\r\n/* 50: */ }\r\n/* 51:117 */ IntegerHelper.getTwoBytes(options, data, 0);\r\n/* 52: */ \r\n/* 53:119 */ IntegerHelper.getFourBytes(this.objectId, data, 10);\r\n/* 54: */ \r\n/* 55:121 */ IntegerHelper.getFourBytes(this.numDVRecords, data, 14);\r\n/* 56: */ \r\n/* 57:123 */ return data;\r\n/* 58: */ }",
"public byte[] getData() {\r\n return Arrays.copyOf(data, data.length);\r\n }",
"public abstract byte read_octet();",
"void loadNodeData(byte[] data) throws Exception;"
] |
[
"0.6709735",
"0.6709735",
"0.6709735",
"0.6709735",
"0.66785",
"0.6659824",
"0.6581903",
"0.6383353",
"0.63418925",
"0.62733114",
"0.62677306",
"0.62643033",
"0.61281914",
"0.609729",
"0.6084979",
"0.60340255",
"0.601819",
"0.60013723",
"0.595937",
"0.59351724",
"0.59279966",
"0.591943",
"0.589374",
"0.589374",
"0.5880462",
"0.58455914",
"0.5838588",
"0.58351654",
"0.5813266",
"0.5813266",
"0.5813266",
"0.5813266",
"0.5813266",
"0.5813266",
"0.5813266",
"0.5813266",
"0.5813266",
"0.5813266",
"0.5813266",
"0.5813266",
"0.5813266",
"0.5794297",
"0.5770274",
"0.5748435",
"0.57187235",
"0.57187235",
"0.5708217",
"0.56941706",
"0.5679498",
"0.56645906",
"0.56645906",
"0.56630516",
"0.56630516",
"0.56359535",
"0.56304836",
"0.56226707",
"0.56213856",
"0.5604026",
"0.5602977",
"0.5602889",
"0.56022096",
"0.557618",
"0.5575854",
"0.5548122",
"0.55321366",
"0.5509312",
"0.5502337",
"0.54915285",
"0.5478545",
"0.5476886",
"0.5476886",
"0.5475332",
"0.54735583",
"0.54735583",
"0.54735583",
"0.5462679",
"0.5461663",
"0.5457024",
"0.5456652",
"0.5419763",
"0.5409318",
"0.5407993",
"0.54057324",
"0.53989375",
"0.5396377",
"0.53803045",
"0.53771585",
"0.53761363",
"0.53729665",
"0.53659993",
"0.53529865",
"0.53529865",
"0.53496736",
"0.53496736",
"0.5349085",
"0.5349048",
"0.5348476",
"0.5330209",
"0.53163624",
"0.5310617",
"0.5300257"
] |
0.0
|
-1
|
.Status status = 1;
|
@java.lang.Override public int getStatusValue() {
return status_;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setStatus(String status) { this.status = status; }",
"void setStatus(STATUS status);",
"public void setStatus(EnumVar status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\r\n\t this.status = status;\r\n\t }",
"public void setStatus(Integer status) {\r\n this.status = status;\r\n }",
"public void setStatus(Integer status) {\r\n this.status = status;\r\n }",
"void setStatus(int status);",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(int status){\r\n\t\tthis.status=status;\r\n\t}",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(int status);",
"public void setStatus(int status);",
"public void setStatus(Boolean s){ status = s;}",
"public void setStatus(int status) {\n STATUS = status;\n }",
"public void setStatus(Status newStatus){\n status = newStatus;\n }",
"public void setStatus(String stat)\n {\n status = stat;\n }",
"private void setStatus(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n status_ = value;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(long status) {\r\n this.status = status;\r\n }",
"public void setStatus(Integer status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(Integer status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(String status) {\r\n this.status = status;\r\n }",
"public void setStatus(java.lang.Object status) {\n this.status = status;\n }",
"public void setStatus(Status status)\n {\n this.status = status;\n }",
"public void setgetStatus()\r\n\t{\r\n\t\tthis.status = 'S';\r\n\t}",
"public void setStatus(Byte status) {\r\n\t\tthis.status = status;\r\n\t}",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"@Override\n\t\tpublic void setStatus(int status) {\n\t\t\t\n\t\t}",
"public void setStatus(StatusEnum status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(Byte status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(int status) {\n this.status = status;\n }",
"public void setStatus(int status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\r\n this.status = status;\r\n }",
"public void setStatus(String status) {\r\n this.status = status;\r\n }",
"public void setStatus(String status) {\r\n this.status = status;\r\n }",
"public void setStatus(Short status) {\n this.status = status;\n }",
"public void setStatus(STATUS status) {\n this.status = status;\n }",
"void setStatus(String status);",
"public void setStatus(Short status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(Short status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(int v) \n {\n \n if (this.status != v)\n {\n this.status = v;\n setModified(true);\n }\n \n \n }",
"public void setStatus( Short status ) {\n this.status = status;\n }",
"public void setStatus(String newStatus){\n\n //assigns the value of newStatus to the status field\n this.status = newStatus;\n }",
"public Status getStatus(){\n return status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\n this.status = status;\n }"
] |
[
"0.7656765",
"0.76468766",
"0.7565312",
"0.7561203",
"0.75449044",
"0.75449044",
"0.75349724",
"0.74959093",
"0.74959093",
"0.74959093",
"0.74959093",
"0.74959093",
"0.74959093",
"0.74959093",
"0.7482147",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.74783385",
"0.74783385",
"0.746719",
"0.74658287",
"0.746098",
"0.7456925",
"0.7452718",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435248",
"0.7432568",
"0.7432568",
"0.7425985",
"0.74143654",
"0.74118876",
"0.7398544",
"0.7398282",
"0.73973185",
"0.73973185",
"0.7396562",
"0.73950607",
"0.7392215",
"0.7392215",
"0.7382456",
"0.7382456",
"0.7378742",
"0.73726434",
"0.73726434",
"0.7368736",
"0.73626804",
"0.7351154",
"0.7345713",
"0.7345713",
"0.73451585",
"0.7332328",
"0.7329264",
"0.73258084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.728639",
"0.728639",
"0.728639"
] |
0.0
|
-1
|
.Status status = 1;
|
public Builder setStatusValue(int value) {
status_ = value;
onChanged();
return this;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setStatus(String status) { this.status = status; }",
"void setStatus(STATUS status);",
"public void setStatus(EnumVar status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\r\n\t this.status = status;\r\n\t }",
"public void setStatus(Integer status) {\r\n this.status = status;\r\n }",
"public void setStatus(Integer status) {\r\n this.status = status;\r\n }",
"void setStatus(int status);",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(int status){\r\n\t\tthis.status=status;\r\n\t}",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(int status);",
"public void setStatus(int status);",
"public void setStatus(Boolean s){ status = s;}",
"public void setStatus(int status) {\n STATUS = status;\n }",
"public void setStatus(Status newStatus){\n status = newStatus;\n }",
"public void setStatus(String stat)\n {\n status = stat;\n }",
"private void setStatus(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n status_ = value;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(long status) {\r\n this.status = status;\r\n }",
"public void setStatus(Integer status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(Integer status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(String status) {\r\n this.status = status;\r\n }",
"public void setStatus(java.lang.Object status) {\n this.status = status;\n }",
"public void setStatus(Status status)\n {\n this.status = status;\n }",
"public void setgetStatus()\r\n\t{\r\n\t\tthis.status = 'S';\r\n\t}",
"public void setStatus(Byte status) {\r\n\t\tthis.status = status;\r\n\t}",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"@Override\n\t\tpublic void setStatus(int status) {\n\t\t\t\n\t\t}",
"public void setStatus(StatusEnum status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(Byte status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(int status) {\n this.status = status;\n }",
"public void setStatus(int status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\r\n this.status = status;\r\n }",
"public void setStatus(String status) {\r\n this.status = status;\r\n }",
"public void setStatus(String status) {\r\n this.status = status;\r\n }",
"public void setStatus(Short status) {\n this.status = status;\n }",
"public void setStatus(STATUS status) {\n this.status = status;\n }",
"void setStatus(String status);",
"public void setStatus(Short status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(Short status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(int v) \n {\n \n if (this.status != v)\n {\n this.status = v;\n setModified(true);\n }\n \n \n }",
"public void setStatus( Short status ) {\n this.status = status;\n }",
"public void setStatus(String newStatus){\n\n //assigns the value of newStatus to the status field\n this.status = newStatus;\n }",
"public Status getStatus(){\n return status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\n this.status = status;\n }"
] |
[
"0.7656765",
"0.76468766",
"0.7565312",
"0.7561203",
"0.75449044",
"0.75449044",
"0.75349724",
"0.74959093",
"0.74959093",
"0.74959093",
"0.74959093",
"0.74959093",
"0.74959093",
"0.74959093",
"0.7482147",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.74783385",
"0.74783385",
"0.746719",
"0.74658287",
"0.746098",
"0.7456925",
"0.7452718",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435248",
"0.7432568",
"0.7432568",
"0.7425985",
"0.74143654",
"0.74118876",
"0.7398544",
"0.7398282",
"0.73973185",
"0.73973185",
"0.7396562",
"0.73950607",
"0.7392215",
"0.7392215",
"0.7382456",
"0.7382456",
"0.7378742",
"0.73726434",
"0.73726434",
"0.7368736",
"0.73626804",
"0.7351154",
"0.7345713",
"0.7345713",
"0.73451585",
"0.7332328",
"0.7329264",
"0.73258084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.728639",
"0.728639",
"0.728639"
] |
0.0
|
-1
|
.Status status = 1;
|
@java.lang.Override
public entities.Torrent.Status getStatus() {
@SuppressWarnings("deprecation")
entities.Torrent.Status result = entities.Torrent.Status.valueOf(status_);
return result == null ? entities.Torrent.Status.UNRECOGNIZED : result;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setStatus(String status) { this.status = status; }",
"void setStatus(STATUS status);",
"public void setStatus(EnumVar status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\r\n\t this.status = status;\r\n\t }",
"public void setStatus(Integer status) {\r\n this.status = status;\r\n }",
"public void setStatus(Integer status) {\r\n this.status = status;\r\n }",
"void setStatus(int status);",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(int status){\r\n\t\tthis.status=status;\r\n\t}",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(int status);",
"public void setStatus(int status);",
"public void setStatus(Boolean s){ status = s;}",
"public void setStatus(int status) {\n STATUS = status;\n }",
"public void setStatus(Status newStatus){\n status = newStatus;\n }",
"public void setStatus(String stat)\n {\n status = stat;\n }",
"private void setStatus(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n status_ = value;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(long status) {\r\n this.status = status;\r\n }",
"public void setStatus(Integer status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(Integer status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(String status) {\r\n this.status = status;\r\n }",
"public void setStatus(java.lang.Object status) {\n this.status = status;\n }",
"public void setStatus(Status status)\n {\n this.status = status;\n }",
"public void setgetStatus()\r\n\t{\r\n\t\tthis.status = 'S';\r\n\t}",
"public void setStatus(Byte status) {\r\n\t\tthis.status = status;\r\n\t}",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"@Override\n\t\tpublic void setStatus(int status) {\n\t\t\t\n\t\t}",
"public void setStatus(StatusEnum status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(Byte status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(int status) {\n this.status = status;\n }",
"public void setStatus(int status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\r\n this.status = status;\r\n }",
"public void setStatus(String status) {\r\n this.status = status;\r\n }",
"public void setStatus(String status) {\r\n this.status = status;\r\n }",
"public void setStatus(Short status) {\n this.status = status;\n }",
"public void setStatus(STATUS status) {\n this.status = status;\n }",
"void setStatus(String status);",
"public void setStatus(Short status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(Short status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(int v) \n {\n \n if (this.status != v)\n {\n this.status = v;\n setModified(true);\n }\n \n \n }",
"public void setStatus( Short status ) {\n this.status = status;\n }",
"public void setStatus(String newStatus){\n\n //assigns the value of newStatus to the status field\n this.status = newStatus;\n }",
"public Status getStatus(){\n return status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\n this.status = status;\n }"
] |
[
"0.7656765",
"0.76468766",
"0.7565312",
"0.7561203",
"0.75449044",
"0.75449044",
"0.75349724",
"0.74959093",
"0.74959093",
"0.74959093",
"0.74959093",
"0.74959093",
"0.74959093",
"0.74959093",
"0.7482147",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.74783385",
"0.74783385",
"0.746719",
"0.74658287",
"0.746098",
"0.7456925",
"0.7452718",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435248",
"0.7432568",
"0.7432568",
"0.7425985",
"0.74143654",
"0.74118876",
"0.7398544",
"0.7398282",
"0.73973185",
"0.73973185",
"0.7396562",
"0.73950607",
"0.7392215",
"0.7392215",
"0.7382456",
"0.7382456",
"0.7378742",
"0.73726434",
"0.73726434",
"0.7368736",
"0.73626804",
"0.7351154",
"0.7345713",
"0.7345713",
"0.73451585",
"0.7332328",
"0.7329264",
"0.73258084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.728639",
"0.728639",
"0.728639"
] |
0.0
|
-1
|
.Status status = 1;
|
public Builder setStatus(entities.Torrent.Status value) {
if (value == null) {
throw new NullPointerException();
}
status_ = value.getNumber();
onChanged();
return this;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setStatus(String status) { this.status = status; }",
"void setStatus(STATUS status);",
"public void setStatus(EnumVar status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\r\n\t this.status = status;\r\n\t }",
"public void setStatus(Integer status) {\r\n this.status = status;\r\n }",
"public void setStatus(Integer status) {\r\n this.status = status;\r\n }",
"void setStatus(int status);",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(int status){\r\n\t\tthis.status=status;\r\n\t}",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(int status);",
"public void setStatus(int status);",
"public void setStatus(Boolean s){ status = s;}",
"public void setStatus(int status) {\n STATUS = status;\n }",
"public void setStatus(Status newStatus){\n status = newStatus;\n }",
"public void setStatus(String stat)\n {\n status = stat;\n }",
"private void setStatus(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n status_ = value;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(long status) {\r\n this.status = status;\r\n }",
"public void setStatus(Integer status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(Integer status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(String status) {\r\n this.status = status;\r\n }",
"public void setStatus(java.lang.Object status) {\n this.status = status;\n }",
"public void setStatus(Status status)\n {\n this.status = status;\n }",
"public void setgetStatus()\r\n\t{\r\n\t\tthis.status = 'S';\r\n\t}",
"public void setStatus(Byte status) {\r\n\t\tthis.status = status;\r\n\t}",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"@Override\n\t\tpublic void setStatus(int status) {\n\t\t\t\n\t\t}",
"public void setStatus(StatusEnum status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(Byte status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(int status) {\n this.status = status;\n }",
"public void setStatus(int status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\r\n this.status = status;\r\n }",
"public void setStatus(String status) {\r\n this.status = status;\r\n }",
"public void setStatus(String status) {\r\n this.status = status;\r\n }",
"public void setStatus(Short status) {\n this.status = status;\n }",
"public void setStatus(STATUS status) {\n this.status = status;\n }",
"void setStatus(String status);",
"public void setStatus(Short status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(Short status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(int v) \n {\n \n if (this.status != v)\n {\n this.status = v;\n setModified(true);\n }\n \n \n }",
"public void setStatus( Short status ) {\n this.status = status;\n }",
"public void setStatus(String newStatus){\n\n //assigns the value of newStatus to the status field\n this.status = newStatus;\n }",
"public Status getStatus(){\n return status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\n this.status = status;\n }"
] |
[
"0.7656765",
"0.76468766",
"0.7565312",
"0.7561203",
"0.75449044",
"0.75449044",
"0.75349724",
"0.74959093",
"0.74959093",
"0.74959093",
"0.74959093",
"0.74959093",
"0.74959093",
"0.74959093",
"0.7482147",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.74783385",
"0.74783385",
"0.746719",
"0.74658287",
"0.746098",
"0.7456925",
"0.7452718",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435248",
"0.7432568",
"0.7432568",
"0.7425985",
"0.74143654",
"0.74118876",
"0.7398544",
"0.7398282",
"0.73973185",
"0.73973185",
"0.7396562",
"0.73950607",
"0.7392215",
"0.7392215",
"0.7382456",
"0.7382456",
"0.7378742",
"0.73726434",
"0.73726434",
"0.7368736",
"0.73626804",
"0.7351154",
"0.7345713",
"0.7345713",
"0.73451585",
"0.7332328",
"0.7329264",
"0.73258084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.728639",
"0.728639",
"0.728639"
] |
0.0
|
-1
|
.Status status = 1;
|
public Builder clearStatus() {
status_ = 0;
onChanged();
return this;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setStatus(String status) { this.status = status; }",
"void setStatus(STATUS status);",
"public void setStatus(EnumVar status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\r\n\t this.status = status;\r\n\t }",
"public void setStatus(Integer status) {\r\n this.status = status;\r\n }",
"public void setStatus(Integer status) {\r\n this.status = status;\r\n }",
"void setStatus(int status);",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(int status){\r\n\t\tthis.status=status;\r\n\t}",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(int status);",
"public void setStatus(int status);",
"public void setStatus(Boolean s){ status = s;}",
"public void setStatus(int status) {\n STATUS = status;\n }",
"public void setStatus(Status newStatus){\n status = newStatus;\n }",
"public void setStatus(String stat)\n {\n status = stat;\n }",
"private void setStatus(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n status_ = value;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n this.status = status;\n }",
"public void setStatus(long status) {\r\n this.status = status;\r\n }",
"public void setStatus(Integer status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(Integer status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(String status) {\r\n this.status = status;\r\n }",
"public void setStatus(java.lang.Object status) {\n this.status = status;\n }",
"public void setStatus(Status status)\n {\n this.status = status;\n }",
"public void setgetStatus()\r\n\t{\r\n\t\tthis.status = 'S';\r\n\t}",
"public void setStatus(Byte status) {\r\n\t\tthis.status = status;\r\n\t}",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"@Override\n\t\tpublic void setStatus(int status) {\n\t\t\t\n\t\t}",
"public void setStatus(StatusEnum status) {\n this.status = status;\n }",
"public void setStatus(Byte status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(Byte status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(int status) {\n this.status = status;\n }",
"public void setStatus(int status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\r\n this.status = status;\r\n }",
"public void setStatus(String status) {\r\n this.status = status;\r\n }",
"public void setStatus(String status) {\r\n this.status = status;\r\n }",
"public void setStatus(Short status) {\n this.status = status;\n }",
"public void setStatus(STATUS status) {\n this.status = status;\n }",
"void setStatus(String status);",
"public void setStatus(Short status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(Short status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(int v) \n {\n \n if (this.status != v)\n {\n this.status = v;\n setModified(true);\n }\n \n \n }",
"public void setStatus( Short status ) {\n this.status = status;\n }",
"public void setStatus(String newStatus){\n\n //assigns the value of newStatus to the status field\n this.status = newStatus;\n }",
"public Status getStatus(){\n return status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\n this.status = status;\n }"
] |
[
"0.7656765",
"0.76468766",
"0.7565312",
"0.7561203",
"0.75449044",
"0.75449044",
"0.75349724",
"0.74959093",
"0.74959093",
"0.74959093",
"0.74959093",
"0.74959093",
"0.74959093",
"0.74959093",
"0.7482147",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.7481205",
"0.74783385",
"0.74783385",
"0.746719",
"0.74658287",
"0.746098",
"0.7456925",
"0.7452718",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435934",
"0.7435248",
"0.7432568",
"0.7432568",
"0.7425985",
"0.74143654",
"0.74118876",
"0.7398544",
"0.7398282",
"0.73973185",
"0.73973185",
"0.7396562",
"0.73950607",
"0.7392215",
"0.7392215",
"0.7382456",
"0.7382456",
"0.7378742",
"0.73726434",
"0.73726434",
"0.7368736",
"0.73626804",
"0.7351154",
"0.7345713",
"0.7345713",
"0.73451585",
"0.7332328",
"0.7329264",
"0.73258084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.72955084",
"0.728639",
"0.728639",
"0.728639"
] |
0.0
|
-1
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.