mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
CLOUDSTACK-1253: Remove @author tag.
This commit is contained in:
parent
b54db07d20
commit
5147fb16ac
@ -21,7 +21,6 @@ import com.cloud.utils.exception.CloudRuntimeException;
|
||||
|
||||
/**
|
||||
* Exception thrown if number of requests is over api rate limit set.
|
||||
* @author minc
|
||||
*
|
||||
*/
|
||||
public class RequestLimitException extends CloudRuntimeException {
|
||||
|
||||
@ -18,7 +18,6 @@ package org.apache.cloudstack.api;
|
||||
|
||||
/**
|
||||
* Enum class for various API error code used in CloudStack
|
||||
* @author minc
|
||||
*
|
||||
*/
|
||||
public enum ApiErrorCode {
|
||||
|
||||
@ -58,7 +58,6 @@ import com.cloud.exception.PermissionDeniedException;
|
||||
|
||||
/**
|
||||
* Service used for list api query.
|
||||
* @author minc
|
||||
*
|
||||
*/
|
||||
public interface QueryService {
|
||||
|
||||
@ -22,7 +22,6 @@ import com.cloud.utils.component.PluggableService;
|
||||
|
||||
/**
|
||||
* Provide API rate limit service
|
||||
* @author minc
|
||||
*
|
||||
*/
|
||||
public interface ApiRateLimitService extends PluggableService{
|
||||
|
||||
@ -23,7 +23,6 @@ import net.sf.ehcache.constructs.blocking.LockTimeoutException;
|
||||
|
||||
/**
|
||||
* A Limit store implementation using Ehcache.
|
||||
* @author minc
|
||||
*
|
||||
*/
|
||||
public class EhcacheLimitStore implements LimitStore {
|
||||
|
||||
@ -20,7 +20,6 @@ import com.cloud.user.Account;
|
||||
|
||||
/**
|
||||
* Interface to define how an api limit store should work.
|
||||
* @author minc
|
||||
*
|
||||
*/
|
||||
public interface LimitStore {
|
||||
|
||||
@ -18,7 +18,6 @@ package org.apache.cloudstack.ratelimit;
|
||||
|
||||
/**
|
||||
* Interface for each entry in LimitStore.
|
||||
* @author minc
|
||||
*
|
||||
*/
|
||||
public interface StoreEntry {
|
||||
|
||||
@ -20,7 +20,6 @@ import java.util.concurrent.atomic.AtomicInteger;
|
||||
|
||||
/**
|
||||
* Implementation of limit store entry.
|
||||
* @author minc
|
||||
*
|
||||
*/
|
||||
public class StoreEntryImpl implements StoreEntry {
|
||||
|
||||
@ -37,8 +37,6 @@ import com.google.gson.Gson;
|
||||
/**
|
||||
* Base class for API Test
|
||||
*
|
||||
* @author Min Chen
|
||||
*
|
||||
*/
|
||||
public abstract class APITest {
|
||||
|
||||
|
||||
@ -24,8 +24,6 @@ import com.google.gson.annotations.SerializedName;
|
||||
/**
|
||||
* Login Response object
|
||||
*
|
||||
* @author Min Chen
|
||||
*
|
||||
*/
|
||||
public class LoginResponse extends BaseResponse {
|
||||
|
||||
|
||||
@ -34,9 +34,6 @@ import com.cloud.utils.exception.CloudRuntimeException;
|
||||
/**
|
||||
* Test fixture to do integration rate limit test.
|
||||
* Currently we commented out this test suite since it requires a real MS and Db running.
|
||||
*
|
||||
* @author Min Chen
|
||||
*
|
||||
*/
|
||||
public class RateLimitIntegrationTest extends APITest {
|
||||
|
||||
|
||||
@ -67,7 +67,6 @@ import com.cloud.user.UserContext;
|
||||
|
||||
/**
|
||||
* Helper class to generate response from DB view VO objects.
|
||||
* @author minc
|
||||
*
|
||||
*/
|
||||
public class ViewResponseHelper {
|
||||
|
||||
@ -24,7 +24,6 @@ import org.apache.cloudstack.api.InternalIdentity;
|
||||
/**
|
||||
* This is the interface for all VO classes representing DB views created for previous ControlledEntity.
|
||||
*
|
||||
* @author minc
|
||||
*
|
||||
*/
|
||||
public interface ControlledViewEntity extends ControlledEntity, InternalIdentity, Identity {
|
||||
|
||||
@ -39,7 +39,6 @@ import org.apache.cloudstack.api.InternalIdentity;
|
||||
|
||||
/**
|
||||
* Host DB view.
|
||||
* @author minc
|
||||
*
|
||||
*/
|
||||
@Entity
|
||||
|
||||
@ -34,7 +34,6 @@ import org.apache.cloudstack.api.InternalIdentity;
|
||||
|
||||
/**
|
||||
* Storage Pool DB view.
|
||||
* @author minc
|
||||
*
|
||||
*/
|
||||
@Entity
|
||||
|
||||
@ -36,8 +36,6 @@ import com.google.gson.Gson;
|
||||
/**
|
||||
* Base class for API Test
|
||||
*
|
||||
* @author Min Chen
|
||||
*
|
||||
*/
|
||||
public abstract class APITest {
|
||||
|
||||
|
||||
@ -33,8 +33,6 @@ import com.cloud.utils.exception.CloudRuntimeException;
|
||||
* Test fixture to do performance test for list command
|
||||
* Currently we commented out this test suite since it requires a real MS and Db running.
|
||||
*
|
||||
* @author Min Chen
|
||||
*
|
||||
*/
|
||||
public class ListPerfTest extends APITest {
|
||||
|
||||
|
||||
@ -24,8 +24,6 @@ import com.google.gson.annotations.SerializedName;
|
||||
/**
|
||||
* Login Response object
|
||||
*
|
||||
* @author Min Chen
|
||||
*
|
||||
*/
|
||||
public class LoginResponse extends BaseResponse {
|
||||
|
||||
|
||||
@ -30,18 +30,16 @@ import com.cloud.utils.component.ComponentContext;
|
||||
import com.cloud.utils.exception.CloudRuntimeException;
|
||||
|
||||
/**
|
||||
* A test fixture to test APIs or bugs found for Transaction class. This test fixture will do one time setup before
|
||||
* A test fixture to test APIs or bugs found for Transaction class. This test fixture will do one time setup before
|
||||
* all its testcases to set up a test db table, and then tear down these test db artifacts after all testcases are run.
|
||||
*
|
||||
* @author Min Chen
|
||||
*
|
||||
*
|
||||
*/
|
||||
public class TransactionTest {
|
||||
|
||||
@BeforeClass
|
||||
public static void oneTimeSetup() {
|
||||
Connection conn = null;
|
||||
PreparedStatement pstmt = null;
|
||||
PreparedStatement pstmt = null;
|
||||
try {
|
||||
conn = Transaction.getStandaloneConnection();
|
||||
|
||||
@ -75,7 +73,7 @@ public class TransactionTest {
|
||||
* When a transaction is set to use user-managed db connection, for each following db statement, we should see
|
||||
* that the same db connection is reused rather than acquiring a new one each time in typical transaction model.
|
||||
*/
|
||||
public void testUserManagedConnection() {
|
||||
public void testUserManagedConnection() {
|
||||
DbTestDao testDao = ComponentContext.inject(DbTestDao.class);
|
||||
Transaction txn = Transaction.open("SingleConnectionThread");
|
||||
Connection conn = null;
|
||||
@ -97,7 +95,7 @@ public class TransactionTest {
|
||||
} catch (SQLException e) {
|
||||
Assert.fail(e.getMessage());
|
||||
} finally {
|
||||
txn.transitToAutoManagedConnection(Transaction.CLOUD_DB);
|
||||
txn.transitToAutoManagedConnection(Transaction.CLOUD_DB);
|
||||
txn.close();
|
||||
|
||||
if (conn != null) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user