com.pmease.quickbuild
Class ServerServiceImpl

java.lang.Object
  extended by com.pmease.quickbuild.ServerServiceImpl
All Implemented Interfaces:
ServerService

public class ServerServiceImpl
extends java.lang.Object
implements ServerService


Field Summary
 
Fields inherited from interface com.pmease.quickbuild.grid.ServerService
SERVICE_PATH
 
Constructor Summary
ServerServiceImpl()
           
 
Method Summary
 byte[] criteriaList(byte[] carrierBytes)
           
 byte[] criteriaUniqueResult(byte[] carrierBytes)
           
 int executeUpdate(byte[] carrierBytes)
           
 byte[] get(java.lang.Class<?> entityClass, java.io.Serializable id)
           
 byte[] get(java.lang.Class<?> entityClass, java.io.Serializable id, org.hibernate.LockOptions lockOptions)
           
 byte[] get(java.lang.String entityName, java.io.Serializable id)
           
 byte[] get(java.lang.String entityName, java.io.Serializable id, org.hibernate.LockOptions lockOptions)
           
 GridNode getAgentNodeByAddress(java.lang.String nodeAddress)
           
 GridNode getAgentNodeById(java.util.UUID nodeId)
           
 java.util.Collection<GridNode> getBuildAgentNodes()
           
 java.lang.Long getBuildId(java.lang.String requestId, java.lang.String nodeAddress)
           
 java.lang.String getBuildPublishDir(java.lang.Long buildId)
           
 Build.Status getBuildStatus(java.lang.Long buildId, java.lang.String nodeAddress)
           
 java.lang.String getConfigurationPublishDir(java.lang.Long configurationId)
           
 java.lang.Long getId(java.lang.String name)
           
 GridNode getNodeByAddress(java.lang.String nodeAddress)
           
 GridNode getNodeById(java.util.UUID nodeId)
           
 GridNode getServerNode()
           
 GridNode getUserAgentNode(java.lang.Long userId)
           
 boolean hasPermission(java.lang.String userName, java.lang.String password, java.lang.Long configurationId, java.lang.String permission)
           
 java.util.List<java.lang.String> listArtifacts(java.lang.Long buildId, java.lang.String dir, java.lang.String patterns)
           
 byte[] load(java.lang.Class<?> entityClass, java.io.Serializable id)
           
 byte[] load(java.lang.Class<?> entityClass, java.io.Serializable id, org.hibernate.LockOptions lockOptions)
           
 byte[] load(java.lang.String entityName, java.io.Serializable id)
           
 byte[] load(java.lang.String entityName, java.io.Serializable id, org.hibernate.LockOptions lockOptions)
           
 byte[] queryList(byte[] carrierBytes)
           
 byte[] queryUniqueResult(byte[] carrierBytes)
           
 java.util.List<Changeset> readChanges(java.lang.Long buildId, java.lang.String repositoryName)
           
 void repositoryMigrated(java.lang.Long configurationId, byte[] bytes)
           
 RequestResult requestBuild(java.lang.Long requesterId, boolean scheduled, BuildRequest request)
           
 void saveVariable(java.lang.Long configurationId, java.lang.String varName, java.lang.String varValue)
           
 void stepMigrated(java.lang.Long configurationId, byte[] bytes)
           
 void stepSkipped(java.lang.Long buildId, StepPath stepPath)
           
 void stepUpdated(java.lang.Long buildId, StepPath stepPath, StepRuntime stepRuntime)
           
 void writeChanges(java.lang.Long buildId, java.lang.String repositoryName, java.util.List<Changeset> changes)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerServiceImpl

public ServerServiceImpl()
Method Detail

executeUpdate

public int executeUpdate(byte[] carrierBytes)
Specified by:
executeUpdate in interface ServerService

queryList

public byte[] queryList(byte[] carrierBytes)
Specified by:
queryList in interface ServerService

queryUniqueResult

public byte[] queryUniqueResult(byte[] carrierBytes)
Specified by:
queryUniqueResult in interface ServerService

criteriaList

public byte[] criteriaList(byte[] carrierBytes)
Specified by:
criteriaList in interface ServerService

criteriaUniqueResult

public byte[] criteriaUniqueResult(byte[] carrierBytes)
Specified by:
criteriaUniqueResult in interface ServerService

get

public byte[] get(java.lang.Class<?> entityClass,
                  java.io.Serializable id)
Specified by:
get in interface ServerService

get

public byte[] get(java.lang.String entityName,
                  java.io.Serializable id)
Specified by:
get in interface ServerService

get

public byte[] get(java.lang.Class<?> entityClass,
                  java.io.Serializable id,
                  org.hibernate.LockOptions lockOptions)
Specified by:
get in interface ServerService

get

public byte[] get(java.lang.String entityName,
                  java.io.Serializable id,
                  org.hibernate.LockOptions lockOptions)
Specified by:
get in interface ServerService

load

public byte[] load(java.lang.Class<?> entityClass,
                   java.io.Serializable id)
Specified by:
load in interface ServerService

load

public byte[] load(java.lang.String entityName,
                   java.io.Serializable id)
Specified by:
load in interface ServerService

load

public byte[] load(java.lang.Class<?> entityClass,
                   java.io.Serializable id,
                   org.hibernate.LockOptions lockOptions)
Specified by:
load in interface ServerService

load

public byte[] load(java.lang.String entityName,
                   java.io.Serializable id,
                   org.hibernate.LockOptions lockOptions)
Specified by:
load in interface ServerService

getBuildAgentNodes

public java.util.Collection<GridNode> getBuildAgentNodes()
Specified by:
getBuildAgentNodes in interface ServerService

getServerNode

public GridNode getServerNode()
Specified by:
getServerNode in interface ServerService

getAgentNodeById

public GridNode getAgentNodeById(java.util.UUID nodeId)
Specified by:
getAgentNodeById in interface ServerService

getAgentNodeByAddress

public GridNode getAgentNodeByAddress(java.lang.String nodeAddress)
Specified by:
getAgentNodeByAddress in interface ServerService

getNodeById

public GridNode getNodeById(java.util.UUID nodeId)
Specified by:
getNodeById in interface ServerService

getNodeByAddress

public GridNode getNodeByAddress(java.lang.String nodeAddress)
Specified by:
getNodeByAddress in interface ServerService

getUserAgentNode

public GridNode getUserAgentNode(java.lang.Long userId)
Specified by:
getUserAgentNode in interface ServerService

stepUpdated

public void stepUpdated(java.lang.Long buildId,
                        StepPath stepPath,
                        StepRuntime stepRuntime)
Specified by:
stepUpdated in interface ServerService

stepSkipped

public void stepSkipped(java.lang.Long buildId,
                        StepPath stepPath)
Specified by:
stepSkipped in interface ServerService

getId

public java.lang.Long getId(java.lang.String name)
Specified by:
getId in interface ServerService

repositoryMigrated

public void repositoryMigrated(java.lang.Long configurationId,
                               byte[] bytes)
Specified by:
repositoryMigrated in interface ServerService

stepMigrated

public void stepMigrated(java.lang.Long configurationId,
                         byte[] bytes)
Specified by:
stepMigrated in interface ServerService

requestBuild

public RequestResult requestBuild(java.lang.Long requesterId,
                                  boolean scheduled,
                                  BuildRequest request)
Specified by:
requestBuild in interface ServerService

saveVariable

public void saveVariable(java.lang.Long configurationId,
                         java.lang.String varName,
                         java.lang.String varValue)
Specified by:
saveVariable in interface ServerService

getBuildId

public java.lang.Long getBuildId(java.lang.String requestId,
                                 java.lang.String nodeAddress)
Specified by:
getBuildId in interface ServerService

getBuildPublishDir

public java.lang.String getBuildPublishDir(java.lang.Long buildId)
Specified by:
getBuildPublishDir in interface ServerService

getConfigurationPublishDir

public java.lang.String getConfigurationPublishDir(java.lang.Long configurationId)
Specified by:
getConfigurationPublishDir in interface ServerService

getBuildStatus

public Build.Status getBuildStatus(java.lang.Long buildId,
                                   java.lang.String nodeAddress)
Specified by:
getBuildStatus in interface ServerService

writeChanges

public void writeChanges(java.lang.Long buildId,
                         java.lang.String repositoryName,
                         java.util.List<Changeset> changes)
Specified by:
writeChanges in interface ServerService

readChanges

public java.util.List<Changeset> readChanges(java.lang.Long buildId,
                                             java.lang.String repositoryName)
Specified by:
readChanges in interface ServerService

listArtifacts

public java.util.List<java.lang.String> listArtifacts(java.lang.Long buildId,
                                                      java.lang.String dir,
                                                      java.lang.String patterns)
Specified by:
listArtifacts in interface ServerService

hasPermission

public boolean hasPermission(java.lang.String userName,
                             java.lang.String password,
                             java.lang.Long configurationId,
                             java.lang.String permission)
Specified by:
hasPermission in interface ServerService


Copyright © 2005-2010 PMEase Inc. All Rights Reserved.