org.gcube.messaging.common.consumer.mail
Class MailRecipientHelper

java.lang.Object
  extended by org.gcube.messaging.common.consumer.mail.MailRecipientHelper

public class MailRecipientHelper
extends java.lang.Object

Mail recipient file parser

Author:
Andrea Manzi(CERN)

Nested Class Summary
 class MailRecipientHelper.MonitorUser
          Monitor Users
 
Field Summary
static GCUBELog logger
           
 
Constructor Summary
MailRecipientHelper()
          constructor
MailRecipientHelper(java.io.File file)
          constructor
 
Method Summary
 java.lang.Double getCpuLoadThreshold()
          set the CPUload
 java.lang.Long getDiskQuotaThreshold()
          get diskQuota
 java.lang.Long getVirtualMemoryThreshold()
          get virtual memory
 void parse(java.lang.String file)
           
 void setCpuLoadThreshold(java.lang.Double cpuLoadThreshold)
          set the CPU load
 void setDiskQuotaThreshold(java.lang.Long diskQuotaThreshold)
          set disk quota
 void setVirtualMemoryThreshold(java.lang.Long virtualMemoryThreshold)
          set teh virtual memory
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

public static GCUBELog logger
Constructor Detail

MailRecipientHelper

public MailRecipientHelper(java.io.File file)
                    throws java.lang.Exception
constructor

Parameters:
file - teh file
Throws:
java.lang.Exception - exception

MailRecipientHelper

public MailRecipientHelper()
                    throws java.lang.Exception
constructor

Parameters:
file - the file
Throws:
java.lang.Exception - exception
Method Detail

parse

public void parse(java.lang.String file)
           throws java.lang.Exception
Parameters:
file - file
Throws:
java.lang.Exception - exception

getDiskQuotaThreshold

public java.lang.Long getDiskQuotaThreshold()
get diskQuota

Returns:
the disk quota

setDiskQuotaThreshold

public void setDiskQuotaThreshold(java.lang.Long diskQuotaThreshold)
set disk quota

Parameters:
diskQuotaThreshold -

getVirtualMemoryThreshold

public java.lang.Long getVirtualMemoryThreshold()
get virtual memory

Returns:
the virtual memory

setVirtualMemoryThreshold

public void setVirtualMemoryThreshold(java.lang.Long virtualMemoryThreshold)
set teh virtual memory

Parameters:
virtualMemoryThreshold -

getCpuLoadThreshold

public java.lang.Double getCpuLoadThreshold()
set the CPUload

Returns:

setCpuLoadThreshold

public void setCpuLoadThreshold(java.lang.Double cpuLoadThreshold)
set the CPU load

Parameters:
cpuLoadThreshold -