Codota Logo
Client.setVerboseLevel
Code IndexAdd Codota to your IDE (free)

How to use
setVerboseLevel
method
in
com.icodici.universa.node2.network.Client

Best Java code snippets using com.icodici.universa.node2.network.Client.setVerboseLevel (Showing top 2 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Charset c =
  • Codota IconString charsetName;Charset.forName(charsetName)
  • Codota IconCharset.defaultCharset()
  • Codota IconContentType contentType;contentType.getCharset()
  • Smart code suggestions by Codota
}
origin: UniversaBlockchain/universa

private static void doSetLogLevels() {
  List<String> sources = new ArrayList<String>((List) options.valuesOf("set-log-levels"));
  if(sources.size() != 3) {
    addError(Errors.COMMAND_FAILED.name(),"levels", "specify 3 log levels: node,network,udp");
  }
  try {
    ItemResult ir = getClientNetwork().client.setVerboseLevel(DatagramAdapter.VerboseLevel.stringToInt(sources.get(0)),
        DatagramAdapter.VerboseLevel.stringToInt(sources.get(1)),
        DatagramAdapter.VerboseLevel.stringToInt(sources.get(2)));
    addErrors(ir.errors);
  } catch (ClientError clientError) {
    if (options.has("verbose"))
      clientError.printStackTrace();
    addError(Errors.COMMAND_FAILED.name(),"levels",clientError.getMessage());
  } catch (IOException e) {
    if (options.has("verbose"))
      e.printStackTrace();
    addError(Errors.COMMAND_FAILED.name(),"levels",e.getMessage());
  }
  finish();
}
origin: UniversaBlockchain/universa

@Test
public void verboseLevelTest() throws Exception {
  PrivateKey issuerKey = new PrivateKey(Do.read("./src/test_contracts/keys/reconfig_key.private.unikey"));
  TestSpace testSpace = prepareTestSpace(issuerKey);
  Contract contract = new Contract(TestKeys.privateKey(3));
  contract.seal();
  testSpace.client.register(contract.getPackedTransaction(),8000);
  Thread.sleep(2000);
  testSpace.client.setVerboseLevel(DatagramAdapter.VerboseLevel.NOTHING,DatagramAdapter.VerboseLevel.DETAILED,DatagramAdapter.VerboseLevel.NOTHING);
  contract = new Contract(TestKeys.privateKey(3));
  contract.seal();
  testSpace.client.register(contract.getPackedTransaction(),8000);
  testSpace.nodes.forEach(x -> x.shutdown());
}
com.icodici.universa.node2.networkClientsetVerboseLevel

Popular methods of Client

  • getState
  • <init>
    Create new client protocol session. It loads network configuration and creates client protocol sessi
  • getClient
  • getNodes
    Get list of nodes in
  • ping
  • register
    Register contract on the network without payment. May require special client key / network configura
  • command
    Execude custom command on the node
  • getNodeNumber
    Get number of node cliet connection is established with
  • getVersion
    Get network version
  • registerParcelWithState
    Register contract on the network with parcel (includes payment) and wait for some of the final ItemS
  • getParcelProcessingState
    Get processing state of given parcel
  • getSession
    Get session of http client connected to node with given number
  • getParcelProcessingState,
  • getSession,
  • getStats,
  • queryContract,
  • resyncItem,
  • size,
  • followerGetRate,
  • getBody,
  • getContract

Popular in Java

  • Finding current android device location
  • getExternalFilesDir (Context)
  • getSupportFragmentManager (FragmentActivity)
  • findViewById (Activity)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • JButton (javax.swing)
  • LogFactory (org.apache.commons.logging)
    A minimal incarnation of Apache Commons Logging's LogFactory API, providing just the common Log look
  • Runner (org.openjdk.jmh.runner)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now