|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--Client
This class implements Client that searches for Registries Metadata and displays that in the Registry Browser for Publishing/Querying registry
| Constructor Summary | |
Client()
|
|
| Method Summary | |
void |
createInputPipe(java.lang.String fileName)
Load the Pipe Advertisement. |
byte[] |
createMessage(java.lang.String msgStr,
int messageType)
Creates the message as bytes to be sent to other peer |
static void |
main(java.lang.String[] args)
|
void |
pipeMsgEvent(net.jxta.pipe.PipeMsgEvent event)
Handles an incoming message. |
void |
sendDomainOntoRequest(java.lang.String pipeAdv)
Sends Message in the pipe |
void |
startClient()
Starts Client Peer that searches for Registries Metadata and gets the ontology to display that in the Registry browser |
void |
startJxta()
Starts JXTA Peer by instantiating netpeer group and its pipe, Discovery services |
void |
stringToFile(java.lang.String par_str,
java.lang.String fileName)
Converts a String to a File. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Client()
| Method Detail |
public static void main(java.lang.String[] args)
public void startJxta()
public void startClient()
public void pipeMsgEvent(net.jxta.pipe.PipeMsgEvent event)
pipeMsgEvent in interface net.jxta.pipe.PipeMsgListenerevent - the incoming event containing the arriving message.
public void stringToFile(java.lang.String par_str,
java.lang.String fileName)
par_str - String that is to be converted to a filefileName - Name of the file that is to be created from the string
public void createInputPipe(java.lang.String fileName)
throws java.io.FileNotFoundException,
java.io.IOException
fileName - the name of the file from which to load
the Pipe Advertisement.
FileNoteFoundException - if the Pipe Advertisement
file can't be found.
java.io.IOException - if there is an error binding the pipe.
java.io.FileNotFoundExceptionpublic void sendDomainOntoRequest(java.lang.String pipeAdv)
pipeAdv - the pipe advertisement of domain ontology server
public byte[] createMessage(java.lang.String msgStr,
int messageType)
msgStr - String Message that is to be sent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||