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

Variable Index

 o 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.
 o counterTag
The MMP variable describing a packet counter of a MMP connection.
 o defaultPort
The well known port used by this protocol.
 o defaultProtocol
The default underlying network protocol used by this protocol.
 o defaultResource
The default Resource used if there is no in UNAs.
 o defaultScheme
The default scheme used in UNAs (Uniform Network Locators) by this protocol.
 o initializeTag
The MMP variable describing a variable state reset of a MMP connection.
 o lengthTag
The MMP variable describing the length of a body of a MMP packet.
 o manager
The MMPPacketManager.
 o maxConnections
The maximum number of open connections.
 o maxVariables
The maximum number of permanent variables per connection.
 o ProtocolMajorVersion
The major version number of the protocol implemented here.
 o ProtocolMinorVersion
The minor version number of the protocol implemented here.
 o ProtocolName
The official name of the protocol implemented here.
 o protocols
All known underlying network protocols used by this protocol.
 o sourceTag
The MMP variable describing the source of a MMP packet.
 o targetTag
The MMP variable describing the target of a MMP packet.

Constructor Index

 o MMPMessageCenter(MMPPacketManager)
 o MMPMessageCenter(MMPPacketManager, boolean)
 o MMPMessageCenter(MMPPacketManager, UNA[])

Method Index

 o addAlias(String, String)
 o addDispatcher(String, MMPDispatcher)
 o addGreetingVariable(String, VariableModifier)
Adds a Variable only to every outgoing greeting Packet for the specified protocol.
 o addGreetingVariable(UNA, VariableModifier)
Adds a Variable only to every outgoing greeting Packet for the specified UNA.
 o addGreetingVariable(VariableModifier)
Adds a Variable to every outgoing greeting Packet.
 o answerCounterWithCounter(boolean)
 o assignVariable(UNA, String, Value)
 o assignVariable(UNA, UNA, String, Value)
 o augmentVariable(UNA, String, Value)
 o augmentVariable(UNA, UNA, String, Value)
 o broadcast(MMPPacket)
 o broadcast(UNA, MMPPacket)
 o close()
 o close(UNA)
 o close(UNA, UNA)
 o diminishVariable(UNA, String, Value)
 o diminishVariable(UNA, UNA, String, Value)
 o getAllRemotes()
 o getAllRemotes(UNA)
 o getDispatcher(UNA)
 o getListenLocations()
 o getLocal(UNA)
 o getLocalHost()
 o getValue(UNA, String)
 o getValue(UNA, UNA, String)
 o getVars(UNA)
 o getVars(UNA, UNA)
 o listen(UNA)
 o removeAlias(String)
 o removeDispatcher(String)
 o removeListenLocation(UNA)
 o removeValue(UNA, String)
 o removeValue(UNA, UNA, String)
 o send(UNA, MMPPacket)
 o send(UNA, UNA, MMPPacket)
 o sendGreeting(UNA, UNA)
 o setDefaults()
 o setManager(MMPPacketManager)
 o 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.
 o setSchemeProxy(String, UNA)
 o usingProtocols()

Variables

 o ProtocolName
 public static final String ProtocolName
The official name of the protocol implemented here.

 o ProtocolMajorVersion
 public static final int ProtocolMajorVersion
The major version number of the protocol implemented here.

 o ProtocolMinorVersion
 public static final int ProtocolMinorVersion
The minor version number of the protocol implemented here.

 o defaultScheme
 public static final String defaultScheme
The default scheme used in UNAs (Uniform Network Locators) by this protocol.

 o defaultPort
 public static final int defaultPort
The well known port used by this protocol.

 o defaultProtocol
 public static final String defaultProtocol
The default underlying network protocol used by this protocol.

 o protocols
 public static final String protocols[]
All known underlying network protocols used by this protocol.

 o defaultResource
 public static final String defaultResource
The default Resource used if there is no in UNAs.

 o 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.

 o 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.

 o 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.

 o lengthTag
 public static final String lengthTag
The MMP variable describing the length of a body of a MMP packet.

 o sourceTag
 public static final String sourceTag
The MMP variable describing the source of a MMP packet.

 o targetTag
 public static final String targetTag
The MMP variable describing the target of a MMP packet.

 o initializeTag
 public static final String initializeTag
The MMP variable describing a variable state reset of a MMP connection.

 o counterTag
 public static final String counterTag
The MMP variable describing a packet counter of a MMP connection.

 o manager
 public MMPPacketManager manager
The MMPPacketManager. To this instance every information about received packets, errors and so on is sent.

Constructors

 o MMPMessageCenter
 public MMPMessageCenter(MMPPacketManager manager)
 o MMPMessageCenter
 public MMPMessageCenter(MMPPacketManager manager,
                         boolean listen)
 o MMPMessageCenter
 public MMPMessageCenter(MMPPacketManager manager,
                         UNA listenLocations[])

Methods

 o getLocalHost
 public static String getLocalHost()
 o setDefaults
 public static void setDefaults()
 o addDispatcher
 public MMPDispatcher addDispatcher(String protocol,
                                    MMPDispatcher dispatcher)
 o getDispatcher
 public MMPDispatcher getDispatcher(UNA remote)
 o removeDispatcher
 public MMPDispatcher removeDispatcher(String protocol)
 o usingProtocols
 public Value usingProtocols()
Overrides:
usingProtocols in class MMPCenter
 o listen
 public void listen(UNA listenLocation) throws IOException
 o removeListenLocation
 public void removeListenLocation(UNA listenLocation)
 o getListenLocations
 public UNA[] getListenLocations()
Overrides:
getListenLocations in class MMPCenter
 o setManager
 public void setManager(MMPPacketManager manager)
Overrides:
setManager in class MMPCenter
 o setSchemeProxy
 public void setSchemeProxy(String scheme,
                            UNA proxy)
 o 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.

 o answerCounterWithCounter
 public void answerCounterWithCounter(boolean counter)
 o addAlias
 public void addAlias(String alias,
                      String longVar)
 o removeAlias
 public String removeAlias(String alias)
 o getVars
 public String[] getVars(UNA remote)
Overrides:
getVars in class MMPCenter
 o getVars
 public String[] getVars(UNA remote,
                         UNA local)
Overrides:
getVars in class MMPCenter
 o getValue
 public Value getValue(UNA remote,
                       String name)
Overrides:
getValue in class MMPCenter
 o getValue
 public Value getValue(UNA remote,
                       UNA local,
                       String name)
Overrides:
getValue in class MMPCenter
 o removeValue
 public Value removeValue(UNA remote,
                          String name)
Overrides:
removeValue in class MMPCenter
 o removeValue
 public Value removeValue(UNA remote,
                          UNA local,
                          String name)
Overrides:
removeValue in class MMPCenter
 o close
 public void close()
Overrides:
close in class MMPCenter
 o close
 public void close(UNA remote)
Overrides:
close in class MMPCenter
 o close
 protected void close(UNA remote,
                      UNA local)
Overrides:
close in class MMPCenter
 o addGreetingVariable
 public void addGreetingVariable(VariableModifier modifier)
Adds a Variable to every outgoing greeting Packet.

 o 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.

 o addGreetingVariable
 public void addGreetingVariable(UNA remote,
                                 VariableModifier modifier)
Adds a Variable only to every outgoing greeting Packet for the specified UNA.

 o sendGreeting
 public void sendGreeting(UNA remote,
                          UNA local)
 o getLocal
 public UNA getLocal(UNA remote)
Overrides:
getLocal in class MMPCenter
 o assignVariable
 public void assignVariable(UNA remote,
                            String name,
                            Value value)
Overrides:
assignVariable in class MMPCenter
 o assignVariable
 public void assignVariable(UNA remote,
                            UNA local,
                            String name,
                            Value value)
Overrides:
assignVariable in class MMPCenter
 o augmentVariable
 public void augmentVariable(UNA remote,
                             String name,
                             Value value)
Overrides:
augmentVariable in class MMPCenter
 o augmentVariable
 public void augmentVariable(UNA remote,
                             UNA local,
                             String name,
                             Value value)
Overrides:
augmentVariable in class MMPCenter
 o diminishVariable
 public void diminishVariable(UNA remote,
                              String name,
                              Value value)
Overrides:
diminishVariable in class MMPCenter
 o diminishVariable
 public void diminishVariable(UNA remote,
                              UNA local,
                              String name,
                              Value value)
Overrides:
diminishVariable in class MMPCenter
 o send
 public void send(UNA remote,
                  MMPPacket packet)
Overrides:
send in class MMPCenter
 o send
 public void send(UNA remote,
                  UNA local,
                  MMPPacket packet)
Overrides:
send in class MMPCenter
 o getAllRemotes
 public Enumeration getAllRemotes()
Overrides:
getAllRemotes in class MMPCenter
 o getAllRemotes
 public Enumeration getAllRemotes(UNA local)
Overrides:
getAllRemotes in class MMPCenter
 o broadcast
 public void broadcast(MMPPacket packet)
Overrides:
broadcast in class MMPCenter
 o broadcast
 public void broadcast(UNA local,
                       MMPPacket packet)
Overrides:
broadcast in class MMPCenter

All Packages  Class Hierarchy  This Package  Previous  Next  Index