예제 #1
0
 protected void sendRemoveHostToWotaskds(MHost exHost, NSArray wotaskdArray) {
   WOResponse[] responses =
       sendRequest(
           createUpdateRequestDictionary(null, exHost, null, null, "remove"), wotaskdArray, true);
   NSDictionary[] responseDicts = generateResponseDictionaries(responses);
   getUpdateErrors(responseDicts, "remove", true, false, false, false);
 }
예제 #2
0
 public void sendAddHostToWotaskds(MHost newHost, NSArray wotaskdArray) {
   WOResponse[] responses =
       sendRequest(
           createUpdateRequestDictionary(null, newHost, null, null, "add"), wotaskdArray, true);
   NSDictionary[] responseDicts = generateResponseDictionaries(responses);
   getUpdateErrors(responseDicts, "add", true, false, false, false);
 }
예제 #3
0
  private void _sendOverwriteClearToWotaskd(MHost aHost, String type, Object data) {
    NSMutableDictionary updateWotaskd = new NSMutableDictionary(data, type);
    NSMutableDictionary monitorRequest = new NSMutableDictionary(updateWotaskd, "updateWotaskd");

    WOResponse[] responses = sendRequest(monitorRequest, new NSArray(aHost), true);
    NSDictionary[] responseDicts = generateResponseDictionaries(responses);
    getUpdateErrors(responseDicts, type, false, false, false, false);
  }
예제 #4
0
 public void sendRemoveApplicationToWotaskds(MApplication exApplication, NSArray wotaskdArray) {
   WOResponse[] responses =
       sendRequest(
           createUpdateRequestDictionary(null, null, exApplication, null, "remove"),
           wotaskdArray,
           true);
   NSDictionary[] responseDicts = generateResponseDictionaries(responses);
   getUpdateErrors(responseDicts, "remove", false, true, false, false);
 }
예제 #5
0
 /* ******** ADDING (UPDATE) ********* */
 public void sendAddInstancesToWotaskds(NSArray newInstancesArray, NSArray wotaskdArray) {
   WOResponse[] responses =
       sendRequest(
           createUpdateRequestDictionary(null, null, null, newInstancesArray, "add"),
           wotaskdArray,
           true);
   NSDictionary[] responseDicts = generateResponseDictionaries(responses);
   getUpdateErrors(responseDicts, "add", false, false, true, false);
 }
예제 #6
0
 public void sendUpdateApplicationAndInstancesToWotaskds(
     MApplication changedApplication, NSArray wotaskdArray) {
   WOResponse[] responses =
       sendRequest(
           createUpdateRequestDictionary(
               null, null, changedApplication, changedApplication.instanceArray(), "configure"),
           wotaskdArray,
           true);
   NSDictionary[] responseDicts = generateResponseDictionaries(responses);
   getUpdateErrors(responseDicts, "configure", false, true, true, false);
 }
예제 #7
0
 public void sendUpdateApplicationToWotaskds(
     MApplication changedApplication, NSArray wotaskdArray) {
   if (wotaskdArray.count() != 0) {
     WOResponse[] responses =
         sendRequest(
             createUpdateRequestDictionary(null, null, changedApplication, null, "configure"),
             wotaskdArray,
             true);
     NSDictionary[] responseDicts = generateResponseDictionaries(responses);
     getUpdateErrors(responseDicts, "configure", false, true, false, false);
   }
 }
예제 #8
0
 /* ******** CONFIGURE (UPDATE) ********* */
 public void sendUpdateInstancesToWotaskds(
     NSArray<MInstance> changedInstanceArray, NSArray wotaskdArray) {
   if (wotaskdArray.count() != 0 && changedInstanceArray.count() != 0) {
     WOResponse[] responses =
         sendRequest(
             createUpdateRequestDictionary(null, null, null, changedInstanceArray, "configure"),
             wotaskdArray,
             true);
     NSDictionary[] responseDicts = generateResponseDictionaries(responses);
     getUpdateErrors(responseDicts, "configure", false, false, true, false);
   }
 }
예제 #9
0
 public void sendUpdateSiteToWotaskds() {
   startReading();
   try {
     NSMutableArray hostArray = siteConfig().hostArray();
     if (hostArray.count() != 0) {
       NSMutableDictionary updateRequestDictionary =
           createUpdateRequestDictionary(siteConfig(), null, null, null, "configure");
       WOResponse[] responses = sendRequest(updateRequestDictionary, hostArray, true);
       NSDictionary[] responseDicts = generateResponseDictionaries(responses);
       getUpdateErrors(responseDicts, "configure", false, false, false, true);
     }
   } finally {
     endReading();
   }
 }