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); }
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); }
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); }
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); }
/* ******** 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); }
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); }
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); } }
/* ******** 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); } }
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(); } }