All Packages  Class Hierarchy  This Package  Previous  Next  Index
  Class lava.net.mmp.MMPMessageCenter
java.lang.Object
   |
   +----lava.net.mmp.MMPCenter
           |
           +----lava.net.mmp.MMPMessageCenter
  -  public class MMPMessageCenter
  -  extends MMPCenter
   
  -   closeOnMaxConnections closeOnMaxConnections
-   Do we close peers overriding the maxConnections limit?
 Note: Such overriding CAN be but MUST NOT be a
 denial of service attack!
 Note: This should be more intelligent in further versions.
  
-   counterTag counterTag
-   The MMP variable describing a packet counter of a MMP connection.
  
-   defaultPort defaultPort
-   The well known port used by this protocol.
  
-   defaultProtocol defaultProtocol
-   The default underlying network protocol used by this protocol.
  
-   defaultResource defaultResource
-   The default Resource used if there is no in UNAs.
  
-   defaultScheme defaultScheme
-   The default scheme used in UNAs (Uniform Network Locators) by this
 protocol.
  
-   initializeTag initializeTag
-   The MMP variable describing a variable state reset of a MMP connection.
  
-   lengthTag lengthTag
-   The MMP variable describing the length of a body of a MMP packet.
  
-   manager manager
-   The MMPPacketManager.
  
-   maxConnections maxConnections
-   The maximum number of open connections.
  
-   maxVariables maxVariables
-   The maximum number of permanent variables per connection.
  
-   ProtocolMajorVersion ProtocolMajorVersion
-   The major version number of the protocol implemented here.
  
-   ProtocolMinorVersion ProtocolMinorVersion
-   The minor version number of the protocol implemented here.
  
-   ProtocolName ProtocolName
-   The official name of the protocol implemented here.
  
-   protocols protocols
-   All known underlying network protocols used by this protocol.
  
-   sourceTag sourceTag
-   The MMP variable describing the source of a MMP packet.
  
-   targetTag targetTag
-   The MMP variable describing the target of a MMP packet.
   
  -   MMPMessageCenter(MMPPacketManager) MMPMessageCenter(MMPPacketManager)
-  
  
-   MMPMessageCenter(MMPPacketManager, boolean) MMPMessageCenter(MMPPacketManager, boolean)
-  
  
-   MMPMessageCenter(MMPPacketManager, UNA[]) MMPMessageCenter(MMPPacketManager, UNA[])
-  
   
  -   addAlias(String, String) addAlias(String, String)
-  
  
-   addDispatcher(String, MMPDispatcher) addDispatcher(String, MMPDispatcher)
-  
  
-   addGreetingVariable(String, VariableModifier) addGreetingVariable(String, VariableModifier)
-   Adds a Variable only to every outgoing greeting Packet for
 the specified protocol.
  
-   addGreetingVariable(UNA, VariableModifier) addGreetingVariable(UNA, VariableModifier)
-   Adds a Variable only to every outgoing greeting Packet for
 the specified UNA.
  
-   addGreetingVariable(VariableModifier) addGreetingVariable(VariableModifier)
-   Adds a Variable to every outgoing greeting Packet.
  
-   answerCounterWithCounter(boolean) answerCounterWithCounter(boolean)
-  
  
-   assignVariable(UNA, String, Value) assignVariable(UNA, String, Value)
-  
  
-   assignVariable(UNA, UNA, String, Value) assignVariable(UNA, UNA, String, Value)
-  
  
-   augmentVariable(UNA, String, Value) augmentVariable(UNA, String, Value)
-  
  
-   augmentVariable(UNA, UNA, String, Value) augmentVariable(UNA, UNA, String, Value)
-  
  
-   broadcast(MMPPacket) broadcast(MMPPacket)
-  
  
-   broadcast(UNA, MMPPacket) broadcast(UNA, MMPPacket)
-  
  
-   close() close()
-  
  
-   close(UNA) close(UNA)
-  
  
-   close(UNA, UNA) close(UNA, UNA)
-  
  
-   diminishVariable(UNA, String, Value) diminishVariable(UNA, String, Value)
-  
  
-   diminishVariable(UNA, UNA, String, Value) diminishVariable(UNA, UNA, String, Value)
-  
  
-   getAllRemotes() getAllRemotes()
-  
  
-   getAllRemotes(UNA) getAllRemotes(UNA)
-  
  
-   getDispatcher(UNA) getDispatcher(UNA)
-  
  
-   getListenLocations() getListenLocations()
-  
  
-   getLocal(UNA) getLocal(UNA)
-  
  
-   getLocalHost() getLocalHost()
-  
  
-   getValue(UNA, String) getValue(UNA, String)
-  
  
-   getValue(UNA, UNA, String) getValue(UNA, UNA, String)
-  
  
-   getVars(UNA) getVars(UNA)
-  
  
-   getVars(UNA, UNA) getVars(UNA, UNA)
-  
  
-   listen(UNA) listen(UNA)
-  
  
-   removeAlias(String) removeAlias(String)
-  
  
-   removeDispatcher(String) removeDispatcher(String)
-  
  
-   removeListenLocation(UNA) removeListenLocation(UNA)
-  
  
-   removeValue(UNA, String) removeValue(UNA, String)
-  
  
-   removeValue(UNA, UNA, String) removeValue(UNA, UNA, String)
-  
  
-   send(UNA, MMPPacket) send(UNA, MMPPacket)
-  
  
-   send(UNA, UNA, MMPPacket) send(UNA, UNA, MMPPacket)
-  
  
-   sendGreeting(UNA, UNA) sendGreeting(UNA, UNA)
-  
  
-   setDefaults() setDefaults()
-  
  
-   setManager(MMPPacketManager) setManager(MMPPacketManager)
-  
  
-   setProxy(String, UNA) setProxy(String, UNA)
-   Sets or - if proxy is null - removes a proxy for a specific
 protocol or - if protocol is null - for every packet at all.
  
-   setSchemeProxy(String, UNA) setSchemeProxy(String, UNA)
-  
  
-   usingProtocols() usingProtocols()
-  
   
 ProtocolName
ProtocolName
 public static final String ProtocolName
  -  The official name of the protocol implemented here.
 
 ProtocolMajorVersion
ProtocolMajorVersion
 public static final int ProtocolMajorVersion
  -  The major version number of the protocol implemented here.
 
 ProtocolMinorVersion
ProtocolMinorVersion
 public static final int ProtocolMinorVersion
  -  The minor version number of the protocol implemented here.
 
 defaultScheme
defaultScheme
 public static final String defaultScheme
  -  The default scheme used in UNAs (Uniform Network Locators) by this
 protocol.
 
 defaultPort
defaultPort
 public static final int defaultPort
  -  The well known port used by this protocol.
 
 defaultProtocol
defaultProtocol
 public static final String defaultProtocol
  -  The default underlying network protocol used by this protocol.
 
 protocols
protocols
 public static final String protocols[]
  -  All known underlying network protocols used by this protocol.
 
 defaultResource
defaultResource
 public static final String defaultResource
  -  The default Resource used if there is no in UNAs.
 
 maxVariables
maxVariables
 public static int maxVariables
  -  The maximum number of permanent variables per connection.
 This is to prevent denial of service.
 Numbers smaller than 1 are considered infinite.
 
 maxConnections
maxConnections
 public static int maxConnections
  -  The maximum number of open connections.
 This is to prevent denial of service.
 Numbers smaller than 1 are considered infinite.
 
 closeOnMaxConnections
closeOnMaxConnections
 public static boolean closeOnMaxConnections
  -  Do we close peers overriding the maxConnections limit?
 Note: Such overriding CAN be but MUST NOT be a
 denial of service attack!
 Note: This should be more intelligent in further versions.
 
 lengthTag
lengthTag
 public static final String lengthTag
  -  The MMP variable describing the length of a body of a MMP packet.
 
 sourceTag
sourceTag
 public static final String sourceTag
  -  The MMP variable describing the source of a MMP packet.
 
 targetTag
targetTag
 public static final String targetTag
  -  The MMP variable describing the target of a MMP packet.
 
 initializeTag
initializeTag
 public static final String initializeTag
  -  The MMP variable describing a variable state reset of a MMP connection.
 
 counterTag
counterTag
 public static final String counterTag
  -  The MMP variable describing a packet counter of a MMP connection.
 
 manager
manager
 public MMPPacketManager manager
  -  The MMPPacketManager. To this instance every information about
 received packets, errors and so on is sent.
 
   
 MMPMessageCenter
MMPMessageCenter
 public MMPMessageCenter(MMPPacketManager manager)
 MMPMessageCenter
MMPMessageCenter
 public MMPMessageCenter(MMPPacketManager manager,
                         boolean listen)
 MMPMessageCenter
MMPMessageCenter
 public MMPMessageCenter(MMPPacketManager manager,
                         UNA listenLocations[])
   
 getLocalHost
getLocalHost
 public static String getLocalHost()
 setDefaults
setDefaults
 public static void setDefaults()
 addDispatcher
addDispatcher
 public MMPDispatcher addDispatcher(String protocol,
                                    MMPDispatcher dispatcher)
 getDispatcher
getDispatcher
 public MMPDispatcher getDispatcher(UNA remote)
 removeDispatcher
removeDispatcher
 public MMPDispatcher removeDispatcher(String protocol)
 usingProtocols
usingProtocols
 public Value usingProtocols()
  - 
    -  Overrides:
    
-  usingProtocols in class MMPCenter
  
 
 listen
listen
 public void listen(UNA listenLocation) throws IOException
 removeListenLocation
removeListenLocation
 public void removeListenLocation(UNA listenLocation)
 getListenLocations
getListenLocations
 public UNA[] getListenLocations()
  - 
    -  Overrides:
    
-  getListenLocations in class MMPCenter
  
 
 setManager
setManager
 public void setManager(MMPPacketManager manager)
  - 
    -  Overrides:
    
-  setManager in class MMPCenter
  
 
 setSchemeProxy
setSchemeProxy
 public void setSchemeProxy(String scheme,
                            UNA proxy)
 setProxy
setProxy
 public void setProxy(String protocol,
                      UNA proxy)
  -  Sets or - if proxy is null - removes a proxy for a specific
 protocol or - if protocol is null - for every packet at all.
 Default: no proxies at all.
 
 answerCounterWithCounter
answerCounterWithCounter
 public void answerCounterWithCounter(boolean counter)
 addAlias
addAlias
 public void addAlias(String alias,
                      String longVar)
 removeAlias
removeAlias
 public String removeAlias(String alias)
 getVars
getVars
 public String[] getVars(UNA remote)
  - 
    -  Overrides:
    
-  getVars in class MMPCenter
  
 
 getVars
getVars
 public String[] getVars(UNA remote,
                         UNA local)
  - 
    -  Overrides:
    
-  getVars in class MMPCenter
  
 
 getValue
getValue
 public Value getValue(UNA remote,
                       String name)
  - 
    -  Overrides:
    
-  getValue in class MMPCenter
  
 
 getValue
getValue
 public Value getValue(UNA remote,
                       UNA local,
                       String name)
  - 
    -  Overrides:
    
-  getValue in class MMPCenter
  
 
 removeValue
removeValue
 public Value removeValue(UNA remote,
                          String name)
  - 
    -  Overrides:
    
-  removeValue in class MMPCenter
  
 
 removeValue
removeValue
 public Value removeValue(UNA remote,
                          UNA local,
                          String name)
  - 
    -  Overrides:
    
-  removeValue in class MMPCenter
  
 
 close
close
 public void close()
  - 
    -  Overrides:
    
-  close in class MMPCenter
  
 
 close
close
 public void close(UNA remote)
  - 
    -  Overrides:
    
-  close in class MMPCenter
  
 
 close
close
 protected void close(UNA remote,
                      UNA local)
  - 
    -  Overrides:
    
-  close in class MMPCenter
  
 
 addGreetingVariable
addGreetingVariable
 public void addGreetingVariable(VariableModifier modifier)
  -  Adds a Variable to every outgoing greeting Packet.
 
 addGreetingVariable
addGreetingVariable
 public void addGreetingVariable(String protocol,
                                 VariableModifier modifier)
  -  Adds a Variable only to every outgoing greeting Packet for
 the specified protocol.
 A protocol value of null means default protocol.
 
 addGreetingVariable
addGreetingVariable
 public void addGreetingVariable(UNA remote,
                                 VariableModifier modifier)
  -  Adds a Variable only to every outgoing greeting Packet for
 the specified UNA.
 
 sendGreeting
sendGreeting
 public void sendGreeting(UNA remote,
                          UNA local)
 getLocal
getLocal
 public UNA getLocal(UNA remote)
  - 
    -  Overrides:
    
-  getLocal in class MMPCenter
  
 
 assignVariable
assignVariable
 public void assignVariable(UNA remote,
                            String name,
                            Value value)
  - 
    -  Overrides:
    
-  assignVariable in class MMPCenter
  
 
 assignVariable
assignVariable
 public void assignVariable(UNA remote,
                            UNA local,
                            String name,
                            Value value)
  - 
    -  Overrides:
    
-  assignVariable in class MMPCenter
  
 
 augmentVariable
augmentVariable
 public void augmentVariable(UNA remote,
                             String name,
                             Value value)
  - 
    -  Overrides:
    
-  augmentVariable in class MMPCenter
  
 
 augmentVariable
augmentVariable
 public void augmentVariable(UNA remote,
                             UNA local,
                             String name,
                             Value value)
  - 
    -  Overrides:
    
-  augmentVariable in class MMPCenter
  
 
 diminishVariable
diminishVariable
 public void diminishVariable(UNA remote,
                              String name,
                              Value value)
  - 
    -  Overrides:
    
-  diminishVariable in class MMPCenter
  
 
 diminishVariable
diminishVariable
 public void diminishVariable(UNA remote,
                              UNA local,
                              String name,
                              Value value)
  - 
    -  Overrides:
    
-  diminishVariable in class MMPCenter
  
 
 send
send
 public void send(UNA remote,
                  MMPPacket packet)
  - 
    -  Overrides:
    
-  send in class MMPCenter
  
 
 send
send
 public void send(UNA remote,
                  UNA local,
                  MMPPacket packet)
  - 
    -  Overrides:
    
-  send in class MMPCenter
  
 
 getAllRemotes
getAllRemotes
 public Enumeration getAllRemotes()
  - 
    -  Overrides:
    
-  getAllRemotes in class MMPCenter
  
 
 getAllRemotes
getAllRemotes
 public Enumeration getAllRemotes(UNA local)
  - 
    -  Overrides:
    
-  getAllRemotes in class MMPCenter
  
 
 broadcast
broadcast
 public void broadcast(MMPPacket packet)
  - 
    -  Overrides:
    
-  broadcast in class MMPCenter
  
 
 broadcast
broadcast
 public void broadcast(UNA local,
                       MMPPacket packet)
  - 
    -  Overrides:
    
-  broadcast in class MMPCenter
  
 
All Packages  Class Hierarchy  This Package  Previous  Next  Index