code
stringlengths
73
34.1k
label
stringclasses
1 value
public static base_response update(nitro_service client, rsskeytype resource) throws Exception { rsskeytype updateresource = new rsskeytype(); updateresource.rsstype = resource.rsstype; return updateresource.update_resource(client); }
java
public static rsskeytype get(nitro_service service) throws Exception{ rsskeytype obj = new rsskeytype(); rsskeytype[] response = (rsskeytype[])obj.get_resources(service); return response[0]; }
java
public static vpntrafficpolicy_vpnglobal_binding[] get(nitro_service service, String name) throws Exception{ vpntrafficpolicy_vpnglobal_binding obj = new vpntrafficpolicy_vpnglobal_binding(); obj.set_name(name); vpntrafficpolicy_vpnglobal_binding response[] = (vpntrafficpolicy_vpnglobal_binding[]) obj.get_resources(service); return response; }
java
public static tmglobal_tmsessionpolicy_binding[] get(nitro_service service) throws Exception{ tmglobal_tmsessionpolicy_binding obj = new tmglobal_tmsessionpolicy_binding(); tmglobal_tmsessionpolicy_binding response[] = (tmglobal_tmsessionpolicy_binding[]) obj.get_resources(service); return response; }
java
public static systemglobal_authenticationldappolicy_binding[] get(nitro_service service) throws Exception{ systemglobal_authenticationldappolicy_binding obj = new systemglobal_authenticationldappolicy_binding(); systemglobal_authenticationldappolicy_binding response[] = (systemglobal_authenticationldappolicy_binding[]) obj.get_resources(service); return response; }
java
public static authenticationvserver_authenticationradiuspolicy_binding[] get(nitro_service service, String name) throws Exception{ authenticationvserver_authenticationradiuspolicy_binding obj = new authenticationvserver_authenticationradiuspolicy_binding(); obj.set_name(name); authenticationvserver_authenticationradiuspolicy_binding response[] = (authenticationvserver_authenticationradiuspolicy_binding[]) obj.get_resources(service); return response; }
java
public static auditnslogpolicy_authenticationvserver_binding[] get(nitro_service service, String name) throws Exception{ auditnslogpolicy_authenticationvserver_binding obj = new auditnslogpolicy_authenticationvserver_binding(); obj.set_name(name); auditnslogpolicy_authenticationvserver_binding response[] = (auditnslogpolicy_authenticationvserver_binding[]) obj.get_resources(service); return response; }
java
public static vlan_nsip6_binding[] get(nitro_service service, Long id) throws Exception{ vlan_nsip6_binding obj = new vlan_nsip6_binding(); obj.set_id(id); vlan_nsip6_binding response[] = (vlan_nsip6_binding[]) obj.get_resources(service); return response; }
java
public static appflowpolicylabel[] get(nitro_service service) throws Exception{ appflowpolicylabel obj = new appflowpolicylabel(); appflowpolicylabel[] response = (appflowpolicylabel[])obj.get_resources(service); return response; }
java
public static appflowpolicylabel get(nitro_service service, String labelname) throws Exception{ appflowpolicylabel obj = new appflowpolicylabel(); obj.set_labelname(labelname); appflowpolicylabel response = (appflowpolicylabel) obj.get_resource(service); return response; }
java
public static nslimitidentifier_stats[] get(nitro_service service) throws Exception{ nslimitidentifier_stats obj = new nslimitidentifier_stats(); nslimitidentifier_stats[] response = (nslimitidentifier_stats[])obj.stat_resources(service); return response; }
java
public static nslimitidentifier_stats get(nitro_service service, String name) throws Exception{ nslimitidentifier_stats obj = new nslimitidentifier_stats(); obj.set_name(name); nslimitidentifier_stats response = (nslimitidentifier_stats) obj.stat_resource(service); return response; }
java
public static base_response add(nitro_service client, cachecontentgroup resource) throws Exception { cachecontentgroup addresource = new cachecontentgroup(); addresource.name = resource.name; addresource.weakposrelexpiry = resource.weakposrelexpiry; addresource.heurexpiryparam = resource.heurexpiryparam; addresource.relexpiry = resource.relexpiry; addresource.relexpirymillisec = resource.relexpirymillisec; addresource.absexpiry = resource.absexpiry; addresource.absexpirygmt = resource.absexpirygmt; addresource.weaknegrelexpiry = resource.weaknegrelexpiry; addresource.hitparams = resource.hitparams; addresource.invalparams = resource.invalparams; addresource.ignoreparamvaluecase = resource.ignoreparamvaluecase; addresource.matchcookies = resource.matchcookies; addresource.invalrestrictedtohost = resource.invalrestrictedtohost; addresource.polleverytime = resource.polleverytime; addresource.ignorereloadreq = resource.ignorereloadreq; addresource.removecookies = resource.removecookies; addresource.prefetch = resource.prefetch; addresource.prefetchperiod = resource.prefetchperiod; addresource.prefetchperiodmillisec = resource.prefetchperiodmillisec; addresource.prefetchmaxpending = resource.prefetchmaxpending; addresource.flashcache = resource.flashcache; addresource.expireatlastbyte = resource.expireatlastbyte; addresource.insertvia = resource.insertvia; addresource.insertage = resource.insertage; addresource.insertetag = resource.insertetag; addresource.cachecontrol = resource.cachecontrol; addresource.quickabortsize = resource.quickabortsize; addresource.minressize = resource.minressize; addresource.maxressize = resource.maxressize; addresource.memlimit = resource.memlimit; addresource.ignorereqcachinghdrs = resource.ignorereqcachinghdrs; addresource.minhits = resource.minhits; addresource.alwaysevalpolicies = resource.alwaysevalpolicies; addresource.persist = resource.persist; addresource.pinned = resource.pinned; addresource.lazydnsresolve = resource.lazydnsresolve; addresource.hitselector = resource.hitselector; addresource.invalselector = resource.invalselector; addresource.type = resource.type; return addresource.add_resource(client); }
java
public static base_response update(nitro_service client, cachecontentgroup resource) throws Exception { cachecontentgroup updateresource = new cachecontentgroup(); updateresource.name = resource.name; updateresource.weakposrelexpiry = resource.weakposrelexpiry; updateresource.heurexpiryparam = resource.heurexpiryparam; updateresource.relexpiry = resource.relexpiry; updateresource.relexpirymillisec = resource.relexpirymillisec; updateresource.absexpiry = resource.absexpiry; updateresource.absexpirygmt = resource.absexpirygmt; updateresource.weaknegrelexpiry = resource.weaknegrelexpiry; updateresource.hitparams = resource.hitparams; updateresource.invalparams = resource.invalparams; updateresource.ignoreparamvaluecase = resource.ignoreparamvaluecase; updateresource.matchcookies = resource.matchcookies; updateresource.invalrestrictedtohost = resource.invalrestrictedtohost; updateresource.polleverytime = resource.polleverytime; updateresource.ignorereloadreq = resource.ignorereloadreq; updateresource.removecookies = resource.removecookies; updateresource.prefetch = resource.prefetch; updateresource.prefetchperiod = resource.prefetchperiod; updateresource.prefetchperiodmillisec = resource.prefetchperiodmillisec; updateresource.prefetchmaxpending = resource.prefetchmaxpending; updateresource.flashcache = resource.flashcache; updateresource.expireatlastbyte = resource.expireatlastbyte; updateresource.insertvia = resource.insertvia; updateresource.insertage = resource.insertage; updateresource.insertetag = resource.insertetag; updateresource.cachecontrol = resource.cachecontrol; updateresource.quickabortsize = resource.quickabortsize; updateresource.minressize = resource.minressize; updateresource.maxressize = resource.maxressize; updateresource.memlimit = resource.memlimit; updateresource.ignorereqcachinghdrs = resource.ignorereqcachinghdrs; updateresource.minhits = resource.minhits; updateresource.alwaysevalpolicies = resource.alwaysevalpolicies; updateresource.persist = resource.persist; updateresource.pinned = resource.pinned; updateresource.lazydnsresolve = resource.lazydnsresolve; updateresource.hitselector = resource.hitselector; updateresource.invalselector = resource.invalselector; return updateresource.update_resource(client); }
java
public static base_response expire(nitro_service client, cachecontentgroup resource) throws Exception { cachecontentgroup expireresource = new cachecontentgroup(); expireresource.name = resource.name; return expireresource.perform_operation(client,"expire"); }
java
public static base_responses expire(nitro_service client, cachecontentgroup resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { cachecontentgroup expireresources[] = new cachecontentgroup[resources.length]; for (int i=0;i<resources.length;i++){ expireresources[i] = new cachecontentgroup(); expireresources[i].name = resources[i].name; } result = perform_operation_bulk_request(client, expireresources,"expire"); } return result; }
java
public static base_response flush(nitro_service client, cachecontentgroup resource) throws Exception { cachecontentgroup flushresource = new cachecontentgroup(); flushresource.name = resource.name; flushresource.query = resource.query; flushresource.host = resource.host; flushresource.selectorvalue = resource.selectorvalue; flushresource.force = resource.force; return flushresource.perform_operation(client,"flush"); }
java
public static base_responses flush(nitro_service client, cachecontentgroup resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { cachecontentgroup flushresources[] = new cachecontentgroup[resources.length]; for (int i=0;i<resources.length;i++){ flushresources[i] = new cachecontentgroup(); flushresources[i].name = resources[i].name; flushresources[i].query = resources[i].query; flushresources[i].host = resources[i].host; flushresources[i].selectorvalue = resources[i].selectorvalue; flushresources[i].force = resources[i].force; } result = perform_operation_bulk_request(client, flushresources,"flush"); } return result; }
java
public static base_response save(nitro_service client, cachecontentgroup resource) throws Exception { cachecontentgroup saveresource = new cachecontentgroup(); saveresource.name = resource.name; return saveresource.perform_operation(client,"save"); }
java
public static base_responses save(nitro_service client, cachecontentgroup resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { cachecontentgroup saveresources[] = new cachecontentgroup[resources.length]; for (int i=0;i<resources.length;i++){ saveresources[i] = new cachecontentgroup(); saveresources[i].name = resources[i].name; } result = perform_operation_bulk_request(client, saveresources,"save"); } return result; }
java
public static cachecontentgroup[] get(nitro_service service) throws Exception{ cachecontentgroup obj = new cachecontentgroup(); cachecontentgroup[] response = (cachecontentgroup[])obj.get_resources(service); return response; }
java
public static cachecontentgroup get(nitro_service service, String name) throws Exception{ cachecontentgroup obj = new cachecontentgroup(); obj.set_name(name); cachecontentgroup response = (cachecontentgroup) obj.get_resource(service); return response; }
java
public static lbvserver_auditnslogpolicy_binding[] get(nitro_service service, String name) throws Exception{ lbvserver_auditnslogpolicy_binding obj = new lbvserver_auditnslogpolicy_binding(); obj.set_name(name); lbvserver_auditnslogpolicy_binding response[] = (lbvserver_auditnslogpolicy_binding[]) obj.get_resources(service); return response; }
java
public static base_response update(nitro_service client, csparameter resource) throws Exception { csparameter updateresource = new csparameter(); updateresource.stateupdate = resource.stateupdate; return updateresource.update_resource(client); }
java
public static base_response unset(nitro_service client, csparameter resource, String[] args) throws Exception{ csparameter unsetresource = new csparameter(); return unsetresource.unset_resource(client,args); }
java
public static csparameter get(nitro_service service) throws Exception{ csparameter obj = new csparameter(); csparameter[] response = (csparameter[])obj.get_resources(service); return response[0]; }
java
public static vpnvserver_rewritepolicy_binding[] get(nitro_service service, String name) throws Exception{ vpnvserver_rewritepolicy_binding obj = new vpnvserver_rewritepolicy_binding(); obj.set_name(name); vpnvserver_rewritepolicy_binding response[] = (vpnvserver_rewritepolicy_binding[]) obj.get_resources(service); return response; }
java
public static auditnslogpolicy_systemglobal_binding[] get(nitro_service service, String name) throws Exception{ auditnslogpolicy_systemglobal_binding obj = new auditnslogpolicy_systemglobal_binding(); obj.set_name(name); auditnslogpolicy_systemglobal_binding response[] = (auditnslogpolicy_systemglobal_binding[]) obj.get_resources(service); return response; }
java
public static responderpolicy_binding get(nitro_service service, String name) throws Exception{ responderpolicy_binding obj = new responderpolicy_binding(); obj.set_name(name); responderpolicy_binding response = (responderpolicy_binding) obj.get_resource(service); return response; }
java
public void setLabels(Collection<LabelType> labels) { this.labels.clear(); if (labels != null) { this.labels.addAll(labels); } }
java
@ViewChanged public synchronized void onViewChangeEvent(ViewChangedEvent event) { if (logger.isDebugEnabled()) { logger.debug("onViewChangeEvent : pre[" + event.isPre() + "] : event local address[" + event.getCache().getLocalAddress() + "]"); } final List<Address> oldView = currentView; currentView = new ArrayList<Address>(event.getNewView().getMembers()); final Address localAddress = getLocalAddress(); //just a precaution, it can be null! if (oldView != null) { final Cache jbossCache = mobicentsCache.getJBossCache(); final Configuration config = jbossCache.getConfiguration(); final boolean isBuddyReplicationEnabled = config.getBuddyReplicationConfig() != null && config.getBuddyReplicationConfig().isEnabled(); // recover stuff from lost members Runnable runnable = new Runnable() { public void run() { for (Address oldMember : oldView) { if (!currentView.contains(oldMember)) { if (logger.isDebugEnabled()) { logger.debug("onViewChangeEvent : processing lost member " + oldMember); } for (FailOverListener localListener : failOverListeners) { ClientLocalListenerElector localListenerElector = localListener.getElector(); if (localListenerElector != null && !isBuddyReplicationEnabled) { // going to use the local listener elector instead, which gives results based on data performTakeOver(localListener,oldMember,localAddress, true, isBuddyReplicationEnabled); } else { List<Address> electionView = getElectionView(oldMember); if(electionView!=null && elector.elect(electionView).equals(localAddress)) { performTakeOver(localListener, oldMember, localAddress, false, isBuddyReplicationEnabled); } cleanAfterTakeOver(localListener, oldMember); } } } } } }; Thread t = new Thread(runnable); t.start(); } }
java
public static appfwpolicy_stats[] get(nitro_service service) throws Exception{ appfwpolicy_stats obj = new appfwpolicy_stats(); appfwpolicy_stats[] response = (appfwpolicy_stats[])obj.stat_resources(service); return response; }
java
public static appfwpolicy_stats get(nitro_service service, String name) throws Exception{ appfwpolicy_stats obj = new appfwpolicy_stats(); obj.set_name(name); appfwpolicy_stats response = (appfwpolicy_stats) obj.stat_resource(service); return response; }
java
public static pqbinding[] get(nitro_service service, pqbinding_args args) throws Exception{ pqbinding obj = new pqbinding(); options option = new options(); option.set_args(nitro_util.object_to_string_withoutquotes(args)); pqbinding[] response = (pqbinding[])obj.get_resources(service, option); return response; }
java
public void delete(Object element, boolean testForEquality) { int index = indexOfFromTo(element, 0, size-1, testForEquality); if (index>=0) removeFromTo(index,index); }
java
public void fillFromToWith(int from, int to, Object val) { checkRangeFromTo(from,to,this.size); for (int i=from; i<=to;) setQuick(i++,val); }
java
public static dnspolicy_dnspolicylabel_binding[] get(nitro_service service, String name) throws Exception{ dnspolicy_dnspolicylabel_binding obj = new dnspolicy_dnspolicylabel_binding(); obj.set_name(name); dnspolicy_dnspolicylabel_binding response[] = (dnspolicy_dnspolicylabel_binding[]) obj.get_resources(service); return response; }
java
public static tmtrafficpolicy_tmglobal_binding[] get(nitro_service service, String name) throws Exception{ tmtrafficpolicy_tmglobal_binding obj = new tmtrafficpolicy_tmglobal_binding(); obj.set_name(name); tmtrafficpolicy_tmglobal_binding response[] = (tmtrafficpolicy_tmglobal_binding[]) obj.get_resources(service); return response; }
java
public static clusternodegroup_nslimitidentifier_binding[] get(nitro_service service, String name) throws Exception{ clusternodegroup_nslimitidentifier_binding obj = new clusternodegroup_nslimitidentifier_binding(); obj.set_name(name); clusternodegroup_nslimitidentifier_binding response[] = (clusternodegroup_nslimitidentifier_binding[]) obj.get_resources(service); return response; }
java
public static rewritepolicylabel_rewritepolicy_binding[] get(nitro_service service, String labelname) throws Exception{ rewritepolicylabel_rewritepolicy_binding obj = new rewritepolicylabel_rewritepolicy_binding(); obj.set_labelname(labelname); rewritepolicylabel_rewritepolicy_binding response[] = (rewritepolicylabel_rewritepolicy_binding[]) obj.get_resources(service); return response; }
java
public static appfwhtmlerrorpage get(nitro_service service, options option) throws Exception{ appfwhtmlerrorpage obj = new appfwhtmlerrorpage(); appfwhtmlerrorpage[] response = (appfwhtmlerrorpage[])obj.get_resources(service,option); return response[0]; }
java
public static appfwhtmlerrorpage get(nitro_service service, String name) throws Exception{ appfwhtmlerrorpage obj = new appfwhtmlerrorpage(); obj.set_name(name); appfwhtmlerrorpage response = (appfwhtmlerrorpage) obj.get_resource(service); return response; }
java
public static authenticationvserver_stats[] get(nitro_service service) throws Exception{ authenticationvserver_stats obj = new authenticationvserver_stats(); authenticationvserver_stats[] response = (authenticationvserver_stats[])obj.stat_resources(service); return response; }
java
public static authenticationvserver_stats get(nitro_service service, String name) throws Exception{ authenticationvserver_stats obj = new authenticationvserver_stats(); obj.set_name(name); authenticationvserver_stats response = (authenticationvserver_stats) obj.stat_resource(service); return response; }
java
public static vrid_nsip6_binding[] get(nitro_service service, Long id) throws Exception{ vrid_nsip6_binding obj = new vrid_nsip6_binding(); obj.set_id(id); vrid_nsip6_binding response[] = (vrid_nsip6_binding[]) obj.get_resources(service); return response; }
java
public static servicegroup_stats[] get(nitro_service service, options option) throws Exception{ servicegroup_stats obj = new servicegroup_stats(); servicegroup_stats[] response = (servicegroup_stats[])obj.stat_resources(service,option); return response; }
java
public static servicegroup_stats get(nitro_service service, String servicegroupname) throws Exception{ servicegroup_stats obj = new servicegroup_stats(); obj.set_servicegroupname(servicegroupname); servicegroup_stats response = (servicegroup_stats) obj.stat_resource(service); return response; }
java
public static clusterinstance_binding get(nitro_service service, Long clid) throws Exception{ clusterinstance_binding obj = new clusterinstance_binding(); obj.set_clid(clid); clusterinstance_binding response = (clusterinstance_binding) obj.get_resource(service); return response; }
java
public static auditmessages[] get(nitro_service service) throws Exception{ auditmessages obj = new auditmessages(); auditmessages[] response = (auditmessages[])obj.get_resources(service); return response; }
java
public static auditmessages[] get(nitro_service service, auditmessages_args args) throws Exception{ auditmessages obj = new auditmessages(); options option = new options(); option.set_args(nitro_util.object_to_string_withoutquotes(args)); auditmessages[] response = (auditmessages[])obj.get_resources(service, option); return response; }
java
public static cmppolicylabel_policybinding_binding[] get(nitro_service service, String labelname) throws Exception{ cmppolicylabel_policybinding_binding obj = new cmppolicylabel_policybinding_binding(); obj.set_labelname(labelname); cmppolicylabel_policybinding_binding response[] = (cmppolicylabel_policybinding_binding[]) obj.get_resources(service); return response; }
java
public static vpnglobal_appcontroller_binding[] get(nitro_service service) throws Exception{ vpnglobal_appcontroller_binding obj = new vpnglobal_appcontroller_binding(); vpnglobal_appcontroller_binding response[] = (vpnglobal_appcontroller_binding[]) obj.get_resources(service); return response; }
java
private static Clique valueOfHelper(int[] relativeIndices) { // if clique already exists, return that one Clique c = new Clique(); c.relativeIndices = relativeIndices; return intern(c); }
java
private static void checkSorted(int[] sorted) { for (int i = 0; i < sorted.length-1; i++) { if (sorted[i] > sorted[i+1]) { throw new RuntimeException("input must be sorted!"); } } }
java
public static aaapreauthenticationpolicy_aaaglobal_binding[] get(nitro_service service, String name) throws Exception{ aaapreauthenticationpolicy_aaaglobal_binding obj = new aaapreauthenticationpolicy_aaaglobal_binding(); obj.set_name(name); aaapreauthenticationpolicy_aaaglobal_binding response[] = (aaapreauthenticationpolicy_aaaglobal_binding[]) obj.get_resources(service); return response; }
java
public static base_response restart(nitro_service client) throws Exception { dbsmonitors restartresource = new dbsmonitors(); return restartresource.perform_operation(client,"restart"); }
java
public static wisite_accessmethod_binding[] get(nitro_service service, String sitepath) throws Exception{ wisite_accessmethod_binding obj = new wisite_accessmethod_binding(); obj.set_sitepath(sitepath); wisite_accessmethod_binding response[] = (wisite_accessmethod_binding[]) obj.get_resources(service); return response; }
java
public static <X, Y> Pair<X, Y> makePair(X x, Y y) { return new Pair<X, Y>(x, y); }
java
public static Pair<String, String> stringIntern(Pair<String, String> p) { return new MutableInternedPair(p); }
java
public static base_response add(nitro_service client, authenticationradiusaction resource) throws Exception { authenticationradiusaction addresource = new authenticationradiusaction(); addresource.name = resource.name; addresource.serverip = resource.serverip; addresource.serverport = resource.serverport; addresource.authtimeout = resource.authtimeout; addresource.radkey = resource.radkey; addresource.radnasip = resource.radnasip; addresource.radnasid = resource.radnasid; addresource.radvendorid = resource.radvendorid; addresource.radattributetype = resource.radattributetype; addresource.radgroupsprefix = resource.radgroupsprefix; addresource.radgroupseparator = resource.radgroupseparator; addresource.passencoding = resource.passencoding; addresource.ipvendorid = resource.ipvendorid; addresource.ipattributetype = resource.ipattributetype; addresource.accounting = resource.accounting; addresource.pwdvendorid = resource.pwdvendorid; addresource.pwdattributetype = resource.pwdattributetype; addresource.defaultauthenticationgroup = resource.defaultauthenticationgroup; addresource.callingstationid = resource.callingstationid; return addresource.add_resource(client); }
java
public static base_responses add(nitro_service client, authenticationradiusaction resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { authenticationradiusaction addresources[] = new authenticationradiusaction[resources.length]; for (int i=0;i<resources.length;i++){ addresources[i] = new authenticationradiusaction(); addresources[i].name = resources[i].name; addresources[i].serverip = resources[i].serverip; addresources[i].serverport = resources[i].serverport; addresources[i].authtimeout = resources[i].authtimeout; addresources[i].radkey = resources[i].radkey; addresources[i].radnasip = resources[i].radnasip; addresources[i].radnasid = resources[i].radnasid; addresources[i].radvendorid = resources[i].radvendorid; addresources[i].radattributetype = resources[i].radattributetype; addresources[i].radgroupsprefix = resources[i].radgroupsprefix; addresources[i].radgroupseparator = resources[i].radgroupseparator; addresources[i].passencoding = resources[i].passencoding; addresources[i].ipvendorid = resources[i].ipvendorid; addresources[i].ipattributetype = resources[i].ipattributetype; addresources[i].accounting = resources[i].accounting; addresources[i].pwdvendorid = resources[i].pwdvendorid; addresources[i].pwdattributetype = resources[i].pwdattributetype; addresources[i].defaultauthenticationgroup = resources[i].defaultauthenticationgroup; addresources[i].callingstationid = resources[i].callingstationid; } result = add_bulk_request(client, addresources); } return result; }
java
public static authenticationradiusaction[] get(nitro_service service) throws Exception{ authenticationradiusaction obj = new authenticationradiusaction(); authenticationradiusaction[] response = (authenticationradiusaction[])obj.get_resources(service); return response; }
java
public static authenticationradiusaction get(nitro_service service, String name) throws Exception{ authenticationradiusaction obj = new authenticationradiusaction(); obj.set_name(name); authenticationradiusaction response = (authenticationradiusaction) obj.get_resource(service); return response; }
java
public static authenticationradiusaction[] get_filtered(nitro_service service, filtervalue[] filter) throws Exception{ authenticationradiusaction obj = new authenticationradiusaction(); options option = new options(); option.set_filter(filter); authenticationradiusaction[] response = (authenticationradiusaction[]) obj.getfiltered(service, option); return response; }
java
public static sslcertkey_sslvserver_binding[] get(nitro_service service, String certkey) throws Exception{ sslcertkey_sslvserver_binding obj = new sslcertkey_sslvserver_binding(); obj.set_certkey(certkey); sslcertkey_sslvserver_binding response[] = (sslcertkey_sslvserver_binding[]) obj.get_resources(service); return response; }
java
private double getConstraint(double x1, double x2) { double c1,c2,h; c1 = -x1*x1-x2*x2+1+0.1*Math.cos(16*Math.atan(x1/x2)); c2 = (x1-0.5)*(x1-0.5)+(x2-0.5)*(x2-0.5)-0.5; if(c1>c2) h = (c1>0)?c1:0; else h = (c2>0)?c2:0; return h; }
java
public static lbvserver_stats[] get(nitro_service service) throws Exception{ lbvserver_stats obj = new lbvserver_stats(); lbvserver_stats[] response = (lbvserver_stats[])obj.stat_resources(service); return response; }
java
public static lbvserver_stats get(nitro_service service, String name) throws Exception{ lbvserver_stats obj = new lbvserver_stats(); obj.set_name(name); lbvserver_stats response = (lbvserver_stats) obj.stat_resource(service); return response; }
java
private void updateMax(MtasRBTreeNode n, MtasRBTreeNode c) { if (c != null) { if (n.max < c.max) { n.max = c.max; } } }
java
private void setMax(MtasRBTreeNode n) { n.max = n.right; if (n.leftChild != null) { n.max = Math.max(n.max, n.leftChild.max); } if (n.rightChild != null) { n.max = Math.max(n.max, n.rightChild.max); } }
java
public static base_response update(nitro_service client, filterhtmlinjectionparameter resource) throws Exception { filterhtmlinjectionparameter updateresource = new filterhtmlinjectionparameter(); updateresource.rate = resource.rate; updateresource.frequency = resource.frequency; updateresource.strict = resource.strict; updateresource.htmlsearchlen = resource.htmlsearchlen; return updateresource.update_resource(client); }
java
public static base_response unset(nitro_service client, filterhtmlinjectionparameter resource, String[] args) throws Exception{ filterhtmlinjectionparameter unsetresource = new filterhtmlinjectionparameter(); return unsetresource.unset_resource(client,args); }
java
public static filterhtmlinjectionparameter get(nitro_service service, options option) throws Exception{ filterhtmlinjectionparameter obj = new filterhtmlinjectionparameter(); filterhtmlinjectionparameter[] response = (filterhtmlinjectionparameter[])obj.get_resources(service,option); return response[0]; }
java
public static aaauser_binding get(nitro_service service, String username) throws Exception{ aaauser_binding obj = new aaauser_binding(); obj.set_username(username); aaauser_binding response = (aaauser_binding) obj.get_resource(service); return response; }
java
public static sslvserver_sslcertkey_binding[] get(nitro_service service, String vservername) throws Exception{ sslvserver_sslcertkey_binding obj = new sslvserver_sslcertkey_binding(); obj.set_vservername(vservername); sslvserver_sslcertkey_binding response[] = (sslvserver_sslcertkey_binding[]) obj.get_resources(service); return response; }
java
public static base_response unset(nitro_service client, tmsessionparameter resource, String[] args) throws Exception{ tmsessionparameter unsetresource = new tmsessionparameter(); return unsetresource.unset_resource(client,args); }
java
public static tmsessionparameter get(nitro_service service) throws Exception{ tmsessionparameter obj = new tmsessionparameter(); tmsessionparameter[] response = (tmsessionparameter[])obj.get_resources(service); return response[0]; }
java
public static base_response add(nitro_service client, systemuser resource) throws Exception { systemuser addresource = new systemuser(); addresource.username = resource.username; addresource.password = resource.password; addresource.externalauth = resource.externalauth; addresource.promptstring = resource.promptstring; addresource.timeout = resource.timeout; return addresource.add_resource(client); }
java
public static base_responses add(nitro_service client, systemuser resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { systemuser addresources[] = new systemuser[resources.length]; for (int i=0;i<resources.length;i++){ addresources[i] = new systemuser(); addresources[i].username = resources[i].username; addresources[i].password = resources[i].password; addresources[i].externalauth = resources[i].externalauth; addresources[i].promptstring = resources[i].promptstring; addresources[i].timeout = resources[i].timeout; } result = add_bulk_request(client, addresources); } return result; }
java
public static base_response delete(nitro_service client, String username) throws Exception { systemuser deleteresource = new systemuser(); deleteresource.username = username; return deleteresource.delete_resource(client); }
java
public static base_response update(nitro_service client, systemuser resource) throws Exception { systemuser updateresource = new systemuser(); updateresource.username = resource.username; updateresource.password = resource.password; updateresource.externalauth = resource.externalauth; updateresource.promptstring = resource.promptstring; updateresource.timeout = resource.timeout; return updateresource.update_resource(client); }
java
public static base_responses update(nitro_service client, systemuser resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { systemuser updateresources[] = new systemuser[resources.length]; for (int i=0;i<resources.length;i++){ updateresources[i] = new systemuser(); updateresources[i].username = resources[i].username; updateresources[i].password = resources[i].password; updateresources[i].externalauth = resources[i].externalauth; updateresources[i].promptstring = resources[i].promptstring; updateresources[i].timeout = resources[i].timeout; } result = update_bulk_request(client, updateresources); } return result; }
java
public static base_response unset(nitro_service client, systemuser resource, String[] args) throws Exception{ systemuser unsetresource = new systemuser(); unsetresource.username = resource.username; return unsetresource.unset_resource(client,args); }
java
public static base_responses unset(nitro_service client, String username[], String args[]) throws Exception { base_responses result = null; if (username != null && username.length > 0) { systemuser unsetresources[] = new systemuser[username.length]; for (int i=0;i<username.length;i++){ unsetresources[i] = new systemuser(); unsetresources[i].username = username[i]; } result = unset_bulk_request(client, unsetresources,args); } return result; }
java
public static systemuser[] get(nitro_service service) throws Exception{ systemuser obj = new systemuser(); systemuser[] response = (systemuser[])obj.get_resources(service); return response; }
java
public static systemuser get(nitro_service service, String username) throws Exception{ systemuser obj = new systemuser(); obj.set_username(username); systemuser response = (systemuser) obj.get_resource(service); return response; }
java
public static service_stats[] get(nitro_service service) throws Exception{ service_stats obj = new service_stats(); service_stats[] response = (service_stats[])obj.stat_resources(service); return response; }
java
public static service_stats get(nitro_service service, String name) throws Exception{ service_stats obj = new service_stats(); obj.set_name(name); service_stats response = (service_stats) obj.stat_resource(service); return response; }
java
public static base_response update(nitro_service client, inatparam resource) throws Exception { inatparam updateresource = new inatparam(); updateresource.nat46v6prefix = resource.nat46v6prefix; updateresource.nat46ignoretos = resource.nat46ignoretos; updateresource.nat46zerochecksum = resource.nat46zerochecksum; updateresource.nat46v6mtu = resource.nat46v6mtu; updateresource.nat46fragheader = resource.nat46fragheader; return updateresource.update_resource(client); }
java
public static base_response unset(nitro_service client, inatparam resource, String[] args) throws Exception{ inatparam unsetresource = new inatparam(); return unsetresource.unset_resource(client,args); }
java
public static inatparam get(nitro_service service) throws Exception{ inatparam obj = new inatparam(); inatparam[] response = (inatparam[])obj.get_resources(service); return response[0]; }
java
public float conditionalLogProb(int[] given, int of) { if (given.length != windowSize - 1) { System.err.println("error computing conditional log prob"); System.exit(0); } int[] label = indicesFront(given); float[] masses = new float[label.length]; for (int i = 0; i < masses.length; i++) { masses[i] = table[label[i]]; } float z = ArrayMath.logSum(masses); return table[indexOf(given, of)] - z; }
java
public static base_response update(nitro_service client, aaaparameter resource) throws Exception { aaaparameter updateresource = new aaaparameter(); updateresource.enablestaticpagecaching = resource.enablestaticpagecaching; updateresource.enableenhancedauthfeedback = resource.enableenhancedauthfeedback; updateresource.defaultauthtype = resource.defaultauthtype; updateresource.maxaaausers = resource.maxaaausers; updateresource.maxloginattempts = resource.maxloginattempts; updateresource.failedlogintimeout = resource.failedlogintimeout; updateresource.aaadnatip = resource.aaadnatip; return updateresource.update_resource(client); }
java
public static base_response unset(nitro_service client, aaaparameter resource, String[] args) throws Exception{ aaaparameter unsetresource = new aaaparameter(); return unsetresource.unset_resource(client,args); }
java
public static aaaparameter get(nitro_service service) throws Exception{ aaaparameter obj = new aaaparameter(); aaaparameter[] response = (aaaparameter[])obj.get_resources(service); return response[0]; }
java
public static gslbvserver_spilloverpolicy_binding[] get(nitro_service service, String name) throws Exception{ gslbvserver_spilloverpolicy_binding obj = new gslbvserver_spilloverpolicy_binding(); obj.set_name(name); gslbvserver_spilloverpolicy_binding response[] = (gslbvserver_spilloverpolicy_binding[]) obj.get_resources(service); return response; }
java
public void setFirstOccurence(int min, int max) throws ParseException { if (fullCondition == null) { if ((min < 0) || (min > max) || (max < 1)) { throw new ParseException("Illegal number {" + min + "," + max + "}"); } if (min == 0) { firstOptional = true; } firstMinimumOccurence = Math.max(1, min); firstMaximumOccurence = max; } else { throw new ParseException("fullCondition already generated"); } }
java
public MtasCQLParserSentenceCondition createFullSentence() throws ParseException { if (fullCondition == null) { if (secondSentencePart == null) { if (firstBasicSentence != null) { fullCondition = new MtasCQLParserSentenceCondition(firstBasicSentence, ignoreClause, maximumIgnoreLength); } else { fullCondition = firstSentence; } fullCondition.setOccurence(firstMinimumOccurence, firstMaximumOccurence); if (firstOptional) { fullCondition.setOptional(firstOptional); } return fullCondition; } else { if (!orOperator) { if (firstBasicSentence != null) { firstBasicSentence.setOccurence(firstMinimumOccurence, firstMaximumOccurence); firstBasicSentence.setOptional(firstOptional); fullCondition = new MtasCQLParserSentenceCondition( firstBasicSentence, ignoreClause, maximumIgnoreLength); } else { firstSentence.setOccurence(firstMinimumOccurence, firstMaximumOccurence); firstSentence.setOptional(firstOptional); fullCondition = new MtasCQLParserSentenceCondition(firstSentence, ignoreClause, maximumIgnoreLength); } fullCondition.addSentenceToEndLatestSequence( secondSentencePart.createFullSentence()); } else { MtasCQLParserSentenceCondition sentence = secondSentencePart .createFullSentence(); if (firstBasicSentence != null) { sentence.addSentenceAsFirstOption( new MtasCQLParserSentenceCondition(firstBasicSentence, ignoreClause, maximumIgnoreLength)); } else { sentence.addSentenceAsFirstOption(firstSentence); } fullCondition = sentence; } return fullCondition; } } else { return fullCondition; } }
java
public static base_response update(nitro_service client, vserver resource) throws Exception { vserver updateresource = new vserver(); updateresource.name = resource.name; updateresource.backupvserver = resource.backupvserver; updateresource.redirecturl = resource.redirecturl; updateresource.cacheable = resource.cacheable; updateresource.clttimeout = resource.clttimeout; updateresource.somethod = resource.somethod; updateresource.sopersistence = resource.sopersistence; updateresource.sopersistencetimeout = resource.sopersistencetimeout; updateresource.sothreshold = resource.sothreshold; updateresource.pushvserver = resource.pushvserver; return updateresource.update_resource(client); }
java
public static base_response disable(nitro_service client, String name) throws Exception { vserver disableresource = new vserver(); disableresource.name = name; return disableresource.perform_operation(client,"disable"); }
java