Examples of NetworkServerControlImpl


Examples of org.apache.derby.impl.drda.NetworkServerControlImpl

   * @throws             Exception on error
   */
  public NetworkServerControl(InetAddress address,int portNumber) throws Exception
  {
   
    serverImpl = new NetworkServerControlImpl(address,
                    portNumber);

  }
View Full Code Here

Examples of org.apache.derby.impl.drda.NetworkServerControlImpl

   * @throws             Exception on error
   */
  public NetworkServerControl() throws Exception
  {
   
    serverImpl = new NetworkServerControlImpl();

  }
View Full Code Here

Examples of org.apache.derby.impl.drda.NetworkServerControlImpl

   *
   * @param args  array of arguments indicating command to be executed.
   * See class comments for more information
   */
    public static void main(String args[]) {
        NetworkServerControlImpl server = null;
        try
        {
            server = new NetworkServerControlImpl();
        server.executeWork(args);
        }
        catch (Exception e)
        {
      //if there was an error, exit(1)
      if ((e.getMessage() == null) ||
        !e.getMessage().equals(NetworkServerControlImpl.UNEXPECTED_ERR))
      {
        if (server != null)
          server.consoleExceptionPrint(e);
        else
          e.printStackTrace()// default output stream is System.out
      }
      // else, we've already printed a trace, so just exit.
      System.exit(1);
View Full Code Here

Examples of org.apache.derby.impl.drda.NetworkServerControlImpl

        // FIXME ... this needs to be passed to the server somehow.
        @SuppressWarnings("unused")
        int port = ARG_PORT.isSet() ? ARG_PORT.getValue() : 1527;

        NetworkServerControlImpl server = new NetworkServerControlImpl();

        int server_command = server.parseArgs(new String[]{command});

        if (server_command == NetworkServerControlImpl.COMMAND_START) {
            PrintWriter printWriter = getOutput().getPrintWriter();
            server.setLogWriter(printWriter);
            server.start(printWriter);
        } else if (server_command == NetworkServerControlImpl.COMMAND_SHUTDOWN) {
            server.shutdown();
        }

//    server.executeWork(server_command);

//    NetworkServerControl.main(new String[]{command});
View Full Code Here

Examples of org.apache.derby.impl.drda.NetworkServerControlImpl

   * @throws             Exception on error
   */
  public NetworkServerControl(InetAddress address,int portNumber) throws Exception
  {
   
    serverImpl = new NetworkServerControlImpl(address,
                    portNumber);

  }
View Full Code Here

Examples of org.apache.derby.impl.drda.NetworkServerControlImpl

   * @throws             Exception on error
   */
  public NetworkServerControl() throws Exception
  {
   
    serverImpl = new NetworkServerControlImpl();

  }
View Full Code Here

Examples of org.apache.derby.impl.drda.NetworkServerControlImpl

   *
   * @param args  array of arguments indicating command to be executed.
   * See class comments for more information
   */
    public static void main(String args[]) {
        NetworkServerControlImpl server = null;

        //
        // The following variable lets us preserve the error printing behavior
        // seen before we started installing a security manager. Errors can be
        // raised as we figure out whether we need to install a security manager
        // and during the actual installation of the security manager. We need
        // to print out these errors. The old error printing behavior assumed
        // that all errors were generated inside NetworkServerControlImpl and
        // were reported there.
        //
        boolean                                 printErrors = true;
       
        try
        {
            server = new NetworkServerControlImpl();
           
            int     command = server.parseArgs( args );

            //
            // In order to run secure-by-default, we install a security manager
            // if one isn't already installed. This feature is described by DERBY-2196.
            //
            if ( needsSecurityManager( server, command ) )
            {
                verifySecurityState( server );
                installSecurityManager( server );
            }

            //
            // From this point on, NetworkServerControlImpl is responsible for
            // printing errors.
            //
            printErrors = false;
            server.executeWork( command );
        }
        catch (Exception e)
        {
      //if there was an error, exit(1)
      if ((e.getMessage() == null) ||
        !e.getMessage().equals(NetworkServerControlImpl.UNEXPECTED_ERR) ||
        printErrors
      )
      {
        if (server != null)
          server.consoleExceptionPrint(e);
        else
          e.printStackTrace()// default output stream is System.out
      }
      // else, we've already printed a trace, so just exit.
      System.exit(1);
View Full Code Here

Examples of org.apache.derby.impl.drda.NetworkServerControlImpl

     */
    public NetworkServerControl(InetAddress address, int portNumber,
                                String userName, String password)
            throws Exception
    {
        serverImpl = new NetworkServerControlImpl(address, portNumber,
                                                  userName, password);
    }
View Full Code Here

Examples of org.apache.derby.impl.drda.NetworkServerControlImpl

     * @throws             Exception on error
     */
    public NetworkServerControl(String userName, String password)
            throws Exception
    {
        serverImpl = new NetworkServerControlImpl(userName, password);
    }
View Full Code Here

Examples of org.apache.derby.impl.drda.NetworkServerControlImpl

     *                      
     * @throws             Exception on error
     */
    public NetworkServerControl(InetAddress address,int portNumber) throws Exception
    {
        serverImpl = new NetworkServerControlImpl(address, portNumber);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.