C# 클래스 MonkeyWrench.Database.DBRevisionWork_Extensions

파일 보기 프로젝트 열기: rolfbjarne/monkeywrench 1 사용 예제들

공개 메소드들

메소드 설명
CalculateState ( DB db, int id, bool &completed ) : DBState

Calculates the state. Always hits the db.

CalculateState ( this rw, DB db ) : DBState

Calculates the state. Always hits the db.

Create ( DB db, int id ) : DBRevisionWork
EnsureState ( DB db, int id, DBState current ) : DBState

Calculates a new state if the current state is NotDone.

EnsureState ( this rw, DB db ) : DBState

Calculates a new state if the current state is NotDone

Find ( DB db, DBLane lane, MonkeyWrench.DataClasses.DBHost host, DBRevision revision ) : DBRevisionWork
GetCount ( DB db, int lane_id, int host_id ) : int
GetFiles ( this rw, DB db ) : List

Returns a list of all the files this revisionwork has produced

GetNextWork ( this rw, DB db, DBLane lane, MonkeyWrench.DataClasses.DBHost host, DBRevision revision, bool multiple_work ) : List

Finds pending steps for the current revision

SetWorkHost ( this rw, DB db, MonkeyWrench.DataClasses.DBHost host ) : bool

Sets workhost to the specified host and saves it to the db.

UpdateState ( this rw, DB db ) : void

비공개 메소드들

메소드 설명
FilterPendingWork ( this rw, DB db, List steps, List result, bool multiple_work ) : void

Puts pending steps in result

ForAll ( List states, List nonfatal, IsMatch pred ) : bool
ForAny ( List states, List nonfatal, IsMatch pred ) : bool
SaveState ( DB db, int id, DBState state, bool completed ) : void

메소드 상세

CalculateState() 공개 정적인 메소드

Calculates the state. Always hits the db.
public static CalculateState ( DB db, int id, bool &completed ) : DBState
db DB
id int
completed bool
리턴 DBState

CalculateState() 공개 정적인 메소드

Calculates the state. Always hits the db.
public static CalculateState ( this rw, DB db ) : DBState
rw this
db DB
리턴 DBState

Create() 공개 정적인 메소드

public static Create ( DB db, int id ) : DBRevisionWork
db DB
id int
리턴 MonkeyWrench.DataClasses.DBRevisionWork

EnsureState() 공개 정적인 메소드

Calculates a new state if the current state is NotDone.
public static EnsureState ( DB db, int id, DBState current ) : DBState
db DB
id int
current DBState
리턴 DBState

EnsureState() 공개 정적인 메소드

Calculates a new state if the current state is NotDone
public static EnsureState ( this rw, DB db ) : DBState
rw this
db DB
리턴 DBState

Find() 공개 정적인 메소드

public static Find ( DB db, DBLane lane, MonkeyWrench.DataClasses.DBHost host, DBRevision revision ) : DBRevisionWork
db DB
lane MonkeyWrench.DataClasses.DBLane
host MonkeyWrench.DataClasses.DBHost
revision MonkeyWrench.DataClasses.DBRevision
리턴 MonkeyWrench.DataClasses.DBRevisionWork

GetCount() 공개 정적인 메소드

public static GetCount ( DB db, int lane_id, int host_id ) : int
db DB
lane_id int
host_id int
리턴 int

GetFiles() 공개 정적인 메소드

Returns a list of all the files this revisionwork has produced
public static GetFiles ( this rw, DB db ) : List
rw this
db DB
리턴 List

GetNextWork() 공개 정적인 메소드

Finds pending steps for the current revision
public static GetNextWork ( this rw, DB db, DBLane lane, MonkeyWrench.DataClasses.DBHost host, DBRevision revision, bool multiple_work ) : List
rw this
db DB
lane MonkeyWrench.DataClasses.DBLane
host MonkeyWrench.DataClasses.DBHost
revision MonkeyWrench.DataClasses.DBRevision
multiple_work bool
리턴 List

SetWorkHost() 공개 정적인 메소드

Sets workhost to the specified host and saves it to the db.
public static SetWorkHost ( this rw, DB db, MonkeyWrench.DataClasses.DBHost host ) : bool
rw this
db DB
host MonkeyWrench.DataClasses.DBHost
리턴 bool

UpdateState() 공개 정적인 메소드

public static UpdateState ( this rw, DB db ) : void
rw this
db DB
리턴 void