Tabnine Logo
ProcessMessageHandler$OperationType
Code IndexAdd Tabnine to your IDE (free)

How to use
ProcessMessageHandler$OperationType
in
org.jboss.as.process

Best Java code snippets using org.jboss.as.process.ProcessMessageHandler$OperationType (Showing top 12 results out of 315)

origin: org.jboss.as/jboss-as-process-controller

} case Protocol.OPERATION_FAILED : {
  final int operationType = readUnsignedByte(dataStream);
  final ProcessMessageHandler.OperationType type = ProcessMessageHandler.OperationType.fromCode(operationType);
  final String processName = readUTFZBytes(dataStream);
  dataStream.close();
origin: wildfly/wildfly-core

void operationFailed(final String processName, final ProcessMessageHandler.OperationType operationType) {
  synchronized (lock) {
    for (Connection connection : managedConnections) {
      try {
        final OutputStream os = connection.writeMessage();
        try {
          os.write(Protocol.OPERATION_FAILED);
          os.write(operationType.getCode());
          StreamUtils.writeUTFZBytes(os, processName);
          os.close();
        } finally {
          StreamUtils.safeClose(os);
        }
      } catch (IOException e) {
        ProcessLogger.ROOT_LOGGER.failedToWriteMessage("OPERATION_FAILED", e);
        removeManagedConnection(connection);
      }
    }
  }
}
origin: wildfly/wildfly-core

try {
  os.write(Protocol.OPERATION_FAILED);
  os.write(operationType.getCode());
  StreamUtils.writeUTFZBytes(os, processName);
  os.close();
origin: org.wildfly.core/wildfly-process-controller

try {
  os.write(Protocol.OPERATION_FAILED);
  os.write(operationType.getCode());
  StreamUtils.writeUTFZBytes(os, processName);
  os.close();
origin: org.jboss.as/jboss-as-process-controller

try {
  os.write(Protocol.OPERATION_FAILED);
  os.write(operationType.getCode());
  StreamUtils.writeUTFZBytes(os, processName);
  os.close();
origin: org.wildfly.core/wildfly-process-controller

} case Protocol.OPERATION_FAILED : {
  final int operationType = readUnsignedByte(dataStream);
  final ProcessMessageHandler.OperationType type = ProcessMessageHandler.OperationType.fromCode(operationType);
  final String processName = readUTFZBytes(dataStream);
  dataStream.close();
origin: wildfly/wildfly-core

} case Protocol.OPERATION_FAILED : {
  final int operationType = readUnsignedByte(dataStream);
  final ProcessMessageHandler.OperationType type = ProcessMessageHandler.OperationType.fromCode(operationType);
  final String processName = readUTFZBytes(dataStream);
  dataStream.close();
origin: org.wildfly.core/wildfly-process-controller

void operationFailed(final String processName, final ProcessMessageHandler.OperationType operationType) {
  synchronized (lock) {
    for (Connection connection : managedConnections) {
      try {
        final OutputStream os = connection.writeMessage();
        try {
          os.write(Protocol.OPERATION_FAILED);
          os.write(operationType.getCode());
          StreamUtils.writeUTFZBytes(os, processName);
          os.close();
        } finally {
          StreamUtils.safeClose(os);
        }
      } catch (IOException e) {
        ProcessLogger.ROOT_LOGGER.failedToWriteMessage("OPERATION_FAILED", e);
        removeManagedConnection(connection);
      }
    }
  }
}
origin: org.jboss.as/jboss-as-process-controller

void operationFailed(final String processName, final ProcessMessageHandler.OperationType operationType) {
  synchronized (lock) {
    for (Connection connection : managedConnections) {
      try {
        final OutputStream os = connection.writeMessage();
        try {
          os.write(Protocol.OPERATION_FAILED);
          os.write(operationType.getCode());
          StreamUtils.writeUTFZBytes(os, processName);
          os.close();
        } finally {
          StreamUtils.safeClose(os);
        }
      } catch (IOException e) {
        ROOT_LOGGER.failedToWriteMessage("OPERATION_FAILED", e);
        removeManagedConnection(connection);
      }
    }
  }
}
origin: org.wildfly.core/wildfly-process-controller

  static OperationType fromCode(int code) {
    for(OperationType type : values()) {
      if( type.getCode() == code) {
        return type;
      }
    }
    return null;
  }
}
origin: org.jboss.as/jboss-as-process-controller

  static OperationType fromCode(int code) {
    for(OperationType type : values()) {
      if( type.getCode() == code) {
        return type;
      }
    }
    return null;
  }
}
origin: wildfly/wildfly-core

  static OperationType fromCode(int code) {
    for(OperationType type : values()) {
      if( type.getCode() == code) {
        return type;
      }
    }
    return null;
  }
}
org.jboss.as.processProcessMessageHandler$OperationType

Most used methods

  • fromCode
  • getCode
  • values

Popular in Java

  • Running tasks concurrently on multiple threads
  • getResourceAsStream (ClassLoader)
  • getContentResolver (Context)
  • setRequestProperty (URLConnection)
  • String (java.lang)
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • JCheckBox (javax.swing)
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now