Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

VjGUI
Class NetControl  view NetControl download NetControl.java

java.lang.Object
  extended byVjGUI.NetControl
All Implemented Interfaces:
VjConfig.ChunkDBListener, java.util.EventListener, java.lang.Runnable

public class NetControl
extends java.lang.Object
implements java.lang.Runnable, VjConfig.ChunkDBListener


Field Summary
private  boolean connected
           
private  VjConfig.ConfigStreamTokenizer instream
           
private  java.util.Vector netcontrol_targets
           
private  java.io.DataOutputStream out
           
private  int port
           
private  java.lang.String remote_name
           
private  java.net.Socket sock
           
private  java.lang.Thread thread
           
 
Constructor Summary
NetControl()
           
 
Method Summary
 void addChunk(VjConfig.ChunkDBEvent e)
          ChunkDBListener Stuff
 void addNetControlListener(NetControlListener l)
          NetControl Target Stuff
 boolean connect()
           
 boolean disconnect()
           
 boolean getChunkDescs()
           
 boolean getChunks()
           
 java.lang.String getHost()
           
 int getPort()
           
 boolean isConnected()
           
protected  void notifyNetControlTargets(NetControlEvent e)
           
 boolean read()
           
protected  void reconfigure(VjConfig.ConfigChunk ch)
           
 void removeAllChunks(VjConfig.ChunkDBEvent e)
           
 void removeChunk(VjConfig.ChunkDBEvent e)
           
 boolean removeChunk(VjConfig.ConfigChunk ch)
           
 boolean removeChunkDescs(java.lang.String s)
           
 boolean removeChunks(VjConfig.ConfigChunkDB db)
           
 void removeNetControlListener(NetControlListener l)
           
 void replaceChunk(VjConfig.ChunkDBEvent e)
           
 void run()
          This method will be called by whoever wishes to run your class implementing Runnable.
 boolean sendChunk(VjConfig.ConfigChunk ch)
           
 boolean sendChunkDesc(VjConfig.ChunkDesc d)
           
 boolean sendChunks(VjConfig.ConfigChunkDB db)
           
 void setRemoteHost(java.lang.String _remote_host, int _port)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

remote_name

private java.lang.String remote_name

sock

private java.net.Socket sock

instream

private VjConfig.ConfigStreamTokenizer instream

out

private java.io.DataOutputStream out

port

private int port

connected

private boolean connected

thread

private java.lang.Thread thread

netcontrol_targets

private java.util.Vector netcontrol_targets
Constructor Detail

NetControl

public NetControl()
Method Detail

getHost

public java.lang.String getHost()

getPort

public int getPort()

run

public void run()
Description copied from interface: java.lang.Runnable
This method will be called by whoever wishes to run your class implementing Runnable. Note that there are no restrictions on what you are allowed to do in the run method, except that you cannot throw a checked exception.

Specified by:
run in interface java.lang.Runnable

setRemoteHost

public void setRemoteHost(java.lang.String _remote_host,
                          int _port)

connect

public boolean connect()

disconnect

public boolean disconnect()

reconfigure

protected void reconfigure(VjConfig.ConfigChunk ch)

getChunks

public boolean getChunks()

sendChunk

public boolean sendChunk(VjConfig.ConfigChunk ch)

sendChunks

public boolean sendChunks(VjConfig.ConfigChunkDB db)

removeChunks

public boolean removeChunks(VjConfig.ConfigChunkDB db)

removeChunk

public boolean removeChunk(VjConfig.ConfigChunk ch)

isConnected

public boolean isConnected()

getChunkDescs

public boolean getChunkDescs()

sendChunkDesc

public boolean sendChunkDesc(VjConfig.ChunkDesc d)

removeChunkDescs

public boolean removeChunkDescs(java.lang.String s)

read

public boolean read()

addNetControlListener

public void addNetControlListener(NetControlListener l)
NetControl Target Stuff


removeNetControlListener

public void removeNetControlListener(NetControlListener l)

notifyNetControlTargets

protected void notifyNetControlTargets(NetControlEvent e)

addChunk

public void addChunk(VjConfig.ChunkDBEvent e)
ChunkDBListener Stuff

Specified by:
addChunk in interface VjConfig.ChunkDBListener

removeChunk

public void removeChunk(VjConfig.ChunkDBEvent e)
Specified by:
removeChunk in interface VjConfig.ChunkDBListener

replaceChunk

public void replaceChunk(VjConfig.ChunkDBEvent e)
Specified by:
replaceChunk in interface VjConfig.ChunkDBListener

removeAllChunks

public void removeAllChunks(VjConfig.ChunkDBEvent e)
Specified by:
removeAllChunks in interface VjConfig.ChunkDBListener