org.glite.lb
public abstract class Context extends Object
Constructor Summary | |
---|---|
Context()
Creates new instance of Context class. | |
Context(Sources src, int flag, String host, String user, String prog, String srcInstance, Jobid jobid)
Creates new instance of Context class.
|
Method Summary | |
---|---|
protected String | createMessage(Event event)
Creates message prepared to send |
int | getFlag()
Return flag
|
String | getHost()
Returns host name
|
Jobid | getJobid()
Gets jobid.
|
String | getProg()
Gets prog. |
SeqCode | getSeqCode()
Gets sequence code.
|
Sources | getSource()
Gets source which represents which part of sequence code will be changed |
String | getSrcInstance()
Gets srcInstance. |
String | getUser()
Gets user name. |
abstract void | log(Event event)
Abstract method which will serve as method for sending messages with events. |
void | setFlag(int flag)
Set flag
|
void | setHost(String host)
Sets host name |
void | setJobid(Jobid jobid)
Sets jobid.
|
void | setProg(String prog)
Sets prog, if prog is null then is set default value "edg-wms" |
void | setSeqCode(SeqCode seqCode)
Sets sequence code. |
void | setSource(Sources src)
Sets source which represents which part of sequence code will be changed |
void | setSrcInstance(String srcInstance)
Sets srcInstace, if srcInstace null then is set "". |
void | setUser(String user)
Sets user name. |
Parameters: id message id, if null, random number is generated source one if paramaters of Sources enumeration flag host host name, if null or "", the name is get from host name of this computer user user name prog if null then is used "egd-wms" srcInstance if null then it is set as "" jobid
Throws: java.lang.IllegalArgumentException if user or jobid is null or flag < 0 or source <=0 || >= 9
Parameters: event event for which is message generated
Returns: output String with message
Throws: IllegalArgumentException if event, source, user or job is null or flag < 0
Returns: flag
Returns: host name
Returns: jobid
Returns: prog
Returns: sequence code
Returns: source
Returns: srcInstance
Returns: user name
Parameters: event event for which will be created and send message
Parameters: flag
Throws: java.lang.IllegalArgumentException if flag is lower than 0
Parameters: host host name
Throws: java.lang.IllegalArgumentException if host is null
Parameters: jobid
Throws: java.lang.IllegalArgumentException if jobid is null
Parameters: prog
Parameters: seqCode sequence code
Throws: java.lang.IllegalArgumentException if seqCode is null
Parameters: source source
Throws: java.lang.IllegalArgumentException if source is null
Parameters: srcInstance srcInstance
Parameters: user user name
Throws: java.lang.IllegalArgumentException if user is null