MCPcopy Create free account
hub / github.com/OpenTSDB/asynchbase / preFlightTest

Method preFlightTest

test/TestIntegration.java:134–142  ·  view source on GitHub ↗

Ensures the table/family we use for our test exists.

(final String[] args)

Source from the content-addressed store, hash-verified

132
133 /** Ensures the table/family we use for our test exists. */
134 private static void preFlightTest(final String[] args) throws Exception {
135 final HBaseClient client = Common.getOpt(TestIntegration.class,
136 args);
137 try {
138 createOrTruncateTable(client, args[0], args[1]);
139 } finally {
140 client.shutdown().join();
141 }
142 }
143
144 /** Creates or truncates the given table name. */
145 private static void createOrTruncateTable(final HBaseClient client,

Callers 1

mainMethod · 0.95

Calls 3

getOptMethod · 0.95
createOrTruncateTableMethod · 0.95
shutdownMethod · 0.95

Tested by

no test coverage detected