orca.cod.plugins
Class NetworkConfiguration

java.lang.Object
  extended by orca.cod.plugins.NetworkConfiguration
All Implemented Interfaces:
IInitialize, ISerialize

public class NetworkConfiguration
extends java.lang.Object
implements IInitialize, ISerialize


Field Summary
static java.lang.String DefaultNic
           
protected  java.lang.String gateway
           
protected  int minNode
           
protected  java.lang.String nic
           
protected  SubnetBlock privateBlock
           
static java.lang.String PropertyBase
           
static java.lang.String PropertyGateway
           
static java.lang.String PropertyMask
           
static java.lang.String PropertyMin
           
static java.lang.String PropertyNic
           
static java.lang.String PropertyPublicIPSpace
           
static java.lang.String PropertySubnetMask
           
protected  IPList publicIPSpace
           
 
Constructor Summary
NetworkConfiguration()
           
 
Method Summary
 void configure(AuthorityCodSlice slice)
           
 void configure(java.util.Properties p)
           
 void configure(java.lang.String base, java.lang.String mask, java.lang.String subnetMask, int min)
           
 java.lang.String getBase()
           
 java.lang.String getGateway()
           
 java.lang.String getMask()
           
 int getMinAddress()
           
 java.lang.String getSubnetMask()
           
 void initialize()
          Initializes the object.
 void reset(java.util.Properties p)
          De-serializes the object from the given properties list.
 void revisit(AuthorityCodSlice slice)
           
 void revisit(IActorIdentity actor, java.util.Properties p)
           
 java.util.Properties save()
          Serializes the object into a properties list.
 void save(java.util.Properties p)
          Serializes the object into the given properties list.
 void setGateway(java.lang.String gateway)
           
 void unconfigure(AuthorityCodSlice slice)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PropertyBase

public static final java.lang.String PropertyBase
See Also:
Constant Field Values

PropertyMask

public static final java.lang.String PropertyMask
See Also:
Constant Field Values

PropertySubnetMask

public static final java.lang.String PropertySubnetMask
See Also:
Constant Field Values

PropertyGateway

public static final java.lang.String PropertyGateway
See Also:
Constant Field Values

PropertyMin

public static final java.lang.String PropertyMin
See Also:
Constant Field Values

PropertyPublicIPSpace

public static final java.lang.String PropertyPublicIPSpace
See Also:
Constant Field Values

PropertyNic

public static final java.lang.String PropertyNic
See Also:
Constant Field Values

DefaultNic

public static final java.lang.String DefaultNic
See Also:
Constant Field Values

privateBlock

protected SubnetBlock privateBlock

publicIPSpace

protected IPList publicIPSpace

minNode

protected int minNode

gateway

protected java.lang.String gateway

nic

protected java.lang.String nic
Constructor Detail

NetworkConfiguration

public NetworkConfiguration()
Method Detail

initialize

public void initialize()
                throws java.lang.Exception
Description copied from interface: IInitialize
Initializes the object.

Specified by:
initialize in interface IInitialize
Throws:
java.lang.Exception

configure

public void configure(AuthorityCodSlice slice)
               throws java.lang.Exception
Throws:
java.lang.Exception

unconfigure

public void unconfigure(AuthorityCodSlice slice)
                 throws java.lang.Exception
Throws:
java.lang.Exception

revisit

public void revisit(AuthorityCodSlice slice)
             throws java.lang.Exception
Throws:
java.lang.Exception

configure

public void configure(java.lang.String base,
                      java.lang.String mask,
                      java.lang.String subnetMask,
                      int min)
               throws java.lang.Exception
Throws:
java.lang.Exception

configure

public void configure(java.util.Properties p)
               throws java.lang.Exception
Throws:
java.lang.Exception

save

public java.util.Properties save()
                          throws java.lang.Exception
Description copied from interface: ISerialize
Serializes the object into a properties list.

Specified by:
save in interface ISerialize
Returns:
properties list representing this object
Throws:
java.lang.Exception

save

public void save(java.util.Properties p)
          throws java.lang.Exception
Description copied from interface: ISerialize
Serializes the object into the given properties list.

Specified by:
save in interface ISerialize
Parameters:
p - properties list to serialize the object into
Throws:
java.lang.Exception

reset

public void reset(java.util.Properties p)
           throws java.lang.Exception
Description copied from interface: ISerialize
De-serializes the object from the given properties list.

Specified by:
reset in interface ISerialize
Parameters:
p - properties list containing the serialized version of the object
Throws:
java.lang.Exception

revisit

public void revisit(IActorIdentity actor,
                    java.util.Properties p)
             throws java.lang.Exception
Throws:
java.lang.Exception

setGateway

public void setGateway(java.lang.String gateway)

getGateway

public java.lang.String getGateway()

getMinAddress

public int getMinAddress()

getBase

public java.lang.String getBase()

getMask

public java.lang.String getMask()

getSubnetMask

public java.lang.String getSubnetMask()


Copyright © 2007 Network/Internet Computing Lab. All Rights Reserved.