00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef _ACS_COMMON_IDL
00023 #define _ACS_COMMON_IDL
00024
00025 #include <acserr.idl>
00026
00027 #pragma prefix "alma"
00028
00029
00030 module ACS {
00031
00037
00041 typedef unsigned long long Time;
00042
00044 typedef long long TimeInterval;
00045
00047 typedef unsigned long long pattern;
00048
00050 typedef long long longLong;
00051
00053 typedef unsigned long long uLongLong;
00054
00059 enum Condition {
00061 RED,
00063 YELLOW,
00065 GREEN,
00067 GREY
00068 };
00069
00075 typedef sequence <string> stringSeq;
00076
00078 typedef sequence <Time> TimeSeq;
00079
00081 typedef sequence <TimeInterval> TimeIntervalSeq;
00082
00084 typedef sequence <Condition> ConditionSeq;
00085
00087 typedef sequence <pattern> patternSeq;
00088
00090 typedef sequence <double> doubleSeq;
00091
00093 typedef sequence <float> floatSeq;
00094
00096 typedef sequence <long> longSeq;
00097
00099 typedef sequence <doubleSeq> doubleSeqSeq;
00100
00102 typedef sequence <floatSeq> floatSeqSeq;
00103
00105 typedef sequence <longSeq> longSeqSeq;
00106
00108 typedef sequence <stringSeq> stringSeqSeq;
00109
00111 typedef sequence <longLong> longLongSeq;
00112
00114 typedef sequence <uLongLong> uLongLongSeq;
00115
00116
00120
00126 interface OffShoot {
00127 };
00128
00129
00147 interface PingableResource {
00156 boolean ping(in boolean fast, in boolean recursive, in long id);
00157 };
00158
00159
00163
00170 typedef unsigned long Tag;
00171
00172
00179 struct CBDescIn {
00187 TimeInterval normal_timeout;
00188
00194 TimeInterval negotiable_timeout;
00195
00201 Tag id_tag;
00202 };
00203
00204
00209 struct CBDescOut {
00210
00214 TimeInterval estimated_timeout;
00215
00217 Tag id_tag;
00218 };
00219
00220
00228 interface Callback : OffShoot {
00245 boolean negotiate (in TimeInterval time_to_transmit, in CBDescOut desc);
00246 };
00247
00265 interface CBvoid : Callback {
00276 oneway void working (in ACSErr::Completion c, in CBDescOut desc);
00277
00287 oneway void done (in ACSErr::Completion c, in CBDescOut desc);
00288 };
00289
00290
00308 interface CBdouble : Callback {
00320 oneway void working (in double value,
00321 in ACSErr::Completion c,
00322 in CBDescOut desc);
00323
00334 oneway void done (in double value,
00335 in ACSErr::Completion c,
00336 in CBDescOut desc);
00337 };
00338
00356 interface CBfloat : Callback {
00368 oneway void working (in float value,
00369 in ACSErr::Completion c,
00370 in CBDescOut desc);
00371
00384 oneway void done (in float value,
00385 in ACSErr::Completion c,
00386 in CBDescOut desc);
00387 };
00388
00406 interface CBstring : Callback {
00418 oneway void working (in string value,
00419 in ACSErr::Completion c,
00420 in CBDescOut desc);
00421
00434 oneway void done (in string value,
00435 in ACSErr::Completion c,
00436 in CBDescOut desc);
00437 };
00438
00439
00457 interface CBstringSeq : Callback {
00469 oneway void working (in stringSeq value,
00470 in ACSErr::Completion c,
00471 in CBDescOut desc);
00472
00483 oneway void done (in stringSeq value,
00484 in ACSErr::Completion c,
00485 in CBDescOut desc);
00486 };
00487
00505 interface CBlong : Callback {
00517 oneway void working (in long value,
00518 in ACSErr::Completion c,
00519 in CBDescOut desc);
00520
00531 oneway void done (in long value,
00532 in ACSErr::Completion c,
00533 in CBDescOut desc);
00534 };
00535
00553 interface CBlongLong : Callback {
00554
00568 oneway void working (in longLong value,
00569 in ACSErr::Completion c,
00570 in CBDescOut desc);
00571
00584 oneway void done (in longLong value,
00585 in ACSErr::Completion c,
00586 in CBDescOut desc);
00587 };
00588
00589
00607 interface CBuLongLong : Callback {
00619 oneway void working (in uLongLong value,
00620 in ACSErr::Completion c,
00621 in CBDescOut desc);
00622
00633 oneway void done (in uLongLong value,
00634 in ACSErr::Completion c,
00635 in CBDescOut desc);
00636 };
00637
00655 interface CBdoubleSeq : Callback {
00667 oneway void working (in doubleSeq value,
00668 in ACSErr::Completion c,
00669 in CBDescOut desc);
00670
00681 oneway void done (in doubleSeq value,
00682 in ACSErr::Completion c,
00683 in CBDescOut desc);
00684 };
00685
00686
00704 interface CBfloatSeq : Callback {
00716 oneway void working (in floatSeq value,
00717 in ACSErr::Completion c,
00718 in CBDescOut desc);
00719
00730 oneway void done (in floatSeq value,
00731 in ACSErr::Completion c,
00732 in CBDescOut desc);
00733 };
00734
00735
00753 interface CBlongSeq : Callback {
00765 oneway void working (in longSeq value,
00766 in ACSErr::Completion c,
00767 in CBDescOut desc);
00768
00779 oneway void done (in longSeq value,
00780 in ACSErr::Completion c,
00781 in CBDescOut desc);
00782 };
00783
00784 };
00785
00786
00787
00788
00794 module log_audience
00795 {
00796 const string OPERATOR = "Operator";
00797 const string DEVELOPER = "Developer";
00798 const string SYSADMIN = "Sysadmin";
00799 const string DBA = "DBA";
00800 const string NO_AUDIENCE = "";
00801 const string SCILOG = "SciLog";
00802 };
00803
00804
00805
00806
00812 module acscommon
00813 {
00814
00815
00816 typedef unsigned long long TimeStamp;
00817
00818
00822 const string LOG_FACTORY_NAME = "LogFactory";
00823
00828 const string NOTIFICATION_FACTORY_NAME = "NotifyEventChannelFactory";
00829
00834 const string LOGGING_NOTIFICATION_FACTORY_NAME = "LoggingNotifyEventChannelFactory";
00835
00840 const string ARCHIVE_NOTIFICATION_FACTORY_NAME = "ArchiveNotifyEventChannelFactory";
00841
00846 const string ALARM_NOTIFICATION_FACTORY_NAME = "AlarmNotifyEventChannelFactory";
00847
00852 const string NAMING_SERVICE_NAME = "NameService";
00853
00854
00860 const string ALMADOMAIN = "ALMA";
00861
00866 const string ARCHIVING_DOMAIN = "Archiving";
00867
00872 const string LOGGING_DOMAIN = "Logging";
00873
00878 const string ARCHIVING_CHANNEL_NAME = "ArchivingChannel";
00879
00884 const string ARCHIVING_CHANNEL_KIND = "";
00885
00890 const string LOGGING_CHANNEL_NAME = "LoggingChannelBin";
00891
00895 const string LOGGING_CHANNEL_XML_NAME = "LoggingChannel";
00900 const string LOGGING_CHANNEL_KIND = "";
00901
00907 const string DEFAULTDATANAME = "almaData";
00908
00914 const string NC_KIND = "channels";
00915
00919 const string LOGGING_TYPE = "";
00920 };
00921
00922 #endif