{
    "title": "edit process_class configuration",
    "id": "schemas/joe/agentCluster/processClassEdit",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "javaType": "com.sos.joc.model.joe.processclass.ProcessClassEdit",
    "type": "object",
    "required": [
        "configuration"
    ],
    "extends": {
        "javaType": "com.sos.joc.model.joe.common.JSObjectEdit"
    },
    "properties": {
        "configuration": {
            "id": "schemas/joe/agentCluster/processClass",
            "javaType": "com.sos.joc.model.joe.processclass.ProcessClass",
            "javaInterfaces": [
                "com.sos.joc.model.joe.common.IJSObject"
            ],
            "xmlElement": "process_class",
            "type": "object",
            "required": [
                "maxProcesses"
            ],
            "properties": {
                "maxProcesses": {
                    "id": "schemas/common/nonNegativeInteger",
                    "type": "integer",
                    "minimum": 0
                },
                "timeout": {
                    "id": "schemas/common/nonNegativeInteger",
                    "type": "integer",
                    "minimum": 0
                },
                "remoteScheduler": {
                    "type": "string"
                },
                "remoteSchedulers": {
                    "xmlElement": "remote_schedulers",
                    "type": "object",
                    "javaType": "com.sos.joc.model.joe.processclass.RemoteSchedulers",
                    "required": [
                        "remoteSchedulerList"
                    ],
                    "properties": {
                        "select": {
                            "description": "first, next",
                            "type": "string",
                            "default": "first"
                        },
                        "remoteSchedulerList": {
                            "type": "array",
                            "xmlElement": "remote_scheduler",
                            "items": {
                                "javaType": "com.sos.joc.model.joe.processclass.RemoteScheduler",
                                "type": "object",
                                "required": [
                                    "remoteScheduler"
                                ],
                                "properties": {
                                    "remoteScheduler": {
                                        "type": "string"
                                    },
                                    "httpHeartbeatTimeout": {
                                        "id": "schemas/common/nonNegativeInteger",
                                        "type": "integer",
                                        "minimum": 0
                                    },
                                    "httpHeartbeatPeriod": {
                                        "id": "schemas/common/nonNegativeInteger",
                                        "type": "integer",
                                        "minimum": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}