{"modulePath":"github.com/AliceO2Group/Control","version":"v1.51.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package odc\n\nPackage odc provides integration with the Online Device Control (ODC) system for managing the ALICE event processing farm during data taking and offline processing.\n\n## Constants\n\n```go\nconst (\n\tODC_DIAL_TIMEOUT                = 2 * time.Second\n\tODC_GENERAL_OP_TIMEOUT          = 5 * time.Second\n\tODC_CONFIGURE_TIMEOUT           = 60 * time.Second\n\tODC_PARTITIONINITIALIZE_TIMEOUT = 60 * time.Second\n\tODC_START_TIMEOUT               = 15 * time.Second\n\tODC_STOP_TIMEOUT                = 15 * time.Second\n\tODC_RESET_TIMEOUT               = 30 * time.Second\n\tODC_PARTITIONTERMINATE_TIMEOUT  = 30 * time.Second\n\tODC_PADDING_TIMEOUT             = 3 * time.Second\n\tODC_STATUS_TIMEOUT              = 3 * time.Second\n\tODC_POLLING_INTERVAL            = 3 * time.Second\n\tODC_MAX_INBOUND_MESSAGE_SIZE    = 32 * 1024 * 1024 // 16 MiB\n\tTOPIC                           = topic.IntegratedService + topic.Separator + \"odc\"\n)\n```\n\n```go\nconst ODC_ERROR_MAX_LENGTH = 250\n```\n\n## Functions\n\n```go\nfunc NewPlugin(endpoint string) integration.Plugin\n```\n\n## Types\n\n```go\ntype OdcCollection struct {\n\tCollectionId OdcCollectionId `json:\"collectionId\"`\n\tState        string          `json:\"state\"`\n\tEcsState     sm.State        `json:\"ecsState\"`\n\tPath         string          `json:\"path\"`\n\tHost         string          `json:\"host\"`\n}\n```\n\n```go\ntype OdcCollectionId uint64\n```\n\n```go\ntype OdcDevice struct {\n\tTaskId     string   `json:\"taskId\"`\n\tState      string   `json:\"state\"`\n\tEcsState   sm.State `json:\"ecsState\"`\n\tPath       string   `json:\"path\"`\n\tIgnored    bool     `json:\"ignored\"`\n\tHost       string   `json:\"host\"`\n\tExpendable bool     `json:\"expendable\"`\n\tRmsjobid   string   `json:\"rmsjobid\"`\n}\n```\n\n```go\ntype OdcDeviceId uint64\n```\n\n```go\nfunc (o OdcDeviceId) MarshalJSON() ([]byte, error)\n```\n\n```go\ntype OdcPartitionInfo struct {\n\tPartitionId      uid.ID                             `json:\"-\"`\n\tRunNumber        uint32                             `json:\"runNumber\"`\n\tState            string                             `json:\"state\"`\n\tEcsState         sm.State                           `json:\"ecsState\"`\n\tDdsSessionId     string                             `json:\"ddsSessionId\"`\n\tDdsSessionStatus string                             `json:\"ddsSessionStatus\"`\n\tDevices          map[OdcDeviceId]*OdcDevice         `json:\"devices\"`\n\tHosts            []string                           `json:\"hosts\"`\n\tCollections      map[OdcCollectionId]*OdcCollection `json:\"collections\"`\n}\n```\n\n```go\ntype OdcStatus struct {\n\tPartitions map[uid.ID]*OdcPartitionInfo\n\tStatus     odc.ReplyStatus\n\tMessage    string\n\tError      *odc.Error\n}\n```\n\n```go\ntype Plugin struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (p *Plugin) CallStack(data interface{}) (stack map[string]interface{})\n```\n\n```go\nfunc (p *Plugin) Destroy() error\n```\n\n```go\nfunc (p *Plugin) GetConnectionState() string\n```\n\n```go\nfunc (p *Plugin) GetData(_ []any) string\n```\n\n```go\nfunc (p *Plugin) GetEndpoint() string\n```\n\n```go\nfunc (p *Plugin) GetEnvironmentsData(envIds []uid.ID) map[uid.ID]string\n```\n\n```go\nfunc (p *Plugin) GetEnvironmentsShortData(envIds []uid.ID) map[uid.ID]string\n```\n\n```go\nfunc (p *Plugin) GetName() string\n```\n\n```go\nfunc (p *Plugin) GetPrettyName() string\n```\n\n```go\nfunc (p *Plugin) Init(_ string) error\n```\n\n```go\nfunc (p *Plugin) ObjectStack(varStack map[string]string, baseConfigStack map[string]string) (stack map[string]interface{})\n```\n\n```go\ntype RpcClient struct {\n\todcpb.ODCClient\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewClient(cxt context.Context, cancel context.CancelFunc, endpoint string) *RpcClient\n```\n\n```go\nfunc (m *RpcClient) Close() error\n```\n\n```go\nfunc (m *RpcClient) GetConnState() connectivity.State\n```\n\n","path":"github.com/AliceO2Group/Control/core/integration/odc","name":"odc","synopsis":"Package odc provides integration with the Online Device Control (ODC) system for managing the ALICE event processing farm during data taking and offline processing.","isRedistributable":true}
