<< Click to Display Table of Contents >>
Program
외부 프로그램 연동 기능과 관련된 메소드를 제공하는 클래스입니다.
Constructor Detail
Program
public Program(string ip, int port)
오즈 스케줄러에서 외부 프로그램 등록 및 관리 기능을 수행합니다.
Parameters:
ip - 오즈 스케줄러 서버가 설치되어 있는 호스트 컴퓨터의 IP
port - 스케줄러 포트(기본 값: 9521)
Method Detail
CreateFolder
public void CreateFolder(ServerInfo s, string folder)
스케줄러에서 외부 프로그램의 폴더를 생성합니다.
Parameters:
s - 오즈 서버 정보
folder - 생성할 폴더명
DownloadFile
public Stream DownloadFile(ServerInfo s, string file)
등록된 외부 프로그램 파일을 다운로드합니다.
Parameters:
s - 오즈 서버 정보
file - 다운로드할 파일명
GetExternalProgramInfos
public FileInfo[] GetExternalProgramInfos(ServerInfo s, string folder)
스케줄러에서 외부 프로그램 목록을 가져옵니다.
Parameters:
s - 오즈 서버 정보
folder - 폴더명
RemoveFiles
public void RemoveFiles(ServerInfo s, string folder, string[] files)
등록된 외부 프로그램 파일을 삭제합니다.
Parameters:
s - 오즈 서버 정보
folder - 폴더명
files - 삭제할 프로그램 파일명
RemoveFolder
public void RemoveFolder(ServerInfo s, string folder, bool forciblyRemove)
스케줄러에서 외부 프로그램의 폴더를 삭제합니다.
Parameters:
s - 오즈 서버 정보
folder - 삭제할 폴더명
forciblyRemove - 하위 폴더가 존재할 경우 폴더 삭제 여부(true : 폴더를 삭제함. false : 폴더를 삭제하지 않음)
UploadFile
public void UploadFile(ServerInfo s, string file, Stream inputStream)
스케줄러 서버에 외부 프로그램을 등록합니다.
Parameters:
s - 오즈 서버 정보
file - 등록할 파일명
inputStream - 등록할 파일의 입력 스트림