<p>send.</p>

@param args a {@link java.lang.String} object.
@return a {@link java.lang.Object} object.
@throws java.lang.Exception if any.
978580
public Object send( String... args ) throws Exception
    {
        assertArgumentsCount( args );
        field.set( target, TypeConversion.parse( args[0], field.getType() ) );
        return null;
    }
9497
public static void main(String... args) throws Exception {
        Options options = createOptions();

        try {
            Parser parser = new PosixParser();
            CommandLine cmd = parser.parse(options, args);

            if (cmd.hasOption("version")) {
                System.out.println("Version: " + Launcher.class.getPackage().getImplementationVersion());
            }

            String scriptPathEntries = cmd.getOptionValue("scriptpath", "src/test/scripts");
            String[] scriptPathEntryArray = scriptPathEntries.split(";");
            List<URL> scriptUrls = new ArrayList<>();

            for (String scriptPathEntry : scriptPathEntryArray) {
                File scriptEntryFilePath = new File(scriptPathEntry);
                scriptUrls.add(scriptEntryFilePath.toURI().toURL());
            }

            String controlURI = cmd.getOptionValue("control");
            if (controlURI == null) {
                controlURI = "tcp://localhost:11642";
            }

            boolean verbose = cmd.hasOption("verbose");

            URLClassLoader scriptLoader = new URLClassLoader(scriptUrls.toArray(new URL[0]));
            RobotServer server = new RobotServer(URI.create(controlURI), verbose, scriptLoader);
            server.start();
            server.join();
        } catch (ParseException ex) {
            HelpFormatter helpFormatter = new HelpFormatter();
            helpFormatter.printHelp(Launcher.class.getSimpleName(), options, true);
        }

    }
1146971
public int run(String[] args) throws Exception {    
    if (args.length == 0) {
      System.out.println("Usage: writer <out-dir>");
      ToolRunner.printGenericCommandUsage(System.out);
      return -1;
    }
    
    Path outDir = new Path(args[0]);
    JobConf job = new JobConf(getConf());
    
    job.setJarByClass(RandomWriter.class);
    job.setJobName("random-writer");
    FileOutputFormat.setOutputPath(job, outDir);
    
    job.setOutputKeyClass(BytesWritable.class);
    job.setOutputValueClass(BytesWritable.class);
    
    job.setInputFormat(RandomInputFormat.class);
    job.setMapperClass(Map.class);        
    job.setReducerClass(IdentityReducer.class);
    job.setOutputFormat(SequenceFileOutputFormat.class);
    
    JobClient client = new JobClient(job);
    ClusterStatus cluster = client.getClusterStatus();
    int numMapsPerHost = job.getInt("test.randomwriter.maps_per_host", 10);
    long numBytesToWritePerMap = job.getLong("test.randomwrite.bytes_per_map",
                                             1*1024*1024*1024);
    if (numBytesToWritePerMap == 0) {
      System.err.println("Cannot have test.randomwrite.bytes_per_map set to 0");
      return -2;
    }
    long totalBytesToWrite = job.getLong("test.randomwrite.total_bytes", 
         numMapsPerHost*numBytesToWritePerMap*cluster.getTaskTrackers());
    int numMaps = (int) (totalBytesToWrite / numBytesToWritePerMap);
    if (numMaps == 0 && totalBytesToWrite > 0) {
      numMaps = 1;
      job.setLong("test.randomwrite.bytes_per_map", totalBytesToWrite);
    }
    
    job.setNumMapTasks(numMaps);
    System.out.println("Running " + numMaps + " maps.");
    
    // reducer NONE
    job.setNumReduceTasks(0);
    
    Date startTime = new Date();
    System.out.println("Job started: " + startTime);
    JobClient.runJob(job);
    Date endTime = new Date();
    System.out.println("Job ended: " + endTime);
    System.out.println("The job took " + 
                       (endTime.getTime() - startTime.getTime()) /1000 + 
                       " seconds.");
    
    return 0;
  }
895992
public static void main(String[] args) throws Exception {
		Eventloop eventloop = Eventloop.create().withCurrentThread();

		SimpleServer server = SimpleServer.create(socket ->
				BinaryChannelSupplier.of(ChannelSupplier.ofSocket(socket))
						.parseStream(ByteBufsParser.ofCrlfTerminatedBytes())
						.peek(buf -> System.out.println("client:" + buf.getString(UTF_8)))
						.map(buf -> {
							ByteBuf serverBuf = ByteBufStrings.wrapUtf8("Server> ");
							return ByteBufPool.append(serverBuf, buf);
						})
						.map(buf -> ByteBufPool.append(buf, CRLF))
						.streamTo(ChannelConsumer.ofSocket(socket)))
				.withListenPort(PORT);

		server.listen();

		System.out.println("Server is running");
		System.out.println("You can connect from telnet with command: telnet localhost 9922 or by running TcpClientExample");

		eventloop.run();
	}
785369
public static void main(String[] args) {
        try {
            System.err.println();
            System.err.println(Globals.getWorkbenchInfoString());
            System.err.println();
            if (args.length < 2) {
                System.err.println("usage: java " + MakeObject.class.getName()
                        + " outputfile.moa \"<object name> <options>\"");
                System.err.println();
            } else {
                String filename = args[0];
                // build a single string by concatenating cli options
                StringBuilder cliString = new StringBuilder();
                for (int i = 1; i < args.length; i++) {
                    cliString.append(" " + args[i]);
                }
                // parse options
                System.err.println("Making object...");
                Object result = ClassOption.cliStringToObject(cliString.toString(), Object.class, null);
                System.err.println("Writing object to file: " + filename);
                SerializeUtils.writeToFile(new File(filename),
                        (Serializable) result);
                System.err.println("Done.");
            }
        } catch (Exception ex) {
            ex.printStackTrace();
        }
    }
625197
@Override
    public void sendMessage(CharArrayWriter message) throws IOException {

        SyslogMessage syslogMessage = new SyslogMessage()
                .withAppName(defaultAppName)
                .withFacility(defaultFacility)
                .withHostname(defaultMessageHostname)
                .withSeverity(defaultSeverity)
                .withMsg(message);

        sendMessage(syslogMessage);
    }
1288206
public static void main(final String[] args) throws Exception {
		// System.out.println(getSystemInfo().toString().replaceAll(",",
		// JK.NEW_LINE));
		System.out.println(HardWare.MAC);
		System.out.println(getMacAddress());
	}
196719
public void parse(String... args) {
        try {
            parse(true /* validate */, args);
        } catch(ParameterException ex) {
            ex.setJCommander(this);
            throw ex;
        }
    }
756813
public static void main(String[] args) {
        try {
            RmiJournalReceiverArguments arguments =
                    new RmiJournalReceiverArguments(args);
            RmiJournalReceiver receiver = new RmiJournalReceiver(arguments);
            receiver.exportAndBind();
            while (true) {
                Thread.sleep(60000);
            }
        } catch (IllegalArgumentException e) {
            System.out.println("RmiJournalReciever failed: " + e.getMessage());
        } catch (Exception e) {
            System.out.println("RmiJournalReciever failed: ");
            e.printStackTrace();
        }
    }
34562
public void setArgs(final Serializable... args) {
		this.args = args == null || args.length == 0 ? null : args;
	}
581651
@SuppressWarnings("InfiniteLoopStatement")
	public static void main(String[] args) throws Exception {
		LoggingCallback loggingCallback = new LoggingCallback();
		loggingCallback.setLevel(Level.INFO);
		SimonManager.callback().addCallback(loggingCallback);
		Random random = new Random();

		register();
		try {
			while (true) {
				final int task = random.nextInt(TASK_SPREAD) + TASK_MIN;
				new Thread() {
					public void run() {
						try (Split split = SimonManager.getStopwatch(TASK_STOPWATCH).start()) {
							Thread.sleep(task);
						} catch (InterruptedException e) {
							e.printStackTrace();
						}
					}
				}.start();
				int sleep = random.nextInt(NEW_TASK_SPREAD) + NEW_TASK_MIN;
				Thread.sleep(sleep);
			}
		} finally {
			unregister();
		}
	}
650866
private String createMessage(String... args) {

    StringBuilder buffer = new StringBuilder();
    for (String s : args) {
      if (buffer.length() > 0) {
        buffer.append(';');
      }
      buffer.append(s);
    }
    return buffer.toString();
  }
883958
protected void execute(final String[] args) throws Exception {
		// Process command-line.
		if (args.length == 0 || args.length == 1) {
			usage();
		}
		String userpass = args[0];
		String hostportOrPid = args[1];
		String beanname = null;// vGCutil
		String[] command = null;
		if (args.length > 2) {
			beanname = args[2];
		}
		if (args.length > 3) {
			command = new String[args.length - 3];
			for (int i = 3; i < args.length; i++) {
				command[i - 3] = args[i];
			}
		}
		String[] loginPassword = parseUserpass(userpass);

		// 模拟GC Util命令的扩展
		if (V_GCUTIL_BEAN_NAME.equalsIgnoreCase(beanname)) {
			// 支持配置interval 固定事件间隔连续输出
			int interval = 0;
			if (command != null && command.length > 0) {
				try {
					interval = Math.abs(Integer.parseInt(command[0]));// 拿绝对值, 避免负数的情况
				} catch (NumberFormatException e) {// NOSONAR
				}
			}

			ExtraCommand extraCommand = new ExtraCommand();
			extraCommand.execute(hostportOrPid, ((loginPassword == null) ? null : loginPassword[0]),
					((loginPassword == null) ? null : loginPassword[1]), beanname, interval);
			return;
		}

		Object[] result = execute(hostportOrPid, ((loginPassword == null) ? null : loginPassword[0]),
				((loginPassword == null) ? null : loginPassword[1]), beanname, command);
		if (result != null) {
			for (int i = 0; i < result.length; i++) {
				if (result[i] != null && result[i].toString().length() > 0) {
					if (command != null) {
						logger.info(command[i] + ": " + result[i]);
					} else {
						logger.info("\n" + result[i].toString());
					}
				}
			}
		}
	}
411580
public static <E> E send(Object o, String methodName, Short arg) {
    return send(o, methodName, (Object) arg);
  }
470816
public static void main(String[] args) throws Exception {
    AlluxioFramework framework = new AlluxioFramework();
    JCommander jc = new JCommander(framework);
    try {
      jc.parse(args);
    } catch (Exception e) {
      System.out.println(e.getMessage());
      jc.usage();
      System.exit(1);
    }
    framework.run();
  }
805044
public static <E> E send(Object o, String methodName, Long arg) {
    return send(o, methodName, (Object) arg);
  }
1208796
static public void main (String[] args) throws Exception {
		if (args.length == 0) {
			String commandLine = "-f 0 -wi 1 -i 1 -t 1 -w 1s -r 1s " // For developement only (fork 0, short runs).
			// + "-bs 2500000 ArrayBenchmark" //
			// + "-rf csv FieldSerializerBenchmark.field FieldSerializerBenchmark.tagged" //
			// + "FieldSerializerBenchmark.tagged" //
			;
			System.out.println(commandLine);
			args = commandLine.split(" ");
		}
		Main.main(args);
	}