Project

General

Profile

« Previous | Next » 

Revision 48139

integrated (hopefully) all required changes from dnet40

View differences:

PrepareIndexDataJobNode.java
90 90
	}
91 91

  
92 92
	public String getIndexSolrUrlZk() throws ISLookUpException {
93
		return getServiceConfigValue("for $x in /RESOURCE_PROFILE[.//RESOURCE_TYPE/@value='IndexServiceResourceType'] return $x//PROTOCOL[./@name='solr']/@address/string()");
93
		return getServiceConfigValue(
94
				"for $x in /RESOURCE_PROFILE[.//RESOURCE_TYPE/@value='IndexServiceResourceType'] return $x//PROTOCOL[./@name='solr']/@address/string()");
94 95
	}
95 96

  
96 97
	public String getIndexSolrShutdownWait() throws ISLookUpException {
......
106 107
	}
107 108

  
108 109
	private String queryForServiceProperty(final String key) throws ISLookUpException {
109
		return getServiceConfigValue("for $x in /RESOURCE_PROFILE[.//RESOURCE_TYPE/@value='IndexServiceResourceType'] return $x//SERVICE_PROPERTIES/PROPERTY[./@ key='"
110
				+ key + "']/@value/string()");
110
		return getServiceConfigValue(
111
				"for $x in /RESOURCE_PROFILE[.//RESOURCE_TYPE/@value='IndexServiceResourceType'] return $x//SERVICE_PROPERTIES/PROPERTY[./@ key='"
112
						+ key + "']/@value/string()");
111 113
	}
112 114

  
113 115
	private String getServiceConfigValue(final String xquery) throws ISLookUpException {
......
131 133

  
132 134
	/**
133 135
	 * Transforms each OAF record into a index record.
134
	 * 
135
	 * @param mdStoreRsetEpr
136
	 *            mdstore resulsetset
137
	 * @param layout
138
	 *            layout
139
	 * @param format
140
	 *            format
136
	 *
137
	 * @param mdStoreRsetEpr mdstore resulsetset
138
	 * @param layout         layout
139
	 * @param format         format
141 140
	 * @return resultset with transformed records
142
	 * @throws ISLookUpException
143
	 *             could happen
144
	 * @throws IOException
145
	 *             could happen
146
	 * @throws TransformerException
147
	 *             could happen
141
	 * @throws ISLookUpException    could happen
142
	 * @throws IOException          could happen
143
	 * @throws TransformerException could happen
148 144
	 */
149 145
	protected String prepareXslt(final String format, final String layout) throws ISLookUpException, IOException, TransformerException {
150 146

  

Also available in: Unified diff