ManagerPOA.java 9.53 KB
/*
 * Decompiled with CFR 0_118.
 */
package com.adobe.service;

import com.adobe.service.*;
import com.adobe.service.ManagerPackage.JdkLogEntry;
import com.adobe.service.ManagerPackage.JdkLogEntrySeqHelper;
import com.adobe.service.ManagerPackage.LogEntry;
import com.adobe.service.ManagerPackage.LogEntrySeqHelper;
import org.omg.CORBA.BAD_OPERATION;
import org.omg.CORBA.ORB;
import org.omg.CORBA.SystemException;
import org.omg.CORBA.portable.InputStream;
import org.omg.CORBA.portable.InvokeHandler;
import org.omg.CORBA.portable.OutputStream;
import org.omg.CORBA.portable.ResponseHandler;
import org.omg.PortableServer.POA;
import org.omg.PortableServer.Servant;

import java.util.Hashtable;

public abstract class ManagerPOA
extends Servant
implements InvokeHandler,
ManagerOperations {
    private static final Hashtable m_opsHash = new Hashtable();
    private String[] ids = new String[]{"IDL:com/adobe/service/Manager:1.0"};

    public Manager _this() {
        return ManagerHelper.narrow(this._this_object());
    }

    public Manager _this(ORB orb) {
        return ManagerHelper.narrow(this._this_object(orb));
    }

    public OutputStream _invoke(String method, InputStream _input, ResponseHandler handler) throws SystemException {
        OutputStream _out = null;
        Integer opsIndex = (Integer)m_opsHash.get(method);
        if (null == opsIndex) {
            throw new BAD_OPERATION(method + " not found");
        }
        switch (opsIndex) {
            case 0: {
                try {
                    String _arg0 = _input.read_wstring();
                    String _arg1 = _input.read_wstring();
                    _out = handler.createReply();
                    _out.write_wstring(this.getDeployPropertyString(_arg0, _arg1));
                }
                catch (NoSuchPropertyException _ex0) {
                    _out = handler.createExceptionReply();
                    NoSuchPropertyExceptionHelper.write(_out, _ex0);
                }
                break;
            }
            case 1: {
                try {
                    String _arg0 = _input.read_wstring();
                    _out = handler.createReply();
                    _out.write_float(this.getConfigPropertyFloat(_arg0));
                }
                catch (NoSuchPropertyException _ex0) {
                    _out = handler.createExceptionReply();
                    NoSuchPropertyExceptionHelper.write(_out, _ex0);
                }
                break;
            }
            case 2: {
                String _arg0 = _input.read_string();
                int _arg1 = _input.read_long();
                _out = handler.createReply();
                this.signalIntValue(_arg0, _arg1);
                break;
            }
            case 3: {
                String _arg0 = _input.read_wstring();
                _out = handler.createReply();
                _out.write_long(this.getJdkLogLevel(_arg0));
                break;
            }
            case 4: {
                String _arg0 = _input.read_string();
                String _arg1 = _input.read_wstring();
                _out = handler.createReply();
                this.signalStringValue(_arg0, _arg1);
                break;
            }
            case 5: {
                try {
                    String _arg0 = _input.read_wstring();
                    boolean _arg1 = _input.read_boolean();
                    _out = handler.createReply();
                    this.setConfigPropertyBoolean(_arg0, _arg1);
                }
                catch (NoSuchPropertyException _ex0) {
                    _out = handler.createExceptionReply();
                    NoSuchPropertyExceptionHelper.write(_out, _ex0);
                }
                break;
            }
            case 6: {
                _out = handler.createReply();
                _out.write_wstring(this.getNativeDirPath());
                break;
            }
            case 7: {
                _out = handler.createReply();
                _out.write_wstring(this.getPersistentDirPath());
                break;
            }
            case 8: {
                String _arg0 = _input.read_string();
                _out = handler.createReply();
                this.signalEvent(_arg0);
                break;
            }
            case 9: {
                try {
                    String _arg0 = _input.read_wstring();
                    _out = handler.createReply();
                    _out.write_long(this.getConfigPropertyInt(_arg0));
                }
                catch (NoSuchPropertyException _ex0) {
                    _out = handler.createExceptionReply();
                    NoSuchPropertyExceptionHelper.write(_out, _ex0);
                }
                break;
            }
            case 10: {
                JdkLogEntry[] _arg0 = JdkLogEntrySeqHelper.read(_input);
                _out = handler.createReply();
                this.logJdk(_arg0);
                break;
            }
            case 11: {
                try {
                    String _arg0 = _input.read_wstring();
                    _out = handler.createReply();
                    _out.write_boolean(this.getConfigPropertyBoolean(_arg0));
                }
                catch (NoSuchPropertyException _ex0) {
                    _out = handler.createExceptionReply();
                    NoSuchPropertyExceptionHelper.write(_out, _ex0);
                }
                break;
            }
            case 12: {
                try {
                    String _arg0 = _input.read_wstring();
                    _out = handler.createReply();
                    _out.write_wstring(this.getConfigPropertyString(_arg0));
                }
                catch (NoSuchPropertyException _ex0) {
                    _out = handler.createExceptionReply();
                    NoSuchPropertyExceptionHelper.write(_out, _ex0);
                }
                break;
            }
            case 13: {
                _out = handler.createReply();
                _out.write_wstring(this.getProcessTempDirPath());
                break;
            }
            case 14: {
                try {
                    String _arg0 = _input.read_wstring();
                    String _arg1 = _input.read_wstring();
                    _out = handler.createReply();
                    this.setConfigPropertyString(_arg0, _arg1);
                }
                catch (NoSuchPropertyException _ex0) {
                    _out = handler.createExceptionReply();
                    NoSuchPropertyExceptionHelper.write(_out, _ex0);
                }
                break;
            }
            case 15: {
                try {
                    String _arg0 = _input.read_wstring();
                    float _arg1 = _input.read_float();
                    _out = handler.createReply();
                    this.setConfigPropertyFloat(_arg0, _arg1);
                }
                catch (NoSuchPropertyException _ex0) {
                    _out = handler.createExceptionReply();
                    NoSuchPropertyExceptionHelper.write(_out, _ex0);
                }
                break;
            }
            case 16: {
                ControlAgent _arg0 = ControlAgentHelper.read(_input);
                _out = handler.createReply();
                this.registerController(_arg0);
                break;
            }
            case 17: {
                String _arg0 = _input.read_wstring();
                _out = handler.createReply();
                _out.write_Object(this.getResource(_arg0));
                break;
            }
            case 18: {
                try {
                    String _arg0 = _input.read_wstring();
                    int _arg1 = _input.read_long();
                    _out = handler.createReply();
                    this.setConfigPropertyInt(_arg0, _arg1);
                }
                catch (NoSuchPropertyException _ex0) {
                    _out = handler.createExceptionReply();
                    NoSuchPropertyExceptionHelper.write(_out, _ex0);
                }
                break;
            }
            case 19: {
                LogEntry[] _arg0 = LogEntrySeqHelper.read(_input);
                _out = handler.createReply();
                this.log(_arg0);
                break;
            }
        }
        return _out;
    }

    public String[] _all_interfaces(POA poa, byte[] obj_id) {
        return this.ids;
    }

    static {
        m_opsHash.put("getDeployPropertyString", new Integer(0));
        m_opsHash.put("getConfigPropertyFloat", new Integer(1));
        m_opsHash.put("signalIntValue", new Integer(2));
        m_opsHash.put("getJdkLogLevel", new Integer(3));
        m_opsHash.put("signalStringValue", new Integer(4));
        m_opsHash.put("setConfigPropertyBoolean", new Integer(5));
        m_opsHash.put("getNativeDirPath", new Integer(6));
        m_opsHash.put("getPersistentDirPath", new Integer(7));
        m_opsHash.put("signalEvent", new Integer(8));
        m_opsHash.put("getConfigPropertyInt", new Integer(9));
        m_opsHash.put("logJdk", new Integer(10));
        m_opsHash.put("getConfigPropertyBoolean", new Integer(11));
        m_opsHash.put("getConfigPropertyString", new Integer(12));
        m_opsHash.put("getProcessTempDirPath", new Integer(13));
        m_opsHash.put("setConfigPropertyString", new Integer(14));
        m_opsHash.put("setConfigPropertyFloat", new Integer(15));
        m_opsHash.put("registerController", new Integer(16));
        m_opsHash.put("getResource", new Integer(17));
        m_opsHash.put("setConfigPropertyInt", new Integer(18));
        m_opsHash.put("log", new Integer(19));
    }
}