code stringlengths 73 34.1k | label stringclasses 1
value |
|---|---|
public static protocolhttp_stats get(nitro_service service, options option) throws Exception{
protocolhttp_stats obj = new protocolhttp_stats();
protocolhttp_stats[] response = (protocolhttp_stats[])obj.stat_resources(service,option);
return response[0];
} | java |
public static base_response add(nitro_service client, dnsnameserver resource) throws Exception {
dnsnameserver addresource = new dnsnameserver();
addresource.ip = resource.ip;
addresource.dnsvservername = resource.dnsvservername;
addresource.local = resource.local;
addresource.state = resource.state;
addres... | java |
public static base_responses add(nitro_service client, dnsnameserver resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
dnsnameserver addresources[] = new dnsnameserver[resources.length];
for (int i=0;i<resources.length;i++){
addresources[i] = ne... | java |
public static base_response delete(nitro_service client, String ip) throws Exception {
dnsnameserver deleteresource = new dnsnameserver();
deleteresource.ip = ip;
return deleteresource.delete_resource(client);
} | java |
public static base_response delete(nitro_service client, dnsnameserver resource) throws Exception {
dnsnameserver deleteresource = new dnsnameserver();
deleteresource.ip = resource.ip;
deleteresource.dnsvservername = resource.dnsvservername;
return deleteresource.delete_resource(client);
} | java |
public static base_responses delete(nitro_service client, String ip[]) throws Exception {
base_responses result = null;
if (ip != null && ip.length > 0) {
dnsnameserver deleteresources[] = new dnsnameserver[ip.length];
for (int i=0;i<ip.length;i++){
deleteresources[i] = new dnsnameserver();
deletereso... | java |
public static base_responses delete(nitro_service client, dnsnameserver resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
dnsnameserver deleteresources[] = new dnsnameserver[resources.length];
for (int i=0;i<resources.length;i++){
deleteresource... | java |
public static base_response enable(nitro_service client, String ip) throws Exception {
dnsnameserver enableresource = new dnsnameserver();
enableresource.ip = ip;
return enableresource.perform_operation(client,"enable");
} | java |
public static base_response enable(nitro_service client, dnsnameserver resource) throws Exception {
dnsnameserver enableresource = new dnsnameserver();
enableresource.ip = resource.ip;
enableresource.dnsvservername = resource.dnsvservername;
return enableresource.perform_operation(client,"enable");
} | java |
public static base_responses enable(nitro_service client, String ip[]) throws Exception {
base_responses result = null;
if (ip != null && ip.length > 0) {
dnsnameserver enableresources[] = new dnsnameserver[ip.length];
for (int i=0;i<ip.length;i++){
enableresources[i] = new dnsnameserver();
enablereso... | java |
public static base_responses enable(nitro_service client, dnsnameserver resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
dnsnameserver enableresources[] = new dnsnameserver[resources.length];
for (int i=0;i<resources.length;i++){
enableresource... | java |
public static base_response disable(nitro_service client, String ip) throws Exception {
dnsnameserver disableresource = new dnsnameserver();
disableresource.ip = ip;
return disableresource.perform_operation(client,"disable");
} | java |
public static base_response disable(nitro_service client, dnsnameserver resource) throws Exception {
dnsnameserver disableresource = new dnsnameserver();
disableresource.ip = resource.ip;
disableresource.dnsvservername = resource.dnsvservername;
return disableresource.perform_operation(client,"disable");
} | java |
public static base_responses disable(nitro_service client, String ip[]) throws Exception {
base_responses result = null;
if (ip != null && ip.length > 0) {
dnsnameserver disableresources[] = new dnsnameserver[ip.length];
for (int i=0;i<ip.length;i++){
disableresources[i] = new dnsnameserver();
disable... | java |
public static base_responses disable(nitro_service client, dnsnameserver resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
dnsnameserver disableresources[] = new dnsnameserver[resources.length];
for (int i=0;i<resources.length;i++){
disableresou... | java |
public static dnsnameserver[] get(nitro_service service) throws Exception{
dnsnameserver obj = new dnsnameserver();
dnsnameserver[] response = (dnsnameserver[])obj.get_resources(service);
return response;
} | java |
public static authenticationnegotiatepolicy_authenticationvserver_binding[] get(nitro_service service, String name) throws Exception{
authenticationnegotiatepolicy_authenticationvserver_binding obj = new authenticationnegotiatepolicy_authenticationvserver_binding();
obj.set_name(name);
authenticationnegotiatepoli... | java |
public static transformpolicylabel_policybinding_binding[] get(nitro_service service, String labelname) throws Exception{
transformpolicylabel_policybinding_binding obj = new transformpolicylabel_policybinding_binding();
obj.set_labelname(labelname);
transformpolicylabel_policybinding_binding response[] = (transf... | java |
public static base_response update(nitro_service client, policyhttpcallout resource) throws Exception {
policyhttpcallout updateresource = new policyhttpcallout();
updateresource.name = resource.name;
updateresource.ipaddress = resource.ipaddress;
updateresource.port = resource.port;
updateresource.vserver = ... | java |
public static base_responses update(nitro_service client, policyhttpcallout resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
policyhttpcallout updateresources[] = new policyhttpcallout[resources.length];
for (int i=0;i<resources.length;i++){
up... | java |
public static policyhttpcallout[] get(nitro_service service) throws Exception{
policyhttpcallout obj = new policyhttpcallout();
policyhttpcallout[] response = (policyhttpcallout[])obj.get_resources(service);
return response;
} | java |
public static policyhttpcallout get(nitro_service service, String name) throws Exception{
policyhttpcallout obj = new policyhttpcallout();
obj.set_name(name);
policyhttpcallout response = (policyhttpcallout) obj.get_resource(service);
return response;
} | java |
@Override
public void loadPath(File path, FileFilter filt) {
if(path.exists()) {
filePaths.add(path);
fileFilters.add(filt);
} else {
System.err.printf("%s: File/path %s does not exist. Skipping.\n" , this.getClass().getName(), path.getPath());
}
} | java |
public static dnsview_gslbservice_binding[] get(nitro_service service, String viewname) throws Exception{
dnsview_gslbservice_binding obj = new dnsview_gslbservice_binding();
obj.set_viewname(viewname);
dnsview_gslbservice_binding response[] = (dnsview_gslbservice_binding[]) obj.get_resources(service);
return r... | java |
public static long count(nitro_service service, String viewname) throws Exception{
dnsview_gslbservice_binding obj = new dnsview_gslbservice_binding();
obj.set_viewname(viewname);
options option = new options();
option.set_count(true);
dnsview_gslbservice_binding response[] = (dnsview_gslbservice_binding[]) o... | java |
public static <X> IteratorFromReaderFactory<X> getFactory(Function<String,X> op) {
return new LineIteratorFactory<X>(op);
} | java |
public static base_response add(nitro_service client, vpnclientlessaccessprofile resource) throws Exception {
vpnclientlessaccessprofile addresource = new vpnclientlessaccessprofile();
addresource.profilename = resource.profilename;
return addresource.add_resource(client);
} | java |
public static base_responses add(nitro_service client, vpnclientlessaccessprofile resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
vpnclientlessaccessprofile addresources[] = new vpnclientlessaccessprofile[resources.length];
for (int i=0;i<resource... | java |
public static base_response delete(nitro_service client, String profilename) throws Exception {
vpnclientlessaccessprofile deleteresource = new vpnclientlessaccessprofile();
deleteresource.profilename = profilename;
return deleteresource.delete_resource(client);
} | java |
public static base_responses delete(nitro_service client, String profilename[]) throws Exception {
base_responses result = null;
if (profilename != null && profilename.length > 0) {
vpnclientlessaccessprofile deleteresources[] = new vpnclientlessaccessprofile[profilename.length];
for (int i=0;i<profilename.le... | java |
public static base_response update(nitro_service client, vpnclientlessaccessprofile resource) throws Exception {
vpnclientlessaccessprofile updateresource = new vpnclientlessaccessprofile();
updateresource.profilename = resource.profilename;
updateresource.urlrewritepolicylabel = resource.urlrewritepolicylabel;
... | java |
public static base_responses update(nitro_service client, vpnclientlessaccessprofile resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
vpnclientlessaccessprofile updateresources[] = new vpnclientlessaccessprofile[resources.length];
for (int i=0;i<re... | java |
public static base_response unset(nitro_service client, vpnclientlessaccessprofile resource, String[] args) throws Exception{
vpnclientlessaccessprofile unsetresource = new vpnclientlessaccessprofile();
unsetresource.profilename = resource.profilename;
return unsetresource.unset_resource(client,args);
} | java |
public static base_responses unset(nitro_service client, vpnclientlessaccessprofile resources[], String[] args) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
vpnclientlessaccessprofile unsetresources[] = new vpnclientlessaccessprofile[resources.length];
for... | java |
public static vpnclientlessaccessprofile[] get(nitro_service service) throws Exception{
vpnclientlessaccessprofile obj = new vpnclientlessaccessprofile();
vpnclientlessaccessprofile[] response = (vpnclientlessaccessprofile[])obj.get_resources(service);
return response;
} | java |
public static vpnclientlessaccessprofile get(nitro_service service, String profilename) throws Exception{
vpnclientlessaccessprofile obj = new vpnclientlessaccessprofile();
obj.set_profilename(profilename);
vpnclientlessaccessprofile response = (vpnclientlessaccessprofile) obj.get_resource(service);
return resp... | java |
public static vpnclientlessaccessprofile[] get(nitro_service service, String profilename[]) throws Exception{
if (profilename !=null && profilename.length>0) {
vpnclientlessaccessprofile response[] = new vpnclientlessaccessprofile[profilename.length];
vpnclientlessaccessprofile obj[] = new vpnclientlessaccesspr... | java |
public static vpnclientlessaccessprofile[] get_filtered(nitro_service service, filtervalue[] filter) throws Exception{
vpnclientlessaccessprofile obj = new vpnclientlessaccessprofile();
options option = new options();
option.set_filter(filter);
vpnclientlessaccessprofile[] response = (vpnclientlessaccessprofile... | java |
public Set<String> getFullKeyList() throws IOException {
if (dataCollector.getCollectorType()
.equals(DataCollector.COLLECTOR_TYPE_LIST)) {
return dataCollector.getKeyList();
} else {
throw new IOException(
"only allowed for " + DataCollector.COLLECTOR_TYPE_LIST);
}
} | java |
public double conditionalLogProbGivenPrevious(int[] given, int of) {
if (given.length != windowSize - 1) {
throw new IllegalArgumentException("conditionalLogProbGivenPrevious requires given one less than clique size (" +
windowSize + ") but was " + Arrays.toString(given));
}
// Note... | java |
public double[] conditionalLogProbsGivenPrevious(int[] given) {
if (given.length != windowSize - 1) {
throw new IllegalArgumentException("conditionalLogProbsGivenPrevious requires given one less than clique size (" +
windowSize + ") but was " + Arrays.toString(given));
}
double[] result... | java |
public double conditionalLogProbGivenFirst(int given, int[] of) {
if (of.length != windowSize - 1) {
throw new IllegalArgumentException("conditionalLogProbGivenFirst requires of one less than clique size (" +
windowSize + ") but was " + Arrays.toString(of));
}
// compute P(given, of)
... | java |
public double unnormalizedConditionalLogProbGivenFirst(int given, int[] of) {
if (of.length != windowSize - 1) {
throw new IllegalArgumentException("unnormalizedConditionalLogProbGivenFirst requires of one less than clique size (" +
windowSize + ") but was " + Arrays.toString(of));
}
... | java |
protected String get_object_type()
{
String name = this.getClass().getName();
int index = name.lastIndexOf(".");
if(index > 0)
name = name.substring(index+1);
index = name.lastIndexOf("_stats");
if (index > 0) {
name = name.substring(0, index);
}
return name;
} | java |
protected String unset_string(nitro_service service, String id, options option, String args[]) throws Exception
{
Boolean warning = service.get_warning();
String result = service.get_payload_formatter().unset_string(this, id, option, args, warning);
return result;
} | java |
private base_resource post_requestEx(nitro_service service, options option) throws Exception
{
String sessionid = service.get_sessionid();
String request = resource_to_string(service, sessionid, option);
return post_dataEx(service, request);
} | java |
protected base_response add_resource(nitro_service service,options option) throws Exception
{
if (!service.isLogin() && !this.get_object_type().equals("login"))
service.login();
String sessionid = service.get_sessionid();
String request = resource_to_string(service, sessionid, option);
return post_data(ser... | java |
protected base_response update_resource(nitro_service service,options option) throws Exception
{
if (!service.isLogin() && !this.get_object_type().equals("login"))
service.login();
String sessionid = service.get_sessionid();
String request = resource_to_string(service, sessionid, option);
return put_data(s... | java |
protected base_response delete_resource(nitro_service service) throws Exception
{
base_response response;
if (!service.isLogin())
service.login();
String str = nitro_util.object_to_string_withoutquotes(this);
response = delete_request(service, str);
return response;
} | java |
protected base_resource[] getfiltered(nitro_service service,options option) throws Exception
{
if (!service.isLogin())
service.login();
base_resource[] response = get_request(service, option);
return response;
} | java |
protected base_resource get_resource(nitro_service service,options option) throws Exception
{
if (!service.isLogin())
service.login();
base_resource[] response = get_request(service, option);
if (response != null) {
return response[0];
}
return null;
} | java |
protected base_resource[] stat_resources(nitro_service service,options option) throws Exception
{
if (!service.isLogin())
service.login();
base_resource[] response = stat_request(service, option);
return response;
} | java |
protected base_resource stat_resource(nitro_service service,options option) throws Exception
{
if (!service.isLogin())
service.login();
base_resource[] response = stat_request(service, option);
if (response != null && response.length > 0)
{
return response[0];
}
return null;
} | java |
public base_resource perform_operationEx(nitro_service service, String action) throws Exception
{
if (!service.isLogin() && !get_object_type().equals("login"))
service.login();
options option = new options();
option.set_action(action);
base_resource response = post_requestEx(service, option);
return resp... | java |
protected base_response rename_resource(nitro_service service, String newname) throws Exception
{
if (!service.isLogin() && !get_object_type().equals("login"))
service.login();
options option = new options();
option.set_action("rename");
this.set_newname(newname);
base_response response = post_request(s... | java |
protected static base_responses update_bulk_request(nitro_service service,base_resource resources[]) throws Exception
{
if (!service.isLogin())
service.login();
String id = service.get_sessionid();
Boolean warning = service.get_warning();
String onerror = service.get_onerror();
String request = service.g... | java |
protected static base_responses delete_bulk_request(nitro_service service,base_resource resources[]) throws Exception
{
if (!service.isLogin())
service.login();
options option = new options();
option.set_action("rm");
String type = resources[0].get_object_type();
if (type.indexOf("_binding") > 0)
{
... | java |
private static String _put(nitro_service service, String request) throws Exception {
HttpURLConnection httpURLConnection;
StringBuilder responseStr = new StringBuilder();
try
{
String urlstr;
String ipaddress = service.get_ipaddress();
String version = service.get_version();
String protocol = servic... | java |
public static nsevents[] get(nitro_service service, options option) throws Exception{
nsevents obj = new nsevents();
nsevents[] response = (nsevents[])obj.get_resources(service,option);
return response;
} | java |
public static nsevents[] get(nitro_service service, nsevents_args args) throws Exception{
nsevents obj = new nsevents();
options option = new options();
option.set_args(nitro_util.object_to_string_withoutquotes(args));
nsevents[] response = (nsevents[])obj.get_resources(service, option);
return response;
} | java |
public static sslpolicy_sslservice_binding[] get(nitro_service service, String name) throws Exception{
sslpolicy_sslservice_binding obj = new sslpolicy_sslservice_binding();
obj.set_name(name);
sslpolicy_sslservice_binding response[] = (sslpolicy_sslservice_binding[]) obj.get_resources(service);
return response... | java |
public static base_response add(nitro_service client, lbroute6 resource) throws Exception {
lbroute6 addresource = new lbroute6();
addresource.network = resource.network;
addresource.gatewayname = resource.gatewayname;
return addresource.add_resource(client);
} | java |
public static base_responses add(nitro_service client, lbroute6 resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
lbroute6 addresources[] = new lbroute6[resources.length];
for (int i=0;i<resources.length;i++){
addresources[i] = new lbroute6();
... | java |
public static lbroute6[] get(nitro_service service) throws Exception{
lbroute6 obj = new lbroute6();
lbroute6[] response = (lbroute6[])obj.get_resources(service);
return response;
} | java |
public static lbroute6 get(nitro_service service, String network) throws Exception{
lbroute6 obj = new lbroute6();
obj.set_network(network);
lbroute6 response = (lbroute6) obj.get_resource(service);
return response;
} | java |
public static lbroute6[] get(nitro_service service, String network[]) throws Exception{
if (network !=null && network.length>0) {
lbroute6 response[] = new lbroute6[network.length];
lbroute6 obj[] = new lbroute6[network.length];
for (int i=0;i<network.length;i++) {
obj[i] = new lbroute6();
obj[i].set... | java |
public static base_response update(nitro_service client, l2param resource) throws Exception {
l2param updateresource = new l2param();
updateresource.mbfpeermacupdate = resource.mbfpeermacupdate;
updateresource.maxbridgecollision = resource.maxbridgecollision;
updateresource.bdggrpproxyarp = resource.bdggrpproxy... | java |
public static base_response unset(nitro_service client, l2param resource, String[] args) throws Exception{
l2param unsetresource = new l2param();
return unsetresource.unset_resource(client,args);
} | java |
public static l2param get(nitro_service service) throws Exception{
l2param obj = new l2param();
l2param[] response = (l2param[])obj.get_resources(service);
return response[0];
} | java |
public <E> ClassFactory<E> createFactory(String... classes) {
try {
return new ClassFactory<E>(classname, classes);
} catch (ClassCreationException e){
throw e;
} catch (Exception e) {
throw new ClassCreationException(e);
}
} | java |
public <E> ClassFactory<E> createFactory(Object... objects) {
try {
return new ClassFactory<E>(classname, objects);
} catch (ClassCreationException e){
throw e;
} catch (Exception e) {
throw new ClassCreationException(e);
}
} | java |
private static Class <?> type2class(Type type){
if(type instanceof Class <?>){
return (Class <?>) type; //base case
}else if(type instanceof ParameterizedType){
return type2class( ((ParameterizedType) type).getRawType() );
}else if(type instanceof TypeVariable<?>){
return type2class( ((TypeVariable... | java |
private static final String[] decodeArray(String encoded){
char[] chars = encoded.trim().toCharArray();
//--Parse the String
//(state)
char quoteCloseChar = (char) 0;
List<StringBuilder> terms = new LinkedList<StringBuilder>();
StringBuilder current = new StringBuilder();
//(start/stop overhead)
... | java |
public static linkset_binding get(nitro_service service, String id) throws Exception{
linkset_binding obj = new linkset_binding();
obj.set_id(id);
linkset_binding response = (linkset_binding) obj.get_resource(service);
return response;
} | java |
public static base_response enable(nitro_service client, sslfipssimtarget resource) throws Exception {
sslfipssimtarget enableresource = new sslfipssimtarget();
enableresource.keyvector = resource.keyvector;
enableresource.sourcesecret = resource.sourcesecret;
return enableresource.perform_operation(client,"ena... | java |
public static base_response init(nitro_service client, sslfipssimtarget resource) throws Exception {
sslfipssimtarget initresource = new sslfipssimtarget();
initresource.certfile = resource.certfile;
initresource.keyvector = resource.keyvector;
initresource.targetsecret = resource.targetsecret;
return initres... | java |
public static rewritepolicy_stats[] get(nitro_service service, options option) throws Exception{
rewritepolicy_stats obj = new rewritepolicy_stats();
rewritepolicy_stats[] response = (rewritepolicy_stats[])obj.stat_resources(service,option);
return response;
} | java |
public static rewritepolicy_stats get(nitro_service service, String name) throws Exception{
rewritepolicy_stats obj = new rewritepolicy_stats();
obj.set_name(name);
rewritepolicy_stats response = (rewritepolicy_stats) obj.stat_resource(service);
return response;
} | java |
public static rewritepolicylabel_binding get(nitro_service service, String labelname) throws Exception{
rewritepolicylabel_binding obj = new rewritepolicylabel_binding();
obj.set_labelname(labelname);
rewritepolicylabel_binding response = (rewritepolicylabel_binding) obj.get_resource(service);
return response;
... | java |
public static tmsessionpolicy_authenticationvserver_binding[] get(nitro_service service, String name) throws Exception{
tmsessionpolicy_authenticationvserver_binding obj = new tmsessionpolicy_authenticationvserver_binding();
obj.set_name(name);
tmsessionpolicy_authenticationvserver_binding response[] = (tmsession... | java |
public static authenticationvserver_authenticationsamlpolicy_binding[] get(nitro_service service, String name) throws Exception{
authenticationvserver_authenticationsamlpolicy_binding obj = new authenticationvserver_authenticationsamlpolicy_binding();
obj.set_name(name);
authenticationvserver_authenticationsamlpo... | java |
public static base_response add(nitro_service client, hanode resource) throws Exception {
hanode addresource = new hanode();
addresource.id = resource.id;
addresource.ipaddress = resource.ipaddress;
addresource.inc = resource.inc;
return addresource.add_resource(client);
} | java |
public static base_responses add(nitro_service client, hanode resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
hanode addresources[] = new hanode[resources.length];
for (int i=0;i<resources.length;i++){
addresources[i] = new hanode();
addre... | java |
public static base_response update(nitro_service client, hanode resource) throws Exception {
hanode updateresource = new hanode();
updateresource.id = resource.id;
updateresource.hastatus = resource.hastatus;
updateresource.hasync = resource.hasync;
updateresource.haprop = resource.haprop;
updateresource.he... | java |
public static base_responses update(nitro_service client, hanode resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
hanode updateresources[] = new hanode[resources.length];
for (int i=0;i<resources.length;i++){
updateresources[i] = new hanode();
... | java |
public static base_responses unset(nitro_service client, hanode resources[], String[] args) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
hanode unsetresources[] = new hanode[resources.length];
for (int i=0;i<resources.length;i++){
unsetresources[i] = n... | java |
public static hanode[] get(nitro_service service) throws Exception{
hanode obj = new hanode();
hanode[] response = (hanode[])obj.get_resources(service);
return response;
} | java |
public static hanode get(nitro_service service, Long id) throws Exception{
hanode obj = new hanode();
obj.set_id(id);
hanode response = (hanode) obj.get_resource(service);
return response;
} | java |
public static hanode[] get(nitro_service service, Long id[]) throws Exception{
if (id !=null && id.length>0) {
hanode response[] = new hanode[id.length];
hanode obj[] = new hanode[id.length];
for (int i=0;i<id.length;i++) {
obj[i] = new hanode();
obj[i].set_id(id[i]);
response[i] = (hanode) obj[i... | java |
public static base_response update(nitro_service client, aaaradiusparams resource) throws Exception {
aaaradiusparams updateresource = new aaaradiusparams();
updateresource.serverip = resource.serverip;
updateresource.serverport = resource.serverport;
updateresource.authtimeout = resource.authtimeout;
updater... | java |
public static base_response unset(nitro_service client, aaaradiusparams resource, String[] args) throws Exception{
aaaradiusparams unsetresource = new aaaradiusparams();
return unsetresource.unset_resource(client,args);
} | java |
public static aaaradiusparams get(nitro_service service) throws Exception{
aaaradiusparams obj = new aaaradiusparams();
aaaradiusparams[] response = (aaaradiusparams[])obj.get_resources(service);
return response[0];
} | java |
public static base_response flush(nitro_service client, nssurgeq resource) throws Exception {
nssurgeq flushresource = new nssurgeq();
flushresource.name = resource.name;
flushresource.servername = resource.servername;
flushresource.port = resource.port;
return flushresource.perform_operation(client,"flush");... | java |
public static MtasTokenString getToken(IndexInput inObject, IndexInput inTerm,
Long ref) throws IOException {
MtasTokenString token = null;
try {
inObject.seek(ref);
token = new MtasTokenString(null, "");
token.setId(inObject.readVInt());
token.setTokenRef(ref);
int objectFla... | java |
public static String getTerm(IndexInput inTerm, Long ref) throws IOException {
try {
inTerm.seek(ref);
return inTerm.readString();
} catch (Exception e) {
throw new IOException(e);
}
} | java |
public void colorChannel(String channel, Color color){
if(this.channelColors == null){
this.channelColors = new HashMap<String,Color>();
}
this.channelColors.put(channel.toLowerCase(),color);
} | java |
public void styleChannel(String channel, Style style){
if(this.channelStyles == null){
this.channelStyles = new HashMap<String,Style>();
}
this.channelStyles.put(channel.toLowerCase(),style);
} | java |
protected StringBuilder style(StringBuilder b, String line, Color color, Style style){
if(color != Color.NONE || style != Style.NONE){
b.append(color.ansiCode);
b.append(style.ansiCode);
b.append(line);
b.append("\033[0m");
} else {
b.append(line);
}
return b;
} | java |
public static protocoltcp_stats get(nitro_service service) throws Exception{
protocoltcp_stats obj = new protocoltcp_stats();
protocoltcp_stats[] response = (protocoltcp_stats[])obj.stat_resources(service);
return response[0];
} | java |
public static responderpolicy_lbvserver_binding[] get(nitro_service service, String name) throws Exception{
responderpolicy_lbvserver_binding obj = new responderpolicy_lbvserver_binding();
obj.set_name(name);
responderpolicy_lbvserver_binding response[] = (responderpolicy_lbvserver_binding[]) obj.get_resources(se... | java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.