Thanks a Ton!! That was a lot of help!!! : 1. This stuff is for the web-based interface and it is not applicable to the : 24x7 Scheduler Java Edition anyway. If a job was created from a template : using 24x7 web-based interface or your custom interface you can save : template name and data (anything you want) with the job properties so that : if the user later needs to edit the job you can fill the screen with the : original template and data, in other words restore the original screen as : it appeared at the time of the initial job submission. For more info : please see "Working with templates" topic in the 24x7 Web-based : Management Console User's Guide (starting on page 19). : 2. Here is an example that will create a new folder and a new job within that : folder. If you want to create job an existing folder specify existing : folder Id instead of folderId variable. : // open session here ... : IntegerHolder holder = new IntegerHolder(new Integer(0)); : remote24x7.createFolder("Some folder", "folder description : here", holder); : int folderId = ((Integer)holder.getValue()).intValue(); : String jobDefinition = "NAME=My New Job\r\n" + : "COMMAND=c:\\winnt\\notepad.exe\r\n" + : "SCHEDULE_TYPE=D\r\n" + : "FRIDAY=Y\r\n" + : "SUNDAY=Y\r\n" + : "MONDAY=Y\r\n" + : "TUESDAY=Y\r\n" + : "WEDNESDAY=Y\r\n" + : "THURSDAY=Y\r\n" + : "SATURDAY=Y\r\n" + : "START_TIME=10:00\r\n" + : "ASYNC=N\r\n" + : "LOG=Y\r\n" + : "DESCRIPTION=job description\r\n" + : "JOB_TYPE=P\r\n" + : "FOLDER=" + folderId + "\r\n" + : "QUEUE=[default]"; : Integer jobId = remote24x7.createJob(jobDefinition); : // close session here ....
|