org.ow2.cmi.lb.loader
Class ArchiveWrapper

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

public class ArchiveWrapper
extends java.lang.Object
implements org.ow2.cmi.loader.IArchiveWrapper

Wrapper for archive that contains load balancing policies/strategies.

Author:
The new CMI team
See Also:
Serialized Form

Constructor Summary
ArchiveWrapper()
          Default constructor.
ArchiveWrapper(byte[] data, java.lang.Object archiveId)
          Constructor using fields.
 
Method Summary
 java.lang.Object getArchiveId()
           
 byte[] getData()
           
 void setArchiveId(java.lang.Object archiveId)
           
 void setData(byte[] data)
           
 void setToBeInstalled(boolean toBeInstalled)
           
 boolean toBeInstalled()
          Check if the archive must be installed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArchiveWrapper

public ArchiveWrapper()
Default constructor.


ArchiveWrapper

public ArchiveWrapper(byte[] data,
                      java.lang.Object archiveId)
Constructor using fields.

Parameters:
data - Array data of the archive.
archiveId - Id of the archive.
Method Detail

getData

public byte[] getData()
Specified by:
getData in interface org.ow2.cmi.loader.IArchiveWrapper
Returns:
the data

setData

public void setData(byte[] data)
Specified by:
setData in interface org.ow2.cmi.loader.IArchiveWrapper
Parameters:
data - Array data to set

setArchiveId

public void setArchiveId(java.lang.Object archiveId)
Parameters:
archiveId - The archiveId to set

getArchiveId

public java.lang.Object getArchiveId()
Specified by:
getArchiveId in interface org.ow2.cmi.loader.IArchiveWrapper
Returns:
the archiveId

toBeInstalled

public boolean toBeInstalled()
Check if the archive must be installed.

Returns:
true if then, false otherwise.

setToBeInstalled

public void setToBeInstalled(boolean toBeInstalled)
Parameters:
toBeInstalled - the toBeInstalled to set


Copyright © 2009 OW2 Consortium. All Rights Reserved.