com.sds.acube.bpm.framework.api
Class LockProcessor

java.lang.Object
  extended by com.sds.acube.bpm.framework.api.LockProcessor

public class LockProcessor
extends java.lang.Object

다중서버 사용시 범용적으로 lock을 관리할 수 있도록 지원 (먼저 DB에 TBPM_SERVICE_LOCK 테이블이 있어야 함) CREATE TABLE tBPM_SERVICE_LOCK ( SERVICE_NAME VARCHAR2(100) NOT NULL, SERVER_ID VARCHAR2(50) NOT NULL, LIMIT_MINUTE NUMBER(4) NOT NULL, LAST_UPDATE DATE NOT NULL ); LockProcessor.java 2012. 5. 31.

Version:
1.0.0.0 Copyright 2001 Samsung SDS Co., Ltd. All rights reserved.
Author:
LEE IL YONG

Constructor Summary
LockProcessor()
           
 
Method Summary
static boolean isCanDoService(java.lang.String serviceName, java.lang.String serverID, int limitMinute, org.apache.log4j.Logger logger)
          서비스실행 가능여부 조사
static boolean isCanDoService(java.lang.String serviceName, java.lang.String serverID, int limitMinute, org.apache.log4j.Logger logger, boolean logFlag)
          서비스실행 가능여부 조사
static void main(java.lang.String[] args)
           
static boolean modifyServiceLastUpdate(java.lang.String serviceName, java.lang.String serverID, org.apache.log4j.Logger logger)
          서비스 완료 시간을 수정
static boolean modifyServiceLastUpdate(java.lang.String serviceName, java.lang.String serverID, org.apache.log4j.Logger logger, boolean logFlag)
          서비스 완료 시간을 수정
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LockProcessor

public LockProcessor()
Method Detail

isCanDoService

public static boolean isCanDoService(java.lang.String serviceName,
                                     java.lang.String serverID,
                                     int limitMinute,
                                     org.apache.log4j.Logger logger)
                              throws java.lang.Exception
서비스실행 가능여부 조사

Parameters:
serviceName - 서비스명
serverID - 서버 ID
limitMinute - 제한시간(분) ex)10
Returns:
boolean
Throws:
java.lang.Exception
Since:
2012.05.31 LEE IL YONG

isCanDoService

public static boolean isCanDoService(java.lang.String serviceName,
                                     java.lang.String serverID,
                                     int limitMinute,
                                     org.apache.log4j.Logger logger,
                                     boolean logFlag)
                              throws java.lang.Exception
서비스실행 가능여부 조사

Parameters:
serviceName - 서비스명
serverID - 서버 ID
limitMinute - 제한시간(분) ex)10
Returns:
boolean
Throws:
java.lang.Exception
Since:
2012.05.31 LEE IL YONG

modifyServiceLastUpdate

public static boolean modifyServiceLastUpdate(java.lang.String serviceName,
                                              java.lang.String serverID,
                                              org.apache.log4j.Logger logger)
                                       throws java.lang.Exception
서비스 완료 시간을 수정

Parameters:
serviceName - 서비스명
serverID - 서버 ID
Returns:
boolean
Throws:
java.lang.Exception
Since:
2012.05.31 LEE IL YONG

modifyServiceLastUpdate

public static boolean modifyServiceLastUpdate(java.lang.String serviceName,
                                              java.lang.String serverID,
                                              org.apache.log4j.Logger logger,
                                              boolean logFlag)
                                       throws java.lang.Exception
서비스 완료 시간을 수정

Parameters:
serviceName - 서비스명
serverID - 서버 ID
Returns:
boolean
Throws:
java.lang.Exception
Since:
2012.05.31 LEE IL YONG

main

public static void main(java.lang.String[] args)
Parameters:
args -