Examples of Admin


Examples of org.jacorb.imr.Admin

        return "";
    }

    private static Admin getAdmin()
    {
        Admin _admin = null;
        try
        {
            _admin =
                AdminHelper.narrow( m_orb.resolve_initial_references("ImplementationRepository"));
        }
View Full Code Here

Examples of org.jacorb.imr.Admin

        if (_command == null)
        {
            _command = "";
        }

        Admin _admin = getAdmin();

        try
        {
            if (args[0].equals("add"))
            {
                _admin.register_server(_server_name, _command, _host);
            }
            else
            {
                //else case already checked in main
                _admin.edit_server(_server_name, _command, _host);
            }

            System.out.println("Server " + _server_name + " successfully " +
                               args[0] + "ed");
            System.out.println("Host: >>" + _host + "<<");
View Full Code Here

Examples of org.jacorb.imr.Admin

        {
            System.out.println(" Please specify a servername / hostname");
            shortUsage();
        }

        Admin _admin = getAdmin();

        if (args[1].equals("server"))
        {
            try
            {
                _admin.unregister_server(args[2]);

                System.out.println("Server " + args[2] +
                                   " successfully removed");
            }
            catch (Exception _e)
            {
                _e.printStackTrace();
            }
        }
        else if (args[1].equals("host"))
        {
            try
            {
                _admin.unregister_host(args[2]);

                System.out.println("Host " + args[2] +
                                   " successfully removed");
            }
            catch (Exception _e)
View Full Code Here

Examples of org.jacorb.imr.Admin

        {
            System.out.println("Please use (servers | hosts) in command");
            shortUsage();
        }

        Admin _admin = getAdmin();

        try
        {
            if (args[1].equals("servers"))
            {
                ServerInfo[] _info = _admin.list_servers();

                System.out.println("Servers (total: " + _info.length + "):");

                for(int _i = 0; _i < _info.length; _i++)
                {
                    System.out.println((_i + 1) + ") " +_info[_i].name);

                    System.out.println("   " + "Host: " + _info[_i].host);

                    System.out.println("   " + "Command: " +
                                       _info[_i].command);

                    System.out.println("   " + "active: " +
                                       ((_info[_i].active)?"yes":"no"));

                    System.out.println("   " + "holding: " +
                                       ((_info[_i].holding)?"yes":"no"));
                }
            }
            else if (args[1].equals("hosts"))
            {
                HostInfo[] _info = _admin.list_hosts();

                System.out.println("Hosts (total: " + _info.length + "):");

                for(int _i = 0; _i < _info.length; _i++)
                {
View Full Code Here

Examples of org.jacorb.imr.Admin

        }

        String _server_name = args[1];
        int _timeout = 0;

        Admin _admin = getAdmin();

        try
        {
            if (args.length == 3)
            {
                _timeout = Integer.parseInt(args[2]);
            }

            _admin.hold_server(_server_name);
            System.out.println("Server " + _server_name + " set to holding");

            if (_timeout > 0)
            {
                Thread.sleep(_timeout);

                _admin.release_server(_server_name);

                System.out.println("Server " + _server_name + " released");
            }

        }
View Full Code Here

Examples of org.jacorb.imr.Admin

        }

        String _server_name = args[1];
        int _timeout = 0;

        Admin _admin = getAdmin();

        try
        {
            _admin.release_server(_server_name);

            System.out.println("Server " + _server_name + " released");
        }
        catch (Exception _e)
        {
View Full Code Here

Examples of org.jacorb.imr.Admin

            shortUsage();
        }

        String _server_name = args[1];

        Admin _admin = getAdmin();

        try
        {
            _admin.start_server(_server_name);

            System.out.println("Server " + _server_name + " started");
        }
        catch (Exception _e)
        {
View Full Code Here

Examples of org.jacorb.imr.Admin

    /**
     * Write a backup of the server table.
     */
    private static void saveTable()
    {
        Admin _admin = getAdmin();

        try
        {
            _admin.save_server_table();

            System.out.println("Backup of server table was successfull");
        }
        catch (Exception _e)
        {
View Full Code Here

Examples of org.jacorb.imr.Admin

    /**
     * Shut the repository down.
     */
    private static void shutdownImR(String[] args)
    {
        Admin _admin = getAdmin();

        boolean _wait = true;

        if (args.length == 2)
        {
            if (args[1].toLowerCase().equals("force"))
            {
                _wait = false;
            }
            else
            {
                System.out.println("Unrecognized option: " + args[1]);
                System.out.println("The only possible option is \"force\"");
                shortUsage();
            }
        }

        try
        {
            _admin.shutdown(_wait);

            System.out.println("The Implementation Repository has been shut down without exceptions");
        }
        catch (Exception _e)
        {
View Full Code Here

Examples of org.jitterbit.integration.client.admin.Admin

    @Override
    protected void runImpl() throws InterruptedException {
        updateEngine(EnumSet.of(ServerStatus.UNDEFINED), getName() + "...");
        setMessage("Retrieving the status from the server");
        IntegrationServer server = IntegrationServer.getInstance();
        Admin call = server.getServerCall(Admin.class);
        getEngine().requestStatus(call, detailLevel, (GetStatusCallback) getCallback());
    }
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.