3
* JBoss, Home of Professional Open Source
4
* Copyright 2005, JBoss Inc., and individual contributors as indicated
5
* by the @authors tag. See the copyright.txt in the distribution for a
6
* full listing of individual contributors.
8
* This is free software; you can redistribute it and/or modify it
9
* under the terms of the GNU Lesser General Public License as
10
* published by the Free Software Foundation; either version 2.1 of
11
* the License, or (at your option) any later version.
13
* This software is distributed in the hope that it will be useful,
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16
* Lesser General Public License for more details.
18
* You should have received a copy of the GNU Lesser General Public
19
* License along with this software; if not, write to the Free
20
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
21
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
23
package org.jboss.test.remoting.security;
25
import java.io.IOException;
26
import java.io.Serializable;
29
import org.apache.log4j.Logger;
31
public class TestCallbackStore implements TestCallbackStoreMBean
33
private static Logger log = Logger.getLogger(TestCallbackStore.class);
34
// private static byte[] memHolder;
38
// long max = Runtime.getRuntime().maxMemory();
39
// log.info("max mem: " + max);
40
// int memSize = (int) (max * 0.6);
41
// memHolder = new byte[memSize];
42
// log.info("memHolder.length: " + memHolder.length);
47
public String getStoreFilePath() {return null;}
48
public String getStoreFileSuffix() {return null;}
49
public void setStoreFilePath(String filePath) {}
50
public void setStoreFileSuffix(String fileSuffix) {}
51
public void add(Serializable object) throws IOException
57
log.info("TestCallbackStore received callback");
59
synchronized (TestCallbackStore.class)
61
TestCallbackStore.class.notifyAll();
64
public void create() throws Exception {log.info("create()");}
65
public void destroy() {log.info("destroy()");}
66
public Object getNext() throws IOException {log.info("getNext()"); return null;}
67
public boolean getPurgeOnShutdown() {log.info("getPurgeOnShutdown()"); return false;}
68
public void purgeFiles() {log.info("purgeFiles()");}
69
public void setConfig(Map config) {log.info("setConfig()");}
70
public void setPurgeOnShutdown(boolean purgeOnShutdown) {log.info("setPurgeOnShutdown()");}
71
public int size() {log.info("size()"); return size;}
72
public void start() throws Exception {log.info("start()");}
73
public void stop() {log.info("stop()");}