org.ow2.cmi.lb.loader
Class ArchiveId

java.lang.Object
  extended by org.ow2.cmi.lb.loader.ArchiveId
All Implemented Interfaces:
java.io.Serializable

public class ArchiveId
extends java.lang.Object
implements java.io.Serializable

Author:
The new CMI team
See Also:
Serialized Form

Field Summary
static java.lang.String DEFAULT_NAME
          Default archive name.
static java.lang.String SEPARATOR
          Separator used in the toString method.
 
Constructor Summary
ArchiveId()
          Default constructor.
ArchiveId(java.lang.String inetAddress, java.lang.String location)
          init and archive id with given paramaters.
 
Method Summary
 java.lang.String getHost()
           
 java.lang.String getLocation()
           
 java.lang.String getName()
           
 void setHost(java.lang.String host)
           
 void setName(java.lang.String name)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_NAME

public static final java.lang.String DEFAULT_NAME
Default archive name.

See Also:
Constant Field Values

SEPARATOR

public static java.lang.String SEPARATOR
Separator used in the toString method.

Constructor Detail

ArchiveId

public ArchiveId(java.lang.String inetAddress,
                 java.lang.String location)
init and archive id with given paramaters. Applying toString method to the result returns inetAddress + location.

Parameters:
inetAddress -
location -

ArchiveId

public ArchiveId()
Default constructor.

Method Detail

getHost

public java.lang.String getHost()
Returns:
the host

setHost

public void setHost(java.lang.String host)
Parameters:
host - the host to set

getName

public java.lang.String getName()
Returns:
the name

setName

public void setName(java.lang.String name)
Parameters:
name - the name to set

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getLocation

public java.lang.String getLocation()
Returns:
archive location.


Copyright © 2009 OW2 Consortium. All Rights Reserved.