Skip to content

Commit

Permalink
Merge b9793dd into 5929f34
Browse files Browse the repository at this point in the history
  • Loading branch information
amitsharmaak committed Mar 17, 2016
2 parents 5929f34 + b9793dd commit 24947a3
Show file tree
Hide file tree
Showing 20 changed files with 594 additions and 455 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.validation.ConstraintViolationException;
Expand All @@ -65,7 +64,6 @@
* @author tgianos
* @since 2.0.0
*/
@Service
@Transactional(
rollbackFor = {
GenieException.class,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,8 @@
import org.apache.commons.lang3.StringUtils;
import org.hibernate.validator.constraints.NotBlank;
import org.hibernate.validator.constraints.NotEmpty;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.validation.ConstraintViolationException;
Expand All @@ -65,7 +63,6 @@
* @author amsharma
* @author tgianos
*/
@Service
@Transactional(
rollbackFor = {
GenieException.class,
Expand All @@ -85,7 +82,6 @@ public class JpaClusterServiceImpl implements ClusterService {
* @param clusterRepo The cluster repository to use.
* @param commandRepo The command repository to use.
*/
@Autowired
public JpaClusterServiceImpl(
final JpaClusterRepository clusterRepo,
final JpaCommandRepository commandRepo
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,8 @@
import org.apache.commons.lang3.StringUtils;
import org.hibernate.validator.constraints.NotBlank;
import org.hibernate.validator.constraints.NotEmpty;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.validation.ConstraintViolationException;
Expand All @@ -68,7 +66,6 @@
* @author tgianos
* @since 2.0.0
*/
@Service
@Transactional(
rollbackFor = {
GenieException.class,
Expand All @@ -90,7 +87,6 @@ public class JpaCommandServiceImpl implements CommandService {
* @param appRepo the application repository to use
* @param clusterRepo the cluster repository to use
*/
@Autowired
public JpaCommandServiceImpl(
final JpaCommandRepository commandRepo,
final JpaApplicationRepository appRepo,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import org.hibernate.validator.constraints.NotBlank;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.validation.ConstraintViolationException;
Expand All @@ -52,7 +50,6 @@
*
* @author amsharma
*/
@Service
@Transactional(
rollbackFor = {
GenieException.class,
Expand All @@ -69,15 +66,14 @@ public class JpaJobPersistenceServiceImpl implements JobPersistenceService {
private final JpaCommandRepository commandRepo;

/**
* Default Constructor.
* Constructor.
*
* @param jobRepo The job repository to use
* @param jobRequestRepo The job request repository to use
* @param jobExecutionRepo The jobExecution Repository to use
* @param clusterRepo The cluster repository to use
* @param commandRepo The command repository to use
*/
@Autowired
public JpaJobPersistenceServiceImpl(
final JpaJobRepository jobRepo,
final JpaJobRequestRepository jobRequestRepo,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,10 @@
import com.netflix.genie.core.services.JobSearchService;
import lombok.extern.slf4j.Slf4j;
import org.hibernate.validator.constraints.NotBlank;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.persistence.EntityManager;
Expand All @@ -64,7 +62,6 @@
* @author amsharma
*/
@Slf4j
@Service
@Transactional(readOnly = true)
public class JpaJobSearchServiceImpl implements JobSearchService {

Expand All @@ -82,7 +79,6 @@ public class JpaJobSearchServiceImpl implements JobSearchService {
* @param jobRequestRepository The repository to use for job request entities
* @param jobExecutionRepository The repository to use for job execution entities
*/
@Autowired
public JpaJobSearchServiceImpl(
final JpaJobRepository jobRepository,
final JpaJobRequestRepository jobRequestRepository,
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

import com.netflix.genie.core.metrics.GenieNodeStatistics;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;
Expand All @@ -32,7 +31,6 @@
* @author skrishnan
* @author tgianos
*/
@Component
@Slf4j
public class GenieNodeStatisticsImpl implements GenieNodeStatistics {

Expand Down

0 comments on commit 24947a3

Please sign in to comment.