code stringlengths 73 34.1k | label stringclasses 1
value |
|---|---|
public static HashMap<String, MtasConfiguration> readMtasCharFilterConfigurations(
ResourceLoader resourceLoader, String configFile) throws IOException {
HashMap<String, HashMap<String, String>> configs = readConfigurations(
resourceLoader, configFile, MtasCharFilterFactory.class.getName());
if (c... | java |
public static HashMap<String, MtasConfiguration> readMtasTokenizerConfigurations(
ResourceLoader resourceLoader, String configFile) throws IOException {
HashMap<String, HashMap<String, String>> configs = readConfigurations(
resourceLoader, configFile, MtasTokenizerFactory.class.getName());
if (con... | java |
public static MtasConfiguration readConfiguration(InputStream reader)
throws IOException {
MtasConfiguration currentConfig = null;
// parse xml
XMLInputFactory factory = XMLInputFactory.newInstance();
try {
XMLStreamReader streamReader = factory.createXMLStreamReader(reader);
QName qna... | java |
public static systemcpu_stats[] get(nitro_service service) throws Exception{
systemcpu_stats obj = new systemcpu_stats();
systemcpu_stats[] response = (systemcpu_stats[])obj.stat_resources(service);
return response;
} | java |
public static systemcpu_stats get(nitro_service service, Long id) throws Exception{
systemcpu_stats obj = new systemcpu_stats();
obj.set_id(id);
systemcpu_stats response = (systemcpu_stats) obj.stat_resource(service);
return response;
} | java |
final public TregexPattern Root() throws ParseException {
TregexPattern node;
node = SubNode(Relation.ROOT);
jj_consume_token(11);
{if (true) return node;}
throw new Error("Missing return statement in function");
} | java |
final public TregexPattern Node(Relation r) throws ParseException {
TregexPattern node;
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case 12:
jj_consume_token(12);
node = SubNode(r);
jj_consume_token(13);
break;
case IDENTIFIER:
case BLANK:
case REGEX:
case 14:
... | java |
public ParseException generateParseException() {
jj_expentries.clear();
boolean[] la1tokens = new boolean[25];
if (jj_kind >= 0) {
la1tokens[jj_kind] = true;
jj_kind = -1;
}
for (int i = 0; i < 23; i++) {
if (jj_la1[i] == jj_gen) {
for (int j = 0; j < 32; j++) {
... | java |
public static base_response sync(nitro_service client, hafiles resource) throws Exception {
hafiles syncresource = new hafiles();
syncresource.mode = resource.mode;
return syncresource.perform_operation(client,"sync");
} | java |
public static base_response clear(nitro_service client, lbpersistentsessions resource) throws Exception {
lbpersistentsessions clearresource = new lbpersistentsessions();
clearresource.vserver = resource.vserver;
clearresource.persistenceparameter = resource.persistenceparameter;
return clearresource.perform_op... | java |
public static base_responses clear(nitro_service client, lbpersistentsessions resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
lbpersistentsessions clearresources[] = new lbpersistentsessions[resources.length];
for (int i=0;i<resources.length;i++){... | java |
public static lbpersistentsessions[] get(nitro_service service, options option) throws Exception{
lbpersistentsessions obj = new lbpersistentsessions();
lbpersistentsessions[] response = (lbpersistentsessions[])obj.get_resources(service,option);
return response;
} | java |
public static lbpersistentsessions[] get(nitro_service service, lbpersistentsessions_args args) throws Exception{
lbpersistentsessions obj = new lbpersistentsessions();
options option = new options();
option.set_args(nitro_util.object_to_string_withoutquotes(args));
lbpersistentsessions[] response = (lbpersiste... | java |
public static vpnvserver_staserver_binding[] get(nitro_service service, String name) throws Exception{
vpnvserver_staserver_binding obj = new vpnvserver_staserver_binding();
obj.set_name(name);
vpnvserver_staserver_binding response[] = (vpnvserver_staserver_binding[]) obj.get_resources(service);
return response... | java |
public static appfwprofile_trustedlearningclients_binding[] get(nitro_service service, String name) throws Exception{
appfwprofile_trustedlearningclients_binding obj = new appfwprofile_trustedlearningclients_binding();
obj.set_name(name);
appfwprofile_trustedlearningclients_binding response[] = (appfwprofile_trus... | java |
public static void run(ProcessBuilder builder, Writer output, Writer error) {
try {
Process process = builder.start();
consume(process, output, error);
int result = process.waitFor();
if (result != 0) {
String msg = "process %s exited with value %d";
throw new ProcessE... | java |
private static void consume(Process process, Writer outputWriter, Writer errorWriter)
throws IOException, InterruptedException {
if (outputWriter == null) {
outputWriter = new OutputStreamWriter(System.out);
}
if (errorWriter == null) {
errorWriter = new OutputStreamWriter(System.err);
... | java |
public static int getPID() throws IOException {
// note that we ask Perl for "ppid" -- process ID of parent -- that's us
String[] cmd =
new String[] {"perl", "-e", "print getppid() . \"\\n\";"};
StringBuilder out = new StringBuilder();
runShellCommand(cmd, out);
return Integer.parseInt(... | java |
public static appqoe_stats get(nitro_service service) throws Exception{
appqoe_stats obj = new appqoe_stats();
appqoe_stats[] response = (appqoe_stats[])obj.stat_resources(service);
return response[0];
} | java |
public static transformpolicy_binding get(nitro_service service, String name) throws Exception{
transformpolicy_binding obj = new transformpolicy_binding();
obj.set_name(name);
transformpolicy_binding response = (transformpolicy_binding) obj.get_resource(service);
return response;
} | java |
public static gslbvserver_binding get(nitro_service service, String name) throws Exception{
gslbvserver_binding obj = new gslbvserver_binding();
obj.set_name(name);
gslbvserver_binding response = (gslbvserver_binding) obj.get_resource(service);
return response;
} | java |
public static aaauser_vpnsessionpolicy_binding[] get(nitro_service service, String username) throws Exception{
aaauser_vpnsessionpolicy_binding obj = new aaauser_vpnsessionpolicy_binding();
obj.set_username(username);
aaauser_vpnsessionpolicy_binding response[] = (aaauser_vpnsessionpolicy_binding[]) obj.get_resou... | java |
public static tmtrafficpolicy_csvserver_binding[] get(nitro_service service, String name) throws Exception{
tmtrafficpolicy_csvserver_binding obj = new tmtrafficpolicy_csvserver_binding();
obj.set_name(name);
tmtrafficpolicy_csvserver_binding response[] = (tmtrafficpolicy_csvserver_binding[]) obj.get_resources(se... | java |
public static vpnclientlessaccesspolicy_vpnglobal_binding[] get(nitro_service service, String name) throws Exception{
vpnclientlessaccesspolicy_vpnglobal_binding obj = new vpnclientlessaccesspolicy_vpnglobal_binding();
obj.set_name(name);
vpnclientlessaccesspolicy_vpnglobal_binding response[] = (vpnclientlessacce... | java |
public int numCorrect(int recall) {
int correct = 0;
for (int j = scores.length - 1; j >= scores.length - recall; j--) {
if (isCorrect[j]) {
correct++;
}
}
return correct;
} | java |
public static tmsessionpolicy_aaagroup_binding[] get(nitro_service service, String name) throws Exception{
tmsessionpolicy_aaagroup_binding obj = new tmsessionpolicy_aaagroup_binding();
obj.set_name(name);
tmsessionpolicy_aaagroup_binding response[] = (tmsessionpolicy_aaagroup_binding[]) obj.get_resources(service... | java |
protected String cleanUpLabel(String label) {
if (label == null) {
return ""; // This shouldn't really happen, but can happen if there are unlabeled nodes further down a tree, as apparently happens in at least the 20100730 era American National Corpus
}
boolean nptemp = NPTmpPattern.matcher(label... | java |
public double computeProb(InfoTemplate temp){
return computeProb(temp.wname,temp.wacronym,temp.cname,temp.cacronym,
temp.whomepage, temp.chomepage);
} | java |
public static authenticationlocalpolicy_vpnglobal_binding[] get(nitro_service service, String name) throws Exception{
authenticationlocalpolicy_vpnglobal_binding obj = new authenticationlocalpolicy_vpnglobal_binding();
obj.set_name(name);
authenticationlocalpolicy_vpnglobal_binding response[] = (authenticationloc... | java |
public static base_response update(nitro_service client, ptp resource) throws Exception {
ptp updateresource = new ptp();
updateresource.state = resource.state;
return updateresource.update_resource(client);
} | java |
public static ptp get(nitro_service service) throws Exception{
ptp obj = new ptp();
ptp[] response = (ptp[])obj.get_resources(service);
return response[0];
} | java |
public static base_response update(nitro_service client, nsratecontrol resource) throws Exception {
nsratecontrol updateresource = new nsratecontrol();
updateresource.tcpthreshold = resource.tcpthreshold;
updateresource.udpthreshold = resource.udpthreshold;
updateresource.icmpthreshold = resource.icmpthreshold;... | java |
public static base_response unset(nitro_service client, nsratecontrol resource, String[] args) throws Exception{
nsratecontrol unsetresource = new nsratecontrol();
return unsetresource.unset_resource(client,args);
} | java |
public static nsratecontrol get(nitro_service service, options option) throws Exception{
nsratecontrol obj = new nsratecontrol();
nsratecontrol[] response = (nsratecontrol[])obj.get_resources(service,option);
return response[0];
} | java |
public static vpnglobal_sharefileserver_binding[] get(nitro_service service) throws Exception{
vpnglobal_sharefileserver_binding obj = new vpnglobal_sharefileserver_binding();
vpnglobal_sharefileserver_binding response[] = (vpnglobal_sharefileserver_binding[]) obj.get_resources(service);
return response;
} | java |
public static base_response update(nitro_service client, appflowparam resource) throws Exception {
appflowparam updateresource = new appflowparam();
updateresource.templaterefresh = resource.templaterefresh;
updateresource.appnamerefresh = resource.appnamerefresh;
updateresource.flowrecordinterval = resource.fl... | java |
public static base_response unset(nitro_service client, appflowparam resource, String[] args) throws Exception{
appflowparam unsetresource = new appflowparam();
return unsetresource.unset_resource(client,args);
} | java |
public static appflowparam get(nitro_service service) throws Exception{
appflowparam obj = new appflowparam();
appflowparam[] response = (appflowparam[])obj.get_resources(service);
return response[0];
} | java |
public boolean removeAll(AbstractBooleanList other) {
// overridden for performance only.
if (! (other instanceof BooleanArrayList)) return super.removeAll(other);
/* There are two possibilities to do the thing
a) use other.indexOf(...)
b) sort other, then use other.binarySearch(...)
Let's... | java |
public static configobjects get(nitro_service service) throws Exception{
configobjects obj = new configobjects();
configobjects[] response = (configobjects[])obj.get_resources(service);
return response[0];
} | java |
public static authorizationpolicylabel_authorizationpolicy_binding[] get(nitro_service service, String labelname) throws Exception{
authorizationpolicylabel_authorizationpolicy_binding obj = new authorizationpolicylabel_authorizationpolicy_binding();
obj.set_labelname(labelname);
authorizationpolicylabel_authoriz... | java |
public static authenticationvserver_auditsyslogpolicy_binding[] get(nitro_service service, String name) throws Exception{
authenticationvserver_auditsyslogpolicy_binding obj = new authenticationvserver_auditsyslogpolicy_binding();
obj.set_name(name);
authenticationvserver_auditsyslogpolicy_binding response[] = (a... | java |
public static gslbvserver_gslbservice_binding[] get(nitro_service service, String name) throws Exception{
gslbvserver_gslbservice_binding obj = new gslbvserver_gslbservice_binding();
obj.set_name(name);
gslbvserver_gslbservice_binding response[] = (gslbvserver_gslbservice_binding[]) obj.get_resources(service);
... | java |
public static rewriteglobal_rewritepolicy_binding[] get(nitro_service service) throws Exception{
rewriteglobal_rewritepolicy_binding obj = new rewriteglobal_rewritepolicy_binding();
rewriteglobal_rewritepolicy_binding response[] = (rewriteglobal_rewritepolicy_binding[]) obj.get_resources(service);
return response... | java |
public static void log(RedwoodChannels channels, Object obj) {
log(channels, obj.getClass().getSimpleName(), obj);
} | java |
public static base_response add(nitro_service client, arp resource) throws Exception {
arp addresource = new arp();
addresource.ipaddress = resource.ipaddress;
addresource.td = resource.td;
addresource.mac = resource.mac;
addresource.ifnum = resource.ifnum;
addresource.ownernode = resource.ownernode;
retu... | java |
public static base_responses add(nitro_service client, arp resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
arp addresources[] = new arp[resources.length];
for (int i=0;i<resources.length;i++){
addresources[i] = new arp();
addresources[i].i... | java |
public static base_response delete(nitro_service client, arp resource) throws Exception {
arp deleteresource = new arp();
deleteresource.ipaddress = resource.ipaddress;
deleteresource.td = resource.td;
deleteresource.all = resource.all;
deleteresource.ownernode = resource.ownernode;
return deleteresource.de... | java |
public static base_responses delete(nitro_service client, arp resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
arp deleteresources[] = new arp[resources.length];
for (int i=0;i<resources.length;i++){
deleteresources[i] = new arp();
deletere... | java |
public static base_response send(nitro_service client, arp resource) throws Exception {
arp sendresource = new arp();
sendresource.ipaddress = resource.ipaddress;
sendresource.td = resource.td;
sendresource.all = resource.all;
return sendresource.perform_operation(client,"send");
} | java |
public static base_responses send(nitro_service client, arp resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
arp sendresources[] = new arp[resources.length];
for (int i=0;i<resources.length;i++){
sendresources[i] = new arp();
sendresources[... | java |
public static arp[] get(nitro_service service) throws Exception{
arp obj = new arp();
arp[] response = (arp[])obj.get_resources(service);
return response;
} | java |
public static sslpolicy_csvserver_binding[] get(nitro_service service, String name) throws Exception{
sslpolicy_csvserver_binding obj = new sslpolicy_csvserver_binding();
obj.set_name(name);
sslpolicy_csvserver_binding response[] = (sslpolicy_csvserver_binding[]) obj.get_resources(service);
return response;
} | java |
public static vpnvserver_authenticationldappolicy_binding[] get(nitro_service service, String name) throws Exception{
vpnvserver_authenticationldappolicy_binding obj = new vpnvserver_authenticationldappolicy_binding();
obj.set_name(name);
vpnvserver_authenticationldappolicy_binding response[] = (vpnvserver_authen... | java |
public static base_response add(nitro_service client, appfwpolicylabel resource) throws Exception {
appfwpolicylabel addresource = new appfwpolicylabel();
addresource.labelname = resource.labelname;
addresource.policylabeltype = resource.policylabeltype;
return addresource.add_resource(client);
} | java |
public static appfwpolicylabel[] get(nitro_service service) throws Exception{
appfwpolicylabel obj = new appfwpolicylabel();
appfwpolicylabel[] response = (appfwpolicylabel[])obj.get_resources(service);
return response;
} | java |
public static appfwpolicylabel get(nitro_service service, String labelname) throws Exception{
appfwpolicylabel obj = new appfwpolicylabel();
obj.set_labelname(labelname);
appfwpolicylabel response = (appfwpolicylabel) obj.get_resource(service);
return response;
} | java |
public boolean compare(List<CoreLabel> doc1, List<CoreLabel> doc2) {
int i1 = 0, i2 = 0; //
String last1 = "O", last2 = "O";
boolean cm_set;
for (int i = 0; i < doc1.size(); i++) {
CoreLabel c1 = doc1.get(i);
CoreLabel c2 = doc2.get(i);
String a1 = c1.getString(AnswerAnnotation.class);... | java |
public static vpnglobal_authenticationldappolicy_binding[] get(nitro_service service) throws Exception{
vpnglobal_authenticationldappolicy_binding obj = new vpnglobal_authenticationldappolicy_binding();
vpnglobal_authenticationldappolicy_binding response[] = (vpnglobal_authenticationldappolicy_binding[]) obj.get_re... | java |
public static systemglobal_authenticationtacacspolicy_binding[] get(nitro_service service) throws Exception{
systemglobal_authenticationtacacspolicy_binding obj = new systemglobal_authenticationtacacspolicy_binding();
systemglobal_authenticationtacacspolicy_binding response[] = (systemglobal_authenticationtacacspol... | java |
public static svcbindings get(nitro_service service, String servicename) throws Exception{
svcbindings obj = new svcbindings();
obj.set_servicename(servicename);
svcbindings response = (svcbindings) obj.get_resource(service);
return response;
} | java |
public static svcbindings[] get(nitro_service service, String servicename[]) throws Exception{
if (servicename !=null && servicename.length>0) {
svcbindings response[] = new svcbindings[servicename.length];
svcbindings obj[] = new svcbindings[servicename.length];
for (int i=0;i<servicename.length;i++) {
... | java |
public static cachepolicylabel_stats[] get(nitro_service service) throws Exception{
cachepolicylabel_stats obj = new cachepolicylabel_stats();
cachepolicylabel_stats[] response = (cachepolicylabel_stats[])obj.stat_resources(service);
return response;
} | java |
public static cachepolicylabel_stats get(nitro_service service, String labelname) throws Exception{
cachepolicylabel_stats obj = new cachepolicylabel_stats();
obj.set_labelname(labelname);
cachepolicylabel_stats response = (cachepolicylabel_stats) obj.stat_resource(service);
return response;
} | java |
public static systementitytype get(nitro_service service) throws Exception{
systementitytype obj = new systementitytype();
systementitytype[] response = (systementitytype[])obj.get_resources(service);
return response[0];
} | java |
public static systementitytype[] get(nitro_service service, systementitytype_args args) throws Exception{
systementitytype obj = new systementitytype();
options option = new options();
option.set_args(nitro_util.object_to_string_withoutquotes(args));
systementitytype[] response = (systementitytype[])obj.get_res... | java |
public static spilloverpolicy_binding get(nitro_service service, String name) throws Exception{
spilloverpolicy_binding obj = new spilloverpolicy_binding();
obj.set_name(name);
spilloverpolicy_binding response = (spilloverpolicy_binding) obj.get_resource(service);
return response;
} | java |
public static cspolicy_binding get(nitro_service service, String policyname) throws Exception{
cspolicy_binding obj = new cspolicy_binding();
obj.set_policyname(policyname);
cspolicy_binding response = (cspolicy_binding) obj.get_resource(service);
return response;
} | java |
public static gslbvserver_stats[] get(nitro_service service) throws Exception{
gslbvserver_stats obj = new gslbvserver_stats();
gslbvserver_stats[] response = (gslbvserver_stats[])obj.stat_resources(service);
return response;
} | java |
public static gslbvserver_stats get(nitro_service service, String name) throws Exception{
gslbvserver_stats obj = new gslbvserver_stats();
obj.set_name(name);
gslbvserver_stats response = (gslbvserver_stats) obj.stat_resource(service);
return response;
} | java |
public static filterglobal_binding get(nitro_service service) throws Exception{
filterglobal_binding obj = new filterglobal_binding();
filterglobal_binding response = (filterglobal_binding) obj.get_resource(service);
return response;
} | java |
public static server_servicegroup_binding[] get(nitro_service service, String name) throws Exception{
server_servicegroup_binding obj = new server_servicegroup_binding();
obj.set_name(name);
server_servicegroup_binding response[] = (server_servicegroup_binding[]) obj.get_resources(service);
return response;
} | java |
public static dospolicy_stats[] get(nitro_service service) throws Exception{
dospolicy_stats obj = new dospolicy_stats();
dospolicy_stats[] response = (dospolicy_stats[])obj.stat_resources(service);
return response;
} | java |
public static dospolicy_stats get(nitro_service service, String name) throws Exception{
dospolicy_stats obj = new dospolicy_stats();
obj.set_name(name);
dospolicy_stats response = (dospolicy_stats) obj.stat_resource(service);
return response;
} | java |
public static <X, Y, Z> Triple<X, Y, Z> makeTriple(X x, Y y, Z z) {
return new Triple<X, Y, Z>(x, y, z);
} | java |
public static authenticationvserver_authenticationldappolicy_binding[] get(nitro_service service, String name) throws Exception{
authenticationvserver_authenticationldappolicy_binding obj = new authenticationvserver_authenticationldappolicy_binding();
obj.set_name(name);
authenticationvserver_authenticationldappo... | java |
public static responderglobal_binding get(nitro_service service) throws Exception{
responderglobal_binding obj = new responderglobal_binding();
responderglobal_binding response = (responderglobal_binding) obj.get_resource(service);
return response;
} | java |
public static sslvserver_sslpolicy_binding[] get(nitro_service service, String vservername) throws Exception{
sslvserver_sslpolicy_binding obj = new sslvserver_sslpolicy_binding();
obj.set_vservername(vservername);
sslvserver_sslpolicy_binding response[] = (sslvserver_sslpolicy_binding[]) obj.get_resources(servic... | java |
public static systemcounters get(nitro_service service) throws Exception{
systemcounters obj = new systemcounters();
systemcounters[] response = (systemcounters[])obj.get_resources(service);
return response[0];
} | java |
public static systemcounters[] get(nitro_service service, systemcounters_args args) throws Exception{
systemcounters obj = new systemcounters();
options option = new options();
option.set_args(nitro_util.object_to_string_withoutquotes(args));
systemcounters[] response = (systemcounters[])obj.get_resources(servi... | java |
public static responderpolicylabel_policybinding_binding[] get(nitro_service service, String labelname) throws Exception{
responderpolicylabel_policybinding_binding obj = new responderpolicylabel_policybinding_binding();
obj.set_labelname(labelname);
responderpolicylabel_policybinding_binding response[] = (respon... | java |
public static channel_binding get(nitro_service service, String id) throws Exception{
channel_binding obj = new channel_binding();
obj.set_id(id);
channel_binding response = (channel_binding) obj.get_resource(service);
return response;
} | java |
public static appfwprofile_binding get(nitro_service service, String name) throws Exception{
appfwprofile_binding obj = new appfwprofile_binding();
obj.set_name(name);
appfwprofile_binding response = (appfwprofile_binding) obj.get_resource(service);
return response;
} | java |
public static lbvserver_auditsyslogpolicy_binding[] get(nitro_service service, String name) throws Exception{
lbvserver_auditsyslogpolicy_binding obj = new lbvserver_auditsyslogpolicy_binding();
obj.set_name(name);
lbvserver_auditsyslogpolicy_binding response[] = (lbvserver_auditsyslogpolicy_binding[]) obj.get_re... | java |
public static appfwprofile_sqlinjection_binding[] get(nitro_service service, String name) throws Exception{
appfwprofile_sqlinjection_binding obj = new appfwprofile_sqlinjection_binding();
obj.set_name(name);
appfwprofile_sqlinjection_binding response[] = (appfwprofile_sqlinjection_binding[]) obj.get_resources(se... | java |
public static base_response add(nitro_service client, clusternode resource) throws Exception {
clusternode addresource = new clusternode();
addresource.nodeid = resource.nodeid;
addresource.ipaddress = resource.ipaddress;
addresource.state = resource.state;
addresource.backplane = resource.backplane;
addres... | java |
public static base_responses add(nitro_service client, clusternode resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
clusternode addresources[] = new clusternode[resources.length];
for (int i=0;i<resources.length;i++){
addresources[i] = new clus... | java |
public static base_response update(nitro_service client, clusternode resource) throws Exception {
clusternode updateresource = new clusternode();
updateresource.nodeid = resource.nodeid;
updateresource.state = resource.state;
updateresource.backplane = resource.backplane;
updateresource.priority = resource.pr... | java |
public static base_responses update(nitro_service client, clusternode resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
clusternode updateresources[] = new clusternode[resources.length];
for (int i=0;i<resources.length;i++){
updateresources[i] =... | java |
public static base_response unset(nitro_service client, clusternode resource, String[] args) throws Exception{
clusternode unsetresource = new clusternode();
unsetresource.nodeid = resource.nodeid;
return unsetresource.unset_resource(client,args);
} | java |
public static base_responses unset(nitro_service client, Long nodeid[], String args[]) throws Exception {
base_responses result = null;
if (nodeid != null && nodeid.length > 0) {
clusternode unsetresources[] = new clusternode[nodeid.length];
for (int i=0;i<nodeid.length;i++){
unsetresources[i] = new clust... | java |
public static base_response delete(nitro_service client, clusternode resource) throws Exception {
clusternode deleteresource = new clusternode();
deleteresource.nodeid = resource.nodeid;
return deleteresource.delete_resource(client);
} | java |
public static base_responses delete(nitro_service client, Long nodeid[]) throws Exception {
base_responses result = null;
if (nodeid != null && nodeid.length > 0) {
clusternode deleteresources[] = new clusternode[nodeid.length];
for (int i=0;i<nodeid.length;i++){
deleteresources[i] = new clusternode();
... | java |
public static clusternode[] get(nitro_service service) throws Exception{
clusternode obj = new clusternode();
clusternode[] response = (clusternode[])obj.get_resources(service);
return response;
} | java |
public static clusternode get(nitro_service service, Long nodeid) throws Exception{
clusternode obj = new clusternode();
obj.set_nodeid(nodeid);
clusternode response = (clusternode) obj.get_resource(service);
return response;
} | java |
public static clusternode[] get(nitro_service service, Long nodeid[]) throws Exception{
if (nodeid !=null && nodeid.length>0) {
clusternode response[] = new clusternode[nodeid.length];
clusternode obj[] = new clusternode[nodeid.length];
for (int i=0;i<nodeid.length;i++) {
obj[i] = new clusternode();
... | java |
public static clusternode[] get_filtered(nitro_service service, filtervalue[] filter) throws Exception{
clusternode obj = new clusternode();
options option = new options();
option.set_filter(filter);
clusternode[] response = (clusternode[]) obj.getfiltered(service, option);
return response;
} | java |
public static sslpolicy_binding get(nitro_service service, String name) throws Exception{
sslpolicy_binding obj = new sslpolicy_binding();
obj.set_name(name);
sslpolicy_binding response = (sslpolicy_binding) obj.get_resource(service);
return response;
} | java |
public static lbvserver_responderpolicy_binding[] get(nitro_service service, String name) throws Exception{
lbvserver_responderpolicy_binding obj = new lbvserver_responderpolicy_binding();
obj.set_name(name);
lbvserver_responderpolicy_binding response[] = (lbvserver_responderpolicy_binding[]) obj.get_resources(se... | java |
public static cmppolicy_csvserver_binding[] get(nitro_service service, String name) throws Exception{
cmppolicy_csvserver_binding obj = new cmppolicy_csvserver_binding();
obj.set_name(name);
cmppolicy_csvserver_binding response[] = (cmppolicy_csvserver_binding[]) obj.get_resources(service);
return response;
} | java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.