equip.net
Class SimpleTCPMoniker

java.lang.Object
  extended byequip.runtime.Object
      extended byequip.runtime.ValueBase
          extended byequip.net.Moniker
              extended byequip.net.SimpleMoniker
                  extended byequip.net.SimpleTCPMoniker
All Implemented Interfaces:
java.lang.Cloneable
Direct Known Subclasses:
SimpleTCPMonikerImpl

public abstract class SimpleTCPMoniker
extends SimpleMoniker

Moniker for a standard TCP service {IDL'd in eqNetTypes.idl)


Field Summary
 int addr
          IPv4 service host IP address
 int encoding
          communication used by the service (Encoding)
 short port
          TCP port for service
 ValueBase token
          optional token object to send as first thing
 
Constructor Summary
SimpleTCPMoniker()
          Default no-arg constructor
 
Method Summary
 boolean _equals_helper(SimpleTCPMoniker c)
          Internal IDL-generated equality test helper
 boolean _matches_helper(SimpleTCPMoniker c)
          Internal IDL-generated match test helper
 boolean equals(java.lang.Object c)
          Standard IDL-generated equality test.
 java.lang.String getModuleName()
          IDL-generated helper routine to get module name (currently unimplemented).
abstract  void initFromAddr(int addr, short port)
          initialisation helper
abstract  void initFromHost(java.lang.String host, short port)
          initialisation helper
abstract  void initFromPort(short port)
          initialisation helper
 boolean matches(java.lang.Object c)
          Standard IDL-generated template match test.
 void readObject(ObjectInputStream in)
          Internal IDL-generated serialisation helper.
 void writeObject(ObjectOutputStream out)
          Internal IDL-generated serialisation helper.
 
Methods inherited from class equip.net.SimpleMoniker
_equals_helper, _matches_helper
 
Methods inherited from class equip.net.Moniker
_equals_helper, _matches_helper, resolve
 
Methods inherited from class equip.runtime.ValueBase
_equals_helper, _matches_helper, clone
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

encoding

public int encoding
communication used by the service (Encoding)


addr

public int addr
IPv4 service host IP address


port

public short port
TCP port for service


token

public ValueBase token
optional token object to send as first thing

Constructor Detail

SimpleTCPMoniker

public SimpleTCPMoniker()
Default no-arg constructor

Method Detail

initFromPort

public abstract void initFromPort(short port)
initialisation helper


initFromHost

public abstract void initFromHost(java.lang.String host,
                                  short port)
initialisation helper


initFromAddr

public abstract void initFromAddr(int addr,
                                  short port)
initialisation helper


getModuleName

public java.lang.String getModuleName()
IDL-generated helper routine to get module name (currently unimplemented).

Overrides:
getModuleName in class SimpleMoniker
Returns:
name of this class's module

equals

public boolean equals(java.lang.Object c)
Standard IDL-generated equality test.

Overrides:
equals in class SimpleMoniker
Parameters:
c - The object to be compared against this.
Returns:
true if this is equal to c

_equals_helper

public boolean _equals_helper(SimpleTCPMoniker c)
Internal IDL-generated equality test helper


matches

public boolean matches(java.lang.Object c)
Standard IDL-generated template match test.

Overrides:
matches in class SimpleMoniker
Parameters:
c - The object to be checked against this template.
Returns:
true if this (as a template) matches the argument

_matches_helper

public boolean _matches_helper(SimpleTCPMoniker c)
Internal IDL-generated match test helper


writeObject

public void writeObject(ObjectOutputStream out)
                 throws java.io.IOException
Internal IDL-generated serialisation helper. Used by ObjectInputStream and ObjectOutputStream only.

Overrides:
writeObject in class SimpleMoniker
Throws:
java.io.IOException

readObject

public void readObject(ObjectInputStream in)
                throws java.io.IOException,
                       java.lang.ClassNotFoundException,
                       java.lang.InstantiationException
Internal IDL-generated serialisation helper. Used by ObjectInputStream and ObjectOutputStream only.

Overrides:
readObject in class SimpleMoniker
Throws:
java.io.IOException
java.lang.ClassNotFoundException
java.lang.InstantiationException