code
stringlengths
73
34.1k
label
stringclasses
1 value
public JSONObject getJson() throws JSONException { JSONObject json = create(); json.put("type", type); json.put("category", getCategory()); if (label != null && !label.isEmpty()) json.put("label", label); if (displaySequence != null && displaySequence > 0) ...
java
public static String initializeLogging() throws IOException { System.setProperty("org.slf4j.simpleLogger.logFile", "System.out"); System.setProperty("org.slf4j.simpleLogger.showDateTime", "true"); System.setProperty("org.slf4j.simpleLogger.dateTimeFormat", "yyyyMMdd.HH:mm:ss.SSS"); // Pe...
java
public List<TaskInstance> getSubtaskInstances(Long masterTaskInstId) throws DataAccessException { try { db.openConnection(); String query = "select " + getTaskInstanceSelect() + " from TASK_INSTANCE ti where TASK_INST_SECONDARY_OWNER = ? and TASK_INST_SECONDARY_OWNER_...
java
public void setTaskInstanceGroups(Long taskInstId, String[] groups) throws DataAccessException { try { db.openConnection(); // get group IDs StringBuffer sb = new StringBuffer(); sb.append("select USER_GROUP_ID from USER_GROUP where GROUP_NAME in ("); ...
java
public void setTaskInstanceIndices(Long taskInstId, Map<String,String> indices) throws DataAccessException { try { db.openConnection(); // delete existing indices String query = "delete from INSTANCE_INDEX where INSTANCE_ID=? and OWNER_TYPE='TASK_INSTANCE'"; ...
java
@Override @Path("/{solutionId}") @ApiOperation(value="Retrieve a solution or all solutions", notes="If {solutionId} is not present, returns all solutions.", response=Solution.class, responseContainer="List") public JSONObject get(String path, Map<String,String> headers) throws ServiceExcepti...
java
protected List<Value> getDefinedValues(TaskRuntimeContext runtimeContext) { List<Value> values = new ArrayList<Value>(); String varAttr = runtimeContext.getTaskAttribute(TaskAttributeConstant.VARIABLES); if (!StringHelper.isEmpty(varAttr)) { List<String[]> parsed = StringHelper.parse...
java
private String getCallingClassName() { StackTraceElement[] stack = (new Throwable()).getStackTrace(); String className = stack[4].getClassName(); if (className == null || !(className.startsWith("com.centurylink") || className.startsWith("com.qwest"))) { className = stack[3].getClass...
java
protected HttpResponse readInput() throws IOException { InputStream is = null; ByteArrayOutputStream baos = new ByteArrayOutputStream(); try { byte[] buffer = new byte[2048]; try { is = connection.getInputStream(); while (maxBytes == -1 || ...
java
public static String[] extractBasicAuthCredentials(String authHeader) { return new String(Base64.decodeBase64(authHeader.substring("Basic ".length()).getBytes())).split(":"); }
java
public AssetRef retrieveRef(String name) throws IOException, SQLException { String select = "select definition_id, name, ref from ASSET_REF where name = ?"; try (Connection conn = getDbConnection(); PreparedStatement stmt = conn.prepareStatement(select)) { stmt.setString(1, n...
java
public AssetRef retrieveRef(Long id) throws IOException, SQLException { String select = "select definition_id, name, ref from ASSET_REF where definition_id = ?"; try (Connection conn = getDbConnection(); PreparedStatement stmt = conn.prepareStatement(select)) { stmt.setLong(1...
java
public List<AssetRef> retrieveAllRefs(Date cutoffDate) throws IOException, SQLException { List<AssetRef> assetRefList = null; String select = "select definition_id, name, ref from ASSET_REF "; if (cutoffDate != null) select += "where ARCHIVE_DT >= ? "; select += "order by ARC...
java
public void updateRefs(boolean assetImport) throws SQLException, IOException { List<AssetRef> refs = getCurrentRefs(); if (refs == null || refs.isEmpty()) getOut().println("Skipping ASSET_REF table insert/update due to empty current assets"); else { String select = "selec...
java
public static Tracing getTracing(String serviceName, CurrentTraceContext context) { Tracing tracing = Tracing.current(); if (tracing == null) { // TODO reporter based on prop/config tracing = getBuilder(serviceName, context).build(); } return tracing; }
java
public boolean match(String accessPath) { if (extension != null) { for (int i = accessPath.length() - 1; i >= 0; i--) { if (accessPath.charAt(i) == '.') { String ext = accessPath.substring(i + 1); if (extension.equals(ext)) { ...
java
public boolean send(String topic, String message) throws IOException { List<Session> sessions = topicSubscribers.get(topic); if (sessions != null) { for (Session session : sessions) { session.getBasicRemote().sendText(message); } } return sessions ...
java
@GET public JSONObject get(String path, Map<String,String> headers) throws ServiceException, JSONException { throw new ServiceException(ServiceException.NOT_ALLOWED, "GET not implemented"); }
java
@POST public JSONObject post(String path, JSONObject content, Map<String,String> headers) throws ServiceException, JSONException { throw new ServiceException(ServiceException.NOT_ALLOWED, "POST not implemented"); }
java
@PUT public JSONObject put(String path, JSONObject content, Map<String,String> headers) throws ServiceException, JSONException { throw new ServiceException(ServiceException.NOT_ALLOWED, "PUT not implemented"); }
java
@DELETE public JSONObject delete(String path, JSONObject content, Map<String,String> headers) throws ServiceException, JSONException { throw new ServiceException(ServiceException.NOT_ALLOWED, "DELETE not implemented"); }
java
public String export(String downloadFormat, Map<String,String> headers) throws ServiceException { try { JsonExport exporter = getExporter(headers); if (Listener.DOWNLOAD_FORMAT_EXCEL.equals(downloadFormat)) return exporter.exportXlsxBase64(); else if (Listener...
java
protected JSONObject invokeServiceProcess(String name, Object request, String requestId, Map<String,Object> parameters, Map<String,String> headers) throws ServiceException { JSONObject responseJson; Map<String,String> responseHeaders = new HashMap<>(); Object responseObject = Service...
java
protected int getWaitPeriodInSeconds() throws ActivityException { String unit = super.getAttributeValue(WAIT_UNIT); int factor; if (MINUTES.equals(unit)) factor = 60; else if (HOURS.equals(unit)) factor = 3600; else if (DAYS.equals(unit)) factor = 86400; else factor = 1; ...
java
public boolean isRoleMapped(Long pRoleId){ if(userRoles == null || userRoles.length == 0){ return false; } for(int i=0; i<userRoles.length; i++){ if(userRoles[i].getId().longValue() == pRoleId.longValue()){ return true; } } retur...
java
protected Process getSubflow(Microservice service) throws ActivityException { AssetVersionSpec spec = new AssetVersionSpec(service.getSubflow()); try { Process process = ProcessCache.getProcessSmart(spec); if (process == null) throw new ActivityException("Subflow ...
java
protected Map<String,String> createBindings(List<Variable> childVars, int index, Microservice service, boolean passDocumentContent) throws ActivityException { Map<String,String> parameters = new HashMap<>(); for (int i = 0; i < childVars.size(); i++) { Variable childVar = childVa...
java
public static String getOverrideAttributeName(String rawName, String subType, String subId) { if (OwnerType.ACTIVITY.equals(subType)) return OVERRIDE_ACTIVITY + subId + ":" + rawName; else if (OwnerType.WORK_TRANSITION.equals(subType)) return OVERRIDE_TRANSITION + subId + ":"...
java
public void run() throws SQLException { if (ApplicationContext.isDevelopment() && embeddedDb.checkRunning()) { // only checked in development (otherwise let db startup file due to locked resources) logger.severe("\n***WARNING***\nEmbedded DB appears to be running already. This can happ...
java
public long getId(File file) throws IOException { Long id = file2id.get(file); if (id == null) { id = gitHash(file); file2id.put(file, id); id2file.put(id, file); } return id; }
java
public String getGitId(File input) throws IOException { String hash = ""; if (input.isFile()) { FileInputStream fis = null; try { int fileSize = (int)input.length(); fis = new FileInputStream(input); byte[] fileBytes = new byte[file...
java
public String getRemoteCommit(String branch) throws Exception { fetch(); ObjectId commit = localRepo.resolve("origin/" + branch); if (commit != null) return commit.getName(); else return null; }
java
public void checkout(String branch) throws Exception { if (!branch.equals(getBranch())) { createBranchIfNeeded(branch); git.checkout().setName(branch).setStartPoint("origin/" + branch) .setUpstreamMode(CreateBranchCommand.SetupUpstreamMode.TRACK).call(); // fo...
java
protected void createBranchIfNeeded(String branch) throws Exception { fetch(); // in case the branch is not known locally if (localRepo.findRef(branch) == null) { git.branchCreate() .setName(branch) .setUpstreamMode(SetupUpstreamMode.TRACK) .setSt...
java
public CommitInfo getCommitInfo(String path) throws Exception { Iterator<RevCommit> revCommits = git.log().addPath(path).setMaxCount(1).call().iterator(); if (revCommits.hasNext()) { RevCommit revCommit = revCommits.next(); CommitInfo commitInfo = new CommitInfo(revCommit.getId()...
java
protected String getPackageName(String path) throws IOException { return path.substring(getAssetPath().length() + 1, path.length() - 5).replace('/', '.'); }
java
public synchronized void setActivityInstanceStatus(ActivityInstance actInst, Integer status, String statusMessage) throws SQLException { if (cache_activity_transition==CACHE_ONLY) { actInst.setStatusCode(status); actInst.setMessage(statusMessage); } else {...
java
@Override public int compareTo(ServicePath servicePath) { // longer paths come first if (segments.length != servicePath.segments.length) { return servicePath.segments.length - segments.length; } else { for (int i = 0; i < segments.length; i++) { ...
java
@Override @Path("/{groupName}") @ApiOperation(value="Retrieve a workgroup or all workgroups", notes="If groupName is not present, returns all workgroups.", response=Workgroup.class, responseContainer="List") public JSONObject get(String path, Map<String,String> headers) throws ServiceExc...
java
static File getLibDir() throws IOException { String mdwHome = System.getenv("MDW_HOME"); if (mdwHome == null) mdwHome = System.getProperty("mdw.home"); if (mdwHome == null) throw new IOException("Missing environment variable: MDW_HOME"); File mdwDir = new File(mdw...
java
public void init(String listenerName, Properties parameters) throws PropertyException { try { if (!parameters.containsKey(HOST_LIST)) throw new Exception("Missing bootstrap.servers property for Kafka listener"); else { String[] hostarray = parameters.getP...
java
private void startSpan(ActivityRuntimeContext context) { Tracing tracing = TraceHelper.getTracing("mdw-activity"); Tracer tracer = tracing.tracer(); Span span = tracer.currentSpan(); if (span == null) { // async brave server if b3 requestHeaders populated (subspan) ...
java
protected void populateResponseHeaders(Set<String> requestHeaderKeys, Map<String,String> metaInfo, HttpServletResponse response) { for (String key : metaInfo.keySet()) { if (!Listener.AUTHENTICATED_USER_HEADER.equals(key) && !Listener.AUTHENTICATED_JWT.equals(key) ...
java
private JSONObject createResponseMeta(Map<String,String> metaInfo, Set<String> reqMetaInfo, Long ownerId, long requestTime) throws EventHandlerException, JSONException, ServiceException { JSONObject meta = new JsonObject(); JSONObject headers = new JsonObject(); for (String key : me...
java
public Response createErrorResponse(String req, Map<String,String> metaInfo, ServiceException ex) { Request request = new Request(0L); request.setContent(req); Response response = new Response(); String contentType = metaInfo.get(Listener.METAINFO_CONTENT_TYPE); if (contentType ...
java
public InternalEvent buildProcessStartMessage(Long processId, Long eventInstId, String masterRequestId, Map<String, String> parameters) { InternalEvent evMsg = InternalEvent.createProcessStartMessage(processId, OwnerType.DOCUMENT, eventInstId, masterRequestId, null, null, null); ...
java
public Long getProcessId(String procname) throws Exception { Process proc = ProcessCache.getProcess(procname, 0); if (proc == null) throw new DataAccessException(0, "Cannot find process with name " + procname + ", version 0"); return proc.getId(); }
java
public static String Replace(String aSrcStr, String aSearchStr, String aReplaceStr) { if (aSrcStr == null || aSearchStr == null || aReplaceStr == null) return aSrcStr; if (aSearchStr.length() == 0 || aSrcStr.length() == 0 || aSrcStr.indexOf(aSearchStr) == -1) { ...
java
public static boolean isEqualIgnoreCase(String pStr1, String pStr2) { if (pStr1 == null && pStr2 == null) { return true; } else if (pStr1 == null || pStr2 == null) { return false; } else if (pStr1.equalsIgnoreCase(pStr2)) { return true; } retur...
java
public static boolean isEqual(String pStr1, String pStr2) { if (pStr1 == null && pStr2 == null) { return true; } else if (pStr1 == null || pStr2 == null) { return false; } else if (pStr1.equals(pStr2)) { return true; } return false; }
java
public static String cleanString(String pStr) { if (pStr == null || pStr.equals("")) { return pStr; } StringBuffer buff = new StringBuffer(); for (int i = 0; i < pStr.length(); i++) { char aChar = pStr.charAt(i); if (Character.isLetterOrDigit(aChar)) {...
java
public static String stripNewLineChar(String pString) { String tmpFidValue = pString; StringTokenizer aTokenizer = new StringTokenizer(pString, "\n"); if (aTokenizer.countTokens() > 1) { StringBuffer nameBuffer = new StringBuffer(); while (aTokenizer.hasMoreTokens()) { ...
java
public static double getDouble(String pStr) { if (isEmpty(pStr)) { return 0.0; } double value = 0.0; pStr = pStr.substring(0, pStr.length() - 2) + "." + pStr.substring(pStr.length() - 2); try { value = Double.parseDouble(pStr); } catch (NumberForma...
java
public static long getLong(String pStr) { if (isEmpty(pStr)) { return 0; } long value = 0; try { value = Long.parseLong(pStr); } catch (NumberFormatException nm) { } return value; }
java
public static int getInteger(String pStr, int defval) { if (isEmpty(pStr)) return defval; try { return Integer.parseInt(pStr); } catch (NumberFormatException nm) { return defval; } }
java
public static boolean isContainedIn(String strToBeSearched, String compositeStr, String regex) { if ((null == strToBeSearched) || (null == compositeStr) || (null == regex)) return false; String[] splitValues = compositeStr.split(regex); boolean isFound = false; for(...
java
public static String escapeWithBackslash(String value, String metachars) { StringBuffer sb = new StringBuffer(); int i, n = value.length(); char ch; for (i=0; i<n; i++) { ch = value.charAt(i); if (ch=='\\' || metachars.indexOf(ch)>=0) { sb.append('...
java
public static String removeBackslashEscape(String value) { StringBuffer sb = new StringBuffer(); int i, n = value.length(); char ch; boolean lastIsEscape = false; for (i=0; i<n; i++) { ch = value.charAt(i); if (lastIsEscape) { sb.append(ch)...
java
public static String compress(String uncompressedValue) throws IOException { if (uncompressedValue == null) return null; ByteArrayOutputStream out = new ByteArrayOutputStream(); GZIPOutputStream gzip = null; try { gzip = new GZIPOutputStream(out); gzip...
java
public static String uncompress(String compressedValue) throws IOException { if (compressedValue == null) return null; ByteArrayInputStream in = new ByteArrayInputStream(compressedValue.getBytes("ISO-8859-1")); GZIPInputStream gzip = null; Reader reader = null; try {...
java
public static int delimiterColumnCount(String row, String delimeterChar, String escapeChar) { if (row.indexOf(escapeChar) > 0) return row.replace(escapeChar, " ").length() - row.replace(",", "").length(); else return row.length() - row.replace(",", "").length(); }
java
public void sendMessage(String requestMessage, String queueName, String correlationId, final Queue replyQueue, int delaySeconds, int deliveryMode) throws JMSException { /** * If it's an internal message then always use jmsTemplate for ActiveMQ */ if (jmsTemplate != null) {...
java
public void broadcastMessageToTopic(String dest, String requestMessage) { jmsTopicTemplate.setDeliveryPersistent(true); jmsTopicTemplate.send(dest, new MDWMessageCreator(requestMessage)); }
java
public static final com.centurylink.mdw.variable.VariableTranslator getTranslator(Package packageVO, String type) { com.centurylink.mdw.variable.VariableTranslator trans = null; try { VariableType vo = VariableTypeCache.getVariableTypeVO(Compatibility.getVariableType(type)); if (...
java
public static Object toObject(String type, String value){ if(StringHelper.isEmpty(value) || EMPTY_STRING.equals(value)){ return null; } com.centurylink.mdw.variable.VariableTranslator trans = getTranslator(type); return trans.toObject(value); }
java
public static String realToString(Package pkg, String type, Object value) { if (value == null) return ""; com.centurylink.mdw.variable.VariableTranslator trans = getTranslator(pkg, type); if (trans instanceof DocumentReferenceTranslator) return ((DocumentReferenceTranslat...
java
public static Object realToObject(Package pkg, String type, String value) { if (StringHelper.isEmpty(value)) return null; com.centurylink.mdw.variable.VariableTranslator trans = getTranslator(pkg, type); if (trans instanceof DocumentReferenceTranslator) return ((DocumentR...
java
public XAnnotation<javax.persistence.Id> createId(Boolean source) { return source == null ? null : createId(source.booleanValue()); }
java
public XAnnotation<javax.persistence.OneToOne> createOneToOne( OneToOne cOneToOne) { return cOneToOne == null ? null : // new XAnnotation<javax.persistence.OneToOne>( javax.persistence.OneToOne.class, // cOneToOne.getTargetEntity() == null ? null : new XSingleAnnotationField<Class<Ob...
java
public XAnnotation<javax.persistence.NamedQuery> createNamedQuery( NamedQuery source) { return source == null ? null : // new XAnnotation<javax.persistence.NamedQuery>( javax.persistence.NamedQuery.class, // AnnotationUtils.create("query", source.getQuery()), // AnnotationUtils....
java
public XAnnotation<javax.persistence.AssociationOverride> createAssociationOverride( AssociationOverride source) { return source == null ? null : // new XAnnotation<javax.persistence.AssociationOverride>( javax.persistence.AssociationOverride.class, // AnnotationUtils.create("name", source....
java
public void setDay(Calendar source, XMLGregorianCalendar target) { target.setDay(source.get(Calendar.DAY_OF_MONTH)); }
java
public static JType getCommonBaseType( JCodeModel codeModel, Collection<? extends JType> types ) { return getCommonBaseType( codeModel, types.toArray(new JType[types.size()]) ); }
java
protected void setupLogging() { super.setupLogging(); final Logger rootLogger = LogManager.getRootLogger(); rootLogger.addAppender(new NullAppender()); final Logger logger = LogManager.getLogger("org.jvnet.hyperjaxb3"); final Log log = getLog(); logger.addAppender(new Appender(getLog(), new PatternLayout(...
java
protected void logConfiguration() throws MojoExecutionException { super.logConfiguration(); getLog().info("target:" + target); getLog().info("roundtripTestClassName:" + roundtripTestClassName); getLog().info("resourceIncludes:" + resourceIncludes); getLog().info("variant:" + variant); getLog().info("persis...
java
public static boolean isAvailable(Context context) { if (SDK_INT < JELLY_BEAN_MR2) { return false; } Intent serviceIntent = new Intent("android.support.customtabs.action.CustomTabsService") .setPackage("com.android.chrome"); ServiceConnection connection = new...
java
private String parseMetadata(DocumentMetadata metadata) throws IOException { ResultItem item = result.next(); String uri = item.asString(); if (uri == null) { throw new IOException("Missing document URI for metadata."); } item = result.next(); //node-kind, mus...
java
private int getDocumentType() { NodeList children = getChildNodes(); int elemCount = 0; for (int i = 0; i < children.getLength(); i++) { Node n = children.item(i); switch (n.getNodeType()) { case Node.ELEMENT_NODE: elemCount++; ...
java
public static List<ContentPermission> getPermissions(String[] perms) { List<ContentPermission> permissions = null; if (perms != null && perms.length > 0) { int i = 0; while (i + 1 < perms.length) { String roleName = perms[i++]; if (roleName == null...
java
public static String getValidName(String name) { StringBuilder validname = new StringBuilder(); char ch = name.charAt(0); if (!XML11Char.isXML11NameStart(ch)) { LOG.warn("Prepend _ to " + name); validname.append("_"); } for (int i = 0; i < name.length(); i...
java
protected void insertBatch(Content[] batch, int id) throws IOException { retry = 0; sleepTime = 500; while (retry < maxRetries) { try { if (retry == 1) { LOG.info("Retrying document insert"); } List<RequestExce...
java
public Node item(int index) { try { return item(index, null); } catch (ParserConfigurationException e) { throw new RuntimeException(e); } }
java
private boolean hasTextContent(Node child) { return child.getNodeType() != Node.COMMENT_NODE && child.getNodeType() != Node.PROCESSING_INSTRUCTION_NODE; }
java
private void getTextContent(StringBuilder sb) throws DOMException { NodeList children = getChildNodes(); for (int i = 0; i < children.getLength(); i++) { Node child = children.item(i); if (hasTextContent(child)) { sb.append(child.getTextContent()); } ...
java
protected boolean setKey(String uri, int line, int col, boolean encode) { if (key == null) { key = new DocumentURIWithSourceInfo(uri, srcId); } // apply prefix, suffix and replace for URI if (uri != null && !uri.isEmpty()) { uri = URIUtil.applyUriReplace(uri, conf...
java
private static void setClassLoader(File hdConfDir, Configuration conf) throws Exception { ClassLoader parent = conf.getClassLoader(); URL url = hdConfDir.toURI().toURL(); URL[] urls = new URL[1]; urls[0] = url; ClassLoader classLoader = new URLClassLoader(urls, parent); ...
java
public static ContentSource getInputContentSource(Configuration conf) throws URISyntaxException, XccConfigException, IOException { String host = conf.getStrings(INPUT_HOST)[0]; if (host == null || host.isEmpty()) { throw new IllegalArgumentException(INPUT_HOST + " i...
java
public static ContentSource getInputContentSource(Configuration conf, String host) throws XccConfigException, IOException { String user = conf.get(INPUT_USERNAME, ""); String password = conf.get(INPUT_PASSWORD, ""); String port = conf.get(INPUT_PORT,"8000"); String...
java
public static ContentSource getOutputContentSource(Configuration conf, String hostName) throws XccConfigException, IOException { String user = conf.get(OUTPUT_USERNAME, ""); String password = conf.get(OUTPUT_PASSWORD, ""); String port = conf.get(OUTPUT_PORT,"8000"); Stri...
java
public static String getHost(TextArrayWritable hosts) throws IOException { String [] hostStrings = hosts.toStrings(); if(hostStrings == null || hostStrings.length==0) throw new IOException("Number of forests is 0: " + "check forests in database"); int count = hostStr...
java
public static XdmValue newValue(ValueType valueType, Object value) { if (value instanceof Text) { return ValueFactory.newValue(valueType, ((Text)value).toString()); } else if (value instanceof BytesWritable) { return ValueFactory.newValue(valueType, ((BytesWritable)value).getByte...
java
public static String getUriWithOutputDir(DocumentURI key, String outputDir){ String uri = key.getUri(); if (outputDir != null && !outputDir.isEmpty()) { uri = outputDir.endsWith("/") || uri.startsWith("/") ? outputDir + uri : outputDir + '/' + uri; key.setUri(u...
java
public static void sleep(long millis) throws InterruptedException { while (millis > 0) { // abort if the user kills mlcp in local mode String shutdown = System.getProperty("mlcp.shutdown"); if (shutdown != null) { break; } if (millis > ...
java
public void updateStats(int fIdx, long count) { synchronized (pq) { frmtCount[fIdx] += count; Stats tmp = new Stats(fIdx, frmtCount[fIdx]); // remove the stats object with the same fIdx pq.remove(tmp); pq.offer(tmp); } if (LOG.isTraceEn...
java
@Override public int getPlacementForestIndex(DocumentURI uri) { int idx = 0; try { idx = popAndInsert(); } catch (InterruptedException e) { LOG.error("Statistical assignment gets interrupted"); } return idx; }
java
protected void setKey(String uri, String sub, int line, int col) { if (srcId == null) { srcId = split.getPath().toString(); } // apply prefix and suffix for URI uri = URIUtil.applyUriReplace(uri, conf); uri = URIUtil.applyPrefixSuffix(uri, conf); if (key == nu...
java
private LinkedMapWritable getMimetypesMap() throws IOException { if (mimetypeMap != null) return mimetypeMap; String mtmap = conf.get(ConfigConstants.CONF_MIMETYPES); if (mtmap != null) { mimetypeMap = DefaultStringifier.load(conf, ConfigConstants.CONF_MIM...
java
public static void setNumberOfThreads(Job job, int threads) { job.getConfiguration().setInt(ConfigConstants.CONF_THREADS_PER_SPLIT, threads); }
java
protected Session getSession() throws IOException { if (session == null) { // start a session try { ContentSource cs = InternalUtilities.getOutputContentSource( conf, hostName); session = cs.newSession(); if (LOG.isD...
java
protected static ContentCreateOptions newContentCreateOptions( DocumentMetadata meta, ContentCreateOptions options, boolean isCopyColls, boolean isCopyQuality, boolean isCopyMeta, boolean isCopyPerms, long effectiveVersion) { ContentCreateOptions opt = (ContentCreateOptions)...
java