* @return TableMetadata
*/
public KeyspaceMetadata returnKeyspaceMetadata(String keyspace) {
- KeyspaceMetadata ks = cluster.getMetadata().getKeyspace(keyspace);
- return ks;
+ return cluster.getMetadata().getKeyspace(keyspace);
}
}
private void populateMDCAndResponseHeader(Map<String, String> headerMap, String idKey, String mdcKey,
- boolean isRequired, HttpServletResponse httpResponse) throws IOException {
+ boolean isRequired, HttpServletResponse httpResponse) {
idKey = idKey.trim().toUpperCase();
}
- public void updateLockAcquireTime(String keyspace, String table, String key, String lockReference)
- throws MusicServiceException, MusicQueryException {
+ public void updateLockAcquireTime(String keyspace, String table, String key, String lockReference) {
table = table_prepend_name + table;
PreparedQueryObject queryObject = new PreparedQueryObject();
Long lockReferenceL = Long.parseLong(lockReference);
* ===================================================================
* Copyright (c) 2017 AT&T Intellectual Property
* ===================================================================
- * Modifications Copyright (c) 2018 IBM.
+ * Modifications Copyright (c) 2019 IBM.
* Modifications Copyright (c) 2019 Samsung.
* ===================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
private static Boolean messageIdRequired = false;
private static String cipherEncKey = "";
-
+ public MusicUtil() {
+ throw new IllegalStateException("Utility Class");
+ }
+
public static String getLockUsing() {
return lockUsing;
}
MusicUtil.lockUsing = lockUsing;
}
- public MusicUtil() {
- throw new IllegalStateException("Utility Class");
- }
/**
*
* @return cassandra port
@ApiParam(value = "Authorization", required = true) @HeaderParam(MusicUtil.AUTHORIZATION) String authorization,
@ApiParam(value = "AID", required = false, hidden = true) @HeaderParam("aid") String aid,
@ApiParam(value = "Application namespace",
- required = false, hidden = true) @HeaderParam("ns") String ns) throws Exception{
+ required = false, hidden = true) @HeaderParam("ns") String ns) {
try {
ResponseBuilder response = MusicUtil.buildVersionResponse(VERSION, minorVersion, patchVersion);
Map<String, Object> resultMap = MusicCore.validateLock(lockName);
@ApiParam(value = "Authorization", required = true) @HeaderParam(MusicUtil.AUTHORIZATION) String authorization,
@ApiParam(value = "AID", required = false, hidden = true) @HeaderParam("aid") String aid,
@ApiParam(value = "Application namespace",
- required = false, hidden = true) @HeaderParam("ns") String ns) throws Exception{
+ required = false, hidden = true) @HeaderParam("ns") String ns) {
try {
ResponseBuilder response = MusicUtil.buildVersionResponse(VERSION, minorVersion, patchVersion);
Map<String, Object> resultMap = MusicCore.validateLock(lockName);