code stringlengths 73 34.1k | label stringclasses 1
value |
|---|---|
@SuppressWarnings("unchecked")
public void load(File propertiesFile) throws IOException {
String paramName;
String paramValue;
Reader reader = new FileReader(propertiesFile);
_properties.load(reader);
reader.close();
paramName = StoreParams.PARAM_IND... | java |
public void validate() throws InvalidStoreConfigException {
if(getSegmentFactory() == null) {
throw new InvalidStoreConfigException("Segment factory not found");
}
if(getHashFunction() == null) {
throw new InvalidStoreConfigException("Store hash function not foun... | java |
public boolean setProperty(String pName, String pValue) {
if(pName == null) return false;
_properties.setProperty(pName, pValue);
return true;
} | java |
public boolean setClass(String pName, Class<?> pValue) {
if(pName == null) return false;
_properties.setProperty(pName, pValue.getName() + "");
return true;
} | java |
public int getInt(String pName, int defaultValue) {
String pValue = _properties.getProperty(pName);
return parseInt(pName, pValue, defaultValue);
} | java |
public float getFloat(String pName, float defaultValue) {
String pValue = _properties.getProperty(pName);
return parseFloat(pName, pValue, defaultValue);
} | java |
public double getDouble(String pName, double defaultValue) {
String pValue = _properties.getProperty(pName);
return parseDouble(pName, pValue, defaultValue);
} | java |
public boolean getBoolean(String pName, boolean defaultValue) {
String pValue = _properties.getProperty(pName);
return parseBoolean(pName, pValue, defaultValue);
} | java |
public Class<?> getClass(String pName, Class<?> defaultValue) {
String pValue = _properties.getProperty(pName);
return parseClass(pName, pValue, defaultValue);
} | java |
public void setSegmentFactory(SegmentFactory segmentFactory) {
if(segmentFactory == null) {
throw new IllegalArgumentException("Invalid segmentFactory: " + segmentFactory);
}
this._segmentFactory = segmentFactory;
this._properties.setProperty(PARAM_SEGMENT_FACTORY_CL... | java |
public static StoreConfig newInstance(File filePath) throws IOException {
File homeDir;
Properties p = new Properties();
if(filePath.exists()) {
if(filePath.isDirectory()) {
homeDir = filePath;
File propertiesFile = new File(filePath, CONFIG_PROPERTIES... | java |
private void setAttributesFromUsage(final Usage usage) {
switch (usage) {
case BINARY:
_cobolType = CobolTypes.BINARY_ITEM;
_xsdType = XsdType.INTEGER;
break;
case NATIVEBINARY:
_cobolType = CobolTypes.NATIVE_BINARY_ITEM;
_xsdType = Xsd... | java |
public static String getXmlCompatibleCobolName(final String cobolName) {
if (cobolName != null && cobolName.length() > 0
&& Character.isDigit(cobolName.charAt(0))) {
return SAFE_NAME_PREFIX + cobolName;
} else {
return cobolName;
}
} | java |
@Override
protected void entryRemoved(boolean evicted, String key,
Bitmap oldValue, Bitmap newValue) {
if (Utils.hasHoneycomb()) {
// We're running on Honeycomb or later, so add the bitmap
// to the pool set for possible use with inBitmap later
... | java |
@Override
protected int sizeOf(String key, Bitmap value) {
final int bitmapSize = BitmapLruPool.getBitmapSize(value);
return bitmapSize == 0 ? 1 : bitmapSize;
} | java |
@Override
public void saveHWMark(long endOfPeriod) {
if(getHWMark() < endOfPeriod) {
try {
set(0, get(0), endOfPeriod);
} catch(Exception e) {
_logger.error("Failed to saveHWMark " + endOfPeriod, e);
}
} else if(0 < endOfPeriod && e... | java |
public void addNodeActiveParticipant(String userId, String altUserId, String userName, String networkId)
{
addActiveParticipant(
userId,
altUserId,
userName,
false,
null,
networkId);
} | java |
public SearchFeed search(String query, int limit, int offset) throws GiphyException {
SearchFeed feed = null;
HashMap<String, String> params = new HashMap<String, String>();
params.put("api_key", apiKey);
params.put("q", query);
if (limit > 100) {
params.put("limit", "100");
} else {
params.put("limit... | java |
public SearchGiphy searchByID(String id) throws GiphyException {
SearchGiphy giphy = null;
HashMap<String, String> params = new HashMap<String, String>();
params.put("api_key", apiKey);
Request request = new Request(UrlUtil.buildUrlQuery(IDEndpoint + id, params));
try {
Response response = sender.sendRequ... | java |
public SearchFeed trendSticker() throws GiphyException {
SearchFeed feed = null;
HashMap<String, String> params = new HashMap<String, String>();
params.put("api_key", apiKey);
Request request = new Request(UrlUtil.buildUrlQuery(TrendingStickerEndpoint, params));
try {
Response response = sender.sendReques... | java |
public SearchRandom searchRandomSticker(String tag) throws GiphyException {
SearchRandom random = null;
HashMap<String, String> params = new HashMap<String, String>();
params.put("api_key", apiKey);
params.put("tag", tag);
Request request = new Request(UrlUtil.buildUrlQuery(RandomEndpointSticker, params));
tr... | java |
private static int getResizedDimension(int maxPrimary, int maxSecondary, int actualPrimary,
int actualSecondary, ScaleType scaleType) {
// If no dominant value at all, just return the actual.
if ((maxPrimary == 0) && (maxSecondary == 0)) {
return a... | java |
protected boolean isValidString(CobolContext cobolContext, byte[] hostData,
int start) {
int length = start + getBytesLen();
for (int i = start; i < length; i++) {
int code = hostData[i] & 0xFF;
if (code != 0 && code < cobolContext.getHostSpaceCharCode()) {
... | java |
private FromHostPrimitiveResult < String > fromHostString(
CobolContext cobolContext, byte[] hostData, int start, int bytesLen) {
// Trim trailing low-values and, optionally, trailing spaces
int spaceCode = cobolContext.getHostSpaceCharCode();
boolean checkSpace = cobolContext.isTru... | java |
public final static DataReader createDataReader(File file, IOType type) {
if(type == IOType.MAPPED) {
if(file.length() <= Integer.MAX_VALUE) {
return new MappedReader(file);
} else {
return new MultiMappedReader(file);
}
} else {
... | java |
public final static DataWriter createDataWriter(File file, IOType type) {
if(type == IOType.MAPPED) {
if(file.length() <= Integer.MAX_VALUE) {
return new MappedWriter(file);
} else {
return new MultiMappedWriter(file);
}
} else {
... | java |
public static XDSConsumerAuditor getAuditor()
{
AuditorModuleContext ctx = AuditorModuleContext.getContext();
return (XDSConsumerAuditor)ctx.getAuditor(XDSConsumerAuditor.class);
} | java |
public void auditRegistryQueryEvent(
RFC3881EventOutcomeCodes eventOutcome,
String registryEndpointUri,
String consumerUserName,
String adhocQueryRequestPayload,
String patientId)
{
if (!isAuditorEnabled()) {
return;
}
auditQueryEvent(true,
new IHETransactionEventTypeCodes.Registr... | java |
public void auditRegistryStoredQueryEvent(
RFC3881EventOutcomeCodes eventOutcome,
String registryEndpointUri,
String consumerUserName,
String storedQueryUUID, String adhocQueryRequestPayload, String homeCommunityId,
String patientId,
List<CodedValueType> purposesOfUse,
List<CodedV... | java |
public void auditRetrieveDocumentEvent(RFC3881EventOutcomeCodes eventOutcome,
String repositoryRetrieveUri,
String userName,
String documentUniqueId,
String patientId)
{
if (!isAuditorEnabled()) {
return;
}
ImportEvent importEvent = new ImportEvent(false, eventOutcome, new IHETransactionE... | java |
public void auditRetrieveDocumentSetEvent(RFC3881EventOutcomeCodes eventOutcome,
String repositoryEndpointUri,
String userName,
String[] documentUniqueIds, String repositoryUniqueId, String homeCommunityId,
String patientId,
List<CodedValueType> purposesOfUse,
List<CodedValueType> ... | java |
public void auditRetrieveDocumentSetEvent(RFC3881EventOutcomeCodes eventOutcome,
String repositoryEndpointUri,
String userName,
String[] documentUniqueIds, String[] repositoryUniqueIds, String[] homeCommunityIds,
String patientId,
List<CodedValueType> purposesOfUse,
List<CodedVa... | java |
public void addAccessingParticipant(String userId, String altUserId, String userName, String networkId)
{
addActiveParticipant(
userId,
altUserId,
userName,
true,
null,
networkId);
} | java |
public void addAuditLogIdentity(String auditLogUri)
{
addParticipantObjectIdentification(
new RFC3881ParticipantObjectCodes.RFC3881ParticipantObjectIDTypeCodes.URI(),
"Security Audit Log",
null,
null,
auditLogUri,
RFC3881ParticipantObjectTypeCodes.SYSTEM,
RFC3881ParticipantObjectType... | java |
public static XDSRepositoryAuditor getAuditor()
{
AuditorModuleContext ctx = AuditorModuleContext.getContext();
return (XDSRepositoryAuditor)ctx.getAuditor(XDSRepositoryAuditor.class);
} | java |
public void auditRegisterDocumentSetEvent(
RFC3881EventOutcomeCodes eventOutcome,
String repositoryUserId,
String userName,
String registryEndpointUri,
String submissionSetUniqueId, String patientId)
{
if (!isAuditorEnabled()) {
return;
}
auditRegisterEvent(new IHETransactionEventType... | java |
public void auditRegisterDocumentSetBEvent(
RFC3881EventOutcomeCodes eventOutcome,
String repositoryUserId,
String userName,
String registryEndpointUri,
String submissionSetUniqueId, String patientId,
List<CodedValueType> purposesOfUse,
List<CodedValueType> userRoles)
{
if (!i... | java |
public void auditRetrieveDocumentEvent(
RFC3881EventOutcomeCodes eventOutcome,
String consumerIpAddress,
String userName,
String repositoryRetrieveUri, String documentUniqueId)
{
if (!isAuditorEnabled()) {
return;
}
ExportEvent exportEvent = new ExportEvent(true, eventOutcome, new IHETran... | java |
public void auditRetrieveDocumentSetEvent(
RFC3881EventOutcomeCodes eventOutcome,
String consumerUserId, String consumerUserName, String consumerIpAddress,
String repositoryEndpointUri,
String[] documentUniqueIds, String repositoryUniqueId, String homeCommunityId,
List<CodedValueType> purposesO... | java |
public void auditRetrieveDocumentSetEvent(
RFC3881EventOutcomeCodes eventOutcome,
String consumerUserId, String consumerUserName, String consumerIpAddress,
String repositoryEndpointUri,
String[] documentUniqueIds, String[] repositoryUniqueIds, String[] homeCommunityIds,
List<CodedValueType> purp... | java |
protected void auditProvideAndRegisterEvent (
IHETransactionEventTypeCodes transaction,
RFC3881EventOutcomeCodes eventOutcome,
String sourceUserId, String sourceIpAddress,
String userName,
String repositoryEndpointUri,
String submissionSetUniqueId,
String patientId,
List<Coded... | java |
public final int getLiveSegmentCount() {
int num = 0;
for (int i = 0; i < _segList.size(); i++) {
if (_segList.get(i) != null)
num++;
}
return num;
} | java |
public synchronized boolean freeSegment(Segment seg) throws IOException {
if (seg == null)
return false;
int segId = seg.getSegmentId();
if (segId < _segList.size() && _segList.get(segId) == seg) {
_segList.set(segId, null);
seg.close(false);
... | java |
public synchronized Segment nextSegment() throws IOException {
Segment seg = nextSegment(false);
// Remove the writer segment index buffer file.
File sibFile = getSegmentIndexBufferFile(seg.getSegmentId());
if(sibFile.exists()) {
sibFile.delete();
}
... | java |
public void flushSegmentIndexBuffers() {
SegmentIndexBuffer sib = null;
while((sib = _sibManager.poll()) != null) {
File sibFile = getSegmentIndexBufferFile(sib.getSegmentId());
try {
_sibManager.getSegmentIndexBufferIO().write(sib, sibFile);
... | java |
private Segment nextSegment(boolean newOnly) throws IOException {
int index;
Segment seg;
if (newOnly) {
index = _segList.size();
} else {
if (_recycleList.size() > 0) {
seg = _recycleList.remove();
seg.reinit();
_... | java |
private void initSegs() throws IOException {
int loaded = 0;
File[] segFiles = listSegmentFiles();
if (segFiles.length == 0) {
return;
}
try {
for (int i = 0; i < segFiles.length; i++) {
File segFile = segFiles[i];
int segI... | java |
private void clearInternal(boolean clearMeta) {
// Close all known segments
for(int segId = 0, cnt = _segList.size(); segId < cnt; segId++) {
Segment seg = _segList.get(segId);
if(seg != null) {
try {
if(seg.getMode() == Segment.Mode.READ_WRITE... | java |
protected File[] listSegmentFiles() {
File segDir = new File(_segHomePath);
File[] segFiles = segDir.listFiles(new FileFilter() {
@Override
public boolean accept(File filePath) {
String fileName = filePath.getName();
if (fileName.matches("^[0-9]+\\... | java |
private CharSequence hashContext(final Object context, final Options options)
throws IOException {
Set < Entry < String, Object >> propertySet = options
.propertySet(context);
StringBuilder buffer = new StringBuilder();
Context parent = options.context;
boolea... | java |
private CharSequence iterableContext(final Iterable<Object> context, final Options options)
throws IOException {
StringBuilder buffer = new StringBuilder();
if (options.isFalsy(context)) {
buffer.append(options.inverse());
} else {
Iterator<Object> iterator = context.iterator();
int ... | java |
protected synchronized void switchEntry(boolean blocking) throws IOException {
/**
* Must create compaction redo before update redo to prevent data loss.
*
* The "applyEntries" method will internally sort compaction redo and update redo
* entries using stable Arrays.sort. The following order of... | java |
protected synchronized void applyEntries(boolean blocking) throws IOException {
if (blocking) { /* Blocking Mode */
synchronized(_entryApply) {
List<Entry<V>> entryList = new ArrayList<Entry<V>>();
while(_entryPool.getServiceQueueSize() > 0) {
Entry<V> entry = _entryPool.pollFromServ... | java |
protected List<Entry<V>> loadEntryFiles() {
File[] files = getDirectory().listFiles();
String prefix = getEntryLogPrefix();
String suffix = getEntryLogSuffix();
List<Entry<V>> entryList = new ArrayList<Entry<V>>();
if(files == null) return entryList;
for (File file : files) {
Str... | java |
private List<Entry<V>> filterEntryList(List<Entry<V>> entryList, long minScn, long maxScn) {
List<Entry<V>> result = new ArrayList<Entry<V>>(entryList.size());
for (Entry<V> e : entryList) {
if (minScn <= e.getMinScn() && e.getMaxScn() <= maxScn) {
result.add(e);
}
}
return resu... | java |
private List<Entry<V>> filterEntryListLowerBound(List<Entry<V>> entryList, long scn) {
List<Entry<V>> result = new ArrayList<Entry<V>>(entryList.size());
for (Entry<V> e : entryList) {
if (scn <= e.getMinScn()) {
result.add(e);
}
}
return result;
} | java |
@SuppressWarnings("unused")
private List<Entry<V>> filterEntryListUpperBound(List<Entry<V>> entryList, long scn) {
List<Entry<V>> result = new ArrayList<Entry<V>>(entryList.size());
for (Entry<V> e : entryList) {
if (e.getMaxScn() <= scn) {
result.add(e);
}
}
return result;
... | java |
protected void execute(final File input, final String cobolFileEncoding,
final File target, final String targetNamespacePrefix,
final String xsltFileName)
throws XsdGenerationException {
try {
_log.info("Started translation from COBOL to XML Schema");
... | java |
protected String getVersion() throws IOException {
InputStream stream = null;
try {
Properties version = new Properties();
stream = Cob2XsdMain.class.getResourceAsStream(VERSION_FILE_NAME);
version.load(stream);
return version.getProperty("version");
... | java |
public void setConfigFile(final String config) {
if (config == null) {
throw (new IllegalArgumentException(
"Configuration file parameter is null"));
}
File file = new File(config);
if (file.exists()) {
if (file.isDirectory()) {
... | java |
public static PIXConsumerAuditor getAuditor()
{
AuditorModuleContext ctx = AuditorModuleContext.getContext();
return (PIXConsumerAuditor)ctx.getAuditor(PIXConsumerAuditor.class);
} | java |
private static String buildMessage(String format, Object... args) {
String msg = (args == null) ? format : String.format(Locale.US, format, args);
StackTraceElement[] trace = new Throwable().fillInStackTrace().getStackTrace();
String caller = "<unknown>";
// Walk up the stack looking fo... | java |
@Override
public V get(K key) {
if(key == null) {
return null;
}
byte[] bytes = _store.get(_keySerializer.serialize(key));
return bytes == null ? null : _valSerializer.deserialize(bytes);
} | java |
@Override
public byte[] getBytes(K key) {
if(key == null) {
return null;
}
return _store.get(_keySerializer.serialize(key));
} | java |
@Override
public boolean put(K key, V value) throws Exception {
if(key == null) {
throw new NullPointerException("key");
}
if(value == null) {
return _store.delete(_keySerializer.serialize(key));
} else {
return _store.put(_keySerializer.s... | java |
@Override
public boolean delete(K key) throws Exception {
if(key == null) {
throw new NullPointerException("key");
}
return _store.delete(_keySerializer.serialize(key));
} | java |
public <R extends Request<T>> R setRetryPolicy(RetryPolicy retryPolicy) {
checkIfActive();
this.retryPolicy = retryPolicy;
return (R) this;
} | java |
public <R extends Request<T>> R setRedirectPolicy(RedirectPolicy redirectPolicy) {
checkIfActive();
this.redirectPolicy = redirectPolicy;
return (R) this;
} | java |
<R extends Request<T>> R setRequestQueue(RequestQueue requestQueue) {
checkIfActive();
java.lang.reflect.Method m = null;
if (!(this.getClass().equals(Request.class))) {
try {
m = this.getClass().getDeclaredMethod("parseNetworkResponse", NetworkResponse
... | java |
public <R extends Request<T>> R setCacheEntry(Cache.Entry entry) {
cacheEntry = entry;
return (R) this;
} | java |
public final Map<String, String> getHeadersMap() {
if (networkRequest != null && networkRequest.headers != null) {
return networkRequest.headers.toMap();
}
return Collections.emptyMap();
} | java |
public String getBodyContentType() {
if (networkRequest != null && networkRequest.contentType != null) {
return networkRequest.contentType.toString();
}
return null;
} | java |
public final <R extends Request<T>> R setShouldCache(boolean shouldCache) {
checkIfActive();
this.shouldCache = shouldCache;
return (R) this;
} | java |
protected Response<T> parseNetworkResponse(NetworkResponse response) {
T parsed = null;
try {
parsed = converterFromResponse.convert(response);
} catch (Exception e) {
return Response.error(new ParseError(e));
}
return Response.success(parsed, HttpHeaderPa... | java |
protected void deliverResponse(T response) {
synchronized (responseListeners) {
for (RequestListener.ResponseListener responseListener : responseListeners) {
responseListener.onResponse(response);
}
if (!this.response.intermediate) {
responseLi... | java |
public void deliverError(JusError error) {
synchronized (errorListeners) {
for (RequestListener.ErrorListener errorListener : errorListeners) {
errorListener.onError(error);
}
errorListeners.clear();
}
synchronized (responseListeners) {
... | java |
@Override
public int compareTo(Request<T> other) {
Priority left = this.getPriority();
Priority right = other.getPriority();
// High-priority requests are "lesser" so they are sorted to the front.
// Equal priorities are sorted by sequence number to provide FIFO ordering.
re... | java |
public String getSystemAltUserId()
{
// If a localized value is set, use it
if (!EventUtils.isEmptyOrNull(systemAltUserId)) {
return systemAltUserId;
}
// Check if a configuration parameter is set
systemAltUserId = getConfig().getSystemAltUserId();
if (!EventUtils.isEmptyOrNull(systemAltUserId)) {
... | java |
public String getSystemNetworkId()
{
String ipAddress = getConfig().getSystemIpAddress();
if (!EventUtils.isEmptyOrNull(ipAddress)) {
return ipAddress;
}
if (EventUtils.isEmptyOrNull(systemNetworkAccessPointId)) {
// No set System Address, will attempt to look it up
try {
InetAddress localAddress ... | java |
public boolean isAuditorEnabled()
{
if (!getConfig().isAuditorEnabled()) {
return false;
}
if (getConfig().getDisabledAuditors().contains(this.getClass())) {
if (LOGGER.isDebugEnabled()) {
LOGGER.debug("Auditor "+ this.getClass().getName() + " is disabled by configuration");
}
return false;
}
... | java |
public boolean isAuditorEnabledForEventId(AuditEventMessage msg)
{
CodedValueType eventIdCode = msg.getAuditMessage().getEventIdentification().getEventID();
if (EventUtils.containsCode(eventIdCode, getConfig().getDisabledEvents())) {
if (LOGGER.isDebugEnabled()) {
LOGGER.debug("Auditor is disabled by confi... | java |
public void auditUserAuthenticationLoginEvent(RFC3881EventOutcomeCodes outcome,
boolean isAuthenticatedSystem, String remoteUserId, String remoteIpAddress,
String remoteUserNodeIpAddress)
{
auditUserAuthenticationEvent(outcome, new DICOMEventTypeCodes.Login(), isAuthenticatedSystem, remoteUserId, remoteIpAddr... | java |
public void auditUserAuthenticationLogoutEvent(RFC3881EventOutcomeCodes outcome,
boolean isAuthenticatedSystem, String remoteUserId, String remoteIpAddress,
String remoteUserNodeIpAddress)
{
auditUserAuthenticationEvent(outcome, new DICOMEventTypeCodes.Logout(), isAuthenticatedSystem, remoteUserId, remoteIpAd... | java |
private void addField(int fieldIndex, XmlSchemaObjectBase xsdSchemaObject,
Map < String, Object > fields, RootCompositeType compositeTypes) {
if (xsdSchemaObject instanceof XmlSchemaElement) {
XmlSchemaElement xsdElement = (XmlSchemaElement) xsdSchemaObject;
fields.put(getFie... | java |
private void addOptionalProps(XmlSchemaElement xsdElement,
CobolAnnotations cobolAnnotations, Map < String, Object > props) {
String dependingOn = cobolAnnotations.getDependingOn();
if (dependingOn != null) {
props.put(IS_OPTIONAL_PROP_NAME, true);
props.put(DEPENDING... | java |
private Map < String, Object > getProps(XmlSchemaSimpleType xsdSimpleType,
final CobolAnnotations cobolAnnotations) {
XmlSchemaSimpleTypeRestriction restriction = (XmlSchemaSimpleTypeRestriction) xsdSimpleType
.getContent();
if (restriction != null && restriction.getBaseTypeN... | java |
private <T extends Number> Map < String, Object > getCobolAlphanumType(
List < XmlSchemaFacet > facets) {
Map < String, Object > props = new LinkedHashMap < String, Object >();
props.put(COBOL_TYPE_NAME_PROP_NAME, "CobolStringType");
props.put(CHAR_NUM_PROP_NAME, getMaxLength(facets)... | java |
private int getMaxLength(List < XmlSchemaFacet > facets) {
for (XmlSchemaFacet facet : facets) {
if (facet instanceof XmlSchemaMaxLengthFacet) {
return Integer
.parseInt((String) ((XmlSchemaMaxLengthFacet) facet)
.getValue());
... | java |
private <T extends Number> Map < String, Object > getCobolDecimalType(
CobolAnnotations cobolAnnotations, Class < T > clazz) {
String cobolType = cobolAnnotations.getCobolType();
Map < String, Object > props = new LinkedHashMap < String, Object >();
switch (CobolTypes.valueOf(cobolT... | java |
private static String getShortTypeName(Class < ? > javaType) {
String javaTypeName = javaType.getName();
if (javaTypeName.startsWith("java.lang.")) {
return javaTypeName.substring("java.lang.".length());
} else {
return javaTypeName;
}
} | java |
private static Element getCobolXsdAnnotations(XmlSchemaElement xsdElement) {
XmlSchemaAnnotation annotation = xsdElement.getAnnotation();
if (annotation == null || annotation.getItems().size() == 0) {
throw new IllegalArgumentException("Xsd element of type "
+ xsdElement.... | java |
@Override
public void reinitValue(DataReader in, EntryValueShort value) throws IOException {
value.reinit(in.readInt(), /* array position */
in.readShort(), /* data value */
in.readLong() /* SCN value */);
} | java |
private static String intPart(String str) {
return str.indexOf(JAVA_DECIMAL_POINT) > 0 ? str.substring(0,
str.indexOf(JAVA_DECIMAL_POINT)) : str;
} | java |
public void addReportingUser(String userId)
{
addActiveParticipant(
userId,
null,
null,
true,
null,
null);
} | java |
public void addActiveParticipant(String userId)
{
addActiveParticipant(
userId,
null,
null,
false,
null,
null);
} | java |
public void addURIParticipantObject(String failedUri, String failureDescription)
{
List<TypeValuePairType> failureDescriptionValue = new LinkedList<>();
if (!EventUtils.isEmptyOrNull(failureDescription)) {
failureDescriptionValue.add(getTypeValuePair("Alert Description", failureDescription.getBytes()));
}
t... | java |
protected void initCheck() throws IOException {
// Check storage version
if (_version != STORAGE_VERSION) {
throw new IOException("Invalid version in " + _file.getName() + ": "
+ _version + ", " + STORAGE_VERSION + " expected");
}
// Check array file header
if(!checkHeader()... | java |
public void load(MemoryIntArray intArray) throws IOException {
if (!_file.exists() || _file.length() == 0) {
return;
}
Chronos c = new Chronos();
DataReader r = IOFactory.createDataReader(_file, _type);
try {
r.open();
r.position(DATA_START_POSITION);
for (in... | java |
public void load(MemoryLongArray longArray) throws IOException {
if (!_file.exists() || _file.length() == 0) {
return;
}
Chronos c = new Chronos();
DataReader r = IOFactory.createDataReader(_file, _type);
try {
r.open();
r.position(DATA_START_POSITION);
for (... | java |
public void load(MemoryShortArray shortArray) throws IOException {
if (!_file.exists() || _file.length() == 0) {
return;
}
Chronos c = new Chronos();
DataReader r = IOFactory.createDataReader(_file, _type);
try {
r.open();
r.position(DATA_START_POSITION);
for... | java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.