Module Netplex_types

module Netplex_types: sig .. end
Types for Netplex

type encap = Netplex_encap.encap 
type param_value = [ `Bool of bool | `Float of float | `Int of int | `String of string ] 
type param_value_or_any = [ `Any of exn
| `Bool of bool
| `Encap of encap
| `Float of float
| `Int of int
| `String of string ]
type level = [ `Alert | `Crit | `Debug | `Emerg | `Err | `Info | `Notice | `Warning ] 
Log levels, modeled after syslog
class type logger = object .. end
A logger receives log messages
type parallelization_type = [ `Controller_attached | `Multi_processing | `Multi_threading ] 
Type of parallelization:
type thread_sys_id = [ `Process of int | `Thread of int ] 
A system-specific identifier of the thread/process
type socket_state = [ `Disabled | `Down | `Enabled | `Restarting of bool ] 
The state of a socket:
type container_id = < socket_service_name : string > 
Such objects identify containers. As additional info, the method socket_service_name returns the name of the socket service the container implements
type container_state = [ `Accepting of int * float | `Busy | `Shutting_down | `Starting of float ] 
The container state for workload management:
type capacity = [ `Low_quality of int * bool | `Normal_quality of int * bool | `Unavailable ] 
How many connections a container can accept in addition to the existing connections: The greedy flag sets whether greedy accepts are allowed.
type extended_address = [ `Container of
string * string * string * [ `Any | `Process of int | `Thread of int ]
| `Socket of Unix.sockaddr
| `Socket_file of string
| `W32_pipe of string
| `W32_pipe_file of string ]
Possible addresses:
class type controller = object .. end
The controller is the object in the Netplex master process/thread that manages the containers, logging, and service definitions
class type controller_config = object .. end
class type socket_service = object .. end
class type socket_service_config = object .. end
class type protocol = object .. end
class type socket_controller = object .. end
class type ctrl_message_receiver = object .. end
class type processor_hooks = object .. end
Processor hooks can be used to modify the behavior of a processor.
class type processor = object .. end
The processor is the object that is notified when a new TCP connection is accepted.
class type container = object .. end
Containers encapsulate the control flow of the service components.
class type workload_manager = object .. end
See Netplex_workload for definitions of workload managers
class type plugin = object .. end
Plugins are extensions of the Netplex system that run in the controller and can be invoked from containers
class type par_thread = object .. end
class type parallelizer = object .. end
type config_tree = [ `Parameter of string * param_value
| `Section of string * config_tree list ]
type address = <  > 
class type config_file = object .. end
class type processor_factory = object .. end
class type workload_manager_factory = object .. end
class type logger_factory = object .. end
class type netplex_config = object .. end